Files
mermaid-live-editor/_app/chunks/util-4284cbac.js
T
2022-04-01 09:06:28 +00:00

1184 lines
1.1 MiB
Plaintext

var _6=Object.defineProperty,x6=Object.defineProperties;var w6=Object.getOwnPropertyDescriptors;var Z_=Object.getOwnPropertySymbols;var k6=Object.prototype.hasOwnProperty,T6=Object.prototype.propertyIsEnumerable;var Q_=(S,M,h)=>M in S?_6(S,M,{enumerable:!0,configurable:!0,writable:!0,value:h}):S[M]=h,L_=(S,M)=>{for(var h in M||(M={}))k6.call(M,h)&&Q_(S,h,M[h]);if(Z_)for(var h of Z_(M))T6.call(M,h)&&Q_(S,h,M[h]);return S},I_=(S,M)=>x6(S,w6(M));import{S as E6,i as C6,s as S6,e as K_,c as J_,a as t6,d as R_,b as xb,Y as wb,g as A6,J as M6,E as e6,N as N6,v as D6,a5 as O6,Q as n6,O as P_}from"./index-3ccfa173.js";import{w as ty,d as B6}from"./preload-helper-e8f5b6ac.js";import{c as F_,p as q_,a as H_,h as j_,i as c6,j as L6,k as I6,m as R6,b as F6,n as P6}from"./state-f215c7fd.js";const j6=ty(void 0);/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var Y6={1362:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(zt,te,at,ne){for(at=at||{},ne=zt.length;ne--;at[zt[ne]]=te);return at},_=[1,6],g=[1,7],k=[1,8],C=[1,9],A=[1,12],I=[1,11],L=[1,15,24],Y=[1,19],q=[1,31],H=[1,34],V=[1,32],X=[1,33],J=[1,35],lt=[1,36],nt=[1,37],_t=[1,38],dt=[1,41],At=[1,42],st=[1,43],K=[1,44],mt=[15,24],St=[1,56],It=[1,57],ft=[1,58],vt=[1,59],Wt=[1,60],jt=[1,61],me=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],ge=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],pe=[7,8,9,10,15,18,22,24],Dt=[47,77,78,79,80],Zt=[47,54,55,77,78,79,80],se=[47,50,51,52,53,77,78,79,80],le=[15,24,31],ye=[1,93],Ot={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(zt,te,at,ne,Mt,Xt,Ht){var Nt=Xt.length-1;switch(Mt){case 4:ne.setDirection("TB");break;case 5:ne.setDirection("BT");break;case 6:ne.setDirection("RL");break;case 7:ne.setDirection("LR");break;case 11:ne.parseDirective("%%{","open_directive");break;case 12:ne.parseDirective(Xt[Nt],"type_directive");break;case 13:Xt[Nt]=Xt[Nt].trim().replace(/'/g,'"'),ne.parseDirective(Xt[Nt],"arg_directive");break;case 14:ne.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Xt[Nt];break;case 21:this.$=Xt[Nt-1]+Xt[Nt];break;case 22:case 23:this.$=Xt[Nt-1]+"~"+Xt[Nt];break;case 24:ne.addRelation(Xt[Nt]);break;case 25:Xt[Nt-1].title=ne.cleanupLabel(Xt[Nt]),ne.addRelation(Xt[Nt-1]);break;case 33:ne.addClass(Xt[Nt]);break;case 34:ne.addClass(Xt[Nt-2]),ne.setCssClass(Xt[Nt-2],Xt[Nt]);break;case 35:ne.addClass(Xt[Nt-3]),ne.addMembers(Xt[Nt-3],Xt[Nt-1]);break;case 36:ne.addClass(Xt[Nt-5]),ne.setCssClass(Xt[Nt-5],Xt[Nt-3]),ne.addMembers(Xt[Nt-5],Xt[Nt-1]);break;case 37:ne.addAnnotation(Xt[Nt],Xt[Nt-2]);break;case 38:this.$=[Xt[Nt]];break;case 39:Xt[Nt].push(Xt[Nt-1]),this.$=Xt[Nt];break;case 40:case 42:case 43:break;case 41:ne.addMember(Xt[Nt-1],ne.cleanupLabel(Xt[Nt]));break;case 44:this.$={id1:Xt[Nt-2],id2:Xt[Nt],relation:Xt[Nt-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Xt[Nt-3],id2:Xt[Nt],relation:Xt[Nt-1],relationTitle1:Xt[Nt-2],relationTitle2:"none"};break;case 46:this.$={id1:Xt[Nt-3],id2:Xt[Nt],relation:Xt[Nt-2],relationTitle1:"none",relationTitle2:Xt[Nt-1]};break;case 47:this.$={id1:Xt[Nt-4],id2:Xt[Nt],relation:Xt[Nt-2],relationTitle1:Xt[Nt-3],relationTitle2:Xt[Nt-1]};break;case 48:this.$={type1:Xt[Nt-2],type2:Xt[Nt],lineType:Xt[Nt-1]};break;case 49:this.$={type1:"none",type2:Xt[Nt],lineType:Xt[Nt-1]};break;case 50:this.$={type1:Xt[Nt-1],type2:"none",lineType:Xt[Nt]};break;case 51:this.$={type1:"none",type2:"none",lineType:Xt[Nt]};break;case 52:this.$=ne.relationType.AGGREGATION;break;case 53:this.$=ne.relationType.EXTENSION;break;case 54:this.$=ne.relationType.COMPOSITION;break;case 55:this.$=ne.relationType.DEPENDENCY;break;case 56:this.$=ne.lineType.LINE;break;case 57:this.$=ne.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Xt[Nt-2],ne.setClickEvent(Xt[Nt-1],Xt[Nt]);break;case 59:case 65:this.$=Xt[Nt-3],ne.setClickEvent(Xt[Nt-2],Xt[Nt-1]),ne.setTooltip(Xt[Nt-2],Xt[Nt]);break;case 60:case 68:this.$=Xt[Nt-2],ne.setLink(Xt[Nt-1],Xt[Nt]);break;case 61:case 69:this.$=Xt[Nt-3],ne.setLink(Xt[Nt-2],Xt[Nt-1],Xt[Nt]);break;case 62:case 70:this.$=Xt[Nt-3],ne.setLink(Xt[Nt-2],Xt[Nt-1]),ne.setTooltip(Xt[Nt-2],Xt[Nt]);break;case 63:case 71:this.$=Xt[Nt-4],ne.setLink(Xt[Nt-3],Xt[Nt-2],Xt[Nt]),ne.setTooltip(Xt[Nt-3],Xt[Nt-1]);break;case 66:this.$=Xt[Nt-3],ne.setClickEvent(Xt[Nt-2],Xt[Nt-1],Xt[Nt]);break;case 67:this.$=Xt[Nt-4],ne.setClickEvent(Xt[Nt-3],Xt[Nt-2],Xt[Nt-1]),ne.setTooltip(Xt[Nt-3],Xt[Nt]);break;case 72:ne.setCssClass(Xt[Nt-1],Xt[Nt])}},table:[{3:1,4:2,5:3,6:4,7:_,8:g,9:k,10:C,11:5,12:10,18:A,22:I},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:_,8:g,9:k,10:C,11:5,12:10,18:A,22:I},{1:[2,8]},d(L,[2,4]),d(L,[2,5]),d(L,[2,6]),d(L,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:Y},d([16,21],[2,12]),{5:29,6:28,7:_,8:g,9:k,10:C,12:10,18:A,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:q,42:H,44:V,45:X,56:J,57:lt,59:nt,63:_t,77:dt,78:At,79:st,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},d(mt,[2,24],{31:[1,50]}),d(mt,[2,26]),d(mt,[2,27]),d(mt,[2,28]),d(mt,[2,29]),d(mt,[2,30]),d(mt,[2,31]),d(mt,[2,32]),d(mt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:St,51:It,52:ft,53:vt,54:Wt,55:jt}),{26:62,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,42]),d(mt,[2,43]),{27:63,77:dt,78:At,79:st},{26:64,27:39,28:40,77:dt,78:At,79:st,80:K},{26:65,27:39,28:40,77:dt,78:At,79:st,80:K},{26:66,27:39,28:40,77:dt,78:At,79:st,80:K},{47:[1,67]},d(me,[2,19],{27:39,28:40,26:68,29:[1,69],77:dt,78:At,79:st,80:K}),d(me,[2,20],{29:[1,70]}),d(ge,[2,86]),d(ge,[2,87]),d(ge,[2,88]),d([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),d(pe,[2,9]),{14:71,21:Y},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:_,8:g,9:k,10:C,12:10,18:A,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:q,42:H,44:V,45:X,56:J,57:lt,59:nt,63:_t,77:dt,78:At,79:st,80:K},d(mt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:dt,78:At,79:st,80:K},{46:75,48:54,49:55,50:St,51:It,52:ft,53:vt,54:Wt,55:jt},d(mt,[2,41]),{49:76,54:Wt,55:jt},d(Dt,[2,51],{48:77,50:St,51:It,52:ft,53:vt}),d(Zt,[2,52]),d(Zt,[2,53]),d(Zt,[2,54]),d(Zt,[2,55]),d(se,[2,56]),d(se,[2,57]),d(mt,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:dt,78:At,79:st},d(me,[2,21]),d(me,[2,22]),d(me,[2,23]),{15:[1,86]},{24:[2,18]},d(le,[2,44]),{26:87,27:39,28:40,77:dt,78:At,79:st,80:K},{26:88,27:39,28:40,47:[1,89],77:dt,78:At,79:st,80:K},d(Dt,[2,50],{48:90,50:St,51:It,52:ft,53:vt}),d(Dt,[2,49]),{27:91,77:dt,78:At,79:st},{40:92,44:ye},{26:94,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,58],{47:[1,95]}),d(mt,[2,60],{47:[1,97],58:[1,96]}),d(mt,[2,64],{47:[1,98],61:[1,99]}),d(mt,[2,68],{47:[1,101],58:[1,100]}),d(mt,[2,72]),d(pe,[2,10]),d(le,[2,46]),d(le,[2,45]),{26:102,27:39,28:40,77:dt,78:At,79:st,80:K},d(Dt,[2,48]),d(mt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ye},d(mt,[2,37]),d(mt,[2,59]),d(mt,[2,61]),d(mt,[2,62],{58:[1,106]}),d(mt,[2,65]),d(mt,[2,66],{47:[1,107]}),d(mt,[2,69]),d(mt,[2,70],{58:[1,108]}),d(le,[2,47]),{40:109,44:ye},d(mt,[2,35]),{41:[2,39]},d(mt,[2,63]),d(mt,[2,67]),d(mt,[2,71]),{41:[1,110]},d(mt,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(zt,te){if(!te.recoverable){var at=new Error(zt);throw at.hash=te,at}this.trace(zt)},parse:function(zt){var te=this,at=[0],ne=[],Mt=[null],Xt=[],Ht=this.table,Nt="",oe=0,tn=0,ve=0,De=2,ln=1,Xe=Xt.slice.call(arguments,1),Ie=Object.create(this.lexer),Ae={yy:{}};for(var en in this.yy)Object.prototype.hasOwnProperty.call(this.yy,en)&&(Ae.yy[en]=this.yy[en]);Ie.setInput(zt,Ae.yy),Ae.yy.lexer=Ie,Ae.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var Ue=Ie.yylloc;Xt.push(Ue);var Ze=Ie.options&&Ie.options.ranges;function Qe(){var Tn;return typeof(Tn=ne.pop()||Ie.lex()||ln)!="number"&&(Tn instanceof Array&&(Tn=(ne=Tn).pop()),Tn=te.symbols_[Tn]||Tn),Tn}typeof Ae.yy.parseError=="function"?this.parseError=Ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Le,Yn,Me,an,vn,Or,bn,Kn,cn,gn={};;){if(Me=at[at.length-1],this.defaultActions[Me]?an=this.defaultActions[Me]:(Le==null&&(Le=Qe()),an=Ht[Me]&&Ht[Me][Le]),an===void 0||!an.length||!an[0]){var Ke="";for(Or in cn=[],Ht[Me])this.terminals_[Or]&&Or>De&&cn.push("'"+this.terminals_[Or]+"'");Ke=Ie.showPosition?"Parse error on line "+(oe+1)+`:
`+Ie.showPosition()+`
Expecting `+cn.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":"Parse error on line "+(oe+1)+": Unexpected "+(Le==ln?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(Ke,{text:Ie.match,token:this.terminals_[Le]||Le,line:Ie.yylineno,loc:Ue,expected:cn})}if(an[0]instanceof Array&&an.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+Le);switch(an[0]){case 1:at.push(Le),Mt.push(Ie.yytext),Xt.push(Ie.yylloc),at.push(an[1]),Le=null,Yn?(Le=Yn,Yn=null):(tn=Ie.yyleng,Nt=Ie.yytext,oe=Ie.yylineno,Ue=Ie.yylloc,ve>0);break;case 2:if(bn=this.productions_[an[1]][1],gn.$=Mt[Mt.length-bn],gn._$={first_line:Xt[Xt.length-(bn||1)].first_line,last_line:Xt[Xt.length-1].last_line,first_column:Xt[Xt.length-(bn||1)].first_column,last_column:Xt[Xt.length-1].last_column},Ze&&(gn._$.range=[Xt[Xt.length-(bn||1)].range[0],Xt[Xt.length-1].range[1]]),(vn=this.performAction.apply(gn,[Nt,tn,oe,Ae.yy,an[1],Mt,Xt].concat(Xe)))!==void 0)return vn;bn&&(at=at.slice(0,-1*bn*2),Mt=Mt.slice(0,-1*bn),Xt=Xt.slice(0,-1*bn)),at.push(this.productions_[an[1]][0]),Mt.push(gn.$),Xt.push(gn._$),Kn=Ht[at[at.length-2]][at[at.length-1]],at.push(Kn);break;case 3:return!0}}return!0}},We={EOF:1,parseError:function(zt,te){if(!this.yy.parser)throw new Error(zt);this.yy.parser.parseError(zt,te)},setInput:function(zt,te){return this.yy=te||this.yy||{},this._input=zt,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 zt=this._input[0];return this.yytext+=zt,this.yyleng++,this.offset++,this.match+=zt,this.matched+=zt,zt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),zt},unput:function(zt){var te=zt.length,at=zt.split(/(?:\r\n?|\n)/g);this._input=zt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),at.length-1&&(this.yylineno-=at.length-1);var Mt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:at?(at.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-at.length].length-at[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-te]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(zt){this.unput(this.match.slice(zt))},pastInput:function(){var zt=this.matched.substr(0,this.matched.length-this.match.length);return(zt.length>20?"...":"")+zt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var zt=this.match;return zt.length<20&&(zt+=this._input.substr(0,20-zt.length)),(zt.substr(0,20)+(zt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var zt=this.pastInput(),te=new Array(zt.length+1).join("-");return zt+this.upcomingInput()+`
`+te+"^"},test_match:function(zt,te){var at,ne,Mt;if(this.options.backtrack_lexer&&(Mt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Mt.yylloc.range=this.yylloc.range.slice(0))),(ne=zt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+zt[0].length},this.yytext+=zt[0],this.match+=zt[0],this.matches=zt,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(zt[0].length),this.matched+=zt[0],at=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),at)return at;if(this._backtrack){for(var Xt in Mt)this[Xt]=Mt[Xt];return!1}return!1},next:function(){if(this.done)return this.EOF;var zt,te,at,ne;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),Xt=0;Xt<Mt.length;Xt++)if((at=this._input.match(this.rules[Mt[Xt]]))&&(!te||at[0].length>te[0].length)){if(te=at,ne=Xt,this.options.backtrack_lexer){if((zt=this.test_match(at,Mt[Xt]))!==!1)return zt;if(this._backtrack){te=!1;continue}return!1}if(!this.options.flex)break}return te?(zt=this.test_match(te,Mt[ne]))!==!1&&zt: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(){return this.next()||this.lex()},begin:function(zt){this.conditionStack.push(zt)},popState:function(){return this.conditionStack.length-1>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(zt){return(zt=this.conditionStack.length-1-Math.abs(zt||0))>=0?this.conditionStack[zt]:"INITIAL"},pushState:function(zt){this.begin(zt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(zt,te,at,ne){switch(at){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,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],inclusive:!0}}};function he(){this.yy={}}return Ot.lexer=We,he.prototype=Ot,Ot.Parser=he,new he}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(8218).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},5890:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(st,K,mt,St){for(mt=mt||{},St=st.length;St--;mt[st[St]]=K);return mt},_=[1,2],g=[1,5],k=[6,9,11,23,41],C=[1,17],A=[1,20],I=[1,25],L=[1,26],Y=[1,27],q=[1,28],H=[1,37],V=[23,38,39],X=[4,6,9,11,23,41],J=[34,35,36,37],lt=[22,29],nt=[1,55],_t={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(st,K,mt,St,It,ft,vt){var Wt=ft.length-1;switch(It){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:ft[Wt-1].push(ft[Wt]),this.$=ft[Wt-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=ft[Wt];break;case 12:St.addEntity(ft[Wt-4]),St.addEntity(ft[Wt-2]),St.addRelationship(ft[Wt-4],ft[Wt],ft[Wt-2],ft[Wt-3]);break;case 13:St.addEntity(ft[Wt-3]),St.addAttributes(ft[Wt-3],ft[Wt-1]);break;case 14:St.addEntity(ft[Wt-2]);break;case 15:St.addEntity(ft[Wt]);break;case 17:this.$=[ft[Wt]];break;case 18:ft[Wt].push(ft[Wt-1]),this.$=ft[Wt];break;case 19:this.$={attributeType:ft[Wt-1],attributeName:ft[Wt]};break;case 20:this.$={attributeType:ft[Wt-2],attributeName:ft[Wt-1],attributeKeyType:ft[Wt]};break;case 21:this.$={attributeType:ft[Wt-2],attributeName:ft[Wt-1],attributeComment:ft[Wt]};break;case 22:this.$={attributeType:ft[Wt-3],attributeName:ft[Wt-2],attributeKeyType:ft[Wt-1],attributeComment:ft[Wt]};break;case 26:case 34:this.$=ft[Wt].replace(/"/g,"");break;case 27:this.$={cardA:ft[Wt],relType:ft[Wt-1],cardB:ft[Wt-2]};break;case 28:this.$=St.Cardinality.ZERO_OR_ONE;break;case 29:this.$=St.Cardinality.ZERO_OR_MORE;break;case 30:this.$=St.Cardinality.ONE_OR_MORE;break;case 31:this.$=St.Cardinality.ONLY_ONE;break;case 32:this.$=St.Identification.NON_IDENTIFYING;break;case 33:this.$=St.Identification.IDENTIFYING;break;case 36:St.parseDirective("%%{","open_directive");break;case 37:St.parseDirective(ft[Wt],"type_directive");break;case 38:ft[Wt]=ft[Wt].trim().replace(/'/g,'"'),St.parseDirective(ft[Wt],"arg_directive");break;case 39:St.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,41:g},{1:[3]},d(k,[2,3],{5:6}),{3:7,4:_,7:3,12:4,41:g},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:C,41:g},{1:[2,2]},{14:18,15:[1,19],44:A},d([15,44],[2,37]),d(k,[2,8],{1:[2,1]}),d(k,[2,4]),{7:15,10:21,12:4,17:16,23:C,41:g},d(k,[2,6]),d(k,[2,7]),d(k,[2,11]),d(k,[2,15],{18:22,32:24,20:[1,23],34:I,35:L,36:Y,37:q}),d([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},d(k,[2,5]),{17:32,23:C},{21:33,22:[1,34],24:35,25:36,29:H},{33:38,38:[1,39],39:[1,40]},d(V,[2,28]),d(V,[2,29]),d(V,[2,30]),d(V,[2,31]),d(X,[2,9]),{14:41,44:A},{44:[2,38]},{15:[1,42]},{22:[1,43]},d(k,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:I,35:L,36:Y,37:q},d(J,[2,32]),d(J,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},d(k,[2,13]),{22:[2,18]},d(lt,[2,19],{27:52,28:53,30:[1,54],31:nt}),d([22,29,30,31],[2,24]),{23:[2,27]},d(X,[2,10]),d(k,[2,12]),d(k,[2,34]),d(k,[2,35]),d(lt,[2,20],{28:56,31:nt}),d(lt,[2,21]),d([22,29,31],[2,25]),d(lt,[2,26]),d(lt,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(st,K){if(!K.recoverable){var mt=new Error(st);throw mt.hash=K,mt}this.trace(st)},parse:function(st){var K=this,mt=[0],St=[],It=[null],ft=[],vt=this.table,Wt="",jt=0,me=0,ge=0,pe=2,Dt=1,Zt=ft.slice.call(arguments,1),se=Object.create(this.lexer),le={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(le.yy[ye]=this.yy[ye]);se.setInput(st,le.yy),le.yy.lexer=se,le.yy.parser=this,se.yylloc===void 0&&(se.yylloc={});var Ot=se.yylloc;ft.push(Ot);var We=se.options&&se.options.ranges;function he(){var De;return typeof(De=St.pop()||se.lex()||Dt)!="number"&&(De instanceof Array&&(De=(St=De).pop()),De=K.symbols_[De]||De),De}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var zt,te,at,ne,Mt,Xt,Ht,Nt,oe,tn={};;){if(at=mt[mt.length-1],this.defaultActions[at]?ne=this.defaultActions[at]:(zt==null&&(zt=he()),ne=vt[at]&&vt[at][zt]),ne===void 0||!ne.length||!ne[0]){var ve="";for(Xt in oe=[],vt[at])this.terminals_[Xt]&&Xt>pe&&oe.push("'"+this.terminals_[Xt]+"'");ve=se.showPosition?"Parse error on line "+(jt+1)+`:
`+se.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[zt]||zt)+"'":"Parse error on line "+(jt+1)+": Unexpected "+(zt==Dt?"end of input":"'"+(this.terminals_[zt]||zt)+"'"),this.parseError(ve,{text:se.match,token:this.terminals_[zt]||zt,line:se.yylineno,loc:Ot,expected:oe})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+at+", token: "+zt);switch(ne[0]){case 1:mt.push(zt),It.push(se.yytext),ft.push(se.yylloc),mt.push(ne[1]),zt=null,te?(zt=te,te=null):(me=se.yyleng,Wt=se.yytext,jt=se.yylineno,Ot=se.yylloc,ge>0);break;case 2:if(Ht=this.productions_[ne[1]][1],tn.$=It[It.length-Ht],tn._$={first_line:ft[ft.length-(Ht||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(Ht||1)].first_column,last_column:ft[ft.length-1].last_column},We&&(tn._$.range=[ft[ft.length-(Ht||1)].range[0],ft[ft.length-1].range[1]]),(Mt=this.performAction.apply(tn,[Wt,me,jt,le.yy,ne[1],It,ft].concat(Zt)))!==void 0)return Mt;Ht&&(mt=mt.slice(0,-1*Ht*2),It=It.slice(0,-1*Ht),ft=ft.slice(0,-1*Ht)),mt.push(this.productions_[ne[1]][0]),It.push(tn.$),ft.push(tn._$),Nt=vt[mt[mt.length-2]][mt[mt.length-1]],mt.push(Nt);break;case 3:return!0}}return!0}},dt={EOF:1,parseError:function(st,K){if(!this.yy.parser)throw new Error(st);this.yy.parser.parseError(st,K)},setInput:function(st,K){return this.yy=K||this.yy||{},this._input=st,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 st=this._input[0];return this.yytext+=st,this.yyleng++,this.offset++,this.match+=st,this.matched+=st,st.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),st},unput:function(st){var K=st.length,mt=st.split(/(?:\r\n?|\n)/g);this._input=st+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var St=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),mt.length-1&&(this.yylineno-=mt.length-1);var It=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:mt?(mt.length===St.length?this.yylloc.first_column:0)+St[St.length-mt.length].length-mt[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[It[0],It[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(st){this.unput(this.match.slice(st))},pastInput:function(){var st=this.matched.substr(0,this.matched.length-this.match.length);return(st.length>20?"...":"")+st.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var st=this.match;return st.length<20&&(st+=this._input.substr(0,20-st.length)),(st.substr(0,20)+(st.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var st=this.pastInput(),K=new Array(st.length+1).join("-");return st+this.upcomingInput()+`
`+K+"^"},test_match:function(st,K){var mt,St,It;if(this.options.backtrack_lexer&&(It={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&&(It.yylloc.range=this.yylloc.range.slice(0))),(St=st[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+st[0].length},this.yytext+=st[0],this.match+=st[0],this.matches=st,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(st[0].length),this.matched+=st[0],mt=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var ft in It)this[ft]=It[ft];return!1}return!1},next:function(){if(this.done)return this.EOF;var st,K,mt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var It=this._currentRules(),ft=0;ft<It.length;ft++)if((mt=this._input.match(this.rules[It[ft]]))&&(!K||mt[0].length>K[0].length)){if(K=mt,St=ft,this.options.backtrack_lexer){if((st=this.test_match(mt,It[ft]))!==!1)return st;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(st=this.test_match(K,It[St]))!==!1&&st: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(){return this.next()||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return(st=this.conditionStack.length-1-Math.abs(st||0))>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,K,mt,St){switch(mt){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return K.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function At(){this.yy={}}return _t.lexer=dt,At.prototype=_t,_t.Parser=At,new At}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(8009).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},3602:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(on,Gn,En,Re){for(En=En||{},Re=on.length;Re--;En[on[Re]]=Gn);return En},_=[1,9],g=[1,7],k=[1,6],C=[1,8],A=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],I=[2,10],L=[1,20],Y=[1,21],q=[1,22],H=[1,23],V=[1,30],X=[1,59],J=[1,45],lt=[1,49],nt=[1,33],_t=[1,34],dt=[1,35],At=[1,36],st=[1,37],K=[1,53],mt=[1,60],St=[1,48],It=[1,50],ft=[1,52],vt=[1,56],Wt=[1,57],jt=[1,38],me=[1,39],ge=[1,40],pe=[1,41],Dt=[1,58],Zt=[1,47],se=[1,51],le=[1,54],ye=[1,55],Ot=[1,46],We=[1,63],he=[1,68],zt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],te=[1,72],at=[1,71],ne=[1,73],Mt=[20,21,23,74,75],Xt=[1,94],Ht=[1,99],Nt=[1,102],oe=[1,103],tn=[1,96],ve=[1,101],De=[1,104],ln=[1,97],Xe=[1,109],Ie=[1,108],Ae=[1,98],en=[1,100],Ue=[1,105],Ze=[1,106],Qe=[1,107],Le=[1,110],Yn=[20,21,22,23,74,75],Me=[20,21,22,23,48,74,75],an=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],vn=[20,21,23],Or=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],bn=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Kn=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],cn=[1,143],gn=[1,151],Ke=[1,152],Tn=[1,153],wn=[1,154],zn=[1,138],Un=[1,139],Cr=[1,135],kn=[1,146],Hn=[1,147],Pn=[1,148],$n=[1,149],Vn=[1,150],Jn=[1,155],An=[1,156],Ln=[1,141],un=[1,144],jn=[1,140],mn=[1,137],ei=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],dr=[1,159],Ii=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],In=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],po=[12,21,22,24],oa=[22,99],ni=[1,242],Br=[1,237],Fr=[1,238],$r=[1,246],Xr=[1,243],Sr=[1,240],Zr=[1,239],Lr=[1,241],Ci=[1,244],ai=[1,245],er=[1,247],Hr=[1,265],sa=[20,21,23,99],Qr=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],ca={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(on,Gn,En,Re,Xn,pt,Vr){var Qt=pt.length-1;switch(Xn){case 5:Re.parseDirective("%%{","open_directive");break;case 6:Re.parseDirective(pt[Qt],"type_directive");break;case 7:pt[Qt]=pt[Qt].trim().replace(/'/g,'"'),Re.parseDirective(pt[Qt],"arg_directive");break;case 8:Re.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:pt[Qt]!==[]&&pt[Qt-1].push(pt[Qt]),this.$=pt[Qt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=pt[Qt];break;case 19:Re.setDirection("TB"),this.$="TB";break;case 20:Re.setDirection(pt[Qt-1]),this.$=pt[Qt-1];break;case 35:this.$=pt[Qt-1].nodes;break;case 41:this.$=Re.addSubGraph(pt[Qt-6],pt[Qt-1],pt[Qt-4]);break;case 42:this.$=Re.addSubGraph(pt[Qt-3],pt[Qt-1],pt[Qt-3]);break;case 43:this.$=Re.addSubGraph(void 0,pt[Qt-1],void 0);break;case 48:Re.addLink(pt[Qt-2].stmt,pt[Qt],pt[Qt-1]),this.$={stmt:pt[Qt],nodes:pt[Qt].concat(pt[Qt-2].nodes)};break;case 49:Re.addLink(pt[Qt-3].stmt,pt[Qt-1],pt[Qt-2]),this.$={stmt:pt[Qt-1],nodes:pt[Qt-1].concat(pt[Qt-3].nodes)};break;case 50:this.$={stmt:pt[Qt-1],nodes:pt[Qt-1]};break;case 51:this.$={stmt:pt[Qt],nodes:pt[Qt]};break;case 52:case 119:case 121:this.$=[pt[Qt]];break;case 53:this.$=pt[Qt-4].concat(pt[Qt]);break;case 54:this.$=[pt[Qt-2]],Re.setClass(pt[Qt-2],pt[Qt]);break;case 55:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"square");break;case 56:this.$=pt[Qt-5],Re.addVertex(pt[Qt-5],pt[Qt-2],"circle");break;case 57:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"ellipse");break;case 58:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"stadium");break;case 59:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"subroutine");break;case 60:this.$=pt[Qt-7],Re.addVertex(pt[Qt-7],pt[Qt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pt[Qt-5],pt[Qt-3]]]));break;case 61:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"cylinder");break;case 62:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"round");break;case 63:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"diamond");break;case 64:this.$=pt[Qt-5],Re.addVertex(pt[Qt-5],pt[Qt-2],"hexagon");break;case 65:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"odd");break;case 66:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"trapezoid");break;case 67:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"inv_trapezoid");break;case 68:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"lean_right");break;case 69:this.$=pt[Qt-3],Re.addVertex(pt[Qt-3],pt[Qt-1],"lean_left");break;case 70:this.$=pt[Qt],Re.addVertex(pt[Qt]);break;case 71:pt[Qt-1].text=pt[Qt],this.$=pt[Qt-1];break;case 72:case 73:pt[Qt-2].text=pt[Qt-1],this.$=pt[Qt-2];break;case 75:var Si=Re.destructLink(pt[Qt],pt[Qt-2]);this.$={type:Si.type,stroke:Si.stroke,length:Si.length,text:pt[Qt-1]};break;case 76:Si=Re.destructLink(pt[Qt]),this.$={type:Si.type,stroke:Si.stroke,length:Si.length};break;case 77:this.$=pt[Qt-1];break;case 79:case 93:case 149:case 147:this.$=pt[Qt-1]+""+pt[Qt];break;case 94:case 95:this.$=pt[Qt-4],Re.addClass(pt[Qt-2],pt[Qt]);break;case 96:this.$=pt[Qt-4],Re.setClass(pt[Qt-2],pt[Qt]);break;case 97:case 105:this.$=pt[Qt-1],Re.setClickEvent(pt[Qt-1],pt[Qt]);break;case 98:case 106:this.$=pt[Qt-3],Re.setClickEvent(pt[Qt-3],pt[Qt-2]),Re.setTooltip(pt[Qt-3],pt[Qt]);break;case 99:this.$=pt[Qt-2],Re.setClickEvent(pt[Qt-2],pt[Qt-1],pt[Qt]);break;case 100:this.$=pt[Qt-4],Re.setClickEvent(pt[Qt-4],pt[Qt-3],pt[Qt-2]),Re.setTooltip(pt[Qt-4],pt[Qt]);break;case 101:case 107:this.$=pt[Qt-1],Re.setLink(pt[Qt-1],pt[Qt]);break;case 102:case 108:this.$=pt[Qt-3],Re.setLink(pt[Qt-3],pt[Qt-2]),Re.setTooltip(pt[Qt-3],pt[Qt]);break;case 103:case 109:this.$=pt[Qt-3],Re.setLink(pt[Qt-3],pt[Qt-2],pt[Qt]);break;case 104:case 110:this.$=pt[Qt-5],Re.setLink(pt[Qt-5],pt[Qt-4],pt[Qt]),Re.setTooltip(pt[Qt-5],pt[Qt-2]);break;case 111:this.$=pt[Qt-4],Re.addVertex(pt[Qt-2],void 0,void 0,pt[Qt]);break;case 112:case 114:this.$=pt[Qt-4],Re.updateLink(pt[Qt-2],pt[Qt]);break;case 113:this.$=pt[Qt-4],Re.updateLink([pt[Qt-2]],pt[Qt]);break;case 115:this.$=pt[Qt-8],Re.updateLinkInterpolate([pt[Qt-6]],pt[Qt-2]),Re.updateLink([pt[Qt-6]],pt[Qt]);break;case 116:this.$=pt[Qt-8],Re.updateLinkInterpolate(pt[Qt-6],pt[Qt-2]),Re.updateLink(pt[Qt-6],pt[Qt]);break;case 117:this.$=pt[Qt-6],Re.updateLinkInterpolate([pt[Qt-4]],pt[Qt]);break;case 118:this.$=pt[Qt-6],Re.updateLinkInterpolate(pt[Qt-4],pt[Qt]);break;case 120:case 122:pt[Qt-2].push(pt[Qt]),this.$=pt[Qt-2];break;case 124:this.$=pt[Qt-1]+pt[Qt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:_,16:4,21:g,22:k,24:C},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:g,22:k,24:C},d(A,I,{17:11}),{7:12,13:[1,13]},{16:14,21:g,22:k,24:C},{16:15,21:g,22:k,24:C},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:L,21:Y,22:q,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,111:jt,112:me,113:ge,114:pe,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},{8:61,10:[1,62],15:We},d([10,15],[2,6]),d(A,[2,17]),d(A,[2,18]),d(A,[2,19]),{20:[1,65],21:[1,66],22:he,27:64,30:67},d(zt,[2,11]),d(zt,[2,12]),d(zt,[2,13]),d(zt,[2,14]),d(zt,[2,15]),d(zt,[2,16]),{9:69,20:te,21:at,23:ne,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:te,21:at,23:ne},{9:78,20:te,21:at,23:ne},{9:79,20:te,21:at,23:ne},{9:80,20:te,21:at,23:ne},{9:81,20:te,21:at,23:ne},{9:83,20:te,21:at,22:[1,82],23:ne},d(zt,[2,44]),d(Mt,[2,51],{30:84,22:he}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Xt,47:Ht,59:Nt,60:oe,77:[1,92],84:tn,90:91,91:[1,89],93:[1,90],98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(zt,[2,154]),d(zt,[2,155]),d(zt,[2,156]),d(zt,[2,157]),d(Yn,[2,52],{48:[1,111]}),d(Me,[2,70],{109:123,40:[1,112],47:X,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:J,60:lt,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot}),d(an,[2,146]),d(an,[2,171]),d(an,[2,172]),d(an,[2,173]),d(an,[2,174]),d(an,[2,175]),d(an,[2,176]),d(an,[2,177]),d(an,[2,178]),d(an,[2,179]),d(an,[2,180]),d(an,[2,181]),d(an,[2,182]),d(an,[2,183]),d(an,[2,184]),d(an,[2,185]),d(an,[2,186]),{9:124,20:te,21:at,23:ne},{11:125,14:[1,126]},d(vn,[2,8]),d(A,[2,20]),d(A,[2,26]),d(A,[2,27]),{21:[1,127]},d(Or,[2,34],{30:128,22:he}),d(zt,[2,35]),{45:129,46:42,47:X,49:43,59:J,60:lt,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},d(bn,[2,45]),d(bn,[2,46]),d(bn,[2,47]),d(Kn,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:cn,24:gn,26:Ke,38:Tn,39:133,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),d(zt,[2,36]),d(zt,[2,37]),d(zt,[2,38]),d(zt,[2,39]),d(zt,[2,40]),{22:cn,24:gn,26:Ke,38:Tn,39:157,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(ei,I,{17:158}),d(Mt,[2,50],{47:dr}),{26:Xt,47:Ht,59:Nt,60:oe,84:tn,90:160,95:[1,161],98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{88:[1,162],96:163,98:[1,164]},{26:Xt,47:Ht,59:Nt,60:oe,84:tn,88:[1,165],90:166,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{26:Xt,47:Ht,59:Nt,60:oe,84:tn,90:167,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(vn,[2,97],{22:[1,168],92:[1,169]}),d(vn,[2,101],{22:[1,170]}),d(vn,[2,105],{108:95,110:172,22:[1,171],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le}),d(vn,[2,107],{22:[1,173]}),d(Ii,[2,148]),d(Ii,[2,150]),d(Ii,[2,151]),d(Ii,[2,152]),d(Ii,[2,153]),d(In,[2,158]),d(In,[2,159]),d(In,[2,160]),d(In,[2,161]),d(In,[2,162]),d(In,[2,163]),d(In,[2,164]),d(In,[2,165]),d(In,[2,166]),d(In,[2,167]),d(In,[2,168]),d(In,[2,169]),d(In,[2,170]),{47:X,49:174,59:J,60:lt,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},{22:cn,24:gn,26:Ke,38:Tn,39:175,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:177,42:wn,47:Ht,50:[1,176],59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:178,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:179,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:180,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{59:[1,181]},{22:cn,24:gn,26:Ke,38:Tn,39:182,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:183,42:wn,47:Ht,59:Nt,60:oe,64:[1,184],66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:185,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:186,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:187,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(an,[2,147]),d(po,[2,3]),{8:188,15:We},{15:[2,7]},d(A,[2,28]),d(Or,[2,33]),d(Mt,[2,48],{30:189,22:he}),d(Kn,[2,71],{22:[1,190]}),{22:[1,191]},{22:cn,24:gn,26:Ke,38:Tn,39:192,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,75:[1,193],76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(In,[2,78]),d(In,[2,80]),d(In,[2,136]),d(In,[2,137]),d(In,[2,138]),d(In,[2,139]),d(In,[2,140]),d(In,[2,141]),d(In,[2,142]),d(In,[2,143]),d(In,[2,144]),d(In,[2,145]),d(In,[2,81]),d(In,[2,82]),d(In,[2,83]),d(In,[2,84]),d(In,[2,85]),d(In,[2,86]),d(In,[2,87]),d(In,[2,88]),d(In,[2,89]),d(In,[2,90]),d(In,[2,91]),{9:196,20:te,21:at,22:cn,23:ne,24:gn,26:Ke,38:Tn,40:[1,195],42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{18:18,19:19,20:L,21:Y,22:q,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,197],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,111:jt,112:me,113:ge,114:pe,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},{22:he,30:198},{22:[1,199],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:172,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},d(oa,[2,119]),{22:[1,204]},{22:[1,205],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:172,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:[1,206],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:172,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{77:[1,207]},d(vn,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},d(Ii,[2,149]),{77:[1,212],94:[1,213]},d(Yn,[2,54],{109:123,47:X,59:J,60:lt,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot}),{22:cn,24:gn,26:Ke,38:Tn,41:[1,214],42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:215,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,51:[1,216],59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,53:[1,217],59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,55:[1,218],59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,57:[1,219],59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{60:[1,220]},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,63:[1,221],66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,65:[1,222],66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,39:223,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,41:[1,224],42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,66:zn,68:[1,225],70:[1,226],74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,66:zn,68:[1,228],70:[1,227],74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{9:229,20:te,21:at,23:ne},d(Mt,[2,49],{47:dr}),d(Kn,[2,73]),d(Kn,[2,72]),{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,61:[1,230],66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(Kn,[2,75]),d(In,[2,79]),{22:cn,24:gn,26:Ke,38:Tn,39:231,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(ei,I,{17:232}),d(zt,[2,43]),{46:233,47:X,49:43,59:J,60:lt,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},{22:ni,59:Br,60:Fr,79:$r,89:234,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{22:ni,59:Br,60:Fr,79:$r,89:248,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{22:ni,59:Br,60:Fr,79:$r,89:249,95:Xr,97:[1,250],98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{22:ni,59:Br,60:Fr,79:$r,89:251,95:Xr,97:[1,252],98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{98:[1,253]},{22:ni,59:Br,60:Fr,79:$r,89:254,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{22:ni,59:Br,60:Fr,79:$r,89:255,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{26:Xt,47:Ht,59:Nt,60:oe,84:tn,90:256,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(vn,[2,98]),{77:[1,257]},d(vn,[2,102],{22:[1,258]}),d(vn,[2,103]),d(vn,[2,106]),d(vn,[2,108],{22:[1,259]}),d(vn,[2,109]),d(Me,[2,55]),{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,51:[1,260],59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(Me,[2,62]),d(Me,[2,57]),d(Me,[2,58]),d(Me,[2,59]),{59:[1,261]},d(Me,[2,61]),d(Me,[2,63]),{22:cn,24:gn,26:Ke,38:Tn,42:wn,47:Ht,59:Nt,60:oe,65:[1,262],66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(Me,[2,65]),d(Me,[2,66]),d(Me,[2,68]),d(Me,[2,67]),d(Me,[2,69]),d(po,[2,4]),d([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:cn,24:gn,26:Ke,38:Tn,41:[1,263],42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{18:18,19:19,20:L,21:Y,22:q,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,264],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,111:jt,112:me,113:ge,114:pe,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},d(Yn,[2,53]),d(vn,[2,111],{99:Hr}),d(sa,[2,121],{101:266,22:ni,59:Br,60:Fr,79:$r,95:Xr,98:Sr,102:Zr,103:Lr,104:Ci,105:ai,106:er}),d(Qr,[2,123]),d(Qr,[2,125]),d(Qr,[2,126]),d(Qr,[2,127]),d(Qr,[2,128]),d(Qr,[2,129]),d(Qr,[2,130]),d(Qr,[2,131]),d(Qr,[2,132]),d(Qr,[2,133]),d(Qr,[2,134]),d(Qr,[2,135]),d(vn,[2,112],{99:Hr}),d(vn,[2,113],{99:Hr}),{22:[1,267]},d(vn,[2,114],{99:Hr}),{22:[1,268]},d(oa,[2,120]),d(vn,[2,94],{99:Hr}),d(vn,[2,95],{99:Hr}),d(vn,[2,96],{108:95,110:172,26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le}),d(vn,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:te,21:at,23:ne},d(zt,[2,42]),{22:ni,59:Br,60:Fr,79:$r,95:Xr,98:Sr,100:275,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},d(Qr,[2,124]),{26:Xt,47:Ht,59:Nt,60:oe,84:tn,90:276,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{26:Xt,47:Ht,59:Nt,60:oe,84:tn,90:277,98:ve,99:De,102:ln,104:Xe,105:Ie,108:95,110:93,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(vn,[2,104]),d(vn,[2,110]),d(Me,[2,56]),{22:cn,24:gn,26:Ke,38:Tn,39:278,42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:134,77:Cr,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},d(Me,[2,64]),d(ei,I,{17:279}),d(sa,[2,122],{101:266,22:ni,59:Br,60:Fr,79:$r,95:Xr,98:Sr,102:Zr,103:Lr,104:Ci,105:ai,106:er}),d(vn,[2,117],{108:95,110:172,22:[1,280],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le}),d(vn,[2,118],{108:95,110:172,22:[1,281],26:Xt,47:Ht,59:Nt,60:oe,84:tn,98:ve,99:De,102:ln,104:Xe,105:Ie,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le}),{22:cn,24:gn,26:Ke,38:Tn,41:[1,282],42:wn,47:Ht,59:Nt,60:oe,66:zn,74:Un,76:194,78:145,79:kn,80:Hn,81:Pn,82:$n,83:Vn,84:Jn,85:An,87:136,88:Ln,98:ve,99:De,102:un,104:Xe,105:Ie,106:jn,107:mn,108:142,115:Ae,116:en,117:Ue,118:Ze,119:Qe,120:Le},{18:18,19:19,20:L,21:Y,22:q,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,283],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:It,102:ft,104:vt,105:Wt,109:44,111:jt,112:me,113:ge,114:pe,115:Dt,116:Zt,117:se,118:le,119:ye,120:Ot},{22:ni,59:Br,60:Fr,79:$r,89:284,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},{22:ni,59:Br,60:Fr,79:$r,89:285,95:Xr,98:Sr,100:235,101:236,102:Zr,103:Lr,104:Ci,105:ai,106:er},d(Me,[2,60]),d(zt,[2,41]),d(vn,[2,115],{99:Hr}),d(vn,[2,116],{99:Hr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(on,Gn){if(!Gn.recoverable){var En=new Error(on);throw En.hash=Gn,En}this.trace(on)},parse:function(on){var Gn=this,En=[0],Re=[],Xn=[null],pt=[],Vr=this.table,Qt="",Si=0,Wi=0,Ba=0,no=2,go=1,yo=pt.slice.call(arguments,1),Wr=Object.create(this.lexer),$i={yy:{}};for(var Cn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Cn)&&($i.yy[Cn]=this.yy[Cn]);Wr.setInput(on,$i.yy),$i.yy.lexer=Wr,$i.yy.parser=this,Wr.yylloc===void 0&&(Wr.yylloc={});var Ta=Wr.yylloc;pt.push(Ta);var La=Wr.options&&Wr.options.ranges;function pr(){var Bt;return typeof(Bt=Re.pop()||Wr.lex()||go)!="number"&&(Bt instanceof Array&&(Bt=(Re=Bt).pop()),Bt=Gn.symbols_[Bt]||Bt),Bt}typeof $i.yy.parseError=="function"?this.parseError=$i.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Tr,di,Kr,Pr,jr,si,Gr,Vi,Ri,Ai={};;){if(Kr=En[En.length-1],this.defaultActions[Kr]?Pr=this.defaultActions[Kr]:(Tr==null&&(Tr=pr()),Pr=Vr[Kr]&&Vr[Kr][Tr]),Pr===void 0||!Pr.length||!Pr[0]){var ro="";for(si in Ri=[],Vr[Kr])this.terminals_[si]&&si>no&&Ri.push("'"+this.terminals_[si]+"'");ro=Wr.showPosition?"Parse error on line "+(Si+1)+`:
`+Wr.showPosition()+`
Expecting `+Ri.join(", ")+", got '"+(this.terminals_[Tr]||Tr)+"'":"Parse error on line "+(Si+1)+": Unexpected "+(Tr==go?"end of input":"'"+(this.terminals_[Tr]||Tr)+"'"),this.parseError(ro,{text:Wr.match,token:this.terminals_[Tr]||Tr,line:Wr.yylineno,loc:Ta,expected:Ri})}if(Pr[0]instanceof Array&&Pr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kr+", token: "+Tr);switch(Pr[0]){case 1:En.push(Tr),Xn.push(Wr.yytext),pt.push(Wr.yylloc),En.push(Pr[1]),Tr=null,di?(Tr=di,di=null):(Wi=Wr.yyleng,Qt=Wr.yytext,Si=Wr.yylineno,Ta=Wr.yylloc,Ba>0);break;case 2:if(Gr=this.productions_[Pr[1]][1],Ai.$=Xn[Xn.length-Gr],Ai._$={first_line:pt[pt.length-(Gr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Gr||1)].first_column,last_column:pt[pt.length-1].last_column},La&&(Ai._$.range=[pt[pt.length-(Gr||1)].range[0],pt[pt.length-1].range[1]]),(jr=this.performAction.apply(Ai,[Qt,Wi,Si,$i.yy,Pr[1],Xn,pt].concat(yo)))!==void 0)return jr;Gr&&(En=En.slice(0,-1*Gr*2),Xn=Xn.slice(0,-1*Gr),pt=pt.slice(0,-1*Gr)),En.push(this.productions_[Pr[1]][0]),Xn.push(Ai.$),pt.push(Ai._$),Vi=Vr[En[En.length-2]][En[En.length-1]],En.push(Vi);break;case 3:return!0}}return!0}},eo={EOF:1,parseError:function(on,Gn){if(!this.yy.parser)throw new Error(on);this.yy.parser.parseError(on,Gn)},setInput:function(on,Gn){return this.yy=Gn||this.yy||{},this._input=on,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 on=this._input[0];return this.yytext+=on,this.yyleng++,this.offset++,this.match+=on,this.matched+=on,on.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),on},unput:function(on){var Gn=on.length,En=on.split(/(?:\r\n?|\n)/g);this._input=on+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gn),this.offset-=Gn;var Re=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),En.length-1&&(this.yylineno-=En.length-1);var Xn=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:En?(En.length===Re.length?this.yylloc.first_column:0)+Re[Re.length-En.length].length-En[0].length:this.yylloc.first_column-Gn},this.options.ranges&&(this.yylloc.range=[Xn[0],Xn[0]+this.yyleng-Gn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(on){this.unput(this.match.slice(on))},pastInput:function(){var on=this.matched.substr(0,this.matched.length-this.match.length);return(on.length>20?"...":"")+on.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var on=this.match;return on.length<20&&(on+=this._input.substr(0,20-on.length)),(on.substr(0,20)+(on.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var on=this.pastInput(),Gn=new Array(on.length+1).join("-");return on+this.upcomingInput()+`
`+Gn+"^"},test_match:function(on,Gn){var En,Re,Xn;if(this.options.backtrack_lexer&&(Xn={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&&(Xn.yylloc.range=this.yylloc.range.slice(0))),(Re=on[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Re?Re[Re.length-1].length-Re[Re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+on[0].length},this.yytext+=on[0],this.match+=on[0],this.matches=on,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(on[0].length),this.matched+=on[0],En=this.performAction.call(this,this.yy,this,Gn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),En)return En;if(this._backtrack){for(var pt in Xn)this[pt]=Xn[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var on,Gn,En,Re;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Xn=this._currentRules(),pt=0;pt<Xn.length;pt++)if((En=this._input.match(this.rules[Xn[pt]]))&&(!Gn||En[0].length>Gn[0].length)){if(Gn=En,Re=pt,this.options.backtrack_lexer){if((on=this.test_match(En,Xn[pt]))!==!1)return on;if(this._backtrack){Gn=!1;continue}return!1}if(!this.options.flex)break}return Gn?(on=this.test_match(Gn,Xn[Re]))!==!1&&on: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(){return this.next()||this.lex()},begin:function(on){this.conditionStack.push(on)},popState:function(){return this.conditionStack.length-1>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(on){return(on=this.conditionStack.length-1-Math.abs(on||0))>=0?this.conditionStack[on]:"INITIAL"},pushState:function(on){this.begin(on)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(on,Gn,En,Re){switch(En){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return on.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,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,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],inclusive:!0}}};function oi(){this.yy={}}return ca.lexer=eo,oi.prototype=ca,ca.Parser=oi,new oi}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(5354).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},9959:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(K,mt,St,It){for(St=St||{},It=K.length;It--;St[K[It]]=mt);return St},_=[1,3],g=[1,5],k=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],C=[1,15],A=[1,16],I=[1,17],L=[1,18],Y=[1,19],q=[1,20],H=[1,21],V=[1,22],X=[1,23],J=[1,25],lt=[1,27],nt=[1,30],_t=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(K,mt,St,It,ft,vt,Wt){var jt=vt.length-1;switch(ft){case 2:return vt[jt-1];case 3:case 7:case 8:this.$=[];break;case 4:vt[jt-1].push(vt[jt]),this.$=vt[jt-1];break;case 5:case 6:this.$=vt[jt];break;case 9:It.setDateFormat(vt[jt].substr(11)),this.$=vt[jt].substr(11);break;case 10:It.enableInclusiveEndDates(),this.$=vt[jt].substr(18);break;case 11:It.TopAxis(),this.$=vt[jt].substr(8);break;case 12:It.setAxisFormat(vt[jt].substr(11)),this.$=vt[jt].substr(11);break;case 13:It.setExcludes(vt[jt].substr(9)),this.$=vt[jt].substr(9);break;case 14:It.setIncludes(vt[jt].substr(9)),this.$=vt[jt].substr(9);break;case 15:It.setTodayMarker(vt[jt].substr(12)),this.$=vt[jt].substr(12);break;case 16:It.setTitle(vt[jt].substr(6)),this.$=vt[jt].substr(6);break;case 17:It.addSection(vt[jt].substr(8)),this.$=vt[jt].substr(8);break;case 19:It.addTask(vt[jt-1],vt[jt]),this.$="task";break;case 23:this.$=vt[jt-1],It.setClickEvent(vt[jt-1],vt[jt],null);break;case 24:this.$=vt[jt-2],It.setClickEvent(vt[jt-2],vt[jt-1],vt[jt]);break;case 25:this.$=vt[jt-2],It.setClickEvent(vt[jt-2],vt[jt-1],null),It.setLink(vt[jt-2],vt[jt]);break;case 26:this.$=vt[jt-3],It.setClickEvent(vt[jt-3],vt[jt-2],vt[jt-1]),It.setLink(vt[jt-3],vt[jt]);break;case 27:this.$=vt[jt-2],It.setClickEvent(vt[jt-2],vt[jt],null),It.setLink(vt[jt-2],vt[jt-1]);break;case 28:this.$=vt[jt-3],It.setClickEvent(vt[jt-3],vt[jt-1],vt[jt]),It.setLink(vt[jt-3],vt[jt-2]);break;case 29:this.$=vt[jt-1],It.setLink(vt[jt-1],vt[jt]);break;case 30:case 36:this.$=vt[jt-1]+" "+vt[jt];break;case 31:case 32:case 34:this.$=vt[jt-2]+" "+vt[jt-1]+" "+vt[jt];break;case 33:case 35:this.$=vt[jt-3]+" "+vt[jt-2]+" "+vt[jt-1]+" "+vt[jt];break;case 37:It.parseDirective("%%{","open_directive");break;case 38:It.parseDirective(vt[jt],"type_directive");break;case 39:vt[jt]=vt[jt].trim().replace(/'/g,'"'),It.parseDirective(vt[jt],"arg_directive");break;case 40:It.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,24:4,34:g},{1:[3]},{3:6,4:2,5:_,24:4,34:g},d(k,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:C,13:A,14:I,15:L,16:Y,17:q,18:H,19:V,20:X,21:24,22:J,24:4,29:lt,34:g},{26:28,27:[1,29],37:nt},d([27,37],[2,38]),d(k,[2,8],{1:[2,2]}),d(k,[2,4]),{4:26,10:31,12:C,13:A,14:I,15:L,16:Y,17:q,18:H,19:V,20:X,21:24,22:J,24:4,29:lt,34:g},d(k,[2,6]),d(k,[2,7]),d(k,[2,9]),d(k,[2,10]),d(k,[2,11]),d(k,[2,12]),d(k,[2,13]),d(k,[2,14]),d(k,[2,15]),d(k,[2,16]),d(k,[2,17]),d(k,[2,18]),{23:[1,32]},d(k,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},d(k,[2,5]),d(k,[2,19]),d(k,[2,23],{31:[1,38],32:[1,39]}),d(k,[2,29],{30:[1,40]}),d(_t,[2,21]),{26:41,37:nt},{37:[2,39]},d(k,[2,24],{32:[1,42]}),d(k,[2,25]),d(k,[2,27],{31:[1,43]}),{11:[1,44]},d(k,[2,26]),d(k,[2,28]),d(_t,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(K,mt){if(!mt.recoverable){var St=new Error(K);throw St.hash=mt,St}this.trace(K)},parse:function(K){var mt=this,St=[0],It=[],ft=[null],vt=[],Wt=this.table,jt="",me=0,ge=0,pe=0,Dt=2,Zt=1,se=vt.slice.call(arguments,1),le=Object.create(this.lexer),ye={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ye.yy[Ot]=this.yy[Ot]);le.setInput(K,ye.yy),ye.yy.lexer=le,ye.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var We=le.yylloc;vt.push(We);var he=le.options&&le.options.ranges;function zt(){var ln;return typeof(ln=It.pop()||le.lex()||Zt)!="number"&&(ln instanceof Array&&(ln=(It=ln).pop()),ln=mt.symbols_[ln]||ln),ln}typeof ye.yy.parseError=="function"?this.parseError=ye.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var te,at,ne,Mt,Xt,Ht,Nt,oe,tn,ve={};;){if(ne=St[St.length-1],this.defaultActions[ne]?Mt=this.defaultActions[ne]:(te==null&&(te=zt()),Mt=Wt[ne]&&Wt[ne][te]),Mt===void 0||!Mt.length||!Mt[0]){var De="";for(Ht in tn=[],Wt[ne])this.terminals_[Ht]&&Ht>Dt&&tn.push("'"+this.terminals_[Ht]+"'");De=le.showPosition?"Parse error on line "+(me+1)+`:
`+le.showPosition()+`
Expecting `+tn.join(", ")+", got '"+(this.terminals_[te]||te)+"'":"Parse error on line "+(me+1)+": Unexpected "+(te==Zt?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(De,{text:le.match,token:this.terminals_[te]||te,line:le.yylineno,loc:We,expected:tn})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+te);switch(Mt[0]){case 1:St.push(te),ft.push(le.yytext),vt.push(le.yylloc),St.push(Mt[1]),te=null,at?(te=at,at=null):(ge=le.yyleng,jt=le.yytext,me=le.yylineno,We=le.yylloc,pe>0);break;case 2:if(Nt=this.productions_[Mt[1]][1],ve.$=ft[ft.length-Nt],ve._$={first_line:vt[vt.length-(Nt||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(Nt||1)].first_column,last_column:vt[vt.length-1].last_column},he&&(ve._$.range=[vt[vt.length-(Nt||1)].range[0],vt[vt.length-1].range[1]]),(Xt=this.performAction.apply(ve,[jt,ge,me,ye.yy,Mt[1],ft,vt].concat(se)))!==void 0)return Xt;Nt&&(St=St.slice(0,-1*Nt*2),ft=ft.slice(0,-1*Nt),vt=vt.slice(0,-1*Nt)),St.push(this.productions_[Mt[1]][0]),ft.push(ve.$),vt.push(ve._$),oe=Wt[St[St.length-2]][St[St.length-1]],St.push(oe);break;case 3:return!0}}return!0}},At={EOF:1,parseError:function(K,mt){if(!this.yy.parser)throw new Error(K);this.yy.parser.parseError(K,mt)},setInput:function(K,mt){return this.yy=mt||this.yy||{},this._input=K,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 K=this._input[0];return this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K,K.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),K},unput:function(K){var mt=K.length,St=K.split(/(?:\r\n?|\n)/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var It=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),St.length-1&&(this.yylineno-=St.length-1);var ft=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:St?(St.length===It.length?this.yylloc.first_column:0)+It[It.length-St.length].length-St[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(K){this.unput(this.match.slice(K))},pastInput:function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var K=this.pastInput(),mt=new Array(K.length+1).join("-");return K+this.upcomingInput()+`
`+mt+"^"},test_match:function(K,mt){var St,It,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),(It=K[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=It.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:It?It[It.length-1].length-It[It.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,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(K[0].length),this.matched+=K[0],St=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var vt in ft)this[vt]=ft[vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var K,mt,St,It;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),vt=0;vt<ft.length;vt++)if((St=this._input.match(this.rules[ft[vt]]))&&(!mt||St[0].length>mt[0].length)){if(mt=St,It=vt,this.options.backtrack_lexer){if((K=this.test_match(St,ft[vt]))!==!1)return K;if(this._backtrack){mt=!1;continue}return!1}if(!this.options.flex)break}return mt?(K=this.test_match(mt,ft[It]))!==!1&&K: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(){return this.next()||this.lex()},begin:function(K){this.conditionStack.push(K)},popState:function(){return this.conditionStack.length-1>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))>=0?this.conditionStack[K]:"INITIAL"},pushState:function(K){this.begin(K)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(K,mt,St,It){switch(St){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function st(){this.yy={}}return dt.lexer=At,st.prototype=dt,dt.Parser=st,new st}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(6878).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},2553:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(H,V,X,J){for(X=X||{},J=H.length;J--;X[H[J]]=V);return X},_=[2,3],g=[1,7],k=[7,12,15,17,19,20,21],C=[7,11,12,15,17,19,20,21],A=[2,20],I=[1,32],L={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(H,V,X,J,lt,nt,_t){var dt=nt.length-1;switch(lt){case 1:return nt[dt-1];case 2:return J.setDirection(nt[dt-3]),nt[dt-1];case 4:J.setOptions(nt[dt-1]),this.$=nt[dt];break;case 5:nt[dt-1]+=nt[dt],this.$=nt[dt-1];break;case 7:this.$=[];break;case 8:nt[dt-1].push(nt[dt]),this.$=nt[dt-1];break;case 9:this.$=nt[dt-1];break;case 11:J.commit(nt[dt]);break;case 12:J.branch(nt[dt]);break;case 13:J.checkout(nt[dt]);break;case 14:J.merge(nt[dt]);break;case 15:J.reset(nt[dt]);break;case 16:this.$="";break;case 17:this.$=nt[dt];break;case 18:this.$=nt[dt-1]+":"+nt[dt];break;case 19:this.$=nt[dt-1]+":"+J.count,J.count=0;break;case 20:J.count=0;break;case 21:J.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:_,9:6,12:g},{5:[1,8]},{7:[1,9]},d(k,[2,7],{10:10,11:[1,11]}),d(C,[2,6]),{6:12,7:_,9:6,12:g},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},d(C,[2,5]),{7:[1,21]},d(k,[2,8]),{12:[1,22]},d(k,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},d(k,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:A,25:31,26:I},{12:A,25:33,26:I},{12:[2,18]},{12:A,25:34,26:I},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(H,V){if(!V.recoverable){var X=new Error(H);throw X.hash=V,X}this.trace(H)},parse:function(H){var V=this,X=[0],J=[],lt=[null],nt=[],_t=this.table,dt="",At=0,st=0,K=0,mt=2,St=1,It=nt.slice.call(arguments,1),ft=Object.create(this.lexer),vt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(vt.yy[Wt]=this.yy[Wt]);ft.setInput(H,vt.yy),vt.yy.lexer=ft,vt.yy.parser=this,ft.yylloc===void 0&&(ft.yylloc={});var jt=ft.yylloc;nt.push(jt);var me=ft.options&&ft.options.ranges;function ge(){var at;return typeof(at=J.pop()||ft.lex()||St)!="number"&&(at instanceof Array&&(at=(J=at).pop()),at=V.symbols_[at]||at),at}typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pe,Dt,Zt,se,le,ye,Ot,We,he,zt={};;){if(Zt=X[X.length-1],this.defaultActions[Zt]?se=this.defaultActions[Zt]:(pe==null&&(pe=ge()),se=_t[Zt]&&_t[Zt][pe]),se===void 0||!se.length||!se[0]){var te="";for(ye in he=[],_t[Zt])this.terminals_[ye]&&ye>mt&&he.push("'"+this.terminals_[ye]+"'");te=ft.showPosition?"Parse error on line "+(At+1)+`:
`+ft.showPosition()+`
Expecting `+he.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+(At+1)+": Unexpected "+(pe==St?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(te,{text:ft.match,token:this.terminals_[pe]||pe,line:ft.yylineno,loc:jt,expected:he})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zt+", token: "+pe);switch(se[0]){case 1:X.push(pe),lt.push(ft.yytext),nt.push(ft.yylloc),X.push(se[1]),pe=null,Dt?(pe=Dt,Dt=null):(st=ft.yyleng,dt=ft.yytext,At=ft.yylineno,jt=ft.yylloc,K>0);break;case 2:if(Ot=this.productions_[se[1]][1],zt.$=lt[lt.length-Ot],zt._$={first_line:nt[nt.length-(Ot||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(Ot||1)].first_column,last_column:nt[nt.length-1].last_column},me&&(zt._$.range=[nt[nt.length-(Ot||1)].range[0],nt[nt.length-1].range[1]]),(le=this.performAction.apply(zt,[dt,st,At,vt.yy,se[1],lt,nt].concat(It)))!==void 0)return le;Ot&&(X=X.slice(0,-1*Ot*2),lt=lt.slice(0,-1*Ot),nt=nt.slice(0,-1*Ot)),X.push(this.productions_[se[1]][0]),lt.push(zt.$),nt.push(zt._$),We=_t[X[X.length-2]][X[X.length-1]],X.push(We);break;case 3:return!0}}return!0}},Y={EOF:1,parseError:function(H,V){if(!this.yy.parser)throw new Error(H);this.yy.parser.parseError(H,V)},setInput:function(H,V){return this.yy=V||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];return this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H,H.match(/(?:\r\n?|\n).*/g)?(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 V=H.length,X=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var J=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),X.length-1&&(this.yylineno-=X.length-1);var lt=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:X?(X.length===J.length?this.yylloc.first_column:0)+J[J.length-X.length].length-X[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},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(),V=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+V+"^"},test_match:function(H,V){var X,J,lt;if(this.options.backtrack_lexer&&(lt={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&&(lt.yylloc.range=this.yylloc.range.slice(0))),(J=H[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=J.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:J?J[J.length-1].length-J[J.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],X=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var nt in lt)this[nt]=lt[nt];return!1}return!1},next:function(){if(this.done)return this.EOF;var H,V,X,J;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),nt=0;nt<lt.length;nt++)if((X=this._input.match(this.rules[lt[nt]]))&&(!V||X[0].length>V[0].length)){if(V=X,J=nt,this.options.backtrack_lexer){if((H=this.test_match(X,lt[nt]))!==!1)return H;if(this._backtrack){V=!1;continue}return!1}if(!this.options.flex)break}return V?(H=this.test_match(V,lt[J]))!==!1&&H: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(){return this.next()||this.lex()},begin:function(H){this.conditionStack.push(H)},popState:function(){return this.conditionStack.length-1>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(H){return(H=this.conditionStack.length-1-Math.abs(H||0))>=0?this.conditionStack[H]:"INITIAL"},pushState:function(H){this.begin(H)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(H,V,X,J){switch(X){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function q(){this.yy={}}return L.lexer=Y,q.prototype=L,L.Parser=q,new q}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(8183).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},6765:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(A,I,L,Y){for(L=L||{},Y=A.length;Y--;L[A[Y]]=I);return L},_=[6,9,10],g={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(A,I,L,Y,q,H,V){switch(H.length,q){case 1:return Y;case 4:break;case 6:Y.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},d(_,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},d(_,[2,3]),d(_,[2,4]),d(_,[2,5]),d(_,[2,6])],defaultActions:{4:[2,1]},parseError:function(A,I){if(!I.recoverable){var L=new Error(A);throw L.hash=I,L}this.trace(A)},parse:function(A){var I=this,L=[0],Y=[],q=[null],H=[],V=this.table,X="",J=0,lt=0,nt=0,_t=2,dt=1,At=H.slice.call(arguments,1),st=Object.create(this.lexer),K={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(K.yy[mt]=this.yy[mt]);st.setInput(A,K.yy),K.yy.lexer=st,K.yy.parser=this,st.yylloc===void 0&&(st.yylloc={});var St=st.yylloc;H.push(St);var It=st.options&&st.options.ranges;function ft(){var Ot;return typeof(Ot=Y.pop()||st.lex()||dt)!="number"&&(Ot instanceof Array&&(Ot=(Y=Ot).pop()),Ot=I.symbols_[Ot]||Ot),Ot}typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vt,Wt,jt,me,ge,pe,Dt,Zt,se,le={};;){if(jt=L[L.length-1],this.defaultActions[jt]?me=this.defaultActions[jt]:(vt==null&&(vt=ft()),me=V[jt]&&V[jt][vt]),me===void 0||!me.length||!me[0]){var ye="";for(pe in se=[],V[jt])this.terminals_[pe]&&pe>_t&&se.push("'"+this.terminals_[pe]+"'");ye=st.showPosition?"Parse error on line "+(J+1)+`:
`+st.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[vt]||vt)+"'":"Parse error on line "+(J+1)+": Unexpected "+(vt==dt?"end of input":"'"+(this.terminals_[vt]||vt)+"'"),this.parseError(ye,{text:st.match,token:this.terminals_[vt]||vt,line:st.yylineno,loc:St,expected:se})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+jt+", token: "+vt);switch(me[0]){case 1:L.push(vt),q.push(st.yytext),H.push(st.yylloc),L.push(me[1]),vt=null,Wt?(vt=Wt,Wt=null):(lt=st.yyleng,X=st.yytext,J=st.yylineno,St=st.yylloc,nt>0);break;case 2:if(Dt=this.productions_[me[1]][1],le.$=q[q.length-Dt],le._$={first_line:H[H.length-(Dt||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Dt||1)].first_column,last_column:H[H.length-1].last_column},It&&(le._$.range=[H[H.length-(Dt||1)].range[0],H[H.length-1].range[1]]),(ge=this.performAction.apply(le,[X,lt,J,K.yy,me[1],q,H].concat(At)))!==void 0)return ge;Dt&&(L=L.slice(0,-1*Dt*2),q=q.slice(0,-1*Dt),H=H.slice(0,-1*Dt)),L.push(this.productions_[me[1]][0]),q.push(le.$),H.push(le._$),Zt=V[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(A,I){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,I)},setInput:function(A,I){return this.yy=I||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];return this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A,A.match(/(?:\r\n?|\n).*/g)?(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 I=A.length,L=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var Y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),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===Y.length?this.yylloc.first_column:0)+Y[Y.length-L.length].length-L[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},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(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
`+I+"^"},test_match:function(A,I){var L,Y,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))),(Y=A[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Y?Y[Y.length-1].length-Y[Y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],L=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var H in q)this[H]=q[H];return!1}return!1},next:function(){if(this.done)return this.EOF;var A,I,L,Y;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),H=0;H<q.length;H++)if((L=this._input.match(this.rules[q[H]]))&&(!I||L[0].length>I[0].length)){if(I=L,Y=H,this.options.backtrack_lexer){if((A=this.test_match(L,q[H]))!==!1)return A;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(A=this.test_match(I,q[Y]))!==!1&&A: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(){return this.next()||this.lex()},begin:function(A){this.conditionStack.push(A)},popState:function(){return this.conditionStack.length-1>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))>=0?this.conditionStack[A]:"INITIAL"},pushState:function(A){this.begin(A)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(A,I,L,Y){switch(L){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}}};function C(){this.yy={}}return g.lexer=k,C.prototype=g,g.Parser=C,new C}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(1428).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},7062:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(At,st,K,mt){for(K=K||{},mt=At.length;mt--;K[At[mt]]=st);return K},_=[1,4],g=[1,5],k=[1,6],C=[1,7],A=[1,9],I=[1,11,13,20,21,22,23],L=[2,5],Y=[1,6,11,13,20,21,22,23],q=[20,21,22],H=[2,8],V=[1,18],X=[1,19],J=[1,24],lt=[6,20,21,22,23],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(At,st,K,mt,St,It,ft){var vt=It.length-1;switch(St){case 4:mt.setShowData(!0);break;case 7:this.$=It[vt-1];break;case 9:mt.addSection(It[vt-1],mt.cleanupValue(It[vt]));break;case 10:this.$=It[vt].trim(),mt.setTitle(this.$);break;case 17:mt.parseDirective("%%{","open_directive");break;case 18:mt.parseDirective(It[vt],"type_directive");break;case 19:It[vt]=It[vt].trim().replace(/'/g,'"'),mt.parseDirective(It[vt],"arg_directive");break;case 20:mt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:_,15:8,20:g,21:k,22:C,23:A},{1:[3]},{3:10,4:2,5:3,6:_,15:8,20:g,21:k,22:C,23:A},{3:11,4:2,5:3,6:_,15:8,20:g,21:k,22:C,23:A},d(I,L,{7:12,8:[1,13]}),d(Y,[2,14]),d(Y,[2,15]),d(Y,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},d(q,H,{15:8,9:16,10:17,5:20,1:[2,3],11:V,13:X,23:A}),d(I,L,{7:21}),{17:22,18:[1,23],26:J},d([18,26],[2,18]),d(I,[2,6]),{4:25,20:g,21:k,22:C},{12:[1,26]},{14:[1,27]},d(q,[2,11]),d(q,H,{15:8,9:16,10:17,5:20,1:[2,4],11:V,13:X,23:A}),d(lt,[2,12]),{19:28,25:[1,29]},d(lt,[2,20]),d(I,[2,7]),d(q,[2,9]),d(q,[2,10]),{17:30,26:J},{26:[2,19]},d(lt,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(At,st){if(!st.recoverable){var K=new Error(At);throw K.hash=st,K}this.trace(At)},parse:function(At){var st=this,K=[0],mt=[],St=[null],It=[],ft=this.table,vt="",Wt=0,jt=0,me=0,ge=2,pe=1,Dt=It.slice.call(arguments,1),Zt=Object.create(this.lexer),se={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(se.yy[le]=this.yy[le]);Zt.setInput(At,se.yy),se.yy.lexer=Zt,se.yy.parser=this,Zt.yylloc===void 0&&(Zt.yylloc={});var ye=Zt.yylloc;It.push(ye);var Ot=Zt.options&&Zt.options.ranges;function We(){var ve;return typeof(ve=mt.pop()||Zt.lex()||pe)!="number"&&(ve instanceof Array&&(ve=(mt=ve).pop()),ve=st.symbols_[ve]||ve),ve}typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,zt,te,at,ne,Mt,Xt,Ht,Nt,oe={};;){if(te=K[K.length-1],this.defaultActions[te]?at=this.defaultActions[te]:(he==null&&(he=We()),at=ft[te]&&ft[te][he]),at===void 0||!at.length||!at[0]){var tn="";for(Mt in Nt=[],ft[te])this.terminals_[Mt]&&Mt>ge&&Nt.push("'"+this.terminals_[Mt]+"'");tn=Zt.showPosition?"Parse error on line "+(Wt+1)+`:
`+Zt.showPosition()+`
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(Wt+1)+": Unexpected "+(he==pe?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(tn,{text:Zt.match,token:this.terminals_[he]||he,line:Zt.yylineno,loc:ye,expected:Nt})}if(at[0]instanceof Array&&at.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+he);switch(at[0]){case 1:K.push(he),St.push(Zt.yytext),It.push(Zt.yylloc),K.push(at[1]),he=null,zt?(he=zt,zt=null):(jt=Zt.yyleng,vt=Zt.yytext,Wt=Zt.yylineno,ye=Zt.yylloc,me>0);break;case 2:if(Xt=this.productions_[at[1]][1],oe.$=St[St.length-Xt],oe._$={first_line:It[It.length-(Xt||1)].first_line,last_line:It[It.length-1].last_line,first_column:It[It.length-(Xt||1)].first_column,last_column:It[It.length-1].last_column},Ot&&(oe._$.range=[It[It.length-(Xt||1)].range[0],It[It.length-1].range[1]]),(ne=this.performAction.apply(oe,[vt,jt,Wt,se.yy,at[1],St,It].concat(Dt)))!==void 0)return ne;Xt&&(K=K.slice(0,-1*Xt*2),St=St.slice(0,-1*Xt),It=It.slice(0,-1*Xt)),K.push(this.productions_[at[1]][0]),St.push(oe.$),It.push(oe._$),Ht=ft[K[K.length-2]][K[K.length-1]],K.push(Ht);break;case 3:return!0}}return!0}},_t={EOF:1,parseError:function(At,st){if(!this.yy.parser)throw new Error(At);this.yy.parser.parseError(At,st)},setInput:function(At,st){return this.yy=st||this.yy||{},this._input=At,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 At=this._input[0];return this.yytext+=At,this.yyleng++,this.offset++,this.match+=At,this.matched+=At,At.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),At},unput:function(At){var st=At.length,K=At.split(/(?:\r\n?|\n)/g);this._input=At+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var St=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:K?(K.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-K.length].length-K[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(At){this.unput(this.match.slice(At))},pastInput:function(){var At=this.matched.substr(0,this.matched.length-this.match.length);return(At.length>20?"...":"")+At.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var At=this.match;return At.length<20&&(At+=this._input.substr(0,20-At.length)),(At.substr(0,20)+(At.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var At=this.pastInput(),st=new Array(At.length+1).join("-");return At+this.upcomingInput()+`
`+st+"^"},test_match:function(At,st){var K,mt,St;if(this.options.backtrack_lexer&&(St={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&&(St.yylloc.range=this.yylloc.range.slice(0))),(mt=At[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+At[0].length},this.yytext+=At[0],this.match+=At[0],this.matches=At,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(At[0].length),this.matched+=At[0],K=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var It in St)this[It]=St[It];return!1}return!1},next:function(){if(this.done)return this.EOF;var At,st,K,mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),It=0;It<St.length;It++)if((K=this._input.match(this.rules[St[It]]))&&(!st||K[0].length>st[0].length)){if(st=K,mt=It,this.options.backtrack_lexer){if((At=this.test_match(K,St[It]))!==!1)return At;if(this._backtrack){st=!1;continue}return!1}if(!this.options.flex)break}return st?(At=this.test_match(st,St[mt]))!==!1&&At: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(){return this.next()||this.lex()},begin:function(At){this.conditionStack.push(At)},popState:function(){return this.conditionStack.length-1>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(At){return(At=this.conditionStack.length-1-Math.abs(At||0))>=0?this.conditionStack[At]:"INITIAL"},pushState:function(At){this.begin(At)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(At,st,K,mt){switch(K){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function dt(){this.yy={}}return nt.lexer=_t,dt.prototype=nt,nt.Parser=dt,new dt}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(4551).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},3176:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(te,at,ne,Mt){for(ne=ne||{},Mt=te.length;Mt--;ne[te[Mt]]=at);return ne},_=[1,3],g=[1,5],k=[1,17],C=[2,10],A=[1,21],I=[1,22],L=[1,23],Y=[1,24],q=[1,25],H=[1,26],V=[1,19],X=[1,27],J=[1,28],lt=[1,31],nt=[66,67],_t=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],dt=[5,6,8,14,35,36,37,38,39,40,48,66,67],At=[1,51],st=[1,52],K=[1,53],mt=[1,54],St=[1,55],It=[1,56],ft=[1,57],vt=[57,58],Wt=[1,69],jt=[1,65],me=[1,66],ge=[1,67],pe=[1,68],Dt=[1,70],Zt=[1,74],se=[1,75],le=[1,72],ye=[1,73],Ot=[5,8,14,35,36,37,38,39,40,48,66,67],We={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(te,at,ne,Mt,Xt,Ht,Nt){var oe=Ht.length-1;switch(Xt){case 6:Mt.parseDirective("%%{","open_directive");break;case 7:Mt.parseDirective(Ht[oe],"type_directive");break;case 8:Ht[oe]=Ht[oe].trim().replace(/'/g,'"'),Mt.parseDirective(Ht[oe],"arg_directive");break;case 9:Mt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Mt.addRequirement(Ht[oe-3],Ht[oe-4]);break;case 17:Mt.setNewReqId(Ht[oe-2]);break;case 18:Mt.setNewReqText(Ht[oe-2]);break;case 19:Mt.setNewReqRisk(Ht[oe-2]);break;case 20:Mt.setNewReqVerifyMethod(Ht[oe-2]);break;case 23:this.$=Mt.RequirementType.REQUIREMENT;break;case 24:this.$=Mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Mt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Mt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Mt.RiskLevel.LOW_RISK;break;case 30:this.$=Mt.RiskLevel.MED_RISK;break;case 31:this.$=Mt.RiskLevel.HIGH_RISK;break;case 32:this.$=Mt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Mt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Mt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Mt.VerifyType.VERIFY_TEST;break;case 36:Mt.addElement(Ht[oe-3]);break;case 37:Mt.setNewElementType(Ht[oe-2]);break;case 38:Mt.setNewElementDocRef(Ht[oe-2]);break;case 41:Mt.addRelationship(Ht[oe-2],Ht[oe],Ht[oe-4]);break;case 42:Mt.addRelationship(Ht[oe-2],Ht[oe-4],Ht[oe]);break;case 43:this.$=Mt.Relationships.CONTAINS;break;case 44:this.$=Mt.Relationships.COPIES;break;case 45:this.$=Mt.Relationships.DERIVES;break;case 46:this.$=Mt.Relationships.SATISFIES;break;case 47:this.$=Mt.Relationships.VERIFIES;break;case 48:this.$=Mt.Relationships.REFINES;break;case 49:this.$=Mt.Relationships.TRACES}},table:[{3:1,4:2,6:_,9:4,14:g},{1:[3]},{3:7,4:2,5:[1,6],6:_,9:4,14:g},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:_,9:4,14:g},{1:[2,2]},{4:16,5:k,7:12,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{11:29,12:[1,30],17:lt},d([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:k,7:33,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{4:16,5:k,7:34,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{4:16,5:k,7:35,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{4:16,5:k,7:36,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{4:16,5:k,7:37,8:C,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:L,38:Y,39:q,40:H,48:V,66:X,67:J},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},d(nt,[2,23]),d(nt,[2,24]),d(nt,[2,25]),d(nt,[2,26]),d(nt,[2,27]),d(nt,[2,28]),d(_t,[2,52]),d(_t,[2,53]),d(dt,[2,4]),{13:46,16:[1,47]},d(dt,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:At,60:st,61:K,62:mt,63:St,64:It,65:ft},{56:58,59:At,60:st,61:K,62:mt,63:St,64:It,65:ft},{11:59,17:lt},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},d(vt,[2,43]),d(vt,[2,44]),d(vt,[2,45]),d(vt,[2,46]),d(vt,[2,47]),d(vt,[2,48]),d(vt,[2,49]),{58:[1,63]},d(dt,[2,5]),{5:Wt,24:64,25:jt,28:me,30:ge,32:pe,34:Dt},{5:Zt,34:se,50:71,51:le,53:ye},{27:76,66:X,67:J},{27:77,66:X,67:J},d(Ot,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:Wt,24:82,25:jt,28:me,30:ge,32:pe,34:Dt},d(Ot,[2,22]),d(Ot,[2,36]),{26:[1,83]},{26:[1,84]},{5:Zt,34:se,50:85,51:le,53:ye},d(Ot,[2,40]),d(Ot,[2,41]),d(Ot,[2,42]),{27:86,66:X,67:J},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},d(Ot,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},d(Ot,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:Wt,24:111,25:jt,28:me,30:ge,32:pe,34:Dt},{5:Wt,24:112,25:jt,28:me,30:ge,32:pe,34:Dt},{5:Wt,24:113,25:jt,28:me,30:ge,32:pe,34:Dt},{5:Wt,24:114,25:jt,28:me,30:ge,32:pe,34:Dt},{5:Zt,34:se,50:115,51:le,53:ye},{5:Zt,34:se,50:116,51:le,53:ye},d(Ot,[2,17]),d(Ot,[2,18]),d(Ot,[2,19]),d(Ot,[2,20]),d(Ot,[2,37]),d(Ot,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(te,at){if(!at.recoverable){var ne=new Error(te);throw ne.hash=at,ne}this.trace(te)},parse:function(te){var at=this,ne=[0],Mt=[],Xt=[null],Ht=[],Nt=this.table,oe="",tn=0,ve=0,De=0,ln=2,Xe=1,Ie=Ht.slice.call(arguments,1),Ae=Object.create(this.lexer),en={yy:{}};for(var Ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ue)&&(en.yy[Ue]=this.yy[Ue]);Ae.setInput(te,en.yy),en.yy.lexer=Ae,en.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var Ze=Ae.yylloc;Ht.push(Ze);var Qe=Ae.options&&Ae.options.ranges;function Le(){var wn;return typeof(wn=Mt.pop()||Ae.lex()||Xe)!="number"&&(wn instanceof Array&&(wn=(Mt=wn).pop()),wn=at.symbols_[wn]||wn),wn}typeof en.yy.parseError=="function"?this.parseError=en.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yn,Me,an,vn,Or,bn,Kn,cn,gn,Ke={};;){if(an=ne[ne.length-1],this.defaultActions[an]?vn=this.defaultActions[an]:(Yn==null&&(Yn=Le()),vn=Nt[an]&&Nt[an][Yn]),vn===void 0||!vn.length||!vn[0]){var Tn="";for(bn in gn=[],Nt[an])this.terminals_[bn]&&bn>ln&&gn.push("'"+this.terminals_[bn]+"'");Tn=Ae.showPosition?"Parse error on line "+(tn+1)+`:
`+Ae.showPosition()+`
Expecting `+gn.join(", ")+", got '"+(this.terminals_[Yn]||Yn)+"'":"Parse error on line "+(tn+1)+": Unexpected "+(Yn==Xe?"end of input":"'"+(this.terminals_[Yn]||Yn)+"'"),this.parseError(Tn,{text:Ae.match,token:this.terminals_[Yn]||Yn,line:Ae.yylineno,loc:Ze,expected:gn})}if(vn[0]instanceof Array&&vn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+an+", token: "+Yn);switch(vn[0]){case 1:ne.push(Yn),Xt.push(Ae.yytext),Ht.push(Ae.yylloc),ne.push(vn[1]),Yn=null,Me?(Yn=Me,Me=null):(ve=Ae.yyleng,oe=Ae.yytext,tn=Ae.yylineno,Ze=Ae.yylloc,De>0);break;case 2:if(Kn=this.productions_[vn[1]][1],Ke.$=Xt[Xt.length-Kn],Ke._$={first_line:Ht[Ht.length-(Kn||1)].first_line,last_line:Ht[Ht.length-1].last_line,first_column:Ht[Ht.length-(Kn||1)].first_column,last_column:Ht[Ht.length-1].last_column},Qe&&(Ke._$.range=[Ht[Ht.length-(Kn||1)].range[0],Ht[Ht.length-1].range[1]]),(Or=this.performAction.apply(Ke,[oe,ve,tn,en.yy,vn[1],Xt,Ht].concat(Ie)))!==void 0)return Or;Kn&&(ne=ne.slice(0,-1*Kn*2),Xt=Xt.slice(0,-1*Kn),Ht=Ht.slice(0,-1*Kn)),ne.push(this.productions_[vn[1]][0]),Xt.push(Ke.$),Ht.push(Ke._$),cn=Nt[ne[ne.length-2]][ne[ne.length-1]],ne.push(cn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(te,at){if(!this.yy.parser)throw new Error(te);this.yy.parser.parseError(te,at)},setInput:function(te,at){return this.yy=at||this.yy||{},this._input=te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var te=this._input[0];return this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te,te.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),te},unput:function(te){var at=te.length,ne=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var Mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var Xt=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:ne?(ne.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-ne.length].length-ne[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[Xt[0],Xt[0]+this.yyleng-at]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(te){this.unput(this.match.slice(te))},pastInput:function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var te=this.match;return te.length<20&&(te+=this._input.substr(0,20-te.length)),(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var te=this.pastInput(),at=new Array(te.length+1).join("-");return te+this.upcomingInput()+`
`+at+"^"},test_match:function(te,at){var ne,Mt,Xt;if(this.options.backtrack_lexer&&(Xt={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&&(Xt.yylloc.range=this.yylloc.range.slice(0))),(Mt=te[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(te[0].length),this.matched+=te[0],ne=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var Ht in Xt)this[Ht]=Xt[Ht];return!1}return!1},next:function(){if(this.done)return this.EOF;var te,at,ne,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Xt=this._currentRules(),Ht=0;Ht<Xt.length;Ht++)if((ne=this._input.match(this.rules[Xt[Ht]]))&&(!at||ne[0].length>at[0].length)){if(at=ne,Mt=Ht,this.options.backtrack_lexer){if((te=this.test_match(ne,Xt[Ht]))!==!1)return te;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(te=this.test_match(at,Xt[Mt]))!==!1&&te: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(){return this.next()||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){return this.conditionStack.length-1>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))>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,at,ne,Mt){switch(ne){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return at.yytext=at.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,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,47],inclusive:!0}}};function zt(){this.yy={}}return We.lexer=he,zt.prototype=We,We.Parser=zt,new zt}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(8800).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},6876:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(Ot,We,he,zt){for(he=he||{},zt=Ot.length;zt--;he[Ot[zt]]=We);return he},_=[1,2],g=[1,3],k=[1,5],C=[1,7],A=[2,5],I=[1,15],L=[1,17],Y=[1,18],q=[1,19],H=[1,21],V=[1,22],X=[1,23],J=[1,29],lt=[1,30],nt=[1,31],_t=[1,32],dt=[1,33],At=[1,34],st=[1,37],K=[1,38],mt=[1,39],St=[1,40],It=[1,41],ft=[1,42],vt=[1,45],Wt=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],jt=[1,58],me=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],ge=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],pe=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Dt=[55,56,57],Zt=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],se={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Ot,We,he,zt,te,at,ne){var Mt=at.length-1;switch(te){case 4:return zt.apply(at[Mt]),at[Mt];case 5:case 9:this.$=[];break;case 6:at[Mt-1].push(at[Mt]),this.$=at[Mt-1];break;case 7:case 8:case 45:this.$=at[Mt];break;case 12:at[Mt-3].type="addParticipant",at[Mt-3].description=zt.parseMessage(at[Mt-1]),this.$=at[Mt-3];break;case 13:at[Mt-1].type="addParticipant",this.$=at[Mt-1];break;case 14:at[Mt-3].type="addActor",at[Mt-3].description=zt.parseMessage(at[Mt-1]),this.$=at[Mt-3];break;case 15:at[Mt-1].type="addActor",this.$=at[Mt-1];break;case 17:zt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:zt.LINETYPE.ACTIVE_START,actor:at[Mt-1]};break;case 19:this.$={type:"activeEnd",signalType:zt.LINETYPE.ACTIVE_END,actor:at[Mt-1]};break;case 25:this.$=[{type:"setTitle",text:at[Mt-1]}];break;case 26:at[Mt-1].unshift({type:"loopStart",loopText:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.LOOP_START}),at[Mt-1].push({type:"loopEnd",loopText:at[Mt-2],signalType:zt.LINETYPE.LOOP_END}),this.$=at[Mt-1];break;case 27:at[Mt-1].unshift({type:"rectStart",color:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.RECT_START}),at[Mt-1].push({type:"rectEnd",color:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.RECT_END}),this.$=at[Mt-1];break;case 28:at[Mt-1].unshift({type:"optStart",optText:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.OPT_START}),at[Mt-1].push({type:"optEnd",optText:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.OPT_END}),this.$=at[Mt-1];break;case 29:at[Mt-1].unshift({type:"altStart",altText:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.ALT_START}),at[Mt-1].push({type:"altEnd",signalType:zt.LINETYPE.ALT_END}),this.$=at[Mt-1];break;case 30:at[Mt-1].unshift({type:"parStart",parText:zt.parseMessage(at[Mt-2]),signalType:zt.LINETYPE.PAR_START}),at[Mt-1].push({type:"parEnd",signalType:zt.LINETYPE.PAR_END}),this.$=at[Mt-1];break;case 33:this.$=at[Mt-3].concat([{type:"and",parText:zt.parseMessage(at[Mt-1]),signalType:zt.LINETYPE.PAR_AND},at[Mt]]);break;case 35:this.$=at[Mt-3].concat([{type:"else",altText:zt.parseMessage(at[Mt-1]),signalType:zt.LINETYPE.ALT_ELSE},at[Mt]]);break;case 36:this.$=[at[Mt-1],{type:"addNote",placement:at[Mt-2],actor:at[Mt-1].actor,text:at[Mt]}];break;case 37:at[Mt-2]=[].concat(at[Mt-1],at[Mt-1]).slice(0,2),at[Mt-2][0]=at[Mt-2][0].actor,at[Mt-2][1]=at[Mt-2][1].actor,this.$=[at[Mt-1],{type:"addNote",placement:zt.PLACEMENT.OVER,actor:at[Mt-2].slice(0,2),text:at[Mt]}];break;case 38:this.$=[at[Mt-1],{type:"addLinks",actor:at[Mt-1].actor,text:at[Mt]}];break;case 39:this.$=[at[Mt-1],{type:"addALink",actor:at[Mt-1].actor,text:at[Mt]}];break;case 40:this.$=[at[Mt-1],{type:"addProperties",actor:at[Mt-1].actor,text:at[Mt]}];break;case 41:this.$=[at[Mt-1],{type:"addDetails",actor:at[Mt-1].actor,text:at[Mt]}];break;case 44:this.$=[at[Mt-2],at[Mt]];break;case 46:this.$=zt.PLACEMENT.LEFTOF;break;case 47:this.$=zt.PLACEMENT.RIGHTOF;break;case 48:this.$=[at[Mt-4],at[Mt-1],{type:"addMessage",from:at[Mt-4].actor,to:at[Mt-1].actor,signalType:at[Mt-3],msg:at[Mt]},{type:"activeStart",signalType:zt.LINETYPE.ACTIVE_START,actor:at[Mt-1]}];break;case 49:this.$=[at[Mt-4],at[Mt-1],{type:"addMessage",from:at[Mt-4].actor,to:at[Mt-1].actor,signalType:at[Mt-3],msg:at[Mt]},{type:"activeEnd",signalType:zt.LINETYPE.ACTIVE_END,actor:at[Mt-4]}];break;case 50:this.$=[at[Mt-3],at[Mt-1],{type:"addMessage",from:at[Mt-3].actor,to:at[Mt-1].actor,signalType:at[Mt-2],msg:at[Mt]}];break;case 51:this.$={type:"addParticipant",actor:at[Mt]};break;case 52:this.$=zt.LINETYPE.SOLID_OPEN;break;case 53:this.$=zt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=zt.LINETYPE.SOLID;break;case 55:this.$=zt.LINETYPE.DOTTED;break;case 56:this.$=zt.LINETYPE.SOLID_CROSS;break;case 57:this.$=zt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=zt.LINETYPE.SOLID_POINT;break;case 59:this.$=zt.LINETYPE.DOTTED_POINT;break;case 60:this.$=zt.parseMessage(at[Mt].trim().substring(1));break;case 61:zt.parseDirective("%%{","open_directive");break;case 62:zt.parseDirective(at[Mt],"type_directive");break;case 63:at[Mt]=at[Mt].trim().replace(/'/g,'"'),zt.parseDirective(at[Mt],"arg_directive");break;case 64:zt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:g,6:4,7:k,11:6,67:C},{1:[3]},{3:8,4:_,5:g,6:4,7:k,11:6,67:C},{3:9,4:_,5:g,6:4,7:k,11:6,67:C},{3:10,4:_,5:g,6:4,7:k,11:6,67:C},d([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],A,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{13:43,14:[1,44],70:vt},d([14,70],[2,62]),d(Wt,[2,6]),{6:35,10:46,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},d(Wt,[2,8]),d(Wt,[2,9]),{17:47,57:ft},{17:48,57:ft},{5:[1,49]},d(Wt,[2,17]),{17:50,57:ft},{17:51,57:ft},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:jt},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},d(Wt,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:ft},{17:78,57:ft},{17:79,57:ft},{17:80,57:ft},d([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},d(Wt,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},d(Wt,[2,16]),{5:[1,88]},{5:[1,89]},d(Wt,[2,20]),d(Wt,[2,21]),d(Wt,[2,22]),d(Wt,[2,23]),d(Wt,[2,24]),{5:[1,90]},{5:[2,60]},d(me,A,{8:91}),d(me,A,{8:92}),d(me,A,{8:93}),d(ge,A,{37:94,8:95}),d(pe,A,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:ft},d(Dt,[2,52]),d(Dt,[2,53]),d(Dt,[2,54]),d(Dt,[2,55]),d(Dt,[2,56]),d(Dt,[2,57]),d(Dt,[2,58]),d(Dt,[2,59]),{17:101,57:ft},{17:103,45:102,57:ft},{57:[2,46]},{57:[2,47]},{31:104,66:jt},{31:105,66:jt},{31:106,66:jt},{31:107,66:jt},d(Zt,[2,10]),{13:108,70:vt},{70:[2,63]},{19:[1,109]},d(Wt,[2,13]),{19:[1,110]},d(Wt,[2,15]),d(Wt,[2,18]),d(Wt,[2,19]),d(Wt,[2,25]),{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,111],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,112],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,113],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{33:[1,114]},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[2,34],34:nt,35:_t,36:dt,38:At,41:[1,115],42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{33:[1,116]},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:q,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[2,32],34:nt,35:_t,36:dt,38:At,40:[1,117],42:st,46:K,47:mt,48:St,49:It,57:ft,67:C},{17:118,57:ft},{17:119,57:ft},{31:120,66:jt},{31:121,66:jt},{31:122,66:jt},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},d(Wt,[2,26]),d(Wt,[2,27]),d(Wt,[2,28]),d(Wt,[2,29]),{19:[1,127]},d(Wt,[2,30]),{19:[1,128]},{31:129,66:jt},{31:130,66:jt},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:ft},d(Zt,[2,11]),d(Wt,[2,12]),d(Wt,[2,14]),d(ge,A,{8:95,37:132}),d(pe,A,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(Ot,We){if(!We.recoverable){var he=new Error(Ot);throw he.hash=We,he}this.trace(Ot)},parse:function(Ot){var We=this,he=[0],zt=[],te=[null],at=[],ne=this.table,Mt="",Xt=0,Ht=0,Nt=0,oe=2,tn=1,ve=at.slice.call(arguments,1),De=Object.create(this.lexer),ln={yy:{}};for(var Xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xe)&&(ln.yy[Xe]=this.yy[Xe]);De.setInput(Ot,ln.yy),ln.yy.lexer=De,ln.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var Ie=De.yylloc;at.push(Ie);var Ae=De.options&&De.options.ranges;function en(){var cn;return typeof(cn=zt.pop()||De.lex()||tn)!="number"&&(cn instanceof Array&&(cn=(zt=cn).pop()),cn=We.symbols_[cn]||cn),cn}typeof ln.yy.parseError=="function"?this.parseError=ln.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ue,Ze,Qe,Le,Yn,Me,an,vn,Or,bn={};;){if(Qe=he[he.length-1],this.defaultActions[Qe]?Le=this.defaultActions[Qe]:(Ue==null&&(Ue=en()),Le=ne[Qe]&&ne[Qe][Ue]),Le===void 0||!Le.length||!Le[0]){var Kn="";for(Me in Or=[],ne[Qe])this.terminals_[Me]&&Me>oe&&Or.push("'"+this.terminals_[Me]+"'");Kn=De.showPosition?"Parse error on line "+(Xt+1)+`:
`+De.showPosition()+`
Expecting `+Or.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":"Parse error on line "+(Xt+1)+": Unexpected "+(Ue==tn?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Kn,{text:De.match,token:this.terminals_[Ue]||Ue,line:De.yylineno,loc:Ie,expected:Or})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qe+", token: "+Ue);switch(Le[0]){case 1:he.push(Ue),te.push(De.yytext),at.push(De.yylloc),he.push(Le[1]),Ue=null,Ze?(Ue=Ze,Ze=null):(Ht=De.yyleng,Mt=De.yytext,Xt=De.yylineno,Ie=De.yylloc,Nt>0);break;case 2:if(an=this.productions_[Le[1]][1],bn.$=te[te.length-an],bn._$={first_line:at[at.length-(an||1)].first_line,last_line:at[at.length-1].last_line,first_column:at[at.length-(an||1)].first_column,last_column:at[at.length-1].last_column},Ae&&(bn._$.range=[at[at.length-(an||1)].range[0],at[at.length-1].range[1]]),(Yn=this.performAction.apply(bn,[Mt,Ht,Xt,ln.yy,Le[1],te,at].concat(ve)))!==void 0)return Yn;an&&(he=he.slice(0,-1*an*2),te=te.slice(0,-1*an),at=at.slice(0,-1*an)),he.push(this.productions_[Le[1]][0]),te.push(bn.$),at.push(bn._$),vn=ne[he[he.length-2]][he[he.length-1]],he.push(vn);break;case 3:return!0}}return!0}},le={EOF:1,parseError:function(Ot,We){if(!this.yy.parser)throw new Error(Ot);this.yy.parser.parseError(Ot,We)},setInput:function(Ot,We){return this.yy=We||this.yy||{},this._input=Ot,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 Ot=this._input[0];return this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot,Ot.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ot},unput:function(Ot){var We=Ot.length,he=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-We),this.offset-=We;var zt=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),he.length-1&&(this.yylineno-=he.length-1);var te=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:he?(he.length===zt.length?this.yylloc.first_column:0)+zt[zt.length-he.length].length-he[0].length:this.yylloc.first_column-We},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-We]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),We=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
`+We+"^"},test_match:function(Ot,We){var he,zt,te;if(this.options.backtrack_lexer&&(te={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&&(te.yylloc.range=this.yylloc.range.slice(0))),(zt=Ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:zt?zt[zt.length-1].length-zt[zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,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(Ot[0].length),this.matched+=Ot[0],he=this.performAction.call(this,this.yy,this,We,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var at in te)this[at]=te[at];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ot,We,he,zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),at=0;at<te.length;at++)if((he=this._input.match(this.rules[te[at]]))&&(!We||he[0].length>We[0].length)){if(We=he,zt=at,this.options.backtrack_lexer){if((Ot=this.test_match(he,te[at]))!==!1)return Ot;if(this._backtrack){We=!1;continue}return!1}if(!this.options.flex)break}return We?(Ot=this.test_match(We,te[zt]))!==!1&&Ot: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(){return this.next()||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){return this.conditionStack.length-1>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(Ot){return(Ot=this.conditionStack.length-1-Math.abs(Ot||0))>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ot,We,he,zt){switch(he){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return We.yytext=We.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return We.yytext=We.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\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,/^(?:and\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\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\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:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,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],inclusive:!0}}};function ye(){this.yy={}}return se.lexer=le,ye.prototype=se,se.Parser=ye,new ye}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(1993).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},3584:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(Dt,Zt,se,le){for(se=se||{},le=Dt.length;le--;se[Dt[le]]=Zt);return se},_=[1,2],g=[1,3],k=[1,5],C=[1,7],A=[2,5],I=[1,15],L=[1,17],Y=[1,19],q=[1,20],H=[1,21],V=[1,22],X=[1,30],J=[1,23],lt=[1,24],nt=[1,25],_t=[1,26],dt=[1,27],At=[1,32],st=[1,33],K=[1,34],mt=[1,35],St=[1,31],It=[1,38],ft=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],vt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Wt=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],jt=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],me={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",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",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(Dt,Zt,se,le,ye,Ot,We){var he=Ot.length-1;switch(ye){case 4:return le.setRootDoc(Ot[he]),Ot[he];case 5:this.$=[];break;case 6:Ot[he]!="nl"&&(Ot[he-1].push(Ot[he]),this.$=Ot[he-1]);break;case 7:case 8:case 36:case 37:this.$=Ot[he];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:Ot[he],type:"default",description:""};break;case 11:this.$={stmt:"state",id:Ot[he-1],type:"default",description:le.trimColon(Ot[he])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:Ot[he-2],type:"default",description:""},state2:{stmt:"state",id:Ot[he],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:Ot[he-3],type:"default",description:""},state2:{stmt:"state",id:Ot[he-1],type:"default",description:""},description:Ot[he].substr(1).trim()};break;case 17:this.$={stmt:"state",id:Ot[he-3],type:"default",description:"",doc:Ot[he-1]};break;case 18:var zt=Ot[he],te=Ot[he-2].trim();if(Ot[he].match(":")){var at=Ot[he].split(":");zt=at[0],te=[te,at[1]]}this.$={stmt:"state",id:zt,type:"default",description:te};break;case 19:this.$={stmt:"state",id:Ot[he-3],type:"default",description:Ot[he-5],doc:Ot[he-1]};break;case 20:this.$={stmt:"state",id:Ot[he],type:"fork"};break;case 21:this.$={stmt:"state",id:Ot[he],type:"join"};break;case 22:this.$={stmt:"state",id:Ot[he],type:"choice"};break;case 23:this.$={stmt:"state",id:le.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:Ot[he-1].trim(),note:{position:Ot[he-2].trim(),text:Ot[he].trim()}};break;case 30:le.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:le.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:le.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:le.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:le.parseDirective("%%{","open_directive");break;case 41:le.parseDirective(Ot[he],"type_directive");break;case 42:Ot[he]=Ot[he].trim().replace(/'/g,'"'),le.parseDirective(Ot[he],"arg_directive");break;case 43:le.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:g,6:4,7:k,31:6,45:C},{1:[3]},{3:8,4:_,5:g,6:4,7:k,31:6,45:C},{3:9,4:_,5:g,6:4,7:k,31:6,45:C},{3:10,4:_,5:g,6:4,7:k,31:6,45:C},d([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],A,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:q,17:H,20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},{33:36,34:[1,37],48:It},d([34,48],[2,41]),d(ft,[2,6]),{6:28,10:39,11:18,14:Y,15:q,17:H,20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,8]),d(ft,[2,9]),d(ft,[2,10],{12:[1,40],13:[1,41]}),d(ft,[2,14]),{16:[1,42]},d(ft,[2,16],{18:[1,43]}),{21:[1,44]},d(ft,[2,20]),d(ft,[2,21]),d(ft,[2,22]),d(ft,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},d(ft,[2,26]),d(ft,[2,27]),d(vt,[2,36]),d(vt,[2,37]),d(ft,[2,30]),d(ft,[2,31]),d(ft,[2,32]),d(ft,[2,33]),d(Wt,[2,28]),{35:49,47:[1,50]},d(Wt,[2,43]),d(ft,[2,7]),d(ft,[2,11]),{11:51,22:X,42:St},d(ft,[2,15]),d(jt,A,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:It},{48:[2,42]},d(ft,[2,12],{12:[1,57]}),{4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:q,17:H,19:[1,58],20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},d(Wt,[2,29]),d(ft,[2,13]),d(ft,[2,17]),d(jt,A,{8:62}),d(ft,[2,24]),d(ft,[2,25]),{4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:q,17:H,19:[1,63],20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(Dt,Zt){if(!Zt.recoverable){var se=new Error(Dt);throw se.hash=Zt,se}this.trace(Dt)},parse:function(Dt){var Zt=this,se=[0],le=[],ye=[null],Ot=[],We=this.table,he="",zt=0,te=0,at=0,ne=2,Mt=1,Xt=Ot.slice.call(arguments,1),Ht=Object.create(this.lexer),Nt={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(Nt.yy[oe]=this.yy[oe]);Ht.setInput(Dt,Nt.yy),Nt.yy.lexer=Ht,Nt.yy.parser=this,Ht.yylloc===void 0&&(Ht.yylloc={});var tn=Ht.yylloc;Ot.push(tn);var ve=Ht.options&&Ht.options.ranges;function De(){var an;return typeof(an=le.pop()||Ht.lex()||Mt)!="number"&&(an instanceof Array&&(an=(le=an).pop()),an=Zt.symbols_[an]||an),an}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ln,Xe,Ie,Ae,en,Ue,Ze,Qe,Le,Yn={};;){if(Ie=se[se.length-1],this.defaultActions[Ie]?Ae=this.defaultActions[Ie]:(ln==null&&(ln=De()),Ae=We[Ie]&&We[Ie][ln]),Ae===void 0||!Ae.length||!Ae[0]){var Me="";for(Ue in Le=[],We[Ie])this.terminals_[Ue]&&Ue>ne&&Le.push("'"+this.terminals_[Ue]+"'");Me=Ht.showPosition?"Parse error on line "+(zt+1)+`:
`+Ht.showPosition()+`
Expecting `+Le.join(", ")+", got '"+(this.terminals_[ln]||ln)+"'":"Parse error on line "+(zt+1)+": Unexpected "+(ln==Mt?"end of input":"'"+(this.terminals_[ln]||ln)+"'"),this.parseError(Me,{text:Ht.match,token:this.terminals_[ln]||ln,line:Ht.yylineno,loc:tn,expected:Le})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+ln);switch(Ae[0]){case 1:se.push(ln),ye.push(Ht.yytext),Ot.push(Ht.yylloc),se.push(Ae[1]),ln=null,Xe?(ln=Xe,Xe=null):(te=Ht.yyleng,he=Ht.yytext,zt=Ht.yylineno,tn=Ht.yylloc,at>0);break;case 2:if(Ze=this.productions_[Ae[1]][1],Yn.$=ye[ye.length-Ze],Yn._$={first_line:Ot[Ot.length-(Ze||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(Ze||1)].first_column,last_column:Ot[Ot.length-1].last_column},ve&&(Yn._$.range=[Ot[Ot.length-(Ze||1)].range[0],Ot[Ot.length-1].range[1]]),(en=this.performAction.apply(Yn,[he,te,zt,Nt.yy,Ae[1],ye,Ot].concat(Xt)))!==void 0)return en;Ze&&(se=se.slice(0,-1*Ze*2),ye=ye.slice(0,-1*Ze),Ot=Ot.slice(0,-1*Ze)),se.push(this.productions_[Ae[1]][0]),ye.push(Yn.$),Ot.push(Yn._$),Qe=We[se[se.length-2]][se[se.length-1]],se.push(Qe);break;case 3:return!0}}return!0}},ge={EOF:1,parseError:function(Dt,Zt){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,Zt)},setInput:function(Dt,Zt){return this.yy=Zt||this.yy||{},this._input=Dt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Dt},unput:function(Dt){var Zt=Dt.length,se=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var le=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),se.length-1&&(this.yylineno-=se.length-1);var ye=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:se?(se.length===le.length?this.yylloc.first_column:0)+le[le.length-se.length].length-se[0].length:this.yylloc.first_column-Zt},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-Zt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),Zt=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
`+Zt+"^"},test_match:function(Dt,Zt){var se,le,ye;if(this.options.backtrack_lexer&&(ye={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&&(ye.yylloc.range=this.yylloc.range.slice(0))),(le=Dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=le.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:le?le[le.length-1].length-le[le.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Dt[0].length),this.matched+=Dt[0],se=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var Ot in ye)this[Ot]=ye[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,Zt,se,le;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),Ot=0;Ot<ye.length;Ot++)if((se=this._input.match(this.rules[ye[Ot]]))&&(!Zt||se[0].length>Zt[0].length)){if(Zt=se,le=Ot,this.options.backtrack_lexer){if((Dt=this.test_match(se,ye[Ot]))!==!1)return Dt;if(this._backtrack){Zt=!1;continue}return!1}if(!this.options.flex)break}return Zt?(Dt=this.test_match(Zt,ye[le]))!==!1&&Dt: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(){return this.next()||this.lex()},begin:function(Dt){this.conditionStack.push(Dt)},popState:function(){return this.conditionStack.length-1>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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,Zt,se,le){switch(se){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),Zt.yytext=Zt.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),Zt.yytext=Zt.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),Zt.yytext=Zt.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),Zt.yytext=Zt.yytext.substr(2).trim(),29;case 50:return this.popState(),Zt.yytext=Zt.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return Zt.yytext=Zt.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?: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,/^(?:\})/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],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function pe(){this.yy={}}return me.lexer=ge,pe.prototype=me,me.Parser=pe,new pe}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(3069).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},9763:(S,M,h)=>{S=h.nmd(S);var m=function(){var d=function(X,J,lt,nt){for(lt=lt||{},nt=X.length;nt--;lt[X[nt]]=J);return lt},_=[1,2],g=[1,5],k=[6,9,11,17,18,19,21],C=[1,15],A=[1,16],I=[1,17],L=[1,21],Y=[4,6,9,11,17,18,19,21],q={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(X,J,lt,nt,_t,dt,At){var st=dt.length-1;switch(_t){case 1:return dt[st-1];case 3:case 7:case 8:this.$=[];break;case 4:dt[st-1].push(dt[st]),this.$=dt[st-1];break;case 5:case 6:this.$=dt[st];break;case 11:nt.setTitle(dt[st].substr(6)),this.$=dt[st].substr(6);break;case 12:nt.addSection(dt[st].substr(8)),this.$=dt[st].substr(8);break;case 13:nt.addTask(dt[st-1],dt[st]),this.$="task";break;case 15:nt.parseDirective("%%{","open_directive");break;case 16:nt.parseDirective(dt[st],"type_directive");break;case 17:dt[st]=dt[st].trim().replace(/'/g,'"'),nt.parseDirective(dt[st],"arg_directive");break;case 18:nt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,21:g},{1:[3]},d(k,[2,3],{5:6}),{3:7,4:_,7:3,12:4,21:g},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:C,18:A,19:I,21:g},{1:[2,2]},{14:19,15:[1,20],24:L},d([15,24],[2,16]),d(k,[2,8],{1:[2,1]}),d(k,[2,4]),{7:18,10:22,12:4,17:C,18:A,19:I,21:g},d(k,[2,6]),d(k,[2,7]),d(k,[2,11]),d(k,[2,12]),{20:[1,23]},d(k,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},d(k,[2,5]),d(k,[2,13]),d(Y,[2,9]),{14:27,24:L},{24:[2,17]},{11:[1,28]},d(Y,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(X,J){if(!J.recoverable){var lt=new Error(X);throw lt.hash=J,lt}this.trace(X)},parse:function(X){var J=this,lt=[0],nt=[],_t=[null],dt=[],At=this.table,st="",K=0,mt=0,St=0,It=2,ft=1,vt=dt.slice.call(arguments,1),Wt=Object.create(this.lexer),jt={yy:{}};for(var me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,me)&&(jt.yy[me]=this.yy[me]);Wt.setInput(X,jt.yy),jt.yy.lexer=Wt,jt.yy.parser=this,Wt.yylloc===void 0&&(Wt.yylloc={});var ge=Wt.yylloc;dt.push(ge);var pe=Wt.options&&Wt.options.ranges;function Dt(){var Mt;return typeof(Mt=nt.pop()||Wt.lex()||ft)!="number"&&(Mt instanceof Array&&(Mt=(nt=Mt).pop()),Mt=J.symbols_[Mt]||Mt),Mt}typeof jt.yy.parseError=="function"?this.parseError=jt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Zt,se,le,ye,Ot,We,he,zt,te,at={};;){if(le=lt[lt.length-1],this.defaultActions[le]?ye=this.defaultActions[le]:(Zt==null&&(Zt=Dt()),ye=At[le]&&At[le][Zt]),ye===void 0||!ye.length||!ye[0]){var ne="";for(We in te=[],At[le])this.terminals_[We]&&We>It&&te.push("'"+this.terminals_[We]+"'");ne=Wt.showPosition?"Parse error on line "+(K+1)+`:
`+Wt.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[Zt]||Zt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(Zt==ft?"end of input":"'"+(this.terminals_[Zt]||Zt)+"'"),this.parseError(ne,{text:Wt.match,token:this.terminals_[Zt]||Zt,line:Wt.yylineno,loc:ge,expected:te})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+Zt);switch(ye[0]){case 1:lt.push(Zt),_t.push(Wt.yytext),dt.push(Wt.yylloc),lt.push(ye[1]),Zt=null,se?(Zt=se,se=null):(mt=Wt.yyleng,st=Wt.yytext,K=Wt.yylineno,ge=Wt.yylloc,St>0);break;case 2:if(he=this.productions_[ye[1]][1],at.$=_t[_t.length-he],at._$={first_line:dt[dt.length-(he||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(he||1)].first_column,last_column:dt[dt.length-1].last_column},pe&&(at._$.range=[dt[dt.length-(he||1)].range[0],dt[dt.length-1].range[1]]),(Ot=this.performAction.apply(at,[st,mt,K,jt.yy,ye[1],_t,dt].concat(vt)))!==void 0)return Ot;he&&(lt=lt.slice(0,-1*he*2),_t=_t.slice(0,-1*he),dt=dt.slice(0,-1*he)),lt.push(this.productions_[ye[1]][0]),_t.push(at.$),dt.push(at._$),zt=At[lt[lt.length-2]][lt[lt.length-1]],lt.push(zt);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(X,J){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,J)},setInput:function(X,J){return this.yy=J||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var X=this._input[0];return this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X,X.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var J=X.length,lt=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-J),this.offset-=J;var nt=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),lt.length-1&&(this.yylineno-=lt.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:lt?(lt.length===nt.length?this.yylloc.first_column:0)+nt[nt.length-lt.length].length-lt[0].length:this.yylloc.first_column-J},this.options.ranges&&(this.yylloc.range=[_t[0],_t[0]+this.yyleng-J]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),J=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
`+J+"^"},test_match:function(X,J){var lt,nt,_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))),(nt=X[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nt?nt[nt.length-1].length-nt[nt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],lt=this.performAction.call(this,this.yy,this,J,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var dt in _t)this[dt]=_t[dt];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,J,lt,nt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _t=this._currentRules(),dt=0;dt<_t.length;dt++)if((lt=this._input.match(this.rules[_t[dt]]))&&(!J||lt[0].length>J[0].length)){if(J=lt,nt=dt,this.options.backtrack_lexer){if((X=this.test_match(lt,_t[dt]))!==!1)return X;if(this._backtrack){J=!1;continue}return!1}if(!this.options.flex)break}return J?(X=this.test_match(J,_t[nt]))!==!1&&X: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(){return this.next()||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.length-1>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))>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,J,lt,nt){switch(lt){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function V(){this.yy={}}return q.lexer=H,V.prototype=q,q.Parser=V,new V}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=h(9143).readFileSync(h(6470).normalize(d[1]),"utf8");return M.parser.parse(_)},h.c[h.s]===S&&M.main(process.argv.slice(1))},9609:S=>{var M=/^(%20|\s)*(javascript|data)/im,h=/[^\x20-\x7E]/gim,m=/^([^:]+):/gm,d=[".","/"];S.exports={sanitizeUrl:function(_){if(!_)return"about:blank";var g,k,C=_.replace(h,"").trim();return function(A){return d.indexOf(A[0])>-1}(C)?C:(k=C.match(m))?(g=k[0],M.test(g)?"about:blank":C):"about:blank"}}},3841:S=>{S.exports=function(M,h){return M.intersect(h)}},7458:(S,M,h)=>{h.d(M,{Z:()=>b6});var m=h(1941),d=h.n(m),_={debug:1,info:2,warn:3,error:4,fatal:5},g={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},k=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),_[t]!==void 0&&(t=_[t])),g.trace=function(){},g.debug=function(){},g.info=function(){},g.warn=function(){},g.error=function(){},g.fatal=function(){},t<=_.fatal&&(g.fatal=console.error?console.error.bind(console,C("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",C("FATAL"))),t<=_.error&&(g.error=console.error?console.error.bind(console,C("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",C("ERROR"))),t<=_.warn&&(g.warn=console.warn?console.warn.bind(console,C("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",C("WARN"))),t<=_.info&&(g.info=console.info?console.info.bind(console,C("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",C("INFO"))),t<=_.debug&&(g.debug=console.debug?console.debug.bind(console,C("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",C("DEBUG")))},C=function(t){var e=d()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function A(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=e(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function I(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=e(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function L(t){return t}var Y=1e-6;function q(t){return"translate("+t+",0)"}function H(t){return"translate(0,"+t+")"}function V(t){return e=>+t(e)}function X(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function J(){return!this.__axis}function lt(t,e){var r=[],a=null,c=null,u=6,f=6,y=3,w=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,x=t===1||t===4?-1:1,D=t===4||t===2?"x":"y",j=t===1||t===3?q:H;function P(W){var ot=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,tt=c==null?e.tickFormat?e.tickFormat.apply(e,r):L:c,gt=Math.max(u,0)+y,ht=e.range(),wt=+ht[0]+w,Tt=+ht[ht.length-1]+w,Ft=(e.bandwidth?X:V)(e.copy(),w),Gt=W.selection?W.selection():W,Et=Gt.selectAll(".domain").data([null]),ee=Gt.selectAll(".tick").data(ot,e).order(),re=ee.exit(),kt=ee.enter().append("g").attr("class","tick"),Lt=ee.select("line"),Ct=ee.select("text");Et=Et.merge(Et.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ee=ee.merge(kt),Lt=Lt.merge(kt.append("line").attr("stroke","currentColor").attr(D+"2",x*u)),Ct=Ct.merge(kt.append("text").attr("fill","currentColor").attr(D,x*gt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),W!==Gt&&(Et=Et.transition(W),ee=ee.transition(W),Lt=Lt.transition(W),Ct=Ct.transition(W),re=re.transition(W).attr("opacity",Y).attr("transform",function(yt){return isFinite(yt=Ft(yt))?j(yt+w):this.getAttribute("transform")}),kt.attr("opacity",Y).attr("transform",function(yt){var Rt=this.parentNode.__axis;return j((Rt&&isFinite(Rt=Rt(yt))?Rt:Ft(yt))+w)})),re.remove(),Et.attr("d",t===4||t===2?f?"M"+x*f+","+wt+"H"+w+"V"+Tt+"H"+x*f:"M"+w+","+wt+"V"+Tt:f?"M"+wt+","+x*f+"V"+w+"H"+Tt+"V"+x*f:"M"+wt+","+w+"H"+Tt),ee.attr("opacity",1).attr("transform",function(yt){return j(Ft(yt)+w)}),Lt.attr(D+"2",x*u),Ct.attr(D,x*gt).text(tt),Gt.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),Gt.each(function(){this.__axis=Ft})}return P.scale=function(W){return arguments.length?(e=W,P):e},P.ticks=function(){return r=Array.from(arguments),P},P.tickArguments=function(W){return arguments.length?(r=W==null?[]:Array.from(W),P):r.slice()},P.tickValues=function(W){return arguments.length?(a=W==null?null:Array.from(W),P):a&&a.slice()},P.tickFormat=function(W){return arguments.length?(c=W,P):c},P.tickSize=function(W){return arguments.length?(u=f=+W,P):u},P.tickSizeInner=function(W){return arguments.length?(u=+W,P):u},P.tickSizeOuter=function(W){return arguments.length?(f=+W,P):f},P.tickPadding=function(W){return arguments.length?(y=+W,P):y},P.offset=function(W){return arguments.length?(w=+W,P):w},P}function nt(){}function _t(t){return t==null?nt:function(){return this.querySelector(t)}}function dt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function At(){return[]}function st(t){return t==null?At:function(){return this.querySelectorAll(t)}}function K(t){return function(){return this.matches(t)}}function mt(t){return function(e){return e.matches(t)}}var St=Array.prototype.find;function It(){return this.firstElementChild}var ft=Array.prototype.filter;function vt(){return Array.from(this.children)}function Wt(t){return new Array(t.length)}function jt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function me(t){return function(){return t}}function ge(t,e,r,a,c,u){for(var f,y=0,w=e.length,x=u.length;y<x;++y)(f=e[y])?(f.__data__=u[y],a[y]=f):r[y]=new jt(t,u[y]);for(;y<w;++y)(f=e[y])&&(c[y]=f)}function pe(t,e,r,a,c,u,f){var y,w,x,D=new Map,j=e.length,P=u.length,W=new Array(j);for(y=0;y<j;++y)(w=e[y])&&(W[y]=x=f.call(w,w.__data__,y,e)+"",D.has(x)?c[y]=w:D.set(x,w));for(y=0;y<P;++y)x=f.call(t,u[y],y,u)+"",(w=D.get(x))?(a[y]=w,w.__data__=u[y],D.delete(x)):r[y]=new jt(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get(W[y])===w&&(c[y]=w)}function Dt(t){return t.__data__}function Zt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function se(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}jt.prototype={constructor:jt,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)}};var le="http://www.w3.org/1999/xhtml";const ye={svg:"http://www.w3.org/2000/svg",xhtml:le,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ye.hasOwnProperty(e)?{space:ye[e],local:t}:t}function We(t){return function(){this.removeAttribute(t)}}function he(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,e){return function(){this.setAttribute(t,e)}}function te(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function at(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function ne(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Mt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xt(t){return function(){this.style.removeProperty(t)}}function Ht(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Nt(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function oe(t,e){return t.style.getPropertyValue(e)||Mt(t).getComputedStyle(t,null).getPropertyValue(e)}function tn(t){return function(){delete this[t]}}function ve(t,e){return function(){this[t]=e}}function De(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function ln(t){return t.trim().split(/^|\s+/)}function Xe(t){return t.classList||new Ie(t)}function Ie(t){this._node=t,this._names=ln(t.getAttribute("class")||"")}function Ae(t,e){for(var r=Xe(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function en(t,e){for(var r=Xe(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function Ue(t){return function(){Ae(this,t)}}function Ze(t){return function(){en(this,t)}}function Qe(t,e){return function(){(e.apply(this,arguments)?Ae:en)(this,t)}}function Le(){this.textContent=""}function Yn(t){return function(){this.textContent=t}}function Me(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function an(){this.innerHTML=""}function vn(t){return function(){this.innerHTML=t}}function Or(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function bn(){this.nextSibling&&this.parentNode.appendChild(this)}function Kn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===le&&e.documentElement.namespaceURI===le?e.createElement(t):e.createElementNS(r,t)}}function gn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ke(t){var e=Ot(t);return(e.local?gn:cn)(e)}function Tn(){return null}function wn(){var t=this.parentNode;t&&t.removeChild(this)}function zn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Un(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cr(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function kn(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function Hn(t,e,r){return function(){var a,c=this.__on,u=function(w){return function(x){w.call(this,x,this.__data__)}}(e);if(c){for(var f=0,y=c.length;f<y;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function Pn(t,e,r){var a=Mt(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function $n(t,e){return function(){return Pn(this,t,e)}}function Vn(t,e){return function(){return Pn(this,t,e.apply(this,arguments))}}Ie.prototype={add:function(t){this._names.indexOf(t)<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}};var Jn=[null];function An(t,e){this._groups=t,this._parents=e}function Ln(){return new An([[document.documentElement]],Jn)}An.prototype=Ln.prototype={constructor:An,select:function(t){typeof t!="function"&&(t=_t(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f,y=e[c],w=y.length,x=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(f=t.call(u,u.__data__,D,y))&&("__data__"in u&&(f.__data__=u.__data__),x[D]=f);return new An(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return dt(D.apply(this,arguments))}}(t):st(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var f,y=e[u],w=y.length,x=0;x<w;++x)(f=y[x])&&(a.push(t.call(f,f.__data__,x,y)),c.push(f));return new An(a,c)},selectChild:function(t){return this.select(t==null?It:function(e){return function(){return St.call(this.children,e)}}(typeof t=="function"?t:mt(t)))},selectChildren:function(t){return this.selectAll(t==null?vt:function(e){return function(){return ft.call(this.children,e)}}(typeof t=="function"?t:mt(t)))},filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new An(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Dt);var r=e?pe:ge,a=this._parents,c=this._groups;typeof t!="function"&&(t=me(t));for(var u=c.length,f=new Array(u),y=new Array(u),w=new Array(u),x=0;x<u;++x){var D=a[x],j=c[x],P=j.length,W=Zt(t.call(D,D&&D.__data__,x,a)),ot=W.length,tt=y[x]=new Array(ot),gt=f[x]=new Array(ot),ht=w[x]=new Array(P);r(D,j,tt,gt,ht,W,e);for(var wt,Tt,Ft=0,Gt=0;Ft<ot;++Ft)if(wt=tt[Ft]){for(Ft>=Gt&&(Gt=Ft+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(f=new An(f,a))._enter=y,f._exit=w,f},enter:function(){return new An(this._enter||this._groups.map(Wt),this._parents)},exit:function(){return new An(this._exit||this._groups.map(Wt),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,f=Math.min(c,u),y=new Array(c),w=0;w<f;++w)for(var x,D=r[w],j=a[w],P=D.length,W=y[w]=new Array(P),ot=0;ot<P;++ot)(x=D[ot]||j[ot])&&(W[ot]=x);for(;w<c;++w)y[w]=r[w];return new An(y,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,f=c[u];--u>=0;)(a=c[u])&&(f&&4^a.compareDocumentPosition(f)&&f.parentNode.insertBefore(a,f),f=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=se);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var f,y=r[u],w=y.length,x=c[u]=new Array(w),D=0;D<w;++D)(f=y[D])&&(x[D]=f);x.sort(e)}return new An(c,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],c=0,u=a.length;c<u;++c){var f=a[c];if(f)return f}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var c,u=e[r],f=0,y=u.length;f<y;++f)(c=u[f])&&t.call(c,c.__data__,f,u);return this},attr:function(t,e){var r=Ot(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?he:We:typeof e=="function"?r.local?ne:at:r.local?te:zt)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?Xt:typeof e=="function"?Nt:Ht)(t,e,r==null?"":r)):oe(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?tn:typeof e=="function"?De:ve)(t,e)):this.node()[t]},classed:function(t,e){var r=ln(t+"");if(arguments.length<2){for(var a=Xe(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?Qe:e?Ue:Ze)(r,e))},text:function(t){return arguments.length?this.each(t==null?Le:(typeof t=="function"?Me:Yn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?an:(typeof t=="function"?Or:vn)(t)):this.node().innerHTML},raise:function(){return this.each(bn)},lower:function(){return this.each(Kn)},append:function(t){var e=typeof t=="function"?t:Ke(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Ke(t),a=e==null?Tn:typeof e=="function"?e:_t(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(wn)},clone:function(t){return this.select(t?Un:zn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=Cr(t+""),f=u.length;if(!(arguments.length<2)){for(y=e?Hn:kn,a=0;a<f;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,x=0,D=y.length;x<D;++x)for(a=0,w=y[x];a<f;++a)if((c=u[a]).type===w.type&&c.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Vn:$n)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,f=c.length;u<f;++u)(a=c[u])&&(yield a)}};const un=Ln;var jn={value:()=>{}};function mn(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new ei(a)}function ei(t){this._=t}function dr(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function Ii(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function In(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=jn,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}ei.prototype=mn.prototype={constructor:ei,on:function(t,e){var r,a=this._,c=dr(t+"",a),u=-1,f=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(r=(t=c[u]).type)a[r]=In(a[r],t.name,e);else if(e==null)for(r in a)a[r]=In(a[r],t.name,null);return this}for(;++u<f;)if((r=(t=c[u]).type)&&(r=Ii(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ei(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const po=mn;var oa,ni,Br=0,Fr=0,$r=0,Xr=0,Sr=0,Zr=0,Lr=typeof performance=="object"&&performance.now?performance:Date,Ci=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ai(){return Sr||(Ci(er),Sr=Lr.now()+Zr)}function er(){Sr=0}function Hr(){this._call=this._time=this._next=null}function sa(t,e,r){var a=new Hr;return a.restart(t,e,r),a}function Qr(){Sr=(Xr=Lr.now())+Zr,Br=Fr=0;try{(function(){ai(),++Br;for(var t,e=oa;e;)(t=Sr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Br})()}finally{Br=0,function(){for(var t,e,r=oa,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:oa=e);ni=t,eo(a)}(),Sr=0}}function ca(){var t=Lr.now(),e=t-Xr;e>1e3&&(Zr-=e,Xr=t)}function eo(t){Br||(Fr&&(Fr=clearTimeout(Fr)),t-Sr>24?(t<1/0&&(Fr=setTimeout(Qr,t-Lr.now()-Zr)),$r&&($r=clearInterval($r))):($r||(Xr=Lr.now(),$r=setInterval(ca,1e3)),Br=1,Ci(Qr)))}function oi(t,e,r){var a=new Hr;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}Hr.prototype=sa.prototype={constructor:Hr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ai():+r)+(e==null?0:+e),this._next||ni===this||(ni?ni._next=this:oa=this,ni=this),this._call=t,this._time=r,eo()},stop:function(){this._call&&(this._call=null,this._time=1/0,eo())}};var on=po("start","end","cancel","interrupt"),Gn=[];function En(t,e,r,a,c,u){var f=t.__transition;if(f){if(r in f)return}else t.__transition={};(function(y,w,x){var D,j=y.__transition;function P(tt){var gt,ht,wt,Tt;if(x.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===x.name){if(Tt.state===3)return oi(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",y,y.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",y,y.__data__,Tt.index,Tt.group),delete j[gt])}if(oi(function(){x.state===3&&(x.state=4,x.timer.restart(W,x.delay,x.time),W(tt))}),x.state=2,x.on.call("start",y,y.__data__,x.index,x.group),x.state===2){for(x.state=3,D=new Array(wt=x.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=x.tween[gt].value.call(y,y.__data__,x.index,x.group))&&(D[++ht]=Tt);D.length=ht+1}}function W(tt){for(var gt=tt<x.duration?x.ease.call(null,tt/x.duration):(x.timer.restart(ot),x.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(y,gt);x.state===5&&(x.on.call("end",y,y.__data__,x.index,x.group),ot())}function ot(){for(var tt in x.state=6,x.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=x,x.timer=sa(function(tt){x.state=1,x.timer.restart(P,x.delay,x.time),x.delay<=tt&&P(tt-x.delay)},0,x.time)})(t,r,{name:e,index:a,group:c,on,tween:Gn,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function Re(t,e){var r=pt(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Xn(t,e){var r=pt(t,e);if(r.state>3)throw new Error("too late; already running");return r}function pt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Vr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Qt,Si=180/Math.PI,Wi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ba(t,e,r,a,c,u){var f,y,w;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a<e*r&&(t=-t,e=-e,w=-w,f=-f),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Si,skewX:Math.atan(w)*Si,scaleX:f,scaleY:y}}function no(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,f){var y=[],w=[];return u=t(u),f=t(f),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push("translate(",null,e,null,r);ot.push({i:tt-4,x:Vr(x,j)},{i:tt-2,x:Vr(D,P)})}else(j||P)&&W.push("translate("+j+e+P+r)}(u.translateX,u.translateY,f.translateX,f.translateY,y,w),function(x,D,j,P){x!==D?(x-D>180?D+=360:D-x>180&&(x+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Vr(x,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,f.rotate,y,w),function(x,D,j,P){x!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Vr(x,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,f.skewX,y,w),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push(c(W)+"scale(",null,",",null,")");ot.push({i:tt-4,x:Vr(x,j)},{i:tt-2,x:Vr(D,P)})}else j===1&&P===1||W.push(c(W)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,f.scaleX,f.scaleY,y,w),u=f=null,function(x){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(x);return y.join("")}}}var go=no(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Wi:Ba(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),yo=no(function(t){return t==null?Wi:(Qt||(Qt=document.createElementNS("http://www.w3.org/2000/svg","g")),Qt.setAttribute("transform",t),(t=Qt.transform.baseVal.consolidate())?Ba((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Wi)},", ",")",")");function Wr(t,e){var r,a;return function(){var c=Xn(this,t),u=c.tween;if(u!==r){for(var f=0,y=(a=r=u).length;f<y;++f)if(a[f].name===e){(a=a.slice()).splice(f,1);break}}c.tween=a}}function $i(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=Xn(this,t),f=u.tween;if(f!==a){c=(a=f).slice();for(var y={name:e,value:r},w=0,x=c.length;w<x;++w)if(c[w].name===e){c[w]=y;break}w===x&&c.push(y)}u.tween=c}}function Cn(t,e,r){var a=t._id;return t.each(function(){var c=Xn(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return pt(c,a).value[e]}}function Ta(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function La(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function pr(){}var Tr=.7,di=1/Tr,Kr="\\s*([+-]?\\d+)\\s*",Pr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",si=/^#([0-9a-f]{3,8})$/,Gr=new RegExp("^rgb\\("+[Kr,Kr,Kr]+"\\)$"),Vi=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),Ri=new RegExp("^rgba\\("+[Kr,Kr,Kr,Pr]+"\\)$"),Ai=new RegExp("^rgba\\("+[jr,jr,jr,Pr]+"\\)$"),ro=new RegExp("^hsl\\("+[Pr,jr,jr]+"\\)$"),Bt=new RegExp("^hsla\\("+[Pr,jr,jr,Pr]+"\\)$"),qe={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};function Ye(){return this.rgb().formatHex()}function gr(){return this.rgb().formatRgb()}function vr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=si.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?pi(e):r===3?new Yr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Jr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Jr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Gr.exec(t))?new Yr(e[1],e[2],e[3],1):(e=Vi.exec(t))?new Yr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ri.exec(t))?Jr(e[1],e[2],e[3],e[4]):(e=Ai.exec(t))?Jr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ro.exec(t))?io(e[1],e[2]/100,e[3]/100,1):(e=Bt.exec(t))?io(e[1],e[2]/100,e[3]/100,e[4]):qe.hasOwnProperty(t)?pi(qe[t]):t==="transparent"?new Yr(NaN,NaN,NaN,0):null}function pi(t){return new Yr(t>>16&255,t>>8&255,255&t,1)}function Jr(t,e,r,a){return a<=0&&(t=e=r=NaN),new Yr(t,e,r,a)}function gs(t){return t instanceof pr||(t=vr(t)),t?new Yr((t=t.rgb()).r,t.g,t.b,t.opacity):new Yr}function ea(t,e,r,a){return arguments.length===1?gs(t):new Yr(t,e,r,a==null?1:a)}function Yr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Vs(){return"#"+Ec(this.r)+Ec(this.g)+Ec(this.b)}function Ia(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Ec(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function io(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Fi(t,e,r,a)}function Cc(t){if(t instanceof Fi)return new Fi(t.h,t.s,t.l,t.opacity);if(t instanceof pr||(t=vr(t)),!t)return new Fi;if(t instanceof Fi)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),f=NaN,y=u-c,w=(u+c)/2;return y?(f=e===u?(r-a)/y+6*(r<a):r===u?(a-e)/y+2:(e-r)/y+4,y/=w<.5?u+c:2-u-c,f*=60):y=w>0&&w<1?0:f,new Fi(f,y,w,t.opacity)}function Fi(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ti(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ta(pr,vr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ye,formatHex:Ye,formatHsl:function(){return Cc(this).formatHsl()},formatRgb:gr,toString:gr}),Ta(Yr,ea,La(pr,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Tr:Math.pow(Tr,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:Vs,formatHex:Vs,formatRgb:Ia,toString:Ia})),Ta(Fi,function(t,e,r,a){return arguments.length===1?Cc(t):new Fi(t,e,r,a==null?1:a)},La(pr,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Fi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Tr:Math.pow(Tr,t),new Fi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new Yr(ti(t>=240?t-240:t+120,c,a),ti(t,c,a),ti(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const pu=t=>()=>t;function gu(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):pu(isNaN(t)?e:t)}const yu=function t(e){var r=function(c){return(c=+c)==1?gu:function(u,f){return f-u?function(y,w,x){return y=Math.pow(y,x),w=Math.pow(w,x)-y,x=1/x,function(D){return Math.pow(y+D*w,x)}}(u,f,c):pu(isNaN(u)?f:u)}}(e);function a(c,u){var f=r((c=ea(c)).r,(u=ea(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),x=gu(c.opacity,u.opacity);return function(D){return c.r=f(D),c.g=y(D),c.b=w(D),c.opacity=x(D),c+""}}return a.gamma=t,a}(1);var Ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mu=new RegExp(Ra.source,"g");function vu(t,e){var r,a,c,u=Ra.lastIndex=mu.lastIndex=0,f=-1,y=[],w=[];for(t+="",e+="";(r=Ra.exec(t))&&(a=mu.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[f]?y[f]+=c:y[++f]=c),(r=r[0])===(a=a[0])?y[f]?y[f]+=a:y[++f]=a:(y[++f]=null,w.push({i:f,x:Vr(r,a)})),u=mu.lastIndex;return u<e.length&&(c=e.slice(u),y[f]?y[f]+=c:y[++f]=c),y.length<2?w[0]?function(x){return function(D){return x(D)+""}}(w[0].x):function(x){return function(){return x}}(e):(e=w.length,function(x){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(x);return y.join("")})}function Fa(t,e){var r;return(typeof e=="number"?Vr:e instanceof vr?yu:(r=vr(e))?(e=r,yu):vu)(t,e)}function Pe(t){return function(){this.removeAttribute(t)}}function Rl(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ar(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttribute(t);return f===u?null:f===a?c:c=e(a=f,r)}}function Sc(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttributeNS(t.space,t.local);return f===u?null:f===a?c:c=e(a=f,r)}}function Ac(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttribute(t))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttribute(t)}}function bu(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttributeNS(t.space,t.local)}}function Ea(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function gi(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Gs(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&gi(t,u)),r}return c._value=e,c}function Fl(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Ea(t,u)),r}return c._value=e,c}function _u(t,e){return function(){Re(this,t).delay=+e.apply(this,arguments)}}function mo(t,e){return e=+e,function(){Re(this,t).delay=e}}function Pl(t,e){return function(){Xn(this,t).duration=+e.apply(this,arguments)}}function Lf(t,e){return e=+e,function(){Xn(this,t).duration=e}}function C0(t,e){if(typeof e!="function")throw new Error;return function(){Xn(this,t).ease=e}}function If(t,e,r){var a,c,u=function(f){return(f+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?Re:Xn;return function(){var f=u(this,t),y=f.on;y!==a&&(c=(a=y).copy()).on(e,r),f.on=c}}var Rf=un.prototype.constructor;function ua(t){return function(){this.style.removeProperty(t)}}function Ff(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function jl(t,e,r){var a,c;function u(){var f=e.apply(this,arguments);return f!==c&&(a=(c=f)&&Ff(t,f,r)),a}return u._value=e,u}function Yl(t){return function(e){this.textContent=t.call(this,e)}}function vo(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&Yl(c)),e}return a._value=t,a}var Mc=0;function Pa(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Nc(){return++Mc}var la=un.prototype;Pa.prototype={constructor:Pa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=_t(t));for(var a=this._groups,c=a.length,u=new Array(c),f=0;f<c;++f)for(var y,w,x=a[f],D=x.length,j=u[f]=new Array(D),P=0;P<D;++P)(y=x[P])&&(w=t.call(y,y.__data__,P,x))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,En(j[P],e,r,P,j,pt(y,r)));return new Pa(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=st(t));for(var a=this._groups,c=a.length,u=[],f=[],y=0;y<c;++y)for(var w,x=a[y],D=x.length,j=0;j<D;++j)if(w=x[j]){for(var P,W=t.call(w,w.__data__,j,x),ot=pt(w,r),tt=0,gt=W.length;tt<gt;++tt)(P=W[tt])&&En(P,e,r,tt,W,ot);u.push(W),f.push(w)}return new Pa(u,f,e,r)},selectChild:la.selectChild,selectChildren:la.selectChildren,filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new Pa(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,c=r.length,u=Math.min(a,c),f=new Array(a),y=0;y<u;++y)for(var w,x=e[y],D=r[y],j=x.length,P=f[y]=new Array(j),W=0;W<j;++W)(w=x[W]||D[W])&&(P[W]=w);for(;y<a;++y)f[y]=e[y];return new Pa(f,this._parents,this._name,this._id)},selection:function(){return new Rf(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Nc(),a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)if(f=y[x]){var D=pt(f,e);En(f,t,r,x,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new Pa(a,this._parents,t,r)},call:la.call,nodes:la.nodes,node:la.node,size:la.size,empty:la.empty,each:la.each,on:function(t,e){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(t):this.each(If(r,t,e))},attr:function(t,e){var r=Ot(t),a=r==="transform"?yo:Fa;return this.attrTween(t,typeof e=="function"?(r.local?bu:Ac)(r,a,Cn(this,"attr."+t,e)):e==null?(r.local?Rl:Pe)(r):(r.local?Sc:Ar)(r,a,e))},attrTween:function(t,e){var r="attr."+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;var a=Ot(t);return this.tween(r,(a.local?Gs:Fl)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?go:Fa;return e==null?this.styleTween(t,function(c,u){var f,y,w;return function(){var x=oe(this,c),D=(this.style.removeProperty(c),oe(this,c));return x===D?null:x===f&&D===y?w:w=u(f=x,y=D)}}(t,a)).on("end.style."+t,ua(t)):typeof e=="function"?this.styleTween(t,function(c,u,f){var y,w,x;return function(){var D=oe(this,c),j=f(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=oe(this,c)),D===P?null:D===y&&P===w?x:(w=P,x=u(y=D,j))}}(t,a,Cn(this,"style."+t,e))).each(function(c,u){var f,y,w,x,D="style."+u,j="end."+D;return function(){var P=Xn(this,c),W=P.on,ot=P.value[D]==null?x||(x=ua(u)):void 0;W===f&&w===ot||(y=(f=W).copy()).on(j,w=ot),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,f){var y,w,x=f+"";return function(){var D=oe(this,c);return D===x?null:D===y?w:w=u(y=D,f)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,jl(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(Cn(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,vo(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,c=pt(this.node(),r).tween,u=0,f=c.length;u<f;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?Wr:$i)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?_u:mo)(e,t)):pt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Pl:Lf)(e,t)):pt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(C0(e,t)):pt(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;Xn(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,f){var y={value:f},w={value:function(){--c==0&&u()}};r.each(function(){var x=Xn(this,a),D=x.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),x.on=e}),c===0&&u()})},[Symbol.iterator]:la[Symbol.iterator]};var ys={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function xu(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}un.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,f=e.__transition,y=!0;if(f){for(u in r=r==null?null:r+"",f)(a=f[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete f[u]):y=!1;y&&delete e.__transition}})(this,t)})},un.prototype.transition=function(t){var e,r;t instanceof Pa?(e=t._id,t=t._name):(e=Nc(),(r=ys).time=ai(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)(f=y[x])&&En(f,t,e,x,y,r||xu(f,e));return new Pa(a,this._parents,t,e)};function bo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Pi(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function ci(){}var ja=.7,Ca=1/ja,Gi="\\s*([+-]?\\d+)\\s*",qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",E="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,$=new RegExp("^rgb\\("+[Gi,Gi,Gi]+"\\)$"),it=new RegExp("^rgb\\("+[E,E,E]+"\\)$"),$t=new RegExp("^rgba\\("+[Gi,Gi,Gi,qn]+"\\)$"),de=new RegExp("^rgba\\("+[E,E,E,qn]+"\\)$"),we=new RegExp("^hsl\\("+[qn,E,E]+"\\)$"),Ne=new RegExp("^hsla\\("+[qn,E,E,qn]+"\\)$"),Oe={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};function ze(){return this.rgb().formatHex()}function Ve(){return this.rgb().formatRgb()}function xn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=R.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?fn(e):r===3?new or(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?cr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?cr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=$.exec(t))?new or(e[1],e[2],e[3],1):(e=it.exec(t))?new or(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?cr(e[1],e[2],e[3],e[4]):(e=de.exec(t))?cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=we.exec(t))?S0(e[1],e[2]/100,e[3]/100,1):(e=Ne.exec(t))?S0(e[1],e[2]/100,e[3]/100,e[4]):Oe.hasOwnProperty(t)?fn(Oe[t]):t==="transparent"?new or(NaN,NaN,NaN,0):null}function fn(t){return new or(t>>16&255,t>>8&255,255&t,1)}function cr(t,e,r,a){return a<=0&&(t=e=r=NaN),new or(t,e,r,a)}function ur(t){return t instanceof ci||(t=xn(t)),t?new or((t=t.rgb()).r,t.g,t.b,t.opacity):new or}function Mr(t,e,r,a){return arguments.length===1?ur(t):new or(t,e,r,a==null?1:a)}function or(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function ha(){return"#"+zl(this.r)+zl(this.g)+zl(this.b)}function ms(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function zl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function S0(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new _o(t,e,r,a)}function Ul(t){if(t instanceof _o)return new _o(t.h,t.s,t.l,t.opacity);if(t instanceof ci||(t=xn(t)),!t)return new _o;if(t instanceof _o)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),f=NaN,y=u-c,w=(u+c)/2;return y?(f=e===u?(r-a)/y+6*(r<a):r===u?(a-e)/y+2:(e-r)/y+4,y/=w<.5?u+c:2-u-c,f*=60):y=w>0&&w<1?0:f,new _o(f,y,w,t.opacity)}function _o(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ql(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}bo(ci,xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ze,formatHex:ze,formatHsl:function(){return Ul(this).formatHsl()},formatRgb:Ve,toString:Ve}),bo(or,Mr,Pi(ci,{brighter:function(t){return t=t==null?Ca:Math.pow(Ca,t),new or(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?ja:Math.pow(ja,t),new or(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:ha,formatHex:ha,formatRgb:ms,toString:ms})),bo(_o,function(t,e,r,a){return arguments.length===1?Ul(t):new _o(t,e,r,a==null?1:a)},Pi(ci,{brighter:function(t){return t=t==null?Ca:Math.pow(Ca,t),new _o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?ja:Math.pow(ja,t),new _o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new or(ql(t>=240?t-240:t+120,c,a),ql(t,c,a),ql(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const ey=Math.PI/180,ny=180/Math.PI,A0=.96422,M0=.82521,ry=4/29,N0=6/29,Pf=3*N0*N0;function D0(t){if(t instanceof qo)return new qo(t.l,t.a,t.b,t.opacity);if(t instanceof vs)return iy(t);t instanceof or||(t=ur(t));var e,r,a=I0(t.r),c=I0(t.g),u=I0(t.b),f=O0((.2225045*a+.7168786*c+.0606169*u)/1);return a===c&&c===u?e=r=f:(e=O0((.4360747*a+.3850649*c+.1430804*u)/A0),r=O0((.0139322*a+.0971045*c+.7141733*u)/M0)),new qo(116*f-16,500*(e-f),200*(f-r),t.opacity)}function qo(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function O0(t){return t>.008856451679035631?Math.pow(t,1/3):t/Pf+ry}function B0(t){return t>N0?t*t*t:Pf*(t-ry)}function L0(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function I0(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sb(t){if(t instanceof vs)return new vs(t.h,t.c,t.l,t.opacity);if(t instanceof qo||(t=D0(t)),t.a===0&&t.b===0)return new vs(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ny;return new vs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function R0(t,e,r,a){return arguments.length===1?Sb(t):new vs(t,e,r,a==null?1:a)}function vs(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function iy(t){if(isNaN(t.h))return new qo(t.l,0,0,t.opacity);var e=t.h*ey;return new qo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}bo(qo,function(t,e,r,a){return arguments.length===1?D0(t):new qo(t,e,r,a==null?1:a)},Pi(ci,{brighter:function(t){return new qo(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new qo(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new or(L0(3.1338561*(e=A0*B0(e))-1.6168667*(t=1*B0(t))-.4906146*(r=M0*B0(r))),L0(-.9787684*e+1.9161415*t+.033454*r),L0(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),bo(vs,R0,Pi(ci,{brighter:function(t){return new vs(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new vs(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return iy(this).rgb()}}));const F0=t=>()=>t;function ay(t,e){return function(r){return t+r*e}}function Hl(t,e){var r=e-t;return r?ay(t,r):F0(isNaN(t)?e:t)}function Ab(t){return function(e,r){var a=t((e=R0(e)).h,(r=R0(r)).h),c=Hl(e.c,r.c),u=Hl(e.l,r.l),f=Hl(e.opacity,r.opacity);return function(y){return e.h=a(y),e.c=c(y),e.l=u(y),e.opacity=f(y),e+""}}}const Mb=Ab(function(t,e){var r=e-t;return r?ay(t,r>180||r<-180?r-360*Math.round(r/360):r):F0(isNaN(t)?e:t)});var P0=Math.sqrt(50),j0=Math.sqrt(10),Y0=Math.sqrt(2);function z0(t,e,r){var a=(e-t)/Math.max(0,r),c=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,c);return c>=0?(u>=P0?10:u>=j0?5:u>=Y0?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=P0?10:u>=j0?5:u>=Y0?2:1)}function U0(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/c;return u>=P0?c*=10:u>=j0?c*=5:u>=Y0&&(c*=2),e<t?-c:c}function q0(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function H0(t){let e=t,r=t,a=t;function c(u,f,y=0,w=u.length){if(y<w){if(r(f,f)!==0)return w;do{const x=y+w>>>1;a(u[x],f)<0?y=x+1:w=x}while(y<w)}return y}return t.length!==2&&(e=(u,f)=>t(u)-f,r=q0,a=(u,f)=>q0(t(u),f)),{left:c,center:function(u,f,y=0,w=u.length){const x=c(u,f,y,w-1);return x>y&&e(u[x-1],f)>-e(u[x],f)?x-1:x},right:function(u,f,y=0,w=u.length){if(y<w){if(r(f,f)!==0)return w;do{const x=y+w>>>1;a(u[x],f)<=0?y=x+1:w=x}while(y<w)}return y}}}const Nb=H0(q0),Db=Nb.right,Ho=(H0(function(t){return t===null?NaN:+t}).center,Db);function jf(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function W0(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function Wo(){}var Yf=.7,zf=1.4285714285714286,Xs="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ob=/^#([0-9a-f]{3,8})$/,Bb=new RegExp("^rgb\\("+[Xs,Xs,Xs]+"\\)$"),$0=new RegExp("^rgb\\("+[$o,$o,$o]+"\\)$"),Lb=new RegExp("^rgba\\("+[Xs,Xs,Xs,Dc]+"\\)$"),oy=new RegExp("^rgba\\("+[$o,$o,$o,Dc]+"\\)$"),V0=new RegExp("^hsl\\("+[Dc,$o,$o]+"\\)$"),sy=new RegExp("^hsla\\("+[Dc,$o,$o,Dc]+"\\)$"),Uf={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};function Oc(){return this.rgb().formatHex()}function Bc(){return this.rgb().formatRgb()}function wu(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ob.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?qf(e):r===3?new Ya(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Hf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Hf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Bb.exec(t))?new Ya(e[1],e[2],e[3],1):(e=$0.exec(t))?new Ya(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Lb.exec(t))?Hf(e[1],e[2],e[3],e[4]):(e=oy.exec(t))?Hf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=V0.exec(t))?cy(e[1],e[2]/100,e[3]/100,1):(e=sy.exec(t))?cy(e[1],e[2]/100,e[3]/100,e[4]):Uf.hasOwnProperty(t)?qf(Uf[t]):t==="transparent"?new Ya(NaN,NaN,NaN,0):null}function qf(t){return new Ya(t>>16&255,t>>8&255,255&t,1)}function Hf(t,e,r,a){return a<=0&&(t=e=r=NaN),new Ya(t,e,r,a)}function Wf(t){return t instanceof Wo||(t=wu(t)),t?new Ya((t=t.rgb()).r,t.g,t.b,t.opacity):new Ya}function ku(t,e,r,a){return arguments.length===1?Wf(t):new Ya(t,e,r,a==null?1:a)}function Ya(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Vo(){return"#"+$f(this.r)+$f(this.g)+$f(this.b)}function G0(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function $f(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function cy(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Sa(t,e,r,a)}function uy(t){if(t instanceof Sa)return new Sa(t.h,t.s,t.l,t.opacity);if(t instanceof Wo||(t=wu(t)),!t)return new Sa;if(t instanceof Sa)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),f=NaN,y=u-c,w=(u+c)/2;return y?(f=e===u?(r-a)/y+6*(r<a):r===u?(a-e)/y+2:(e-r)/y+4,y/=w<.5?u+c:2-u-c,f*=60):y=w>0&&w<1?0:f,new Sa(f,y,w,t.opacity)}function Sa(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function X0(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}jf(Wo,wu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Oc,formatHex:Oc,formatHsl:function(){return uy(this).formatHsl()},formatRgb:Bc,toString:Bc}),jf(Ya,ku,W0(Wo,{brighter:function(t){return t=t==null?zf:Math.pow(zf,t),new Ya(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Yf:Math.pow(Yf,t),new Ya(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:Vo,formatHex:Vo,formatRgb:G0,toString:G0})),jf(Sa,function(t,e,r,a){return arguments.length===1?uy(t):new Sa(t,e,r,a==null?1:a)},W0(Wo,{brighter:function(t){return t=t==null?zf:Math.pow(zf,t),new Sa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Yf:Math.pow(Yf,t),new Sa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new Ya(X0(t>=240?t-240:t+120,c,a),X0(t,c,a),X0(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const Z0=t=>()=>t;function ly(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Z0(isNaN(t)?e:t)}const Vf=function t(e){var r=function(c){return(c=+c)==1?ly:function(u,f){return f-u?function(y,w,x){return y=Math.pow(y,x),w=Math.pow(w,x)-y,x=1/x,function(D){return Math.pow(y+D*w,x)}}(u,f,c):Z0(isNaN(u)?f:u)}}(e);function a(c,u){var f=r((c=ku(c)).r,(u=ku(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),x=ly(c.opacity,u.opacity);return function(D){return c.r=f(D),c.g=y(D),c.b=w(D),c.opacity=x(D),c+""}}return a.gamma=t,a}(1);function Ib(t,e){var r,a=e?e.length:0,c=t?Math.min(a,t.length):0,u=new Array(c),f=new Array(a);for(r=0;r<c;++r)u[r]=Xf(t[r],e[r]);for(;r<a;++r)f[r]=e[r];return function(y){for(r=0;r<c;++r)f[r]=u[r](y);return f}}function Rb(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function Gf(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Fb(t,e){var r,a={},c={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?a[r]=Xf(t[r],e[r]):c[r]=e[r];return function(u){for(r in a)c[r]=a[r](u);return c}}var Q0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wl=new RegExp(Q0.source,"g");function hy(t,e){var r,a,c,u=Q0.lastIndex=Wl.lastIndex=0,f=-1,y=[],w=[];for(t+="",e+="";(r=Q0.exec(t))&&(a=Wl.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[f]?y[f]+=c:y[++f]=c),(r=r[0])===(a=a[0])?y[f]?y[f]+=a:y[++f]=a:(y[++f]=null,w.push({i:f,x:Gf(r,a)})),u=Wl.lastIndex;return u<e.length&&(c=e.slice(u),y[f]?y[f]+=c:y[++f]=c),y.length<2?w[0]?function(x){return function(D){return x(D)+""}}(w[0].x):function(x){return function(){return x}}(e):(e=w.length,function(x){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(x);return y.join("")})}function fy(t,e){e||(e=[]);var r,a=t?Math.min(e.length,t.length):0,c=e.slice();return function(u){for(r=0;r<a;++r)c[r]=t[r]*(1-u)+e[r]*u;return c}}function Xf(t,e){var r,a,c=typeof e;return e==null||c==="boolean"?Z0(e):(c==="number"?Gf:c==="string"?(r=wu(e))?(e=r,Vf):hy:e instanceof wu?Vf:e instanceof Date?Rb:(a=e,!ArrayBuffer.isView(a)||a instanceof DataView?Array.isArray(e)?Ib:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Fb:Gf:fy))(t,e)}function Zf(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function dy(t){return+t}var K0=[0,1];function Tu(t){return t}function J0(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Pb(t,e,r){var a=t[0],c=t[1],u=e[0],f=e[1];return c<a?(a=J0(c,a),u=r(f,u)):(a=J0(a,c),u=r(u,f)),function(y){return u(a(y))}}function tp(t,e,r){var a=Math.min(t.length,e.length)-1,c=new Array(a),u=new Array(a),f=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++f<a;)c[f]=J0(t[f],t[f+1]),u[f]=r(e[f],e[f+1]);return function(y){var w=Ho(t,y,1,a)-1;return u[w](c[w](y))}}function Qf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Kf(){return function(){var t,e,r,a,c,u,f=K0,y=K0,w=Xf,x=Tu;function D(){var P,W,ot,tt=Math.min(f.length,y.length);return x!==Tu&&(P=f[0],W=f[tt-1],P>W&&(ot=P,P=W,W=ot),x=function(gt){return Math.max(P,Math.min(W,gt))}),a=tt>2?tp:Pb,c=u=null,j}function j(P){return P==null||isNaN(P=+P)?r:(c||(c=a(f.map(t),y,w)))(t(x(P)))}return j.invert=function(P){return x(e((u||(u=a(y,f.map(t),Gf)))(P)))},j.domain=function(P){return arguments.length?(f=Array.from(P,dy),D()):f.slice()},j.range=function(P){return arguments.length?(y=Array.from(P),D()):y.slice()},j.rangeRound=function(P){return y=Array.from(P),w=Zf,D()},j.clamp=function(P){return arguments.length?(x=!!P||Tu,D()):x!==Tu},j.interpolate=function(P){return arguments.length?(w=P,D()):w},j.unknown=function(P){return arguments.length?(r=P,j):r},function(P,W){return t=P,e=W,D()}}()(Tu,Tu)}function bs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var py,ep=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $l(t){if(!(e=ep.exec(t)))throw new Error("invalid format: "+t);var e;return new _s({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function _s(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}function Jf(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function Eu(t){return(t=Jf(Math.abs(t)))?t[1]:NaN}function gy(t,e){var r=Jf(t,e);if(!r)return t+"";var a=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+a:a.length>c+1?a.slice(0,c+1)+"."+a.slice(c+1):a+new Array(c-a.length+2).join("0")}$l.prototype=_s.prototype,_s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const yy={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>gy(100*t,e),r:gy,s:function(t,e){var r=Jf(t,e);if(!r)return t+"";var a=r[0],c=r[1],u=c-(py=3*Math.max(-8,Math.min(8,Math.floor(c/3))))+1,f=a.length;return u===f?a:u>f?a+new Array(u-f+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+Jf(t,Math.max(0,e+u-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function my(t){return t}var np,za,Vl,rp=Array.prototype.map,xs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function jb(t){var e=t.domain;return t.ticks=function(r){var a=e();return function(c,u,f){var y,w,x,D,j=-1;if(f=+f,(c=+c)==(u=+u)&&f>0)return[c];if((y=u<c)&&(w=c,c=u,u=w),(D=z0(c,u,f))===0||!isFinite(D))return[];if(D>0){let P=Math.round(c/D),W=Math.round(u/D);for(P*D<c&&++P,W*D>u&&--W,x=new Array(w=W-P+1);++j<w;)x[j]=(P+j)*D}else{D=-D;let P=Math.round(c*D),W=Math.round(u*D);for(P/D<c&&++P,W/D>u&&--W,x=new Array(w=W-P+1);++j<w;)x[j]=(P+j)/D}return y&&x.reverse(),x}(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var c=e();return function(u,f,y,w){var x,D=U0(u,f,y);switch((w=$l(w==null?",f":w)).type){case"s":var j=Math.max(Math.abs(u),Math.abs(f));return w.precision!=null||isNaN(x=function(P,W){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Eu(W)/3)))-Eu(Math.abs(P)))}(D,j))||(w.precision=x),Vl(w,j);case"":case"e":case"g":case"p":case"r":w.precision!=null||isNaN(x=function(P,W){return P=Math.abs(P),W=Math.abs(W)-P,Math.max(0,Eu(W)-Eu(P))+1}(D,Math.max(Math.abs(u),Math.abs(f))))||(w.precision=x-(w.type==="e"));break;case"f":case"%":w.precision!=null||isNaN(x=function(P){return Math.max(0,-Eu(Math.abs(P)))}(D))||(w.precision=x-2*(w.type==="%"))}return za(w)}(c[0],c[c.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a,c,u=e(),f=0,y=u.length-1,w=u[f],x=u[y],D=10;for(x<w&&(c=w,w=x,x=c,c=f,f=y,y=c);D-- >0;){if((c=z0(w,x,r))===a)return u[f]=w,u[y]=x,e(u);if(c>0)w=Math.floor(w/c)*c,x=Math.ceil(x/c)*c;else{if(!(c<0))break;w=Math.ceil(w*c)/c,x=Math.floor(x*c)/c}a=c}return t},t}function vy(){var t=Kf();return t.copy=function(){return Qf(t,vy())},bs.apply(t,arguments),jb(t)}np=function(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?my:(e=rp.call(t.grouping,Number),r=t.thousands+"",function(P,W){for(var ot=P.length,tt=[],gt=0,ht=e[0],wt=0;ot>0&&ht>0&&(wt+ht+1>W&&(ht=Math.max(1,W-wt)),tt.push(P.substring(ot-=ht,ot+ht)),!((wt+=ht+1)>W));)ht=e[gt=(gt+1)%e.length];return tt.reverse().join(r)}),c=t.currency===void 0?"":t.currency[0]+"",u=t.currency===void 0?"":t.currency[1]+"",f=t.decimal===void 0?".":t.decimal+"",y=t.numerals===void 0?my:function(P){return function(W){return W.replace(/[0-9]/g,function(ot){return P[+ot]})}}(rp.call(t.numerals,String)),w=t.percent===void 0?"%":t.percent+"",x=t.minus===void 0?"\u2212":t.minus+"",D=t.nan===void 0?"NaN":t.nan+"";function j(P){var W=(P=$l(P)).fill,ot=P.align,tt=P.sign,gt=P.symbol,ht=P.zero,wt=P.width,Tt=P.comma,Ft=P.precision,Gt=P.trim,Et=P.type;Et==="n"?(Tt=!0,Et="g"):yy[Et]||(Ft===void 0&&(Ft=12),Gt=!0,Et="g"),(ht||W==="0"&&ot==="=")&&(ht=!0,W="0",ot="=");var ee=gt==="$"?c:gt==="#"&&/[boxX]/.test(Et)?"0"+Et.toLowerCase():"",re=gt==="$"?u:/[%p]/.test(Et)?w:"",kt=yy[Et],Lt=/[defgprs%]/.test(Et);function Ct(yt){var Rt,bt,xe,Te=ee,Ut=re;if(Et==="c")Ut=kt(yt)+Ut,yt="";else{var Ee=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?D:kt(Math.abs(yt),Ft),Gt&&(yt=function(fe){t:for(var je,Fe=fe.length,Je=1,yn=-1;Je<Fe;++Je)switch(fe[Je]){case".":yn=je=Je;break;case"0":yn===0&&(yn=Je),je=Je;break;default:if(!+fe[Je])break t;yn>0&&(yn=0)}return yn>0?fe.slice(0,yn)+fe.slice(je+1):fe}(yt)),Ee&&+yt==0&&tt!=="+"&&(Ee=!1),Te=(Ee?tt==="("?tt:x:tt==="-"||tt==="("?"":tt)+Te,Ut=(Et==="s"?xs[8+py/3]:"")+Ut+(Ee&&tt==="("?")":""),Lt){for(Rt=-1,bt=yt.length;++Rt<bt;)if(48>(xe=yt.charCodeAt(Rt))||xe>57){Ut=(xe===46?f+yt.slice(Rt+1):yt.slice(Rt))+Ut,yt=yt.slice(0,Rt);break}}}Tt&&!ht&&(yt=a(yt,1/0));var Ce=Te.length+yt.length+Ut.length,_e=Ce<wt?new Array(wt-Ce+1).join(W):"";switch(Tt&&ht&&(yt=a(_e+yt,_e.length?wt-Ut.length:1/0),_e=""),ot){case"<":yt=Te+yt+Ut+_e;break;case"=":yt=Te+_e+yt+Ut;break;case"^":yt=_e.slice(0,Ce=_e.length>>1)+Te+yt+Ut+_e.slice(Ce);break;default:yt=_e+Te+yt+Ut}return y(yt)}return Ft=Ft===void 0?6:/[gprs]/.test(Et)?Math.max(1,Math.min(21,Ft)):Math.max(0,Math.min(20,Ft)),Ct.toString=function(){return P+""},Ct}return{format:j,formatPrefix:function(P,W){var ot=j(((P=$l(P)).type="f",P)),tt=3*Math.max(-8,Math.min(8,Math.floor(Eu(W)/3))),gt=Math.pow(10,-tt),ht=xs[8+tt/3];return function(wt){return ot(gt*wt)+ht}}}}({thousands:",",grouping:[3],currency:["$",""]}),za=np.format,Vl=np.formatPrefix;class by extends Map{constructor(e,r=_y){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,c]of e)this.set(a,c)}get(e){return super.get(ip(this,e))}has(e){return super.has(ip(this,e))}set(e,r){return super.set(function({_intern:a,_key:c},u){const f=c(u);return a.has(f)?a.get(f):(a.set(f,u),u)}(this,e),r)}delete(e){return super.delete(function({_intern:r,_key:a},c){const u=a(c);return r.has(u)&&(c=r.get(u),r.delete(u)),c}(this,e))}}function ip({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function _y(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Gl=Symbol("implicit");function Zs(){var t=new by,e=[],r=[],a=Gl;function c(u){let f=t.get(u);if(f===void 0){if(a!==Gl)return a;t.set(u,f=e.push(u)-1)}return r[f%r.length]}return c.domain=function(u){if(!arguments.length)return e.slice();e=[],t=new by;for(const f of u)t.has(f)||t.set(f,e.push(f)-1);return c},c.range=function(u){return arguments.length?(r=Array.from(u),c):r.slice()},c.unknown=function(u){return arguments.length?(a=u,c):a},c.copy=function(){return Zs(e,r).unknown(a)},bs.apply(c,arguments),c}const Cu=1e3,Qs=6e4,Xl=36e5,ap=864e5,op=6048e5,t1=31536e6;var e1=new Date,n1=new Date;function Mi(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var f=c(u),y=c.ceil(u);return u-f<y-u?f:y},c.offset=function(u,f){return e(u=new Date(+u),f==null?1:Math.floor(f)),u},c.range=function(u,f,y){var w,x=[];if(u=c.ceil(u),y=y==null?1:Math.floor(y),!(u<f&&y>0))return x;do x.push(w=new Date(+u)),e(u,y),t(u);while(w<u&&u<f);return x},c.filter=function(u){return Mi(function(f){if(f>=f)for(;t(f),!u(f);)f.setTime(f-1)},function(f,y){if(f>=f)if(y<0)for(;++y<=0;)for(;e(f,-1),!u(f););else for(;--y>=0;)for(;e(f,1),!u(f););})},r&&(c.count=function(u,f){return e1.setTime(+u),n1.setTime(+f),t(e1),t(n1),Math.floor(r(e1,n1))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(f){return a(f)%u==0}:function(f){return c.count(0,f)%u==0}):c:null}),c}var r1=Mi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});r1.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Mi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):r1:null};const sp=r1;var xy=Mi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Cu)},function(t,e){return(e-t)/Cu},function(t){return t.getUTCSeconds()});const Su=xy;var Yb=Mi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cu)},function(t,e){t.setTime(+t+e*Qs)},function(t,e){return(e-t)/Qs},function(t){return t.getMinutes()});const Zl=Yb;var xo=Mi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cu-t.getMinutes()*Qs)},function(t,e){t.setTime(+t+e*Xl)},function(t,e){return(e-t)/Xl},function(t){return t.getHours()});const i1=xo;var cp=Mi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Qs)/ap,t=>t.getDate()-1);const Au=cp;function ws(t){return Mi(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Qs)/op})}var a1=ws(0),up=ws(1);ws(2),ws(3);var Ks=ws(4);ws(5),ws(6);var Go=Mi(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const lp=Go;var hp=Mi(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});hp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mi(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const ks=hp;Mi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Qs)},function(t,e){return(e-t)/Qs},function(t){return t.getUTCMinutes()}),Mi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Xl)},function(t,e){return(e-t)/Xl},function(t){return t.getUTCHours()});var fp=Mi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/ap},function(t){return t.getUTCDate()-1});const Ql=fp;function wo(t){return Mi(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/op})}var wy=wo(0),o1=wo(1);wo(2),wo(3);var Mu=wo(4);wo(5),wo(6),Mi(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var ky=Mi(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ky.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mi(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const fa=ky;function Lc(t,e,r,a,c,u){const f=[[Su,1,Cu],[Su,5,5e3],[Su,15,15e3],[Su,30,3e4],[u,1,Qs],[u,5,3e5],[u,15,9e5],[u,30,18e5],[c,1,Xl],[c,3,108e5],[c,6,216e5],[c,12,432e5],[a,1,ap],[a,2,1728e5],[r,1,op],[e,1,2592e6],[e,3,7776e6],[t,1,t1]];function y(w,x,D){const j=Math.abs(x-w)/D,P=H0(([,,tt])=>tt).right(f,j);if(P===f.length)return t.every(U0(w/t1,x/t1,D));if(P===0)return sp.every(Math.max(U0(w,x,D),1));const[W,ot]=f[j/f[P-1][2]<f[P][2]/j?P-1:P];return W.every(ot)}return[function(w,x,D){const j=x<w;j&&([w,x]=[x,w]);const P=D&&typeof D.range=="function"?D:y(w,x,D),W=P?P.range(w,+x+1):[];return j?W.reverse():W},y]}const[Ty,zb]=Lc(ks,lp,a1,Au,i1,Zl);function Xo(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 dp(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 Kl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Jl,Ey,Zo={"-":"",_:" ",0:"0"},Ni=/^\s*\d+/,pp=/^%/,gp=/[\\^$*+?|[\]().{}]/g;function br(t,e,r){var a=t<0?"-":"",c=(a?-t:t)+"",u=c.length;return a+(u<r?new Array(r-u+1).join(e)+c:c)}function Ub(t){return t.replace(gp,"\\$&")}function th(t){return new RegExp("^(?:"+t.map(Ub).join("|")+")","i")}function eh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function s1(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function yp(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function qb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Hb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Wb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Cy(t,e,r){var a=Ni.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Sy(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function Ay(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function mp(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function My(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function vp(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Aa(t,e,r){var a=Ni.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function nh(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Ic(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Ny(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function $b(t,e,r){var a=Ni.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function Vb(t,e,r){var a=Ni.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Gb(t,e,r){var a=pp.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Xb(t,e,r){var a=Ni.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Zb(t,e,r){var a=Ni.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Dy(t,e){return br(t.getDate(),e,2)}function Rc(t,e){return br(t.getHours(),e,2)}function Oy(t,e){return br(t.getHours()%12||12,e,2)}function Qb(t,e){return br(1+Au.count(ks(t),t),e,3)}function By(t,e){return br(t.getMilliseconds(),e,3)}function Kb(t,e){return By(t,e)+"000"}function Jb(t,e){return br(t.getMonth()+1,e,2)}function t4(t,e){return br(t.getMinutes(),e,2)}function e4(t,e){return br(t.getSeconds(),e,2)}function n4(t){var e=t.getDay();return e===0?7:e}function r4(t,e){return br(a1.count(ks(t)-1,t),e,2)}function Ly(t){var e=t.getDay();return e>=4||e===0?Ks(t):Ks.ceil(t)}function i4(t,e){return t=Ly(t),br(Ks.count(ks(t),t)+(ks(t).getDay()===4),e,2)}function a4(t){return t.getDay()}function Iy(t,e){return br(up.count(ks(t)-1,t),e,2)}function o4(t,e){return br(t.getFullYear()%100,e,2)}function s4(t,e){return br((t=Ly(t)).getFullYear()%100,e,2)}function Ry(t,e){return br(t.getFullYear()%1e4,e,4)}function Fy(t,e){var r=t.getDay();return br((t=r>=4||r===0?Ks(t):Ks.ceil(t)).getFullYear()%1e4,e,4)}function Py(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+br(e/60|0,"0",2)+br(e%60,"0",2)}function jy(t,e){return br(t.getUTCDate(),e,2)}function c4(t,e){return br(t.getUTCHours(),e,2)}function Yy(t,e){return br(t.getUTCHours()%12||12,e,2)}function Js(t,e){return br(1+Ql.count(fa(t),t),e,3)}function zy(t,e){return br(t.getUTCMilliseconds(),e,3)}function u4(t,e){return zy(t,e)+"000"}function Uy(t,e){return br(t.getUTCMonth()+1,e,2)}function l4(t,e){return br(t.getUTCMinutes(),e,2)}function h4(t,e){return br(t.getUTCSeconds(),e,2)}function qy(t){var e=t.getUTCDay();return e===0?7:e}function c1(t,e){return br(wy.count(fa(t)-1,t),e,2)}function Hy(t){var e=t.getUTCDay();return e>=4||e===0?Mu(t):Mu.ceil(t)}function rh(t,e){return t=Hy(t),br(Mu.count(fa(t),t)+(fa(t).getUTCDay()===4),e,2)}function f4(t){return t.getUTCDay()}function bp(t,e){return br(o1.count(fa(t)-1,t),e,2)}function d4(t,e){return br(t.getUTCFullYear()%100,e,2)}function p4(t,e){return br((t=Hy(t)).getUTCFullYear()%100,e,2)}function Wy(t,e){return br(t.getUTCFullYear()%1e4,e,4)}function Nu(t,e){var r=t.getUTCDay();return br((t=r>=4||r===0?Mu(t):Mu.ceil(t)).getUTCFullYear()%1e4,e,4)}function g4(){return"+0000"}function _p(){return"%"}function $y(t){return+t}function Vy(t){return Math.floor(+t/1e3)}function y4(t){return new Date(t)}function m4(t){return t instanceof Date?+t:+new Date(+t)}function Gy(t,e,r,a,c,u,f,y,w,x){var D=Kf(),j=D.invert,P=D.domain,W=x(".%L"),ot=x(":%S"),tt=x("%I:%M"),gt=x("%I %p"),ht=x("%a %d"),wt=x("%b %d"),Tt=x("%B"),Ft=x("%Y");function Gt(Et){return(w(Et)<Et?W:y(Et)<Et?ot:f(Et)<Et?tt:u(Et)<Et?gt:a(Et)<Et?c(Et)<Et?ht:wt:r(Et)<Et?Tt:Ft)(Et)}return D.invert=function(Et){return new Date(j(Et))},D.domain=function(Et){return arguments.length?P(Array.from(Et,m4)):P().map(y4)},D.ticks=function(Et){var ee=P();return t(ee[0],ee[ee.length-1],Et==null?10:Et)},D.tickFormat=function(Et,ee){return ee==null?Gt:x(ee)},D.nice=function(Et){var ee=P();return Et&&typeof Et.range=="function"||(Et=e(ee[0],ee[ee.length-1],Et==null?10:Et)),Et?P(function(re,kt){var Lt,Ct=0,yt=(re=re.slice()).length-1,Rt=re[Ct],bt=re[yt];return bt<Rt&&(Lt=Ct,Ct=yt,yt=Lt,Lt=Rt,Rt=bt,bt=Lt),re[Ct]=kt.floor(Rt),re[yt]=kt.ceil(bt),re}(ee,Et)):D},D.copy=function(){return Qf(D,Gy(t,e,r,a,c,u,f,y,w,x))},D}function v4(){}function Du(t){return t==null?v4:function(){return this.querySelector(t)}}function xp(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function b4(){return[]}function Xy(t){return t==null?b4:function(){return this.querySelectorAll(t)}}function Zy(t){return function(){return this.matches(t)}}function Qy(t){return function(e){return e.matches(t)}}Jl=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,f=t.shortDays,y=t.months,w=t.shortMonths,x=th(c),D=eh(c),j=th(u),P=eh(u),W=th(f),ot=eh(f),tt=th(y),gt=eh(y),ht=th(w),wt=eh(w),Tt={a:function(kt){return f[kt.getDay()]},A:function(kt){return u[kt.getDay()]},b:function(kt){return w[kt.getMonth()]},B:function(kt){return y[kt.getMonth()]},c:null,d:Dy,e:Dy,f:Kb,g:s4,G:Fy,H:Rc,I:Oy,j:Qb,L:By,m:Jb,M:t4,p:function(kt){return c[+(kt.getHours()>=12)]},q:function(kt){return 1+~~(kt.getMonth()/3)},Q:$y,s:Vy,S:e4,u:n4,U:r4,V:i4,w:a4,W:Iy,x:null,X:null,y:o4,Y:Ry,Z:Py,"%":_p},Ft={a:function(kt){return f[kt.getUTCDay()]},A:function(kt){return u[kt.getUTCDay()]},b:function(kt){return w[kt.getUTCMonth()]},B:function(kt){return y[kt.getUTCMonth()]},c:null,d:jy,e:jy,f:u4,g:p4,G:Nu,H:c4,I:Yy,j:Js,L:zy,m:Uy,M:l4,p:function(kt){return c[+(kt.getUTCHours()>=12)]},q:function(kt){return 1+~~(kt.getUTCMonth()/3)},Q:$y,s:Vy,S:h4,u:qy,U:c1,V:rh,w:f4,W:bp,x:null,X:null,y:d4,Y:Wy,Z:g4,"%":_p},Gt={a:function(kt,Lt,Ct){var yt=W.exec(Lt.slice(Ct));return yt?(kt.w=ot.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},A:function(kt,Lt,Ct){var yt=j.exec(Lt.slice(Ct));return yt?(kt.w=P.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},b:function(kt,Lt,Ct){var yt=ht.exec(Lt.slice(Ct));return yt?(kt.m=wt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},B:function(kt,Lt,Ct){var yt=tt.exec(Lt.slice(Ct));return yt?(kt.m=gt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},c:function(kt,Lt,Ct){return re(kt,e,Lt,Ct)},d:vp,e:vp,f:Vb,g:Sy,G:Cy,H:nh,I:nh,j:Aa,L:$b,m:My,M:Ic,p:function(kt,Lt,Ct){var yt=x.exec(Lt.slice(Ct));return yt?(kt.p=D.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},q:mp,Q:Xb,s:Zb,S:Ny,u:yp,U:qb,V:Hb,w:s1,W:Wb,x:function(kt,Lt,Ct){return re(kt,r,Lt,Ct)},X:function(kt,Lt,Ct){return re(kt,a,Lt,Ct)},y:Sy,Y:Cy,Z:Ay,"%":Gb};function Et(kt,Lt){return function(Ct){var yt,Rt,bt,xe=[],Te=-1,Ut=0,Ee=kt.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++Te<Ee;)kt.charCodeAt(Te)===37&&(xe.push(kt.slice(Ut,Te)),(Rt=Zo[yt=kt.charAt(++Te)])!=null?yt=kt.charAt(++Te):Rt=yt==="e"?" ":"0",(bt=Lt[yt])&&(yt=bt(Ct,Rt)),xe.push(yt),Ut=Te+1);return xe.push(kt.slice(Ut,Te)),xe.join("")}}function ee(kt,Lt){return function(Ct){var yt,Rt,bt=Kl(1900,void 0,1);if(re(bt,kt,Ct+="",0)!=Ct.length)return null;if("Q"in bt)return new Date(bt.Q);if("s"in bt)return new Date(1e3*bt.s+("L"in bt?bt.L:0));if(Lt&&!("Z"in bt)&&(bt.Z=0),"p"in bt&&(bt.H=bt.H%12+12*bt.p),bt.m===void 0&&(bt.m="q"in bt?bt.q:0),"V"in bt){if(bt.V<1||bt.V>53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Rt=(yt=dp(Kl(bt.y,0,1))).getUTCDay(),yt=Rt>4||Rt===0?o1.ceil(yt):o1(yt),yt=Ql.offset(yt,7*(bt.V-1)),bt.y=yt.getUTCFullYear(),bt.m=yt.getUTCMonth(),bt.d=yt.getUTCDate()+(bt.w+6)%7):(Rt=(yt=Xo(Kl(bt.y,0,1))).getDay(),yt=Rt>4||Rt===0?up.ceil(yt):up(yt),yt=Au.offset(yt,7*(bt.V-1)),bt.y=yt.getFullYear(),bt.m=yt.getMonth(),bt.d=yt.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),Rt="Z"in bt?dp(Kl(bt.y,0,1)).getUTCDay():Xo(Kl(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+7*bt.W-(Rt+5)%7:bt.w+7*bt.U-(Rt+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,dp(bt)):Xo(bt)}}function re(kt,Lt,Ct,yt){for(var Rt,bt,xe=0,Te=Lt.length,Ut=Ct.length;xe<Te;){if(yt>=Ut)return-1;if((Rt=Lt.charCodeAt(xe++))===37){if(Rt=Lt.charAt(xe++),!(bt=Gt[Rt in Zo?Lt.charAt(xe++):Rt])||(yt=bt(kt,Ct,yt))<0)return-1}else if(Rt!=Ct.charCodeAt(yt++))return-1}return yt}return Tt.x=Et(r,Tt),Tt.X=Et(a,Tt),Tt.c=Et(e,Tt),Ft.x=Et(r,Ft),Ft.X=Et(a,Ft),Ft.c=Et(e,Ft),{format:function(kt){var Lt=Et(kt+="",Tt);return Lt.toString=function(){return kt},Lt},parse:function(kt){var Lt=ee(kt+="",!1);return Lt.toString=function(){return kt},Lt},utcFormat:function(kt){var Lt=Et(kt+="",Ft);return Lt.toString=function(){return kt},Lt},utcParse:function(kt){var Lt=ee(kt+="",!0);return Lt.toString=function(){return kt},Lt}}}({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"]}),Ey=Jl.format,Jl.parse,Jl.utcFormat,Jl.utcParse;var _4=Array.prototype.find;function x4(){return this.firstElementChild}var wp=Array.prototype.filter;function w4(){return Array.from(this.children)}function Ky(t){return new Array(t.length)}function u1(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function k4(t){return function(){return t}}function Di(t,e,r,a,c,u){for(var f,y=0,w=e.length,x=u.length;y<x;++y)(f=e[y])?(f.__data__=u[y],a[y]=f):r[y]=new u1(t,u[y]);for(;y<w;++y)(f=e[y])&&(c[y]=f)}function tc(t,e,r,a,c,u,f){var y,w,x,D=new Map,j=e.length,P=u.length,W=new Array(j);for(y=0;y<j;++y)(w=e[y])&&(W[y]=x=f.call(w,w.__data__,y,e)+"",D.has(x)?c[y]=w:D.set(x,w));for(y=0;y<P;++y)x=f.call(t,u[y],y,u)+"",(w=D.get(x))?(a[y]=w,w.__data__=u[y],D.delete(x)):r[y]=new u1(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get(W[y])===w&&(c[y]=w)}function Jy(t){return t.__data__}function da(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function T4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}u1.prototype={constructor:u1,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)}};var kp="http://www.w3.org/1999/xhtml";const ih={svg:"http://www.w3.org/2000/svg",xhtml:kp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ou(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ih.hasOwnProperty(e)?{space:ih[e],local:t}:t}function tm(t){return function(){this.removeAttribute(t)}}function pa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E4(t,e){return function(){this.setAttribute(t,e)}}function C4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function S4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function A4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Tp(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function M4(t){return function(){this.style.removeProperty(t)}}function N4(t,e,r){return function(){this.style.setProperty(t,e,r)}}function D4(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Bu(t,e){return t.style.getPropertyValue(e)||Tp(t).getComputedStyle(t,null).getPropertyValue(e)}function O4(t){return function(){delete this[t]}}function B4(t,e){return function(){this[t]=e}}function L4(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function em(t){return t.trim().split(/^|\s+/)}function Ep(t){return t.classList||new ah(t)}function ah(t){this._node=t,this._names=em(t.getAttribute("class")||"")}function Fc(t,e){for(var r=Ep(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function Cp(t,e){for(var r=Ep(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function I4(t){return function(){Fc(this,t)}}function oh(t){return function(){Cp(this,t)}}function l1(t,e){return function(){(e.apply(this,arguments)?Fc:Cp)(this,t)}}function nm(){this.textContent=""}function rm(t){return function(){this.textContent=t}}function im(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function h1(){this.innerHTML=""}function f1(t){return function(){this.innerHTML=t}}function Sp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function am(){this.nextSibling&&this.parentNode.appendChild(this)}function om(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sm(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===kp&&e.documentElement.namespaceURI===kp?e.createElement(t):e.createElementNS(r,t)}}function cm(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ap(t){var e=Ou(t);return(e.local?cm:sm)(e)}function um(){return null}function lm(){var t=this.parentNode;t&&t.removeChild(this)}function ec(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function d1(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function p1(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function hm(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function Rn(t,e,r){return function(){var a,c=this.__on,u=function(w){return function(x){w.call(this,x,this.__data__)}}(e);if(c){for(var f=0,y=c.length;f<y;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function sh(t,e,r){var a=Tp(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function nr(t,e){return function(){return sh(this,t,e)}}function ui(t,e){return function(){return sh(this,t,e.apply(this,arguments))}}ah.prototype={add:function(t){this._names.indexOf(t)<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}};var Lu=[null];function Nr(t,e){this._groups=t,this._parents=e}function Ir(){return new Nr([[document.documentElement]],Lu)}Nr.prototype=Ir.prototype={constructor:Nr,select:function(t){typeof t!="function"&&(t=Du(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f,y=e[c],w=y.length,x=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(f=t.call(u,u.__data__,D,y))&&("__data__"in u&&(f.__data__=u.__data__),x[D]=f);return new Nr(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return xp(D.apply(this,arguments))}}(t):Xy(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var f,y=e[u],w=y.length,x=0;x<w;++x)(f=y[x])&&(a.push(t.call(f,f.__data__,x,y)),c.push(f));return new Nr(a,c)},selectChild:function(t){return this.select(t==null?x4:function(e){return function(){return _4.call(this.children,e)}}(typeof t=="function"?t:Qy(t)))},selectChildren:function(t){return this.selectAll(t==null?w4:function(e){return function(){return wp.call(this.children,e)}}(typeof t=="function"?t:Qy(t)))},filter:function(t){typeof t!="function"&&(t=Zy(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new Nr(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Jy);var r=e?tc:Di,a=this._parents,c=this._groups;typeof t!="function"&&(t=k4(t));for(var u=c.length,f=new Array(u),y=new Array(u),w=new Array(u),x=0;x<u;++x){var D=a[x],j=c[x],P=j.length,W=da(t.call(D,D&&D.__data__,x,a)),ot=W.length,tt=y[x]=new Array(ot),gt=f[x]=new Array(ot),ht=w[x]=new Array(P);r(D,j,tt,gt,ht,W,e);for(var wt,Tt,Ft=0,Gt=0;Ft<ot;++Ft)if(wt=tt[Ft]){for(Ft>=Gt&&(Gt=Ft+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(f=new Nr(f,a))._enter=y,f._exit=w,f},enter:function(){return new Nr(this._enter||this._groups.map(Ky),this._parents)},exit:function(){return new Nr(this._exit||this._groups.map(Ky),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,f=Math.min(c,u),y=new Array(c),w=0;w<f;++w)for(var x,D=r[w],j=a[w],P=D.length,W=y[w]=new Array(P),ot=0;ot<P;++ot)(x=D[ot]||j[ot])&&(W[ot]=x);for(;w<c;++w)y[w]=r[w];return new Nr(y,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,f=c[u];--u>=0;)(a=c[u])&&(f&&4^a.compareDocumentPosition(f)&&f.parentNode.insertBefore(a,f),f=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=T4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var f,y=r[u],w=y.length,x=c[u]=new Array(w),D=0;D<w;++D)(f=y[D])&&(x[D]=f);x.sort(e)}return new Nr(c,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],c=0,u=a.length;c<u;++c){var f=a[c];if(f)return f}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var c,u=e[r],f=0,y=u.length;f<y;++f)(c=u[f])&&t.call(c,c.__data__,f,u);return this},attr:function(t,e){var r=Ou(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?pa:tm:typeof e=="function"?r.local?A4:S4:r.local?C4:E4)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?M4:typeof e=="function"?D4:N4)(t,e,r==null?"":r)):Bu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?O4:typeof e=="function"?L4:B4)(t,e)):this.node()[t]},classed:function(t,e){var r=em(t+"");if(arguments.length<2){for(var a=Ep(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?l1:e?I4:oh)(r,e))},text:function(t){return arguments.length?this.each(t==null?nm:(typeof t=="function"?im:rm)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?h1:(typeof t=="function"?Sp:f1)(t)):this.node().innerHTML},raise:function(){return this.each(am)},lower:function(){return this.each(om)},append:function(t){var e=typeof t=="function"?t:Ap(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Ap(t),a=e==null?um:typeof e=="function"?e:Du(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(lm)},clone:function(t){return this.select(t?d1:ec)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=p1(t+""),f=u.length;if(!(arguments.length<2)){for(y=e?Rn:hm,a=0;a<f;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,x=0,D=y.length;x<D;++x)for(a=0,w=y[x];a<f;++a)if((c=u[a]).type===w.type&&c.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?ui:nr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,f=c.length;u<f;++u)(a=c[u])&&(yield a)}};const _n=Ir;function Se(t){return typeof t=="string"?new Nr([[document.querySelector(t)]],[document.documentElement]):new Nr([[t]],Lu)}function nc(t){return typeof t=="string"?new Nr([document.querySelectorAll(t)],[document.documentElement]):new Nr([xp(t)],Lu)}const Xi=Math.PI,hn=2*Xi,Qo=1e-6,fm=hn-Qo;function Iu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function g1(){return new Iu}Iu.prototype=g1.prototype={constructor:Iu,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,e,r,a,c,u){this._+="C"+ +t+","+ +e+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+u)},arcTo:function(t,e,r,a,c){t=+t,e=+e,r=+r,a=+a,c=+c;var u=this._x1,f=this._y1,y=r-t,w=a-e,x=u-t,D=f-e,j=x*x+D*D;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>Qo)if(Math.abs(D*y-w*x)>Qo&&c){var P=r-u,W=a-f,ot=y*y+w*w,tt=P*P+W*W,gt=Math.sqrt(ot),ht=Math.sqrt(j),wt=c*Math.tan((Xi-Math.acos((ot+j-tt)/(2*gt*ht)))/2),Tt=wt/ht,Ft=wt/gt;Math.abs(Tt-1)>Qo&&(this._+="L"+(t+Tt*x)+","+(e+Tt*D)),this._+="A"+c+","+c+",0,0,"+ +(D*P>x*W)+","+(this._x1=t+Ft*y)+","+(this._y1=e+Ft*w)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,c,u){t=+t,e=+e,u=!!u;var f=(r=+r)*Math.cos(a),y=r*Math.sin(a),w=t+f,x=e+y,D=1^u,j=u?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+w+","+x:(Math.abs(this._x1-w)>Qo||Math.abs(this._y1-x)>Qo)&&(this._+="L"+w+","+x),r&&(j<0&&(j=j%hn+hn),j>fm?this._+="A"+r+","+r+",0,1,"+D+","+(t-f)+","+(e-y)+"A"+r+","+r+",0,1,"+D+","+(this._x1=w)+","+(this._y1=x):j>Qo&&(this._+="A"+r+","+r+",0,"+ +(j>=Xi)+","+D+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=e+r*Math.sin(c))))},rect:function(t,e,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};const sn=g1;function _r(t){return function(){return t}}var yi=Math.abs,ji=Math.atan2,rc=Math.cos,ga=Math.max,y1=Math.min,xr=Math.sin,Ts=Math.sqrt,ya=1e-12,Ru=Math.PI,Fu=Ru/2,ch=2*Ru;function ko(t){return t>1?0:t<-1?Ru:Math.acos(t)}function Mp(t){return t>=1?Fu:t<=-1?-Fu:Math.asin(t)}function dm(t){return t.innerRadius}function Np(t){return t.outerRadius}function Dp(t){return t.startAngle}function Op(t){return t.endAngle}function m1(t){return t&&t.padAngle}function v1(t,e,r,a,c,u,f,y){var w=r-t,x=a-e,D=f-c,j=y-u,P=j*w-D*x;if(!(P*P<ya))return[t+(P=(D*(e-u)-j*(t-c))/P)*w,e+P*x]}function Ua(t,e,r,a,c,u,f){var y=t-r,w=e-a,x=(f?u:-u)/Ts(y*y+w*w),D=x*w,j=-x*y,P=t+D,W=e+j,ot=r+D,tt=a+j,gt=(P+ot)/2,ht=(W+tt)/2,wt=ot-P,Tt=tt-W,Ft=wt*wt+Tt*Tt,Gt=c-u,Et=P*tt-ot*W,ee=(Tt<0?-1:1)*Ts(ga(0,Gt*Gt*Ft-Et*Et)),re=(Et*Tt-wt*ee)/Ft,kt=(-Et*wt-Tt*ee)/Ft,Lt=(Et*Tt+wt*ee)/Ft,Ct=(-Et*wt+Tt*ee)/Ft,yt=re-gt,Rt=kt-ht,bt=Lt-gt,xe=Ct-ht;return yt*yt+Rt*Rt>bt*bt+xe*xe&&(re=Lt,kt=Ct),{cx:re,cy:kt,x01:-D,y01:-j,x11:re*(c/Gt-1),y11:kt*(c/Gt-1)}}function Bp(){var t=dm,e=Np,r=_r(0),a=null,c=Dp,u=Op,f=m1,y=null;function w(){var x,D,j=+t.apply(this,arguments),P=+e.apply(this,arguments),W=c.apply(this,arguments)-Fu,ot=u.apply(this,arguments)-Fu,tt=yi(ot-W),gt=ot>W;if(y||(y=x=sn()),P<j&&(D=P,P=j,j=D),P>ya)if(tt>ch-ya)y.moveTo(P*rc(W),P*xr(W)),y.arc(0,0,P,W,ot,!gt),j>ya&&(y.moveTo(j*rc(ot),j*xr(ot)),y.arc(0,0,j,ot,W,gt));else{var ht,wt,Tt=W,Ft=ot,Gt=W,Et=ot,ee=tt,re=tt,kt=f.apply(this,arguments)/2,Lt=kt>ya&&(a?+a.apply(this,arguments):Ts(j*j+P*P)),Ct=y1(yi(P-j)/2,+r.apply(this,arguments)),yt=Ct,Rt=Ct;if(Lt>ya){var bt=Mp(Lt/j*xr(kt)),xe=Mp(Lt/P*xr(kt));(ee-=2*bt)>ya?(Gt+=bt*=gt?1:-1,Et-=bt):(ee=0,Gt=Et=(W+ot)/2),(re-=2*xe)>ya?(Tt+=xe*=gt?1:-1,Ft-=xe):(re=0,Tt=Ft=(W+ot)/2)}var Te=P*rc(Tt),Ut=P*xr(Tt),Ee=j*rc(Et),Ce=j*xr(Et);if(Ct>ya){var _e,fe=P*rc(Ft),je=P*xr(Ft),Fe=j*rc(Gt),Je=j*xr(Gt);if(tt<Ru&&(_e=v1(Te,Ut,Fe,Je,fe,je,Ee,Ce))){var yn=Te-_e[0],He=Ut-_e[1],fr=fe-_e[0],Er=je-_e[1],Bn=1/xr(ko((yn*fr+He*Er)/(Ts(yn*yn+He*He)*Ts(fr*fr+Er*Er)))/2),qr=Ts(_e[0]*_e[0]+_e[1]*_e[1]);yt=y1(Ct,(j-qr)/(Bn-1)),Rt=y1(Ct,(P-qr)/(Bn+1))}}re>ya?Rt>ya?(ht=Ua(Fe,Je,Te,Ut,P,Rt,gt),wt=Ua(fe,je,Ee,Ce,P,Rt,gt),y.moveTo(ht.cx+ht.x01,ht.cy+ht.y01),Rt<Ct?y.arc(ht.cx,ht.cy,Rt,ji(ht.y01,ht.x01),ji(wt.y01,wt.x01),!gt):(y.arc(ht.cx,ht.cy,Rt,ji(ht.y01,ht.x01),ji(ht.y11,ht.x11),!gt),y.arc(0,0,P,ji(ht.cy+ht.y11,ht.cx+ht.x11),ji(wt.cy+wt.y11,wt.cx+wt.x11),!gt),y.arc(wt.cx,wt.cy,Rt,ji(wt.y11,wt.x11),ji(wt.y01,wt.x01),!gt))):(y.moveTo(Te,Ut),y.arc(0,0,P,Tt,Ft,!gt)):y.moveTo(Te,Ut),j>ya&&ee>ya?yt>ya?(ht=Ua(Ee,Ce,fe,je,j,-yt,gt),wt=Ua(Te,Ut,Fe,Je,j,-yt,gt),y.lineTo(ht.cx+ht.x01,ht.cy+ht.y01),yt<Ct?y.arc(ht.cx,ht.cy,yt,ji(ht.y01,ht.x01),ji(wt.y01,wt.x01),!gt):(y.arc(ht.cx,ht.cy,yt,ji(ht.y01,ht.x01),ji(ht.y11,ht.x11),!gt),y.arc(0,0,j,ji(ht.cy+ht.y11,ht.cx+ht.x11),ji(wt.cy+wt.y11,wt.cx+wt.x11),gt),y.arc(wt.cx,wt.cy,yt,ji(wt.y11,wt.x11),ji(wt.y01,wt.x01),!gt))):y.arc(0,0,j,Et,Gt,gt):y.lineTo(Ee,Ce)}else y.moveTo(0,0);if(y.closePath(),x)return y=null,x+""||null}return w.centroid=function(){var x=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,D=(+c.apply(this,arguments)+ +u.apply(this,arguments))/2-Ru/2;return[rc(D)*x,xr(D)*x]},w.innerRadius=function(x){return arguments.length?(t=typeof x=="function"?x:_r(+x),w):t},w.outerRadius=function(x){return arguments.length?(e=typeof x=="function"?x:_r(+x),w):e},w.cornerRadius=function(x){return arguments.length?(r=typeof x=="function"?x:_r(+x),w):r},w.padRadius=function(x){return arguments.length?(a=x==null?null:typeof x=="function"?x:_r(+x),w):a},w.startAngle=function(x){return arguments.length?(c=typeof x=="function"?x:_r(+x),w):c},w.endAngle=function(x){return arguments.length?(u=typeof x=="function"?x:_r(+x),w):u},w.padAngle=function(x){return arguments.length?(f=typeof x=="function"?x:_r(+x),w):f},w.context=function(x){return arguments.length?(y=x==null?null:x,w):y},w}function pm(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gm(t){this._context=t}function ao(t){return new gm(t)}function R4(t){return t[0]}function b1(t){return t[1]}function oo(t,e){var r=_r(!0),a=null,c=ao,u=null;function f(y){var w,x,D,j=(y=pm(y)).length,P=!1;for(a==null&&(u=c(D=sn())),w=0;w<=j;++w)!(w<j&&r(x=y[w],w,y))===P&&((P=!P)?u.lineStart():u.lineEnd()),P&&u.point(+t(x,w,y),+e(x,w,y));if(D)return u=null,D+""||null}return t=typeof t=="function"?t:t===void 0?R4:_r(t),e=typeof e=="function"?e:e===void 0?b1:_r(e),f.x=function(y){return arguments.length?(t=typeof y=="function"?y:_r(+y),f):t},f.y=function(y){return arguments.length?(e=typeof y=="function"?y:_r(+y),f):e},f.defined=function(y){return arguments.length?(r=typeof y=="function"?y:_r(!!y),f):r},f.curve=function(y){return arguments.length?(c=y,a!=null&&(u=c(a)),f):c},f.context=function(y){return arguments.length?(y==null?a=u=null:u=c(a=y),f):a},f}function _1(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Pu(t){return t}function ju(){}function Pc(t,e,r){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+r)/6)}function uh(t){this._context=t}function Rr(t){return new uh(t)}function ma(t){this._context=t}function ri(t){this._context=t}function Ma(t){this._context=t}function ic(t){return t<0?-1:1}function Lp(t,e,r){var a=t._x1-t._x0,c=e-t._x1,u=(t._y1-t._y0)/(a||c<0&&-0),f=(r-t._y1)/(c||a<0&&-0),y=(u*c+f*a)/(a+c);return(ic(u)+ic(f))*Math.min(Math.abs(u),Math.abs(f),.5*Math.abs(y))||0}function Ip(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ac(t,e,r){var a=t._x0,c=t._y0,u=t._x1,f=t._y1,y=(u-a)/3;t._context.bezierCurveTo(a+y,c+y*e,u-y,f-y*r,u,f)}function To(t){this._context=t}function Ko(t){this._context=new Yu(t)}function Yu(t){this._context=t}function lh(t){this._context=t}function hh(t){var e,r,a=t.length-1,c=new Array(a),u=new Array(a),f=new Array(a);for(c[0]=0,u[0]=2,f[0]=t[0]+2*t[1],e=1;e<a-1;++e)c[e]=1,u[e]=4,f[e]=4*t[e]+2*t[e+1];for(c[a-1]=2,u[a-1]=7,f[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=c[e]/u[e-1],u[e]-=r,f[e]-=r*f[e-1];for(c[a-1]=f[a-1]/u[a-1],e=a-2;e>=0;--e)c[e]=(f[e]-c[e+1])/u[e];for(u[a-1]=(t[a]+c[a-1])/2,e=0;e<a-1;++e)u[e]=2*t[e+1]-c[e+1];return[c,u]}function jc(t,e){this._context=t,this._t=e}gm.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)}}},uh.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:Pc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:Pc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ma.prototype={areaStart:ju,areaEnd:ju,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)}},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:Pc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ri.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(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 r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:Pc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ma.prototype={areaStart:ju,areaEnd:ju,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))}},To.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:ac(this,this._t0,Ip(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+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,ac(this,Ip(this,r=Lp(this,t,e)),r);break;default:ac(this,this._t0,r=Lp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Ko.prototype=Object.create(To.prototype)).point=function(t,e){To.prototype.point.call(this,e,t)},Yu.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,r,a,c,u){this._context.bezierCurveTo(e,t,a,r,u,c)}},lh.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var a=hh(t),c=hh(e),u=0,f=1;f<r;++u,++f)this._context.bezierCurveTo(a[0][u],c[0][u],a[1][u],c[1][u],t[f],e[f]);(this._line||this._line!==0&&r===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)}},jc.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var zu=new Date,Uu=new Date;function so(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var f=c(u),y=c.ceil(u);return u-f<y-u?f:y},c.offset=function(u,f){return e(u=new Date(+u),f==null?1:Math.floor(f)),u},c.range=function(u,f,y){var w,x=[];if(u=c.ceil(u),y=y==null?1:Math.floor(y),!(u<f&&y>0))return x;do x.push(w=new Date(+u)),e(u,y),t(u);while(w<u&&u<f);return x},c.filter=function(u){return so(function(f){if(f>=f)for(;t(f),!u(f);)f.setTime(f-1)},function(f,y){if(f>=f)if(y<0)for(;++y<=0;)for(;e(f,-1),!u(f););else for(;--y>=0;)for(;e(f,1),!u(f););})},r&&(c.count=function(u,f){return zu.setTime(+u),Uu.setTime(+f),t(zu),t(Uu),Math.floor(r(zu,Uu))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(f){return a(f)%u==0}:function(f){return c.count(0,f)%u==0}):c:null}),c}const fh=864e5,x1=6048e5;function Es(t){return so(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/x1})}var Rp=Es(0),w1=Es(1);Es(2),Es(3);var qu=Es(4);Es(5),Es(6);var va=so(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/fh},function(t){return t.getUTCDate()-1});const na=va;function mi(t){return so(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-6e4*(r.getTimezoneOffset()-e.getTimezoneOffset()))/x1})}var dh=mi(0),Eo=mi(1);mi(2),mi(3);var Yc=mi(4);mi(5),mi(6);var ym=so(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/fh,t=>t.getDate()-1);const Fp=ym;var Pp=so(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Pp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?so(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const Hu=Pp;var mm=so(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?so(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const ph=mm;function ba(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 jp(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 Wu(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var gh,qa,k1={"-":"",_:" ",0:"0"},li=/^\s*\d+/,vm=/^%/,F4=/[\\^$*+?|[\]().{}]/g;function wr(t,e,r){var a=t<0?"-":"",c=(a?-t:t)+"",u=c.length;return a+(u<r?new Array(r-u+1).join(e)+c:c)}function bm(t){return t.replace(F4,"\\$&")}function yh(t){return new RegExp("^(?:"+t.map(bm).join("|")+")","i")}function mh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function P4(t,e,r){var a=li.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function _m(t,e,r){var a=li.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function j4(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function $u(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Yp(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function T1(t,e,r){var a=li.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function E1(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function xm(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function wm(t,e,r){var a=li.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function km(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function zp(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Tm(t,e,r){var a=li.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Up(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Y4(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Em(t,e,r){var a=li.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function C1(t,e,r){var a=li.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function S1(t,e,r){var a=li.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Cm(t,e,r){var a=vm.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Sm(t,e,r){var a=li.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function qp(t,e,r){var a=li.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function A1(t,e){return wr(t.getDate(),e,2)}function Am(t,e){return wr(t.getHours(),e,2)}function Mm(t,e){return wr(t.getHours()%12||12,e,2)}function z4(t,e){return wr(1+Fp.count(Hu(t),t),e,3)}function Nm(t,e){return wr(t.getMilliseconds(),e,3)}function Hp(t,e){return Nm(t,e)+"000"}function Dm(t,e){return wr(t.getMonth()+1,e,2)}function vh(t,e){return wr(t.getMinutes(),e,2)}function M1(t,e){return wr(t.getSeconds(),e,2)}function N1(t){var e=t.getDay();return e===0?7:e}function U4(t,e){return wr(dh.count(Hu(t)-1,t),e,2)}function D1(t){var e=t.getDay();return e>=4||e===0?Yc(t):Yc.ceil(t)}function O1(t,e){return t=D1(t),wr(Yc.count(Hu(t),t)+(Hu(t).getDay()===4),e,2)}function B1(t){return t.getDay()}function Wp(t,e){return wr(Eo.count(Hu(t)-1,t),e,2)}function Vu(t,e){return wr(t.getFullYear()%100,e,2)}function q4(t,e){return wr((t=D1(t)).getFullYear()%100,e,2)}function H4(t,e){return wr(t.getFullYear()%1e4,e,4)}function W4(t,e){var r=t.getDay();return wr((t=r>=4||r===0?Yc(t):Yc.ceil(t)).getFullYear()%1e4,e,4)}function Om(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wr(e/60|0,"0",2)+wr(e%60,"0",2)}function L1(t,e){return wr(t.getUTCDate(),e,2)}function $4(t,e){return wr(t.getUTCHours(),e,2)}function I1(t,e){return wr(t.getUTCHours()%12||12,e,2)}function Bm(t,e){return wr(1+na.count(ph(t),t),e,3)}function $p(t,e){return wr(t.getUTCMilliseconds(),e,3)}function R1(t,e){return $p(t,e)+"000"}function Lm(t,e){return wr(t.getUTCMonth()+1,e,2)}function Im(t,e){return wr(t.getUTCMinutes(),e,2)}function Rm(t,e){return wr(t.getUTCSeconds(),e,2)}function V4(t){var e=t.getUTCDay();return e===0?7:e}function Fm(t,e){return wr(Rp.count(ph(t)-1,t),e,2)}function Pm(t){var e=t.getUTCDay();return e>=4||e===0?qu(t):qu.ceil(t)}function jm(t,e){return t=Pm(t),wr(qu.count(ph(t),t)+(ph(t).getUTCDay()===4),e,2)}function Ym(t){return t.getUTCDay()}function zm(t,e){return wr(w1.count(ph(t)-1,t),e,2)}function G4(t,e){return wr(t.getUTCFullYear()%100,e,2)}function X4(t,e){return wr((t=Pm(t)).getUTCFullYear()%100,e,2)}function bh(t,e){return wr(t.getUTCFullYear()%1e4,e,4)}function Um(t,e){var r=t.getUTCDay();return wr((t=r>=4||r===0?qu(t):qu.ceil(t)).getUTCFullYear()%1e4,e,4)}function qm(){return"+0000"}function F1(){return"%"}function P1(t){return+t}function j1(t){return Math.floor(+t/1e3)}gh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,f=t.shortDays,y=t.months,w=t.shortMonths,x=yh(c),D=mh(c),j=yh(u),P=mh(u),W=yh(f),ot=mh(f),tt=yh(y),gt=mh(y),ht=yh(w),wt=mh(w),Tt={a:function(kt){return f[kt.getDay()]},A:function(kt){return u[kt.getDay()]},b:function(kt){return w[kt.getMonth()]},B:function(kt){return y[kt.getMonth()]},c:null,d:A1,e:A1,f:Hp,g:q4,G:W4,H:Am,I:Mm,j:z4,L:Nm,m:Dm,M:vh,p:function(kt){return c[+(kt.getHours()>=12)]},q:function(kt){return 1+~~(kt.getMonth()/3)},Q:P1,s:j1,S:M1,u:N1,U:U4,V:O1,w:B1,W:Wp,x:null,X:null,y:Vu,Y:H4,Z:Om,"%":F1},Ft={a:function(kt){return f[kt.getUTCDay()]},A:function(kt){return u[kt.getUTCDay()]},b:function(kt){return w[kt.getUTCMonth()]},B:function(kt){return y[kt.getUTCMonth()]},c:null,d:L1,e:L1,f:R1,g:X4,G:Um,H:$4,I:I1,j:Bm,L:$p,m:Lm,M:Im,p:function(kt){return c[+(kt.getUTCHours()>=12)]},q:function(kt){return 1+~~(kt.getUTCMonth()/3)},Q:P1,s:j1,S:Rm,u:V4,U:Fm,V:jm,w:Ym,W:zm,x:null,X:null,y:G4,Y:bh,Z:qm,"%":F1},Gt={a:function(kt,Lt,Ct){var yt=W.exec(Lt.slice(Ct));return yt?(kt.w=ot.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},A:function(kt,Lt,Ct){var yt=j.exec(Lt.slice(Ct));return yt?(kt.w=P.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},b:function(kt,Lt,Ct){var yt=ht.exec(Lt.slice(Ct));return yt?(kt.m=wt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},B:function(kt,Lt,Ct){var yt=tt.exec(Lt.slice(Ct));return yt?(kt.m=gt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},c:function(kt,Lt,Ct){return re(kt,e,Lt,Ct)},d:zp,e:zp,f:S1,g:E1,G:T1,H:Up,I:Up,j:Tm,L:C1,m:km,M:Y4,p:function(kt,Lt,Ct){var yt=x.exec(Lt.slice(Ct));return yt?(kt.p=D.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},q:wm,Q:Sm,s:qp,S:Em,u:_m,U:j4,V:$u,w:P4,W:Yp,x:function(kt,Lt,Ct){return re(kt,r,Lt,Ct)},X:function(kt,Lt,Ct){return re(kt,a,Lt,Ct)},y:E1,Y:T1,Z:xm,"%":Cm};function Et(kt,Lt){return function(Ct){var yt,Rt,bt,xe=[],Te=-1,Ut=0,Ee=kt.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++Te<Ee;)kt.charCodeAt(Te)===37&&(xe.push(kt.slice(Ut,Te)),(Rt=k1[yt=kt.charAt(++Te)])!=null?yt=kt.charAt(++Te):Rt=yt==="e"?" ":"0",(bt=Lt[yt])&&(yt=bt(Ct,Rt)),xe.push(yt),Ut=Te+1);return xe.push(kt.slice(Ut,Te)),xe.join("")}}function ee(kt,Lt){return function(Ct){var yt,Rt,bt=Wu(1900,void 0,1);if(re(bt,kt,Ct+="",0)!=Ct.length)return null;if("Q"in bt)return new Date(bt.Q);if("s"in bt)return new Date(1e3*bt.s+("L"in bt?bt.L:0));if(Lt&&!("Z"in bt)&&(bt.Z=0),"p"in bt&&(bt.H=bt.H%12+12*bt.p),bt.m===void 0&&(bt.m="q"in bt?bt.q:0),"V"in bt){if(bt.V<1||bt.V>53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Rt=(yt=jp(Wu(bt.y,0,1))).getUTCDay(),yt=Rt>4||Rt===0?w1.ceil(yt):w1(yt),yt=na.offset(yt,7*(bt.V-1)),bt.y=yt.getUTCFullYear(),bt.m=yt.getUTCMonth(),bt.d=yt.getUTCDate()+(bt.w+6)%7):(Rt=(yt=ba(Wu(bt.y,0,1))).getDay(),yt=Rt>4||Rt===0?Eo.ceil(yt):Eo(yt),yt=Fp.offset(yt,7*(bt.V-1)),bt.y=yt.getFullYear(),bt.m=yt.getMonth(),bt.d=yt.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),Rt="Z"in bt?jp(Wu(bt.y,0,1)).getUTCDay():ba(Wu(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+7*bt.W-(Rt+5)%7:bt.w+7*bt.U-(Rt+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,jp(bt)):ba(bt)}}function re(kt,Lt,Ct,yt){for(var Rt,bt,xe=0,Te=Lt.length,Ut=Ct.length;xe<Te;){if(yt>=Ut)return-1;if((Rt=Lt.charCodeAt(xe++))===37){if(Rt=Lt.charAt(xe++),!(bt=Gt[Rt in k1?Lt.charAt(xe++):Rt])||(yt=bt(kt,Ct,yt))<0)return-1}else if(Rt!=Ct.charCodeAt(yt++))return-1}return yt}return Tt.x=Et(r,Tt),Tt.X=Et(a,Tt),Tt.c=Et(e,Tt),Ft.x=Et(r,Ft),Ft.X=Et(a,Ft),Ft.c=Et(e,Ft),{format:function(kt){var Lt=Et(kt+="",Tt);return Lt.toString=function(){return kt},Lt},parse:function(kt){var Lt=ee(kt+="",!1);return Lt.toString=function(){return kt},Lt},utcFormat:function(kt){var Lt=Et(kt+="",Ft);return Lt.toString=function(){return kt},Lt},utcParse:function(kt){var Lt=ee(kt+="",!0);return Lt.toString=function(){return kt},Lt}}}({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"]}),qa=gh.format,gh.parse,gh.utcFormat,gh.utcParse;var Vp={value:()=>{}};function Cs(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new Y1(a)}function Y1(t){this._=t}function Z4(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function Hm(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function Wm(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=Vp,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}Y1.prototype=Cs.prototype={constructor:Y1,on:function(t,e){var r,a=this._,c=Z4(t+"",a),u=-1,f=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(r=(t=c[u]).type)a[r]=Wm(a[r],t.name,e);else if(e==null)for(r in a)a[r]=Wm(a[r],t.name,null);return this}for(;++u<f;)if((r=(t=c[u]).type)&&(r=Hm(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Y1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const $m=Cs;var Ss,oc,Jo=0,sc=0,_h=0,zc=0,cc=0,xh=0,Na=typeof performance=="object"&&performance.now?performance:Date,Co=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wh(){return cc||(Co(Gp),cc=Na.now()+xh)}function Gp(){cc=0}function uc(){this._call=this._time=this._next=null}function kh(t,e,r){var a=new uc;return a.restart(t,e,r),a}function Th(){cc=(zc=Na.now())+xh,Jo=sc=0;try{(function(){wh(),++Jo;for(var t,e=Ss;e;)(t=cc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jo})()}finally{Jo=0,function(){for(var t,e,r=Ss,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ss=e);oc=t,Eh(a)}(),cc=0}}function Gu(){var t=Na.now(),e=t-zc;e>1e3&&(xh-=e,zc=t)}function Eh(t){Jo||(sc&&(sc=clearTimeout(sc)),t-cc>24?(t<1/0&&(sc=setTimeout(Th,t-Na.now()-xh)),_h&&(_h=clearInterval(_h))):(_h||(zc=Na.now(),_h=setInterval(Gu,1e3)),Jo=1,Co(Th)))}function z1(t,e,r){var a=new uc;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}uc.prototype=kh.prototype={constructor:uc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?wh():+r)+(e==null?0:+e),this._next||oc===this||(oc?oc._next=this:Ss=this,oc=this),this._call=t,this._time=r,Eh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Eh())}};var Ch=$m("start","end","cancel","interrupt"),So=[];function ts(t,e,r,a,c,u){var f=t.__transition;if(f){if(r in f)return}else t.__transition={};(function(y,w,x){var D,j=y.__transition;function P(tt){var gt,ht,wt,Tt;if(x.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===x.name){if(Tt.state===3)return z1(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",y,y.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",y,y.__data__,Tt.index,Tt.group),delete j[gt])}if(z1(function(){x.state===3&&(x.state=4,x.timer.restart(W,x.delay,x.time),W(tt))}),x.state=2,x.on.call("start",y,y.__data__,x.index,x.group),x.state===2){for(x.state=3,D=new Array(wt=x.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=x.tween[gt].value.call(y,y.__data__,x.index,x.group))&&(D[++ht]=Tt);D.length=ht+1}}function W(tt){for(var gt=tt<x.duration?x.ease.call(null,tt/x.duration):(x.timer.restart(ot),x.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(y,gt);x.state===5&&(x.on.call("end",y,y.__data__,x.index,x.group),ot())}function ot(){for(var tt in x.state=6,x.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=x,x.timer=kh(function(tt){x.state=1,x.timer.restart(P,x.delay,x.time),x.delay<=tt&&P(tt-x.delay)},0,x.time)})(t,r,{name:e,index:a,group:c,on:Ch,tween:So,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function U1(t,e){var r=Ao(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function es(t,e){var r=Ao(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Ao(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function As(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var q1,Vm=180/Math.PI,Xp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zp(t,e,r,a,c,u){var f,y,w;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a<e*r&&(t=-t,e=-e,w=-w,f=-f),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Vm,skewX:Math.atan(w)*Vm,scaleX:f,scaleY:y}}function Qp(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,f){var y=[],w=[];return u=t(u),f=t(f),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push("translate(",null,e,null,r);ot.push({i:tt-4,x:As(x,j)},{i:tt-2,x:As(D,P)})}else(j||P)&&W.push("translate("+j+e+P+r)}(u.translateX,u.translateY,f.translateX,f.translateY,y,w),function(x,D,j,P){x!==D?(x-D>180?D+=360:D-x>180&&(x+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:As(x,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,f.rotate,y,w),function(x,D,j,P){x!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:As(x,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,f.skewX,y,w),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push(c(W)+"scale(",null,",",null,")");ot.push({i:tt-4,x:As(x,j)},{i:tt-2,x:As(D,P)})}else j===1&&P===1||W.push(c(W)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,f.scaleX,f.scaleY,y,w),u=f=null,function(x){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(x);return y.join("")}}}var Gm=Qp(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Xp:Zp(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Kp=Qp(function(t){return t==null?Xp:(q1||(q1=document.createElementNS("http://www.w3.org/2000/svg","g")),q1.setAttribute("transform",t),(t=q1.transform.baseVal.consolidate())?Zp((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Xp)},", ",")",")");function Xm(t,e){var r,a;return function(){var c=es(this,t),u=c.tween;if(u!==r){for(var f=0,y=(a=r=u).length;f<y;++f)if(a[f].name===e){(a=a.slice()).splice(f,1);break}}c.tween=a}}function Zm(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=es(this,t),f=u.tween;if(f!==a){c=(a=f).slice();for(var y={name:e,value:r},w=0,x=c.length;w<x;++w)if(c[w].name===e){c[w]=y;break}w===x&&c.push(y)}u.tween=c}}function Uc(t,e,r){var a=t._id;return t.each(function(){var c=es(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return Ao(c,a).value[e]}}const Xu=function t(e){var r=function(c){return(c=+c)==1?Hl:function(u,f){return f-u?function(y,w,x){return y=Math.pow(y,x),w=Math.pow(w,x)-y,x=1/x,function(D){return Math.pow(y+D*w,x)}}(u,f,c):F0(isNaN(u)?f:u)}}(e);function a(c,u){var f=r((c=Mr(c)).r,(u=Mr(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),x=Hl(c.opacity,u.opacity);return function(D){return c.r=f(D),c.g=y(D),c.b=w(D),c.opacity=x(D),c+""}}return a.gamma=t,a}(1);var Sh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(Sh.source,"g");function Q4(t,e){var r,a,c,u=Sh.lastIndex=Zu.lastIndex=0,f=-1,y=[],w=[];for(t+="",e+="";(r=Sh.exec(t))&&(a=Zu.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[f]?y[f]+=c:y[++f]=c),(r=r[0])===(a=a[0])?y[f]?y[f]+=a:y[++f]=a:(y[++f]=null,w.push({i:f,x:As(r,a)})),u=Zu.lastIndex;return u<e.length&&(c=e.slice(u),y[f]?y[f]+=c:y[++f]=c),y.length<2?w[0]?function(x){return function(D){return x(D)+""}}(w[0].x):function(x){return function(){return x}}(e):(e=w.length,function(x){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(x);return y.join("")})}function Jp(t,e){var r;return(typeof e=="number"?As:e instanceof xn?Xu:(r=xn(e))?(e=r,Xu):Q4)(t,e)}function Qm(t){return function(){this.removeAttribute(t)}}function Km(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Jm(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttribute(t);return f===u?null:f===a?c:c=e(a=f,r)}}function K4(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttributeNS(t.space,t.local);return f===u?null:f===a?c:c=e(a=f,r)}}function J4(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttribute(t))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttribute(t)}}function Ah(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttributeNS(t.space,t.local)}}function tg(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function eg(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function H1(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&eg(t,u)),r}return c._value=e,c}function ng(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&tg(t,u)),r}return c._value=e,c}function rg(t,e){return function(){U1(this,t).delay=+e.apply(this,arguments)}}function ig(t,e){return e=+e,function(){U1(this,t).delay=e}}function t5(t,e){return function(){es(this,t).duration=+e.apply(this,arguments)}}function tv(t,e){return e=+e,function(){es(this,t).duration=e}}function e5(t,e){if(typeof e!="function")throw new Error;return function(){es(this,t).ease=e}}function n5(t,e,r){var a,c,u=function(f){return(f+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?U1:es;return function(){var f=u(this,t),y=f.on;y!==a&&(c=(a=y).copy()).on(e,r),f.on=c}}var ev=_n.prototype.constructor;function Mo(t){return function(){this.style.removeProperty(t)}}function ag(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function og(t,e,r){var a,c;function u(){var f=e.apply(this,arguments);return f!==c&&(a=(c=f)&&ag(t,f,r)),a}return u._value=e,u}function nv(t){return function(e){this.textContent=t.call(this,e)}}function W1(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&nv(c)),e}return a._value=t,a}var rv=0;function Ms(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function sg(){return++rv}var Ha=_n.prototype;Ms.prototype={constructor:Ms,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Du(t));for(var a=this._groups,c=a.length,u=new Array(c),f=0;f<c;++f)for(var y,w,x=a[f],D=x.length,j=u[f]=new Array(D),P=0;P<D;++P)(y=x[P])&&(w=t.call(y,y.__data__,P,x))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,ts(j[P],e,r,P,j,Ao(y,r)));return new Ms(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Xy(t));for(var a=this._groups,c=a.length,u=[],f=[],y=0;y<c;++y)for(var w,x=a[y],D=x.length,j=0;j<D;++j)if(w=x[j]){for(var P,W=t.call(w,w.__data__,j,x),ot=Ao(w,r),tt=0,gt=W.length;tt<gt;++tt)(P=W[tt])&&ts(P,e,r,tt,W,ot);u.push(W),f.push(w)}return new Ms(u,f,e,r)},selectChild:Ha.selectChild,selectChildren:Ha.selectChildren,filter:function(t){typeof t!="function"&&(t=Zy(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new Ms(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,c=r.length,u=Math.min(a,c),f=new Array(a),y=0;y<u;++y)for(var w,x=e[y],D=r[y],j=x.length,P=f[y]=new Array(j),W=0;W<j;++W)(w=x[W]||D[W])&&(P[W]=w);for(;y<a;++y)f[y]=e[y];return new Ms(f,this._parents,this._name,this._id)},selection:function(){return new ev(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=sg(),a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)if(f=y[x]){var D=Ao(f,e);ts(f,t,r,x,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new Ms(a,this._parents,t,r)},call:Ha.call,nodes:Ha.nodes,node:Ha.node,size:Ha.size,empty:Ha.empty,each:Ha.each,on:function(t,e){var r=this._id;return arguments.length<2?Ao(this.node(),r).on.on(t):this.each(n5(r,t,e))},attr:function(t,e){var r=Ou(t),a=r==="transform"?Kp:Jp;return this.attrTween(t,typeof e=="function"?(r.local?Ah:J4)(r,a,Uc(this,"attr."+t,e)):e==null?(r.local?Km:Qm)(r):(r.local?K4:Jm)(r,a,e))},attrTween:function(t,e){var r="attr."+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;var a=Ou(t);return this.tween(r,(a.local?H1:ng)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Gm:Jp;return e==null?this.styleTween(t,function(c,u){var f,y,w;return function(){var x=Bu(this,c),D=(this.style.removeProperty(c),Bu(this,c));return x===D?null:x===f&&D===y?w:w=u(f=x,y=D)}}(t,a)).on("end.style."+t,Mo(t)):typeof e=="function"?this.styleTween(t,function(c,u,f){var y,w,x;return function(){var D=Bu(this,c),j=f(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=Bu(this,c)),D===P?null:D===y&&P===w?x:(w=P,x=u(y=D,j))}}(t,a,Uc(this,"style."+t,e))).each(function(c,u){var f,y,w,x,D="style."+u,j="end."+D;return function(){var P=es(this,c),W=P.on,ot=P.value[D]==null?x||(x=Mo(u)):void 0;W===f&&w===ot||(y=(f=W).copy()).on(j,w=ot),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,f){var y,w,x=f+"";return function(){var D=Bu(this,c);return D===x?null:D===y?w:w=u(y=D,f)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,og(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(Uc(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,W1(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,c=Ao(this.node(),r).tween,u=0,f=c.length;u<f;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?Xm:Zm)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?rg:ig)(e,t)):Ao(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?t5:tv)(e,t)):Ao(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(e5(e,t)):Ao(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;es(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,f){var y={value:f},w={value:function(){--c==0&&u()}};r.each(function(){var x=es(this,a),D=x.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),x.on=e}),c===0&&u()})},[Symbol.iterator]:Ha[Symbol.iterator]};var cg={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function r5(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function ug(){}function lg(t){return t==null?ug:function(){return this.querySelector(t)}}function Mh(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function i5(){return[]}function hg(t){return t==null?i5:function(){return this.querySelectorAll(t)}}function Nh(t){return function(){return this.matches(t)}}function fg(t){return function(e){return e.matches(t)}}_n.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,f=e.__transition,y=!0;if(f){for(u in r=r==null?null:r+"",f)(a=f[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete f[u]):y=!1;y&&delete e.__transition}})(this,t)})},_n.prototype.transition=function(t){var e,r;t instanceof Ms?(e=t._id,t=t._name):(e=sg(),(r=cg).time=wh(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)(f=y[x])&&ts(f,t,e,x,y,r||r5(f,e));return new Ms(a,this._parents,t,e)};var a5=Array.prototype.find;function Dh(){return this.firstElementChild}var o5=Array.prototype.filter;function iv(){return Array.from(this.children)}function av(t){return new Array(t.length)}function lc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Oh(t){return function(){return t}}function Bh(t,e,r,a,c,u){for(var f,y=0,w=e.length,x=u.length;y<x;++y)(f=e[y])?(f.__data__=u[y],a[y]=f):r[y]=new lc(t,u[y]);for(;y<w;++y)(f=e[y])&&(c[y]=f)}function Lh(t,e,r,a,c,u,f){var y,w,x,D=new Map,j=e.length,P=u.length,W=new Array(j);for(y=0;y<j;++y)(w=e[y])&&(W[y]=x=f.call(w,w.__data__,y,e)+"",D.has(x)?c[y]=w:D.set(x,w));for(y=0;y<P;++y)x=f.call(t,u[y],y,u)+"",(w=D.get(x))?(a[y]=w,w.__data__=u[y],D.delete(x)):r[y]=new lc(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get(W[y])===w&&(c[y]=w)}function $1(t){return t.__data__}function dg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function s5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}lc.prototype={constructor:lc,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)}};var Ih="http://www.w3.org/1999/xhtml";const ov={svg:"http://www.w3.org/2000/svg",xhtml:Ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function V1(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ov.hasOwnProperty(e)?{space:ov[e],local:t}:t}function pg(t){return function(){this.removeAttribute(t)}}function c5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gg(t,e){return function(){this.setAttribute(t,e)}}function u5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function yg(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function l5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function G1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function h5(t){return function(){this.style.removeProperty(t)}}function f5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function d5(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Qu(t,e){return t.style.getPropertyValue(e)||G1(t).getComputedStyle(t,null).getPropertyValue(e)}function p5(t){return function(){delete this[t]}}function g5(t,e){return function(){this[t]=e}}function mg(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function sv(t){return t.trim().split(/^|\s+/)}function vg(t){return t.classList||new bg(t)}function bg(t){this._node=t,this._names=sv(t.getAttribute("class")||"")}function qc(t,e){for(var r=vg(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function cv(t,e){for(var r=vg(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function uv(t){return function(){qc(this,t)}}function y5(t){return function(){cv(this,t)}}function X1(t,e){return function(){(e.apply(this,arguments)?qc:cv)(this,t)}}function lv(){this.textContent=""}function _g(t){return function(){this.textContent=t}}function m5(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Rh(){this.innerHTML=""}function hv(t){return function(){this.innerHTML=t}}function fv(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function dv(){this.nextSibling&&this.parentNode.appendChild(this)}function pv(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Z1(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Ih&&e.documentElement.namespaceURI===Ih?e.createElement(t):e.createElementNS(r,t)}}function gv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function yv(t){var e=V1(t);return(e.local?gv:Z1)(e)}function v5(){return null}function Q1(){var t=this.parentNode;t&&t.removeChild(this)}function Hc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ku(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function b5(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function _5(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function mv(t,e,r){return function(){var a,c=this.__on,u=function(w){return function(x){w.call(this,x,this.__data__)}}(e);if(c){for(var f=0,y=c.length;f<y;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function K1(t,e,r){var a=G1(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function vv(t,e){return function(){return K1(this,t,e)}}function bv(t,e){return function(){return K1(this,t,e.apply(this,arguments))}}bg.prototype={add:function(t){this._names.indexOf(t)<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}};var Fh=[null];function No(t,e){this._groups=t,this._parents=e}function _v(){return new No([[document.documentElement]],Fh)}No.prototype=_v.prototype={constructor:No,select:function(t){typeof t!="function"&&(t=lg(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f,y=e[c],w=y.length,x=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(f=t.call(u,u.__data__,D,y))&&("__data__"in u&&(f.__data__=u.__data__),x[D]=f);return new No(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return Mh(D.apply(this,arguments))}}(t):hg(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var f,y=e[u],w=y.length,x=0;x<w;++x)(f=y[x])&&(a.push(t.call(f,f.__data__,x,y)),c.push(f));return new No(a,c)},selectChild:function(t){return this.select(t==null?Dh:function(e){return function(){return a5.call(this.children,e)}}(typeof t=="function"?t:fg(t)))},selectChildren:function(t){return this.selectAll(t==null?iv:function(e){return function(){return o5.call(this.children,e)}}(typeof t=="function"?t:fg(t)))},filter:function(t){typeof t!="function"&&(t=Nh(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new No(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,$1);var r=e?Lh:Bh,a=this._parents,c=this._groups;typeof t!="function"&&(t=Oh(t));for(var u=c.length,f=new Array(u),y=new Array(u),w=new Array(u),x=0;x<u;++x){var D=a[x],j=c[x],P=j.length,W=dg(t.call(D,D&&D.__data__,x,a)),ot=W.length,tt=y[x]=new Array(ot),gt=f[x]=new Array(ot),ht=w[x]=new Array(P);r(D,j,tt,gt,ht,W,e);for(var wt,Tt,Ft=0,Gt=0;Ft<ot;++Ft)if(wt=tt[Ft]){for(Ft>=Gt&&(Gt=Ft+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(f=new No(f,a))._enter=y,f._exit=w,f},enter:function(){return new No(this._enter||this._groups.map(av),this._parents)},exit:function(){return new No(this._exit||this._groups.map(av),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,f=Math.min(c,u),y=new Array(c),w=0;w<f;++w)for(var x,D=r[w],j=a[w],P=D.length,W=y[w]=new Array(P),ot=0;ot<P;++ot)(x=D[ot]||j[ot])&&(W[ot]=x);for(;w<c;++w)y[w]=r[w];return new No(y,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,f=c[u];--u>=0;)(a=c[u])&&(f&&4^a.compareDocumentPosition(f)&&f.parentNode.insertBefore(a,f),f=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=s5);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var f,y=r[u],w=y.length,x=c[u]=new Array(w),D=0;D<w;++D)(f=y[D])&&(x[D]=f);x.sort(e)}return new No(c,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],c=0,u=a.length;c<u;++c){var f=a[c];if(f)return f}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var c,u=e[r],f=0,y=u.length;f<y;++f)(c=u[f])&&t.call(c,c.__data__,f,u);return this},attr:function(t,e){var r=V1(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?c5:pg:typeof e=="function"?r.local?l5:yg:r.local?u5:gg)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?h5:typeof e=="function"?d5:f5)(t,e,r==null?"":r)):Qu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?p5:typeof e=="function"?mg:g5)(t,e)):this.node()[t]},classed:function(t,e){var r=sv(t+"");if(arguments.length<2){for(var a=vg(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?X1:e?uv:y5)(r,e))},text:function(t){return arguments.length?this.each(t==null?lv:(typeof t=="function"?m5:_g)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Rh:(typeof t=="function"?fv:hv)(t)):this.node().innerHTML},raise:function(){return this.each(dv)},lower:function(){return this.each(pv)},append:function(t){var e=typeof t=="function"?t:yv(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:yv(t),a=e==null?v5:typeof e=="function"?e:lg(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(Q1)},clone:function(t){return this.select(t?Ku:Hc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=b5(t+""),f=u.length;if(!(arguments.length<2)){for(y=e?mv:_5,a=0;a<f;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,x=0,D=y.length;x<D;++x)for(a=0,w=y[x];a<f;++a)if((c=u[a]).type===w.type&&c.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?bv:vv)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,f=c.length;u<f;++u)(a=c[u])&&(yield a)}};const Ph=_v;var x5={value:()=>{}};function xv(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new J1(a)}function J1(t){this._=t}function w5(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function xg(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function td(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=x5,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}J1.prototype=xv.prototype={constructor:J1,on:function(t,e){var r,a=this._,c=w5(t+"",a),u=-1,f=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<f;)if(r=(t=c[u]).type)a[r]=td(a[r],t.name,e);else if(e==null)for(r in a)a[r]=td(a[r],t.name,null);return this}for(;++u<f;)if((r=(t=c[u]).type)&&(r=xg(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new J1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const k5=xv;var ed,hc,Ju=0,fc=0,tl=0,jh=0,dc=0,nd=0,Yh=typeof performance=="object"&&performance.now?performance:Date,wv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wg(){return dc||(wv(T5),dc=Yh.now()+nd)}function T5(){dc=0}function rd(){this._call=this._time=this._next=null}function kg(t,e,r){var a=new rd;return a.restart(t,e,r),a}function el(){dc=(jh=Yh.now())+nd,Ju=fc=0;try{(function(){wg(),++Ju;for(var t,e=ed;e;)(t=dc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ju})()}finally{Ju=0,function(){for(var t,e,r=ed,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ed=e);hc=t,id(a)}(),dc=0}}function kv(){var t=Yh.now(),e=t-jh;e>1e3&&(nd-=e,jh=t)}function id(t){Ju||(fc&&(fc=clearTimeout(fc)),t-dc>24?(t<1/0&&(fc=setTimeout(el,t-Yh.now()-nd)),tl&&(tl=clearInterval(tl))):(tl||(jh=Yh.now(),tl=setInterval(kv,1e3)),Ju=1,wv(el)))}function Tg(t,e,r){var a=new rd;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}rd.prototype=kg.prototype={constructor:rd,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?wg():+r)+(e==null?0:+e),this._next||hc===this||(hc?hc._next=this:ed=this,hc=this),this._call=t,this._time=r,id()},stop:function(){this._call&&(this._call=null,this._time=1/0,id())}};var E5=k5("start","end","cancel","interrupt"),C5=[];function ad(t,e,r,a,c,u){var f=t.__transition;if(f){if(r in f)return}else t.__transition={};(function(y,w,x){var D,j=y.__transition;function P(tt){var gt,ht,wt,Tt;if(x.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===x.name){if(Tt.state===3)return Tg(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",y,y.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",y,y.__data__,Tt.index,Tt.group),delete j[gt])}if(Tg(function(){x.state===3&&(x.state=4,x.timer.restart(W,x.delay,x.time),W(tt))}),x.state=2,x.on.call("start",y,y.__data__,x.index,x.group),x.state===2){for(x.state=3,D=new Array(wt=x.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=x.tween[gt].value.call(y,y.__data__,x.index,x.group))&&(D[++ht]=Tt);D.length=ht+1}}function W(tt){for(var gt=tt<x.duration?x.ease.call(null,tt/x.duration):(x.timer.restart(ot),x.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(y,gt);x.state===5&&(x.on.call("end",y,y.__data__,x.index,x.group),ot())}function ot(){for(var tt in x.state=6,x.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=x,x.timer=kg(function(tt){x.state=1,x.timer.restart(P,x.delay,x.time),x.delay<=tt&&P(tt-x.delay)},0,x.time)})(t,r,{name:e,index:a,group:c,on:E5,tween:C5,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function od(t,e){var r=Do(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function ns(t,e){var r=Do(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Do(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ns(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var sd,zh=180/Math.PI,Eg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tv(t,e,r,a,c,u){var f,y,w;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(w=t*r+e*a)&&(r-=t*w,a-=e*w),(y=Math.sqrt(r*r+a*a))&&(r/=y,a/=y,w/=y),t*a<e*r&&(t=-t,e=-e,w=-w,f=-f),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*zh,skewX:Math.atan(w)*zh,scaleX:f,scaleY:y}}function Ev(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,f){var y=[],w=[];return u=t(u),f=t(f),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push("translate(",null,e,null,r);ot.push({i:tt-4,x:Ns(x,j)},{i:tt-2,x:Ns(D,P)})}else(j||P)&&W.push("translate("+j+e+P+r)}(u.translateX,u.translateY,f.translateX,f.translateY,y,w),function(x,D,j,P){x!==D?(x-D>180?D+=360:D-x>180&&(x+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Ns(x,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,f.rotate,y,w),function(x,D,j,P){x!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Ns(x,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,f.skewX,y,w),function(x,D,j,P,W,ot){if(x!==j||D!==P){var tt=W.push(c(W)+"scale(",null,",",null,")");ot.push({i:tt-4,x:Ns(x,j)},{i:tt-2,x:Ns(D,P)})}else j===1&&P===1||W.push(c(W)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,f.scaleX,f.scaleY,y,w),u=f=null,function(x){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(x);return y.join("")}}}var S5=Ev(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Eg:Tv(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),A5=Ev(function(t){return t==null?Eg:(sd||(sd=document.createElementNS("http://www.w3.org/2000/svg","g")),sd.setAttribute("transform",t),(t=sd.transform.baseVal.consolidate())?Tv((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Eg)},", ",")",")");function M5(t,e){var r,a;return function(){var c=ns(this,t),u=c.tween;if(u!==r){for(var f=0,y=(a=r=u).length;f<y;++f)if(a[f].name===e){(a=a.slice()).splice(f,1);break}}c.tween=a}}function Cv(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=ns(this,t),f=u.tween;if(f!==a){c=(a=f).slice();for(var y={name:e,value:r},w=0,x=c.length;w<x;++w)if(c[w].name===e){c[w]=y;break}w===x&&c.push(y)}u.tween=c}}function Cg(t,e,r){var a=t._id;return t.each(function(){var c=ns(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return Do(c,a).value[e]}}function Sg(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Sv(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function rs(){}var cd=.7,Uh=1.4285714285714286,nl="\\s*([+-]?\\d+)\\s*",rl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",is="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",N5=/^#([0-9a-f]{3,8})$/,Oo=new RegExp("^rgb\\("+[nl,nl,nl]+"\\)$"),Ds=new RegExp("^rgb\\("+[is,is,is]+"\\)$"),Av=new RegExp("^rgba\\("+[nl,nl,nl,rl]+"\\)$"),ud=new RegExp("^rgba\\("+[is,is,is,rl]+"\\)$"),Wc=new RegExp("^hsl\\("+[rl,is,is]+"\\)$"),Ag=new RegExp("^hsla\\("+[rl,is,is,rl]+"\\)$"),ld={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};function hd(){return this.rgb().formatHex()}function Mg(){return this.rgb().formatRgb()}function qh(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=N5.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?fd(e):r===3?new Da(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Hh(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Hh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Oo.exec(t))?new Da(e[1],e[2],e[3],1):(e=Ds.exec(t))?new Da(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Av.exec(t))?Hh(e[1],e[2],e[3],e[4]):(e=ud.exec(t))?Hh(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Wc.exec(t))?$h(e[1],e[2]/100,e[3]/100,1):(e=Ag.exec(t))?$h(e[1],e[2]/100,e[3]/100,e[4]):ld.hasOwnProperty(t)?fd(ld[t]):t==="transparent"?new Da(NaN,NaN,NaN,0):null}function fd(t){return new Da(t>>16&255,t>>8&255,255&t,1)}function Hh(t,e,r,a){return a<=0&&(t=e=r=NaN),new Da(t,e,r,a)}function Zi(t){return t instanceof rs||(t=qh(t)),t?new Da((t=t.rgb()).r,t.g,t.b,t.opacity):new Da}function Wh(t,e,r,a){return arguments.length===1?Zi(t):new Da(t,e,r,a==null?1:a)}function Da(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Mv(){return"#"+$c(this.r)+$c(this.g)+$c(this.b)}function Nv(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function $c(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function $h(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Bo(t,e,r,a)}function Ng(t){if(t instanceof Bo)return new Bo(t.h,t.s,t.l,t.opacity);if(t instanceof rs||(t=qh(t)),!t)return new Bo;if(t instanceof Bo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),f=NaN,y=u-c,w=(u+c)/2;return y?(f=e===u?(r-a)/y+6*(r<a):r===u?(a-e)/y+2:(e-r)/y+4,y/=w<.5?u+c:2-u-c,f*=60):y=w>0&&w<1?0:f,new Bo(f,y,w,t.opacity)}function Bo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Os(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Sg(rs,qh,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:hd,formatHex:hd,formatHsl:function(){return Ng(this).formatHsl()},formatRgb:Mg,toString:Mg}),Sg(Da,Wh,Sv(rs,{brighter:function(t){return t=t==null?Uh:Math.pow(Uh,t),new Da(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?cd:Math.pow(cd,t),new Da(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:Mv,formatHex:Mv,formatRgb:Nv,toString:Nv})),Sg(Bo,function(t,e,r,a){return arguments.length===1?Ng(t):new Bo(t,e,r,a==null?1:a)},Sv(rs,{brighter:function(t){return t=t==null?Uh:Math.pow(Uh,t),new Bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?cd:Math.pow(cd,t),new Bo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,c=2*r-a;return new Da(Os(t>=240?t-240:t+120,c,a),Os(t,c,a),Os(t<120?t+240:t-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const Dg=t=>()=>t;function Og(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Dg(isNaN(t)?e:t)}const Bg=function t(e){var r=function(c){return(c=+c)==1?Og:function(u,f){return f-u?function(y,w,x){return y=Math.pow(y,x),w=Math.pow(w,x)-y,x=1/x,function(D){return Math.pow(y+D*w,x)}}(u,f,c):Dg(isNaN(u)?f:u)}}(e);function a(c,u){var f=r((c=Wh(c)).r,(u=Wh(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),x=Og(c.opacity,u.opacity);return function(D){return c.r=f(D),c.g=y(D),c.b=w(D),c.opacity=x(D),c+""}}return a.gamma=t,a}(1);var dd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pd=new RegExp(dd.source,"g");function D5(t,e){var r,a,c,u=dd.lastIndex=pd.lastIndex=0,f=-1,y=[],w=[];for(t+="",e+="";(r=dd.exec(t))&&(a=pd.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[f]?y[f]+=c:y[++f]=c),(r=r[0])===(a=a[0])?y[f]?y[f]+=a:y[++f]=a:(y[++f]=null,w.push({i:f,x:Ns(r,a)})),u=pd.lastIndex;return u<e.length&&(c=e.slice(u),y[f]?y[f]+=c:y[++f]=c),y.length<2?w[0]?function(x){return function(D){return x(D)+""}}(w[0].x):function(x){return function(){return x}}(e):(e=w.length,function(x){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(x);return y.join("")})}function Dv(t,e){var r;return(typeof e=="number"?Ns:e instanceof qh?Bg:(r=qh(e))?(e=r,Bg):D5)(t,e)}function O5(t){return function(){this.removeAttribute(t)}}function Ov(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lg(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttribute(t);return f===u?null:f===a?c:c=e(a=f,r)}}function Bv(t,e,r){var a,c,u=r+"";return function(){var f=this.getAttributeNS(t.space,t.local);return f===u?null:f===a?c:c=e(a=f,r)}}function Lv(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttribute(t))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttribute(t)}}function Iv(t,e,r){var a,c,u;return function(){var f,y,w=r(this);if(w!=null)return(f=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:f===a&&y===c?u:(c=y,u=e(a=f,w));this.removeAttributeNS(t.space,t.local)}}function Ig(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Rv(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Fv(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Rv(t,u)),r}return c._value=e,c}function B5(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Ig(t,u)),r}return c._value=e,c}function L5(t,e){return function(){od(this,t).delay=+e.apply(this,arguments)}}function Rg(t,e){return e=+e,function(){od(this,t).delay=e}}function Fg(t,e){return function(){ns(this,t).duration=+e.apply(this,arguments)}}function I5(t,e){return e=+e,function(){ns(this,t).duration=e}}function Pv(t,e){if(typeof e!="function")throw new Error;return function(){ns(this,t).ease=e}}function jv(t,e,r){var a,c,u=function(f){return(f+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?od:ns;return function(){var f=u(this,t),y=f.on;y!==a&&(c=(a=y).copy()).on(e,r),f.on=c}}var Yv=Ph.prototype.constructor;function gd(t){return function(){this.style.removeProperty(t)}}function Pg(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Oi(t,e,r){var a,c;function u(){var f=e.apply(this,arguments);return f!==c&&(a=(c=f)&&Pg(t,f,r)),a}return u._value=e,u}function jg(t){return function(e){this.textContent=t.call(this,e)}}function Vc(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&jg(c)),e}return a._value=t,a}var R5=0;function as(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Yg(){return++R5}var Bs=Ph.prototype;as.prototype={constructor:as,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=lg(t));for(var a=this._groups,c=a.length,u=new Array(c),f=0;f<c;++f)for(var y,w,x=a[f],D=x.length,j=u[f]=new Array(D),P=0;P<D;++P)(y=x[P])&&(w=t.call(y,y.__data__,P,x))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,ad(j[P],e,r,P,j,Do(y,r)));return new as(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=hg(t));for(var a=this._groups,c=a.length,u=[],f=[],y=0;y<c;++y)for(var w,x=a[y],D=x.length,j=0;j<D;++j)if(w=x[j]){for(var P,W=t.call(w,w.__data__,j,x),ot=Do(w,r),tt=0,gt=W.length;tt<gt;++tt)(P=W[tt])&&ad(P,e,r,tt,W,ot);u.push(W),f.push(w)}return new as(u,f,e,r)},selectChild:Bs.selectChild,selectChildren:Bs.selectChildren,filter:function(t){typeof t!="function"&&(t=Nh(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,f=e[c],y=f.length,w=a[c]=[],x=0;x<y;++x)(u=f[x])&&t.call(u,u.__data__,x,f)&&w.push(u);return new as(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,c=r.length,u=Math.min(a,c),f=new Array(a),y=0;y<u;++y)for(var w,x=e[y],D=r[y],j=x.length,P=f[y]=new Array(j),W=0;W<j;++W)(w=x[W]||D[W])&&(P[W]=w);for(;y<a;++y)f[y]=e[y];return new as(f,this._parents,this._name,this._id)},selection:function(){return new Yv(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Yg(),a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)if(f=y[x]){var D=Do(f,e);ad(f,t,r,x,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new as(a,this._parents,t,r)},call:Bs.call,nodes:Bs.nodes,node:Bs.node,size:Bs.size,empty:Bs.empty,each:Bs.each,on:function(t,e){var r=this._id;return arguments.length<2?Do(this.node(),r).on.on(t):this.each(jv(r,t,e))},attr:function(t,e){var r=V1(t),a=r==="transform"?A5:Dv;return this.attrTween(t,typeof e=="function"?(r.local?Iv:Lv)(r,a,Cg(this,"attr."+t,e)):e==null?(r.local?Ov:O5)(r):(r.local?Bv:Lg)(r,a,e))},attrTween:function(t,e){var r="attr."+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;var a=V1(t);return this.tween(r,(a.local?Fv:B5)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?S5:Dv;return e==null?this.styleTween(t,function(c,u){var f,y,w;return function(){var x=Qu(this,c),D=(this.style.removeProperty(c),Qu(this,c));return x===D?null:x===f&&D===y?w:w=u(f=x,y=D)}}(t,a)).on("end.style."+t,gd(t)):typeof e=="function"?this.styleTween(t,function(c,u,f){var y,w,x;return function(){var D=Qu(this,c),j=f(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=Qu(this,c)),D===P?null:D===y&&P===w?x:(w=P,x=u(y=D,j))}}(t,a,Cg(this,"style."+t,e))).each(function(c,u){var f,y,w,x,D="style."+u,j="end."+D;return function(){var P=ns(this,c),W=P.on,ot=P.value[D]==null?x||(x=gd(u)):void 0;W===f&&w===ot||(y=(f=W).copy()).on(j,w=ot),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,f){var y,w,x=f+"";return function(){var D=Qu(this,c);return D===x?null:D===y?w:w=u(y=D,f)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,Oi(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(Cg(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,Vc(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,c=Do(this.node(),r).tween,u=0,f=c.length;u<f;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?M5:Cv)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?L5:Rg)(e,t)):Do(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Fg:I5)(e,t)):Do(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Pv(e,t)):Do(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;ns(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,f){var y={value:f},w={value:function(){--c==0&&u()}};r.each(function(){var x=ns(this,a),D=x.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),x.on=e}),c===0&&u()})},[Symbol.iterator]:Bs[Symbol.iterator]};var yd={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Gc(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Ph.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,f=e.__transition,y=!0;if(f){for(u in r=r==null?null:r+"",f)(a=f[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete f[u]):y=!1;y&&delete e.__transition}})(this,t)})},Ph.prototype.transition=function(t){var e,r;t instanceof as?(e=t._id,t=t._name):(e=Yg(),(r=yd).time=wg(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var f,y=a[u],w=y.length,x=0;x<w;++x)(f=y[x])&&ad(f,t,e,x,y,r||Gc(f,e));return new as(a,this._parents,t,e)};var Vh="comm",zg="rule",Ug="decl",Xc=Math.abs,Zc=String.fromCharCode;function il(t){return t.trim()}function md(t,e,r){return t.replace(e,r)}function zv(t,e){return t.indexOf(e)}function Ls(t,e){return 0|t.charCodeAt(e)}function al(t,e,r){return t.slice(e,r)}function Is(t){return t.length}function qg(t){return t.length}function vd(t,e){return e.push(t),t}function Hg(t,e){for(var r="",a=qg(t),c=0;c<a;c++)r+=e(t[c],c,t,e)||"";return r}function F5(t,e,r,a){switch(t.type){case"@import":case Ug:return t.return=t.return||t.value;case Vh:return"";case"@keyframes":return t.return=t.value+"{"+Hg(t.children,a)+"}";case zg:t.value=t.props.join(",")}return Is(r=Hg(t.children,a))?t.return=t.value+"{"+r+"}":""}var bd=1,ol=1,Uv=0,Wa=0,ii=0,sl="";function _d(t,e,r,a,c,u,f){return{value:t,root:e,parent:r,type:a,props:c,children:u,line:bd,column:ol,length:f,return:""}}function qv(){return ii=Wa>0?Ls(sl,--Wa):0,ol--,ii===10&&(ol=1,bd--),ii}function Lo(){return ii=Wa<Uv?Ls(sl,Wa++):0,ol++,ii===10&&(ol=1,bd++),ii}function pc(){return Ls(sl,Wa)}function Gh(){return Wa}function xd(t,e){return al(sl,t,e)}function wd(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 cl(t){return il(xd(Wa-1,ul(t===91?t+2:t===40?t+1:t)))}function Hv(t){for(;(ii=pc())&&ii<33;)Lo();return wd(t)>2||wd(ii)>3?"":" "}function kd(t,e){for(;--e&&Lo()&&!(ii<48||ii>102||ii>57&&ii<65||ii>70&&ii<97););return xd(t,Gh()+(e<6&&pc()==32&&Lo()==32))}function ul(t){for(;Lo();)switch(ii){case t:return Wa;case 34:case 39:t!==34&&t!==39&&ul(ii);break;case 40:t===41&&ul(t);break;case 92:Lo()}return Wa}function Wv(t,e){for(;Lo()&&t+ii!==57&&(t+ii!==84||pc()!==47););return"/*"+xd(e,Wa-1)+"*"+Zc(t===47?t:Lo())}function Qc(t){for(;!wd(pc());)Lo();return xd(t,Wa)}function Xh(t){return function(e){return sl="",e}(gc("",null,null,null,[""],t=function(e){return bd=ol=1,Uv=Is(sl=e),Wa=0,[]}(t),0,[0],t))}function gc(t,e,r,a,c,u,f,y,w){for(var x=0,D=0,j=f,P=0,W=0,ot=0,tt=1,gt=1,ht=1,wt=0,Tt="",Ft=c,Gt=u,Et=a,ee=Tt;gt;)switch(ot=wt,wt=Lo()){case 40:if(ot!=108&&ee.charCodeAt(j-1)==58){zv(ee+=md(cl(wt),"&","&\f"),"&\f")!=-1&&(ht=-1);break}case 34:case 39:case 91:ee+=cl(wt);break;case 9:case 10:case 13:case 32:ee+=Hv(ot);break;case 92:ee+=kd(Gh()-1,7);continue;case 47:switch(pc()){case 42:case 47:vd($v(Wv(Lo(),Gh()),e,r),w);break;default:ee+="/"}break;case 123*tt:y[x++]=Is(ee)*ht;case 125*tt:case 59:case 0:switch(wt){case 0:case 125:gt=0;case 59+D:W>0&&Is(ee)-j&&vd(W>32?yc(ee+";",a,r,j-1):yc(md(ee," ","")+";",a,r,j-2),w);break;case 59:ee+=";";default:if(vd(Et=Wg(ee,e,r,x,D,c,y,Tt,Ft=[],Gt=[],j),u),wt===123)if(D===0)gc(ee,e,Et,Et,Ft,u,j,y,Gt);else switch(P){case 100:case 109:case 115:gc(t,Et,Et,a&&vd(Wg(t,Et,Et,0,0,c,y,Tt,c,Ft=[],j),Gt),c,Gt,j,y,a?Ft:Gt);break;default:gc(ee,Et,Et,Et,[""],Gt,0,y,Gt)}}x=D=W=0,tt=ht=1,Tt=ee="",j=f;break;case 58:j=1+Is(ee),W=ot;default:if(tt<1){if(wt==123)--tt;else if(wt==125&&tt++==0&&qv()==125)continue}switch(ee+=Zc(wt),wt*tt){case 38:ht=D>0?1:(ee+="\f",-1);break;case 44:y[x++]=(Is(ee)-1)*ht,ht=1;break;case 64:pc()===45&&(ee+=cl(Lo())),P=pc(),D=j=Is(Tt=ee+=Qc(Gh())),wt++;break;case 45:ot===45&&Is(ee)==2&&(tt=0)}}return u}function Wg(t,e,r,a,c,u,f,y,w,x,D){for(var j=c-1,P=c===0?u:[""],W=qg(P),ot=0,tt=0,gt=0;ot<a;++ot)for(var ht=0,wt=al(t,j+1,j=Xc(tt=f[ot])),Tt=t;ht<W;++ht)(Tt=il(tt>0?P[ht]+" "+wt:md(wt,/&\f/g,P[ht])))&&(w[gt++]=Tt);return _d(t,e,r,c===0?zg:y,w,x,D)}function $v(t,e,r){return _d(t,e,r,Vh,Zc(ii),al(t,2,-2),0)}function yc(t,e,r,a){return _d(t,e,r,Ug,al(t,0,a),al(t,a+1,-1),a)}const $g="8.14.0";var Kc=h(9609),Vv=h(7856),P5=h.n(Vv),Gv=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\u/g,""),16))});return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(r,a){return String.fromCharCode(parseInt(a,16))})).replace(/\\[\d\d\d]{3}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})},Xv=function(t){for(var e="",r=0;r>=0;){if(!((r=t.indexOf("<script"))>=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}var a=Gv(e);return(a=(a=(a=a.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Jc=function(t,e){if(!t)return t;var r=P5().sanitize(function(a,c){var u=a,f=!0;if(!c.flowchart||c.flowchart.htmlLabels!==!1&&c.flowchart.htmlLabels!=="false"||(f=!1),f){var y=c.securityLevel;y==="antiscript"||y==="strict"?u=Xv(u):y!=="loose"&&(u=(u=(u=Vg(u)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),u=j5(u))}return u}(t,e));return r},Td=/<br\s*\/?>/gi,j5=function(t){return t.replace(/#br#/g,"<br/>")},Vg=function(t){return t.replace(Td,"#br#")},xi=function(t){return t!=="false"&&t!==!1};const lr={getRows:function(t){if(!t)return 1;var e=Vg(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Jc,sanitizeTextOrArray:function(t,e){return typeof t=="string"?Jc(t,e):t.flat().map(function(r){return Jc(r,e)})},hasBreaks:function(t){return Td.test(t)},splitBreaks:function(t){return t.split(Td)},lineBreakRegex:Td,removeScript:Xv,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:xi,removeEscapes:Gv};var ke=h(8613),hi=function(t,e){return e?(0,ke.adjust)(t,{s:-40,l:10}):(0,ke.adjust)(t,{s:-40,l:-10})};function Gg(t){return Gg=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},Gg(t)}function Xg(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)}}var Zg=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,ke.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,ke.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||hi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||hi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||hi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||hi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,ke.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,ke.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,ke.darken)(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||(0,ke.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,ke.invert)(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||(0,ke.lighten)(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.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.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,ke.adjust)(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||(0,ke.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,ke.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(a){var c=this;if(Gg(a)==="object"){var u=Object.keys(a);u.forEach(function(f){c[f]=a[f]}),this.updateColors(),u.forEach(function(f){c[f]=a[f]})}else this.updateColors()}}],r&&Xg(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function tu(t){return tu=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},tu(t)}function Zv(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)}}var ll=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,ke.lighten)(this.primaryColor,16),this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=hi(this.primaryColor,this.darkMode),this.secondaryBorderColor=hi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,ke.lighten)((0,ke.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,ke.rgba)(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.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=(0,ke.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,ke.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,ke.rgba)(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.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,ke.lighten)(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=(0,ke.lighten)(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=(0,ke.lighten)(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=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,ke.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(a){var c=this;if(tu(a)==="object"){var u=Object.keys(a);u.forEach(function(f){c[f]=a[f]}),this.updateColors(),u.forEach(function(f){c[f]=a[f]})}else this.updateColors()}}],r&&Zv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Zh(t){return Zh=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},Zh(t)}function Qv(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)}}var Ed=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,ke.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=hi(this.primaryColor,this.darkMode),this.secondaryBorderColor=hi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(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.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=(0,ke.rgba)(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,r;return e=t,r=[{key:"updateColors",value:function(){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=(0,ke.lighten)(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=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,ke.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,ke.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(a){var c=this;if(Zh(a)==="object"){var u=Object.keys(a);u.forEach(function(f){c[f]=a[f]}),this.updateColors(),u.forEach(function(f){c[f]=a[f]})}else this.updateColors()}}],r&&Qv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Qh(t){return Qh=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},Qh(t)}function Kv(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)}}var Yi=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),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=(0,ke.lighten)("#cde498",10),this.primaryBorderColor=hi(this.primaryColor,this.darkMode),this.secondaryBorderColor=hi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.primaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,ke.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(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||(0,ke.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(a){var c=this;if(Qh(a)==="object"){var u=Object.keys(a);u.forEach(function(f){c[f]=a[f]}),this.updateColors(),u.forEach(function(f){c[f]=a[f]})}else this.updateColors()}}],r&&Kv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Qg(t){return Qg=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},Qg(t)}function Y5(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)}}var kr=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,ke.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=hi(this.primaryColor,this.darkMode),this.secondaryBorderColor=hi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hi(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(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.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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,ke.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,ke.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,ke.lighten)(this.contrast,30),this.sectionBkgColor2=(0,ke.lighten)(this.contrast,30),this.taskBorderColor=(0,ke.darken)(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=(0,ke.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,ke.darken)(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=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(a){var c=this;if(Qg(a)==="object"){var u=Object.keys(a);u.forEach(function(f){c[f]=a[f]}),this.updateColors(),u.forEach(function(f){c[f]=a[f]})}else this.updateColors()}}],r&&Y5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const hl={base:{getThemeVariables:function(t){var e=new Zg;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new ll;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new Ed;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new Yi;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new kr;return e.calculate(t),e}}};function eu(t){return function(e){if(Array.isArray(e))return nu(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return nu(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?nu(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nu(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 Kg(t){return Kg=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},Kg(t)}var fl={theme:"default",themeVariables:hl.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};fl.class.arrowMarkerAbsolute=fl.arrowMarkerAbsolute,fl.git.arrowMarkerAbsolute=fl.arrowMarkerAbsolute;var z5=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(a,c){return Array.isArray(e[c])?a:Kg(e[c])==="object"&&e[c]!==null?[].concat(eu(a),[r+c],eu(t(e[c],""))):[].concat(eu(a),[r+c])},[])}(fl,"");const U5=fl;var q5=void 0;function Jv(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 Jg(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e3(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var a=0,c=function(){};return{s:c,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,f=!0,y=!1;return{s:function(){r=r.call(t)},n:function(){var w=r.next();return f=w.done,w},e:function(w){y=!0,u=w},f:function(){try{f||r.return==null||r.return()}finally{if(y)throw u}}}}function co(t){return co=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},co(t)}function t3(t){return function(e){if(Array.isArray(e))return Cd(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||e3(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function e3(t,e){if(t){if(typeof t=="string")return Cd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cd(t,e):void 0}}function Cd(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}var Sd,n3={curveBasis:Rr,curveBasisClosed:function(t){return new ma(t)},curveBasisOpen:function(t){return new ri(t)},curveLinear:ao,curveLinearClosed:function(t){return new Ma(t)},curveMonotoneX:function(t){return new To(t)},curveMonotoneY:function(t){return new Ko(t)},curveNatural:function(t){return new lh(t)},curveStep:function(t){return new jc(t,.5)},curveStepAfter:function(t){return new jc(t,1)},curveStepBefore:function(t){return new jc(t,0)}},Ad=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,H5=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,W5=/\s*%%.*\n/gm,r3=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(H5.source,`)(?=[}][%]{2}).*
`),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),g.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var a,c=[];(a=Ad.exec(t))!==null;)if(a.index===Ad.lastIndex&&Ad.lastIndex++,a&&!e||e&&a[1]&&a[1].match(e)||e&&a[2]&&a[2].match(e)){var u=a[1]?a[1]:a[2],f=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;c.push({type:u,args:f})}return c.length===0&&c.push({type:t,args:null}),c.length===1?c[0]:c}catch(y){return g.error("ERROR: ".concat(y.message,` - Unable to parse directive
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},i3=function(t,e){return(t=t.replace(Ad,"").replace(W5,`
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},Md=function(t,e){var r={};return function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];var f=e?e.apply(q5,c):c[0];if(f in r)return r[f];var y=t.apply(void 0,c);return r[f]=y,y}},Io=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return n3[r]||e},ru=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},mc=function(t){for(var e="",r="",a=0;a<t.length;a++)t[a]!==void 0&&(t[a].startsWith("color:")||t[a].startsWith("text-align:")?r=r+t[a]+";":e=e+t[a]+";");return{style:e,labelStyle:r}},a3=0,o3=function(){return a3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+a3},t2=function(t){return function(e){for(var r="",a="0123456789abcdef",c=a.length,u=0;u<e;u++)r+=a.charAt(Math.floor(Math.random()*c));return r}(t.length)},zi=function t(e,r,a){var c=Object.assign({depth:2,clobber:!1},a),u=c.depth,f=c.clobber;return Array.isArray(r)&&!Array.isArray(e)?(r.forEach(function(y){return t(e,y,a)}),e):Array.isArray(r)&&Array.isArray(e)?(r.forEach(function(y){e.indexOf(y)===-1&&e.push(y)}),e):e===void 0||u<=0?e!=null&&co(e)==="object"&&co(r)==="object"?Object.assign(e,r):r:(r!==void 0&&co(e)==="object"&&co(r)==="object"&&Object.keys(r).forEach(function(y){co(r[y])!=="object"||e[y]!==void 0&&co(e[y])!=="object"?(f||co(e[y])!=="object"&&co(r[y])!=="object")&&(e[y]=r[y]):(e[y]===void 0&&(e[y]=Array.isArray(r[y])?[]:{}),e[y]=t(e[y],r[y],{depth:u-1,clobber:f}))}),e)},$5=function(t,e){var r=e.text.replace(lr.lineBreakRegex," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",e.fontSize),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);var c=a.append("tspan");return c.attr("x",e.x+2*e.textMargin),c.attr("fill",e.fill),c.text(r),a},V5=Md(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),lr.lineBreakRegex.test(t)))return t;var a=t.split(" "),c=[],u="";return a.forEach(function(f,y){var w=Nd("".concat(f," "),r),x=Nd(u,r);if(w>e){var D=G5(f,e,"-",r),j=D.hyphenatedStrings,P=D.remainingWord;c.push.apply(c,[u].concat(t3(j))),u=P}else x+w>=e?(c.push(u),u=f):u=[u,f].filter(Boolean).join(" ");y+1===a.length&&c.push(u)}),c.filter(function(f){return f!==""}).join(r.joinWith)},function(t,e,r){return"".concat(t,"-").concat(e,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)}),G5=Md(function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);var c=t.split(""),u=[],f="";return c.forEach(function(y,w){var x="".concat(f).concat(y);if(Nd(x,a)>=e){var D=w+1,j=c.length===D,P="".concat(x).concat(r);u.push(j?x:P),f=""}else f=x}),{hyphenatedStrings:u,remainingWord:f}},function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(r,"-").concat(a.fontSize,"-").concat(a.fontWeight,"-").concat(a.fontFamily)}),Nd=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),e2(t,e).width},e2=Md(function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),a=r.fontSize,c=r.fontFamily,u=r.fontWeight;if(!t)return{width:0,height:0};var f=["sans-serif",c],y=t.split(lr.lineBreakRegex),w=[],x=Se("body");if(!x.remove)return{width:0,height:0,lineHeight:0};for(var D=x.append("svg"),j=0,P=f;j<P.length;j++){var W,ot=P[j],tt=0,gt={width:0,height:0,lineHeight:0},ht=Jg(y);try{for(ht.s();!(W=ht.n()).done;){var wt=W.value,Tt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Tt.text=wt;var Ft=$5(D,Tt).style("font-size",a).style("font-weight",u).style("font-family",ot),Gt=(Ft._groups||Ft)[0][0].getBBox();gt.width=Math.round(Math.max(gt.width,Gt.width)),tt=Math.round(Gt.height),gt.height+=tt,gt.lineHeight=Math.round(Math.max(gt.lineHeight,tt))}}catch(Et){ht.e(Et)}finally{ht.f()}w.push(gt)}return D.remove(),w[isNaN(w[1].height)||isNaN(w[1].width)||isNaN(w[1].lineHeight)||w[0].height>w[1].height&&w[0].width>w[1].width&&w[0].lineHeight>w[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),n2=function(t,e,r){var a=new Map;return a.set("height",t),r?(a.set("width","100%"),a.set("style","max-width: ".concat(e,"px;"))):a.set("width",e),a},$a=function(t,e,r,a){(function(c,u){var f,y=Jg(u);try{for(y.s();!(f=y.n()).done;){var w=f.value;c.attr(w[0],w[1])}}catch(x){y.e(x)}finally{y.f()}})(t,n2(e,r,a))},Dd=function t(e){g.debug("directiveSanitizer called with",e),co(e)==="object"&&(e.length?e.forEach(function(r){return t(r)}):Object.keys(e).forEach(function(r){g.debug("Checking key",r),r.indexOf("__")===0&&(g.debug("sanitize deleting __ option",r),delete e[r]),r.indexOf("proto")>=0&&(g.debug("sanitize deleting proto option",r),delete e[r]),r.indexOf("constr")>=0&&(g.debug("sanitize deleting constr option",r),delete e[r]),r.indexOf("themeCSS")>=0&&(g.debug("sanitizing themeCss option"),e[r]=s3(e[r])),z5.indexOf(r)<0?(g.debug("sanitize deleting option",r),delete e[r]):co(e[r])==="object"&&(g.debug("sanitize deleting object",r),t(e[r]))}))},s3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Zn={assignWithDepth:zi,wrapLabel:V5,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),e2(t,e).height},calculateTextWidth:Nd,calculateTextDimensions:e2,calculateSvgSizeAttrs:n2,configureSvgSize:$a,detectInit:function(t,e){var r=r3(t,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(r)){var c=r.map(function(f){return f.args});Dd(c),a=zi(a,t3(c))}else a=r.args;if(a){var u=i3(t,e);["config"].forEach(function(f){a[f]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),a[u]=a[f],delete a[f])})}return a},detectDirective:r3,detectType:i3,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:Io,calcLabelPosition:function(t){return function(e){var r,a=0;e.forEach(function(f){a+=ru(f,r),r=f});var c=a/2,u=void 0;return r=void 0,e.forEach(function(f){if(r&&!u){var y=ru(f,r);if(y<c)c-=y;else{var w=c/y;w<=0&&(u=r),w>=1&&(u={x:f.x,y:f.y}),w>0&&w<1&&(u={x:(1-w)*r.x+w*f.x,y:(1-w)*r.y+w*f.y})}}r=f}),u}(t)},calcCardinalityPosition:function(t,e,r){var a;g.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach(function(x){ru(x,a),a=x});var c,u=25;a=void 0,e.forEach(function(x){if(a&&!c){var D=ru(x,a);if(D<u)u-=D;else{var j=u/D;j<=0&&(c=a),j>=1&&(c={x:x.x,y:x.y}),j>0&&j<1&&(c={x:(1-j)*a.x+j*x.x,y:(1-j)*a.y+j*x.y})}}a=x});var f=t?10:5,y=Math.atan2(e[0].y-c.y,e[0].x-c.x),w={x:0,y:0};return w.x=Math.sin(y)*f+(e[0].x+c.x)/2,w.y=-Math.cos(y)*f+(e[0].y+c.y)/2,w},calcTerminalLabelPosition:function(t,e,r){var a,c=JSON.parse(JSON.stringify(r));g.info("our points",c),e!=="start_left"&&e!=="start_right"&&(c=c.reverse()),c.forEach(function(D){ru(D,a),a=D});var u,f=25+t;a=void 0,c.forEach(function(D){if(a&&!u){var j=ru(D,a);if(j<f)f-=j;else{var P=f/j;P<=0&&(u=a),P>=1&&(u={x:D.x,y:D.y}),P>0&&P<1&&(u={x:(1-P)*a.x+P*D.x,y:(1-P)*a.y+P*D.y})}}a=D});var y=10+.5*t,w=Math.atan2(c[0].y-u.y,c[0].x-u.x),x={x:0,y:0};return x.x=Math.sin(w)*y+(c[0].x+u.x)/2,x.y=-Math.cos(w)*y+(c[0].y+u.y)/2,e==="start_left"&&(x.x=Math.sin(w+Math.PI)*y+(c[0].x+u.x)/2,x.y=-Math.cos(w+Math.PI)*y+(c[0].y+u.y)/2),e==="end_right"&&(x.x=Math.sin(w-Math.PI)*y+(c[0].x+u.x)/2-5,x.y=-Math.cos(w-Math.PI)*y+(c[0].y+u.y)/2-5),e==="end_left"&&(x.x=Math.sin(w)*y+(c[0].x+u.x)/2-5,x.y=-Math.cos(w)*y+(c[0].y+u.y)/2-5),x},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Kc.sanitizeUrl)(r):r},getStylesFromArray:mc,generateId:o3,random:t2,memoize:Md,runFunc:function(t){for(var e,r=t.split("."),a=r.length-1,c=r[a],u=window,f=0;f<a;f++)if(!(u=u[r[f]]))return;for(var y=arguments.length,w=new Array(y>1?y-1:0),x=1;x<y;x++)w[x-1]=arguments[x];(e=u)[c].apply(e,w)},entityDecode:function(t){return Sd=Sd||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Sd.innerHTML=t,unescape(Sd.textContent)},initIdGeneratior:function(){function t(a,c){(function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=a,this.seed=c,this.count=c?c.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Jv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:Dd,sanitizeCss:s3};function r2(t){return r2=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},r2(t)}var c3,Kh=Object.freeze(U5),Ui=zi({},Kh),dl=[],Od=zi({},Kh),Bd=function(t,e){for(var r=zi({},t),a={},c=0;c<e.length;c++){var u=e[c];X5(u),a=zi(a,u)}if(r=zi(r,a),a.theme){var f=zi({},c3),y=zi(f.themeVariables||{},a.themeVariables);r.themeVariables=hl[r.theme].getThemeVariables(y)}return Od=r,r},u3=function(){return zi({},Ui)},Jt=function(){return zi({},Od)},X5=function t(e){Object.keys(Ui.secure).forEach(function(r){e[Ui.secure[r]]!==void 0&&(g.debug("Denied attempt to modify a secure key ".concat(Ui.secure[r]),e[Ui.secure[r]]),delete e[Ui.secure[r]])}),Object.keys(e).forEach(function(r){r.indexOf("__")===0&&delete e[r]}),Object.keys(e).forEach(function(r){typeof e[r]=="string"&&(e[r].indexOf("<")>-1||e[r].indexOf(">")>-1||e[r].indexOf("url(data:")>-1)&&delete e[r],r2(e[r])==="object"&&t(e[r])})},l3=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),dl.push(t),Bd(Ui,dl)},Ld=function(){Bd(Ui,dl=[])};function i2(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}var a2="classid-",o2=[],wi={},h3=0,Id=[],Jh=function(t){return lr.sanitizeText(t,Jt())},tf=function(t){var e="",r=t;if(t.indexOf("~")>0){var a=t.split("~");r=a[0],e=lr.sanitizeText(a[1],Jt())}return{className:r,type:e}},s2=function(t){var e=tf(t);wi[e.className]===void 0&&(wi[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:a2+e.className+"-"+h3},h3++)},Rd=function(t){for(var e=Object.keys(wi),r=0;r<e.length;r++)if(wi[e[r]].id===t)return wi[e[r]].domId},f3=function(t,e){var r=tf(t).className,a=wi[r];if(typeof e=="string"){var c=e.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(Jh(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(Jh(c)):c&&a.members.push(Jh(c))}},c2=function(t,e){t.split(",").forEach(function(r){var a=r;r[0].match(/\d/)&&(a=a2+a),wi[a]!==void 0&&wi[a].cssClasses.push(e)})},d3=function(t,e,r){var a=Jt(),c=t,u=Rd(c);if(a.securityLevel==="loose"&&e!==void 0&&wi[c]!==void 0){var f=[];if(typeof r=="string"){f=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var y=0;y<f.length;y++){var w=f[y].trim();w.charAt(0)==='"'&&w.charAt(w.length-1)==='"'&&(w=w.substr(1,w.length-2)),f[y]=w}}f.length===0&&f.push(u),Id.push(function(){var x=document.querySelector('[id="'.concat(u,'"]'));x!==null&&x.addEventListener("click",function(){var D;Zn.runFunc.apply(Zn,[e].concat(function(j){if(Array.isArray(j))return i2(j)}(D=f)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(D)||function(j,P){if(j){if(typeof j=="string")return i2(j,P);var W=Object.prototype.toString.call(j).slice(8,-1);return W==="Object"&&j.constructor&&(W=j.constructor.name),W==="Map"||W==="Set"?Array.from(j):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?i2(j,P):void 0}}(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},pl={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},u2=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Se(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};Id.push(u2);var l2="TB";const uo={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().class},addClass:s2,bindFunctions:function(t){Id.forEach(function(e){e(t)})},clear:function(){o2=[],wi={},(Id=[]).push(u2)},getClass:function(t){return wi[t]},getClasses:function(){return wi},addAnnotation:function(t,e){var r=tf(t).className;wi[r].annotations.push(e)},getRelations:function(){return o2},addRelation:function(t){g.debug("Adding relation: "+JSON.stringify(t)),s2(t.id1),s2(t.id2),t.id1=tf(t.id1).className,t.id2=tf(t.id2).className,t.relationTitle1=lr.sanitizeText(t.relationTitle1.trim(),Jt()),t.relationTitle2=lr.sanitizeText(t.relationTitle2.trim(),Jt()),o2.push(t)},getDirection:function(){return l2},setDirection:function(t){l2=t},addMember:f3,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(r){return f3(t,r)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?lr.sanitizeText(t.substr(1).trim(),Jt()):Jh(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:pl,setClickEvent:function(t,e,r){t.split(",").forEach(function(a){d3(a,e,r),wi[a].haveCallback=!0}),c2(t,"clickable")},setCssClass:c2,setLink:function(t,e,r){var a=Jt();t.split(",").forEach(function(c){var u=c;c[0].match(/\d/)&&(u=a2+u),wi[u]!==void 0&&(wi[u].link=Zn.formatUrl(e,a),a.securityLevel==="sandbox"?wi[u].linkTarget="_top":wi[u].linkTarget=typeof r=="string"?Jh(r):"_blank")}),c2(t,"clickable")},setTooltip:function(t,e){var r=Jt();t.split(",").forEach(function(a){e!==void 0&&(wi[a].tooltip=lr.sanitizeText(e,r))})},lookUpDomId:Rd};var Z5=h(681),ef=h.n(Z5),h2=h(8282),Bi=h.n(h2),iu=h(1362),p3=h.n(iu),g3=0,Fd=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?y3(e):r?Q5(r):m3(t)},y3=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?gl(t[3].trim()):"",f=t[4]?t[4].trim():"",y=t[5]?t[5].trim():"";r=a+c+u+" "+f,e=d2(y)}catch{r=t}return{displayText:r,cssStyle:e}},Q5=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?gl(t[3].trim()):"",f=t[4]?t[4].trim():"";r=a+c+"("+u+")"+(t[5]?" : "+gl(t[5]).trim():""),e=d2(f)}catch{r=t}return{displayText:r,cssStyle:e}},m3=function(t){var e="",r="",a="",c=t.indexOf("("),u=t.indexOf(")");if(c>1&&u>c&&u<=t.length){var f="",y="",w=t.substring(0,1);w.match(/\w/)?y=t.substring(0,c).trim():(w.match(/\+|-|~|#/)&&(f=w),y=t.substring(1,c).trim());var x=t.substring(c+1,u),D=t.substring(u+1,1);r=d2(D),e=f+y+"("+gl(x.trim())+")",u<0&&(a=t.substring(u+2).trim())!==""&&(a=" : "+gl(a))}else e=gl(t);return{displayText:e,cssStyle:r}},f2=function(t,e,r,a){var c=Fd(e),u=t.append("tspan").attr("x",a.padding).text(c.displayText);c.cssStyle!==""&&u.attr("style",c.cssStyle),r||u.attr("dy",a.textHeight)},gl=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},d2=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const Pd=function(t,e,r){g.info("Rendering class "+e);var a,c=e.id,u={id:c,label:e.id,width:0,height:0},f=t.append("g").attr("id",Rd(c)).attr("class","classGroup");a=e.link?f.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):f.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var y=!0;e.annotations.forEach(function(Tt){var Ft=a.append("tspan").text("\xAB"+Tt+"\xBB");y||Ft.attr("dy",r.textHeight),y=!1});var w=e.id;e.type!==void 0&&e.type!==""&&(w+="<"+e.type+">");var x=a.append("tspan").text(w).attr("class","title");y||x.attr("dy",r.textHeight);var D=a.node().getBBox().height,j=f.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin/2).attr("y2",r.padding+D+r.dividerMargin/2),P=f.append("text").attr("x",r.padding).attr("y",D+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");y=!0,e.members.forEach(function(Tt){f2(P,Tt,y,r),y=!1});var W=P.node().getBBox(),ot=f.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin+W.height).attr("y2",r.padding+D+r.dividerMargin+W.height),tt=f.append("text").attr("x",r.padding).attr("y",D+2*r.dividerMargin+W.height+r.textHeight).attr("fill","white").attr("class","classText");y=!0,e.methods.forEach(function(Tt){f2(tt,Tt,y,r),y=!1});var gt=f.node().getBBox(),ht=" ";e.cssClasses.length>0&&(ht+=e.cssClasses.join(" "));var wt=f.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",gt.width+2*r.padding).attr("height",gt.height+r.padding+.5*r.dividerMargin).attr("class",ht).node().getBBox().width;return a.node().childNodes.forEach(function(Tt){Tt.setAttribute("x",(wt-Tt.getBBox().width)/2)}),e.tooltip&&a.insert("title").text(e.tooltip),j.attr("x2",wt),ot.attr("x2",wt),u.width=wt,u.height=gt.height+r.padding+.5*r.dividerMargin,u};iu.parser.yy=uo;var os={},nf={dividerMargin:10,padding:5,textHeight:10},rf=function(t){var e=Object.entries(os).find(function(r){return r[1].label===t});if(e)return e[0]};const p2=function(t){Object.keys(t).forEach(function(e){nf[e]=t[e]})},g2=function(t,e){os={},iu.parser.yy.clear(),iu.parser.parse(t),g.info("Rendering diagram "+t);var r,a=Jt().securityLevel;a==="sandbox"&&(r=Se("#i"+e));var c,u=Se(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),f=(a==="sandbox"&&r.nodes()[0].contentDocument,u.select("[id='".concat(e,"']")));f.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(c=f).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"),c.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"),c.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"),c.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"),c.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"),c.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"),c.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"),c.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");var y=new(Bi()).Graph({multigraph:!0});y.setGraph({isMultiGraph:!0}),y.setDefaultEdgeLabel(function(){return{}});for(var w=uo.getClasses(),x=Object.keys(w),D=0;D<x.length;D++){var j=w[x[D]],P=Pd(f,j,nf);os[P.id]=P,y.setNode(P.id,P),g.info("Org height: "+P.height)}uo.getRelations().forEach(function(ht){g.info("tjoho"+rf(ht.id1)+rf(ht.id2)+JSON.stringify(ht)),y.setEdge(rf(ht.id1),rf(ht.id2),{relation:ht},ht.title||"DEFAULT")}),ef().layout(y),y.nodes().forEach(function(ht){ht!==void 0&&y.node(ht)!==void 0&&(g.debug("Node "+ht+": "+JSON.stringify(y.node(ht))),u.select("#"+Rd(ht)).attr("transform","translate("+(y.node(ht).x-y.node(ht).width/2)+","+(y.node(ht).y-y.node(ht).height/2)+" )"))}),y.edges().forEach(function(ht){ht!==void 0&&y.edge(ht)!==void 0&&(g.debug("Edge "+ht.v+" -> "+ht.w+": "+JSON.stringify(y.edge(ht))),function(wt,Tt,Ft,Gt){var Et=function(Je){switch(Je){case pl.AGGREGATION:return"aggregation";case pl.EXTENSION:return"extension";case pl.COMPOSITION:return"composition";case pl.DEPENDENCY:return"dependency"}};Tt.points=Tt.points.filter(function(Je){return!Number.isNaN(Je.y)});var ee,re,kt=Tt.points,Lt=oo().x(function(Je){return Je.x}).y(function(Je){return Je.y}).curve(Rr),Ct=wt.append("path").attr("d",Lt(kt)).attr("id","edge"+g3).attr("class","relation"),yt="";Gt.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ft.relation.lineType==1&&Ct.attr("class","relation dashed-line"),Ft.relation.type1!=="none"&&Ct.attr("marker-start","url("+yt+"#"+Et(Ft.relation.type1)+"Start)"),Ft.relation.type2!=="none"&&Ct.attr("marker-end","url("+yt+"#"+Et(Ft.relation.type2)+"End)");var Rt,bt,xe,Te,Ut=Tt.points.length,Ee=Zn.calcLabelPosition(Tt.points);if(ee=Ee.x,re=Ee.y,Ut%2!=0&&Ut>1){var Ce=Zn.calcCardinalityPosition(Ft.relation.type1!=="none",Tt.points,Tt.points[0]),_e=Zn.calcCardinalityPosition(Ft.relation.type2!=="none",Tt.points,Tt.points[Ut-1]);g.debug("cardinality_1_point "+JSON.stringify(Ce)),g.debug("cardinality_2_point "+JSON.stringify(_e)),Rt=Ce.x,bt=Ce.y,xe=_e.x,Te=_e.y}if(Ft.title!==void 0){var fe=wt.append("g").attr("class","classLabel"),je=fe.append("text").attr("class","label").attr("x",ee).attr("y",re).attr("fill","red").attr("text-anchor","middle").text(Ft.title);window.label=je;var Fe=je.node().getBBox();fe.insert("rect",":first-child").attr("class","box").attr("x",Fe.x-Gt.padding/2).attr("y",Fe.y-Gt.padding/2).attr("width",Fe.width+Gt.padding).attr("height",Fe.height+Gt.padding)}g.info("Rendering relation "+JSON.stringify(Ft)),Ft.relationTitle1!==void 0&&Ft.relationTitle1!=="none"&&wt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Rt).attr("y",bt).attr("fill","black").attr("font-size","6").text(Ft.relationTitle1),Ft.relationTitle2!==void 0&&Ft.relationTitle2!=="none"&&wt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",xe).attr("y",Te).attr("fill","black").attr("font-size","6").text(Ft.relationTitle2),g3++}(f,y.edge(ht),y.edge(ht).relation,nf))});var W=f.node().getBBox(),ot=W.width+40,tt=W.height+40;$a(f,tt,ot,nf.useMaxWidth);var gt="".concat(W.x-20," ").concat(W.y-20," ").concat(ot," ").concat(tt);g.debug("viewBox ".concat(gt)),f.attr("viewBox",gt)};var K5={extension:function(t,e,r){g.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).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",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).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",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).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")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-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")}};const v3=function(t,e,r,a){e.forEach(function(c){K5[c](t,r,a)})};function yl(t){return yl=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},yl(t)}const _a=function(t,e,r,a){var c,u,f,y,w,x,D=t||"";if(yl(D)==="object"&&(D=D[0]),xi(Jt().flowchart.htmlLabels))return D=D.replace(/\\n|\n/g,"<br />"),g.info("vertexText"+D),c={isNode:a,label:D.replace(/fa[lrsb]?:fa-[\w-]+/g,function(tt){return"<i class='".concat(tt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},f=Se(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),y=f.append("xhtml:div"),w=c.label,x=c.isNode?"nodeLabel":"edgeLabel",y.html('<span class="'+x+'" '+(c.labelStyle?'style="'+c.labelStyle+'"':"")+">"+w+"</span>"),(u=c.labelStyle)&&y.attr("style",u),y.style("display","inline-block"),y.style("white-space","nowrap"),y.attr("xmlns","http://www.w3.org/1999/xhtml"),f.node();var j=document.createElementNS("http://www.w3.org/2000/svg","text");j.setAttribute("style",e.replace("color:","fill:"));var P=[];P=typeof D=="string"?D.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(D)?D:[];for(var W=0;W<P.length;W++){var ot=document.createElementNS("http://www.w3.org/2000/svg","tspan");ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ot.setAttribute("dy","1em"),ot.setAttribute("x","0"),r?ot.setAttribute("class","title-row"):ot.setAttribute("class","row"),ot.textContent=P[W].trim(),j.appendChild(ot)}return j};var xa=function(t,e,r,a){var c;c=r||"node default";var u=t.insert("g").attr("class",c).attr("id",e.domId||e.id),f=u.insert("g").attr("class","label").attr("style",e.labelStyle),y=typeof e.labelText=="string"?e.labelText:e.labelText[0],w=f.node().appendChild(_a(Jc(V_(y),Jt()),e.labelStyle,!1,a)),x=w.getBBox();if(xi(Jt().flowchart.htmlLabels)){var D=w.children[0],j=Se(w);x=D.getBoundingClientRect(),j.attr("width",x.width),j.attr("height",x.height)}var P=e.padding/2;return f.attr("transform","translate("+-x.width/2+", "+-x.height/2+")"),{shapeSvg:u,bbox:x,halfPadding:P,label:f}},ki=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function Ro(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(c){return c.x+","+c.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var yr={},Mn={},b3={},jd=function(t,e){return g.trace("In isDecendant",e," ",t," = ",Mn[e].indexOf(t)>=0),Mn[e].indexOf(t)>=0},J5=function t(e,r,a,c){g.warn("Copying children of ",e,"root",c,"data",r.node(e),c);var u=r.children(e)||[];e!==c&&u.push(e),g.warn("Copying (nodes) clusterId",e,"nodes",u),u.forEach(function(f){if(r.children(f).length>0)t(f,r,a,c);else{var y=r.node(f);g.info("cp ",f," to ",c," with parent ",e),a.setNode(f,y),c!==r.parent(f)&&(g.warn("Setting parent",f,r.parent(f)),a.setParent(f,r.parent(f))),e!==c&&f!==e?(g.debug("Setting parent",f,e),a.setParent(f,e)):(g.info("In copy ",e,"root",c,"data",r.node(e),c),g.debug("Not Setting parent for node=",f,"cluster!==rootId",e!==c,"node!==clusterId",f!==e));var w=r.edges(f);g.debug("Copying Edges",w),w.forEach(function(x){g.info("Edge",x);var D=r.edge(x.v,x.w,x.name);g.info("Edge data",D,c);try{(function(j,P){return g.info("Decendants of ",P," is ",Mn[P]),g.info("Edge is ",j),j.v!==P&&j.w!==P&&(Mn[P]?(g.info("Here "),Mn[P].indexOf(j.v)>=0||!!jd(j.v,P)||!!jd(j.w,P)||Mn[P].indexOf(j.w)>=0):(g.debug("Tilt, ",P,",not in decendants"),!1))})(x,c)?(g.info("Copying as ",x.v,x.w,D,x.name),a.setEdge(x.v,x.w,D,x.name),g.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):g.info("Skipping copy of edge ",x.v,"-->",x.w," rootId: ",c," clusterId:",e)}catch(j){g.error(j)}})}g.debug("Removing node",f),r.removeNode(f)})},t_=function t(e,r){for(var a=r.children(e),c=[].concat(a),u=0;u<a.length;u++)b3[a[u]]=e,c=c.concat(t(a[u],r));return c},Yd=function t(e,r){g.trace("Searching",e);var a=r.children(e);if(g.trace("Searching children of id ",e,a),a.length<1)return g.trace("This is a valid node",e),e;for(var c=0;c<a.length;c++){var u=t(a[c],r);if(u)return g.trace("Found replacement for",e," => ",u),u}},_3=function(t){return yr[t]&&yr[t].externalConnections&&yr[t]?yr[t].id:t},e_=function(t,e){!t||e>10?g.debug("Opting out, no graph "):(g.debug("Opting in, graph "),t.nodes().forEach(function(r){t.children(r).length>0&&(g.warn("Cluster identified",r," Replacement id in edges: ",Yd(r,t)),Mn[r]=t_(r,t),yr[r]={id:Yd(r,t),clusterData:t.node(r)})}),t.nodes().forEach(function(r){var a=t.children(r),c=t.edges();a.length>0?(g.debug("Cluster identified",r,Mn),c.forEach(function(u){u.v!==r&&u.w!==r&&jd(u.v,r)^jd(u.w,r)&&(g.warn("Edge: ",u," leaves cluster ",r),g.warn("Decendants of XXX ",r,": ",Mn[r]),yr[r].externalConnections=!0)})):g.debug("Not a cluster ",r,Mn)}),t.edges().forEach(function(r){var a=t.edge(r);g.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),g.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));var c=r.v,u=r.w;g.warn("Fix XXX",yr,"ids:",r.v,r.w,"Translateing: ",yr[r.v]," --- ",yr[r.w]),(yr[r.v]||yr[r.w])&&(g.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),c=_3(r.v),u=_3(r.w),t.removeEdge(r.v,r.w,r.name),c!==r.v&&(a.fromCluster=r.v),u!==r.w&&(a.toCluster=r.w),g.warn("Fix Replacing with XXX",c,u,r.name),t.setEdge(c,u,a,r.name))}),g.warn("Adjusted Graph",Bi().json.write(t)),n_(t,0),g.trace(yr))},n_=function t(e,r){if(g.warn("extractor - ",r,Bi().json.write(e),e.children("D")),r>10)g.error("Bailing out");else{for(var a=e.nodes(),c=!1,u=0;u<a.length;u++){var f=a[u],y=e.children(f);c=c||y.length>0}if(c){g.debug("Nodes = ",a,r);for(var w=0;w<a.length;w++){var x=a[w];if(g.debug("Extracting node",x,yr,yr[x]&&!yr[x].externalConnections,!e.parent(x),e.node(x),e.children("D")," Depth ",r),yr[x])if(!yr[x].externalConnections&&e.children(x)&&e.children(x).length>0){g.warn("Cluster without external connections, without a parent and with children",x,r);var D=e.graph().rankdir==="TB"?"LR":"TB";yr[x]&&yr[x].clusterData&&yr[x].clusterData.dir&&(D=yr[x].clusterData.dir,g.warn("Fixing dir",yr[x].clusterData.dir,D));var j=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:D,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});g.warn("Old graph before copy",Bi().json.write(e)),J5(x,e,j,x),e.setNode(x,{clusterNode:!0,id:x,clusterData:yr[x].clusterData,labelText:yr[x].labelText,graph:j}),g.warn("New graph after copy node: (",x,")",Bi().json.write(j)),g.debug("Old graph after copy",Bi().json.write(e))}else g.warn("Cluster ** ",x," **not meeting the criteria !externalConnections:",!yr[x].externalConnections," no parent: ",!e.parent(x)," children ",e.children(x)&&e.children(x).length>0,e.children("D"),r),g.debug(yr);else g.debug("Not a cluster",x,r)}a=e.nodes(),g.warn("New list of nodes",a);for(var P=0;P<a.length;P++){var W=a[P],ot=e.node(W);g.warn(" Now next level",W,ot),ot.clusterNode&&t(ot.graph,r+1)}}else g.debug("Done, no node has children",e.nodes())}},r_=function t(e,r){if(r.length===0)return[];var a=Object.assign(r);return r.forEach(function(c){var u=e.children(c),f=t(e,u);a=a.concat(f)}),a},i_=function(t){return r_(t,t.children())},zr=h(3841);const x3=function(t,e,r,a){var c=t.x,u=t.y,f=c-a.x,y=u-a.y,w=Math.sqrt(e*e*y*y+r*r*f*f),x=Math.abs(e*r*f/w);a.x<c&&(x=-x);var D=Math.abs(e*r*y/w);return a.y<u&&(D=-D),{x:c+x,y:u+D}};function w3(t,e){return t*e>0}const k3=function(t,e,r,a){var c,u,f,y,w,x,D,j,P,W,ot,tt,gt;if(c=e.y-t.y,f=t.x-e.x,w=e.x*t.y-t.x*e.y,P=c*r.x+f*r.y+w,W=c*a.x+f*a.y+w,!(P!==0&&W!==0&&w3(P,W)||(u=a.y-r.y,y=r.x-a.x,x=a.x*r.y-r.x*a.y,D=u*t.x+y*t.y+x,j=u*e.x+y*e.y+x,D!==0&&j!==0&&w3(D,j)||(ot=c*y-u*f)==0)))return tt=Math.abs(ot/2),{x:(gt=f*x-y*w)<0?(gt-tt)/ot:(gt+tt)/ot,y:(gt=u*w-c*x)<0?(gt-tt)/ot:(gt+tt)/ot}},af=function(t,e){var r,a,c=t.x,u=t.y,f=e.x-c,y=e.y-u,w=t.width/2,x=t.height/2;return Math.abs(y)*w>Math.abs(f)*x?(y<0&&(x=-x),r=y===0?0:x*f/y,a=x):(f<0&&(w=-w),r=w,a=f===0?0:w*y/f),{x:c+r,y:u+a}},of=(h.n(zr)(),function(t,e,r){return x3(t,e,e,r)}),Rs=function(t,e,r){var a=t.x,c=t.y,u=[],f=Number.POSITIVE_INFINITY,y=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ot){f=Math.min(f,ot.x),y=Math.min(y,ot.y)}):(f=Math.min(f,e.x),y=Math.min(y,e.y));for(var w=a-t.width/2-f,x=c-t.height/2-y,D=0;D<e.length;D++){var j=e[D],P=e[D<e.length-1?D+1:0],W=k3(t,r,{x:w+j.x,y:x+j.y},{x:w+P.x,y:x+P.y});W&&u.push(W)}return u.length?(u.length>1&&u.sort(function(ot,tt){var gt=ot.x-r.x,ht=ot.y-r.y,wt=Math.sqrt(gt*gt+ht*ht),Tt=tt.x-r.x,Ft=tt.y-r.y,Gt=Math.sqrt(Tt*Tt+Ft*Ft);return wt<Gt?-1:wt===Gt?0:1}),u[0]):t},vc=af;function zd(t){return zd=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},zd(t)}var y2=function(t,e,r){var a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),c=70,u=10;r==="LR"&&(c=10,u=70);var f=a.append("rect").attr("x",-1*c/2).attr("y",-1*u/2).attr("width",c).attr("height",u).attr("class","fork-join");return ki(e,f),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(y){return vc(e,y)},a},T3={question:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding+(c.height+e.padding),f=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];g.info("Question main (Circle)");var y=Ro(a,u,u,f);return y.attr("style",e.style),ki(e,y),e.intersect=function(w){return g.warn("Intersect called"),Rs(e,f,w)},a},rect:function(t,e){var r=xa(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;g.trace("Classes = ",e.classes);var f=a.insert("rect",":first-child"),y=c.width+e.padding,w=c.height+e.padding;if(f.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-c.width/2-u).attr("y",-c.height/2-u).attr("width",y).attr("height",w),e.props){var x=new Set(Object.keys(e.props));e.props.borders&&(function(D,j,P,W){var ot=[],tt=function(ht){ot.push(ht),ot.push(0)},gt=function(ht){ot.push(0),ot.push(ht)};j.includes("t")?(g.debug("add top border"),tt(P)):gt(P),j.includes("r")?(g.debug("add right border"),tt(W)):gt(W),j.includes("b")?(g.debug("add bottom border"),tt(P)):gt(P),j.includes("l")?(g.debug("add left border"),tt(W)):gt(W),D.attr("stroke-dasharray",ot.join(" "))}(f,e.props.borders,y,w),x.delete("borders")),x.forEach(function(D){g.warn("Unknown node property ".concat(D))})}return ki(e,f),e.intersect=function(D){return vc(e,D)},a},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var a,c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("rect",":first-child"),f=c.insert("line"),y=c.insert("g").attr("class","label"),w=e.labelText.flat?e.labelText.flat():e.labelText;a=zd(w)==="object"?w[0]:w,g.info("Label text abc79",a,w,zd(w)==="object");var x=y.node().appendChild(_a(a,e.labelStyle,!0,!0)),D={width:0,height:0};if(xi(Jt().flowchart.htmlLabels)){var j=x.children[0],P=Se(x);D=j.getBoundingClientRect(),P.attr("width",D.width),P.attr("height",D.height)}g.info("Text 2",w);var W=w.slice(1,w.length),ot=x.getBBox(),tt=y.node().appendChild(_a(W.join?W.join("<br/>"):W,e.labelStyle,!0,!0));if(xi(Jt().flowchart.htmlLabels)){var gt=tt.children[0],ht=Se(tt);D=gt.getBoundingClientRect(),ht.attr("width",D.width),ht.attr("height",D.height)}var wt=e.padding/2;return Se(tt).attr("transform","translate( "+(D.width>ot.width?0:(ot.width-D.width)/2)+", "+(ot.height+wt+5)+")"),Se(x).attr("transform","translate( "+(D.width<ot.width?0:-(ot.width-D.width)/2)+", 0)"),D=y.node().getBBox(),y.attr("transform","translate("+-D.width/2+", "+(-D.height/2-wt+3)+")"),u.attr("class","outer title-state").attr("x",-D.width/2-wt).attr("y",-D.height/2-wt).attr("width",D.width+e.padding).attr("height",D.height+e.padding),f.attr("class","divider").attr("x1",-D.width/2-wt).attr("x2",D.width/2+wt).attr("y1",-D.height/2-wt+ot.height+wt).attr("y2",-D.height/2-wt+ot.height+wt),ki(e,u),e.intersect=function(Tt){return vc(e,Tt)},c},choice:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(a){return of(e,14,a)},r},circle:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding,f=a.insert("circle",":first-child");return f.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",c.width/2+u).attr("width",c.width+e.padding).attr("height",c.height+e.padding),g.info("Circle main"),ki(e,f),e.intersect=function(y){return g.info("Circle intersect",e,c.width/2+u,y),of(e,c.width/2+u,y)},a},stadium:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,f=c.width+u/4+e.padding,y=a.insert("rect",":first-child").attr("style",e.style).attr("rx",u/2).attr("ry",u/2).attr("x",-f/2).attr("y",-u/2).attr("width",f).attr("height",u);return ki(e,y),e.intersect=function(w){return vc(e,w)},a},hexagon:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,f=u/4,y=c.width+2*f+e.padding,w=[{x:f,y:0},{x:y-f,y:0},{x:y,y:-u/2},{x:y-f,y:-u},{x:f,y:-u},{x:0,y:-u/2}],x=Ro(a,y,u,w);return x.attr("style",e.style),ki(e,x),e.intersect=function(D){return Rs(e,w,D)},a},rect_left_inv_arrow:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:-f/2,y:0},{x:u,y:0},{x:u,y:-f},{x:-f/2,y:-f},{x:0,y:-f/2}];return Ro(a,u,f,y).attr("style",e.style),e.width=u+f,e.height=f,e.intersect=function(w){return Rs(e,y,w)},a},lean_right:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:-2*f/6,y:0},{x:u-f/6,y:0},{x:u+2*f/6,y:-f},{x:f/6,y:-f}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},lean_left:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:2*f/6,y:0},{x:u+f/6,y:0},{x:u-2*f/6,y:-f},{x:-f/6,y:-f}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},trapezoid:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:-2*f/6,y:0},{x:u+2*f/6,y:0},{x:u-f/6,y:-f},{x:f/6,y:-f}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},inv_trapezoid:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:f/6,y:0},{x:u-f/6,y:0},{x:u+2*f/6,y:-f},{x:-2*f/6,y:-f}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},rect_right_inv_arrow:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:0,y:0},{x:u+f/2,y:0},{x:u,y:-f/2},{x:u+f/2,y:-f},{x:0,y:-f}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},cylinder:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=u/2,y=f/(2.5+u/50),w=c.height+y+e.padding,x="M 0,"+y+" a "+f+","+y+" 0,0,0 "+u+" 0 a "+f+","+y+" 0,0,0 "+-u+" 0 l 0,"+w+" a "+f+","+y+" 0,0,0 "+u+" 0 l 0,"+-w,D=a.attr("label-offset-y",y).insert("path",":first-child").attr("style",e.style).attr("d",x).attr("transform","translate("+-u/2+","+-(w/2+y)+")");return ki(e,D),e.intersect=function(j){var P=vc(e,j),W=P.x-e.x;if(f!=0&&(Math.abs(W)<e.width/2||Math.abs(W)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-y)){var ot=y*y*(1-W*W/(f*f));ot!=0&&(ot=Math.sqrt(ot)),ot=y-ot,j.y-e.y>0&&(ot=-ot),P.y+=ot}return P},a},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ki(e,a),e.intersect=function(c){return of(e,7,c)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),c=r.insert("circle",":first-child");return c.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ki(e,c),e.intersect=function(u){return of(e,7,u)},r},note:function(t,e){var r=xa(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;g.info("Classes = ",e.classes);var f=a.insert("rect",":first-child");return f.attr("rx",e.rx).attr("ry",e.ry).attr("x",-c.width/2-u).attr("y",-c.height/2-u).attr("width",c.width+e.padding).attr("height",c.height+e.padding),ki(e,f),e.intersect=function(y){return vc(e,y)},a},subroutine:function(t,e){var r=xa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,f=c.height+e.padding,y=[{x:0,y:0},{x:u,y:0},{x:u,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-f},{x:-8,y:-f},{x:-8,y:0}],w=Ro(a,u,f,y);return w.attr("style",e.style),ki(e,w),e.intersect=function(x){return Rs(e,y,x)},a},fork:y2,join:y2,class_box:function(t,e){var r,a=e.padding/2;r=e.classes?"node "+e.classes:"node default";var c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("rect",":first-child"),f=c.insert("line"),y=c.insert("line"),w=0,x=4,D=c.insert("g").attr("class","label"),j=0,P=e.classData.annotations&&e.classData.annotations[0],W=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ot=D.node().appendChild(_a(W,e.labelStyle,!0,!0)),tt=ot.getBBox();if(xi(Jt().flowchart.htmlLabels)){var gt=ot.children[0],ht=Se(ot);tt=gt.getBoundingClientRect(),ht.attr("width",tt.width),ht.attr("height",tt.height)}e.classData.annotations[0]&&(x+=tt.height+4,w+=tt.width);var wt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(Jt().flowchart.htmlLabels?wt+="&lt;"+e.classData.type+"&gt;":wt+="<"+e.classData.type+">");var Tt=D.node().appendChild(_a(wt,e.labelStyle,!0,!0));Se(Tt).attr("class","classTitle");var Ft=Tt.getBBox();if(xi(Jt().flowchart.htmlLabels)){var Gt=Tt.children[0],Et=Se(Tt);Ft=Gt.getBoundingClientRect(),Et.attr("width",Ft.width),Et.attr("height",Ft.height)}x+=Ft.height+4,Ft.width>w&&(w=Ft.width);var ee=[];e.classData.members.forEach(function(Ct){var yt=Fd(Ct),Rt=yt.displayText;Jt().flowchart.htmlLabels&&(Rt=Rt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var bt=D.node().appendChild(_a(Rt,yt.cssStyle?yt.cssStyle:e.labelStyle,!0,!0)),xe=bt.getBBox();if(xi(Jt().flowchart.htmlLabels)){var Te=bt.children[0],Ut=Se(bt);xe=Te.getBoundingClientRect(),Ut.attr("width",xe.width),Ut.attr("height",xe.height)}xe.width>w&&(w=xe.width),x+=xe.height+4,ee.push(bt)}),x+=8;var re=[];if(e.classData.methods.forEach(function(Ct){var yt=Fd(Ct),Rt=yt.displayText;Jt().flowchart.htmlLabels&&(Rt=Rt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var bt=D.node().appendChild(_a(Rt,yt.cssStyle?yt.cssStyle:e.labelStyle,!0,!0)),xe=bt.getBBox();if(xi(Jt().flowchart.htmlLabels)){var Te=bt.children[0],Ut=Se(bt);xe=Te.getBoundingClientRect(),Ut.attr("width",xe.width),Ut.attr("height",xe.height)}xe.width>w&&(w=xe.width),x+=xe.height+4,re.push(bt)}),x+=8,P){var kt=(w-tt.width)/2;Se(ot).attr("transform","translate( "+(-1*w/2+kt)+", "+-1*x/2+")"),j=tt.height+4}var Lt=(w-Ft.width)/2;return Se(Tt).attr("transform","translate( "+(-1*w/2+Lt)+", "+(-1*x/2+j)+")"),j+=Ft.height+4,f.attr("class","divider").attr("x1",-w/2-a).attr("x2",w/2+a).attr("y1",-x/2-a+8+j).attr("y2",-x/2-a+8+j),j+=8,ee.forEach(function(Ct){Se(Ct).attr("transform","translate( "+-w/2+", "+(-1*x/2+j+4)+")"),j+=Ft.height+4}),j+=8,y.attr("class","divider").attr("x1",-w/2-a).attr("x2",w/2+a).attr("y1",-x/2-a+8+j).attr("y2",-x/2-a+8+j),j+=8,re.forEach(function(Ct){Se(Ct).attr("transform","translate( "+-w/2+", "+(-1*x/2+j)+")"),j+=Ft.height+4}),u.attr("class","outer title-state").attr("x",-w/2-a).attr("y",-x/2-a).attr("width",w+e.padding).attr("height",x+e.padding),ki(e,u),e.intersect=function(Ct){return vc(e,Ct)},c}},au={},E3=function(t){var e=au[t.id];g.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},C3={rect:function(t,e){g.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),a=r.insert("rect",":first-child"),c=r.insert("g").attr("class","cluster-label"),u=c.node().appendChild(_a(e.labelText,e.labelStyle,void 0,!0)),f=u.getBBox();if(xi(Jt().flowchart.htmlLabels)){var y=u.children[0],w=Se(u);f=y.getBoundingClientRect(),w.attr("width",f.width),w.attr("height",f.height)}var x=0*e.padding,D=x/2,j=e.width<=f.width+x?f.width+x:e.width;e.width<=f.width+x?e.diff=(f.width-e.width)/2:e.diff=-e.padding/2,g.trace("Data ",e,JSON.stringify(e)),a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-j/2).attr("y",e.y-e.height/2-D).attr("width",j).attr("height",e.height+x),c.attr("transform","translate("+(e.x-f.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var P=a.node().getBBox();return e.width=P.width,e.height=P.height,e.intersect=function(W){return af(e,W)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),c=r.insert("g").attr("class","cluster-label"),u=r.append("rect"),f=c.node().appendChild(_a(e.labelText,e.labelStyle,void 0,!0)),y=f.getBBox();if(xi(Jt().flowchart.htmlLabels)){var w=f.children[0],x=Se(f);y=w.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}y=f.getBBox();var D=0*e.padding,j=D/2,P=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(y.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,a.attr("class","outer").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j).attr("width",P+D).attr("height",e.height+D),u.attr("class","inner").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j+y.height-1).attr("width",P+D).attr("height",e.height+D-y.height-3),c.attr("transform","translate("+(e.x-y.width/2)+", "+(e.y-e.height/2-e.padding/3+(xi(Jt().flowchart.htmlLabels)?5:3))+")");var W=a.node().getBBox();return e.height=W.height,e.intersect=function(ot){return af(e,ot)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),a=r.insert("rect",":first-child"),c=0*e.padding,u=c/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-u).attr("y",e.y-e.height/2-u).attr("width",e.width+c).attr("height",e.height+c).attr("fill","none");var f=a.node().getBBox();return e.width=f.width,e.height=f.height,e.intersect=function(y){return af(e,y)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),c=0*e.padding,u=c/2;a.attr("class","divider").attr("x",e.x-e.width/2-u).attr("y",e.y-e.height/2).attr("width",e.width+c).attr("height",e.height+c);var f=a.node().getBBox();return e.width=f.width,e.height=f.height,e.diff=-e.padding/2,e.intersect=function(y){return af(e,y)},r}},S3={},sf={},Qi={},A3=function(t,e){var r=_a(e.label,e.labelStyle),a=t.insert("g").attr("class","edgeLabel"),c=a.insert("g").attr("class","label");c.node().appendChild(r);var u,f=r.getBBox();if(xi(Jt().flowchart.htmlLabels)){var y=r.children[0],w=Se(r);f=y.getBoundingClientRect(),w.attr("width",f.width),w.attr("height",f.height)}if(c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),sf[e.id]=a,e.width=f.width,e.height=f.height,e.startLabelLeft){var x=_a(e.startLabelLeft,e.labelStyle),D=t.insert("g").attr("class","edgeTerminals"),j=D.insert("g").attr("class","inner");u=j.node().appendChild(x);var P=x.getBBox();j.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),Qi[e.id]||(Qi[e.id]={}),Qi[e.id].startLeft=D,Ud(u,e.startLabelLeft)}if(e.startLabelRight){var W=_a(e.startLabelRight,e.labelStyle),ot=t.insert("g").attr("class","edgeTerminals"),tt=ot.insert("g").attr("class","inner");u=ot.node().appendChild(W),tt.node().appendChild(W);var gt=W.getBBox();tt.attr("transform","translate("+-gt.width/2+", "+-gt.height/2+")"),Qi[e.id]||(Qi[e.id]={}),Qi[e.id].startRight=ot,Ud(u,e.startLabelRight)}if(e.endLabelLeft){var ht=_a(e.endLabelLeft,e.labelStyle),wt=t.insert("g").attr("class","edgeTerminals"),Tt=wt.insert("g").attr("class","inner");u=Tt.node().appendChild(ht);var Ft=ht.getBBox();Tt.attr("transform","translate("+-Ft.width/2+", "+-Ft.height/2+")"),wt.node().appendChild(ht),Qi[e.id]||(Qi[e.id]={}),Qi[e.id].endLeft=wt,Ud(u,e.endLabelLeft)}if(e.endLabelRight){var Gt=_a(e.endLabelRight,e.labelStyle),Et=t.insert("g").attr("class","edgeTerminals"),ee=Et.insert("g").attr("class","inner");u=ee.node().appendChild(Gt);var re=Gt.getBBox();ee.attr("transform","translate("+-re.width/2+", "+-re.height/2+")"),Et.node().appendChild(Gt),Qi[e.id]||(Qi[e.id]={}),Qi[e.id].endRight=Et,Ud(u,e.endLabelRight)}};function Ud(t,e){Jt().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var M3=function(t,e){g.info("Moving label abc78 ",t.id,t.label,sf[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var a=sf[t.id],c=t.x,u=t.y;if(r){var f=Zn.calcLabelPosition(r);g.info("Moving label from (",c,",",u,") to (",f.x,",",f.y,") abc78")}a.attr("transform","translate("+c+", "+u+")")}if(t.startLabelLeft){var y=Qi[t.id].startLeft,w=t.x,x=t.y;if(r){var D=Zn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);w=D.x,x=D.y}y.attr("transform","translate("+w+", "+x+")")}if(t.startLabelRight){var j=Qi[t.id].startRight,P=t.x,W=t.y;if(r){var ot=Zn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);P=ot.x,W=ot.y}j.attr("transform","translate("+P+", "+W+")")}if(t.endLabelLeft){var tt=Qi[t.id].endLeft,gt=t.x,ht=t.y;if(r){var wt=Zn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);gt=wt.x,ht=wt.y}tt.attr("transform","translate("+gt+", "+ht+")")}if(t.endLabelRight){var Tt=Qi[t.id].endRight,Ft=t.x,Gt=t.y;if(r){var Et=Zn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);Ft=Et.x,Gt=Et.y}Tt.attr("transform","translate("+Ft+", "+Gt+")")}},N3=function(t,e){g.warn("abc88 cutPathAtIntersect",t,e);var r=[],a=t[0],c=!1;return t.forEach(function(u){if(g.info("abc88 checking point",u,e),function(w,x){var D=w.x,j=w.y,P=Math.abs(x.x-D),W=Math.abs(x.y-j),ot=w.width/2,tt=w.height/2;return P>=ot||W>=tt}(e,u)||c)g.warn("abc88 outside",u,a),a=u,c||r.push(u);else{var f=function(w,x,D){g.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(x),`
insidePoint : `).concat(JSON.stringify(D),`
node : x:`).concat(w.x," y:").concat(w.y," w:").concat(w.width," h:").concat(w.height));var j=w.x,P=w.y,W=Math.abs(j-D.x),ot=w.width/2,tt=D.x<x.x?ot-W:ot+W,gt=w.height/2,ht=Math.abs(x.y-D.y),wt=Math.abs(x.x-D.x);if(Math.abs(P-x.y)*ot>Math.abs(j-x.x)*gt){var Tt=D.y<x.y?x.y-gt-P:P-gt-x.y;tt=wt*Tt/ht;var Ft={x:D.x<x.x?D.x+tt:D.x-wt+tt,y:D.y<x.y?D.y+ht-Tt:D.y-ht+Tt};return tt===0&&(Ft.x=x.x,Ft.y=x.y),wt===0&&(Ft.x=x.x),ht===0&&(Ft.y=x.y),g.warn("abc89 topp/bott calc, Q ".concat(ht,", q ").concat(Tt,", R ").concat(wt,", r ").concat(tt),Ft),Ft}var Gt=ht*(tt=D.x<x.x?x.x-ot-j:j-ot-x.x)/wt,Et=D.x<x.x?D.x+wt-tt:D.x-wt+tt,ee=D.y<x.y?D.y+Gt:D.y-Gt;return g.warn("sides calc abc89, Q ".concat(ht,", q ").concat(Gt,", R ").concat(wt,", r ").concat(tt),{_x:Et,_y:ee}),tt===0&&(Et=x.x,ee=x.y),wt===0&&(Et=x.x),ht===0&&(ee=x.y),{x:Et,y:ee}}(e,a,u);g.warn("abc88 inside",u,a,f),g.warn("abc88 intersection",f);var y=!1;r.forEach(function(w){y=y||w.x===f.x&&w.y===f.y}),r.find(function(w){return w.x===f.x&&w.y===f.y})?g.warn("abc88 no intersect",f,r):r.push(f),c=!0}}),g.warn("abc88 returning points",r),r},D3=function t(e,r,a,c){g.info("Graph in recursive render: XXX",Bi().json.write(r),c);var u=r.graph().rankdir;g.trace("Dir in recursive render - dir:",u);var f=e.insert("g").attr("class","root");r.nodes()?g.info("Recursive render XXX",r.nodes()):g.info("No nodes found for",r),r.edges().length>0&&g.trace("Recursive edges",r.edge(r.edges()[0]));var y=f.insert("g").attr("class","clusters"),w=f.insert("g").attr("class","edgePaths"),x=f.insert("g").attr("class","edgeLabels"),D=f.insert("g").attr("class","nodes");r.nodes().forEach(function(P){var W=r.node(P);if(c!==void 0){var ot=JSON.parse(JSON.stringify(c.clusterData));g.info("Setting data for cluster XXX (",P,") ",ot,c),r.setNode(c.id,ot),r.parent(P)||(g.trace("Setting parent",P,c.id),r.setParent(P,c.id,ot))}if(g.info("(Insert) Node XXX"+P+": "+JSON.stringify(r.node(P))),W&&W.clusterNode){g.info("Cluster identified",P,W.width,r.node(P));var tt=t(D,W.graph,a,r.node(P)),gt=tt.elem;ki(W,gt),W.diff=tt.diff||0,g.info("Node bounds (abc123)",P,W,W.width,W.x,W.y),function(ht,wt){au[wt.id]=ht}(gt,W),g.warn("Recursive render complete ",gt,W)}else r.children(P).length>0?(g.info("Cluster - the non recursive path XXX",P,W.id,W,r),g.info(Yd(W.id,r)),yr[W.id]={id:Yd(W.id,r),node:W}):(g.info("Node - the non recursive path",P,W.id,W),function(ht,wt,Tt){var Ft,Gt,Et;wt.link?(Jt().securityLevel==="sandbox"?Et="_top":wt.linkTarget&&(Et=wt.linkTarget||"_blank"),Ft=ht.insert("svg:a").attr("xlink:href",wt.link).attr("target",Et),Gt=T3[wt.shape](Ft,wt,Tt)):Ft=Gt=T3[wt.shape](ht,wt,Tt),wt.tooltip&&Gt.attr("title",wt.tooltip),wt.class&&Gt.attr("class","node default "+wt.class),au[wt.id]=Ft,wt.haveCallback&&au[wt.id].attr("class",au[wt.id].attr("class")+" clickable")}(D,r.node(P),u))}),r.edges().forEach(function(P){var W=r.edge(P.v,P.w,P.name);g.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P)),g.info("Edge "+P.v+" -> "+P.w+": ",P," ",JSON.stringify(r.edge(P))),g.info("Fix",yr,"ids:",P.v,P.w,"Translateing: ",yr[P.v],yr[P.w]),A3(x,W)}),r.edges().forEach(function(P){g.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P))}),g.info("#############################################"),g.info("### Layout ###"),g.info("#############################################"),g.info(r),ef().layout(r),g.info("Graph after layout:",Bi().json.write(r));var j=0;return i_(r).forEach(function(P){var W=r.node(P);g.info("Position "+P+": "+JSON.stringify(r.node(P))),g.info("Position "+P+": ("+W.x,","+W.y,") width: ",W.width," height: ",W.height),W&&W.clusterNode?E3(W):r.children(P).length>0?(function(ot,tt){g.trace("Inserting cluster");var gt=tt.shape||"rect";S3[tt.id]=C3[gt](ot,tt)}(y,W),yr[W.id].node=W):E3(W)}),r.edges().forEach(function(P){var W=r.edge(P);g.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(W),W);var ot=function(tt,gt,ht,wt,Tt,Ft){var Gt=ht.points,Et=!1,ee=Ft.node(gt.v),re=Ft.node(gt.w);g.info("abc88 InsertEdge: ",ht),re.intersect&&ee.intersect&&((Gt=Gt.slice(1,ht.points.length-1)).unshift(ee.intersect(Gt[0])),g.info("Last point",Gt[Gt.length-1],re,re.intersect(Gt[Gt.length-1])),Gt.push(re.intersect(Gt[Gt.length-1]))),ht.toCluster&&(g.info("to cluster abc88",wt[ht.toCluster]),Gt=N3(ht.points,wt[ht.toCluster].node),Et=!0),ht.fromCluster&&(g.info("from cluster abc88",wt[ht.fromCluster]),Gt=N3(Gt.reverse(),wt[ht.fromCluster].node).reverse(),Et=!0);var kt,Lt=Gt.filter(function(Te){return!Number.isNaN(Te.y)});kt=(Tt==="graph"||Tt==="flowchart")&&ht.curve||Rr;var Ct,yt=oo().x(function(Te){return Te.x}).y(function(Te){return Te.y}).curve(kt);switch(ht.thickness){case"normal":Ct="edge-thickness-normal";break;case"thick":Ct="edge-thickness-thick";break;default:Ct=""}switch(ht.pattern){case"solid":Ct+=" edge-pattern-solid";break;case"dotted":Ct+=" edge-pattern-dotted";break;case"dashed":Ct+=" edge-pattern-dashed"}var Rt=tt.append("path").attr("d",yt(Lt)).attr("id",ht.id).attr("class"," "+Ct+(ht.classes?" "+ht.classes:"")).attr("style",ht.style),bt="";switch(Jt().state.arrowMarkerAbsolute&&(bt=(bt=(bt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),g.info("arrowTypeStart",ht.arrowTypeStart),g.info("arrowTypeEnd",ht.arrowTypeEnd),ht.arrowTypeStart){case"arrow_cross":Rt.attr("marker-start","url("+bt+"#"+Tt+"-crossStart)");break;case"arrow_point":Rt.attr("marker-start","url("+bt+"#"+Tt+"-pointStart)");break;case"arrow_barb":Rt.attr("marker-start","url("+bt+"#"+Tt+"-barbStart)");break;case"arrow_circle":Rt.attr("marker-start","url("+bt+"#"+Tt+"-circleStart)");break;case"aggregation":Rt.attr("marker-start","url("+bt+"#"+Tt+"-aggregationStart)");break;case"extension":Rt.attr("marker-start","url("+bt+"#"+Tt+"-extensionStart)");break;case"composition":Rt.attr("marker-start","url("+bt+"#"+Tt+"-compositionStart)");break;case"dependency":Rt.attr("marker-start","url("+bt+"#"+Tt+"-dependencyStart)")}switch(ht.arrowTypeEnd){case"arrow_cross":Rt.attr("marker-end","url("+bt+"#"+Tt+"-crossEnd)");break;case"arrow_point":Rt.attr("marker-end","url("+bt+"#"+Tt+"-pointEnd)");break;case"arrow_barb":Rt.attr("marker-end","url("+bt+"#"+Tt+"-barbEnd)");break;case"arrow_circle":Rt.attr("marker-end","url("+bt+"#"+Tt+"-circleEnd)");break;case"aggregation":Rt.attr("marker-end","url("+bt+"#"+Tt+"-aggregationEnd)");break;case"extension":Rt.attr("marker-end","url("+bt+"#"+Tt+"-extensionEnd)");break;case"composition":Rt.attr("marker-end","url("+bt+"#"+Tt+"-compositionEnd)");break;case"dependency":Rt.attr("marker-end","url("+bt+"#"+Tt+"-dependencyEnd)")}var xe={};return Et&&(xe.updatedPath=Gt),xe.originalPath=ht.points,xe}(w,P,W,yr,a,r);M3(W,ot)}),r.nodes().forEach(function(P){var W=r.node(P);g.info(P,W.type,W.diff),W.type==="group"&&(j=W.diff)}),{elem:f,diff:j}},m2=function(t,e,r,a,c){v3(t,r,a,c),au={},sf={},Qi={},S3={},Mn={},b3={},yr={},g.warn("Graph at first:",Bi().json.write(e)),e_(e),g.warn("Graph after:",Bi().json.write(e)),D3(t,e,a)};iu.parser.yy=uo;var v2={dividerMargin:10,padding:5,textHeight:10};function O3(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var ml={},b2=[],qd="",B3=function(t){return ml[t]===void 0&&(ml[t]={attributes:[]},g.info("Added new entity :",t)),ml[t]};const wa={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().er},addEntity:B3,addAttributes:function(t,e){var r,a=B3(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),g.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return ml},addRelationship:function(t,e,r,a){var c={entityA:t,roleA:e,entityB:r,relSpec:a};b2.push(c),g.debug("Added new relationship :",c)},getRelationships:function(){return b2},clear:function(){ml={},b2=[],qd=""},setTitle:function(t){qd=t},getTitle:function(){return qd}};var a_=h(5890),_2=h.n(a_),Fs={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"};const Ps=Fs;var Ur={},x2=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},L3=0;const w2=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ur[e[r]]=t[e[r]]},o_=function(t,e){g.info("Drawing ER diagram"),wa.clear();var r=_2().parser;r.yy=wa;var a,c=Jt().securityLevel;c==="sandbox"&&(a=Se("#i"+e));var u=Se(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument;try{r.parse(t)}catch{g.debug("Parsing failed")}var f,y=u.select("[id='".concat(e,"']"));(function(ot,tt){var gt;ot.append("defs").append("marker").attr("id",Fs.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),ot.append("defs").append("marker").attr("id",Fs.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(gt=ot.append("defs").append("marker").attr("id",Fs.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(gt=ot.append("defs").append("marker").attr("id",Fs.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),ot.append("defs").append("marker").attr("id",Fs.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),ot.append("defs").append("marker").attr("id",Fs.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(gt=ot.append("defs").append("marker").attr("id",Fs.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(gt=ot.append("defs").append("marker").attr("id",Fs.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(y,Ur),f=new(Bi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Ur.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var w=function(ot,tt,gt){var ht;return Object.keys(tt).forEach(function(wt){var Tt=ot.append("g").attr("id",wt);ht=ht===void 0?wt:ht;var Ft="entity-"+wt,Gt=Tt.append("text").attr("class","er entityLabel").attr("id",Ft).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Ur.fontSize+"px").text(wt),Et=function(Lt,Ct,yt){var Rt=Ur.entityPadding/3,bt=Ur.entityPadding/3,xe=.85*Ur.fontSize,Te=Ct.node().getBBox(),Ut=[],Ee=!1,Ce=!1,_e=0,fe=0,je=0,Fe=0,Je=Te.height+2*Rt,yn=1;yt.forEach(function(pn){pn.attributeKeyType!==void 0&&(Ee=!0),pn.attributeComment!==void 0&&(Ce=!0)}),yt.forEach(function(pn){var On="".concat(Ct.node().id,"-attr-").concat(yn),mr=0,Oa=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(On,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+xe+"px").text(pn.attributeType),ka=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(On,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+xe+"px").text(pn.attributeName),Qn={};Qn.tn=Oa,Qn.nn=ka;var Nn=Oa.node().getBBox(),to=ka.node().getBBox();if(_e=Math.max(_e,Nn.width),fe=Math.max(fe,to.width),mr=Math.max(Nn.height,to.height),Ee){var fo=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(On,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+xe+"px").text(pn.attributeKeyType||"");Qn.kn=fo;var zo=fo.node().getBBox();je=Math.max(je,zo.width),mr=Math.max(mr,zo.height)}if(Ce){var _i=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(On,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+xe+"px").text(pn.attributeComment||"");Qn.cn=_i;var Bf=_i.node().getBBox();Fe=Math.max(Fe,Bf.width),mr=Math.max(mr,Bf.height)}Qn.height=mr,Ut.push(Qn),Je+=mr+2*Rt,yn+=1});var He=4;Ee&&(He+=2),Ce&&(He+=2);var fr=_e+fe+je+Fe,Er={width:Math.max(Ur.minEntityWidth,Math.max(Te.width+2*Ur.entityPadding,fr+bt*He)),height:yt.length>0?Je:Math.max(Ur.minEntityHeight,Te.height+2*Ur.entityPadding)};if(yt.length>0){var Bn=Math.max(0,(Er.width-fr-bt*He)/(He/2));Ct.attr("transform","translate("+Er.width/2+","+(Rt+Te.height/2)+")");var qr=Te.height+2*Rt,hr="attributeBoxOdd";Ut.forEach(function(pn){var On=qr+Rt+pn.height/2;pn.tn.attr("transform","translate("+bt+","+On+")");var mr=Lt.insert("rect","#"+pn.tn.node().id).attr("class","er ".concat(hr)).attr("fill",Ur.fill).attr("fill-opacity","100%").attr("stroke",Ur.stroke).attr("x",0).attr("y",qr).attr("width",_e+2*bt+Bn).attr("height",pn.height+2*Rt),Oa=parseFloat(mr.attr("x"))+parseFloat(mr.attr("width"));pn.nn.attr("transform","translate("+(Oa+bt)+","+On+")");var ka=Lt.insert("rect","#"+pn.nn.node().id).attr("class","er ".concat(hr)).attr("fill",Ur.fill).attr("fill-opacity","100%").attr("stroke",Ur.stroke).attr("x",Oa).attr("y",qr).attr("width",fe+2*bt+Bn).attr("height",pn.height+2*Rt),Qn=parseFloat(ka.attr("x"))+parseFloat(ka.attr("width"));if(Ee){pn.kn.attr("transform","translate("+(Qn+bt)+","+On+")");var Nn=Lt.insert("rect","#"+pn.kn.node().id).attr("class","er ".concat(hr)).attr("fill",Ur.fill).attr("fill-opacity","100%").attr("stroke",Ur.stroke).attr("x",Qn).attr("y",qr).attr("width",je+2*bt+Bn).attr("height",pn.height+2*Rt);Qn=parseFloat(Nn.attr("x"))+parseFloat(Nn.attr("width"))}Ce&&(pn.cn.attr("transform","translate("+(Qn+bt)+","+On+")"),Lt.insert("rect","#"+pn.cn.node().id).attr("class","er ".concat(hr)).attr("fill",Ur.fill).attr("fill-opacity","100%").attr("stroke",Ur.stroke).attr("x",Qn).attr("y",qr).attr("width",Fe+2*bt+Bn).attr("height",pn.height+2*Rt)),qr+=pn.height+2*Rt,hr=hr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Er.height=Math.max(Ur.minEntityHeight,Je),Ct.attr("transform","translate("+Er.width/2+","+Er.height/2+")");return Er}(Tt,Gt,tt[wt].attributes),ee=Et.width,re=Et.height,kt=Tt.insert("rect","#"+Ft).attr("class","er entityBox").attr("fill",Ur.fill).attr("fill-opacity","100%").attr("stroke",Ur.stroke).attr("x",0).attr("y",0).attr("width",ee).attr("height",re).node().getBBox();gt.setNode(wt,{width:kt.width,height:kt.height,shape:"rect",id:wt})}),ht}(y,wa.getEntities(),f),x=function(ot,tt){return ot.forEach(function(gt){tt.setEdge(gt.entityA,gt.entityB,{relationship:gt},x2(gt))}),ot}(wa.getRelationships(),f);ef().layout(f),function(ot,tt){tt.nodes().forEach(function(gt){gt!==void 0&&tt.node(gt)!==void 0&&ot.select("#"+gt).attr("transform","translate("+(tt.node(gt).x-tt.node(gt).width/2)+","+(tt.node(gt).y-tt.node(gt).height/2)+" )")})}(y,f),x.forEach(function(ot){(function(tt,gt,ht,wt){L3++;var Tt=ht.edge(gt.entityA,gt.entityB,x2(gt)),Ft=oo().x(function(Ct){return Ct.x}).y(function(Ct){return Ct.y}).curve(Rr),Gt=tt.insert("path","#"+wt).attr("class","er relationshipLine").attr("d",Ft(Tt.points)).attr("stroke",Ur.stroke).attr("fill","none");gt.relSpec.relType===wa.Identification.NON_IDENTIFYING&&Gt.attr("stroke-dasharray","8,8");var Et="";switch(Ur.arrowMarkerAbsolute&&(Et=(Et=(Et=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),gt.relSpec.cardA){case wa.Cardinality.ZERO_OR_ONE:Gt.attr("marker-end","url("+Et+"#"+Ps.ZERO_OR_ONE_END+")");break;case wa.Cardinality.ZERO_OR_MORE:Gt.attr("marker-end","url("+Et+"#"+Ps.ZERO_OR_MORE_END+")");break;case wa.Cardinality.ONE_OR_MORE:Gt.attr("marker-end","url("+Et+"#"+Ps.ONE_OR_MORE_END+")");break;case wa.Cardinality.ONLY_ONE:Gt.attr("marker-end","url("+Et+"#"+Ps.ONLY_ONE_END+")")}switch(gt.relSpec.cardB){case wa.Cardinality.ZERO_OR_ONE:Gt.attr("marker-start","url("+Et+"#"+Ps.ZERO_OR_ONE_START+")");break;case wa.Cardinality.ZERO_OR_MORE:Gt.attr("marker-start","url("+Et+"#"+Ps.ZERO_OR_MORE_START+")");break;case wa.Cardinality.ONE_OR_MORE:Gt.attr("marker-start","url("+Et+"#"+Ps.ONE_OR_MORE_START+")");break;case wa.Cardinality.ONLY_ONE:Gt.attr("marker-start","url("+Et+"#"+Ps.ONLY_ONE_START+")")}var ee=Gt.node().getTotalLength(),re=Gt.node().getPointAtLength(.5*ee),kt="rel"+L3,Lt=tt.append("text").attr("class","er relationshipLabel").attr("id",kt).attr("x",re.x).attr("y",re.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Jt().fontFamily+"; font-size: "+Ur.fontSize+"px").text(gt.roleA).node().getBBox();tt.insert("rect","#"+kt).attr("class","er relationshipLabelBox").attr("x",re.x-Lt.width/2).attr("y",re.y-Lt.height/2).attr("width",Lt.width).attr("height",Lt.height).attr("fill","white").attr("fill-opacity","85%")})(y,ot,f,w)});var D=Ur.diagramPadding,j=y.node().getBBox(),P=j.width+2*D,W=j.height+2*D;$a(y,W,P,Ur.useMaxWidth),y.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat(W))};function Hd(t){return Hd=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},Hd(t)}function k2(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}var ss,Wd,I3="flowchart-",R3=0,ou=Jt(),fi={},bc=[],vl=[],Fo=[],$d={},Vd={},T2=0,Gd=!0,Xd=[],Zd=function(t){for(var e=Object.keys(fi),r=0;r<e.length;r++)if(fi[e[r]].id===t)return fi[e[r]].domId;return t},s_=function(t,e,r,a){var c={start:t,end:e,type:void 0,text:""};(a=r.text)!==void 0&&(c.text=lr.sanitizeText(a.trim(),ou),c.text[0]==='"'&&c.text[c.text.length-1]==='"'&&(c.text=c.text.substring(1,c.text.length-1))),r!==void 0&&(c.type=r.type,c.stroke=r.stroke,c.length=r.length),bc.push(c)},E2=function(t,e){t.split(",").forEach(function(r){var a=r;fi[a]!==void 0&&fi[a].classes.push(e),$d[a]!==void 0&&$d[a].classes.push(e)})},F3=function(t){var e=Se(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Se(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Se(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Se(this).classed("hover",!1)})};Xd.push(F3);var Qd=function(t){for(var e=0;e<Fo.length;e++)if(Fo[e].id===t)return e;return-1},C2=-1,cf=[],c_=function t(e,r){var a=Fo[r].nodes;if(!((C2+=1)>2e3)){if(cf[C2]=r,Fo[r].id===e)return{result:!0,count:0};for(var c=0,u=1;c<a.length;){var f=Qd(a[c]);if(f>=0){var y=t(e,f);if(y.result)return{result:!0,count:u+y.count};u+=y.count}c+=1}return{result:!1,count:u}}},P3=function(t,e){var r=!1;return t.forEach(function(a){a.nodes.indexOf(e)>=0&&(r=!0)}),r},j3=function(t,e){var r=[];return t.nodes.forEach(function(a,c){P3(e,a)||r.push(t.nodes[c])}),{nodes:r}};const rr={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},defaultConfig:function(){return Kh.flowchart},addVertex:function(t,e,r,a,c,u){var f,y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},w=t;w!==void 0&&w.trim().length!==0&&(fi[w]===void 0&&(fi[w]={id:w,domId:I3+w+"-"+R3,styles:[],classes:[]}),R3++,e!==void 0?(ou=Jt(),(f=lr.sanitizeText(e.trim(),ou))[0]==='"'&&f[f.length-1]==='"'&&(f=f.substring(1,f.length-1)),fi[w].text=f):fi[w].text===void 0&&(fi[w].text=t),r!==void 0&&(fi[w].type=r),a!=null&&a.forEach(function(x){fi[w].styles.push(x)}),c!=null&&c.forEach(function(x){fi[w].classes.push(x)}),u!==void 0&&(fi[w].dir=u),fi[w].props=y)},lookUpDomId:Zd,addLink:function(t,e,r,a){var c,u;for(c=0;c<t.length;c++)for(u=0;u<e.length;u++)s_(t[c],e[u],r,a)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?bc.defaultInterpolate=e:bc[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?bc.defaultStyle=e:(Zn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),bc[r].style=e)})},addClass:function(t,e){vl[t]===void 0&&(vl[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var a=r.replace("fill","bgFill").replace("color","fill");vl[t].textStyles.push(a)}vl[t].styles.push(r)})},setDirection:function(t){(ss=t).match(/.*</)&&(ss="RL"),ss.match(/.*\^/)&&(ss="BT"),ss.match(/.*>/)&&(ss="LR"),ss.match(/.*v/)&&(ss="TB")},setClass:E2,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(Vd[Wd==="gen-1"?Zd(r):r]=lr.sanitizeText(e,ou))})},getTooltip:function(t){return Vd[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,f){var y=Zd(c);if(Jt().securityLevel==="loose"&&u!==void 0){var w=[];if(typeof f=="string"){w=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var x=0;x<w.length;x++){var D=w[x].trim();D.charAt(0)==='"'&&D.charAt(D.length-1)==='"'&&(D=D.substr(1,D.length-2)),w[x]=D}}w.length===0&&w.push(c),fi[c]!==void 0&&(fi[c].haveCallback=!0,Xd.push(function(){var j=document.querySelector('[id="'.concat(y,'"]'));j!==null&&j.addEventListener("click",function(){var P;Zn.runFunc.apply(Zn,[u].concat(function(W){if(Array.isArray(W))return k2(W)}(P=w)||function(W){if(typeof Symbol!="undefined"&&W[Symbol.iterator]!=null||W["@@iterator"]!=null)return Array.from(W)}(P)||function(W,ot){if(W){if(typeof W=="string")return k2(W,ot);var tt=Object.prototype.toString.call(W).slice(8,-1);return tt==="Object"&&W.constructor&&(tt=W.constructor.name),tt==="Map"||tt==="Set"?Array.from(W):tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt)?k2(W,ot):void 0}}(P)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(a,e,r)}),E2(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(a){fi[a]!==void 0&&(fi[a].link=Zn.formatUrl(e,ou),fi[a].linkTarget=r)}),E2(t,"clickable")},bindFunctions:function(t){Xd.forEach(function(e){e(t)})},getDirection:function(){return ss.trim()},getVertices:function(){return fi},getEdges:function(){return bc},getClasses:function(){return vl},clear:function(t){fi={},vl={},bc=[],(Xd=[]).push(F3),Fo=[],$d={},T2=0,Vd=[],Gd=!0,Wd=t||"gen-1"},setGen:function(t){Wd=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,r){var a=t.trim(),c=r;t===r&&r.match(/\s/)&&(a=void 0);var u=[],f=function(j){var P,W={boolean:{},number:{},string:{}},ot=[],tt=j.filter(function(gt){var ht=Hd(gt);return gt.stmt&&gt.stmt==="dir"?(P=gt.value,!1):gt.trim()!==""&&(ht in W?!W[ht].hasOwnProperty(gt)&&(W[ht][gt]=!0):!(ot.indexOf(gt)>=0)&&ot.push(gt))});return{nodeList:tt,dir:P}}(u.concat.apply(u,e)),y=f.nodeList,w=f.dir;if(u=y,Wd==="gen-1"){g.warn("LOOKING UP");for(var x=0;x<u.length;x++)u[x]=Zd(u[x])}a=a||"subGraph"+T2,c=c||"",c=lr.sanitizeText(c,ou),T2+=1;var D={id:a,nodes:u,title:c.trim(),classes:[],dir:w};return g.info("Adding",D.id,D.nodes,D.dir),D.nodes=j3(D,Fo).nodes,Fo.push(D),$d[a]=D,a},getDepthFirstPos:function(t){return cf[t]},indexNodes:function(){C2=-1,Fo.length>0&&c_("none",Fo.length-1)},getSubGraphs:function(){return Fo},destructLink:function(t,e){var r,a=function(c){var u=c.trim(),f=u.slice(0,-1),y="arrow_open";switch(u.slice(-1)){case"x":y="arrow_cross",u[0]==="x"&&(y="double_"+y,f=f.slice(1));break;case">":y="arrow_point",u[0]==="<"&&(y="double_"+y,f=f.slice(1));break;case"o":y="arrow_circle",u[0]==="o"&&(y="double_"+y,f=f.slice(1))}var w="normal",x=f.length-1;f[0]==="="&&(w="thick");var D=function(j,P){for(var W=P.length,ot=0,tt=0;tt<W;++tt)P[tt]==="."&&++ot;return ot}(0,f);return D&&(w="dotted",x=D),{type:y,stroke:w,length:x}}(t);if(e){if(r=function(c){var u=c.trim(),f="arrow_open";switch(u[0]){case"<":f="arrow_point",u=u.slice(1);break;case"x":f="arrow_cross",u=u.slice(1);break;case"o":f="arrow_circle",u=u.slice(1)}var y="normal";return u.indexOf("=")!==-1&&(y="thick"),u.indexOf(".")!==-1&&(y="dotted"),{type:f,stroke:y}}(e),r.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=a.type;else{if(r.type!==a.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=a.length,r}return a},lex:{firstGraph:function(){return!!Gd&&(Gd=!1,!0)}},exists:P3,makeUniq:j3};var Kd=h(3602),Jd=h.n(Kd),u_=h(4949),Va=h.n(u_),l_=h(8284),Y3=h.n(l_);function h_(t,e,r){var a=.9*(e.width+e.height),c=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],u=qi(t,a,a,c);return r.intersect=function(f){return Va().intersect.polygon(r,c,f)},u}function z3(t,e,r){var a=e.height,c=a/4,u=e.width+2*c,f=[{x:c,y:0},{x:u-c,y:0},{x:u,y:-a/2},{x:u-c,y:-a},{x:c,y:-a},{x:0,y:-a/2}],y=qi(t,u,a,f);return r.intersect=function(w){return Va().intersect.polygon(r,f,w)},y}function S2(t,e,r){var a=e.width,c=e.height,u=[{x:-c/2,y:0},{x:a,y:0},{x:a,y:-c},{x:-c/2,y:-c},{x:0,y:-c/2}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function f_(t,e,r){var a=e.width,c=e.height,u=[{x:-2*c/6,y:0},{x:a-c/6,y:0},{x:a+2*c/6,y:-c},{x:c/6,y:-c}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function d_(t,e,r){var a=e.width,c=e.height,u=[{x:2*c/6,y:0},{x:a+c/6,y:0},{x:a-2*c/6,y:-c},{x:-c/6,y:-c}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function ar(t,e,r){var a=e.width,c=e.height,u=[{x:-2*c/6,y:0},{x:a+2*c/6,y:0},{x:a-c/6,y:-c},{x:c/6,y:-c}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function U3(t,e,r){var a=e.width,c=e.height,u=[{x:c/6,y:0},{x:a-c/6,y:0},{x:a+2*c/6,y:-c},{x:-2*c/6,y:-c}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function ra(t,e,r){var a=e.width,c=e.height,u=[{x:0,y:0},{x:a+c/2,y:0},{x:a,y:-c/2},{x:a+c/2,y:-c},{x:0,y:-c}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function su(t,e,r){var a=e.height,c=e.width+a/4,u=t.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-c/2).attr("y",-a/2).attr("width",c).attr("height",a);return r.intersect=function(f){return Va().intersect.rect(r,f)},u}function p_(t,e,r){var a=e.width,c=e.height,u=[{x:0,y:0},{x:a,y:0},{x:a,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-c},{x:-8,y:-c},{x:-8,y:0}],f=qi(t,a,c,u);return r.intersect=function(y){return Va().intersect.polygon(r,u,y)},f}function A2(t,e,r){var a=e.width,c=a/2,u=c/(2.5+a/50),f=e.height+u,y="M 0,"+u+" a "+c+","+u+" 0,0,0 "+a+" 0 a "+c+","+u+" 0,0,0 "+-a+" 0 l 0,"+f+" a "+c+","+u+" 0,0,0 "+a+" 0 l 0,"+-f,w=t.attr("label-offset-y",u).insert("path",":first-child").attr("d",y).attr("transform","translate("+-a/2+","+-(f/2+u)+")");return r.intersect=function(x){var D=Va().intersect.rect(r,x),j=D.x-r.x;if(c!=0&&(Math.abs(j)<r.width/2||Math.abs(j)==r.width/2&&Math.abs(D.y-r.y)>r.height/2-u)){var P=u*u*(1-j*j/(c*c));P!=0&&(P=Math.sqrt(P)),P=u-P,x.y-r.y>0&&(P=-P),D.y+=P}return D},w}function qi(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(c){return c.x+","+c.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const bl=function(t){t.shapes().question=h_,t.shapes().hexagon=z3,t.shapes().stadium=su,t.shapes().subroutine=p_,t.shapes().cylinder=A2,t.shapes().rect_left_inv_arrow=S2,t.shapes().lean_right=f_,t.shapes().lean_left=d_,t.shapes().trapezoid=ar,t.shapes().inv_trapezoid=U3,t.shapes().rect_right_inv_arrow=ra};var Ki={};const js=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ki[e[r]]=t[e[r]]},t0=function(t,e){g.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-1");var r=Jd().parser;r.yy=rr;var a,c=Jt().securityLevel;c==="sandbox"&&(a=Se("#i"+e));var u=Se(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),f=c==="sandbox"?a.nodes()[0].contentDocument:document;r.parse(t);var y=rr.getDirection();y===void 0&&(y="TD");for(var w,x=Jt().flowchart,D=x.nodeSpacing||50,j=x.rankSpacing||50,P=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:y,nodesep:D,ranksep:j,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),W=rr.getSubGraphs(),ot=W.length-1;ot>=0;ot--)w=W[ot],rr.addVertex(w.id,w.title,"group",void 0,w.classes);var tt=rr.getVertices();g.warn("Get vertices",tt);var gt=rr.getEdges(),ht=0;for(ht=W.length-1;ht>=0;ht--){w=W[ht],nc("cluster").append("text");for(var wt=0;wt<w.nodes.length;wt++)g.warn("Setting subgraph",w.nodes[wt],rr.lookUpDomId(w.nodes[wt]),rr.lookUpDomId(w.id)),P.setParent(rr.lookUpDomId(w.nodes[wt]),rr.lookUpDomId(w.id))}(function(Fe,Je,yn,He,fr){Jt().securityLevel;var Er=He?He.select('[id="'.concat(yn,'"]')):Se('[id="'.concat(yn,'"]')),Bn=fr||document;Object.keys(Fe).forEach(function(qr){var hr=Fe[qr],pn="default";hr.classes.length>0&&(pn=hr.classes.join(" "));var On,mr=mc(hr.styles),Oa=hr.text!==void 0?hr.text:hr.id;if(xi(Jt().flowchart.htmlLabels)){var ka={label:Oa.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Bf){return"<i class='".concat(Bf.replace(":"," "),"'></i>")})};(On=Y3()(Er,ka).node()).parentNode.removeChild(On)}else{var Qn=Bn.createElementNS("http://www.w3.org/2000/svg","text");Qn.setAttribute("style",mr.labelStyle.replace("color:","fill:"));for(var Nn=Oa.split(lr.lineBreakRegex),to=0;to<Nn.length;to++){var fo=Bn.createElementNS("http://www.w3.org/2000/svg","tspan");fo.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),fo.setAttribute("dy","1em"),fo.setAttribute("x","1"),fo.textContent=Nn[to],Qn.appendChild(fo)}On=Qn}var zo=0,_i="";switch(hr.type){case"round":zo=5,_i="rect";break;case"square":case"group":default:_i="rect";break;case"diamond":_i="question";break;case"hexagon":_i="hexagon";break;case"odd":case"odd_right":_i="rect_left_inv_arrow";break;case"lean_right":_i="lean_right";break;case"lean_left":_i="lean_left";break;case"trapezoid":_i="trapezoid";break;case"inv_trapezoid":_i="inv_trapezoid";break;case"circle":_i="circle";break;case"ellipse":_i="ellipse";break;case"stadium":_i="stadium";break;case"subroutine":_i="subroutine";break;case"cylinder":_i="cylinder"}g.warn("Adding node",hr.id,hr.domId),Je.setNode(rr.lookUpDomId(hr.id),{labelType:"svg",labelStyle:mr.labelStyle,shape:_i,label:On,rx:zo,ry:zo,class:pn,style:mr.style,id:rr.lookUpDomId(hr.id)})})})(tt,P,e,u,f),function(Fe,Je){var yn,He,fr=0;if(Fe.defaultStyle!==void 0){var Er=mc(Fe.defaultStyle);yn=Er.style,He=Er.labelStyle}Fe.forEach(function(Bn){fr++;var qr="L-"+Bn.start+"-"+Bn.end,hr="LS-"+Bn.start,pn="LE-"+Bn.end,On={};Bn.type==="arrow_open"?On.arrowhead="none":On.arrowhead="normal";var mr="",Oa="";if(Bn.style!==void 0){var ka=mc(Bn.style);mr=ka.style,Oa=ka.labelStyle}else switch(Bn.stroke){case"normal":mr="fill:none",yn!==void 0&&(mr=yn),He!==void 0&&(Oa=He);break;case"dotted":mr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":mr=" stroke-width: 3.5px;fill:none"}On.style=mr,On.labelStyle=Oa,Bn.interpolate!==void 0?On.curve=Io(Bn.interpolate,ao):Fe.defaultInterpolate!==void 0?On.curve=Io(Fe.defaultInterpolate,ao):On.curve=Io(Ki.curve,ao),Bn.text===void 0?Bn.style!==void 0&&(On.arrowheadStyle="fill: #333"):(On.arrowheadStyle="fill: #333",On.labelpos="c",xi(Jt().flowchart.htmlLabels)?(On.labelType="html",On.label='<span id="L-'.concat(qr,'" class="edgeLabel L-').concat(hr,"' L-").concat(pn,'">').concat(Bn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Qn){return"<i class='".concat(Qn.replace(":"," "),"'></i>")}),"</span>")):(On.labelType="text",On.label=Bn.text.replace(lr.lineBreakRegex,`
`),Bn.style===void 0&&(On.style=On.style||"stroke: #333; stroke-width: 1.5px;fill:none"),On.labelStyle=On.labelStyle.replace("color:","fill:"))),On.id=qr,On.class=hr+" "+pn,On.minlen=Bn.length||1,Je.setEdge(rr.lookUpDomId(Bn.start),rr.lookUpDomId(Bn.end),On,fr)})}(gt,P);var Tt=new(Va()).render;bl(Tt),Tt.arrows().none=function(Fe,Je,yn,He){var fr=Fe.append("marker").attr("id",Je).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");Va().util.applyStyle(fr,yn[He+"Style"])},Tt.arrows().normal=function(Fe,Je){Fe.append("marker").attr("id",Je).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")};var Ft=u.select('[id="'.concat(e,'"]'));Ft.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),g.warn(P);var Gt=u.select("#"+e+" g");Tt(Gt,P),Gt.selectAll("g.node").attr("title",function(){return rr.getTooltip(this.id)});var Et=x.diagramPadding,ee=Ft.node().getBBox(),re=ee.width+2*Et,kt=ee.height+2*Et;$a(Ft,kt,re,x.useMaxWidth);var Lt="".concat(ee.x-Et," ").concat(ee.y-Et," ").concat(re," ").concat(kt);for(g.debug("viewBox ".concat(Lt)),Ft.attr("viewBox",Lt),rr.indexNodes("subGraph"+ht),ht=0;ht<W.length;ht++)if((w=W[ht]).title!=="undefined"){var Ct=f.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(w.id)+'"] rect'),yt=f.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(w.id)+'"]'),Rt=Ct[0].x.baseVal.value,bt=Ct[0].y.baseVal.value,xe=Ct[0].width.baseVal.value,Te=Se(yt[0]).select(".label");Te.attr("transform","translate(".concat(Rt+xe/2,", ").concat(bt+14,")")),Te.attr("id",e+"Text");for(var Ut=0;Ut<w.classes.length;Ut++)yt[0].classList.add(w.classes[Ut])}xi(x.htmlLabels);for(var Ee=f.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Ce=0;Ce<Ee.length;Ce++){var _e=Ee[Ce],fe=_e.getBBox(),je=f.createElementNS("http://www.w3.org/2000/svg","rect");je.setAttribute("rx",0),je.setAttribute("ry",0),je.setAttribute("width",fe.width),je.setAttribute("height",fe.height),_e.insertBefore(je,_e.firstChild)}Object.keys(tt).forEach(function(Fe){var Je=tt[Fe];if(Je.link){var yn=u.select("#"+e+' [id="'+rr.lookUpDomId(Fe)+'"]');if(yn){var He=f.createElementNS("http://www.w3.org/2000/svg","a");He.setAttributeNS("http://www.w3.org/2000/svg","class",Je.classes.join(" ")),He.setAttributeNS("http://www.w3.org/2000/svg","href",Je.link),He.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),c==="sandbox"?He.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Je.linkTarget&&He.setAttributeNS("http://www.w3.org/2000/svg","target",Je.linkTarget);var fr=yn.insert(function(){return He},":first-child"),Er=yn.select(".label-container");Er&&fr.append(function(){return Er.node()});var Bn=yn.select(".label");Bn&&fr.append(function(){return Bn.node()})}}})};var Ys={};const q3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ys[e[r]]=t[e[r]]},H3=function(t,e){g.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-2");var r=Jd().parser;r.yy=rr,r.parse(t);var a=rr.getDirection();a===void 0&&(a="TD");var c,u=Jt().flowchart,f=u.nodeSpacing||50,y=u.rankSpacing||50,w=Jt().securityLevel;w==="sandbox"&&(c=Se("#i"+e));var x,D=Se(w==="sandbox"?c.nodes()[0].contentDocument.body:"body"),j=w==="sandbox"?c.nodes()[0].contentDocument:document,P=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:f,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),W=rr.getSubGraphs();g.info("Subgraphs - ",W);for(var ot=W.length-1;ot>=0;ot--)x=W[ot],g.info("Subgraph - ",x),rr.addVertex(x.id,x.title,"group",void 0,x.classes,x.dir);var tt=rr.getVertices(),gt=rr.getEdges();g.info(gt);var ht=0;for(ht=W.length-1;ht>=0;ht--){x=W[ht],nc("cluster").append("text");for(var wt=0;wt<x.nodes.length;wt++)g.info("Setting up subgraphs",x.nodes[wt],x.id),P.setParent(x.nodes[wt],x.id)}(function(bt,xe,Te,Ut,Ee){var Ce=Ut.select('[id="'.concat(Te,'"]'));Object.keys(bt).forEach(function(_e){var fe=bt[_e],je="default";fe.classes.length>0&&(je=fe.classes.join(" "));var Fe,Je=mc(fe.styles),yn=fe.text!==void 0?fe.text:fe.id;if(xi(Jt().flowchart.htmlLabels)){var He={label:yn.replace(/fa[lrsb]?:fa-[\w-]+/g,function(On){return"<i class='".concat(On.replace(":"," "),"'></i>")})};(Fe=Y3()(Ce,He).node()).parentNode.removeChild(Fe)}else{var fr=Ee.createElementNS("http://www.w3.org/2000/svg","text");fr.setAttribute("style",Je.labelStyle.replace("color:","fill:"));for(var Er=yn.split(lr.lineBreakRegex),Bn=0;Bn<Er.length;Bn++){var qr=Ee.createElementNS("http://www.w3.org/2000/svg","tspan");qr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),qr.setAttribute("dy","1em"),qr.setAttribute("x","1"),qr.textContent=Er[Bn],fr.appendChild(qr)}Fe=fr}var hr=0,pn="";switch(fe.type){case"round":hr=5,pn="rect";break;case"square":case"group":default:pn="rect";break;case"diamond":pn="question";break;case"hexagon":pn="hexagon";break;case"odd":case"odd_right":pn="rect_left_inv_arrow";break;case"lean_right":pn="lean_right";break;case"lean_left":pn="lean_left";break;case"trapezoid":pn="trapezoid";break;case"inv_trapezoid":pn="inv_trapezoid";break;case"circle":pn="circle";break;case"ellipse":pn="ellipse";break;case"stadium":pn="stadium";break;case"subroutine":pn="subroutine";break;case"cylinder":pn="cylinder"}xe.setNode(fe.id,{labelStyle:Je.labelStyle,shape:pn,labelText:yn,rx:hr,ry:hr,class:je,style:Je.style,id:fe.id,link:fe.link,linkTarget:fe.linkTarget,tooltip:rr.getTooltip(fe.id)||"",domId:rr.lookUpDomId(fe.id),haveCallback:fe.haveCallback,width:fe.type==="group"?500:void 0,dir:fe.dir,type:fe.type,props:fe.props,padding:Jt().flowchart.padding}),g.info("setNode",{labelStyle:Je.labelStyle,shape:pn,labelText:yn,rx:hr,ry:hr,class:je,style:Je.style,id:fe.id,domId:rr.lookUpDomId(fe.id),width:fe.type==="group"?500:void 0,type:fe.type,dir:fe.dir,props:fe.props,padding:Jt().flowchart.padding})})})(tt,P,e,D,j),function(bt,xe){g.info("abc78 edges = ",bt);var Te,Ut,Ee=0,Ce={};if(bt.defaultStyle!==void 0){var _e=mc(bt.defaultStyle);Te=_e.style,Ut=_e.labelStyle}bt.forEach(function(fe){Ee++;var je="L-"+fe.start+"-"+fe.end;Ce[je]===void 0?(Ce[je]=0,g.info("abc78 new entry",je,Ce[je])):(Ce[je]++,g.info("abc78 new entry",je,Ce[je]));var Fe=je+"-"+Ce[je];g.info("abc78 new link id to be used is",je,Fe,Ce[je]);var Je="LS-"+fe.start,yn="LE-"+fe.end,He={style:"",labelStyle:""};switch(He.minlen=fe.length||1,fe.type==="arrow_open"?He.arrowhead="none":He.arrowhead="normal",He.arrowTypeStart="arrow_open",He.arrowTypeEnd="arrow_open",fe.type){case"double_arrow_cross":He.arrowTypeStart="arrow_cross";case"arrow_cross":He.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":He.arrowTypeStart="arrow_point";case"arrow_point":He.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":He.arrowTypeStart="arrow_circle";case"arrow_circle":He.arrowTypeEnd="arrow_circle"}var fr="",Er="";switch(fe.stroke){case"normal":fr="fill:none;",Te!==void 0&&(fr=Te),Ut!==void 0&&(Er=Ut),He.thickness="normal",He.pattern="solid";break;case"dotted":He.thickness="normal",He.pattern="dotted",He.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":He.thickness="thick",He.pattern="solid",He.style="stroke-width: 3.5px;fill:none;"}if(fe.style!==void 0){var Bn=mc(fe.style);fr=Bn.style,Er=Bn.labelStyle}He.style=He.style+=fr,He.labelStyle=He.labelStyle+=Er,fe.interpolate!==void 0?He.curve=Io(fe.interpolate,ao):bt.defaultInterpolate!==void 0?He.curve=Io(bt.defaultInterpolate,ao):He.curve=Io(Ys.curve,ao),fe.text===void 0?fe.style!==void 0&&(He.arrowheadStyle="fill: #333"):(He.arrowheadStyle="fill: #333",He.labelpos="c"),He.labelType="text",He.label=fe.text.replace(lr.lineBreakRegex,`
`),fe.style===void 0&&(He.style=He.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),He.labelStyle=He.labelStyle.replace("color:","fill:"),He.id=Fe,He.classes="flowchart-link "+Je+" "+yn,xe.setEdge(fe.start,fe.end,He,Ee)})}(gt,P);var Tt=D.select('[id="'.concat(e,'"]'));Tt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var Ft=D.select("#"+e+" g");m2(Ft,P,["point","circle","cross"],"flowchart",e);var Gt=u.diagramPadding,Et=Tt.node().getBBox(),ee=Et.width+2*Gt,re=Et.height+2*Gt;if(g.debug("new ViewBox 0 0 ".concat(ee," ").concat(re),"translate(".concat(Gt-P._label.marginx,", ").concat(Gt-P._label.marginy,")")),$a(Tt,re,ee,u.useMaxWidth),Tt.attr("viewBox","0 0 ".concat(ee," ").concat(re)),Tt.select("g").attr("transform","translate(".concat(Gt-P._label.marginx,", ").concat(Gt-Et.y,")")),rr.indexNodes("subGraph"+ht),!u.htmlLabels)for(var kt=j.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Lt=0;Lt<kt.length;Lt++){var Ct=kt[Lt],yt=Ct.getBBox(),Rt=j.createElementNS("http://www.w3.org/2000/svg","rect");Rt.setAttribute("rx",0),Rt.setAttribute("ry",0),Rt.setAttribute("width",yt.width),Rt.setAttribute("height",yt.height),Ct.insertBefore(Rt,Ct.firstChild)}Object.keys(tt).forEach(function(bt){var xe=tt[bt];if(xe.link){var Te=Se("#"+e+' [id="'+bt+'"]');if(Te){var Ut=j.createElementNS("http://www.w3.org/2000/svg","a");Ut.setAttributeNS("http://www.w3.org/2000/svg","class",xe.classes.join(" ")),Ut.setAttributeNS("http://www.w3.org/2000/svg","href",xe.link),Ut.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?Ut.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):xe.linkTarget&&Ut.setAttributeNS("http://www.w3.org/2000/svg","target",xe.linkTarget);var Ee=Te.insert(function(){return Ut},":first-child"),Ce=Te.select(".label-container");Ce&&Ee.append(function(){return Ce.node()});var _e=Te.select(".label");_e&&Ee.append(function(){return _e.node()})}}})};function M2(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}var N2,e0,cs="",D2="",O2="",_c=[],uf=[],n0={},_l="",lf=[],hf=[],xc="",B2=["active","done","crit","milestone"],r0=[],ff=!1,L2=!1,i0=0,I2=function(t,e,r,a){return!(a.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&r.indexOf("weekends")>=0||r.indexOf(t.format("dddd").toLowerCase())>=0||r.indexOf(t.format(e.trim()))>=0)},a0=function(t,e,r,a){if(r.length&&!t.manualEndTime){var c=d()(t.startTime,e,!0);c.add(1,"d");var u=d()(t.endTime,e,!0),f=df(c,u,e,r,a);t.endTime=u.toDate(),t.renderEndTime=f}},df=function(t,e,r,a,c){for(var u=!1,f=null;t<=e;)u||(f=e.toDate()),(u=I2(t,r,a,c))&&e.add(1,"d"),t.add(1,"d");return f},o0=function(t,e,r){r=r.trim();var a=/^after\s+([\d\w- ]+)/.exec(r.trim());if(a!==null){var c=null;if(a[1].split(" ").forEach(function(y){var w=kl(y);w!==void 0&&(c?w.endTime>c.endTime&&(c=w):c=w)}),c)return c.endTime;var u=new Date;return u.setHours(0,0,0,0),u}var f=d()(r,e.trim(),!0);return f.isValid()?f.toDate():(g.debug("Invalid date:"+r),g.debug("With date format:"+e.trim()),new Date)},R2=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},xl=function(t,e,r,a){a=a||!1,r=r.trim();var c=d()(r,e.trim(),!0);return c.isValid()?(a&&c.add(1,"d"),c.toDate()):R2(/^([\d]+)([wdhms])/.exec(r.trim()),d()(t))},s0=0,wl=function(t){return t===void 0?"task"+(s0+=1):t},Ti=[],c0={},kl=function(t){var e=c0[t];return Ti[e]},W3=function(){for(var t=function(a){var c=Ti[a],u="";switch(Ti[a].raw.startTime.type){case"prevTaskEnd":var f=kl(c.prevTaskId);c.startTime=f.endTime;break;case"getStartDate":(u=o0(0,cs,Ti[a].raw.startTime.startData))&&(Ti[a].startTime=u)}return Ti[a].startTime&&(Ti[a].endTime=xl(Ti[a].startTime,cs,Ti[a].raw.endTime.data,ff),Ti[a].endTime&&(Ti[a].processed=!0,Ti[a].manualEndTime=d()(Ti[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),a0(Ti[a],cs,uf,_c))),Ti[a].processed},e=!0,r=0;r<Ti.length;r++)t(r),e=e&&Ti[r].processed;return e},$3=function(t,e){t.split(",").forEach(function(r){var a=kl(r);a!==void 0&&a.classes.push(e)})},V3=function(t,e){r0.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),r0.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const Tl={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().gantt},clear:function(){lf=[],hf=[],xc="",r0=[],_l="",s0=0,N2=void 0,e0=void 0,Ti=[],cs="",D2="",O2="",_c=[],uf=[],ff=!1,L2=!1,i0=0,n0={}},setDateFormat:function(t){cs=t},getDateFormat:function(){return cs},enableInclusiveEndDates:function(){ff=!0},endDatesAreInclusive:function(){return ff},enableTopAxis:function(){L2=!0},topAxisEnabled:function(){return L2},setAxisFormat:function(t){D2=t},getAxisFormat:function(){return D2},setTodayMarker:function(t){O2=t},getTodayMarker:function(){return O2},setTitle:function(t){_l=t},getTitle:function(){return _l},addSection:function(t){xc=t,lf.push(t)},getSections:function(){return lf},getTasks:function(){for(var t=W3(),e=0;!t&&e<10;)t=W3(),e++;return hf=Ti},addTask:function(t,e){var r={section:xc,type:xc,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},a=function(u,f){var y=(f.substr(0,1)===":"?f.substr(1,f.length):f).split(","),w={};G3(y,w,B2);for(var x=0;x<y.length;x++)y[x]=y[x].trim();switch(y.length){case 1:w.id=wl(),w.startTime={type:"prevTaskEnd",id:u},w.endTime={data:y[0]};break;case 2:w.id=wl(),w.startTime={type:"getStartDate",startData:y[0]},w.endTime={data:y[1]};break;case 3:w.id=wl(y[0]),w.startTime={type:"getStartDate",startData:y[1]},w.endTime={data:y[2]}}return w}(e0,e);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=e0,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.order=i0,i0++;var c=Ti.push(r);e0=r.id,c0[r.id]=c-1},findTaskById:kl,addTaskOrg:function(t,e){var r={section:xc,type:xc,description:t,task:t,classes:[]},a=function(c,u){var f=(u.substr(0,1)===":"?u.substr(1,u.length):u).split(","),y={};G3(f,y,B2);for(var w=0;w<f.length;w++)f[w]=f[w].trim();var x="";switch(f.length){case 1:y.id=wl(),y.startTime=c.endTime,x=f[0];break;case 2:y.id=wl(),y.startTime=o0(0,cs,f[0]),x=f[1];break;case 3:y.id=wl(f[0]),y.startTime=o0(0,cs,f[1]),x=f[2]}return x&&(y.endTime=xl(y.startTime,cs,x,ff),y.manualEndTime=d()(x,"YYYY-MM-DD",!0).isValid(),a0(y,cs,uf,_c)),y}(N2,e);r.startTime=a.startTime,r.endTime=a.endTime,r.id=a.id,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,N2=r,hf.push(r)},setIncludes:function(t){_c=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return _c},setExcludes:function(t){uf=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return uf},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,f){if(Jt().securityLevel==="loose"&&u!==void 0){var y=[];if(typeof f=="string"){y=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var w=0;w<y.length;w++){var x=y[w].trim();x.charAt(0)==='"'&&x.charAt(x.length-1)==='"'&&(x=x.substr(1,x.length-2)),y[w]=x}}y.length===0&&y.push(c),kl(c)!==void 0&&V3(c,function(){var D;Zn.runFunc.apply(Zn,[u].concat(function(j){if(Array.isArray(j))return M2(j)}(D=y)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(D)||function(j,P){if(j){if(typeof j=="string")return M2(j,P);var W=Object.prototype.toString.call(j).slice(8,-1);return W==="Object"&&j.constructor&&(W=j.constructor.name),W==="Map"||W==="Set"?Array.from(j):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?M2(j,P):void 0}}(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(a,e,r)}),$3(t,"clickable")},setLink:function(t,e){var r=e;Jt().securityLevel!=="loose"&&(r=(0,Kc.sanitizeUrl)(e)),t.split(",").forEach(function(a){kl(a)!==void 0&&(V3(a,function(){window.open(r,"_self")}),n0[a]=r)}),$3(t,"clickable")},getLinks:function(){return n0},bindFunctions:function(t){r0.forEach(function(e){e(t)})},durationToDate:R2,isInvalidDate:I2};function G3(t,e,r){for(var a=!0;a;)a=!1,r.forEach(function(c){var u=new RegExp("^\\s*"+c+"\\s*$");t[0].match(u)&&(e[c]=!0,t.shift(1),a=!0)})}var us,Ga=h(9959),X3=h.n(Ga);Ga.parser.yy=Tl;const g_=function(t,e){var r=Jt().gantt;Ga.parser.yy.clear(),Ga.parser.parse(t);var a,c=Jt().securityLevel;c==="sandbox"&&(a=Se("#i"+e));var u=Se(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),f=c==="sandbox"?a.nodes()[0].contentDocument:document,y=f.getElementById(e);(us=y.parentElement.offsetWidth)===void 0&&(us=1200),r.useWidth!==void 0&&(us=r.useWidth);var w=Ga.parser.yy.getTasks(),x=w.length*(r.barHeight+r.barGap)+2*r.topPadding;y.setAttribute("viewBox","0 0 "+us+" "+x);for(var D=u.select('[id="'.concat(e,'"]')),j=function(){return bs.apply(Gy(Ty,zb,ks,lp,a1,Au,i1,Zl,Su,Ey).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([I(w,function(tt){return tt.startTime}),A(w,function(tt){return tt.endTime})]).rangeRound([0,us-r.leftPadding-r.rightPadding]),P=[],W=0;W<w.length;W++)P.push(w[W].type);var ot=P;P=function(tt){for(var gt={},ht=[],wt=0,Tt=tt.length;wt<Tt;++wt)Object.prototype.hasOwnProperty.call(gt,tt[wt])||(gt[tt[wt]]=!0,ht.push(tt[wt]));return ht}(P),w.sort(function(tt,gt){var ht=tt.startTime,wt=gt.startTime,Tt=0;return ht>wt?Tt=1:ht<wt&&(Tt=-1),Tt}),function(tt,gt,ht){var wt=r.barHeight,Tt=wt+r.barGap,Ft=r.topPadding,Gt=r.leftPadding;vy().domain([0,P.length]).range(["#00B9FA","#F95002"]).interpolate(Mb),function(Et,ee,re,kt,Lt,Ct,yt,Rt){var bt=Ct.reduce(function(_e,fe){var je=fe.startTime;return _e?Math.min(_e,je):je},0),xe=Ct.reduce(function(_e,fe){var je=fe.endTime;return _e?Math.max(_e,je):je},0),Te=Ga.parser.yy.getDateFormat();if(bt&&xe){for(var Ut=[],Ee=null,Ce=d()(bt);Ce.valueOf()<=xe;)Ga.parser.yy.isInvalidDate(Ce,Te,yt,Rt)?Ee?Ee.end=Ce.clone():Ee={start:Ce.clone(),end:Ce.clone()}:Ee&&(Ut.push(Ee),Ee=null),Ce.add(1,"d");D.append("g").selectAll("rect").data(Ut).enter().append("rect").attr("id",function(_e){return"exclude-"+_e.start.format("YYYY-MM-DD")}).attr("x",function(_e){return j(_e.start)+re}).attr("y",r.gridLineStartPadding).attr("width",function(_e){var fe=_e.end.clone().add(1,"day");return j(fe)-j(_e.start)}).attr("height",Lt-ee-r.gridLineStartPadding).attr("transform-origin",function(_e,fe){return(j(_e.start)+re+.5*(j(_e.end)-j(_e.start))).toString()+"px "+(fe*Et+.5*Lt).toString()+"px"}).attr("class","exclude-range")}}(Tt,Ft,Gt,0,ht,tt,Ga.parser.yy.getExcludes(),Ga.parser.yy.getIncludes()),function(Et,ee,re,kt){var Lt,Ct=(Lt=j,lt(3,Lt)).tickSize(-kt+ee+r.gridLineStartPadding).tickFormat(qa(Ga.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(D.append("g").attr("class","grid").attr("transform","translate("+Et+", "+(kt-50)+")").call(Ct).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Tl.topAxisEnabled()||r.topAxis){var yt=function(Rt){return lt(1,Rt)}(j).tickSize(-kt+ee+r.gridLineStartPadding).tickFormat(qa(Ga.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));D.append("g").attr("class","grid").attr("transform","translate("+Et+", "+ee+")").call(yt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(Gt,Ft,0,ht),function(Et,ee,re,kt,Lt,Ct,yt){D.append("g").selectAll("rect").data(Et).enter().append("rect").attr("x",0).attr("y",function(Ut,Ee){return Ut.order*ee+re-2}).attr("width",function(){return yt-r.rightPadding/2}).attr("height",ee).attr("class",function(Ut){for(var Ee=0;Ee<P.length;Ee++)if(Ut.type===P[Ee])return"section section"+Ee%r.numberSectionStyles;return"section section0"});var Rt=D.append("g").selectAll("rect").data(Et).enter(),bt=Tl.getLinks();if(Rt.append("rect").attr("id",function(Ut){return Ut.id}).attr("rx",3).attr("ry",3).attr("x",function(Ut){return Ut.milestone?j(Ut.startTime)+kt+.5*(j(Ut.endTime)-j(Ut.startTime))-.5*Lt:j(Ut.startTime)+kt}).attr("y",function(Ut,Ee){return Ut.order*ee+re}).attr("width",function(Ut){return Ut.milestone?Lt:j(Ut.renderEndTime||Ut.endTime)-j(Ut.startTime)}).attr("height",Lt).attr("transform-origin",function(Ut,Ee){return Ee=Ut.order,(j(Ut.startTime)+kt+.5*(j(Ut.endTime)-j(Ut.startTime))).toString()+"px "+(Ee*ee+re+.5*Lt).toString()+"px"}).attr("class",function(Ut){var Ee="";Ut.classes.length>0&&(Ee=Ut.classes.join(" "));for(var Ce=0,_e=0;_e<P.length;_e++)Ut.type===P[_e]&&(Ce=_e%r.numberSectionStyles);var fe="";return Ut.active?Ut.crit?fe+=" activeCrit":fe=" active":Ut.done?fe=Ut.crit?" doneCrit":" done":Ut.crit&&(fe+=" crit"),fe.length===0&&(fe=" task"),Ut.milestone&&(fe=" milestone "+fe),"task"+(fe+=Ce)+" "+Ee}),Rt.append("text").attr("id",function(Ut){return Ut.id+"-text"}).text(function(Ut){return Ut.task}).attr("font-size",r.fontSize).attr("x",function(Ut){var Ee=j(Ut.startTime),Ce=j(Ut.renderEndTime||Ut.endTime);Ut.milestone&&(Ee+=.5*(j(Ut.endTime)-j(Ut.startTime))-.5*Lt),Ut.milestone&&(Ce=Ee+Lt);var _e=this.getBBox().width;return _e>Ce-Ee?Ce+_e+1.5*r.leftPadding>yt?Ee+kt-5:Ce+kt+5:(Ce-Ee)/2+Ee+kt}).attr("y",function(Ut,Ee){return Ut.order*ee+r.barHeight/2+(r.fontSize/2-2)+re}).attr("text-height",Lt).attr("class",function(Ut){var Ee=j(Ut.startTime),Ce=j(Ut.endTime);Ut.milestone&&(Ce=Ee+Lt);var _e=this.getBBox().width,fe="";Ut.classes.length>0&&(fe=Ut.classes.join(" "));for(var je=0,Fe=0;Fe<P.length;Fe++)Ut.type===P[Fe]&&(je=Fe%r.numberSectionStyles);var Je="";return Ut.active&&(Je=Ut.crit?"activeCritText"+je:"activeText"+je),Ut.done?Je=Ut.crit?Je+" doneCritText"+je:Je+" doneText"+je:Ut.crit&&(Je=Je+" critText"+je),Ut.milestone&&(Je+=" milestoneText"),_e>Ce-Ee?Ce+_e+1.5*r.leftPadding>yt?fe+" taskTextOutsideLeft taskTextOutside"+je+" "+Je:fe+" taskTextOutsideRight taskTextOutside"+je+" "+Je+" width-"+_e:fe+" taskText taskText"+je+" "+Je+" width-"+_e}),Jt().securityLevel==="sandbox"){var xe;xe=Se("#i"+e),Se(xe.nodes()[0].contentDocument.body);var Te=xe.nodes()[0].contentDocument;Rt.filter(function(Ut){return bt[Ut.id]!==void 0}).each(function(Ut){var Ee=Te.querySelector("#"+Ut.id),Ce=Te.querySelector("#"+Ut.id+"-text"),_e=Ee.parentNode,fe=Te.createElement("a");fe.setAttribute("xlink:href",bt[Ut.id]),fe.setAttribute("target","_top"),_e.appendChild(fe),fe.appendChild(Ee),fe.appendChild(Ce)})}}(tt,Tt,Ft,Gt,wt,0,gt),function(Et,ee){for(var re=[],kt=0,Lt=0;Lt<P.length;Lt++)re[Lt]=[P[Lt],(Ct=P[Lt],yt=ot,function(Rt){for(var bt=Rt.length,xe={};bt;)xe[Rt[--bt]]=(xe[Rt[bt]]||0)+1;return xe}(yt)[Ct]||0)];var Ct,yt;D.append("g").selectAll("text").data(re).enter().append(function(Rt){var bt=Rt[0].split(lr.lineBreakRegex),xe=-(bt.length-1)/2,Te=f.createElementNS("http://www.w3.org/2000/svg","text");Te.setAttribute("dy",xe+"em");for(var Ut=0;Ut<bt.length;Ut++){var Ee=f.createElementNS("http://www.w3.org/2000/svg","tspan");Ee.setAttribute("alignment-baseline","central"),Ee.setAttribute("x","10"),Ut>0&&Ee.setAttribute("dy","1em"),Ee.textContent=bt[Ut],Te.appendChild(Ee)}return Te}).attr("x",10).attr("y",function(Rt,bt){if(!(bt>0))return Rt[1]*Et/2+ee;for(var xe=0;xe<bt;xe++)return kt+=re[bt-1][1],Rt[1]*Et/2+kt*Et+ee}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(Rt){for(var bt=0;bt<P.length;bt++)if(Rt[0]===P[bt])return"sectionTitle sectionTitle"+bt%r.numberSectionStyles;return"sectionTitle"})}(Tt,Ft),function(Et,ee,re,kt){var Lt=Tl.getTodayMarker();if(Lt!=="off"){var Ct=D.append("g").attr("class","today"),yt=new Date,Rt=Ct.append("line");Rt.attr("x1",j(yt)+Et).attr("x2",j(yt)+Et).attr("y1",r.titleTopMargin).attr("y2",kt-r.titleTopMargin).attr("class","today"),Lt!==""&&Rt.attr("style",Lt.replace(/,/g,";"))}}(Gt,0,0,ht)}(w,us,x),$a(D,x,us,r.useMaxWidth),D.append("text").text(Ga.parser.yy.getTitle()).attr("x",us/2).attr("y",r.titleTopMargin).attr("class","titleText")};var vi={},ia=null,Li={master:ia},ls="master",F2="LR",u0=0;function l0(){return t2({length:7})}function pf(t,e){g.debug("Entering isfastforwardable:",t.id,e.id);for(var r=0;t.seq<=e.seq&&t!==e&&r<1e3&&(r++,e.parent!=null);){if(Array.isArray(e.parent))return g.debug("In merge commit:",e.parent),pf(t,vi[e.parent[0]])||pf(t,vi[e.parent[1]]);e=vi[e.parent]}return g.debug(t.id,e.id),t.id===e.id}var Xa={};function Za(t,e,r){var a=t.indexOf(e);a===-1?t.push(r):t.splice(a,1,r)}function h0(t){var e=t.reduce(function(D,j){return D.seq>j.seq?D:j},t[0]),r="";t.forEach(function(D){r+=D===e?" *":" |"});var a,c,u,f=[r,e.id,e.seq];for(var y in Li)Li[y]===e.id&&f.push(y);if(g.debug(f.join(" ")),Array.isArray(e.parent)){var w=vi[e.parent[0]];Za(t,e,w),t.push(vi[e.parent[1]])}else{if(e.parent==null)return;var x=vi[e.parent];Za(t,e,x)}a=t,c=function(D){return D.id},u=Object.create(null),h0(t=a.reduce(function(D,j){var P=c(j);return u[P]||(u[P]=!0,D.push(j)),D},[]))}var Z3=function(){var t=Object.keys(vi).map(function(e){return vi[e]});return t.forEach(function(e){g.debug(e.id)}),t.sort(function(e,r){return r.seq-e.seq}),t};const cu={setDirection:function(t){F2=t},setOptions:function(t){g.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Xa=JSON.parse(t)}catch(e){g.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return Xa},commit:function(t){var e={id:l0(),message:t,seq:u0++,parent:ia==null?null:ia.id};ia=e,vi[e.id]=e,Li[ls]=e.id,g.debug("in pushCommit "+e.id)},branch:function(t){Li[t]=ia!=null?ia.id:null,g.debug("in createBranch")},merge:function(t){var e=vi[Li[ls]],r=vi[Li[t]];if(function(c,u){return c.seq>u.seq&&pf(u,c)}(e,r))g.debug("Already merged");else{if(pf(e,r))Li[ls]=Li[t],ia=vi[Li[ls]];else{var a={id:l0(),message:"merged branch "+t+" into "+ls,seq:u0++,parent:[ia==null?null:ia.id,Li[t]]};ia=a,vi[a.id]=a,Li[ls]=a.id}g.debug(Li),g.debug("in mergeBranch")}},checkout:function(t){g.debug("in checkout");var e=Li[ls=t];ia=vi[e]},reset:function(t){g.debug("in reset",t);var e=t.split(":")[0],r=parseInt(t.split(":")[1]),a=e==="HEAD"?ia:vi[Li[e]];for(g.debug(a,r);r>0;)if(r--,!(a=vi[a.parent])){var c="Critical error - unique parent commit not found during reset";throw g.error(c),c}ia=a,Li[ls]=a.id},prettyPrint:function(){g.debug(vi),h0([Z3()[0]])},clear:function(){vi={},Li={master:ia=null},ls="master",u0=0},getBranchesAsObjArray:function(){var t=[];for(var e in Li)t.push({name:e,commit:vi[Li[e]]});return t},getBranches:function(){return Li},getCommits:function(){return vi},getCommitsArray:Z3,getCurrentBranch:function(){return ls},getDirection:function(){return F2},getHead:function(){return ia}};var El,y_=h(2553),zs=h.n(y_),Po={},Wn={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},Q3={};function uu(t,e,r,a){var c=Io(a,Rr),u=Wn.branchColors[r%Wn.branchColors.length],f=oo().x(function(y){return Math.round(y.x)}).y(function(y){return Math.round(y.y)}).curve(c);t.append("svg:path").attr("d",f(e)).style("stroke",u).style("stroke-width",Wn.lineStrokeWidth).style("fill","none")}function K3(t,e){e=e||t.node().getBBox();var r=t.node().getCTM();return{left:r.e+e.x*r.a,top:r.f+e.y*r.d,width:e.width,height:e.height}}function f0(t,e,r,a,c){g.debug("svgDrawLineForCommits: ",e,r);var u=K3(t.select("#node-"+e+" circle")),f=K3(t.select("#node-"+r+" circle"));switch(a){case"LR":if(u.left-f.left>Wn.nodeSpacing){var y={x:u.left-Wn.nodeSpacing,y:f.top+f.height/2};uu(t,[y,{x:f.left+f.width,y:f.top+f.height/2}],c,"linear"),uu(t,[{x:u.left,y:u.top+u.height/2},{x:u.left-Wn.nodeSpacing/2,y:u.top+u.height/2},{x:u.left-Wn.nodeSpacing/2,y:y.y},y],c)}else uu(t,[{x:u.left,y:u.top+u.height/2},{x:u.left-Wn.nodeSpacing/2,y:u.top+u.height/2},{x:u.left-Wn.nodeSpacing/2,y:f.top+f.height/2},{x:f.left+f.width,y:f.top+f.height/2}],c);break;case"BT":if(f.top-u.top>Wn.nodeSpacing){var w={x:f.left+f.width/2,y:u.top+u.height+Wn.nodeSpacing};uu(t,[w,{x:f.left+f.width/2,y:f.top}],c,"linear"),uu(t,[{x:u.left+u.width/2,y:u.top+u.height},{x:u.left+u.width/2,y:u.top+u.height+Wn.nodeSpacing/2},{x:f.left+f.width/2,y:w.y-Wn.nodeSpacing/2},w],c)}else uu(t,[{x:u.left+u.width/2,y:u.top+u.height},{x:u.left+u.width/2,y:u.top+Wn.nodeSpacing/2},{x:f.left+f.width/2,y:f.top-Wn.nodeSpacing/2},{x:f.left+f.width/2,y:f.top}],c)}}function m_(t,e){return t.select(e).node().cloneNode(!0)}function d0(t,e,r,a){var c,u=Object.keys(Po).length;if(typeof e=="string"){var f=0;do{if(f++,c=Po[e],g.debug("in renderCommitHistory",c.id,c.seq),t.select("#node-"+e).size()>0)return;t.append(function(){return m_(t,"#def-commit")}).attr("class","commit").attr("id",function(){return"node-"+c.id}).attr("transform",function(){switch(a){case"LR":return"translate("+(c.seq*Wn.nodeSpacing+Wn.leftMargin)+", "+El*Wn.branchOffset+")";case"BT":return"translate("+(El*Wn.branchOffset+Wn.leftMargin)+", "+(u-c.seq)*Wn.nodeSpacing+")"}}).attr("fill",Wn.nodeFillColor).attr("stroke",Wn.nodeStrokeColor).attr("stroke-width",Wn.nodeStrokeWidth);var y=void 0;for(var w in r)if(r[w].commit===c){y=r[w];break}y&&(g.debug("found branch ",y.name),t.select("#node-"+c.id+" p").append("xhtml:span").attr("class","branch-label").text(y.name+", ")),t.select("#node-"+c.id+" p").append("xhtml:span").attr("class","commit-id").text(c.id),c.message!==""&&a==="BT"&&t.select("#node-"+c.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+c.message),e=c.parent}while(e&&Po[e]&&f<1e3)}Array.isArray(e)&&(g.debug("found merge commmit",e),d0(t,e[0],r,a),El++,d0(t,e[1],r,a),El--)}function J3(t,e,r,a){a=a||0;for(var c=0;e.seq>0&&!e.lineDrawn&&c<1e3;)c++,typeof e.parent=="string"?(f0(t,e.id,e.parent,r,a),e.lineDrawn=!0,e=Po[e.parent]):Array.isArray(e.parent)&&(f0(t,e.id,e.parent[0],r,a),f0(t,e.id,e.parent[1],r,a+1),J3(t,Po[e.parent[1]],r,a+1),e.lineDrawn=!0,e=Po[e.parent[0]])}const gf=function(t){Q3=t};var p0="",tb=!1;const g0={setMessage:function(t){g.debug("Setting message to: "+t),p0=t},getMessage:function(){return p0},setInfo:function(t){tb=t},getInfo:function(){return tb}};var v_=h(6765),y0=h.n(v_),b_={};const m0=function(t){Object.keys(t).forEach(function(e){b_[e]=t[e]})};var eb=h(7062),nb=h.n(eb),yf={},P2="",v0=!1;const j2={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().pie},addSection:function(t,e){yf[t]===void 0&&(yf[t]=e,g.debug("Added new section :",t))},getSections:function(){return yf},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){yf={},P2="",v0=!1},setTitle:function(t){P2=t},getTitle:function(){return P2},setShowData:function(t){v0=t},getShowData:function(){return v0}};var Us,qs=Jt();const rb=function(t,e){try{qs=Jt();var r=nb().parser;r.yy=j2,g.debug(`Rendering info diagram
`+t);var a,c=Jt().securityLevel;c==="sandbox"&&(a=Se("#i"+e));var u=Se(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),f=c==="sandbox"?a.nodes()[0].contentDocument:document;r.yy.clear(),r.parse(t),g.debug("Parsed info diagram");var y=f.getElementById(e);(Us=y.parentElement.offsetWidth)===void 0&&(Us=1200),qs.useWidth!==void 0&&(Us=qs.useWidth),qs.pie.useWidth!==void 0&&(Us=qs.pie.useWidth);var w=u.select("#"+e);$a(w,450,Us,qs.pie.useMaxWidth),y.setAttribute("viewBox","0 0 "+Us+" 450");var x=Math.min(Us,450)/2-40,D=w.append("g").attr("transform","translate("+Us/2+",225)"),j=j2.getSections(),P=0;Object.keys(j).forEach(function(Ft){P+=j[Ft]});var W=qs.themeVariables,ot=[W.pie1,W.pie2,W.pie3,W.pie4,W.pie5,W.pie6,W.pie7,W.pie8,W.pie9,W.pie10,W.pie11,W.pie12],tt=Zs().range(ot),gt=function(){var Ft=Pu,Gt=_1,Et=null,ee=_r(0),re=_r(ch),kt=_r(0);function Lt(Ct){var yt,Rt,bt,xe,Te,Ut=(Ct=pm(Ct)).length,Ee=0,Ce=new Array(Ut),_e=new Array(Ut),fe=+ee.apply(this,arguments),je=Math.min(ch,Math.max(-ch,re.apply(this,arguments)-fe)),Fe=Math.min(Math.abs(je)/Ut,kt.apply(this,arguments)),Je=Fe*(je<0?-1:1);for(yt=0;yt<Ut;++yt)(Te=_e[Ce[yt]=yt]=+Ft(Ct[yt],yt,Ct))>0&&(Ee+=Te);for(Gt!=null?Ce.sort(function(yn,He){return Gt(_e[yn],_e[He])}):Et!=null&&Ce.sort(function(yn,He){return Et(Ct[yn],Ct[He])}),yt=0,bt=Ee?(je-Ut*Je)/Ee:0;yt<Ut;++yt,fe=xe)Rt=Ce[yt],xe=fe+((Te=_e[Rt])>0?Te*bt:0)+Je,_e[Rt]={data:Ct[Rt],index:yt,value:Te,startAngle:fe,endAngle:xe,padAngle:Fe};return _e}return Lt.value=function(Ct){return arguments.length?(Ft=typeof Ct=="function"?Ct:_r(+Ct),Lt):Ft},Lt.sortValues=function(Ct){return arguments.length?(Gt=Ct,Et=null,Lt):Gt},Lt.sort=function(Ct){return arguments.length?(Et=Ct,Gt=null,Lt):Et},Lt.startAngle=function(Ct){return arguments.length?(ee=typeof Ct=="function"?Ct:_r(+Ct),Lt):ee},Lt.endAngle=function(Ct){return arguments.length?(re=typeof Ct=="function"?Ct:_r(+Ct),Lt):re},Lt.padAngle=function(Ct){return arguments.length?(kt=typeof Ct=="function"?Ct:_r(+Ct),Lt):kt},Lt}().value(function(Ft){return Ft[1]}),ht=gt(Object.entries(j)),wt=Bp().innerRadius(0).outerRadius(x);D.selectAll("mySlices").data(ht).enter().append("path").attr("d",wt).attr("fill",function(Ft){return tt(Ft.data[0])}).attr("class","pieCircle"),D.selectAll("mySlices").data(ht).enter().append("text").text(function(Ft){return(Ft.data[1]/P*100).toFixed(0)+"%"}).attr("transform",function(Ft){return"translate("+wt.centroid(Ft)+")"}).style("text-anchor","middle").attr("class","slice"),D.append("text").text(r.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Tt=D.selectAll(".legend").data(tt.domain()).enter().append("g").attr("class","legend").attr("transform",function(Ft,Gt){return"translate(216,"+(22*Gt-22*tt.domain().length/2)+")"});Tt.append("rect").attr("width",18).attr("height",18).style("fill",tt).style("stroke",tt),Tt.data(ht).append("text").attr("x",22).attr("y",14).text(function(Ft){return r.yy.getShowData()||qs.showData||qs.pie.showData?Ft.data[0]+" ["+Ft.data[1]+"]":Ft.data[0]})}catch(Ft){g.error("Error while rendering info diagram"),g.error(Ft)}};var mf=h(3176),ib=h.n(mf),vf=[],Ji={},Cl={},Hs={},bf={};const Sl={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().req},addRequirement:function(t,e){return Cl[t]===void 0&&(Cl[t]={name:t,type:e,id:Ji.id,text:Ji.text,risk:Ji.risk,verifyMethod:Ji.verifyMethod}),Ji={},Cl[t]},getRequirements:function(){return Cl},setNewReqId:function(t){Ji!==void 0&&(Ji.id=t)},setNewReqText:function(t){Ji!==void 0&&(Ji.text=t)},setNewReqRisk:function(t){Ji!==void 0&&(Ji.risk=t)},setNewReqVerifyMethod:function(t){Ji!==void 0&&(Ji.verifyMethod=t)},addElement:function(t){return bf[t]===void 0&&(bf[t]={name:t,type:Hs.type,docRef:Hs.docRef},g.info("Added new requirement: ",t)),Hs={},bf[t]},getElements:function(){return bf},setNewElementType:function(t){Hs!==void 0&&(Hs.type=t)},setNewElementDocRef:function(t){Hs!==void 0&&(Hs.docRef=t)},addRelationship:function(t,e,r){vf.push({type:t,src:e,dst:r})},getRelationships:function(){return vf},clear:function(){vf=[],Ji={},Cl={},Hs={},bf={}}};var b0={CONTAINS:"contains",ARROW:"arrow"};const ab=b0;var Ei={},_f=0,ob=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Ei.rect_min_width+"px").attr("height",Ei.rect_min_height+"px")},sb=function(t,e,r){var a=Ei.rect_min_width/2,c=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",a).attr("y",Ei.rect_padding).attr("dominant-baseline","hanging"),u=0;r.forEach(function(y){u==0?c.append("tspan").attr("text-anchor","middle").attr("x",Ei.rect_min_width/2).attr("dy",0).text(y):c.append("tspan").attr("text-anchor","middle").attr("x",Ei.rect_min_width/2).attr("dy",.75*Ei.line_height).text(y),u++});var f=1.5*Ei.rect_padding+u*Ei.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Ei.rect_min_width).attr("y1",f).attr("y2",f),{titleNode:c,y:f}},cb=function(t,e,r,a){var c=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Ei.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),u=0,f=[];return r.forEach(function(y){for(var w=y.length;w>30&&u<3;){var x=y.substring(0,30);w=(y=y.substring(30,y.length)).length,f[f.length]=x,u++}if(u==3){var D=f[f.length-1];f[f.length-1]=D.substring(0,D.length-4)+"..."}else f[f.length]=y;u=0}),f.forEach(function(y){c.append("tspan").attr("x",Ei.rect_padding).attr("dy",Ei.line_height).text(y)}),c},jo=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const lu=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)Ei[e[r]]=t[e[r]]},__=function(t,e){mf.parser.yy=Sl,mf.parser.yy.clear(),mf.parser.parse(t);var r,a=Jt().securityLevel;a==="sandbox"&&(r=Se("#i"+e));var c=Se(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=(a==="sandbox"&&r.nodes()[0].contentDocument,c.select("[id='".concat(e,"']")));(function(ot,tt){var gt=ot.append("defs").append("marker").attr("id",b0.CONTAINS+"_line_ending").attr("refX",0).attr("refY",tt.line_height/2).attr("markerWidth",tt.line_height).attr("markerHeight",tt.line_height).attr("orient","auto").append("g");gt.append("circle").attr("cx",tt.line_height/2).attr("cy",tt.line_height/2).attr("r",tt.line_height/2).attr("fill","none"),gt.append("line").attr("x1",0).attr("x2",tt.line_height).attr("y1",tt.line_height/2).attr("y2",tt.line_height/2).attr("stroke-width",1),gt.append("line").attr("y1",0).attr("y2",tt.line_height).attr("x1",tt.line_height/2).attr("x2",tt.line_height/2).attr("stroke-width",1),ot.append("defs").append("marker").attr("id",b0.ARROW+"_line_ending").attr("refX",tt.line_height).attr("refY",.5*tt.line_height).attr("markerWidth",tt.line_height).attr("markerHeight",tt.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(tt.line_height,",").concat(tt.line_height/2,`
M`).concat(tt.line_height,",").concat(tt.line_height/2,`
L0,`).concat(tt.line_height)).attr("stroke-width",1)})(u,Ei);var f=new(Bi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Ei.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),y=Sl.getRequirements(),w=Sl.getElements(),x=Sl.getRelationships();(function(ot,tt,gt){Object.keys(ot).forEach(function(ht){var wt=ot[ht];ht=jo(ht),g.info("Added new requirement: ",ht);var Tt=gt.append("g").attr("id",ht),Ft=ob(Tt,"req-"+ht),Gt=sb(Tt,ht+"_title",["<<".concat(wt.type,">>"),"".concat(wt.name)]);cb(Tt,ht+"_body",["Id: ".concat(wt.id),"Text: ".concat(wt.text),"Risk: ".concat(wt.risk),"Verification: ".concat(wt.verifyMethod)],Gt.y);var Et=Ft.node().getBBox();tt.setNode(ht,{width:Et.width,height:Et.height,shape:"rect",id:ht})})})(y,f,u),function(ot,tt,gt){Object.keys(ot).forEach(function(ht){var wt=ot[ht],Tt=jo(ht),Ft=gt.append("g").attr("id",Tt),Gt="element-"+Tt,Et=ob(Ft,Gt),ee=sb(Ft,Gt+"_title",["<<Element>>","".concat(ht)]);cb(Ft,Gt+"_body",["Type: ".concat(wt.type||"Not Specified"),"Doc Ref: ".concat(wt.docRef||"None")],ee.y);var re=Et.node().getBBox();tt.setNode(Tt,{width:re.width,height:re.height,shape:"rect",id:Tt})})}(w,f,u),function(ot,tt){ot.forEach(function(gt){var ht=jo(gt.src),wt=jo(gt.dst);tt.setEdge(ht,wt,{relationship:gt})})}(x,f),ef().layout(f),function(ot,tt){tt.nodes().forEach(function(gt){gt!==void 0&&tt.node(gt)!==void 0&&(ot.select("#"+gt),ot.select("#"+gt).attr("transform","translate("+(tt.node(gt).x-tt.node(gt).width/2)+","+(tt.node(gt).y-tt.node(gt).height/2)+" )"))})}(u,f),x.forEach(function(ot){(function(tt,gt,ht,wt){var Tt=ht.edge(jo(gt.src),jo(gt.dst)),Ft=oo().x(function(Et){return Et.x}).y(function(Et){return Et.y}),Gt=tt.insert("path","#"+wt).attr("class","er relationshipLine").attr("d",Ft(Tt.points)).attr("fill","none");gt.type==Sl.Relationships.CONTAINS?Gt.attr("marker-start","url("+lr.getUrl(Ei.arrowMarkerAbsolute)+"#"+gt.type+"_line_ending)"):(Gt.attr("stroke-dasharray","10,7"),Gt.attr("marker-end","url("+lr.getUrl(Ei.arrowMarkerAbsolute)+"#"+ab.ARROW+"_line_ending)")),function(Et,ee,re,kt){var Lt=ee.node().getTotalLength(),Ct=ee.node().getPointAtLength(.5*Lt),yt="rel"+_f;_f++;var Rt=Et.append("text").attr("class","req relationshipLabel").attr("id",yt).attr("x",Ct.x).attr("y",Ct.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(kt).node().getBBox();Et.insert("rect","#"+yt).attr("class","req reqLabelBox").attr("x",Ct.x-Rt.width/2).attr("y",Ct.y-Rt.height/2).attr("width",Rt.width).attr("height",Rt.height).attr("fill","white").attr("fill-opacity","85%")}(tt,Gt,0,"<<".concat(gt.type,">>"))})(u,ot,f,e)});var D=Ei.rect_padding,j=u.node().getBBox(),P=j.width+2*D,W=j.height+2*D;$a(u,W,P,Ei.useMaxWidth),u.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat(W))};var nn=h(6876),x_=h.n(nn),xf=void 0,wc={},hs=[],Y2="",ub=!1,z2=!1,U2=!1,q2=function(t,e,r,a){var c=wc[t];c&&e===c.name&&r==null||(r!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),a!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),wc[t]={name:e,description:r.text,wrap:r.wrap===void 0&&hu()||!!r.wrap,prevActor:xf,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},xf&&wc[xf]&&(wc[xf].nextActor=t),xf=t)},w_=function(t){var e,r=0;for(e=0;e<hs.length;e++)hs[e].type===wf.ACTIVE_START&&hs[e].from.actor===t&&r++,hs[e].type===wf.ACTIVE_END&&hs[e].from.actor===t&&r--;return r},Ws=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},a=arguments.length>3?arguments[3]:void 0;if(a===wf.ACTIVE_END){var c=w_(t.actor);if(c<1){var u=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw u.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},u}}return hs.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&hu()||!!r.wrap,type:a}),!0},Al=function(t){return wc[t]},hu=function(){return U2},wf={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},lb=function(t,e,r){r.text,r.wrap===void 0&&hu()||r.wrap;var a=[].concat(t,t);hs.push({from:a[0],to:a[1],message:r.text,wrap:r.wrap===void 0&&hu()||!!r.wrap,type:wf.NOTE,placement:e})},hb=function(t,e){var r=Al(t);try{var a=Jc(e.text,Jt());a=(a=a.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),H2(r,JSON.parse(a))}catch(c){g.error("error while parsing actor link text",c)}};function H2(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var W2=function(t,e){var r=Al(t);try{var a=Jc(e.text,Jt());fb(r,JSON.parse(a))}catch(c){g.error("error while parsing actor properties text",c)}};function fb(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var db=function(t,e){var r=Al(t),a=document.getElementById(e.text);try{var c=a.innerHTML,u=JSON.parse(c);u.properties&&fb(r,u.properties),u.links&&H2(r,u.links)}catch(f){g.error("error while parsing actor details text",f)}},_0=function(t){Y2=t.text,ub=t.wrap===void 0&&hu()||!!t.wrap};const Ml={addActor:q2,addMessage:function(t,e,r,a){hs.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&hu()||!!r.wrap,answer:a})},addSignal:Ws,addLinks:hb,addDetails:db,addProperties:W2,autoWrap:hu,setWrap:function(t){U2=t},enableSequenceNumbers:function(){z2=!0},showSequenceNumbers:function(){return z2},getMessages:function(){return hs},getActors:function(){return wc},getActor:Al,getActorKeys:function(){return Object.keys(wc)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return Y2},parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().sequence},getTitleWrapped:function(){return ub},clear:function(){wc={},hs=[]},parseMessage:function(t){var e=t.trim(),r={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return g.debug("parseMessage:",r),r},LINETYPE:wf,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:lb,setTitle:_0,apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"addParticipant":q2(e.actor,e.actor,e.description,"participant");break;case"addActor":q2(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":Ws(e.actor,void 0,void 0,e.signalType);break;case"addNote":lb(e.actor,e.placement,e.text);break;case"addLinks":hb(e.actor,e.text);break;case"addALink":(function(r,a){var c=Al(r);try{var u={},f=Jc(a.text,Jt()),y=f.indexOf("@"),w=(f=(f=f.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,y-1).trim(),x=f.slice(y+1).trim();u[w]=x,H2(c,u)}catch(D){g.error("error while parsing actor link text",D)}})(e.actor,e.text);break;case"addProperties":W2(e.actor,e.text);break;case"addDetails":db(e.actor,e.text);break;case"addMessage":Ws(e.from,e.to,e.msg,e.signalType);break;case"loopStart":Ws(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":Ws(void 0,void 0,void 0,e.signalType);break;case"rectStart":Ws(void 0,void 0,e.color,e.signalType);break;case"optStart":Ws(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":Ws(void 0,void 0,e.altText,e.signalType);break;case"setTitle":_0(e.text);break;case"parStart":case"and":Ws(void 0,void 0,e.parText,e.signalType)}}};var fu=[],kc=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},$2=function(t,e){var r;r=function(){var a=document.querySelectorAll(t);a.length!==0&&(a[0].addEventListener("mouseover",function(){Tf("actor"+e+"_popup")}),a[0].addEventListener("mouseout",function(){x0("actor"+e+"_popup")}))},fu.push(r)},pb=function(t,e,r,a){var c=t.append("image");c.attr("x",e),c.attr("y",r);var u=(0,Kc.sanitizeUrl)(a);c.attr("xlink:href",u)},kf=function(t,e,r,a){var c=t.append("use");c.attr("x",e),c.attr("y",r);var u=(0,Kc.sanitizeUrl)(a);c.attr("xlink:href","#"+u)},Tf=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},x0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},Ef=function(t,e){var r=0,a=0,c=e.text.split(lr.lineBreakRegex),u=[],f=0,y=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":y=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":y=function(){return Math.round(e.y+(r+a+e.textMargin)/2)};break;case"bottom":case"end":y=function(){return Math.round(e.y+(r+a+2*e.textMargin)-e.textMargin)}}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="text-after-edge",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="text-before-edge",e.alignmentBaseline="middle"}for(var w=0;w<c.length;w++){var x=c[w];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(f=w*e.fontSize);var D=t.append("text");if(D.attr("x",e.x),D.attr("y",y()),e.anchor!==void 0&&D.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&D.style("font-family",e.fontFamily),e.fontSize!==void 0&&D.style("font-size",e.fontSize),e.fontWeight!==void 0&&D.style("font-weight",e.fontWeight),e.fill!==void 0&&D.attr("fill",e.fill),e.class!==void 0&&D.attr("class",e.class),e.dy!==void 0?D.attr("dy",e.dy):f!==0&&D.attr("dy",f),e.tspan){var j=D.append("tspan");j.attr("x",e.x),e.fill!==void 0&&j.attr("fill",e.fill),j.text(x)}else D.text(x);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(a+=(D._groups||D)[0][0].getBBox().height,r=a),u.push(D)}return u},k_=function(t,e){var r=t.append("polygon");return r.attr("points",function(a,c,u,f,y){return a+","+c+" "+(a+u)+","+c+" "+(a+u)+","+(c+f-7)+" "+(a+u-8.4)+","+(c+f)+" "+a+","+(c+f)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,Ef(t,e),r},fs=-1,gb=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},T_=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}},V2=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},G2=function(){function t(c,u,f,y,w,x,D){a(u.append("text").attr("x",f+w/2).attr("y",y+x/2+5).style("text-anchor","middle").text(c),D)}function e(c,u,f,y,w,x,D,j){for(var P=j.actorFontSize,W=j.actorFontFamily,ot=j.actorFontWeight,tt=c.split(lr.lineBreakRegex),gt=0;gt<tt.length;gt++){var ht=gt*P-P*(tt.length-1)/2,wt=u.append("text").attr("x",f+w/2).attr("y",y).style("text-anchor","middle").style("font-size",P).style("font-weight",ot).style("font-family",W);wt.append("tspan").attr("x",f+w/2).attr("dy",ht).text(tt[gt]),wt.attr("y",y+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(wt,D)}}function r(c,u,f,y,w,x,D,j){var P=u.append("switch"),W=P.append("foreignObject").attr("x",f).attr("y",y).attr("width",w).attr("height",x).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");W.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,f,y,w,x,D,j),a(W,D)}function a(c,u){for(var f in u)u.hasOwnProperty(f)&&c.attr(f,u[f])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}(),E_=function(){function t(c,u,f,y,w,x,D){a(u.append("text").attr("x",f).attr("y",y).style("text-anchor","start").text(c),D)}function e(c,u,f,y,w,x,D,j){for(var P=j.actorFontSize,W=j.actorFontFamily,ot=j.actorFontWeight,tt=c.split(lr.lineBreakRegex),gt=0;gt<tt.length;gt++){var ht=gt*P-P*(tt.length-1)/2,wt=u.append("text").attr("x",f).attr("y",y).style("text-anchor","start").style("font-size",P).style("font-weight",ot).style("font-family",W);wt.append("tspan").attr("x",f).attr("dy",ht).text(tt[gt]),wt.attr("y",y+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(wt,D)}}function r(c,u,f,y,w,x,D,j){var P=u.append("switch"),W=P.append("foreignObject").attr("x",f).attr("y",y).attr("width",w).attr("height",x).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");W.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,f,y,0,x,D,j),a(W,D)}function a(c,u){for(var f in u)u.hasOwnProperty(f)&&c.attr(f,u[f])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const Nl=kc,Dl=function(t,e,r){switch(e.type){case"actor":return function(a,c,u){var f=c.x+c.width/2;c.y===0&&(fs++,a.append("line").attr("id","actor"+fs).attr("x1",f).attr("y1",80).attr("x2",f).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var y=a.append("g");y.attr("class","actor-man");var w={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};w.x=c.x,w.y=c.y,w.fill="#eaeaea",w.width=c.width,w.height=c.height,w.class="actor",w.rx=3,w.ry=3,y.append("line").attr("id","actor-man-torso"+fs).attr("x1",f).attr("y1",c.y+25).attr("x2",f).attr("y2",c.y+45),y.append("line").attr("id","actor-man-arms"+fs).attr("x1",f-18).attr("y1",c.y+33).attr("x2",f+18).attr("y2",c.y+33),y.append("line").attr("x1",f-18).attr("y1",c.y+60).attr("x2",f).attr("y2",c.y+45),y.append("line").attr("x1",f).attr("y1",c.y+45).attr("x2",f+16).attr("y2",c.y+60);var x=y.append("circle");x.attr("cx",c.x+c.width/2),x.attr("cy",c.y+10),x.attr("r",15),x.attr("width",c.width),x.attr("height",c.height);var D=y.node().getBBox();return c.height=D.height,G2(u)(c.description,y,w.x,w.y+35,w.width,w.height,{class:"actor"},u),c.height}(t,e,r);case"participant":return function(a,c,u){var f=c.x+c.width/2,y=a.append("g"),w=y;c.y===0&&(fs++,w.append("line").attr("id","actor"+fs).attr("x1",f).attr("y1",5).attr("x2",f).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),w=y.append("g"),c.actorCnt=fs,c.links!=null&&(w.attr("id","root-"+fs),$2("#root-"+fs,fs)));var x={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},D="actor";c.properties!=null&&c.properties.class?D=c.properties.class:x.fill="#eaeaea",x.x=c.x,x.y=c.y,x.width=c.width,x.height=c.height,x.class=D,x.rx=3,x.ry=3;var j=kc(w,x);if(c.rectData=x,c.properties!=null&&c.properties.icon){var P=c.properties.icon.trim();P.charAt(0)==="@"?kf(w,x.x+x.width-20,x.y+10,P.substr(1)):pb(w,x.x+x.width-20,x.y+10,P)}G2(u)(c.description,w,x.x,x.y,x.width,x.height,{class:"actor"},u);var W=c.height;if(j.node){var ot=j.node().getBBox();c.height=ot.height,W=ot.height}return W}(t,e,r)}},yb=function(t,e,r,a,c){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var u=e.links,f=e.actorCnt,y=e.rectData,w="none";c&&(w="block !important");var x=t.append("g");x.attr("id","actor"+f+"_popup"),x.attr("class","actorPopupMenu"),x.attr("display",w),$2("#actor"+f+"_popup",f);var D="";y.class!==void 0&&(D=" "+y.class);var j=y.width>r?y.width:r,P=x.append("rect");if(P.attr("class","actorPopupMenuPanel"+D),P.attr("x",y.x),P.attr("y",y.height),P.attr("fill",y.fill),P.attr("stroke",y.stroke),P.attr("width",j),P.attr("height",y.height),P.attr("rx",y.rx),P.attr("ry",y.ry),u!=null){var W=20;for(var ot in u){var tt=x.append("a"),gt=(0,Kc.sanitizeUrl)(u[ot]);tt.attr("xlink:href",gt),tt.attr("target","_blank"),E_(a)(ot,tt,y.x+10,y.height+W,j,20,{class:"actor"},a),W+=30}}return P.attr("height",W),{height:y.height+W,width:j}},C_=function(t){return t.append("g")},mb=function(t,e,r,a,c){var u={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},f=e.anchored;u.x=e.startx,u.y=e.starty,u.class="activation"+c%3,u.width=e.stopx-e.startx,u.height=r-e.starty,kc(f,u)},Ol=function(t,e,r,a){var c=a.boxMargin,u=a.boxTextMargin,f=a.labelBoxHeight,y=a.labelBoxWidth,w=a.messageFontFamily,x=a.messageFontSize,D=a.messageFontWeight,j=t.append("g"),P=function(tt,gt,ht,wt){return j.append("line").attr("x1",tt).attr("y1",gt).attr("x2",ht).attr("y2",wt).attr("class","loopLine")};P(e.startx,e.starty,e.stopx,e.starty),P(e.stopx,e.starty,e.stopx,e.stopy),P(e.startx,e.stopy,e.stopx,e.stopy),P(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(tt){P(e.startx,tt.y,e.stopx,tt.y).style("stroke-dasharray","3, 3")});var W={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};W.text=r,W.x=e.startx,W.y=e.starty,W.fontFamily=w,W.fontSize=x,W.fontWeight=D,W.anchor="middle",W.valign="middle",W.tspan=!1,W.width=y||50,W.height=f||20,W.textMargin=u,W.class="labelText",k_(j,W),(W={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}).text=e.title,W.x=e.startx+y/2+(e.stopx-e.startx)/2,W.y=e.starty+c+u,W.anchor="middle",W.valign="middle",W.textMargin=u,W.class="loopText",W.fontFamily=w,W.fontSize=x,W.fontWeight=D,W.wrap=!0;var ot=Ef(j,W);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(tt,gt){if(tt.message){W.text=tt.message,W.x=e.startx+(e.stopx-e.startx)/2,W.y=e.sections[gt].y+c+u,W.class="loopText",W.anchor="middle",W.valign="middle",W.tspan=!1,W.fontFamily=w,W.fontSize=x,W.fontWeight=D,W.wrap=e.wrap,ot=Ef(j,W);var ht=Math.round(ot.map(function(wt){return(wt._groups||wt)[0][0].getBBox().height}).reduce(function(wt,Tt){return wt+Tt}));e.sections[gt].height+=ht-(c+u)}}),e.height=Math.round(e.stopy-e.starty),j},S_=function(t,e){kc(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},A_=function(t){t.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")},vb=function(t){t.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")},M_=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)},Bl=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.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"),e.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")},Qa=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")},Cf=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")},aa=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")},Dr=T_,N_=V2;Kc.sanitizeUrl,nn.parser.yy=Ml;var ue={},Ge={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(function(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},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:[],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,Sf(nn.parser.yy.getConfig())},updateVal:function(t,e,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var c=this,u=0;function f(y){return function(w){u++;var x=c.sequenceItems.length-u+1;c.updateVal(w,"starty",e-x*ue.boxMargin,Math.min),c.updateVal(w,"stopy",a+x*ue.boxMargin,Math.max),c.updateVal(Ge.data,"startx",t-x*ue.boxMargin,Math.min),c.updateVal(Ge.data,"stopx",r+x*ue.boxMargin,Math.max),y!=="activation"&&(c.updateVal(w,"startx",t-x*ue.boxMargin,Math.min),c.updateVal(w,"stopx",r+x*ue.boxMargin,Math.max),c.updateVal(Ge.data,"starty",e-x*ue.boxMargin,Math.min),c.updateVal(Ge.data,"stopy",a+x*ue.boxMargin,Math.max))}}this.sequenceItems.forEach(f()),this.activations.forEach(f("activation"))},insert:function(t,e,r,a){var c=Math.min(t,r),u=Math.max(t,r),f=Math.min(e,a),y=Math.max(e,a);this.updateVal(Ge.data,"startx",c,Math.min),this.updateVal(Ge.data,"starty",f,Math.min),this.updateVal(Ge.data,"stopx",u,Math.max),this.updateVal(Ge.data,"stopy",y,Math.max),this.updateBounds(c,f,u,y)},newActivation:function(t,e,r){var a=r[t.from.actor],c=Af(t.from.actor).length||0,u=a.x+a.width/2+(c-1)*ue.activationWidth/2;this.activations.push({startx:u,starty:this.verticalPos+2,stopx:u+ue.activationWidth,stopy:void 0,actor:t.from.actor,anchored:C_(e)})},endActivation:function(t){var e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;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(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Ge.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},du=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Ll=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},Il=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},X2=function(t,e,r,a){for(var c=0,u=0,f=0,y=0;y<r.length;y++){var w=e[r[y]];w.width=w.width||ue.width,w.height=Math.max(w.height||ue.height,ue.height),w.margin=w.margin||ue.actorMargin,w.x=c+u,w.y=a;var x=Dl(t,w,ue);f=Math.max(f,x),Ge.insert(w.x,a,w.x+w.width,w.height),c+=w.width,u+=w.margin,Ge.models.addActor(w)}Ge.bumpVerticalPos(f)},ds=function(t,e,r,a){for(var c=0,u=0,f=0;f<r.length;f++){var y=e[r[f]],w=D_(y),x=yb(t,y,w,ue,ue.forceMenus);x.height>c&&(c=x.height),x.width+y.x>u&&(u=x.width+y.x)}return{maxHeight:c,maxWidth:u}},Sf=function(t){zi(ue,t),t.fontFamily&&(ue.actorFontFamily=ue.noteFontFamily=ue.messageFontFamily=t.fontFamily),t.fontSize&&(ue.actorFontSize=ue.noteFontSize=ue.messageFontSize=t.fontSize),t.fontWeight&&(ue.actorFontWeight=ue.noteFontWeight=ue.messageFontWeight=t.fontWeight)},Af=function(t){return Ge.activations.filter(function(e){return e.actor===t})},w0=function(t,e){var r=e[t],a=Af(t);return[a.reduce(function(c,u){return Math.min(c,u.startx)},r.x+r.width/2),a.reduce(function(c,u){return Math.max(c,u.stopx)},r.x+r.width/2)]};function Yo(t,e,r,a,c){Ge.bumpVerticalPos(r);var u=a;if(e.id&&e.message&&t[e.id]){var f=t[e.id].width,y=du(ue);e.message=Zn.wrapLabel("[".concat(e.message,"]"),f-2*ue.wrapPadding,y),e.width=f,e.wrap=!0;var w=Zn.calculateTextDimensions(e.message,y),x=Math.max(w.height,ue.labelBoxHeight);u=a+x,g.debug("".concat(x," - ").concat(e.message))}c(e),Ge.bumpVerticalPos(u)}var D_=function(t){var e=0,r=Il(ue);for(var a in t.links){var c=Zn.calculateTextDimensions(a,r).width+2*ue.wrapPadding+2*ue.boxMargin;e<c&&(e=c)}return e};const Mf={bounds:Ge,drawActors:X2,drawActorsPopup:ds,setConf:Sf,draw:function(t,e){ue=Jt().sequence;var r,a=Jt().securityLevel;a==="sandbox"&&(r=Se("#i"+e));var c=Se(a==="sandbox"?r.nodes()[0].contentDocument.body:"body");a==="sandbox"&&r.nodes()[0].contentDocument,nn.parser.yy.clear(),nn.parser.yy.setWrap(ue.wrap),nn.parser.parse(t+`
`),Ge.init(),g.debug("C:".concat(JSON.stringify(ue,null,2)));var u=a==="sandbox"?c.select('[id="'.concat(e,'"]')):Se('[id="'.concat(e,'"]')),f=nn.parser.yy.getActors(),y=nn.parser.yy.getActorKeys(),w=nn.parser.yy.getMessages(),x=nn.parser.yy.getTitle(),D=function(Ft,Gt){var Et={};return Gt.forEach(function(ee){if(Ft[ee.to]&&Ft[ee.from]){var re=Ft[ee.to];if(ee.placement===nn.parser.yy.PLACEMENT.LEFTOF&&!re.prevActor||ee.placement===nn.parser.yy.PLACEMENT.RIGHTOF&&!re.nextActor)return;var kt=ee.placement!==void 0,Lt=!kt,Ct=kt?Ll(ue):du(ue),yt=ee.wrap?Zn.wrapLabel(ee.message,ue.width-2*ue.wrapPadding,Ct):ee.message,Rt=Zn.calculateTextDimensions(yt,Ct).width+2*ue.wrapPadding;Lt&&ee.from===re.nextActor?Et[ee.to]=Math.max(Et[ee.to]||0,Rt):Lt&&ee.from===re.prevActor?Et[ee.from]=Math.max(Et[ee.from]||0,Rt):Lt&&ee.from===ee.to?(Et[ee.from]=Math.max(Et[ee.from]||0,Rt/2),Et[ee.to]=Math.max(Et[ee.to]||0,Rt/2)):ee.placement===nn.parser.yy.PLACEMENT.RIGHTOF?Et[ee.from]=Math.max(Et[ee.from]||0,Rt):ee.placement===nn.parser.yy.PLACEMENT.LEFTOF?Et[re.prevActor]=Math.max(Et[re.prevActor]||0,Rt):ee.placement===nn.parser.yy.PLACEMENT.OVER&&(re.prevActor&&(Et[re.prevActor]=Math.max(Et[re.prevActor]||0,Rt/2)),re.nextActor&&(Et[ee.from]=Math.max(Et[ee.from]||0,Rt/2)))}}),g.debug("maxMessageWidthPerActor:",Et),Et}(f,w);ue.height=function(Ft,Gt){var Et=0;for(var ee in Object.keys(Ft).forEach(function(Ct){var yt=Ft[Ct];yt.wrap&&(yt.description=Zn.wrapLabel(yt.description,ue.width-2*ue.wrapPadding,Il(ue)));var Rt=Zn.calculateTextDimensions(yt.description,Il(ue));yt.width=yt.wrap?ue.width:Math.max(ue.width,Rt.width+2*ue.wrapPadding),yt.height=yt.wrap?Math.max(Rt.height,ue.height):ue.height,Et=Math.max(Et,yt.height)}),Gt){var re=Ft[ee];if(re){var kt=Ft[re.nextActor];if(kt){var Lt=Gt[ee]+ue.actorMargin-re.width/2-kt.width/2;re.margin=Math.max(Lt,ue.actorMargin)}}}return Math.max(Et,ue.height)}(f,D),Cf(u),Qa(u),aa(u),X2(u,f,y,0);var j=function(Ft,Gt){var Et,ee,re,kt={},Lt=[];return Ft.forEach(function(Ct){switch(Ct.id=Zn.random({length:10}),Ct.type){case nn.parser.yy.LINETYPE.LOOP_START:case nn.parser.yy.LINETYPE.ALT_START:case nn.parser.yy.LINETYPE.OPT_START:case nn.parser.yy.LINETYPE.PAR_START:Lt.push({id:Ct.id,msg:Ct.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case nn.parser.yy.LINETYPE.ALT_ELSE:case nn.parser.yy.LINETYPE.PAR_AND:Ct.message&&(Et=Lt.pop(),kt[Et.id]=Et,kt[Ct.id]=Et,Lt.push(Et));break;case nn.parser.yy.LINETYPE.LOOP_END:case nn.parser.yy.LINETYPE.ALT_END:case nn.parser.yy.LINETYPE.OPT_END:case nn.parser.yy.LINETYPE.PAR_END:Et=Lt.pop(),kt[Et.id]=Et;break;case nn.parser.yy.LINETYPE.ACTIVE_START:var yt=Gt[Ct.from?Ct.from.actor:Ct.to.actor],Rt=Af(Ct.from?Ct.from.actor:Ct.to.actor).length,bt=yt.x+yt.width/2+(Rt-1)*ue.activationWidth/2,xe={startx:bt,stopx:bt+ue.activationWidth,actor:Ct.from.actor,enabled:!0};Ge.activations.push(xe);break;case nn.parser.yy.LINETYPE.ACTIVE_END:var Te=Ge.activations.map(function(Ut){return Ut.actor}).lastIndexOf(Ct.from.actor);delete Ge.activations.splice(Te,1)[0]}Ct.placement!==void 0?(ee=function(Ut,Ee){var Ce=Ee[Ut.from].x,_e=Ee[Ut.to].x,fe=Ut.wrap&&Ut.message,je=Zn.calculateTextDimensions(fe?Zn.wrapLabel(Ut.message,ue.width,Ll(ue)):Ut.message,Ll(ue)),Fe={width:fe?ue.width:Math.max(ue.width,je.width+2*ue.noteMargin),height:0,startx:Ee[Ut.from].x,stopx:0,starty:0,stopy:0,message:Ut.message};return Ut.placement===nn.parser.yy.PLACEMENT.RIGHTOF?(Fe.width=fe?Math.max(ue.width,je.width):Math.max(Ee[Ut.from].width/2+Ee[Ut.to].width/2,je.width+2*ue.noteMargin),Fe.startx=Ce+(Ee[Ut.from].width+ue.actorMargin)/2):Ut.placement===nn.parser.yy.PLACEMENT.LEFTOF?(Fe.width=Math.max(fe?ue.width:Ee[Ut.from].width/2+Ee[Ut.to].width/2,je.width+2*ue.noteMargin),Fe.startx=Ce-Fe.width+(Ee[Ut.from].width-ue.actorMargin)/2):Ut.to===Ut.from?(je=Zn.calculateTextDimensions(fe?Zn.wrapLabel(Ut.message,Math.max(ue.width,Ee[Ut.from].width),Ll(ue)):Ut.message,Ll(ue)),Fe.width=fe?Math.max(ue.width,Ee[Ut.from].width):Math.max(Ee[Ut.from].width,ue.width,je.width+2*ue.noteMargin),Fe.startx=Ce+(Ee[Ut.from].width-Fe.width)/2):(Fe.width=Math.abs(Ce+Ee[Ut.from].width/2-(_e+Ee[Ut.to].width/2))+ue.actorMargin,Fe.startx=Ce<_e?Ce+Ee[Ut.from].width/2-ue.actorMargin/2:_e+Ee[Ut.to].width/2-ue.actorMargin/2),fe&&(Fe.message=Zn.wrapLabel(Ut.message,Fe.width-2*ue.wrapPadding,Ll(ue))),g.debug("NM:[".concat(Fe.startx,",").concat(Fe.stopx,",").concat(Fe.starty,",").concat(Fe.stopy,":").concat(Fe.width,",").concat(Fe.height,"=").concat(Ut.message,"]")),Fe}(Ct,Gt),Ct.noteModel=ee,Lt.forEach(function(Ut){(Et=Ut).from=Math.min(Et.from,ee.startx),Et.to=Math.max(Et.to,ee.startx+ee.width),Et.width=Math.max(Et.width,Math.abs(Et.from-Et.to))-ue.labelBoxWidth})):(re=function(Ut,Ee){var Ce=!1;if([nn.parser.yy.LINETYPE.SOLID_OPEN,nn.parser.yy.LINETYPE.DOTTED_OPEN,nn.parser.yy.LINETYPE.SOLID,nn.parser.yy.LINETYPE.DOTTED,nn.parser.yy.LINETYPE.SOLID_CROSS,nn.parser.yy.LINETYPE.DOTTED_CROSS,nn.parser.yy.LINETYPE.SOLID_POINT,nn.parser.yy.LINETYPE.DOTTED_POINT].includes(Ut.type)&&(Ce=!0),!Ce)return{};var _e=w0(Ut.from,Ee),fe=w0(Ut.to,Ee),je=_e[0]<=fe[0]?1:0,Fe=_e[0]<fe[0]?0:1,Je=_e.concat(fe),yn=Math.abs(fe[Fe]-_e[je]);Ut.wrap&&Ut.message&&(Ut.message=Zn.wrapLabel(Ut.message,Math.max(yn+2*ue.wrapPadding,ue.width),du(ue)));var He=Zn.calculateTextDimensions(Ut.message,du(ue));return{width:Math.max(Ut.wrap?0:He.width+2*ue.wrapPadding,yn+2*ue.wrapPadding,ue.width),height:0,startx:_e[je],stopx:fe[Fe],starty:0,stopy:0,message:Ut.message,type:Ut.type,wrap:Ut.wrap,fromBounds:Math.min.apply(null,Je),toBounds:Math.max.apply(null,Je)}}(Ct,Gt),Ct.msgModel=re,re.startx&&re.stopx&&Lt.length>0&&Lt.forEach(function(Ut){if(Et=Ut,re.startx===re.stopx){var Ee=Gt[Ct.from],Ce=Gt[Ct.to];Et.from=Math.min(Ee.x-re.width/2,Ee.x-Ee.width/2,Et.from),Et.to=Math.max(Ce.x+re.width/2,Ce.x+Ee.width/2,Et.to),Et.width=Math.max(Et.width,Math.abs(Et.to-Et.from))-ue.labelBoxWidth}else Et.from=Math.min(re.startx,Et.from),Et.to=Math.max(re.stopx,Et.to),Et.width=Math.max(Et.width,re.width)-ue.labelBoxWidth}))}),Ge.activations=[],g.debug("Loop type widths:",kt),kt}(w,f);A_(u),Bl(u),vb(u),M_(u);var P=1;w.forEach(function(Ft){var Gt,Et,ee;switch(Ft.type){case nn.parser.yy.LINETYPE.NOTE:Et=Ft.noteModel,function(re,kt){Ge.bumpVerticalPos(ue.boxMargin),kt.height=ue.boxMargin,kt.starty=Ge.getVerticalPos();var Lt=N_();Lt.x=kt.startx,Lt.y=kt.starty,Lt.width=kt.width||ue.width,Lt.class="note";var Ct=re.append("g"),yt=Nl(Ct,Lt),Rt=Dr();Rt.x=kt.startx,Rt.y=kt.starty,Rt.width=Lt.width,Rt.dy="1em",Rt.text=kt.message,Rt.class="noteText",Rt.fontFamily=ue.noteFontFamily,Rt.fontSize=ue.noteFontSize,Rt.fontWeight=ue.noteFontWeight,Rt.anchor=ue.noteAlign,Rt.textMargin=ue.noteMargin,Rt.valign=ue.noteAlign;var bt=Ef(Ct,Rt),xe=Math.round(bt.map(function(Te){return(Te._groups||Te)[0][0].getBBox().height}).reduce(function(Te,Ut){return Te+Ut}));yt.attr("height",xe+2*ue.noteMargin),kt.height+=xe+2*ue.noteMargin,Ge.bumpVerticalPos(xe+2*ue.noteMargin),kt.stopy=kt.starty+xe+2*ue.noteMargin,kt.stopx=kt.startx+Lt.width,Ge.insert(kt.startx,kt.starty,kt.stopx,kt.stopy),Ge.models.addNote(kt)}(u,Et);break;case nn.parser.yy.LINETYPE.ACTIVE_START:Ge.newActivation(Ft,u,f);break;case nn.parser.yy.LINETYPE.ACTIVE_END:(function(re,kt){var Lt=Ge.endActivation(re);Lt.starty+18>kt&&(Lt.starty=kt-6,kt+=12),mb(u,Lt,kt,ue,Af(re.from.actor).length),Ge.insert(Lt.startx,kt-10,Lt.stopx,kt)})(Ft,Ge.getVerticalPos());break;case nn.parser.yy.LINETYPE.LOOP_START:Yo(j,Ft,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(re){return Ge.newLoop(re)});break;case nn.parser.yy.LINETYPE.LOOP_END:Gt=Ge.endLoop(),Ol(u,Gt,"loop",ue),Ge.bumpVerticalPos(Gt.stopy-Ge.getVerticalPos()),Ge.models.addLoop(Gt);break;case nn.parser.yy.LINETYPE.RECT_START:Yo(j,Ft,ue.boxMargin,ue.boxMargin,function(re){return Ge.newLoop(void 0,re.message)});break;case nn.parser.yy.LINETYPE.RECT_END:Gt=Ge.endLoop(),S_(u,Gt),Ge.models.addLoop(Gt),Ge.bumpVerticalPos(Gt.stopy-Ge.getVerticalPos());break;case nn.parser.yy.LINETYPE.OPT_START:Yo(j,Ft,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(re){return Ge.newLoop(re)});break;case nn.parser.yy.LINETYPE.OPT_END:Gt=Ge.endLoop(),Ol(u,Gt,"opt",ue),Ge.bumpVerticalPos(Gt.stopy-Ge.getVerticalPos()),Ge.models.addLoop(Gt);break;case nn.parser.yy.LINETYPE.ALT_START:Yo(j,Ft,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(re){return Ge.newLoop(re)});break;case nn.parser.yy.LINETYPE.ALT_ELSE:Yo(j,Ft,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(re){return Ge.addSectionToLoop(re)});break;case nn.parser.yy.LINETYPE.ALT_END:Gt=Ge.endLoop(),Ol(u,Gt,"alt",ue),Ge.bumpVerticalPos(Gt.stopy-Ge.getVerticalPos()),Ge.models.addLoop(Gt);break;case nn.parser.yy.LINETYPE.PAR_START:Yo(j,Ft,ue.boxMargin,ue.boxMargin+ue.boxTextMargin,function(re){return Ge.newLoop(re)});break;case nn.parser.yy.LINETYPE.PAR_AND:Yo(j,Ft,ue.boxMargin+ue.boxTextMargin,ue.boxMargin,function(re){return Ge.addSectionToLoop(re)});break;case nn.parser.yy.LINETYPE.PAR_END:Gt=Ge.endLoop(),Ol(u,Gt,"par",ue),Ge.bumpVerticalPos(Gt.stopy-Ge.getVerticalPos()),Ge.models.addLoop(Gt);break;default:try{(ee=Ft.msgModel).starty=Ge.getVerticalPos(),ee.sequenceIndex=P,function(re,kt){Ge.bumpVerticalPos(10);var Lt=kt.startx,Ct=kt.stopx,yt=kt.starty,Rt=kt.message,bt=kt.type,xe=kt.sequenceIndex,Te=lr.splitBreaks(Rt).length,Ut=Zn.calculateTextDimensions(Rt,du(ue)),Ee=Ut.height/Te;kt.height+=Ee,Ge.bumpVerticalPos(Ee);var Ce=Dr();Ce.x=Lt,Ce.y=yt+10,Ce.width=Ct-Lt,Ce.class="messageText",Ce.dy="1em",Ce.text=Rt,Ce.fontFamily=ue.messageFontFamily,Ce.fontSize=ue.messageFontSize,Ce.fontWeight=ue.messageFontWeight,Ce.anchor=ue.messageAlign,Ce.valign=ue.messageAlign,Ce.textMargin=ue.wrapPadding,Ce.tspan=!1,Ef(re,Ce);var _e,fe,je=Ut.height-10,Fe=Ut.width;if(Lt===Ct){fe=Ge.getVerticalPos()+je,ue.rightAngles?_e=re.append("path").attr("d","M ".concat(Lt,",").concat(fe," H ").concat(Lt+Math.max(ue.width/2,Fe/2)," V ").concat(fe+25," H ").concat(Lt)):(je+=ue.boxMargin,fe=Ge.getVerticalPos()+je,_e=re.append("path").attr("d","M "+Lt+","+fe+" C "+(Lt+60)+","+(fe-10)+" "+(Lt+60)+","+(fe+30)+" "+Lt+","+(fe+20))),je+=30;var Je=Math.max(Fe/2,ue.width/2);Ge.insert(Lt-Je,Ge.getVerticalPos()-10+je,Ct+Je,Ge.getVerticalPos()+30+je)}else je+=ue.boxMargin,fe=Ge.getVerticalPos()+je,(_e=re.append("line")).attr("x1",Lt),_e.attr("y1",fe),_e.attr("x2",Ct),_e.attr("y2",fe),Ge.insert(Lt,fe-10,Ct,fe);bt===nn.parser.yy.LINETYPE.DOTTED||bt===nn.parser.yy.LINETYPE.DOTTED_CROSS||bt===nn.parser.yy.LINETYPE.DOTTED_POINT||bt===nn.parser.yy.LINETYPE.DOTTED_OPEN?(_e.style("stroke-dasharray","3, 3"),_e.attr("class","messageLine1")):_e.attr("class","messageLine0");var yn="";ue.arrowMarkerAbsolute&&(yn=(yn=(yn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_e.attr("stroke-width",2),_e.attr("stroke","none"),_e.style("fill","none"),bt!==nn.parser.yy.LINETYPE.SOLID&&bt!==nn.parser.yy.LINETYPE.DOTTED||_e.attr("marker-end","url("+yn+"#arrowhead)"),bt!==nn.parser.yy.LINETYPE.SOLID_POINT&&bt!==nn.parser.yy.LINETYPE.DOTTED_POINT||_e.attr("marker-end","url("+yn+"#filled-head)"),bt!==nn.parser.yy.LINETYPE.SOLID_CROSS&&bt!==nn.parser.yy.LINETYPE.DOTTED_CROSS||_e.attr("marker-end","url("+yn+"#crosshead)"),(Ml.showSequenceNumbers()||ue.showSequenceNumbers)&&(_e.attr("marker-start","url("+yn+"#sequencenumber)"),re.append("text").attr("x",Lt).attr("y",fe+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(xe)),Ge.bumpVerticalPos(je),kt.height+=je,kt.stopy=kt.starty+kt.height,Ge.insert(kt.fromBounds,kt.starty,kt.toBounds,kt.stopy)}(u,ee),Ge.models.addMessage(ee)}catch(re){g.error("error while drawing message",re)}}[nn.parser.yy.LINETYPE.SOLID_OPEN,nn.parser.yy.LINETYPE.DOTTED_OPEN,nn.parser.yy.LINETYPE.SOLID,nn.parser.yy.LINETYPE.DOTTED,nn.parser.yy.LINETYPE.SOLID_CROSS,nn.parser.yy.LINETYPE.DOTTED_CROSS,nn.parser.yy.LINETYPE.SOLID_POINT,nn.parser.yy.LINETYPE.DOTTED_POINT].includes(Ft.type)&&P++}),ue.mirrorActors&&(Ge.bumpVerticalPos(2*ue.boxMargin),X2(u,f,y,Ge.getVerticalPos()),Ge.bumpVerticalPos(ue.boxMargin),gb(u,Ge.getVerticalPos()));var W=ds(u,f,y),ot=Ge.getBounds().bounds;g.debug("For line height fix Querying: #"+e+" .actor-line"),nc("#"+e+" .actor-line").attr("y2",ot.stopy);var tt=ot.stopy-ot.starty;tt<W.maxHeight&&(tt=W.maxHeight);var gt=tt+2*ue.diagramMarginY;ue.mirrorActors&&(gt=gt-ue.boxMargin+ue.bottomMarginAdj);var ht=ot.stopx-ot.startx;ht<W.maxWidth&&(ht=W.maxWidth);var wt=ht+2*ue.diagramMarginX;x&&u.append("text").text(x).attr("x",(ot.stopx-ot.startx)/2-2*ue.diagramMarginX).attr("y",-25),$a(u,gt,wt,ue.useMaxWidth);var Tt=x?40:0;u.attr("viewBox",ot.startx-ue.diagramMarginX+" -"+(ue.diagramMarginY+Tt)+" "+wt+" "+(gt+Tt)),g.debug("models:",Ge.models)}};var Nf=h(3584),bb=h.n(Nf);function Z2(t){return Z2=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},Z2(t)}var k0=function(t){return JSON.parse(JSON.stringify(t))},T0=[],n=function t(e,r,a){if(r.stmt==="relation")t(e,r.state1,!0),t(e,r.state2,!1);else if(r.stmt==="state"&&r.id==="[*]"&&(r.id=a?e.id+"_start":e.id+"_end",r.start=a),r.doc){var c=[],u=0,f=[];for(u=0;u<r.doc.length;u++)if(r.doc[u].type==="divider"){var y=k0(r.doc[u]);y.doc=k0(f),c.push(y),f=[]}else f.push(r.doc[u]);if(c.length>0&&f.length>0){var w={stmt:"state",id:o3(),type:"divider",doc:k0(f)};c.push(k0(w)),r.doc=c}r.doc.forEach(function(x){return t(r,x,!0)})}},i={root:{relations:[],states:{},documents:{}}},o=i.root,s=0,l=function(t,e,r,a,c){o.states[t]===void 0?o.states[t]={id:t,descriptions:[],type:e,doc:r,note:c}:(o.states[t].doc||(o.states[t].doc=r),o.states[t].type||(o.states[t].type=e)),a&&(g.info("Adding state ",t,a),typeof a=="string"&&v(t,a.trim()),Z2(a)==="object"&&a.forEach(function(u){return v(t,u.trim())})),c&&(o.states[t].note=c,o.states[t].note.text=lr.sanitizeText(o.states[t].note.text,Jt()))},p=function(){o=(i={root:{relations:[],states:{},documents:{}}}).root,o=i.root,s=0,N=[]},b=function(t,e,r){var a=t,c=e,u="default",f="default";t==="[*]"&&(a="start"+ ++s,u="start"),e==="[*]"&&(c="end"+s,f="end"),l(a,u),l(c,f),o.relations.push({id1:a,id2:c,title:lr.sanitizeText(r,Jt())})},v=function(t,e){var r=o.states[t],a=e;a[0]===":"&&(a=a.substr(1).trim()),r.descriptions.push(lr.sanitizeText(a,Jt()))},T=0,N=[],B="TB";const F={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().state},addState:l,clear:p,getState:function(t){return o.states[t]},getStates:function(){return o.states},getRelations:function(){return o.relations},getClasses:function(){return N},getDirection:function(){return B},addRelation:b,getDividerId:function(){return"divider-id-"+ ++T},setDirection:function(t){B=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){g.info("Documents = ",i)},getRootDoc:function(){return T0},setRootDoc:function(t){g.info("Setting root doc",t),T0=t},getRootDocV2:function(){return n({id:"root"},{id:"root",doc:T0},!0),{id:"root",doc:T0}},extract:function(t){var e;e=t.doc?t.doc:t,g.info(e),p(),g.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&l(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&b(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var O={};function z(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}var U,Q=function(t,e,r){var a,c=Jt().state.padding,u=2*Jt().state.padding,f=t.node().getBBox(),y=f.width,w=f.x,x=t.append("text").attr("x",0).attr("y",Jt().state.titleShift).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(e.id),D=x.node().getBBox().width+u,j=Math.max(D,y);j===y&&(j+=u);var P=t.node().getBBox();e.doc,a=w-c,D>y&&(a=(y-j)/2+c),Math.abs(w-P.x)<c&&D>y&&(a=w-(D-y)/2);var W=1-Jt().state.textHeight;return t.insert("rect",":first-child").attr("x",a).attr("y",W).attr("class",r?"alt-composit":"composit").attr("width",j).attr("height",P.height+Jt().state.textHeight+Jt().state.titleShift+1).attr("rx","0"),x.attr("x",a+c),D<=y&&x.attr("x",w+(j-u)/2-D/2+c),t.insert("rect",":first-child").attr("x",a).attr("y",Jt().state.titleShift-Jt().state.textHeight-Jt().state.padding).attr("width",j).attr("height",3*Jt().state.textHeight).attr("rx",Jt().state.radius),t.insert("rect",":first-child").attr("x",a).attr("y",Jt().state.titleShift-Jt().state.textHeight-Jt().state.padding).attr("width",j).attr("height",P.height+3+2*Jt().state.textHeight).attr("rx",Jt().state.radius),t},Z=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",Jt().state.padding),a=function(f,y,w,x){var D=0,j=x.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var P,W=f.replace(/\r\n/g,"<br/>"),ot=(W=W.replace(/\n/g,"<br/>")).split(lr.lineBreakRegex),tt=1.25*Jt().state.noteMargin,gt=function(Tt,Ft){var Gt=typeof Symbol!="undefined"&&Tt[Symbol.iterator]||Tt["@@iterator"];if(!Gt){if(Array.isArray(Tt)||(Gt=function(Ct,yt){if(Ct){if(typeof Ct=="string")return z(Ct,yt);var Rt=Object.prototype.toString.call(Ct).slice(8,-1);return Rt==="Object"&&Ct.constructor&&(Rt=Ct.constructor.name),Rt==="Map"||Rt==="Set"?Array.from(Ct):Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt)?z(Ct,yt):void 0}}(Tt))||Ft&&Tt&&typeof Tt.length=="number"){Gt&&(Tt=Gt);var Et=0,ee=function(){};return{s:ee,n:function(){return Et>=Tt.length?{done:!0}:{done:!1,value:Tt[Et++]}},e:function(Ct){throw Ct},f:ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re,kt=!0,Lt=!1;return{s:function(){Gt=Gt.call(Tt)},n:function(){var Ct=Gt.next();return kt=Ct.done,Ct},e:function(Ct){Lt=!0,re=Ct},f:function(){try{kt||Gt.return==null||Gt.return()}finally{if(Lt)throw re}}}}(ot);try{for(gt.s();!(P=gt.n()).done;){var ht=P.value.trim();if(ht.length>0){var wt=j.append("tspan");wt.text(ht),tt===0&&(tt+=wt.node().getBBox().height),D+=tt,wt.attr("x",0+Jt().state.noteMargin),wt.attr("y",0+D+1.25*Jt().state.noteMargin)}}}catch(Tt){gt.e(Tt)}finally{gt.f()}return{textWidth:j.node().getBBox().width,textHeight:D}}(t,0,0,e.append("g")),c=a.textWidth,u=a.textHeight;return r.attr("height",u+2*Jt().state.noteMargin),r.attr("width",c+2*Jt().state.noteMargin),r},G=function(t,e){var r=e.id,a={id:r,label:e.id,width:0,height:0},c=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&function(y){y.append("circle").attr("class","start-state").attr("r",Jt().state.sizeUnit).attr("cx",Jt().state.padding+Jt().state.sizeUnit).attr("cy",Jt().state.padding+Jt().state.sizeUnit)}(c),e.type==="end"&&function(y){y.append("circle").attr("class","end-state-outer").attr("r",Jt().state.sizeUnit+Jt().state.miniPadding).attr("cx",Jt().state.padding+Jt().state.sizeUnit+Jt().state.miniPadding).attr("cy",Jt().state.padding+Jt().state.sizeUnit+Jt().state.miniPadding),y.append("circle").attr("class","end-state-inner").attr("r",Jt().state.sizeUnit).attr("cx",Jt().state.padding+Jt().state.sizeUnit+2).attr("cy",Jt().state.padding+Jt().state.sizeUnit+2)}(c),e.type!=="fork"&&e.type!=="join"||function(y,w){var x=Jt().state.forkWidth,D=Jt().state.forkHeight;if(w.parentId){var j=x;x=D,D=j}y.append("rect").style("stroke","black").style("fill","black").attr("width",x).attr("height",D).attr("x",Jt().state.padding).attr("y",Jt().state.padding)}(c,e),e.type==="note"&&Z(e.note.text,c),e.type==="divider"&&function(y){y.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Jt().state.textHeight).attr("class","divider").attr("x2",2*Jt().state.textHeight).attr("y1",0).attr("y2",0)}(c),e.type==="default"&&e.descriptions.length===0&&function(y,w){var x=y.append("text").attr("x",2*Jt().state.padding).attr("y",Jt().state.textHeight+2*Jt().state.padding).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(w.id).node().getBBox();y.insert("rect",":first-child").attr("x",Jt().state.padding).attr("y",Jt().state.padding).attr("width",x.width+2*Jt().state.padding).attr("height",x.height+2*Jt().state.padding).attr("rx",Jt().state.radius)}(c,e),e.type==="default"&&e.descriptions.length>0&&function(y,w){var x=y.append("text").attr("x",2*Jt().state.padding).attr("y",Jt().state.textHeight+1.3*Jt().state.padding).attr("font-size",Jt().state.fontSize).attr("class","state-title").text(w.descriptions[0]).node().getBBox(),D=x.height,j=y.append("text").attr("x",Jt().state.padding).attr("y",D+.4*Jt().state.padding+Jt().state.dividerMargin+Jt().state.textHeight).attr("class","state-description"),P=!0,W=!0;w.descriptions.forEach(function(ht){P||(function(wt,Tt,Ft){var Gt=wt.append("tspan").attr("x",2*Jt().state.padding).text(Tt);Ft||Gt.attr("dy",Jt().state.textHeight)}(j,ht,W),W=!1),P=!1});var ot=y.append("line").attr("x1",Jt().state.padding).attr("y1",Jt().state.padding+D+Jt().state.dividerMargin/2).attr("y2",Jt().state.padding+D+Jt().state.dividerMargin/2).attr("class","descr-divider"),tt=j.node().getBBox(),gt=Math.max(tt.width,x.width);ot.attr("x2",gt+3*Jt().state.padding),y.insert("rect",":first-child").attr("x",Jt().state.padding).attr("y",Jt().state.padding).attr("width",gt+2*Jt().state.padding).attr("height",tt.height+D+2*Jt().state.padding).attr("rx",Jt().state.radius)}(c,e);var u,f=c.node().getBBox();return a.width=f.width+2*Jt().state.padding,a.height=f.height+2*Jt().state.padding,u=a,O[r]=u,a},rt=0;Nf.parser.yy=F;var et={},ut=function t(e,r,a,c,u,f){var y,w=new(Bi()).Graph({compound:!0,multigraph:!0}),x=!0;for(y=0;y<e.length;y++)if(e[y].stmt==="relation"){x=!1;break}a?w.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:U.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):w.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:U.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),w.setDefaultEdgeLabel(function(){return{}}),F.extract(e);for(var D=F.getStates(),j=F.getRelations(),P=Object.keys(D),W=0;W<P.length;W++){var ot=D[P[W]];a&&(ot.parentId=a);var tt=void 0;if(ot.doc){var gt=r.append("g").attr("id",ot.id).attr("class","stateGroup");tt=t(ot.doc,gt,ot.id,!c,u,f);var ht=(gt=Q(gt,ot,c)).node().getBBox();tt.width=ht.width,tt.height=ht.height+U.padding/2,et[ot.id]={y:U.compositTitleSize}}else tt=G(r,ot);if(ot.note){var wt={descriptions:[],id:ot.id+"-note",note:ot.note,type:"note"},Tt=G(r,wt);ot.note.position==="left of"?(w.setNode(tt.id+"-note",Tt),w.setNode(tt.id,tt)):(w.setNode(tt.id,tt),w.setNode(tt.id+"-note",Tt)),w.setParent(tt.id,tt.id+"-group"),w.setParent(tt.id+"-note",tt.id+"-group")}else w.setNode(tt.id,tt)}g.debug("Count=",w.nodeCount(),w);var Ft=0;j.forEach(function(re){var kt;Ft++,g.debug("Setting edge",re),w.setEdge(re.id1,re.id2,{relation:re,width:(kt=re.title,kt?kt.length*U.fontSizeFactor:1),height:U.labelHeight*lr.getRows(re.title).length,labelpos:"c"},"id"+Ft)}),ef().layout(w),g.debug("Graph after layout",w.nodes());var Gt=r.node();w.nodes().forEach(function(re){re!==void 0&&w.node(re)!==void 0?(g.warn("Node "+re+": "+JSON.stringify(w.node(re))),u.select("#"+Gt.id+" #"+re).attr("transform","translate("+(w.node(re).x-w.node(re).width/2)+","+(w.node(re).y+(et[re]?et[re].y:0)-w.node(re).height/2)+" )"),u.select("#"+Gt.id+" #"+re).attr("data-x-shift",w.node(re).x-w.node(re).width/2),f.querySelectorAll("#"+Gt.id+" #"+re+" .divider").forEach(function(kt){var Lt=kt.parentElement,Ct=0,yt=0;Lt&&(Lt.parentElement&&(Ct=Lt.parentElement.getBBox().width),yt=parseInt(Lt.getAttribute("data-x-shift"),10),Number.isNaN(yt)&&(yt=0)),kt.setAttribute("x1",0-yt+8),kt.setAttribute("x2",Ct-yt-8)})):g.debug("No Node "+re+": "+JSON.stringify(w.node(re)))});var Et=Gt.getBBox();w.edges().forEach(function(re){re!==void 0&&w.edge(re)!==void 0&&(g.debug("Edge "+re.v+" -> "+re.w+": "+JSON.stringify(w.edge(re))),function(kt,Lt,Ct){Lt.points=Lt.points.filter(function(pn){return!Number.isNaN(pn.y)});var yt=Lt.points,Rt=oo().x(function(pn){return pn.x}).y(function(pn){return pn.y}).curve(Rr),bt=kt.append("path").attr("d",Rt(yt)).attr("id","edge"+rt).attr("class","transition"),xe="";if(Jt().state.arrowMarkerAbsolute&&(xe=(xe=(xe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),bt.attr("marker-end","url("+xe+"#"+function(pn){switch(pn){case F.relationType.AGGREGATION:return"aggregation";case F.relationType.EXTENSION:return"extension";case F.relationType.COMPOSITION:return"composition";case F.relationType.DEPENDENCY:return"dependency"}}(F.relationType.DEPENDENCY)+"End)"),Ct.title!==void 0){for(var Te=kt.append("g").attr("class","stateLabel"),Ut=Zn.calcLabelPosition(Lt.points),Ee=Ut.x,Ce=Ut.y,_e=lr.getRows(Ct.title),fe=0,je=[],Fe=0,Je=0,yn=0;yn<=_e.length;yn++){var He=Te.append("text").attr("text-anchor","middle").text(_e[yn]).attr("x",Ee).attr("y",Ce+fe),fr=He.node().getBBox();if(Fe=Math.max(Fe,fr.width),Je=Math.min(Je,fr.x),g.info(fr.x,Ee,Ce+fe),fe===0){var Er=He.node().getBBox();fe=Er.height,g.info("Title height",fe,Ce)}je.push(He)}var Bn=fe*_e.length;if(_e.length>1){var qr=(_e.length-1)*fe*.5;je.forEach(function(pn,On){return pn.attr("y",Ce+On*fe-qr)}),Bn=fe*_e.length}var hr=Te.node().getBBox();Te.insert("rect",":first-child").attr("class","box").attr("x",Ee-Fe/2-Jt().state.padding/2).attr("y",Ce-Bn/2-Jt().state.padding/2-3.5).attr("width",Fe+Jt().state.padding).attr("height",Bn+Jt().state.padding),g.info(hr)}rt++}(r,w.edge(re),w.edge(re).relation))}),Et=Gt.getBBox();var ee={id:a||"root",label:a||"root",width:0,height:0};return ee.width=Et.width+2*U.padding,ee.height=Et.height+2*U.padding,g.debug("Doc rendered",ee,w),ee};const Pt=function(t,e){U=Jt().state;var r,a=Jt().securityLevel;a==="sandbox"&&(r=Se("#i"+e));var c=Se(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?r.nodes()[0].contentDocument:document;Nf.parser.yy.clear(),Nf.parser.parse(t),g.debug("Rendering diagram "+t);var f=c.select("[id='".concat(e,"']"));f.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"),new(Bi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var y=F.getRootDoc();ut(y,f,void 0,!1,c,u);var w=U.padding,x=f.node().getBBox(),D=x.width+2*w,j=x.height+2*w;$a(f,j,1.75*D,U.useMaxWidth),f.attr("viewBox","".concat(x.x-U.padding," ").concat(x.y-U.padding," ")+D+" "+j)};var Vt={},qt={},be=function(t,e,r,a){if(r.id!=="root"){var c="rect";r.start===!0&&(c="start"),r.start===!1&&(c="end"),r.type!=="default"&&(c=r.type),qt[r.id]||(qt[r.id]={id:r.id,shape:c,description:lr.sanitizeText(r.id,Jt()),classes:"statediagram-state"}),r.description&&(Array.isArray(qt[r.id].description)?(qt[r.id].shape="rectWithTitle",qt[r.id].description.push(r.description)):qt[r.id].description.length>0?(qt[r.id].shape="rectWithTitle",qt[r.id].description===r.id?qt[r.id].description=[r.description]:qt[r.id].description=[qt[r.id].description,r.description]):(qt[r.id].shape="rect",qt[r.id].description=r.description),qt[r.id].description=lr.sanitizeTextOrArray(qt[r.id].description,Jt())),qt[r.id].description.length===1&&qt[r.id].shape==="rectWithTitle"&&(qt[r.id].shape="rect"),!qt[r.id].type&&r.doc&&(g.info("Setting cluster for ",r.id,ct(r)),qt[r.id].type="group",qt[r.id].dir=ct(r),qt[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",qt[r.id].classes=qt[r.id].classes+" "+(a?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var u={labelStyle:"",shape:qt[r.id].shape,labelText:qt[r.id].description,classes:qt[r.id].classes,style:"",id:r.id,dir:qt[r.id].dir,domId:"state-"+r.id+"-"+Yt,type:qt[r.id].type,padding:15};if(r.note){var f={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+Yt,domId:"state-"+r.id+"----note-"+Yt,type:qt[r.id].type,padding:15},y={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:qt[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+Yt,type:"group",padding:0};Yt++,t.setNode(r.id+"----parent",y),t.setNode(f.id,f),t.setNode(r.id,u),t.setParent(r.id,r.id+"----parent"),t.setParent(f.id,r.id+"----parent");var w=r.id,x=f.id;r.note.position==="left of"&&(w=f.id,x=r.id),t.setEdge(w,x,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(r.id,u)}e&&e.id!=="root"&&(g.trace("Setting node ",r.id," to be child of its parent ",e.id),t.setParent(r.id,e.id)),r.doc&&(g.trace("Adding nodes children "),ce(t,r,r.doc,!a))},Yt=0,ce=function(t,e,r,a){g.trace("items",r),r.forEach(function(c){if(c.stmt==="state"||c.stmt==="default")be(t,e,c,a);else if(c.stmt==="relation"){be(t,e,c.state1,a),be(t,e,c.state2,a);var u={id:"edge"+Yt,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:lr.sanitizeText(c.description,Jt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},f=c.state1.id,y=c.state2.id;t.setEdge(f,y,u,Yt),Yt++}})},ct=function(t,e){var r=e||"TB";if(t.doc)for(var a=0;a<t.doc.length;a++){var c=t.doc[a];c.stmt==="dir"&&(r=c.value)}return r};const xt=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Vt[e[r]]=t[e[r]]};function ie(t){return function(e){if(Array.isArray(e))return Kt(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return Kt(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Kt(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Kt(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}var ae="",Be="",$e=[],dn=[],Fn=[],ir=function(){for(var t=!0,e=0;e<Fn.length;e++)Fn[e].processed,t=t&&Fn[e].processed;return t};const rn={parseDirective:function(t,e,r){ta.parseDirective(this,t,e,r)},getConfig:function(){return Jt().journey},clear:function(){$e.length=0,dn.length=0,Be="",ae="",Fn.length=0},setTitle:function(t){ae=t},getTitle:function(){return ae},addSection:function(t){Be=t,$e.push(t)},getSections:function(){return $e},getTasks:function(){for(var t=ir(),e=0;!t&&e<100;)t=ir(),e++;return dn.push.apply(dn,Fn),dn},addTask:function(t,e){var r=e.substr(1).split(":"),a=0,c=[];r.length===1?(a=Number(r[0]),c=[]):(a=Number(r[0]),c=r[1].split(","));var u=c.map(function(y){return y.trim()}),f={section:Be,type:Be,people:u,task:t,score:a};Fn.push(f)},addTaskOrg:function(t){var e={section:Be,type:Be,description:t,task:t,classes:[]};dn.push(e)},getActors:function(){return t=[],dn.forEach(function(e){e.people&&t.push.apply(t,ie(e.people))}),ie(new Set(t)).sort();var t}};var tr=h(9763),Dn=h.n(tr),Sn=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},sr=function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},Hi=-1,bi=function(){function t(c,u,f,y,w,x,D,j){a(u.append("text").attr("x",f+w/2).attr("y",y+x/2+5).style("font-color",j).style("text-anchor","middle").text(c),D)}function e(c,u,f,y,w,x,D,j,P){for(var W=j.taskFontSize,ot=j.taskFontFamily,tt=c.split(/<br\s*\/?>/gi),gt=0;gt<tt.length;gt++){var ht=gt*W-W*(tt.length-1)/2,wt=u.append("text").attr("x",f+w/2).attr("y",y).attr("fill",P).style("text-anchor","middle").style("font-size",W).style("font-family",ot);wt.append("tspan").attr("x",f+w/2).attr("dy",ht).text(tt[gt]),wt.attr("y",y+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(wt,D)}}function r(c,u,f,y,w,x,D,j){var P=u.append("switch"),W=P.append("foreignObject").attr("x",f).attr("y",y).attr("width",w).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");W.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,f,y,w,x,D,j),a(W,D)}function a(c,u){for(var f in u)f in u&&c.attr(f,u[f])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const $s=sr,Tc=function(t,e,r){var a=t.append("g"),c={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=r.width,c.height=r.height,c.class="journey-section section-type-"+e.num,c.rx=3,c.ry=3,Sn(a,c),bi(r)(e.text,a,c.x,c.y,c.width,c.height,{class:"journey-section section-type-"+e.num},r,e.colour)},Df=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class!==void 0&&a.attr("class",e.class);var c=a.append("tspan");return c.attr("x",e.x+2*e.textMargin),c.text(r),a},Of=function(t,e,r){var a,c,u,f=e.x+r.width/2,y=t.append("g");Hi++,y.append("line").attr("id","task"+Hi).attr("x1",f).attr("y1",e.y).attr("x2",f).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),a=y,c={cx:f,cy:300+30*(5-e.score),score:e.score},a.append("circle").attr("cx",c.cx).attr("cy",c.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(u=a.append("g")).append("circle").attr("cx",c.cx-5).attr("cy",c.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),u.append("circle").attr("cx",c.cx+5).attr("cy",c.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),c.score>3?function(D){var j=Bp().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);D.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+c.cx+","+(c.cy+2)+")")}(u):c.score<3?function(D){var j=Bp().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);D.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+c.cx+","+(c.cy+7)+")")}(u):function(D){D.append("line").attr("class","mouth").attr("stroke",2).attr("x1",c.cx-5).attr("y1",c.cy+7).attr("x2",c.cx+5).attr("y2",c.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(u);var w={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};w.x=e.x,w.y=e.y,w.fill=e.fill,w.width=r.width,w.height=r.height,w.class="task task-type-"+e.num,w.rx=3,w.ry=3,Sn(y,w);var x=e.x+14;e.people.forEach(function(D){var j=e.actors[D].color,P={cx:x,cy:e.y,r:7,fill:j,stroke:"#000",title:D,pos:e.actors[D].position};sr(y,P),x+=10}),bi(r)(e.task,y,w.x,w.y,w.width,w.height,{class:"task"},r,e.colour)};tr.parser.yy=rn;var ps={},E0=Jt().journey,lo=Jt().journey.leftMargin,Ka={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,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var c=Jt().journey,u=this,f=0;this.sequenceItems.forEach(function(y){f++;var w=u.sequenceItems.length-f+1;u.updateVal(y,"starty",e-w*c.boxMargin,Math.min),u.updateVal(y,"stopy",a+w*c.boxMargin,Math.max),u.updateVal(Ka.data,"startx",t-w*c.boxMargin,Math.min),u.updateVal(Ka.data,"stopx",r+w*c.boxMargin,Math.max),u.updateVal(y,"startx",t-w*c.boxMargin,Math.min),u.updateVal(y,"stopx",r+w*c.boxMargin,Math.max),u.updateVal(Ka.data,"starty",e-w*c.boxMargin,Math.min),u.updateVal(Ka.data,"stopy",a+w*c.boxMargin,Math.max)})},insert:function(t,e,r,a){var c=Math.min(t,r),u=Math.max(t,r),f=Math.min(e,a),y=Math.max(e,a);this.updateVal(Ka.data,"startx",c,Math.min),this.updateVal(Ka.data,"starty",f,Math.min),this.updateVal(Ka.data,"stopx",u,Math.max),this.updateVal(Ka.data,"stopy",y,Math.max),this.updateBounds(c,f,u,y)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Q2=E0.sectionFills,_b=E0.sectionColours;const Ja=function(t){Object.keys(t).forEach(function(e){E0[e]=t[e]})},g6=function(t,e){var r=Jt().journey;tr.parser.yy.clear(),tr.parser.parse(t+`
`);var a,c=Jt().securityLevel;c==="sandbox"&&(a=Se("#i"+e));var u=Se(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument,Ka.init();var f=u.select("#"+e);f.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),f.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");var y=tr.parser.yy.getTasks(),w=tr.parser.yy.getTitle(),x=tr.parser.yy.getActors();for(var D in ps)delete ps[D];var j=0;x.forEach(function(gt){ps[gt]={color:r.actorColours[j%r.actorColours.length],position:j},j++}),function(gt){var ht=Jt().journey,wt=60;Object.keys(ps).forEach(function(Tt){var Ft=ps[Tt].color,Gt={cx:20,cy:wt,r:7,fill:Ft,stroke:"#000",pos:ps[Tt].position};$s(gt,Gt);var Et={x:40,y:wt+7,fill:"#666",text:Tt,textMargin:5|ht.boxTextMargin};Df(gt,Et),wt+=20})}(f),Ka.insert(0,0,lo,50*Object.keys(ps).length),function(gt,ht,wt){for(var Tt=Jt().journey,Ft="",Gt=wt+(2*Tt.height+Tt.diagramMarginY),Et=0,ee="#CCC",re="black",kt=0,Lt=0;Lt<ht.length;Lt++){var Ct=ht[Lt];if(Ft!==Ct.section){ee=Q2[Et%Q2.length],kt=Et%Q2.length,re=_b[Et%_b.length];var yt={x:Lt*Tt.taskMargin+Lt*Tt.width+lo,y:50,text:Ct.section,fill:ee,num:kt,colour:re};Tc(gt,yt,Tt),Ft=Ct.section,Et++}var Rt=Ct.people.reduce(function(bt,xe){return ps[xe]&&(bt[xe]=ps[xe]),bt},{});Ct.x=Lt*Tt.taskMargin+Lt*Tt.width+lo,Ct.y=Gt,Ct.width=Tt.diagramMarginX,Ct.height=Tt.diagramMarginY,Ct.colour=re,Ct.fill=ee,Ct.num=kt,Ct.actors=Rt,Of(gt,Ct,Tt),Ka.insert(Ct.x,Ct.y,Ct.x+Ct.width+Tt.taskMargin,450)}}(f,y,0);var P=Ka.getBounds();w&&f.append("text").text(w).attr("x",lo).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var W=P.stopy-P.starty+2*r.diagramMarginY,ot=lo+P.stopx+2*r.diagramMarginX;$a(f,W,ot,r.useMaxWidth),f.append("line").attr("x1",lo).attr("y1",4*r.height).attr("x2",ot-lo-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var tt=w?70:0;f.attr("viewBox","".concat(P.startx," -25 ").concat(ot," ").concat(W+tt)),f.attr("preserveAspectRatio","xMinYMin meet"),f.attr("height",W+tt+25)};var y6={};const O_=function(t){return`g.classGroup text {
fill: `.concat(t.nodeBorder,`;
fill: `).concat(t.classText,`;
stroke: none;
font-family: `).concat(t.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(t.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(t.mainBkg,`;
}
.label text {
fill: `).concat(t.classText,`;
}
.edgeLabel .label span {
background: `).concat(t.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(t.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(t.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},W_=function(t){return`.label {
font-family: `.concat(t.fontFamily,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.cluster-label text {
fill: `).concat(t.titleColor,`;
}
.cluster-label span {
color: `).concat(t.titleColor,`;
}
.label text,span {
fill: `).concat(t.nodeTextColor||t.textColor,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(t.edgeLabelBackground,`;
fill: `).concat(t.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(t.clusterBkg,`;
stroke: `).concat(t.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
.cluster span {
color: `).concat(t.titleColor,`;
}
/* .cluster div {
color: `).concat(t.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(t.fontFamily,`;
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},$_=function(t){return`
defs #statediagram-barbEnd {
fill: `.concat(t.transitionColor,`;
stroke: `).concat(t.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(t.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(t.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(t.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(t.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(t.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
text {
fill: `).concat(t.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(t.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(t.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(t.innerEndBackground,`;
stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(t.compositeBackground||t.background,`;
// stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(t.stateBkg||t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(t.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(t.compositeTitleBackground,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(t.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(t.compositeBackground||t.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(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: `).concat(t.altBackground?t.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(t.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(t.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(t.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(t.lineColor,`;
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
`)};var m6={flowchart:W_,"flowchart-v2":W_,sequence:function(t){return`.actor {
stroke: `.concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(t.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(t.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(t.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(t.signalColor,`;
}
#arrowhead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.sequenceNumber {
fill: `).concat(t.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(t.signalColor,`;
}
#crosshead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.messageText {
fill: `).concat(t.signalTextColor,`;
stroke: `).concat(t.signalTextColor,`;
}
.labelBox {
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(t.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(t.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(t.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation1 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation2 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(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: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(t){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(t.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(t.sectionBkgColor,`;
}
.section2 {
fill: `).concat(t.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(t.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: `).concat(t.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(t.todayLineColor,`;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: `).concat(t.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(t.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(t.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(t.taskBkgColor,`;
stroke: `).concat(t.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(t.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(t.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(t.activeTaskBkgColor,`;
stroke: `).concat(t.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(t.doneTaskBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(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: `).concat(t.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(t.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:O_,"classDiagram-v2":O_,class:O_,stateDiagram:$_,state:$_,git:function(){return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`},info:function(){return""},pie:function(t){return`
.pieCircle{
stroke: `.concat(t.pieStrokeColor,`;
stroke-width : `).concat(t.pieStrokeWidth,`;
opacity : `).concat(t.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(t.pieTitleTextSize,`;
fill: `).concat(t.pieTitleTextColor,`;
font-family: `).concat(t.fontFamily,`;
}
.slice {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.pieSectionTextColor,`;
font-size:`).concat(t.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(t.pieLegendTextColor,`;
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.pieLegendTextSize,`;
}
`)},er:function(t){return`
.entityBox {
fill: `.concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(t.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(t.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(t.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(t.lineColor,`;
}
`)},journey:function(t){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(t.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(t.textColor,`
}
.legend {
fill: `).concat(t.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(t.textColor,`
}
.face {
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(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: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
}
.actor-0 {
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
}
.actor-1 {
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
}
.actor-2 {
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
}
.actor-3 {
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
}
.actor-4 {
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
}
.actor-5 {
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
}
}
`)},requirement:function(t){return`
marker {
fill: `.concat(t.relationColor,`;
stroke: `).concat(t.relationColor,`;
}
marker.cross {
stroke: `).concat(t.lineColor,`;
}
svg {
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.fontSize,`;
}
.reqBox {
fill: `).concat(t.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(t.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(t.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(t.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(t.relationLabelColor,`;
}
`)}};function B_(t){return B_=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},B_(t)}var V_=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},K2={};function G_(t){var e;gf(t.git),js(t.flowchart),q3(t.flowchart),t.sequenceDiagram!==void 0&&Mf.setConf(zi(t.sequence,t.sequenceDiagram)),Mf.setConf(t.sequence),t.gantt,p2(t.class),t.state,xt(t.state),m0(t.class),w2(t.er),Ja(t.journey),lu(t.requirement),e=t.class,Object.keys(e).forEach(function(r){y6[r]=e[r]})}var v6=Object.freeze({render:function(t,e,r,a){Ld();var c=e,u=Zn.detectInit(c);u&&(Dd(u),l3(u));var f=Jt();e.length>f.maxTextSize&&(c="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var y=Se("body");if(a!==void 0){if(f.securityLevel==="sandbox"){var w=Se("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Se(w.nodes()[0].contentDocument.body)).node().style.margin=0}if(a.innerHTML="",f.securityLevel==="sandbox"){var x=Se(a).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Se(x.nodes()[0].contentDocument.body)).node().style.margin=0}else y=Se(a);y.append("div").attr("id","d"+t).attr("style","font-family: "+f.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var D,j=document.getElementById(t);if(j&&j.remove(),(D=f.securityLevel!=="sandbox"?document.querySelector("#d"+t):document.querySelector("#i"+t))&&D.remove(),f.securityLevel==="sandbox"){var P=Se("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Se(P.nodes()[0].contentDocument.body)).node().style.margin=0}else y=Se("body");y.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}c=c.replace(/style.*:\S*#.*;/g,function(yt){return yt.substring(0,yt.length-1)}).replace(/classDef.*:\S*#.*;/g,function(yt){return yt.substring(0,yt.length-1)}).replace(/#\w+;/g,function(yt){var Rt=yt.substring(1,yt.length-1);return/^\+?\d+$/.test(Rt)?"\uFB02\xB0\xB0"+Rt+"\xB6\xDF":"\uFB02\xB0"+Rt+"\xB6\xDF"});var W=y.select("#d"+t).node(),ot=Zn.detectType(c,f),tt=W.firstChild,gt=tt.firstChild,ht="";if(f.themeCSS!==void 0&&(ht+=`
`.concat(f.themeCSS)),f.fontFamily!==void 0&&(ht+=`
:root { --mermaid-font-family: `.concat(f.fontFamily,"}")),f.altFontFamily!==void 0&&(ht+=`
:root { --mermaid-alt-font-family: `.concat(f.altFontFamily,"}")),ot==="flowchart"||ot==="flowchart-v2"||ot==="graph"){var wt=function(yt){g.info("Extracting classes"),rr.clear();try{var Rt=Jd().parser;return Rt.yy=rr,Rt.parse(yt),rr.getClasses()}catch{return}}(c),Tt=f.htmlLabels||f.flowchart.htmlLabels;for(var Ft in wt)Tt?(ht+=`
.`.concat(Ft," > * { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),ht+=`
.`.concat(Ft," span { ").concat(wt[Ft].styles.join(" !important; ")," !important; }")):(ht+=`
.`.concat(Ft," path { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),ht+=`
.`.concat(Ft," rect { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),ht+=`
.`.concat(Ft," polygon { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),ht+=`
.`.concat(Ft," ellipse { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),ht+=`
.`.concat(Ft," circle { ").concat(wt[Ft].styles.join(" !important; ")," !important; }"),wt[Ft].textStyles&&(ht+=`
.`.concat(Ft," tspan { ").concat(wt[Ft].textStyles.join(" !important; ")," !important; }")))}var Gt=function(yt,Rt){return Hg(Xh("".concat(yt,"{").concat(Rt,"}")),F5)}("#".concat(t),function(yt,Rt,bt){return` {
font-family: `.concat(bt.fontFamily,`;
font-size: `).concat(bt.fontSize,`;
fill: `).concat(bt.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(bt.errorBkgColor,`;
}
.error-text {
fill: `).concat(bt.errorTextColor,`;
stroke: `).concat(bt.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: `).concat(bt.lineColor,`;
stroke: `).concat(bt.lineColor,`;
}
.marker.cross {
stroke: `).concat(bt.lineColor,`;
}
svg {
font-family: `).concat(bt.fontFamily,`;
font-size: `).concat(bt.fontSize,`;
}
`).concat(m6[yt](bt),`
`).concat(Rt,`
`)}(ot,ht,f.themeVariables)),Et=document.createElement("style");Et.innerHTML="#".concat(t," ")+Gt,tt.insertBefore(Et,gt);try{switch(ot){case"git":f.flowchart.arrowMarkerAbsolute=f.arrowMarkerAbsolute,gf(f.git),function(yt,Rt,bt){try{var xe=zs().parser;xe.yy=cu,xe.yy.clear();var Te,Ut=Jt().securityLevel;Ut==="sandbox"&&(Te=Se("#i"+Rt));var Ee=Se(Ut==="sandbox"?Te.nodes()[0].contentDocument.body:"body");Ut==="sandbox"&&Te.nodes()[0].contentDocument,g.debug("in gitgraph renderer",yt+`
`,"id:",Rt,bt),xe.parse(yt+`
`),Wn=Object.assign(Wn,Q3,cu.getOptions()),g.debug("effective options",Wn);var Ce=cu.getDirection();Po=cu.getCommits();var _e=cu.getBranchesAsObjArray();Ce==="BT"&&(Wn.nodeLabel.x=_e.length*Wn.branchOffset,Wn.nodeLabel.width="100%",Wn.nodeLabel.y=-2*Wn.nodeRadius);var fe=Ee.select('[id="'.concat(Rt,'"]'));for(var je in function(Je){Je.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Wn.nodeRadius).attr("cx",0).attr("cy",0),Je.select("#def-commit").append("foreignObject").attr("width",Wn.nodeLabel.width).attr("height",Wn.nodeLabel.height).attr("x",Wn.nodeLabel.x).attr("y",Wn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(fe),El=1,_e){var Fe=_e[je];d0(fe,Fe.commit.id,_e,Ce),J3(fe,Fe.commit,Ce),El++}fe.attr("height",function(){return Ce==="BT"?Object.keys(Po).length*Wn.nodeSpacing:(_e.length+1)*Wn.branchOffset})}catch(Je){g.error("Error while rendering gitgraph"),g.error(Je.message)}}(c,t,!1);break;case"flowchart":f.flowchart.arrowMarkerAbsolute=f.arrowMarkerAbsolute,js(f.flowchart),t0(c,t);break;case"flowchart-v2":f.flowchart.arrowMarkerAbsolute=f.arrowMarkerAbsolute,q3(f.flowchart),H3(c,t);break;case"sequence":f.sequence.arrowMarkerAbsolute=f.arrowMarkerAbsolute,f.sequenceDiagram?(Mf.setConf(Object.assign(f.sequence,f.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):Mf.setConf(f.sequence),Mf.draw(c,t);break;case"gantt":f.gantt.arrowMarkerAbsolute=f.arrowMarkerAbsolute,f.gantt,g_(c,t);break;case"class":f.class.arrowMarkerAbsolute=f.arrowMarkerAbsolute,p2(f.class),g2(c,t);break;case"classDiagram":f.class.arrowMarkerAbsolute=f.arrowMarkerAbsolute,function(yt){Object.keys(yt).forEach(function(Rt){v2[Rt]=yt[Rt]})}(f.class),function(yt,Rt){g.info("Drawing class - ",Rt),uo.clear(),iu.parser.parse(yt);var bt=Jt().flowchart,xe=Jt().securityLevel;g.info("config:",bt);var Te,Ut=bt.nodeSpacing||50,Ee=bt.rankSpacing||50,Ce=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:uo.getDirection(),nodesep:Ut,ranksep:Ee,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),_e=uo.getClasses(),fe=uo.getRelations();g.info(fe),function(mr,Oa){var ka=Object.keys(mr);g.info("keys:",ka),g.info(mr),ka.forEach(function(Qn){var Nn=mr[Qn],to="";Nn.cssClasses.length>0&&(to=to+" "+Nn.cssClasses.join(" "));var fo,zo,_i={labelStyle:""},Bf=Nn.text!==void 0?Nn.text:Nn.id;Nn.type,zo="class_box",Oa.setNode(Nn.id,{labelStyle:_i.labelStyle,shape:zo,labelText:(fo=Bf,lr.sanitizeText(fo,Jt())),classData:Nn,rx:0,ry:0,class:to,style:_i.style,id:Nn.id,domId:Nn.domId,haveCallback:Nn.haveCallback,link:Nn.link,width:Nn.type==="group"?500:void 0,type:Nn.type,padding:Jt().flowchart.padding}),g.info("setNode",{labelStyle:_i.labelStyle,shape:zo,labelText:Bf,rx:0,ry:0,class:to,style:_i.style,id:Nn.id,width:Nn.type==="group"?500:void 0,type:Nn.type,padding:Jt().flowchart.padding})})}(_e,Ce),function(mr,Oa){var ka=0;mr.forEach(function(Qn){ka++;var Nn={classes:"relation"};Nn.pattern=Qn.relation.lineType==1?"dashed":"solid",Nn.id="id"+ka,Qn.type==="arrow_open"?Nn.arrowhead="none":Nn.arrowhead="normal",g.info(Nn,Qn),Nn.startLabelRight=Qn.relationTitle1==="none"?"":Qn.relationTitle1,Nn.endLabelLeft=Qn.relationTitle2==="none"?"":Qn.relationTitle2,Nn.arrowTypeStart=O3(Qn.relation.type1),Nn.arrowTypeEnd=O3(Qn.relation.type2);var to="",fo="";if(Qn.style!==void 0){var zo=mc(Qn.style);to=zo.style,fo=zo.labelStyle}else to="fill:none";Nn.style=to,Nn.labelStyle=fo,Qn.interpolate!==void 0?Nn.curve=Io(Qn.interpolate,ao):mr.defaultInterpolate!==void 0?Nn.curve=Io(mr.defaultInterpolate,ao):Nn.curve=Io(v2.curve,ao),Qn.text=Qn.title,Qn.text===void 0?Qn.style!==void 0&&(Nn.arrowheadStyle="fill: #333"):(Nn.arrowheadStyle="fill: #333",Nn.labelpos="c",Jt().flowchart.htmlLabels?(Nn.labelType="html",Nn.label='<span class="edgeLabel">'+Qn.text+"</span>"):(Nn.labelType="text",Nn.label=Qn.text.replace(lr.lineBreakRegex,`
`),Qn.style===void 0&&(Nn.style=Nn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Nn.labelStyle=Nn.labelStyle.replace("color:","fill:"))),Oa.setEdge(Qn.id1,Qn.id2,Nn,ka)})}(fe,Ce),xe==="sandbox"&&(Te=Se("#i"+Rt));var je=Se(xe==="sandbox"?Te.nodes()[0].contentDocument.body:"body"),Fe=je.select('[id="'.concat(Rt,'"]'));Fe.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var Je=je.select("#"+Rt+" g");m2(Je,Ce,["aggregation","extension","composition","dependency"],"classDiagram",Rt);var yn=Fe.node().getBBox(),He=yn.width+16,fr=yn.height+16;if(g.debug("new ViewBox 0 0 ".concat(He," ").concat(fr),"translate(".concat(8-Ce._label.marginx,", ").concat(8-Ce._label.marginy,")")),$a(Fe,fr,He,bt.useMaxWidth),Fe.attr("viewBox","0 0 ".concat(He," ").concat(fr)),Fe.select("g").attr("transform","translate(".concat(8-Ce._label.marginx,", ").concat(8-yn.y,")")),!bt.htmlLabels)for(var Er=xe==="sandbox"?Te.nodes()[0].contentDocument:document,Bn=Er.querySelectorAll('[id="'+Rt+'"] .edgeLabel .label'),qr=0;qr<Bn.length;qr++){var hr=Bn[qr],pn=hr.getBBox(),On=Er.createElementNS("http://www.w3.org/2000/svg","rect");On.setAttribute("rx",0),On.setAttribute("ry",0),On.setAttribute("width",pn.width),On.setAttribute("height",pn.height),hr.insertBefore(On,hr.firstChild)}}(c,t);break;case"state":f.class.arrowMarkerAbsolute=f.arrowMarkerAbsolute,f.state,Pt(c,t);break;case"stateDiagram":f.class.arrowMarkerAbsolute=f.arrowMarkerAbsolute,xt(f.state),function(yt,Rt){g.info("Drawing state diagram (v2)",Rt),F.clear(),qt={};var bt=bb().parser;bt.yy=F,bt.parse(yt);var xe=F.getDirection();xe===void 0&&(xe="LR");var Te=Jt().state,Ut=Te.nodeSpacing||50,Ee=Te.rankSpacing||50,Ce=Jt().securityLevel;g.info(F.getRootDocV2()),F.extract(F.getRootDocV2()),g.info(F.getRootDocV2());var _e,fe=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ct(F.getRootDocV2()),nodesep:Ut,ranksep:Ee,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});be(fe,void 0,F.getRootDocV2(),!0),Ce==="sandbox"&&(_e=Se("#i"+Rt));var je=Se(Ce==="sandbox"?_e.nodes()[0].contentDocument.body:"body"),Fe=(Ce==="sandbox"&&_e.nodes()[0].contentDocument,je.select('[id="'.concat(Rt,'"]'))),Je=je.select("#"+Rt+" g");m2(Je,fe,["barb"],"statediagram",Rt);var yn=Fe.node().getBBox(),He=yn.width+16,fr=yn.height+16;Fe.attr("class","statediagram");var Er=Fe.node().getBBox();$a(Fe,fr,1.75*He,Te.useMaxWidth);var Bn="".concat(Er.x-8," ").concat(Er.y-8," ").concat(He," ").concat(fr);g.debug("viewBox ".concat(Bn)),Fe.attr("viewBox",Bn);for(var qr=document.querySelectorAll('[id="'+Rt+'"] .edgeLabel .label'),hr=0;hr<qr.length;hr++){var pn=qr[hr],On=pn.getBBox(),mr=document.createElementNS("http://www.w3.org/2000/svg","rect");mr.setAttribute("rx",0),mr.setAttribute("ry",0),mr.setAttribute("width",On.width),mr.setAttribute("height",On.height),pn.insertBefore(mr,pn.firstChild)}}(c,t);break;case"info":f.class.arrowMarkerAbsolute=f.arrowMarkerAbsolute,m0(f.class),function(yt,Rt,bt){try{var xe=y0().parser;xe.yy=g0,g.debug(`Renering info diagram
`+yt);var Te,Ut=Jt().securityLevel;Ut==="sandbox"&&(Te=Se("#i"+Rt));var Ee=Se(Ut==="sandbox"?Te.nodes()[0].contentDocument.body:"body");Ut==="sandbox"&&Te.nodes()[0].contentDocument,xe.parse(yt),g.debug("Parsed info diagram");var Ce=Ee.select("#"+Rt);Ce.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+bt),Ce.attr("height",100),Ce.attr("width",400)}catch(_e){g.error("Error while rendering info diagram"),g.error(_e.message)}}(c,t,$g);break;case"pie":rb(c,t);break;case"er":w2(f.er),o_(c,t);break;case"journey":Ja(f.journey),g6(c,t);break;case"requirement":lu(f.requirement),__(c,t)}}catch(yt){throw function(Rt,bt){try{g.debug(`Renering svg for syntax error
`);var xe=Se("#"+Rt),Te=xe.append("g");Te.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"),Te.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"),Te.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"),Te.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"),Te.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"),Te.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"),Te.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Te.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+bt),xe.attr("height",100),xe.attr("width",400),xe.attr("viewBox","768 0 512 512")}catch(Ut){g.error("Error while rendering info diagram"),g.error(Ut.message)}}(t,$g),yt}y.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ee=y.select("#d"+t).node().innerHTML;if(g.debug("cnf.arrowMarkerAbsolute",f.arrowMarkerAbsolute),f.arrowMarkerAbsolute&&f.arrowMarkerAbsolute!=="false"||f.arrowMarkerAbsolute==="sandbox"||(ee=ee.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ee=(ee=V_(ee)).replace(/<br>/g,"<br/>"),f.securityLevel==="sandbox"){var re=y.select("#d"+t+" svg").node(),kt="100%";re&&(kt=re.viewBox.baseVal.height+"px"),ee='<iframe style="width:'.concat("100%",";height:").concat(kt,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+ee+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
The \u201Ciframe\u201D tag is not supported by your browser.
</iframe>`)}if(r!==void 0)switch(ot){case"flowchart":case"flowchart-v2":r(ee,rr.bindFunctions);break;case"gantt":r(ee,Tl.bindFunctions);break;case"class":case"classDiagram":r(ee,uo.bindFunctions);break;default:r(ee)}else g.debug("CB = undefined!");fu.forEach(function(yt){yt()}),fu=[];var Lt=f.securityLevel==="sandbox"?"#i"+t:"#d"+t,Ct=Se(Lt).node();return Ct!==null&&typeof Ct.remove=="function"&&Se(Lt).node().remove(),ee},parse:function(t){var e=Jt(),r=Zn.detectInit(t,e);r&&g.debug("reinit ",r);var a,c=Zn.detectType(t,e);switch(g.debug("Type "+c),c){case"git":(a=zs()).parser.yy=cu;break;case"flowchart":case"flowchart-v2":rr.clear(),(a=Jd()).parser.yy=rr;break;case"sequence":(a=x_()).parser.yy=Ml;break;case"gantt":(a=X3()).parser.yy=Tl;break;case"class":case"classDiagram":(a=p3()).parser.yy=uo;break;case"state":case"stateDiagram":(a=bb()).parser.yy=F;break;case"info":g.debug("info info info"),(a=y0()).parser.yy=g0;break;case"pie":g.debug("pie"),(a=nb()).parser.yy=j2;break;case"er":g.debug("er"),(a=_2()).parser.yy=wa;break;case"journey":g.debug("Journey"),(a=Dn()).parser.yy=rn;break;case"requirement":case"requirementDiagram":g.debug("RequirementDiagram"),(a=ib()).parser.yy=Sl}return a.parser.yy.graphType=c,a.parser.yy.parseError=function(u,f){throw{str:u,hash:f}},a.parse(t),a},parseDirective:function(t,e,r,a){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":K2={};break;case"type_directive":K2.type=e.toLowerCase();break;case"arg_directive":K2.args=JSON.parse(e);break;case"close_directive":(function(c,u,f){switch(g.debug("Directive type=".concat(u.type," with args:"),u.args),u.type){case"init":case"initialize":["config"].forEach(function(y){u.args[y]!==void 0&&(f==="flowchart-v2"&&(f="flowchart"),u.args[f]=u.args[y],delete u.args[y])}),g.debug("sanitize in handleDirective",u.args),Dd(u.args),g.debug("sanitize in handleDirective (done)",u.args),u.args,l3(u.args);break;case"wrap":case"nowrap":c&&c.setWrap&&c.setWrap(u.type==="wrap");break;case"themeCss":g.warn("themeCss encountered");break;default:g.warn("Unhandled directive: source: '%%{".concat(u.type,": ").concat(JSON.stringify(u.args?u.args:{}),"}%%"),u)}})(t,K2,a),K2=null}}catch(c){g.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),g.error(c.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){c3=zi({},r)}(t),t&&t.theme&&hl[t.theme]?t.themeVariables=hl[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=hl.default.getThemeVariables(t.themeVariables));var e=B_(t)==="object"?function(r){return Ui=zi({},Kh),Ui=zi(Ui,r),r.theme&&(Ui.themeVariables=hl[r.theme].getThemeVariables(r.themeVariables)),Od=Bd(Ui,dl),Ui}(t):u3();G_(e),k(e.logLevel)},reinitialize:function(){},getConfig:Jt,setConfig:function(t){return zi(Od,t),Jt()},getSiteConfig:u3,updateSiteConfig:function(t){return Ui=zi(Ui,t),Bd(Ui,dl),Ui},reset:function(){Ld()},globalReset:function(){Ld(),G_(Jt())},defaultConfig:Kh});k(Jt().logLevel),Ld(Jt());const ta=v6;var X_=function(){ho.startOnLoad?ta.getConfig().startOnLoad&&ho.init():ho.startOnLoad===void 0&&(g.debug("In start, no config"),ta.getConfig().startOnLoad&&ho.init())};typeof document!="undefined"&&window.addEventListener("load",function(){X_()},!1);var ho={startOnLoad:!0,htmlLabels:!0,mermaidAPI:ta,parse:ta.parse,render:ta.render,init:function(){var t,e,r=this,a=ta.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(ho.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],g.debug("Callback function found")):a.mermaid!==void 0&&(typeof a.mermaid.callback=="function"?(e=a.mermaid.callback,g.debug("Callback function found")):g.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,g.debug("Start On Load before: "+ho.startOnLoad),ho.startOnLoad!==void 0&&(g.debug("Start On Load inner: "+ho.startOnLoad),ta.updateSiteConfig({startOnLoad:ho.startOnLoad})),ho.ganttConfig!==void 0&&ta.updateSiteConfig({gantt:ho.ganttConfig});for(var c,u=new Zn.initIdGeneratior(a.deterministicIds,a.deterministicIDSeed),f=function(w){var x=t[w];if(x.getAttribute("data-processed"))return"continue";x.setAttribute("data-processed",!0);var D="mermaid-".concat(u.next());c=x.innerHTML,c=Zn.entityDecode(c).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Zn.detectInit(c);j&&g.debug("Detected early reinit: ",j);try{ta.render(D,c,function(P,W){x.innerHTML=P,e!==void 0&&e(D),W&&W(x)},x)}catch(P){g.warn("Syntax Error rendering"),g.warn(P),r.parseError&&r.parseError(P)}},y=0;y<t.length;y++)f(y)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(ho.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(ho.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),ta.initialize(t)},contentLoaded:X_};const b6=ho},4949:(S,M,h)=>{S.exports={graphlib:h(6614),dagre:h(1463),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(S,M,h)=>{var m=h(8355);function d(_,g,k,C){var A=_.append("marker").attr("id",g).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").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(A,k[C+"Style"]),k[C+"Class"]&&A.attr("class",k[C+"Class"])}S.exports={default:d,normal:d,vee:function(_,g,k,C){var A=_.append("marker").attr("id",g).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 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(A,k[C+"Style"]),k[C+"Class"]&&A.attr("class",k[C+"Class"])},undirected:function(_,g,k,C){var A=_.append("marker").attr("id",g).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 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(A,k[C+"Style"]),k[C+"Class"]&&A.attr("class",k[C+"Class"])}}},5632:(S,M,h)=>{var m=h(8355),d=h(4322),_=h(1322);S.exports=function(g,k){var C,A=k.nodes().filter(function(L){return m.isSubgraph(k,L)}),I=g.selectAll("g.cluster").data(A,function(L){return L});return I.selectAll("*").remove(),I.enter().append("g").attr("class","cluster").attr("id",function(L){return k.node(L).id}).style("opacity",0),I=g.selectAll("g.cluster"),m.applyTransition(I,k).style("opacity",1),I.each(function(L){var Y=k.node(L),q=d.select(this);d.select(this).append("rect");var H=q.append("g").attr("class","label");_(H,Y,Y.clusterLabelPos)}),I.selectAll("rect").each(function(L){var Y=k.node(L),q=d.select(this);m.applyStyle(q,Y.style)}),C=I.exit?I.exit():I.selectAll(null),m.applyTransition(C,k).style("opacity",0).remove(),I}},6315:(S,M,h)=>{var m=h(1034),d=h(1322),_=h(8355),g=h(4322);S.exports=function(k,C){var A,I=k.selectAll("g.edgeLabel").data(C.edges(),function(L){return _.edgeToId(L)}).classed("update",!0);return I.exit().remove(),I.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(I=k.selectAll("g.edgeLabel")).each(function(L){var Y=g.select(this);Y.select(".label").remove();var q=C.edge(L),H=d(Y,C.edge(L),0,0).classed("label",!0),V=H.node().getBBox();q.labelId&&H.attr("id",q.labelId),m.has(q,"width")||(q.width=V.width),m.has(q,"height")||(q.height=V.height)}),A=I.exit?I.exit():I.selectAll(null),_.applyTransition(A,C).style("opacity",0).remove(),I}},940:(S,M,h)=>{var m=h(1034),d=h(7584),_=h(8355),g=h(4322);function k(C,A){var I=(g.line||g.svg.line)().x(function(L){return L.x}).y(function(L){return L.y});return(I.curve||I.interpolate)(C.curve),I(A)}S.exports=function(C,A,I){var L=C.selectAll("g.edgePath").data(A.edges(),function(H){return _.edgeToId(H)}).classed("update",!0),Y=function(H,V){var X=H.enter().append("g").attr("class","edgePath").style("opacity",0);return X.append("path").attr("class","path").attr("d",function(J){var lt=V.edge(J),nt=V.node(J.v).elem;return k(lt,m.range(lt.points.length).map(function(){return dt=(_t=nt).getBBox(),{x:(At=_t.ownerSVGElement.getScreenCTM().inverse().multiply(_t.getScreenCTM()).translate(dt.width/2,dt.height/2)).e,y:At.f};var _t,dt,At}))}),X.append("defs"),X}(L,A);(function(H,V){var X=H.exit();_.applyTransition(X,V).style("opacity",0).remove()})(L,A);var q=L.merge!==void 0?L.merge(Y):L;return _.applyTransition(q,A).style("opacity",1),q.each(function(H){var V=g.select(this),X=A.edge(H);X.elem=this,X.id&&V.attr("id",X.id),_.applyClass(V,X.class,(V.classed("update")?"update ":"")+"edgePath")}),q.selectAll("path.path").each(function(H){var V=A.edge(H);V.arrowheadId=m.uniqueId("arrowhead");var X=g.select(this).attr("marker-end",function(){return"url("+(J=location.href,lt=V.arrowheadId,J.split("#")[0]+"#"+lt+")");var J,lt}).style("fill","none");_.applyTransition(X,A).attr("d",function(J){return function(lt,nt){var _t=lt.edge(nt),dt=lt.node(nt.v),At=lt.node(nt.w),st=_t.points.slice(1,_t.points.length-1);return st.unshift(d(dt,st[0])),st.push(d(At,st[st.length-1])),k(_t,st)}(A,J)}),_.applyStyle(X,V.style)}),q.selectAll("defs *").remove(),q.selectAll("defs").each(function(H){var V=A.edge(H);(0,I[V.arrowhead])(g.select(this),V.arrowheadId,V,"arrowhead")}),q}},607:(S,M,h)=>{var m=h(1034),d=h(1322),_=h(8355),g=h(4322);S.exports=function(k,C,A){var I,L=C.nodes().filter(function(q){return!_.isSubgraph(C,q)}),Y=k.selectAll("g.node").data(L,function(q){return q}).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").attr("class","node").style("opacity",0),(Y=k.selectAll("g.node")).each(function(q){var H=C.node(q),V=g.select(this);_.applyClass(V,H.class,(V.classed("update")?"update ":"")+"node"),V.select("g.label").remove();var X=V.append("g").attr("class","label"),J=d(X,H),lt=A[H.shape],nt=m.pick(J.node().getBBox(),"width","height");H.elem=this,H.id&&V.attr("id",H.id),H.labelId&&X.attr("id",H.labelId),m.has(H,"width")&&(nt.width=H.width),m.has(H,"height")&&(nt.height=H.height),nt.width+=H.paddingLeft+H.paddingRight,nt.height+=H.paddingTop+H.paddingBottom,X.attr("transform","translate("+(H.paddingLeft-H.paddingRight)/2+","+(H.paddingTop-H.paddingBottom)/2+")");var _t=g.select(this);_t.select(".label-container").remove();var dt=lt(_t,nt,H).classed("label-container",!0);_.applyStyle(dt,H.style);var At=dt.node().getBBox();H.width=At.width,H.height=At.height}),I=Y.exit?Y.exit():Y.selectAll(null),_.applyTransition(I,C).style("opacity",0).remove(),Y}},4322:(S,M,h)=>{var m;if(!m)try{m=h(7188)}catch{}m||(m=window.d3),S.exports=m},1463:(S,M,h)=>{var m;try{m=h(681)}catch{}m||(m=window.dagre),S.exports=m},6614:(S,M,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),S.exports=m},8114:(S,M,h)=>{S.exports={node:h(7584),circle:h(6587),ellipse:h(3260),polygon:h(5337),rect:h(8049)}},6587:(S,M,h)=>{var m=h(3260);S.exports=function(d,_,g){return m(d,_,_,g)}},3260:S=>{S.exports=function(M,h,m,d){var _=M.x,g=M.y,k=_-d.x,C=g-d.y,A=Math.sqrt(h*h*C*C+m*m*k*k),I=Math.abs(h*m*k/A);d.x<_&&(I=-I);var L=Math.abs(h*m*C/A);return d.y<g&&(L=-L),{x:_+I,y:g+L}}},6808:S=>{function M(h,m){return h*m>0}S.exports=function(h,m,d,_){var g,k,C,A,I,L,Y,q,H,V,X,J,lt;if(g=m.y-h.y,C=h.x-m.x,I=m.x*h.y-h.x*m.y,H=g*d.x+C*d.y+I,V=g*_.x+C*_.y+I,!(H!==0&&V!==0&&M(H,V)||(k=_.y-d.y,A=d.x-_.x,L=_.x*d.y-d.x*_.y,Y=k*h.x+A*h.y+L,q=k*m.x+A*m.y+L,Y!==0&&q!==0&&M(Y,q)||(X=g*A-k*C)==0)))return J=Math.abs(X/2),{x:(lt=C*L-A*I)<0?(lt-J)/X:(lt+J)/X,y:(lt=k*I-g*L)<0?(lt-J)/X:(lt+J)/X}}},7584:S=>{S.exports=function(M,h){return M.intersect(h)}},5337:(S,M,h)=>{var m=h(6808);S.exports=function(d,_,g){var k=d.x,C=d.y,A=[],I=Number.POSITIVE_INFINITY,L=Number.POSITIVE_INFINITY;_.forEach(function(lt){I=Math.min(I,lt.x),L=Math.min(L,lt.y)});for(var Y=k-d.width/2-I,q=C-d.height/2-L,H=0;H<_.length;H++){var V=_[H],X=_[H<_.length-1?H+1:0],J=m(d,g,{x:Y+V.x,y:q+V.y},{x:Y+X.x,y:q+X.y});J&&A.push(J)}return A.length?(A.length>1&&A.sort(function(lt,nt){var _t=lt.x-g.x,dt=lt.y-g.y,At=Math.sqrt(_t*_t+dt*dt),st=nt.x-g.x,K=nt.y-g.y,mt=Math.sqrt(st*st+K*K);return At<mt?-1:At===mt?0:1}),A[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",d),d)}},8049:S=>{S.exports=function(M,h){var m,d,_=M.x,g=M.y,k=h.x-_,C=h.y-g,A=M.width/2,I=M.height/2;return Math.abs(C)*A>Math.abs(k)*I?(C<0&&(I=-I),m=C===0?0:I*k/C,d=I):(k<0&&(A=-A),m=A,d=k===0?0:A*C/k),{x:_+m,y:g+d}}},8284:(S,M,h)=>{var m=h(8355);S.exports=function(d,_){var g=d.append("foreignObject").attr("width","100000"),k=g.append("xhtml:div");k.attr("xmlns","http://www.w3.org/1999/xhtml");var C=_.label;switch(typeof C){case"function":k.insert(C);break;case"object":k.insert(function(){return C});break;default:k.html(C)}m.applyStyle(k,_.labelStyle),k.style("display","inline-block"),k.style("white-space","nowrap");var A=k.node().getBoundingClientRect();return g.attr("width",A.width).attr("height",A.height),g}},1322:(S,M,h)=>{var m=h(7318),d=h(8284),_=h(8287);S.exports=function(g,k,C){var A=k.label,I=g.append("g");k.labelType==="svg"?_(I,k):typeof A!="string"||k.labelType==="html"?d(I,k):m(I,k);var L,Y=I.node().getBBox();switch(C){case"top":L=-k.height/2;break;case"bottom":L=k.height/2-Y.height;break;default:L=-Y.height/2}return I.attr("transform","translate("+-Y.width/2+","+L+")"),I}},8287:(S,M,h)=>{var m=h(8355);S.exports=function(d,_){var g=d;return g.node().appendChild(_.label),m.applyStyle(g,_.labelStyle),g}},7318:(S,M,h)=>{var m=h(8355);S.exports=function(d,_){for(var g=d.append("text"),k=function(A){for(var I,L="",Y=!1,q=0;q<A.length;++q)I=A[q],Y?(L+=I==="n"?`
`:I,Y=!1):I==="\\"?Y=!0:L+=I;return L}(_.label).split(`
`),C=0;C<k.length;C++)g.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(k[C]);return m.applyStyle(g,_.labelStyle),g}},1034:(S,M,h)=>{var m;try{m={defaults:h(1747),each:h(6073),isFunction:h(3560),isPlainObject:h(8630),pick:h(9722),has:h(8721),range:h(6026),uniqueId:h(3955)}}catch{}m||(m=window._),S.exports=m},6381:(S,M,h)=>{var m=h(8355),d=h(4322);S.exports=function(_,g){var k=_.filter(function(){return!d.select(this).classed("update")});function C(A){var I=g.node(A);return"translate("+I.x+","+I.y+")"}k.attr("transform",C),m.applyTransition(_,g).style("opacity",1).attr("transform",C),m.applyTransition(k.selectAll("rect"),g).attr("width",function(A){return g.node(A).width}).attr("height",function(A){return g.node(A).height}).attr("x",function(A){return-g.node(A).width/2}).attr("y",function(A){return-g.node(A).height/2})}},4577:(S,M,h)=>{var m=h(8355),d=h(4322),_=h(1034);S.exports=function(g,k){function C(A){var I=k.edge(A);return _.has(I,"x")?"translate("+I.x+","+I.y+")":""}g.filter(function(){return!d.select(this).classed("update")}).attr("transform",C),m.applyTransition(g,k).style("opacity",1).attr("transform",C)}},4849:(S,M,h)=>{var m=h(8355),d=h(4322);S.exports=function(_,g){function k(C){var A=g.node(C);return"translate("+A.x+","+A.y+")"}_.filter(function(){return!d.select(this).classed("update")}).attr("transform",k),m.applyTransition(_,g).style("opacity",1).attr("transform",k)}},5787:(S,M,h)=>{var m=h(1034),d=h(4322),_=h(1463).layout;S.exports=function(){var A=h(607),I=h(5632),L=h(6315),Y=h(940),q=h(4849),H=h(4577),V=h(6381),X=h(4418),J=h(9144),lt=function(nt,_t){(function(It){It.nodes().forEach(function(ft){var vt=It.node(ft);m.has(vt,"label")||It.children(ft).length||(vt.label=ft),m.has(vt,"paddingX")&&m.defaults(vt,{paddingLeft:vt.paddingX,paddingRight:vt.paddingX}),m.has(vt,"paddingY")&&m.defaults(vt,{paddingTop:vt.paddingY,paddingBottom:vt.paddingY}),m.has(vt,"padding")&&m.defaults(vt,{paddingLeft:vt.padding,paddingRight:vt.padding,paddingTop:vt.padding,paddingBottom:vt.padding}),m.defaults(vt,g),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(Wt){vt[Wt]=Number(vt[Wt])}),m.has(vt,"width")&&(vt._prevWidth=vt.width),m.has(vt,"height")&&(vt._prevHeight=vt.height)}),It.edges().forEach(function(ft){var vt=It.edge(ft);m.has(vt,"label")||(vt.label=""),m.defaults(vt,k)})})(_t);var dt=C(nt,"output"),At=C(dt,"clusters"),st=C(dt,"edgePaths"),K=L(C(dt,"edgeLabels"),_t),mt=A(C(dt,"nodes"),_t,X);_(_t),q(mt,_t),H(K,_t),Y(st,_t,J);var St=I(At,_t);V(St,_t),function(It){m.each(It.nodes(),function(ft){var vt=It.node(ft);m.has(vt,"_prevWidth")?vt.width=vt._prevWidth:delete vt.width,m.has(vt,"_prevHeight")?vt.height=vt._prevHeight:delete vt.height,delete vt._prevWidth,delete vt._prevHeight})}(_t)};return lt.createNodes=function(nt){return arguments.length?(A=nt,lt):A},lt.createClusters=function(nt){return arguments.length?(I=nt,lt):I},lt.createEdgeLabels=function(nt){return arguments.length?(L=nt,lt):L},lt.createEdgePaths=function(nt){return arguments.length?(Y=nt,lt):Y},lt.shapes=function(nt){return arguments.length?(X=nt,lt):X},lt.arrows=function(nt){return arguments.length?(J=nt,lt):J},lt};var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},k={arrowhead:"normal",curve:d.curveLinear};function C(A,I){var L=A.select("g."+I);return L.empty()&&(L=A.append("g").attr("class",I)),L}},4418:(S,M,h)=>{var m=h(8049),d=h(3260),_=h(6587),g=h(5337);S.exports={rect:function(k,C,A){var I=k.insert("rect",":first-child").attr("rx",A.rx).attr("ry",A.ry).attr("x",-C.width/2).attr("y",-C.height/2).attr("width",C.width).attr("height",C.height);return A.intersect=function(L){return m(A,L)},I},ellipse:function(k,C,A){var I=C.width/2,L=C.height/2,Y=k.insert("ellipse",":first-child").attr("x",-C.width/2).attr("y",-C.height/2).attr("rx",I).attr("ry",L);return A.intersect=function(q){return d(A,I,L,q)},Y},circle:function(k,C,A){var I=Math.max(C.width,C.height)/2,L=k.insert("circle",":first-child").attr("x",-C.width/2).attr("y",-C.height/2).attr("r",I);return A.intersect=function(Y){return _(A,I,Y)},L},diamond:function(k,C,A){var I=C.width*Math.SQRT2/2,L=C.height*Math.SQRT2/2,Y=[{x:0,y:-L},{x:-I,y:0},{x:0,y:L},{x:I,y:0}],q=k.insert("polygon",":first-child").attr("points",Y.map(function(H){return H.x+","+H.y}).join(" "));return A.intersect=function(H){return g(A,Y,H)},q}}},8355:(S,M,h)=>{var m=h(1034);S.exports={isSubgraph:function(g,k){return!!g.children(k).length},edgeToId:function(g){return _(g.v)+":"+_(g.w)+":"+_(g.name)},applyStyle:function(g,k){k&&g.attr("style",k)},applyClass:function(g,k,C){k&&g.attr("class",k).attr("class",C+" "+g.attr("class"))},applyTransition:function(g,k){var C=k.graph();if(m.isPlainObject(C)){var A=C.transition;if(m.isFunction(A))return A(g)}return g}};var d=/:/g;function _(g){return g?String(g).replace(d,"\\:"):""}},5689:S=>{S.exports="0.6.4"},7188:(S,M,h)=>{h.r(M),h.d(M,{FormatSpecifier:()=>l1,active:()=>Bb,arc:()=>uf,area:()=>B2,areaRadial:()=>R2,ascending:()=>d,autoType:()=>n4,axisBottom:()=>Ae,axisLeft:()=>en,axisRight:()=>Ie,axisTop:()=>Xe,bisect:()=>A,bisectLeft:()=>C,bisectRight:()=>k,bisector:()=>_,blob:()=>y4,brush:()=>Q0,brushSelection:()=>Rb,brushX:()=>Gf,brushY:()=>Fb,buffer:()=>Gy,chord:()=>J0,clientPoint:()=>Nc,cluster:()=>p5,color:()=>Ia,contourDensity:()=>eh,contours:()=>Ni,create:()=>Y3,creator:()=>oi,cross:()=>Y,csv:()=>Xy,csvFormat:()=>Vb,csvFormatBody:()=>Gb,csvFormatRow:()=>Zb,csvFormatRows:()=>Xb,csvFormatValue:()=>Dy,csvParse:()=>Ny,csvParseRows:()=>$b,cubehelix:()=>fa,curveBasis:()=>Q3,curveBasisClosed:()=>K3,curveBasisOpen:()=>m_,curveBundle:()=>J3,curveCardinal:()=>tb,curveCardinalClosed:()=>v_,curveCardinalOpen:()=>b_,curveCatmullRom:()=>nb,curveCatmullRomClosed:()=>P2,curveCatmullRomOpen:()=>j2,curveLinear:()=>_l,curveLinearClosed:()=>qs,curveMonotoneX:()=>bf,curveMonotoneY:()=>Sl,curveNatural:()=>Ei,curveStep:()=>ob,curveStepAfter:()=>cb,curveStepBefore:()=>sb,customEvent:()=>no,descending:()=>q,deviation:()=>X,dispatch:()=>an,drag:()=>Sy,dragDisable:()=>Kr,dragEnable:()=>Pr,dsv:()=>b4,dsvFormat:()=>nh,easeBack:()=>Wy,easeBackIn:()=>d4,easeBackInOut:()=>Wy,easeBackOut:()=>p4,easeBounce:()=>rh,easeBounceIn:()=>Hy,easeBounceInOut:()=>f4,easeBounceOut:()=>rh,easeCircle:()=>qy,easeCircleIn:()=>l4,easeCircleInOut:()=>qy,easeCircleOut:()=>h4,easeCubic:()=>Xs,easeCubicIn:()=>Yf,easeCubicInOut:()=>Xs,easeCubicOut:()=>zf,easeElastic:()=>_p,easeElasticIn:()=>g4,easeElasticInOut:()=>$y,easeElasticOut:()=>_p,easeExp:()=>Uy,easeExpIn:()=>zy,easeExpInOut:()=>Uy,easeExpOut:()=>u4,easeLinear:()=>Ly,easePoly:()=>Ry,easePolyIn:()=>o4,easePolyInOut:()=>Ry,easePolyOut:()=>s4,easeQuad:()=>Iy,easeQuadIn:()=>i4,easeQuadInOut:()=>Iy,easeQuadOut:()=>a4,easeSin:()=>Yy,easeSinIn:()=>jy,easeSinInOut:()=>Yy,easeSinOut:()=>c4,entries:()=>op,event:()=>pt,extent:()=>J,forceCenter:()=>k4,forceCollide:()=>S4,forceLink:()=>M4,forceManyBody:()=>B4,forceRadial:()=>L4,forceSimulation:()=>O4,forceX:()=>em,forceY:()=>Ep,format:()=>f1,formatDefaultLocale:()=>cm,formatLocale:()=>sm,formatPrefix:()=>Sp,formatSpecifier:()=>oh,geoAlbers:()=>rv,geoAlbersUsa:()=>Ms,geoArea:()=>R4,geoAzimuthalEqualArea:()=>r5,geoAzimuthalEqualAreaRaw:()=>cg,geoAzimuthalEquidistant:()=>lg,geoAzimuthalEquidistantRaw:()=>ug,geoBounds:()=>gh,geoCentroid:()=>j4,geoCircle:()=>Y4,geoClipAntimeridian:()=>Hp,geoClipCircle:()=>Dm,geoClipExtent:()=>U4,geoClipRectangle:()=>N1,geoConicConformal:()=>a5,geoConicConformalRaw:()=>fg,geoConicEqualArea:()=>W1,geoConicEqualAreaRaw:()=>nv,geoConicEquidistant:()=>av,geoConicEquidistantRaw:()=>iv,geoContains:()=>Pm,geoDistance:()=>I1,geoEqualEarth:()=>s5,geoEqualEarthRaw:()=>dg,geoEquirectangular:()=>o5,geoEquirectangularRaw:()=>Dh,geoGnomonic:()=>ov,geoGnomonicRaw:()=>Ih,geoGraticule:()=>zm,geoGraticule10:()=>G4,geoIdentity:()=>V1,geoInterpolate:()=>X4,geoLength:()=>Om,geoMercator:()=>i5,geoMercatorRaw:()=>Mh,geoNaturalEarth1:()=>c5,geoNaturalEarth1Raw:()=>pg,geoOrthographic:()=>u5,geoOrthographicRaw:()=>gg,geoPath:()=>K4,geoProjection:()=>Mo,geoProjectionMutator:()=>ag,geoRotation:()=>zp,geoStereographic:()=>l5,geoStereographicRaw:()=>yg,geoStream:()=>ko,geoTransform:()=>J4,geoTransverseMercator:()=>h5,geoTransverseMercatorRaw:()=>G1,gray:()=>Yb,hcl:()=>Ks,hierarchy:()=>mg,histogram:()=>jt,hsl:()=>vu,html:()=>Ky,image:()=>Qy,interpolate:()=>Mc,interpolateArray:()=>C0,interpolateBasis:()=>Ar,interpolateBasisClosed:()=>Sc,interpolateBlues:()=>R3,interpolateBrBG:()=>w3,interpolateBuGn:()=>N3,interpolateBuPu:()=>m2,interpolateCividis:()=>Zd,interpolateCool:()=>F3,interpolateCubehelix:()=>sd,interpolateCubehelixDefault:()=>s_,interpolateCubehelixLong:()=>zh,interpolateDate:()=>Rf,interpolateDiscrete:()=>T5,interpolateGnBu:()=>O3,interpolateGreens:()=>fi,interpolateGreys:()=>vl,interpolateHcl:()=>ns,interpolateHclLong:()=>Do,interpolateHsl:()=>E5,interpolateHslLong:()=>C5,interpolateHue:()=>rd,interpolateInferno:()=>Va,interpolateLab:()=>ad,interpolateMagma:()=>u_,interpolateNumber:()=>ua,interpolateNumberArray:()=>Pl,interpolateObject:()=>Ff,interpolateOrRd:()=>b2,interpolateOranges:()=>Xd,interpolatePRGn:()=>af,interpolatePiYG:()=>Rs,interpolatePlasma:()=>l_,interpolatePuBu:()=>a_,interpolatePuBuGn:()=>B3,interpolatePuOr:()=>zd,interpolatePuRd:()=>Fs,interpolatePurples:()=>$d,interpolateRainbow:()=>C2,interpolateRdBu:()=>T3,interpolateRdGy:()=>E3,interpolateRdPu:()=>Ur,interpolateRdYlBu:()=>S3,interpolateRdYlGn:()=>Qi,interpolateReds:()=>T2,interpolateRgb:()=>Gs,interpolateRgbBasis:()=>_u,interpolateRgbBasisClosed:()=>mo,interpolateRound:()=>kg,interpolateSinebow:()=>j3,interpolateSpectral:()=>Ud,interpolateString:()=>vo,interpolateTransformCss:()=>A0,interpolateTransformSvg:()=>M0,interpolateTurbo:()=>rr,interpolateViridis:()=>Jd,interpolateWarm:()=>E2,interpolateYlGn:()=>o_,interpolateYlGnBu:()=>L3,interpolateYlOrBr:()=>k2,interpolateYlOrRd:()=>Wd,interpolateZoom:()=>id,interrupt:()=>ha,interval:()=>H2,isoFormat:()=>wf,isoParse:()=>hb,json:()=>x4,keys:()=>Xl,lab:()=>Zl,lch:()=>up,line:()=>xc,lineRadial:()=>o0,linkHorizontal:()=>V3,linkRadial:()=>G3,linkVertical:()=>Tl,local:()=>z3,map:()=>xs,matcher:()=>cn,max:()=>Dt,mean:()=>Zt,median:()=>se,merge:()=>le,min:()=>ye,mouse:()=>ys,namespace:()=>kn,namespaces:()=>Cr,nest:()=>jb,now:()=>$,pack:()=>_5,packEnclose:()=>uv,packSiblings:()=>yv,pairs:()=>I,partition:()=>No,path:()=>_s,permute:()=>Ot,pie:()=>L2,piecewise:()=>Eg,pointRadial:()=>xl,polygonArea:()=>Ev,polygonCentroid:()=>S5,polygonContains:()=>Sg,polygonHull:()=>Cg,polygonLength:()=>Sv,precisionFixed:()=>Ap,precisionPrefix:()=>um,precisionRound:()=>lm,quadtree:()=>ih,quantile:()=>me,quantize:()=>Tv,radialArea:()=>R2,radialLine:()=>o0,randomBates:()=>is,randomExponential:()=>N5,randomIrwinHall:()=>rl,randomLogNormal:()=>nl,randomNormal:()=>Uh,randomUniform:()=>cd,range:()=>st,rgb:()=>Fi,ribbon:()=>np,scaleBand:()=>hd,scaleDiverging:()=>_a,scaleDivergingLog:()=>xa,scaleDivergingPow:()=>Ro,scaleDivergingSqrt:()=>yr,scaleDivergingSymlog:()=>ki,scaleIdentity:()=>Og,scaleImplicit:()=>Ag,scaleLinear:()=>Dg,scaleLog:()=>Bv,scaleOrdinal:()=>ld,scalePoint:()=>qh,scalePow:()=>Fg,scaleQuantile:()=>Pv,scaleQuantize:()=>jv,scaleSequential:()=>nf,scaleSequentialLog:()=>rf,scaleSequentialPow:()=>g2,scaleSequentialQuantile:()=>v3,scaleSequentialSqrt:()=>K5,scaleSequentialSymlog:()=>p2,scaleSqrt:()=>I5,scaleSymlog:()=>Rv,scaleThreshold:()=>Yv,scaleTime:()=>Bi,scaleUtc:()=>d2,scan:()=>We,schemeAccent:()=>jd,schemeBlues:()=>I3,schemeBrBG:()=>x3,schemeBuGn:()=>M3,schemeBuPu:()=>D3,schemeCategory10:()=>b3,schemeDark2:()=>J5,schemeGnBu:()=>v2,schemeGreens:()=>ou,schemeGreys:()=>bc,schemeOrRd:()=>ml,schemeOranges:()=>Gd,schemePRGn:()=>k3,schemePaired:()=>t_,schemePastel1:()=>Yd,schemePastel2:()=>_3,schemePiYG:()=>of,schemePuBu:()=>wa,schemePuBuGn:()=>qd,schemePuOr:()=>vc,schemePuRd:()=>_2,schemePurples:()=>Fo,schemeRdBu:()=>y2,schemeRdGy:()=>au,schemeRdPu:()=>Ps,schemeRdYlBu:()=>C3,schemeRdYlGn:()=>sf,schemeReds:()=>Vd,schemeSet1:()=>e_,schemeSet2:()=>n_,schemeSet3:()=>r_,schemeSpectral:()=>A3,schemeTableau10:()=>i_,schemeYlGn:()=>w2,schemeYlGnBu:()=>x2,schemeYlOrBr:()=>Hd,schemeYlOrRd:()=>ss,select:()=>pr,selectAll:()=>f_,selection:()=>La,selector:()=>Or,selectorAll:()=>Kn,set:()=>Qs,shuffle:()=>he,stack:()=>nn,stackOffsetDiverging:()=>xf,stackOffsetExpand:()=>x_,stackOffsetNone:()=>jo,stackOffsetSilhouette:()=>wc,stackOffsetWiggle:()=>hs,stackOrderAppearance:()=>Y2,stackOrderAscending:()=>z2,stackOrderDescending:()=>q2,stackOrderInsideOut:()=>w_,stackOrderNone:()=>lu,stackOrderReverse:()=>Ws,stratify:()=>J1,style:()=>ei,sum:()=>zt,svg:()=>u1,symbol:()=>y_,symbolCircle:()=>us,symbolCross:()=>Ga,symbolDiamond:()=>vi,symbolSquare:()=>u0,symbolStar:()=>F2,symbolTriangle:()=>pf,symbolWye:()=>cu,symbols:()=>El,text:()=>Du,thresholdFreedmanDiaconis:()=>ge,thresholdScott:()=>pe,thresholdSturges:()=>Wt,tickFormat:()=>Bo,tickIncrement:()=>ft,tickStep:()=>vt,ticks:()=>It,timeDay:()=>ii,timeDays:()=>sl,timeFormat:()=>Zh,timeFormatDefaultLocale:()=>l2,timeFormatLocale:()=>Zv,timeFriday:()=>al,timeFridays:()=>ol,timeHour:()=>qv,timeHours:()=>Lo,timeInterval:()=>Oi,timeMillisecond:()=>ul,timeMilliseconds:()=>Wv,timeMinute:()=>Gh,timeMinutes:()=>xd,timeMonday:()=>il,timeMondays:()=>vd,timeMonth:()=>Yg,timeMonths:()=>Bs,timeParse:()=>Qv,timeSaturday:()=>Is,timeSaturdays:()=>Uv,timeSecond:()=>cl,timeSeconds:()=>Hv,timeSunday:()=>Zc,timeSundays:()=>qg,timeThursday:()=>Ls,timeThursdays:()=>bd,timeTuesday:()=>md,timeTuesdays:()=>Hg,timeWednesday:()=>zv,timeWednesdays:()=>F5,timeWeek:()=>Zc,timeWeeks:()=>qg,timeYear:()=>Vc,timeYears:()=>R5,timeout:()=>Ve,timer:()=>de,timerFlush:()=>we,touch:()=>la,touches:()=>d_,transition:()=>jf,transpose:()=>te,tree:()=>Ju,treemap:()=>nd,treemapBinary:()=>Yh,treemapDice:()=>Fh,treemapResquarify:()=>wg,treemapSlice:()=>fc,treemapSliceDice:()=>wv,treemapSquarify:()=>dc,tsv:()=>Zy,tsvFormat:()=>By,tsvFormatBody:()=>Kb,tsvFormatRow:()=>t4,tsvFormatRows:()=>Jb,tsvFormatValue:()=>e4,tsvParse:()=>Oy,tsvParseRows:()=>Qb,utcDay:()=>xi,utcDays:()=>lr,utcFormat:()=>Ed,utcFriday:()=>$g,utcFridays:()=>Td,utcHour:()=>y3,utcHours:()=>Q5,utcMillisecond:()=>ul,utcMilliseconds:()=>Wv,utcMinute:()=>f2,utcMinutes:()=>gl,utcMonday:()=>gc,utcMondays:()=>P5,utcMonth:()=>p3,utcMonths:()=>g3,utcParse:()=>Qh,utcSaturday:()=>Kc,utcSaturdays:()=>j5,utcSecond:()=>cl,utcSeconds:()=>Hv,utcSunday:()=>Xh,utcSundays:()=>Vv,utcThursday:()=>yc,utcThursdays:()=>Jc,utcTuesday:()=>Wg,utcTuesdays:()=>Gv,utcWednesday:()=>$v,utcWednesdays:()=>Xv,utcWeek:()=>Xh,utcWeeks:()=>Vv,utcYear:()=>hi,utcYears:()=>Gg,values:()=>ap,variance:()=>V,version:()=>m,voronoi:()=>Ll,window:()=>Ln,xml:()=>w4,zip:()=>ne,zoom:()=>T0,zoomIdentity:()=>Sf,zoomTransform:()=>Af});var m="5.16.0";function d(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}function _(n){var i;return n.length===1&&(i=n,n=function(o,s){return d(i(o),s)}),{left:function(o,s,l,p){for(l==null&&(l=0),p==null&&(p=o.length);l<p;){var b=l+p>>>1;n(o[b],s)<0?l=b+1:p=b}return l},right:function(o,s,l,p){for(l==null&&(l=0),p==null&&(p=o.length);l<p;){var b=l+p>>>1;n(o[b],s)>0?p=b:l=b+1}return l}}}var g=_(d),k=g.right,C=g.left;const A=k;function I(n,i){i==null&&(i=L);for(var o=0,s=n.length-1,l=n[0],p=new Array(s<0?0:s);o<s;)p[o]=i(l,l=n[++o]);return p}function L(n,i){return[n,i]}function Y(n,i,o){var s,l,p,b,v=n.length,T=i.length,N=new Array(v*T);for(o==null&&(o=L),s=p=0;s<v;++s)for(b=n[s],l=0;l<T;++l,++p)N[p]=o(b,i[l]);return N}function q(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function H(n){return n===null?NaN:+n}function V(n,i){var o,s,l=n.length,p=0,b=-1,v=0,T=0;if(i==null)for(;++b<l;)isNaN(o=H(n[b]))||(T+=(s=o-v)*(o-(v+=s/++p)));else for(;++b<l;)isNaN(o=H(i(n[b],b,n)))||(T+=(s=o-v)*(o-(v+=s/++p)));if(p>1)return T/(p-1)}function X(n,i){var o=V(n,i);return o&&Math.sqrt(o)}function J(n,i){var o,s,l,p=n.length,b=-1;if(i==null){for(;++b<p;)if((o=n[b])!=null&&o>=o)for(s=l=o;++b<p;)(o=n[b])!=null&&(s>o&&(s=o),l<o&&(l=o))}else for(;++b<p;)if((o=i(n[b],b,n))!=null&&o>=o)for(s=l=o;++b<p;)(o=i(n[b],b,n))!=null&&(s>o&&(s=o),l<o&&(l=o));return[s,l]}var lt=Array.prototype,nt=lt.slice,_t=lt.map;function dt(n){return function(){return n}}function At(n){return n}function st(n,i,o){n=+n,i=+i,o=(l=arguments.length)<2?(i=n,n=0,1):l<3?1:+o;for(var s=-1,l=0|Math.max(0,Math.ceil((i-n)/o)),p=new Array(l);++s<l;)p[s]=n+s*o;return p}var K=Math.sqrt(50),mt=Math.sqrt(10),St=Math.sqrt(2);function It(n,i,o){var s,l,p,b,v=-1;if(o=+o,(n=+n)==(i=+i)&&o>0)return[n];if((s=i<n)&&(l=n,n=i,i=l),(b=ft(n,i,o))===0||!isFinite(b))return[];if(b>0)for(n=Math.ceil(n/b),i=Math.floor(i/b),p=new Array(l=Math.ceil(i-n+1));++v<l;)p[v]=(n+v)*b;else for(n=Math.floor(n*b),i=Math.ceil(i*b),p=new Array(l=Math.ceil(n-i+1));++v<l;)p[v]=(n-v)/b;return s&&p.reverse(),p}function ft(n,i,o){var s=(i-n)/Math.max(0,o),l=Math.floor(Math.log(s)/Math.LN10),p=s/Math.pow(10,l);return l>=0?(p>=K?10:p>=mt?5:p>=St?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(p>=K?10:p>=mt?5:p>=St?2:1)}function vt(n,i,o){var s=Math.abs(i-n)/Math.max(0,o),l=Math.pow(10,Math.floor(Math.log(s)/Math.LN10)),p=s/l;return p>=K?l*=10:p>=mt?l*=5:p>=St&&(l*=2),i<n?-l:l}function Wt(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function jt(){var n=At,i=J,o=Wt;function s(l){var p,b,v=l.length,T=new Array(v);for(p=0;p<v;++p)T[p]=n(l[p],p,l);var N=i(T),B=N[0],F=N[1],O=o(T,B,F);Array.isArray(O)||(O=vt(B,F,O),O=st(Math.ceil(B/O)*O,F,O));for(var z=O.length;O[0]<=B;)O.shift(),--z;for(;O[z-1]>F;)O.pop(),--z;var U,Q=new Array(z+1);for(p=0;p<=z;++p)(U=Q[p]=[]).x0=p>0?O[p-1]:B,U.x1=p<z?O[p]:F;for(p=0;p<v;++p)B<=(b=T[p])&&b<=F&&Q[A(O,b,0,z)].push(l[p]);return Q}return s.value=function(l){return arguments.length?(n=typeof l=="function"?l:dt(l),s):n},s.domain=function(l){return arguments.length?(i=typeof l=="function"?l:dt([l[0],l[1]]),s):i},s.thresholds=function(l){return arguments.length?(o=typeof l=="function"?l:Array.isArray(l)?dt(nt.call(l)):dt(l),s):o},s}function me(n,i,o){if(o==null&&(o=H),s=n.length){if((i=+i)<=0||s<2)return+o(n[0],0,n);if(i>=1)return+o(n[s-1],s-1,n);var s,l=(s-1)*i,p=Math.floor(l),b=+o(n[p],p,n);return b+(+o(n[p+1],p+1,n)-b)*(l-p)}}function ge(n,i,o){return n=_t.call(n,H).sort(d),Math.ceil((o-i)/(2*(me(n,.75)-me(n,.25))*Math.pow(n.length,-1/3)))}function pe(n,i,o){return Math.ceil((o-i)/(3.5*X(n)*Math.pow(n.length,-1/3)))}function Dt(n,i){var o,s,l=n.length,p=-1;if(i==null){for(;++p<l;)if((o=n[p])!=null&&o>=o)for(s=o;++p<l;)(o=n[p])!=null&&o>s&&(s=o)}else for(;++p<l;)if((o=i(n[p],p,n))!=null&&o>=o)for(s=o;++p<l;)(o=i(n[p],p,n))!=null&&o>s&&(s=o);return s}function Zt(n,i){var o,s=n.length,l=s,p=-1,b=0;if(i==null)for(;++p<s;)isNaN(o=H(n[p]))?--l:b+=o;else for(;++p<s;)isNaN(o=H(i(n[p],p,n)))?--l:b+=o;if(l)return b/l}function se(n,i){var o,s=n.length,l=-1,p=[];if(i==null)for(;++l<s;)isNaN(o=H(n[l]))||p.push(o);else for(;++l<s;)isNaN(o=H(i(n[l],l,n)))||p.push(o);return me(p.sort(d),.5)}function le(n){for(var i,o,s,l=n.length,p=-1,b=0;++p<l;)b+=n[p].length;for(o=new Array(b);--l>=0;)for(i=(s=n[l]).length;--i>=0;)o[--b]=s[i];return o}function ye(n,i){var o,s,l=n.length,p=-1;if(i==null){for(;++p<l;)if((o=n[p])!=null&&o>=o)for(s=o;++p<l;)(o=n[p])!=null&&s>o&&(s=o)}else for(;++p<l;)if((o=i(n[p],p,n))!=null&&o>=o)for(s=o;++p<l;)(o=i(n[p],p,n))!=null&&s>o&&(s=o);return s}function Ot(n,i){for(var o=i.length,s=new Array(o);o--;)s[o]=n[i[o]];return s}function We(n,i){if(o=n.length){var o,s,l=0,p=0,b=n[p];for(i==null&&(i=d);++l<o;)(i(s=n[l],b)<0||i(b,b)!==0)&&(b=s,p=l);return i(b,b)===0?p:void 0}}function he(n,i,o){for(var s,l,p=(o==null?n.length:o)-(i=i==null?0:+i);p;)l=Math.random()*p--|0,s=n[p+i],n[p+i]=n[l+i],n[l+i]=s;return n}function zt(n,i){var o,s=n.length,l=-1,p=0;if(i==null)for(;++l<s;)(o=+n[l])&&(p+=o);else for(;++l<s;)(o=+i(n[l],l,n))&&(p+=o);return p}function te(n){if(!(l=n.length))return[];for(var i=-1,o=ye(n,at),s=new Array(o);++i<o;)for(var l,p=-1,b=s[i]=new Array(l);++p<l;)b[p]=n[p][i];return s}function at(n){return n.length}function ne(){return te(arguments)}var Mt=Array.prototype.slice;function Xt(n){return n}var Ht=1e-6;function Nt(n){return"translate("+(n+.5)+",0)"}function oe(n){return"translate(0,"+(n+.5)+")"}function tn(n){return function(i){return+n(i)}}function ve(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(o){return+n(o)+i}}function De(){return!this.__axis}function ln(n,i){var o=[],s=null,l=null,p=6,b=6,v=3,T=n===1||n===4?-1:1,N=n===4||n===2?"x":"y",B=n===1||n===3?Nt:oe;function F(O){var z=s==null?i.ticks?i.ticks.apply(i,o):i.domain():s,U=l==null?i.tickFormat?i.tickFormat.apply(i,o):Xt:l,Q=Math.max(p,0)+v,Z=i.range(),G=+Z[0]+.5,rt=+Z[Z.length-1]+.5,et=(i.bandwidth?ve:tn)(i.copy()),ut=O.selection?O.selection():O,Pt=ut.selectAll(".domain").data([null]),Vt=ut.selectAll(".tick").data(z,i).order(),qt=Vt.exit(),be=Vt.enter().append("g").attr("class","tick"),Yt=Vt.select("line"),ce=Vt.select("text");Pt=Pt.merge(Pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Vt=Vt.merge(be),Yt=Yt.merge(be.append("line").attr("stroke","currentColor").attr(N+"2",T*p)),ce=ce.merge(be.append("text").attr("fill","currentColor").attr(N,T*Q).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),O!==ut&&(Pt=Pt.transition(O),Vt=Vt.transition(O),Yt=Yt.transition(O),ce=ce.transition(O),qt=qt.transition(O).attr("opacity",Ht).attr("transform",function(ct){return isFinite(ct=et(ct))?B(ct):this.getAttribute("transform")}),be.attr("opacity",Ht).attr("transform",function(ct){var xt=this.parentNode.__axis;return B(xt&&isFinite(xt=xt(ct))?xt:et(ct))})),qt.remove(),Pt.attr("d",n===4||n==2?b?"M"+T*b+","+G+"H0.5V"+rt+"H"+T*b:"M0.5,"+G+"V"+rt:b?"M"+G+","+T*b+"V0.5H"+rt+"V"+T*b:"M"+G+",0.5H"+rt),Vt.attr("opacity",1).attr("transform",function(ct){return B(et(ct))}),Yt.attr(N+"2",T*p),ce.attr(N,T*Q).text(U),ut.filter(De).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),ut.each(function(){this.__axis=et})}return F.scale=function(O){return arguments.length?(i=O,F):i},F.ticks=function(){return o=Mt.call(arguments),F},F.tickArguments=function(O){return arguments.length?(o=O==null?[]:Mt.call(O),F):o.slice()},F.tickValues=function(O){return arguments.length?(s=O==null?null:Mt.call(O),F):s&&s.slice()},F.tickFormat=function(O){return arguments.length?(l=O,F):l},F.tickSize=function(O){return arguments.length?(p=b=+O,F):p},F.tickSizeInner=function(O){return arguments.length?(p=+O,F):p},F.tickSizeOuter=function(O){return arguments.length?(b=+O,F):b},F.tickPadding=function(O){return arguments.length?(v=+O,F):v},F}function Xe(n){return ln(1,n)}function Ie(n){return ln(2,n)}function Ae(n){return ln(3,n)}function en(n){return ln(4,n)}var Ue={value:function(){}};function Ze(){for(var n,i=0,o=arguments.length,s={};i<o;++i){if(!(n=arguments[i]+"")||n in s||/[\s.]/.test(n))throw new Error("illegal type: "+n);s[n]=[]}return new Qe(s)}function Qe(n){this._=n}function Le(n,i){return n.trim().split(/^|\s+/).map(function(o){var s="",l=o.indexOf(".");if(l>=0&&(s=o.slice(l+1),o=o.slice(0,l)),o&&!i.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:s}})}function Yn(n,i){for(var o,s=0,l=n.length;s<l;++s)if((o=n[s]).name===i)return o.value}function Me(n,i,o){for(var s=0,l=n.length;s<l;++s)if(n[s].name===i){n[s]=Ue,n=n.slice(0,s).concat(n.slice(s+1));break}return o!=null&&n.push({name:i,value:o}),n}Qe.prototype=Ze.prototype={constructor:Qe,on:function(n,i){var o,s=this._,l=Le(n+"",s),p=-1,b=l.length;if(!(arguments.length<2)){if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++p<b;)if(o=(n=l[p]).type)s[o]=Me(s[o],n.name,i);else if(i==null)for(o in s)s[o]=Me(s[o],n.name,null);return this}for(;++p<b;)if((o=(n=l[p]).type)&&(o=Yn(s[o],n.name)))return o},copy:function(){var n={},i=this._;for(var o in i)n[o]=i[o].slice();return new Qe(n)},call:function(n,i){if((o=arguments.length-2)>0)for(var o,s,l=new Array(o),p=0;p<o;++p)l[p]=arguments[p+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(p=0,o=(s=this._[n]).length;p<o;++p)s[p].value.apply(i,l)},apply:function(n,i,o){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var s=this._[n],l=0,p=s.length;l<p;++l)s[l].value.apply(i,o)}};const an=Ze;function vn(){}function Or(n){return n==null?vn:function(){return this.querySelector(n)}}function bn(){return[]}function Kn(n){return n==null?bn:function(){return this.querySelectorAll(n)}}function cn(n){return function(){return this.matches(n)}}function gn(n){return new Array(n.length)}function Ke(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function Tn(n,i,o,s,l,p){for(var b,v=0,T=i.length,N=p.length;v<N;++v)(b=i[v])?(b.__data__=p[v],s[v]=b):o[v]=new Ke(n,p[v]);for(;v<T;++v)(b=i[v])&&(l[v]=b)}function wn(n,i,o,s,l,p,b){var v,T,N,B={},F=i.length,O=p.length,z=new Array(F);for(v=0;v<F;++v)(T=i[v])&&(z[v]=N="$"+b.call(T,T.__data__,v,i),N in B?l[v]=T:B[N]=T);for(v=0;v<O;++v)(T=B[N="$"+b.call(n,p[v],v,p)])?(s[v]=T,T.__data__=p[v],B[N]=null):o[v]=new Ke(n,p[v]);for(v=0;v<F;++v)(T=i[v])&&B[z[v]]===T&&(l[v]=T)}function zn(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}Ke.prototype={constructor:Ke,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,i){return this._parent.insertBefore(n,i)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Un="http://www.w3.org/1999/xhtml";const Cr={svg:"http://www.w3.org/2000/svg",xhtml:Un,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kn(n){var i=n+="",o=i.indexOf(":");return o>=0&&(i=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),Cr.hasOwnProperty(i)?{space:Cr[i],local:n}:n}function Hn(n){return function(){this.removeAttribute(n)}}function Pn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function $n(n,i){return function(){this.setAttribute(n,i)}}function Vn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Jn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttribute(n):this.setAttribute(n,o)}}function An(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,o)}}function Ln(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function un(n){return function(){this.style.removeProperty(n)}}function jn(n,i,o){return function(){this.style.setProperty(n,i,o)}}function mn(n,i,o){return function(){var s=i.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,o)}}function ei(n,i){return n.style.getPropertyValue(i)||Ln(n).getComputedStyle(n,null).getPropertyValue(i)}function dr(n){return function(){delete this[n]}}function Ii(n,i){return function(){this[n]=i}}function In(n,i){return function(){var o=i.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function po(n){return n.trim().split(/^|\s+/)}function oa(n){return n.classList||new ni(n)}function ni(n){this._node=n,this._names=po(n.getAttribute("class")||"")}function Br(n,i){for(var o=oa(n),s=-1,l=i.length;++s<l;)o.add(i[s])}function Fr(n,i){for(var o=oa(n),s=-1,l=i.length;++s<l;)o.remove(i[s])}function $r(n){return function(){Br(this,n)}}function Xr(n){return function(){Fr(this,n)}}function Sr(n,i){return function(){(i.apply(this,arguments)?Br:Fr)(this,n)}}function Zr(){this.textContent=""}function Lr(n){return function(){this.textContent=n}}function Ci(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function ai(){this.innerHTML=""}function er(n){return function(){this.innerHTML=n}}function Hr(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function sa(){this.nextSibling&&this.parentNode.appendChild(this)}function Qr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ca(n){return function(){var i=this.ownerDocument,o=this.namespaceURI;return o===Un&&i.documentElement.namespaceURI===Un?i.createElement(n):i.createElementNS(o,n)}}function eo(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function oi(n){var i=kn(n);return(i.local?eo:ca)(i)}function on(){return null}function Gn(){var n=this.parentNode;n&&n.removeChild(this)}function En(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function Re(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}ni.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Xn={},pt=null;function Vr(n,i,o){return n=Qt(n,i,o),function(s){var l=s.relatedTarget;l&&(l===this||8&l.compareDocumentPosition(this))||n.call(this,s)}}function Qt(n,i,o){return function(s){var l=pt;pt=s;try{n.call(this,this.__data__,i,o)}finally{pt=l}}}function Si(n){return n.trim().split(/^|\s+/).map(function(i){var o="",s=i.indexOf(".");return s>=0&&(o=i.slice(s+1),i=i.slice(0,s)),{type:i,name:o}})}function Wi(n){return function(){var i=this.__on;if(i){for(var o,s=0,l=-1,p=i.length;s<p;++s)o=i[s],n.type&&o.type!==n.type||o.name!==n.name?i[++l]=o:this.removeEventListener(o.type,o.listener,o.capture);++l?i.length=l:delete this.__on}}}function Ba(n,i,o){var s=Xn.hasOwnProperty(n.type)?Vr:Qt;return function(l,p,b){var v,T=this.__on,N=s(i,p,b);if(T){for(var B=0,F=T.length;B<F;++B)if((v=T[B]).type===n.type&&v.name===n.name)return this.removeEventListener(v.type,v.listener,v.capture),this.addEventListener(v.type,v.listener=N,v.capture=o),void(v.value=i)}this.addEventListener(n.type,N,o),v={type:n.type,name:n.name,value:i,listener:N,capture:o},T?T.push(v):this.__on=[v]}}function no(n,i,o,s){var l=pt;n.sourceEvent=pt,pt=n;try{return i.apply(o,s)}finally{pt=l}}function go(n,i,o){var s=Ln(n),l=s.CustomEvent;typeof l=="function"?l=new l(i,o):(l=s.document.createEvent("Event"),o?(l.initEvent(i,o.bubbles,o.cancelable),l.detail=o.detail):l.initEvent(i,!1,!1)),n.dispatchEvent(l)}function yo(n,i){return function(){return go(this,n,i)}}function Wr(n,i){return function(){return go(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Xn={mouseenter:"mouseover",mouseleave:"mouseout"}));var $i=[null];function Cn(n,i){this._groups=n,this._parents=i}function Ta(){return new Cn([[document.documentElement]],$i)}Cn.prototype=Ta.prototype={constructor:Cn,select:function(n){typeof n!="function"&&(n=Or(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var p,b,v=i[l],T=v.length,N=s[l]=new Array(T),B=0;B<T;++B)(p=v[B])&&(b=n.call(p,p.__data__,B,v))&&("__data__"in p&&(b.__data__=p.__data__),N[B]=b);return new Cn(s,this._parents)},selectAll:function(n){typeof n!="function"&&(n=Kn(n));for(var i=this._groups,o=i.length,s=[],l=[],p=0;p<o;++p)for(var b,v=i[p],T=v.length,N=0;N<T;++N)(b=v[N])&&(s.push(n.call(b,b.__data__,N,v)),l.push(b));return new Cn(s,l)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var p,b=i[l],v=b.length,T=s[l]=[],N=0;N<v;++N)(p=b[N])&&n.call(p,p.__data__,N,b)&&T.push(p);return new Cn(s,this._parents)},data:function(n,i){if(!n)return U=new Array(this.size()),B=-1,this.each(function(Vt){U[++B]=Vt}),U;var o,s=i?wn:Tn,l=this._parents,p=this._groups;typeof n!="function"&&(o=n,n=function(){return o});for(var b=p.length,v=new Array(b),T=new Array(b),N=new Array(b),B=0;B<b;++B){var F=l[B],O=p[B],z=O.length,U=n.call(F,F&&F.__data__,B,l),Q=U.length,Z=T[B]=new Array(Q),G=v[B]=new Array(Q);s(F,O,Z,G,N[B]=new Array(z),U,i);for(var rt,et,ut=0,Pt=0;ut<Q;++ut)if(rt=Z[ut]){for(ut>=Pt&&(Pt=ut+1);!(et=G[Pt])&&++Pt<Q;);rt._next=et||null}}return(v=new Cn(v,l))._enter=T,v._exit=N,v},enter:function(){return new Cn(this._enter||this._groups.map(gn),this._parents)},exit:function(){return new Cn(this._exit||this._groups.map(gn),this._parents)},join:function(n,i,o){var s=this.enter(),l=this,p=this.exit();return s=typeof n=="function"?n(s):s.append(n+""),i!=null&&(l=i(l)),o==null?p.remove():o(p),s&&l?s.merge(l).order():l},merge:function(n){for(var i=this._groups,o=n._groups,s=i.length,l=o.length,p=Math.min(s,l),b=new Array(s),v=0;v<p;++v)for(var T,N=i[v],B=o[v],F=N.length,O=b[v]=new Array(F),z=0;z<F;++z)(T=N[z]||B[z])&&(O[z]=T);for(;v<s;++v)b[v]=i[v];return new Cn(b,this._parents)},order:function(){for(var n=this._groups,i=-1,o=n.length;++i<o;)for(var s,l=n[i],p=l.length-1,b=l[p];--p>=0;)(s=l[p])&&(b&&4^s.compareDocumentPosition(b)&&b.parentNode.insertBefore(s,b),b=s);return this},sort:function(n){function i(F,O){return F&&O?n(F.__data__,O.__data__):!F-!O}n||(n=zn);for(var o=this._groups,s=o.length,l=new Array(s),p=0;p<s;++p){for(var b,v=o[p],T=v.length,N=l[p]=new Array(T),B=0;B<T;++B)(b=v[B])&&(N[B]=b);N.sort(i)}return new Cn(l,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),i=-1;return this.each(function(){n[++i]=this}),n},node:function(){for(var n=this._groups,i=0,o=n.length;i<o;++i)for(var s=n[i],l=0,p=s.length;l<p;++l){var b=s[l];if(b)return b}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var i=this._groups,o=0,s=i.length;o<s;++o)for(var l,p=i[o],b=0,v=p.length;b<v;++b)(l=p[b])&&n.call(l,l.__data__,b,p);return this},attr:function(n,i){var o=kn(n);if(arguments.length<2){var s=this.node();return o.local?s.getAttributeNS(o.space,o.local):s.getAttribute(o)}return this.each((i==null?o.local?Pn:Hn:typeof i=="function"?o.local?An:Jn:o.local?Vn:$n)(o,i))},style:function(n,i,o){return arguments.length>1?this.each((i==null?un:typeof i=="function"?mn:jn)(n,i,o==null?"":o)):ei(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?dr:typeof i=="function"?In:Ii)(n,i)):this.node()[n]},classed:function(n,i){var o=po(n+"");if(arguments.length<2){for(var s=oa(this.node()),l=-1,p=o.length;++l<p;)if(!s.contains(o[l]))return!1;return!0}return this.each((typeof i=="function"?Sr:i?$r:Xr)(o,i))},text:function(n){return arguments.length?this.each(n==null?Zr:(typeof n=="function"?Ci:Lr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?ai:(typeof n=="function"?Hr:er)(n)):this.node().innerHTML},raise:function(){return this.each(sa)},lower:function(){return this.each(Qr)},append:function(n){var i=typeof n=="function"?n:oi(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var o=typeof n=="function"?n:oi(n),s=i==null?on:typeof i=="function"?i:Or(i);return this.select(function(){return this.insertBefore(o.apply(this,arguments),s.apply(this,arguments)||null)})},remove:function(){return this.each(Gn)},clone:function(n){return this.select(n?Re:En)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,o){var s,l,p=Si(n+""),b=p.length;if(!(arguments.length<2)){for(v=i?Ba:Wi,o==null&&(o=!1),s=0;s<b;++s)this.each(v(p[s],i,o));return this}var v=this.node().__on;if(v){for(var T,N=0,B=v.length;N<B;++N)for(s=0,T=v[N];s<b;++s)if((l=p[s]).type===T.type&&l.name===T.name)return T.value}},dispatch:function(n,i){return this.each((typeof i=="function"?Wr:yo)(n,i))}};const La=Ta;function pr(n){return typeof n=="string"?new Cn([[document.querySelector(n)]],[document.documentElement]):new Cn([[n]],$i)}function Tr(){pt.stopImmediatePropagation()}function di(){pt.preventDefault(),pt.stopImmediatePropagation()}function Kr(n){var i=n.document.documentElement,o=pr(n).on("dragstart.drag",di,!0);"onselectstart"in i?o.on("selectstart.drag",di,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Pr(n,i){var o=n.document.documentElement,s=pr(n).on("dragstart.drag",null);i&&(s.on("click.drag",di,!0),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in o?s.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function jr(n,i,o){n.prototype=i.prototype=o,o.constructor=n}function si(n,i){var o=Object.create(n.prototype);for(var s in i)o[s]=i[s];return o}function Gr(){}var Vi=.7,Ri=1/Vi,Ai="\\s*([+-]?\\d+)\\s*",ro="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qe=/^#([0-9a-f]{3,8})$/,Ye=new RegExp("^rgb\\("+[Ai,Ai,Ai]+"\\)$"),gr=new RegExp("^rgb\\("+[Bt,Bt,Bt]+"\\)$"),vr=new RegExp("^rgba\\("+[Ai,Ai,Ai,ro]+"\\)$"),pi=new RegExp("^rgba\\("+[Bt,Bt,Bt,ro]+"\\)$"),Jr=new RegExp("^hsl\\("+[ro,Bt,Bt]+"\\)$"),gs=new RegExp("^hsla\\("+[ro,Bt,Bt,ro]+"\\)$"),ea={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};function Yr(){return this.rgb().formatHex()}function Vs(){return this.rgb().formatRgb()}function Ia(n){var i,o;return n=(n+"").trim().toLowerCase(),(i=qe.exec(n))?(o=i[1].length,i=parseInt(i[1],16),o===6?Ec(i):o===3?new ti(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):o===8?io(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):o===4?io(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=Ye.exec(n))?new ti(i[1],i[2],i[3],1):(i=gr.exec(n))?new ti(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=vr.exec(n))?io(i[1],i[2],i[3],i[4]):(i=pi.exec(n))?io(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=Jr.exec(n))?Ra(i[1],i[2]/100,i[3]/100,1):(i=gs.exec(n))?Ra(i[1],i[2]/100,i[3]/100,i[4]):ea.hasOwnProperty(n)?Ec(ea[n]):n==="transparent"?new ti(NaN,NaN,NaN,0):null}function Ec(n){return new ti(n>>16&255,n>>8&255,255&n,1)}function io(n,i,o,s){return s<=0&&(n=i=o=NaN),new ti(n,i,o,s)}function Cc(n){return n instanceof Gr||(n=Ia(n)),n?new ti((n=n.rgb()).r,n.g,n.b,n.opacity):new ti}function Fi(n,i,o,s){return arguments.length===1?Cc(n):new ti(n,i,o,s==null?1:s)}function ti(n,i,o,s){this.r=+n,this.g=+i,this.b=+o,this.opacity=+s}function pu(){return"#"+yu(this.r)+yu(this.g)+yu(this.b)}function gu(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}function yu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ra(n,i,o,s){return s<=0?n=i=o=NaN:o<=0||o>=1?n=i=NaN:i<=0&&(n=NaN),new Fa(n,i,o,s)}function mu(n){if(n instanceof Fa)return new Fa(n.h,n.s,n.l,n.opacity);if(n instanceof Gr||(n=Ia(n)),!n)return new Fa;if(n instanceof Fa)return n;var i=(n=n.rgb()).r/255,o=n.g/255,s=n.b/255,l=Math.min(i,o,s),p=Math.max(i,o,s),b=NaN,v=p-l,T=(p+l)/2;return v?(b=i===p?(o-s)/v+6*(o<s):o===p?(s-i)/v+2:(i-o)/v+4,v/=T<.5?p+l:2-p-l,b*=60):v=T>0&&T<1?0:b,new Fa(b,v,T,n.opacity)}function vu(n,i,o,s){return arguments.length===1?mu(n):new Fa(n,i,o,s==null?1:s)}function Fa(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}function Pe(n,i,o){return 255*(n<60?i+(o-i)*n/60:n<180?o:n<240?i+(o-i)*(240-n)/60:i)}function Rl(n,i,o,s,l){var p=n*n,b=p*n;return((1-3*n+3*p-b)*i+(4-6*p+3*b)*o+(1+3*n+3*p-3*b)*s+b*l)/6}function Ar(n){var i=n.length-1;return function(o){var s=o<=0?o=0:o>=1?(o=1,i-1):Math.floor(o*i),l=n[s],p=n[s+1],b=s>0?n[s-1]:2*l-p,v=s<i-1?n[s+2]:2*p-l;return Rl((o-s/i)*i,b,l,p,v)}}function Sc(n){var i=n.length;return function(o){var s=Math.floor(((o%=1)<0?++o:o)*i),l=n[(s+i-1)%i],p=n[s%i],b=n[(s+1)%i],v=n[(s+2)%i];return Rl((o-s/i)*i,l,p,b,v)}}function Ac(n){return function(){return n}}function bu(n,i){return function(o){return n+o*i}}function Ea(n,i){var o=i-n;return o?bu(n,o>180||o<-180?o-360*Math.round(o/360):o):Ac(isNaN(n)?i:n)}function gi(n,i){var o=i-n;return o?bu(n,o):Ac(isNaN(n)?i:n)}jr(Gr,Ia,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Yr,formatHex:Yr,formatHsl:function(){return mu(this).formatHsl()},formatRgb:Vs,toString:Vs}),jr(ti,Fi,si(Gr,{brighter:function(n){return n=n==null?Ri:Math.pow(Ri,n),new ti(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new ti(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){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:pu,formatHex:pu,formatRgb:gu,toString:gu})),jr(Fa,vu,si(Gr,{brighter:function(n){return n=n==null?Ri:Math.pow(Ri,n),new Fa(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new Fa(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),i=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,s=o+(o<.5?o:1-o)*i,l=2*o-s;return new ti(Pe(n>=240?n-240:n+120,l,s),Pe(n,l,s),Pe(n<120?n+240:n-120,l,s),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(n===1?")":", "+n+")")}}));const Gs=function n(i){var o=function(l){return(l=+l)==1?gi:function(p,b){return b-p?function(v,T,N){return v=Math.pow(v,N),T=Math.pow(T,N)-v,N=1/N,function(B){return Math.pow(v+B*T,N)}}(p,b,l):Ac(isNaN(p)?b:p)}}(i);function s(l,p){var b=o((l=Fi(l)).r,(p=Fi(p)).r),v=o(l.g,p.g),T=o(l.b,p.b),N=gi(l.opacity,p.opacity);return function(B){return l.r=b(B),l.g=v(B),l.b=T(B),l.opacity=N(B),l+""}}return s.gamma=n,s}(1);function Fl(n){return function(i){var o,s,l=i.length,p=new Array(l),b=new Array(l),v=new Array(l);for(o=0;o<l;++o)s=Fi(i[o]),p[o]=s.r||0,b[o]=s.g||0,v[o]=s.b||0;return p=n(p),b=n(b),v=n(v),s.opacity=1,function(T){return s.r=p(T),s.g=b(T),s.b=v(T),s+""}}}var _u=Fl(Ar),mo=Fl(Sc);function Pl(n,i){i||(i=[]);var o,s=n?Math.min(i.length,n.length):0,l=i.slice();return function(p){for(o=0;o<s;++o)l[o]=n[o]*(1-p)+i[o]*p;return l}}function Lf(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function C0(n,i){return(Lf(i)?Pl:If)(n,i)}function If(n,i){var o,s=i?i.length:0,l=n?Math.min(s,n.length):0,p=new Array(l),b=new Array(s);for(o=0;o<l;++o)p[o]=Mc(n[o],i[o]);for(;o<s;++o)b[o]=i[o];return function(v){for(o=0;o<l;++o)b[o]=p[o](v);return b}}function Rf(n,i){var o=new Date;return n=+n,i=+i,function(s){return o.setTime(n*(1-s)+i*s),o}}function ua(n,i){return n=+n,i=+i,function(o){return n*(1-o)+i*o}}function Ff(n,i){var o,s={},l={};for(o in n!==null&&typeof n=="object"||(n={}),i!==null&&typeof i=="object"||(i={}),i)o in n?s[o]=Mc(n[o],i[o]):l[o]=i[o];return function(p){for(o in s)l[o]=s[o](p);return l}}var jl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yl=new RegExp(jl.source,"g");function vo(n,i){var o,s,l,p=jl.lastIndex=Yl.lastIndex=0,b=-1,v=[],T=[];for(n+="",i+="";(o=jl.exec(n))&&(s=Yl.exec(i));)(l=s.index)>p&&(l=i.slice(p,l),v[b]?v[b]+=l:v[++b]=l),(o=o[0])===(s=s[0])?v[b]?v[b]+=s:v[++b]=s:(v[++b]=null,T.push({i:b,x:ua(o,s)})),p=Yl.lastIndex;return p<i.length&&(l=i.slice(p),v[b]?v[b]+=l:v[++b]=l),v.length<2?T[0]?function(N){return function(B){return N(B)+""}}(T[0].x):function(N){return function(){return N}}(i):(i=T.length,function(N){for(var B,F=0;F<i;++F)v[(B=T[F]).i]=B.x(N);return v.join("")})}function Mc(n,i){var o,s=typeof i;return i==null||s==="boolean"?Ac(i):(s==="number"?ua:s==="string"?(o=Ia(i))?(i=o,Gs):vo:i instanceof Ia?Gs:i instanceof Date?Rf:Lf(i)?Pl:Array.isArray(i)?If:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?Ff:ua)(n,i)}function Pa(){for(var n,i=pt;n=i.sourceEvent;)i=n;return i}function Nc(n,i){var o=n.ownerSVGElement||n;if(o.createSVGPoint){var s=o.createSVGPoint();return s.x=i.clientX,s.y=i.clientY,[(s=s.matrixTransform(n.getScreenCTM().inverse())).x,s.y]}var l=n.getBoundingClientRect();return[i.clientX-l.left-n.clientLeft,i.clientY-l.top-n.clientTop]}function la(n,i,o){arguments.length<3&&(o=i,i=Pa().changedTouches);for(var s,l=0,p=i?i.length:0;l<p;++l)if((s=i[l]).identifier===o)return Nc(n,s);return null}function ys(n){var i=Pa();return i.changedTouches&&(i=i.changedTouches[0]),Nc(n,i)}var xu,bo,Pi=0,ci=0,ja=0,Ca=0,Gi=0,qn=0,E=typeof performance=="object"&&performance.now?performance:Date,R=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function $(){return Gi||(R(it),Gi=E.now()+qn)}function it(){Gi=0}function $t(){this._call=this._time=this._next=null}function de(n,i,o){var s=new $t;return s.restart(n,i,o),s}function we(){$(),++Pi;for(var n,i=xu;i;)(n=Gi-i._time)>=0&&i._call.call(null,n),i=i._next;--Pi}function Ne(){Gi=(Ca=E.now())+qn,Pi=ci=0;try{we()}finally{Pi=0,function(){for(var n,i,o=xu,s=1/0;o;)o._call?(s>o._time&&(s=o._time),n=o,o=o._next):(i=o._next,o._next=null,o=n?n._next=i:xu=i);bo=n,ze(s)}(),Gi=0}}function Oe(){var n=E.now(),i=n-Ca;i>1e3&&(qn-=i,Ca=n)}function ze(n){Pi||(ci&&(ci=clearTimeout(ci)),n-Gi>24?(n<1/0&&(ci=setTimeout(Ne,n-E.now()-qn)),ja&&(ja=clearInterval(ja))):(ja||(Ca=E.now(),ja=setInterval(Oe,1e3)),Pi=1,R(Ne)))}function Ve(n,i,o){var s=new $t;return i=i==null?0:+i,s.restart(function(l){s.stop(),n(l+i)},i,o),s}$t.prototype=de.prototype={constructor:$t,restart:function(n,i,o){if(typeof n!="function")throw new TypeError("callback is not a function");o=(o==null?$():+o)+(i==null?0:+i),this._next||bo===this||(bo?bo._next=this:xu=this,bo=this),this._call=n,this._time=o,ze()},stop:function(){this._call&&(this._call=null,this._time=1/0,ze())}};var xn=an("start","end","cancel","interrupt"),fn=[];function cr(n,i,o,s,l,p){var b=n.__transition;if(b){if(o in b)return}else n.__transition={};(function(v,T,N){var B,F=v.__transition;function O(Q){var Z,G,rt,et;if(N.state!==1)return U();for(Z in F)if((et=F[Z]).name===N.name){if(et.state===3)return Ve(O);et.state===4?(et.state=6,et.timer.stop(),et.on.call("interrupt",v,v.__data__,et.index,et.group),delete F[Z]):+Z<T&&(et.state=6,et.timer.stop(),et.on.call("cancel",v,v.__data__,et.index,et.group),delete F[Z])}if(Ve(function(){N.state===3&&(N.state=4,N.timer.restart(z,N.delay,N.time),z(Q))}),N.state=2,N.on.call("start",v,v.__data__,N.index,N.group),N.state===2){for(N.state=3,B=new Array(rt=N.tween.length),Z=0,G=-1;Z<rt;++Z)(et=N.tween[Z].value.call(v,v.__data__,N.index,N.group))&&(B[++G]=et);B.length=G+1}}function z(Q){for(var Z=Q<N.duration?N.ease.call(null,Q/N.duration):(N.timer.restart(U),N.state=5,1),G=-1,rt=B.length;++G<rt;)B[G].call(v,Z);N.state===5&&(N.on.call("end",v,v.__data__,N.index,N.group),U())}function U(){for(var Q in N.state=6,N.timer.stop(),delete F[T],F)return;delete v.__transition}F[T]=N,N.timer=de(function(Q){N.state=1,N.timer.restart(O,N.delay,N.time),N.delay<=Q&&O(Q-N.delay)},0,N.time)})(n,o,{name:i,index:s,group:l,on:xn,tween:fn,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function ur(n,i){var o=or(n,i);if(o.state>0)throw new Error("too late; already scheduled");return o}function Mr(n,i){var o=or(n,i);if(o.state>3)throw new Error("too late; already running");return o}function or(n,i){var o=n.__transition;if(!o||!(o=o[i]))throw new Error("transition not found");return o}function ha(n,i){var o,s,l,p=n.__transition,b=!0;if(p){for(l in i=i==null?null:i+"",p)(o=p[l]).name===i?(s=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(s?"interrupt":"cancel",n,n.__data__,o.index,o.group),delete p[l]):b=!1;b&&delete n.__transition}}var ms,zl,S0,Ul,_o=180/Math.PI,ql={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ey(n,i,o,s,l,p){var b,v,T;return(b=Math.sqrt(n*n+i*i))&&(n/=b,i/=b),(T=n*o+i*s)&&(o-=n*T,s-=i*T),(v=Math.sqrt(o*o+s*s))&&(o/=v,s/=v,T/=v),n*s<i*o&&(n=-n,i=-i,T=-T,b=-b),{translateX:l,translateY:p,rotate:Math.atan2(i,n)*_o,skewX:Math.atan(T)*_o,scaleX:b,scaleY:v}}function ny(n,i,o,s){function l(p){return p.length?p.pop()+" ":""}return function(p,b){var v=[],T=[];return p=n(p),b=n(b),function(N,B,F,O,z,U){if(N!==F||B!==O){var Q=z.push("translate(",null,i,null,o);U.push({i:Q-4,x:ua(N,F)},{i:Q-2,x:ua(B,O)})}else(F||O)&&z.push("translate("+F+i+O+o)}(p.translateX,p.translateY,b.translateX,b.translateY,v,T),function(N,B,F,O){N!==B?(N-B>180?B+=360:B-N>180&&(N+=360),O.push({i:F.push(l(F)+"rotate(",null,s)-2,x:ua(N,B)})):B&&F.push(l(F)+"rotate("+B+s)}(p.rotate,b.rotate,v,T),function(N,B,F,O){N!==B?O.push({i:F.push(l(F)+"skewX(",null,s)-2,x:ua(N,B)}):B&&F.push(l(F)+"skewX("+B+s)}(p.skewX,b.skewX,v,T),function(N,B,F,O,z,U){if(N!==F||B!==O){var Q=z.push(l(z)+"scale(",null,",",null,")");U.push({i:Q-4,x:ua(N,F)},{i:Q-2,x:ua(B,O)})}else F===1&&O===1||z.push(l(z)+"scale("+F+","+O+")")}(p.scaleX,p.scaleY,b.scaleX,b.scaleY,v,T),p=b=null,function(N){for(var B,F=-1,O=T.length;++F<O;)v[(B=T[F]).i]=B.x(N);return v.join("")}}}var A0=ny(function(n){return n==="none"?ql:(ms||(ms=document.createElement("DIV"),zl=document.documentElement,S0=document.defaultView),ms.style.transform=n,n=S0.getComputedStyle(zl.appendChild(ms),null).getPropertyValue("transform"),zl.removeChild(ms),ey(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),M0=ny(function(n){return n==null?ql:(Ul||(Ul=document.createElementNS("http://www.w3.org/2000/svg","g")),Ul.setAttribute("transform",n),(n=Ul.transform.baseVal.consolidate())?ey((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):ql)},", ",")",")");function ry(n,i){var o,s;return function(){var l=Mr(this,n),p=l.tween;if(p!==o){for(var b=0,v=(s=o=p).length;b<v;++b)if(s[b].name===i){(s=s.slice()).splice(b,1);break}}l.tween=s}}function N0(n,i,o){var s,l;if(typeof o!="function")throw new Error;return function(){var p=Mr(this,n),b=p.tween;if(b!==s){l=(s=b).slice();for(var v={name:i,value:o},T=0,N=l.length;T<N;++T)if(l[T].name===i){l[T]=v;break}T===N&&l.push(v)}p.tween=l}}function Pf(n,i,o){var s=n._id;return n.each(function(){var l=Mr(this,s);(l.value||(l.value={}))[i]=o.apply(this,arguments)}),function(l){return or(l,s).value[i]}}function D0(n,i){var o;return(typeof i=="number"?ua:i instanceof Ia?Gs:(o=Ia(i))?(i=o,Gs):vo)(n,i)}function qo(n){return function(){this.removeAttribute(n)}}function O0(n){return function(){this.removeAttributeNS(n.space,n.local)}}function B0(n,i,o){var s,l,p=o+"";return function(){var b=this.getAttribute(n);return b===p?null:b===s?l:l=i(s=b,o)}}function L0(n,i,o){var s,l,p=o+"";return function(){var b=this.getAttributeNS(n.space,n.local);return b===p?null:b===s?l:l=i(s=b,o)}}function I0(n,i,o){var s,l,p;return function(){var b,v,T=o(this);if(T!=null)return(b=this.getAttribute(n))===(v=T+"")?null:b===s&&v===l?p:(l=v,p=i(s=b,T));this.removeAttribute(n)}}function Sb(n,i,o){var s,l,p;return function(){var b,v,T=o(this);if(T!=null)return(b=this.getAttributeNS(n.space,n.local))===(v=T+"")?null:b===s&&v===l?p:(l=v,p=i(s=b,T));this.removeAttributeNS(n.space,n.local)}}function R0(n,i){return function(o){this.setAttribute(n,i.call(this,o))}}function vs(n,i){return function(o){this.setAttributeNS(n.space,n.local,i.call(this,o))}}function iy(n,i){var o,s;function l(){var p=i.apply(this,arguments);return p!==s&&(o=(s=p)&&vs(n,p)),o}return l._value=i,l}function F0(n,i){var o,s;function l(){var p=i.apply(this,arguments);return p!==s&&(o=(s=p)&&R0(n,p)),o}return l._value=i,l}function ay(n,i){return function(){ur(this,n).delay=+i.apply(this,arguments)}}function Hl(n,i){return i=+i,function(){ur(this,n).delay=i}}function Ab(n,i){return function(){Mr(this,n).duration=+i.apply(this,arguments)}}function Mb(n,i){return i=+i,function(){Mr(this,n).duration=i}}function P0(n,i){if(typeof i!="function")throw new Error;return function(){Mr(this,n).ease=i}}function j0(n,i,o){var s,l,p=function(b){return(b+"").trim().split(/^|\s+/).every(function(v){var T=v.indexOf(".");return T>=0&&(v=v.slice(0,T)),!v||v==="start"})}(i)?ur:Mr;return function(){var b=p(this,n),v=b.on;v!==s&&(l=(s=v).copy()).on(i,o),b.on=l}}var Y0=La.prototype.constructor;function z0(n){return function(){this.style.removeProperty(n)}}function U0(n,i,o){return function(s){this.style.setProperty(n,i.call(this,s),o)}}function q0(n,i,o){var s,l;function p(){var b=i.apply(this,arguments);return b!==l&&(s=(l=b)&&U0(n,b,o)),s}return p._value=i,p}function H0(n){return function(i){this.textContent=n.call(this,i)}}function Nb(n){var i,o;function s(){var l=n.apply(this,arguments);return l!==o&&(i=(o=l)&&H0(l)),i}return s._value=n,s}var Db=0;function Ho(n,i,o,s){this._groups=n,this._parents=i,this._name=o,this._id=s}function jf(n){return La().transition(n)}function W0(){return++Db}var Wo=La.prototype;function Yf(n){return n*n*n}function zf(n){return--n*n*n+1}function Xs(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Ho.prototype=jf.prototype={constructor:Ho,select:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=Or(n));for(var s=this._groups,l=s.length,p=new Array(l),b=0;b<l;++b)for(var v,T,N=s[b],B=N.length,F=p[b]=new Array(B),O=0;O<B;++O)(v=N[O])&&(T=n.call(v,v.__data__,O,N))&&("__data__"in v&&(T.__data__=v.__data__),F[O]=T,cr(F[O],i,o,O,F,or(v,o)));return new Ho(p,this._parents,i,o)},selectAll:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=Kn(n));for(var s=this._groups,l=s.length,p=[],b=[],v=0;v<l;++v)for(var T,N=s[v],B=N.length,F=0;F<B;++F)if(T=N[F]){for(var O,z=n.call(T,T.__data__,F,N),U=or(T,o),Q=0,Z=z.length;Q<Z;++Q)(O=z[Q])&&cr(O,i,o,Q,z,U);p.push(z),b.push(T)}return new Ho(p,b,i,o)},filter:function(n){typeof n!="function"&&(n=cn(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var p,b=i[l],v=b.length,T=s[l]=[],N=0;N<v;++N)(p=b[N])&&n.call(p,p.__data__,N,b)&&T.push(p);return new Ho(s,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,o=n._groups,s=i.length,l=o.length,p=Math.min(s,l),b=new Array(s),v=0;v<p;++v)for(var T,N=i[v],B=o[v],F=N.length,O=b[v]=new Array(F),z=0;z<F;++z)(T=N[z]||B[z])&&(O[z]=T);for(;v<s;++v)b[v]=i[v];return new Ho(b,this._parents,this._name,this._id)},selection:function(){return new Y0(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,o=W0(),s=this._groups,l=s.length,p=0;p<l;++p)for(var b,v=s[p],T=v.length,N=0;N<T;++N)if(b=v[N]){var B=or(b,i);cr(b,n,o,N,v,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ho(s,this._parents,n,o)},call:Wo.call,nodes:Wo.nodes,node:Wo.node,size:Wo.size,empty:Wo.empty,each:Wo.each,on:function(n,i){var o=this._id;return arguments.length<2?or(this.node(),o).on.on(n):this.each(j0(o,n,i))},attr:function(n,i){var o=kn(n),s=o==="transform"?M0:D0;return this.attrTween(n,typeof i=="function"?(o.local?Sb:I0)(o,s,Pf(this,"attr."+n,i)):i==null?(o.local?O0:qo)(o):(o.local?L0:B0)(o,s,i))},attrTween:function(n,i){var o="attr."+n;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(i==null)return this.tween(o,null);if(typeof i!="function")throw new Error;var s=kn(n);return this.tween(o,(s.local?iy:F0)(s,i))},style:function(n,i,o){var s=(n+="")=="transform"?A0:D0;return i==null?this.styleTween(n,function(l,p){var b,v,T;return function(){var N=ei(this,l),B=(this.style.removeProperty(l),ei(this,l));return N===B?null:N===b&&B===v?T:T=p(b=N,v=B)}}(n,s)).on("end.style."+n,z0(n)):typeof i=="function"?this.styleTween(n,function(l,p,b){var v,T,N;return function(){var B=ei(this,l),F=b(this),O=F+"";return F==null&&(this.style.removeProperty(l),O=F=ei(this,l)),B===O?null:B===v&&O===T?N:(T=O,N=p(v=B,F))}}(n,s,Pf(this,"style."+n,i))).each(function(l,p){var b,v,T,N,B="style."+p,F="end."+B;return function(){var O=Mr(this,l),z=O.on,U=O.value[B]==null?N||(N=z0(p)):void 0;z===b&&T===U||(v=(b=z).copy()).on(F,T=U),O.on=v}}(this._id,n)):this.styleTween(n,function(l,p,b){var v,T,N=b+"";return function(){var B=ei(this,l);return B===N?null:B===v?T:T=p(v=B,b)}}(n,s,i),o).on("end.style."+n,null)},styleTween:function(n,i,o){var s="style."+(n+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(i==null)return this.tween(s,null);if(typeof i!="function")throw new Error;return this.tween(s,q0(n,i,o==null?"":o))},text:function(n){return this.tween("text",typeof n=="function"?function(i){return function(){var o=i(this);this.textContent=o==null?"":o}}(Pf(this,"text",n)):function(i){return function(){this.textContent=i}}(n==null?"":n+""))},textTween:function(n){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Nb(n))},remove:function(){return this.on("end.remove",function(n){return function(){var i=this.parentNode;for(var o in this.__transition)if(+o!==n)return;i&&i.removeChild(this)}}(this._id))},tween:function(n,i){var o=this._id;if(n+="",arguments.length<2){for(var s,l=or(this.node(),o).tween,p=0,b=l.length;p<b;++p)if((s=l[p]).name===n)return s.value;return null}return this.each((i==null?ry:N0)(o,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?ay:Hl)(i,n)):or(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Ab:Mb)(i,n)):or(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(P0(i,n)):or(this.node(),i).ease},end:function(){var n,i,o=this,s=o._id,l=o.size();return new Promise(function(p,b){var v={value:b},T={value:function(){--l==0&&p()}};o.each(function(){var N=Mr(this,s),B=N.on;B!==n&&((i=(n=B).copy())._.cancel.push(v),i._.interrupt.push(v),i._.end.push(T)),N.on=i})})}};var Dc={time:null,delay:0,duration:250,ease:Xs};function $o(n,i){for(var o;!(o=n.__transition)||!(o=o[i]);)if(!(n=n.parentNode))return Dc.time=$(),Dc;return o}La.prototype.interrupt=function(n){return this.each(function(){ha(this,n)})},La.prototype.transition=function(n){var i,o;n instanceof Ho?(i=n._id,n=n._name):(i=W0(),(o=Dc).time=$(),n=n==null?null:n+"");for(var s=this._groups,l=s.length,p=0;p<l;++p)for(var b,v=s[p],T=v.length,N=0;N<T;++N)(b=v[N])&&cr(b,n,i,N,v,o||$o(b,i));return new Ho(s,this._parents,n,i)};var Ob=[null];function Bb(n,i){var o,s,l=n.__transition;if(l){for(s in i=i==null?null:i+"",l)if((o=l[s]).state>1&&o.name===i)return new Ho([[n]],Ob,i,+s)}return null}function $0(n){return function(){return n}}function Lb(n,i,o){this.target=n,this.type=i,this.selection=o}function oy(){pt.stopImmediatePropagation()}function V0(){pt.preventDefault(),pt.stopImmediatePropagation()}var sy={name:"drag"},Uf={name:"space"},Oc={name:"handle"},Bc={name:"center"};function wu(n){return[+n[0],+n[1]]}function qf(n){return[wu(n[0]),wu(n[1])]}function Hf(n){return function(i){return la(i,pt.touches,n)}}var Wf={name:"x",handles:["w","e"].map(Sa),input:function(n,i){return n==null?null:[[+n[0],i[0][1]],[+n[1],i[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},ku={name:"y",handles:["n","s"].map(Sa),input:function(n,i){return n==null?null:[[i[0][0],+n[0]],[i[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},Ya={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Sa),input:function(n){return n==null?null:qf(n)},output:function(n){return n}},Vo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},G0={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},$f={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},cy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},uy={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Sa(n){return{type:n}}function X0(){return!pt.ctrlKey&&!pt.button}function Z0(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function ly(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function Ib(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Rb(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Gf(){return Wl(Wf)}function Fb(){return Wl(ku)}function Q0(){return Wl(Ya)}function Wl(n){var i,o=Z0,s=X0,l=ly,p=!0,b=an("start","brush","end"),v=6;function T(Z){var G=Z.property("__brush",Q).selectAll(".overlay").data([Sa("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Vo.overlay).merge(G).each(function(){var et=Vf(this).extent;pr(this).attr("x",et[0][0]).attr("y",et[0][1]).attr("width",et[1][0]-et[0][0]).attr("height",et[1][1]-et[0][1])}),Z.selectAll(".selection").data([Sa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Vo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var rt=Z.selectAll(".handle").data(n.handles,function(et){return et.type});rt.exit().remove(),rt.enter().append("rect").attr("class",function(et){return"handle handle--"+et.type}).attr("cursor",function(et){return Vo[et.type]}),Z.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",O).filter(l).on("touchstart.brush",O).on("touchmove.brush",z).on("touchend.brush touchcancel.brush",U).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(){var Z=pr(this),G=Vf(this).selection;G?(Z.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),Z.selectAll(".handle").style("display",null).attr("x",function(rt){return rt.type[rt.type.length-1]==="e"?G[1][0]-v/2:G[0][0]-v/2}).attr("y",function(rt){return rt.type[0]==="s"?G[1][1]-v/2:G[0][1]-v/2}).attr("width",function(rt){return rt.type==="n"||rt.type==="s"?G[1][0]-G[0][0]+v:v}).attr("height",function(rt){return rt.type==="e"||rt.type==="w"?G[1][1]-G[0][1]+v:v})):Z.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(Z,G,rt){var et=Z.__brush.emitter;return!et||rt&&et.clean?new F(Z,G,rt):et}function F(Z,G,rt){this.that=Z,this.args=G,this.state=Z.__brush,this.active=0,this.clean=rt}function O(){if((!i||pt.touches)&&s.apply(this,arguments)){var Z,G,rt,et,ut,Pt,Vt,qt,be,Yt,ce,ct=this,xt=pt.target.__data__.type,ie=(p&&pt.metaKey?xt="overlay":xt)==="selection"?sy:p&&pt.altKey?Bc:Oc,Kt=n===ku?null:cy[xt],ae=n===Wf?null:uy[xt],Be=Vf(ct),$e=Be.extent,dn=Be.selection,Fn=$e[0][0],ir=$e[0][1],rn=$e[1][0],tr=$e[1][1],Dn=0,Sn=0,sr=Kt&&ae&&p&&pt.shiftKey,Hi=pt.touches?Hf(pt.changedTouches[0].identifier):ys,bi=Hi(ct),$s=bi,Tc=B(ct,arguments,!0).beforestart();xt==="overlay"?(dn&&(be=!0),Be.selection=dn=[[Z=n===ku?Fn:bi[0],rt=n===Wf?ir:bi[1]],[ut=n===ku?rn:Z,Vt=n===Wf?tr:rt]]):(Z=dn[0][0],rt=dn[0][1],ut=dn[1][0],Vt=dn[1][1]),G=Z,et=rt,Pt=ut,qt=Vt;var Df=pr(ct).attr("pointer-events","none"),Of=Df.selectAll(".overlay").attr("cursor",Vo[xt]);if(pt.touches)Tc.moved=E0,Tc.ended=Ka;else{var ps=pr(pt.view).on("mousemove.brush",E0,!0).on("mouseup.brush",Ka,!0);p&&ps.on("keydown.brush",Q2,!0).on("keyup.brush",_b,!0),Kr(pt.view)}oy(),ha(ct),N.call(ct),Tc.start()}function E0(){var Ja=Hi(ct);!sr||Yt||ce||(Math.abs(Ja[0]-$s[0])>Math.abs(Ja[1]-$s[1])?ce=!0:Yt=!0),$s=Ja,be=!0,V0(),lo()}function lo(){var Ja;switch(Dn=$s[0]-bi[0],Sn=$s[1]-bi[1],ie){case Uf:case sy:Kt&&(Dn=Math.max(Fn-Z,Math.min(rn-ut,Dn)),G=Z+Dn,Pt=ut+Dn),ae&&(Sn=Math.max(ir-rt,Math.min(tr-Vt,Sn)),et=rt+Sn,qt=Vt+Sn);break;case Oc:Kt<0?(Dn=Math.max(Fn-Z,Math.min(rn-Z,Dn)),G=Z+Dn,Pt=ut):Kt>0&&(Dn=Math.max(Fn-ut,Math.min(rn-ut,Dn)),G=Z,Pt=ut+Dn),ae<0?(Sn=Math.max(ir-rt,Math.min(tr-rt,Sn)),et=rt+Sn,qt=Vt):ae>0&&(Sn=Math.max(ir-Vt,Math.min(tr-Vt,Sn)),et=rt,qt=Vt+Sn);break;case Bc:Kt&&(G=Math.max(Fn,Math.min(rn,Z-Dn*Kt)),Pt=Math.max(Fn,Math.min(rn,ut+Dn*Kt))),ae&&(et=Math.max(ir,Math.min(tr,rt-Sn*ae)),qt=Math.max(ir,Math.min(tr,Vt+Sn*ae)))}Pt<G&&(Kt*=-1,Ja=Z,Z=ut,ut=Ja,Ja=G,G=Pt,Pt=Ja,xt in G0&&Of.attr("cursor",Vo[xt=G0[xt]])),qt<et&&(ae*=-1,Ja=rt,rt=Vt,Vt=Ja,Ja=et,et=qt,qt=Ja,xt in $f&&Of.attr("cursor",Vo[xt=$f[xt]])),Be.selection&&(dn=Be.selection),Yt&&(G=dn[0][0],Pt=dn[1][0]),ce&&(et=dn[0][1],qt=dn[1][1]),dn[0][0]===G&&dn[0][1]===et&&dn[1][0]===Pt&&dn[1][1]===qt||(Be.selection=[[G,et],[Pt,qt]],N.call(ct),Tc.brush())}function Ka(){if(oy(),pt.touches){if(pt.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Pr(pt.view,be),ps.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Df.attr("pointer-events","all"),Of.attr("cursor",Vo.overlay),Be.selection&&(dn=Be.selection),Ib(dn)&&(Be.selection=null,N.call(ct)),Tc.end()}function Q2(){switch(pt.keyCode){case 16:sr=Kt&&ae;break;case 18:ie===Oc&&(Kt&&(ut=Pt-Dn*Kt,Z=G+Dn*Kt),ae&&(Vt=qt-Sn*ae,rt=et+Sn*ae),ie=Bc,lo());break;case 32:ie!==Oc&&ie!==Bc||(Kt<0?ut=Pt-Dn:Kt>0&&(Z=G-Dn),ae<0?Vt=qt-Sn:ae>0&&(rt=et-Sn),ie=Uf,Of.attr("cursor",Vo.selection),lo());break;default:return}V0()}function _b(){switch(pt.keyCode){case 16:sr&&(Yt=ce=sr=!1,lo());break;case 18:ie===Bc&&(Kt<0?ut=Pt:Kt>0&&(Z=G),ae<0?Vt=qt:ae>0&&(rt=et),ie=Oc,lo());break;case 32:ie===Uf&&(pt.altKey?(Kt&&(ut=Pt-Dn*Kt,Z=G+Dn*Kt),ae&&(Vt=qt-Sn*ae,rt=et+Sn*ae),ie=Bc):(Kt<0?ut=Pt:Kt>0&&(Z=G),ae<0?Vt=qt:ae>0&&(rt=et),ie=Oc),Of.attr("cursor",Vo[xt]),lo());break;default:return}V0()}}function z(){B(this,arguments).moved()}function U(){B(this,arguments).ended()}function Q(){var Z=this.__brush||{selection:null};return Z.extent=qf(o.apply(this,arguments)),Z.dim=n,Z}return T.move=function(Z,G){Z.selection?Z.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var rt=this,et=rt.__brush,ut=B(rt,arguments),Pt=et.selection,Vt=n.input(typeof G=="function"?G.apply(this,arguments):G,et.extent),qt=Mc(Pt,Vt);function be(Yt){et.selection=Yt===1&&Vt===null?null:qt(Yt),N.call(rt),ut.brush()}return Pt!==null&&Vt!==null?be:be(1)}):Z.each(function(){var rt=this,et=arguments,ut=rt.__brush,Pt=n.input(typeof G=="function"?G.apply(rt,et):G,ut.extent),Vt=B(rt,et).beforestart();ha(rt),ut.selection=Pt===null?null:Pt,N.call(rt),Vt.start().brush().end()})},T.clear=function(Z){T.move(Z,null)},F.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(Z){no(new Lb(T,Z,n.output(this.state.selection)),b.apply,b,[Z,this.that,this.args])}},T.extent=function(Z){return arguments.length?(o=typeof Z=="function"?Z:$0(qf(Z)),T):o},T.filter=function(Z){return arguments.length?(s=typeof Z=="function"?Z:$0(!!Z),T):s},T.touchable=function(Z){return arguments.length?(l=typeof Z=="function"?Z:$0(!!Z),T):l},T.handleSize=function(Z){return arguments.length?(v=+Z,T):v},T.keyModifiers=function(Z){return arguments.length?(p=!!Z,T):p},T.on=function(){var Z=b.on.apply(b,arguments);return Z===b?T:Z},T}var hy=Math.cos,fy=Math.sin,Xf=Math.PI,Zf=Xf/2,dy=2*Xf,K0=Math.max;function Tu(n){return function(i,o){return n(i.source.value+i.target.value,o.source.value+o.target.value)}}function J0(){var n=0,i=null,o=null,s=null;function l(p){var b,v,T,N,B,F,O=p.length,z=[],U=st(O),Q=[],Z=[],G=Z.groups=new Array(O),rt=new Array(O*O);for(b=0,B=-1;++B<O;){for(v=0,F=-1;++F<O;)v+=p[B][F];z.push(v),Q.push(st(O)),b+=v}for(i&&U.sort(function(ce,ct){return i(z[ce],z[ct])}),o&&Q.forEach(function(ce,ct){ce.sort(function(xt,ie){return o(p[ct][xt],p[ct][ie])})}),N=(b=K0(0,dy-n*O)/b)?n:dy/O,v=0,B=-1;++B<O;){for(T=v,F=-1;++F<O;){var et=U[B],ut=Q[et][F],Pt=p[et][ut],Vt=v,qt=v+=Pt*b;rt[ut*O+et]={index:et,subindex:ut,startAngle:Vt,endAngle:qt,value:Pt}}G[et]={index:et,startAngle:T,endAngle:v,value:z[et]},v+=N}for(B=-1;++B<O;)for(F=B-1;++F<O;){var be=rt[F*O+B],Yt=rt[B*O+F];(be.value||Yt.value)&&Z.push(be.value<Yt.value?{source:Yt,target:be}:{source:be,target:Yt})}return s?Z.sort(s):Z}return l.padAngle=function(p){return arguments.length?(n=K0(0,p),l):n},l.sortGroups=function(p){return arguments.length?(i=p,l):i},l.sortSubgroups=function(p){return arguments.length?(o=p,l):o},l.sortChords=function(p){return arguments.length?(p==null?s=null:(s=Tu(p))._=p,l):s&&s._},l}var Pb=Array.prototype.slice;function tp(n){return function(){return n}}var Qf=Math.PI,Kf=2*Qf,bs=1e-6,py=Kf-bs;function ep(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function $l(){return new ep}ep.prototype=$l.prototype={constructor:ep,moveTo:function(n,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,i){this._+="L"+(this._x1=+n)+","+(this._y1=+i)},quadraticCurveTo:function(n,i,o,s){this._+="Q"+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+s)},bezierCurveTo:function(n,i,o,s,l,p){this._+="C"+ +n+","+ +i+","+ +o+","+ +s+","+(this._x1=+l)+","+(this._y1=+p)},arcTo:function(n,i,o,s,l){n=+n,i=+i,o=+o,s=+s,l=+l;var p=this._x1,b=this._y1,v=o-n,T=s-i,N=p-n,B=b-i,F=N*N+B*B;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=i);else if(F>bs)if(Math.abs(B*v-T*N)>bs&&l){var O=o-p,z=s-b,U=v*v+T*T,Q=O*O+z*z,Z=Math.sqrt(U),G=Math.sqrt(F),rt=l*Math.tan((Qf-Math.acos((U+F-Q)/(2*Z*G)))/2),et=rt/G,ut=rt/Z;Math.abs(et-1)>bs&&(this._+="L"+(n+et*N)+","+(i+et*B)),this._+="A"+l+","+l+",0,0,"+ +(B*O>N*z)+","+(this._x1=n+ut*v)+","+(this._y1=i+ut*T)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,o,s,l,p){n=+n,i=+i,p=!!p;var b=(o=+o)*Math.cos(s),v=o*Math.sin(s),T=n+b,N=i+v,B=1^p,F=p?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+T+","+N:(Math.abs(this._x1-T)>bs||Math.abs(this._y1-N)>bs)&&(this._+="L"+T+","+N),o&&(F<0&&(F=F%Kf+Kf),F>py?this._+="A"+o+","+o+",0,1,"+B+","+(n-b)+","+(i-v)+"A"+o+","+o+",0,1,"+B+","+(this._x1=T)+","+(this._y1=N):F>bs&&(this._+="A"+o+","+o+",0,"+ +(F>=Qf)+","+B+","+(this._x1=n+o*Math.cos(l))+","+(this._y1=i+o*Math.sin(l))))},rect:function(n,i,o,s){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +o+"v"+ +s+"h"+-o+"Z"},toString:function(){return this._}};const _s=$l;function Jf(n){return n.source}function Eu(n){return n.target}function gy(n){return n.radius}function yy(n){return n.startAngle}function my(n){return n.endAngle}function np(){var n=Jf,i=Eu,o=gy,s=yy,l=my,p=null;function b(){var v,T=Pb.call(arguments),N=n.apply(this,T),B=i.apply(this,T),F=+o.apply(this,(T[0]=N,T)),O=s.apply(this,T)-Zf,z=l.apply(this,T)-Zf,U=F*hy(O),Q=F*fy(O),Z=+o.apply(this,(T[0]=B,T)),G=s.apply(this,T)-Zf,rt=l.apply(this,T)-Zf;if(p||(p=v=_s()),p.moveTo(U,Q),p.arc(0,0,F,O,z),O===G&&z===rt||(p.quadraticCurveTo(0,0,Z*hy(G),Z*fy(G)),p.arc(0,0,Z,G,rt)),p.quadraticCurveTo(0,0,U,Q),p.closePath(),v)return p=null,v+""||null}return b.radius=function(v){return arguments.length?(o=typeof v=="function"?v:tp(+v),b):o},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:tp(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:tp(+v),b):l},b.source=function(v){return arguments.length?(n=v,b):n},b.target=function(v){return arguments.length?(i=v,b):i},b.context=function(v){return arguments.length?(p=v==null?null:v,b):p},b}var za="$";function Vl(){}function rp(n,i){var o=new Vl;if(n instanceof Vl)n.each(function(v,T){o.set(T,v)});else if(Array.isArray(n)){var s,l=-1,p=n.length;if(i==null)for(;++l<p;)o.set(l,n[l]);else for(;++l<p;)o.set(i(s=n[l],l,n),s)}else if(n)for(var b in n)o.set(b,n[b]);return o}Vl.prototype=rp.prototype={constructor:Vl,has:function(n){return za+n in this},get:function(n){return this[za+n]},set:function(n,i){return this[za+n]=i,this},remove:function(n){var i=za+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===za&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===za&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===za&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===za&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===za&&++n;return n},empty:function(){for(var n in this)if(n[0]===za)return!1;return!0},each:function(n){for(var i in this)i[0]===za&&n(this[i],i.slice(1),this)}};const xs=rp;function jb(){var n,i,o,s=[],l=[];function p(v,T,N,B){if(T>=s.length)return n!=null&&v.sort(n),i!=null?i(v):v;for(var F,O,z,U=-1,Q=v.length,Z=s[T++],G=xs(),rt=N();++U<Q;)(z=G.get(F=Z(O=v[U])+""))?z.push(O):G.set(F,[O]);return G.each(function(et,ut){B(rt,ut,p(et,T,N,B))}),rt}function b(v,T){if(++T>s.length)return v;var N,B=l[T-1];return i!=null&&T>=s.length?N=v.entries():(N=[],v.each(function(F,O){N.push({key:O,values:b(F,T)})})),B!=null?N.sort(function(F,O){return B(F.key,O.key)}):N}return o={object:function(v){return p(v,0,vy,by)},map:function(v){return p(v,0,ip,_y)},entries:function(v){return b(p(v,0,ip,_y),0)},key:function(v){return s.push(v),o},sortKeys:function(v){return l[s.length-1]=v,o},sortValues:function(v){return n=v,o},rollup:function(v){return i=v,o}}}function vy(){return{}}function by(n,i,o){n[i]=o}function ip(){return xs()}function _y(n,i,o){n.set(i,o)}function Gl(){}var Zs=xs.prototype;function Cu(n,i){var o=new Gl;if(n instanceof Gl)n.each(function(p){o.add(p)});else if(n){var s=-1,l=n.length;if(i==null)for(;++s<l;)o.add(n[s]);else for(;++s<l;)o.add(i(n[s],s,n))}return o}Gl.prototype=Cu.prototype={constructor:Gl,has:Zs.has,add:function(n){return this[za+(n+="")]=n,this},remove:Zs.remove,clear:Zs.clear,values:Zs.keys,size:Zs.size,empty:Zs.empty,each:Zs.each};const Qs=Cu;function Xl(n){var i=[];for(var o in n)i.push(o);return i}function ap(n){var i=[];for(var o in n)i.push(n[o]);return i}function op(n){var i=[];for(var o in n)i.push({key:o,value:n[o]});return i}var t1=Math.PI/180,e1=180/Math.PI,n1=.96422,Mi=.82521,r1=4/29,sp=6/29,xy=3*sp*sp;function Su(n){if(n instanceof xo)return new xo(n.l,n.a,n.b,n.opacity);if(n instanceof Go)return lp(n);n instanceof ti||(n=Cc(n));var i,o,s=ws(n.r),l=ws(n.g),p=ws(n.b),b=i1((.2225045*s+.7168786*l+.0606169*p)/1);return s===l&&l===p?i=o=b:(i=i1((.4360747*s+.3850649*l+.1430804*p)/n1),o=i1((.0139322*s+.0971045*l+.7141733*p)/Mi)),new xo(116*b-16,500*(i-b),200*(b-o),n.opacity)}function Yb(n,i){return new xo(n,0,0,i==null?1:i)}function Zl(n,i,o,s){return arguments.length===1?Su(n):new xo(n,i,o,s==null?1:s)}function xo(n,i,o,s){this.l=+n,this.a=+i,this.b=+o,this.opacity=+s}function i1(n){return n>.008856451679035631?Math.pow(n,1/3):n/xy+r1}function cp(n){return n>sp?n*n*n:xy*(n-r1)}function Au(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function ws(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function a1(n){if(n instanceof Go)return new Go(n.h,n.c,n.l,n.opacity);if(n instanceof xo||(n=Su(n)),n.a===0&&n.b===0)return new Go(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*e1;return new Go(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function up(n,i,o,s){return arguments.length===1?a1(n):new Go(o,i,n,s==null?1:s)}function Ks(n,i,o,s){return arguments.length===1?a1(n):new Go(n,i,o,s==null?1:s)}function Go(n,i,o,s){this.h=+n,this.c=+i,this.l=+o,this.opacity=+s}function lp(n){if(isNaN(n.h))return new xo(n.l,0,0,n.opacity);var i=n.h*t1;return new xo(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}jr(xo,Zl,si(Gr,{brighter:function(n){return new xo(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new xo(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,o=isNaN(this.b)?n:n-this.b/200;return new ti(Au(3.1338561*(i=n1*cp(i))-1.6168667*(n=1*cp(n))-.4906146*(o=Mi*cp(o))),Au(-.9787684*i+1.9161415*n+.033454*o),Au(.0719453*i-.2289914*n+1.4052427*o),this.opacity)}})),jr(Go,Ks,si(Gr,{brighter:function(n){return new Go(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new Go(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return lp(this).rgb()}}));var hp=-.14861,ks=1.78277,fp=-.29227,Ql=-.90649,wo=1.97294,wy=wo*Ql,o1=wo*ks,Mu=ks*fp-Ql*hp;function ky(n){if(n instanceof Lc)return new Lc(n.h,n.s,n.l,n.opacity);n instanceof ti||(n=Cc(n));var i=n.r/255,o=n.g/255,s=n.b/255,l=(Mu*s+wy*i-o1*o)/(Mu+wy-o1),p=s-l,b=(wo*(o-l)-fp*p)/Ql,v=Math.sqrt(b*b+p*p)/(wo*l*(1-l)),T=v?Math.atan2(b,p)*e1-120:NaN;return new Lc(T<0?T+360:T,v,l,n.opacity)}function fa(n,i,o,s){return arguments.length===1?ky(n):new Lc(n,i,o,s==null?1:s)}function Lc(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}jr(Lc,fa,si(Gr,{brighter:function(n){return n=n==null?Ri:Math.pow(Ri,n),new Lc(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new Lc(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*t1,i=+this.l,o=isNaN(this.s)?0:this.s*i*(1-i),s=Math.cos(n),l=Math.sin(n);return new ti(255*(i+o*(hp*s+ks*l)),255*(i+o*(fp*s+Ql*l)),255*(i+o*(wo*s)),this.opacity)}}));var Ty=Array.prototype.slice;function zb(n,i){return n-i}function Xo(n){return function(){return n}}function dp(n,i){for(var o,s=-1,l=i.length;++s<l;)if(o=Kl(n,i[s]))return o;return 0}function Kl(n,i){for(var o=i[0],s=i[1],l=-1,p=0,b=n.length,v=b-1;p<b;v=p++){var T=n[p],N=T[0],B=T[1],F=n[v],O=F[0],z=F[1];if(Jl(T,F,i))return 0;B>s!=z>s&&o<(O-N)*(s-B)/(z-B)+N&&(l=-l)}return l}function Jl(n,i,o){var s,l,p,b;return function(v,T,N){return(T[0]-v[0])*(N[1]-v[1])==(N[0]-v[0])*(T[1]-v[1])}(n,i,o)&&(l=n[s=+(n[0]===i[0])],p=o[s],b=i[s],l<=p&&p<=b||b<=p&&p<=l)}function Ey(){}var Zo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Ni(){var n=1,i=1,o=Wt,s=v;function l(T){var N=o(T);if(Array.isArray(N))N=N.slice().sort(zb);else{var B=J(T),F=B[0],O=B[1];N=vt(F,O,N),N=st(Math.floor(F/N)*N,Math.floor(O/N)*N,N)}return N.map(function(z){return p(T,z)})}function p(T,N){var B=[],F=[];return function(O,z,U){var Q,Z,G,rt,et,ut,Pt=new Array,Vt=new Array;for(Q=Z=-1,rt=O[0]>=z,Zo[rt<<1].forEach(qt);++Q<n-1;)G=rt,rt=O[Q+1]>=z,Zo[G|rt<<1].forEach(qt);for(Zo[rt<<0].forEach(qt);++Z<i-1;){for(Q=-1,rt=O[Z*n+n]>=z,et=O[Z*n]>=z,Zo[rt<<1|et<<2].forEach(qt);++Q<n-1;)G=rt,rt=O[Z*n+n+Q+1]>=z,ut=et,et=O[Z*n+Q+1]>=z,Zo[G|rt<<1|et<<2|ut<<3].forEach(qt);Zo[rt|et<<3].forEach(qt)}for(Q=-1,et=O[Z*n]>=z,Zo[et<<2].forEach(qt);++Q<n-1;)ut=et,et=O[Z*n+Q+1]>=z,Zo[et<<2|ut<<3].forEach(qt);function qt(be){var Yt,ce,ct=[be[0][0]+Q,be[0][1]+Z],xt=[be[1][0]+Q,be[1][1]+Z],ie=b(ct),Kt=b(xt);(Yt=Vt[ie])?(ce=Pt[Kt])?(delete Vt[Yt.end],delete Pt[ce.start],Yt===ce?(Yt.ring.push(xt),U(Yt.ring)):Pt[Yt.start]=Vt[ce.end]={start:Yt.start,end:ce.end,ring:Yt.ring.concat(ce.ring)}):(delete Vt[Yt.end],Yt.ring.push(xt),Vt[Yt.end=Kt]=Yt):(Yt=Pt[Kt])?(ce=Vt[ie])?(delete Pt[Yt.start],delete Vt[ce.end],Yt===ce?(Yt.ring.push(xt),U(Yt.ring)):Pt[ce.start]=Vt[Yt.end]={start:ce.start,end:Yt.end,ring:ce.ring.concat(Yt.ring)}):(delete Pt[Yt.start],Yt.ring.unshift(ct),Pt[Yt.start=ie]=Yt):Pt[ie]=Vt[Kt]={start:ie,end:Kt,ring:[ct,xt]}}Zo[et<<3].forEach(qt)}(T,N,function(O){s(O,T,N),function(z){for(var U=0,Q=z.length,Z=z[Q-1][1]*z[0][0]-z[Q-1][0]*z[0][1];++U<Q;)Z+=z[U-1][1]*z[U][0]-z[U-1][0]*z[U][1];return Z}(O)>0?B.push([O]):F.push(O)}),F.forEach(function(O){for(var z,U=0,Q=B.length;U<Q;++U)if(dp((z=B[U])[0],O)!==-1)return void z.push(O)}),{type:"MultiPolygon",value:N,coordinates:B}}function b(T){return 2*T[0]+T[1]*(n+1)*4}function v(T,N,B){T.forEach(function(F){var O,z=F[0],U=F[1],Q=0|z,Z=0|U,G=N[Z*n+Q];z>0&&z<n&&Q===z&&(O=N[Z*n+Q-1],F[0]=z+(B-O)/(G-O)-.5),U>0&&U<i&&Z===U&&(O=N[(Z-1)*n+Q],F[1]=U+(B-O)/(G-O)-.5)})}return l.contour=p,l.size=function(T){if(!arguments.length)return[n,i];var N=Math.ceil(T[0]),B=Math.ceil(T[1]);if(!(N>0&&B>0))throw new Error("invalid size");return n=N,i=B,l},l.thresholds=function(T){return arguments.length?(o=typeof T=="function"?T:Array.isArray(T)?Xo(Ty.call(T)):Xo(T),l):o},l.smooth=function(T){return arguments.length?(s=T?v:Ey,l):s===v},l}function pp(n,i,o){for(var s=n.width,l=n.height,p=1+(o<<1),b=0;b<l;++b)for(var v=0,T=0;v<s+o;++v)v<s&&(T+=n.data[v+b*s]),v>=o&&(v>=p&&(T-=n.data[v-p+b*s]),i.data[v-o+b*s]=T/Math.min(v+1,s-1+p-v,p))}function gp(n,i,o){for(var s=n.width,l=n.height,p=1+(o<<1),b=0;b<s;++b)for(var v=0,T=0;v<l+o;++v)v<l&&(T+=n.data[b+v*s]),v>=o&&(v>=p&&(T-=n.data[b+(v-p)*s]),i.data[b+(v-o)*s]=T/Math.min(v+1,l-1+p-v,p))}function br(n){return n[0]}function Ub(n){return n[1]}function th(){return 1}function eh(){var n=br,i=Ub,o=th,s=960,l=500,p=20,b=2,v=3*p,T=s+2*v>>b,N=l+2*v>>b,B=Xo(20);function F(G){var rt=new Float32Array(T*N),et=new Float32Array(T*N);G.forEach(function(Vt,qt,be){var Yt=+n(Vt,qt,be)+v>>b,ce=+i(Vt,qt,be)+v>>b,ct=+o(Vt,qt,be);Yt>=0&&Yt<T&&ce>=0&&ce<N&&(rt[Yt+ce*T]+=ct)}),pp({width:T,height:N,data:rt},{width:T,height:N,data:et},p>>b),gp({width:T,height:N,data:et},{width:T,height:N,data:rt},p>>b),pp({width:T,height:N,data:rt},{width:T,height:N,data:et},p>>b),gp({width:T,height:N,data:et},{width:T,height:N,data:rt},p>>b),pp({width:T,height:N,data:rt},{width:T,height:N,data:et},p>>b),gp({width:T,height:N,data:et},{width:T,height:N,data:rt},p>>b);var ut=B(rt);if(!Array.isArray(ut)){var Pt=Dt(rt);ut=vt(0,Pt,ut),(ut=st(0,Math.floor(Pt/ut)*ut,ut)).shift()}return Ni().thresholds(ut).size([T,N])(rt).map(O)}function O(G){return G.value*=Math.pow(2,-2*b),G.coordinates.forEach(z),G}function z(G){G.forEach(U)}function U(G){G.forEach(Q)}function Q(G){G[0]=G[0]*Math.pow(2,b)-v,G[1]=G[1]*Math.pow(2,b)-v}function Z(){return T=s+2*(v=3*p)>>b,N=l+2*v>>b,F}return F.x=function(G){return arguments.length?(n=typeof G=="function"?G:Xo(+G),F):n},F.y=function(G){return arguments.length?(i=typeof G=="function"?G:Xo(+G),F):i},F.weight=function(G){return arguments.length?(o=typeof G=="function"?G:Xo(+G),F):o},F.size=function(G){if(!arguments.length)return[s,l];var rt=Math.ceil(G[0]),et=Math.ceil(G[1]);if(!(rt>=0||rt>=0))throw new Error("invalid size");return s=rt,l=et,Z()},F.cellSize=function(G){if(!arguments.length)return 1<<b;if(!((G=+G)>=1))throw new Error("invalid cell size");return b=Math.floor(Math.log(G)/Math.LN2),Z()},F.thresholds=function(G){return arguments.length?(B=typeof G=="function"?G:Array.isArray(G)?Xo(Ty.call(G)):Xo(G),F):B},F.bandwidth=function(G){if(!arguments.length)return Math.sqrt(p*(p+1));if(!((G=+G)>=0))throw new Error("invalid bandwidth");return p=Math.round((Math.sqrt(4*G*G+1)-1)/2),Z()},F}function s1(n){return function(){return n}}function yp(n,i,o,s,l,p,b,v,T,N){this.target=n,this.type=i,this.subject=o,this.identifier=s,this.active=l,this.x=p,this.y=b,this.dx=v,this.dy=T,this._=N}function qb(){return!pt.ctrlKey&&!pt.button}function Hb(){return this.parentNode}function Wb(n){return n==null?{x:pt.x,y:pt.y}:n}function Cy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sy(){var n,i,o,s,l=qb,p=Hb,b=Wb,v=Cy,T={},N=an("start","drag","end"),B=0,F=0;function O(ut){ut.on("mousedown.drag",z).filter(v).on("touchstart.drag",Z).on("touchmove.drag",G).on("touchend.drag touchcancel.drag",rt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!s&&l.apply(this,arguments)){var ut=et("mouse",p.apply(this,arguments),ys,this,arguments);ut&&(pr(pt.view).on("mousemove.drag",U,!0).on("mouseup.drag",Q,!0),Kr(pt.view),Tr(),o=!1,n=pt.clientX,i=pt.clientY,ut("start"))}}function U(){if(di(),!o){var ut=pt.clientX-n,Pt=pt.clientY-i;o=ut*ut+Pt*Pt>F}T.mouse("drag")}function Q(){pr(pt.view).on("mousemove.drag mouseup.drag",null),Pr(pt.view,o),di(),T.mouse("end")}function Z(){if(l.apply(this,arguments)){var ut,Pt,Vt=pt.changedTouches,qt=p.apply(this,arguments),be=Vt.length;for(ut=0;ut<be;++ut)(Pt=et(Vt[ut].identifier,qt,la,this,arguments))&&(Tr(),Pt("start"))}}function G(){var ut,Pt,Vt=pt.changedTouches,qt=Vt.length;for(ut=0;ut<qt;++ut)(Pt=T[Vt[ut].identifier])&&(di(),Pt("drag"))}function rt(){var ut,Pt,Vt=pt.changedTouches,qt=Vt.length;for(s&&clearTimeout(s),s=setTimeout(function(){s=null},500),ut=0;ut<qt;++ut)(Pt=T[Vt[ut].identifier])&&(Tr(),Pt("end"))}function et(ut,Pt,Vt,qt,be){var Yt,ce,ct,xt=Vt(Pt,ut),ie=N.copy();if(no(new yp(O,"beforestart",Yt,ut,B,xt[0],xt[1],0,0,ie),function(){return(pt.subject=Yt=b.apply(qt,be))!=null&&(ce=Yt.x-xt[0]||0,ct=Yt.y-xt[1]||0,!0)}))return function Kt(ae){var Be,$e=xt;switch(ae){case"start":T[ut]=Kt,Be=B++;break;case"end":delete T[ut],--B;case"drag":xt=Vt(Pt,ut),Be=B}no(new yp(O,ae,Yt,ut,Be,xt[0]+ce,xt[1]+ct,xt[0]-$e[0],xt[1]-$e[1],ie),ie.apply,ie,[ae,qt,be])}}return O.filter=function(ut){return arguments.length?(l=typeof ut=="function"?ut:s1(!!ut),O):l},O.container=function(ut){return arguments.length?(p=typeof ut=="function"?ut:s1(ut),O):p},O.subject=function(ut){return arguments.length?(b=typeof ut=="function"?ut:s1(ut),O):b},O.touchable=function(ut){return arguments.length?(v=typeof ut=="function"?ut:s1(!!ut),O):v},O.on=function(){var ut=N.on.apply(N,arguments);return ut===N?O:ut},O.clickDistance=function(ut){return arguments.length?(F=(ut=+ut)*ut,O):Math.sqrt(F)},O}yp.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Ay={},mp={};function My(n){return new Function("d","return {"+n.map(function(i,o){return JSON.stringify(i)+": d["+o+'] || ""'}).join(",")+"}")}function vp(n){var i=Object.create(null),o=[];return n.forEach(function(s){for(var l in s)l in i||o.push(i[l]=l)}),o}function Aa(n,i){var o=n+"",s=o.length;return s<i?new Array(i-s+1).join(0)+o:o}function nh(n){var i=new RegExp('["'+n+`
\r]`),o=n.charCodeAt(0);function s(v,T){var N,B=[],F=v.length,O=0,z=0,U=F<=0,Q=!1;function Z(){if(U)return mp;if(Q)return Q=!1,Ay;var rt,et,ut=O;if(v.charCodeAt(ut)===34){for(;O++<F&&v.charCodeAt(O)!==34||v.charCodeAt(++O)===34;);return(rt=O)>=F?U=!0:(et=v.charCodeAt(O++))===10?Q=!0:et===13&&(Q=!0,v.charCodeAt(O)===10&&++O),v.slice(ut+1,rt-1).replace(/""/g,'"')}for(;O<F;){if((et=v.charCodeAt(rt=O++))===10)Q=!0;else if(et===13)Q=!0,v.charCodeAt(O)===10&&++O;else if(et!==o)continue;return v.slice(ut,rt)}return U=!0,v.slice(ut,F)}for(v.charCodeAt(F-1)===10&&--F,v.charCodeAt(F-1)===13&&--F;(N=Z())!==mp;){for(var G=[];N!==Ay&&N!==mp;)G.push(N),N=Z();T&&(G=T(G,z++))==null||B.push(G)}return B}function l(v,T){return v.map(function(N){return T.map(function(B){return b(N[B])}).join(n)})}function p(v){return v.map(b).join(n)}function b(v){return v==null?"":v instanceof Date?function(T){var N=T.getUTCHours(),B=T.getUTCMinutes(),F=T.getUTCSeconds(),O=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":function(z){return z<0?"-"+Aa(-z,6):z>9999?"+"+Aa(z,6):Aa(z,4)}(T.getUTCFullYear())+"-"+Aa(T.getUTCMonth()+1,2)+"-"+Aa(T.getUTCDate(),2)+(O?"T"+Aa(N,2)+":"+Aa(B,2)+":"+Aa(F,2)+"."+Aa(O,3)+"Z":F?"T"+Aa(N,2)+":"+Aa(B,2)+":"+Aa(F,2)+"Z":B||N?"T"+Aa(N,2)+":"+Aa(B,2)+"Z":"")}(v):i.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:function(v,T){var N,B,F=s(v,function(O,z){if(N)return N(O,z-1);B=O,N=T?function(U,Q){var Z=My(U);return function(G,rt){return Q(Z(G),rt,U)}}(O,T):My(O)});return F.columns=B||[],F},parseRows:s,format:function(v,T){return T==null&&(T=vp(v)),[T.map(b).join(n)].concat(l(v,T)).join(`
`)},formatBody:function(v,T){return T==null&&(T=vp(v)),l(v,T).join(`
`)},formatRows:function(v){return v.map(p).join(`
`)},formatRow:p,formatValue:b}}var Ic=nh(","),Ny=Ic.parse,$b=Ic.parseRows,Vb=Ic.format,Gb=Ic.formatBody,Xb=Ic.formatRows,Zb=Ic.formatRow,Dy=Ic.formatValue,Rc=nh(" "),Oy=Rc.parse,Qb=Rc.parseRows,By=Rc.format,Kb=Rc.formatBody,Jb=Rc.formatRows,t4=Rc.formatRow,e4=Rc.formatValue;function n4(n){for(var i in n){var o,s,l=n[i].trim();if(l)if(l==="true")l=!0;else if(l==="false")l=!1;else if(l==="NaN")l=NaN;else if(isNaN(o=+l)){if(!(s=l.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;r4&&s[4]&&!s[7]&&(l=l.replace(/-/g,"/").replace(/T/," ")),l=new Date(l)}else l=o;else l=null;n[i]=l}return n}var r4=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Ly(n){return+n}function i4(n){return n*n}function a4(n){return n*(2-n)}function Iy(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var o4=function n(i){function o(s){return Math.pow(s,i)}return i=+i,o.exponent=n,o}(3),s4=function n(i){function o(s){return 1-Math.pow(1-s,i)}return i=+i,o.exponent=n,o}(3),Ry=function n(i){function o(s){return((s*=2)<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}return i=+i,o.exponent=n,o}(3),Fy=Math.PI,Py=Fy/2;function jy(n){return+n==1?1:1-Math.cos(n*Py)}function c4(n){return Math.sin(n*Py)}function Yy(n){return(1-Math.cos(Fy*n))/2}function Js(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function zy(n){return Js(1-+n)}function u4(n){return 1-Js(n)}function Uy(n){return((n*=2)<=1?Js(1-n):2-Js(n-1))/2}function l4(n){return 1-Math.sqrt(1-n*n)}function h4(n){return Math.sqrt(1- --n*n)}function qy(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var c1=7.5625;function Hy(n){return 1-rh(1-n)}function rh(n){return(n=+n)<.36363636363636365?c1*n*n:n<.7272727272727273?c1*(n-=.5454545454545454)*n+.75:n<.9090909090909091?c1*(n-=.8181818181818182)*n+.9375:c1*(n-=.9545454545454546)*n+.984375}function f4(n){return((n*=2)<=1?1-rh(1-n):rh(n-1)+1)/2}var bp=1.70158,d4=function n(i){function o(s){return(s=+s)*s*(i*(s-1)+s)}return i=+i,o.overshoot=n,o}(bp),p4=function n(i){function o(s){return--s*s*((s+1)*i+s)+1}return i=+i,o.overshoot=n,o}(bp),Wy=function n(i){function o(s){return((s*=2)<1?s*s*((i+1)*s-i):(s-=2)*s*((i+1)*s+i)+2)/2}return i=+i,o.overshoot=n,o}(bp),Nu=2*Math.PI,g4=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Nu);function l(p){return i*Js(- --p)*Math.sin((s-p)/o)}return l.amplitude=function(p){return n(p,o*Nu)},l.period=function(p){return n(i,p)},l}(1,.3),_p=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Nu);function l(p){return 1-i*Js(p=+p)*Math.sin((p+s)/o)}return l.amplitude=function(p){return n(p,o*Nu)},l.period=function(p){return n(i,p)},l}(1,.3),$y=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Nu);function l(p){return((p=2*p-1)<0?i*Js(-p)*Math.sin((s-p)/o):2-i*Js(p)*Math.sin((s+p)/o))/2}return l.amplitude=function(p){return n(p,o*Nu)},l.period=function(p){return n(i,p)},l}(1,.3);function Vy(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function y4(n,i){return fetch(n,i).then(Vy)}function m4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function Gy(n,i){return fetch(n,i).then(m4)}function v4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Du(n,i){return fetch(n,i).then(v4)}function xp(n){return function(i,o,s){return arguments.length===2&&typeof o=="function"&&(s=o,o=void 0),Du(i,o).then(function(l){return n(l,s)})}}function b4(n,i,o,s){arguments.length===3&&typeof o=="function"&&(s=o,o=void 0);var l=nh(n);return Du(i,o).then(function(p){return l.parse(p,s)})}var Xy=xp(Ny),Zy=xp(Oy);function Qy(n,i){return new Promise(function(o,s){var l=new Image;for(var p in i)l[p]=i[p];l.onerror=s,l.onload=function(){o(l)},l.src=n})}function _4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function x4(n,i){return fetch(n,i).then(_4)}function wp(n){return function(i,o){return Du(i,o).then(function(s){return new DOMParser().parseFromString(s,n)})}}const w4=wp("application/xml");var Ky=wp("text/html"),u1=wp("image/svg+xml");function k4(n,i){var o;function s(){var l,p,b=o.length,v=0,T=0;for(l=0;l<b;++l)v+=(p=o[l]).x,T+=p.y;for(v=v/b-n,T=T/b-i,l=0;l<b;++l)(p=o[l]).x-=v,p.y-=T}return n==null&&(n=0),i==null&&(i=0),s.initialize=function(l){o=l},s.x=function(l){return arguments.length?(n=+l,s):n},s.y=function(l){return arguments.length?(i=+l,s):i},s}function Di(n){return function(){return n}}function tc(){return 1e-6*(Math.random()-.5)}function Jy(n,i,o,s){if(isNaN(i)||isNaN(o))return n;var l,p,b,v,T,N,B,F,O,z=n._root,U={data:s},Q=n._x0,Z=n._y0,G=n._x1,rt=n._y1;if(!z)return n._root=U,n;for(;z.length;)if((N=i>=(p=(Q+G)/2))?Q=p:G=p,(B=o>=(b=(Z+rt)/2))?Z=b:rt=b,l=z,!(z=z[F=B<<1|N]))return l[F]=U,n;if(v=+n._x.call(null,z.data),T=+n._y.call(null,z.data),i===v&&o===T)return U.next=z,l?l[F]=U:n._root=U,n;do l=l?l[F]=new Array(4):n._root=new Array(4),(N=i>=(p=(Q+G)/2))?Q=p:G=p,(B=o>=(b=(Z+rt)/2))?Z=b:rt=b;while((F=B<<1|N)==(O=(T>=b)<<1|v>=p));return l[O]=z,l[F]=U,n}function da(n,i,o,s,l){this.node=n,this.x0=i,this.y0=o,this.x1=s,this.y1=l}function T4(n){return n[0]}function kp(n){return n[1]}function ih(n,i,o){var s=new Ou(i==null?T4:i,o==null?kp:o,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function Ou(n,i,o,s,l,p){this._x=n,this._y=i,this._x0=o,this._y0=s,this._x1=l,this._y1=p,this._root=void 0}function tm(n){for(var i={data:n.data},o=i;n=n.next;)o=o.next={data:n.data};return i}var pa=ih.prototype=Ou.prototype;function E4(n){return n.x+n.vx}function C4(n){return n.y+n.vy}function S4(n){var i,o,s=1,l=1;function p(){for(var T,N,B,F,O,z,U,Q=i.length,Z=0;Z<l;++Z)for(N=ih(i,E4,C4).visitAfter(b),T=0;T<Q;++T)B=i[T],z=o[B.index],U=z*z,F=B.x+B.vx,O=B.y+B.vy,N.visit(G);function G(rt,et,ut,Pt,Vt){var qt=rt.data,be=rt.r,Yt=z+be;if(!qt)return et>F+Yt||Pt<F-Yt||ut>O+Yt||Vt<O-Yt;if(qt.index>B.index){var ce=F-qt.x-qt.vx,ct=O-qt.y-qt.vy,xt=ce*ce+ct*ct;xt<Yt*Yt&&(ce===0&&(xt+=(ce=tc())*ce),ct===0&&(xt+=(ct=tc())*ct),xt=(Yt-(xt=Math.sqrt(xt)))/xt*s,B.vx+=(ce*=xt)*(Yt=(be*=be)/(U+be)),B.vy+=(ct*=xt)*Yt,qt.vx-=ce*(Yt=1-Yt),qt.vy-=ct*Yt)}}}function b(T){if(T.data)return T.r=o[T.data.index];for(var N=T.r=0;N<4;++N)T[N]&&T[N].r>T.r&&(T.r=T[N].r)}function v(){if(i){var T,N,B=i.length;for(o=new Array(B),T=0;T<B;++T)N=i[T],o[N.index]=+n(N,T,i)}}return typeof n!="function"&&(n=Di(n==null?1:+n)),p.initialize=function(T){i=T,v()},p.iterations=function(T){return arguments.length?(l=+T,p):l},p.strength=function(T){return arguments.length?(s=+T,p):s},p.radius=function(T){return arguments.length?(n=typeof T=="function"?T:Di(+T),v(),p):n},p}function A4(n){return n.index}function Tp(n,i){var o=n.get(i);if(!o)throw new Error("missing: "+i);return o}function M4(n){var i,o,s,l,p,b=A4,v=function(U){return 1/Math.min(l[U.source.index],l[U.target.index])},T=Di(30),N=1;function B(U){for(var Q=0,Z=n.length;Q<N;++Q)for(var G,rt,et,ut,Pt,Vt,qt,be=0;be<Z;++be)rt=(G=n[be]).source,ut=(et=G.target).x+et.vx-rt.x-rt.vx||tc(),Pt=et.y+et.vy-rt.y-rt.vy||tc(),ut*=Vt=((Vt=Math.sqrt(ut*ut+Pt*Pt))-o[be])/Vt*U*i[be],Pt*=Vt,et.vx-=ut*(qt=p[be]),et.vy-=Pt*qt,rt.vx+=ut*(qt=1-qt),rt.vy+=Pt*qt}function F(){if(s){var U,Q,Z=s.length,G=n.length,rt=xs(s,b);for(U=0,l=new Array(Z);U<G;++U)(Q=n[U]).index=U,typeof Q.source!="object"&&(Q.source=Tp(rt,Q.source)),typeof Q.target!="object"&&(Q.target=Tp(rt,Q.target)),l[Q.source.index]=(l[Q.source.index]||0)+1,l[Q.target.index]=(l[Q.target.index]||0)+1;for(U=0,p=new Array(G);U<G;++U)Q=n[U],p[U]=l[Q.source.index]/(l[Q.source.index]+l[Q.target.index]);i=new Array(G),O(),o=new Array(G),z()}}function O(){if(s)for(var U=0,Q=n.length;U<Q;++U)i[U]=+v(n[U],U,n)}function z(){if(s)for(var U=0,Q=n.length;U<Q;++U)o[U]=+T(n[U],U,n)}return n==null&&(n=[]),B.initialize=function(U){s=U,F()},B.links=function(U){return arguments.length?(n=U,F(),B):n},B.id=function(U){return arguments.length?(b=U,B):b},B.iterations=function(U){return arguments.length?(N=+U,B):N},B.strength=function(U){return arguments.length?(v=typeof U=="function"?U:Di(+U),O(),B):v},B.distance=function(U){return arguments.length?(T=typeof U=="function"?U:Di(+U),z(),B):T},B}function N4(n){return n.x}function D4(n){return n.y}pa.copy=function(){var n,i,o=new Ou(this._x,this._y,this._x0,this._y0,this._x1,this._y1),s=this._root;if(!s)return o;if(!s.length)return o._root=tm(s),o;for(n=[{source:s,target:o._root=new Array(4)}];s=n.pop();)for(var l=0;l<4;++l)(i=s.source[l])&&(i.length?n.push({source:i,target:s.target[l]=new Array(4)}):s.target[l]=tm(i));return o},pa.add=function(n){var i=+this._x.call(null,n),o=+this._y.call(null,n);return Jy(this.cover(i,o),i,o,n)},pa.addAll=function(n){var i,o,s,l,p=n.length,b=new Array(p),v=new Array(p),T=1/0,N=1/0,B=-1/0,F=-1/0;for(o=0;o<p;++o)isNaN(s=+this._x.call(null,i=n[o]))||isNaN(l=+this._y.call(null,i))||(b[o]=s,v[o]=l,s<T&&(T=s),s>B&&(B=s),l<N&&(N=l),l>F&&(F=l));if(T>B||N>F)return this;for(this.cover(T,N).cover(B,F),o=0;o<p;++o)Jy(this,b[o],v[o],n[o]);return this},pa.cover=function(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var o=this._x0,s=this._y0,l=this._x1,p=this._y1;if(isNaN(o))l=(o=Math.floor(n))+1,p=(s=Math.floor(i))+1;else{for(var b,v,T=l-o,N=this._root;o>n||n>=l||s>i||i>=p;)switch(v=(i<s)<<1|n<o,(b=new Array(4))[v]=N,N=b,T*=2,v){case 0:l=o+T,p=s+T;break;case 1:o=l-T,p=s+T;break;case 2:l=o+T,s=p-T;break;case 3:o=l-T,s=p-T}this._root&&this._root.length&&(this._root=N)}return this._x0=o,this._y0=s,this._x1=l,this._y1=p,this},pa.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},pa.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},pa.find=function(n,i,o){var s,l,p,b,v,T,N,B=this._x0,F=this._y0,O=this._x1,z=this._y1,U=[],Q=this._root;for(Q&&U.push(new da(Q,B,F,O,z)),o==null?o=1/0:(B=n-o,F=i-o,O=n+o,z=i+o,o*=o);T=U.pop();)if(!(!(Q=T.node)||(l=T.x0)>O||(p=T.y0)>z||(b=T.x1)<B||(v=T.y1)<F))if(Q.length){var Z=(l+b)/2,G=(p+v)/2;U.push(new da(Q[3],Z,G,b,v),new da(Q[2],l,G,Z,v),new da(Q[1],Z,p,b,G),new da(Q[0],l,p,Z,G)),(N=(i>=G)<<1|n>=Z)&&(T=U[U.length-1],U[U.length-1]=U[U.length-1-N],U[U.length-1-N]=T)}else{var rt=n-+this._x.call(null,Q.data),et=i-+this._y.call(null,Q.data),ut=rt*rt+et*et;if(ut<o){var Pt=Math.sqrt(o=ut);B=n-Pt,F=i-Pt,O=n+Pt,z=i+Pt,s=Q.data}}return s},pa.remove=function(n){if(isNaN(p=+this._x.call(null,n))||isNaN(b=+this._y.call(null,n)))return this;var i,o,s,l,p,b,v,T,N,B,F,O,z=this._root,U=this._x0,Q=this._y0,Z=this._x1,G=this._y1;if(!z)return this;if(z.length)for(;;){if((N=p>=(v=(U+Z)/2))?U=v:Z=v,(B=b>=(T=(Q+G)/2))?Q=T:G=T,i=z,!(z=z[F=B<<1|N]))return this;if(!z.length)break;(i[F+1&3]||i[F+2&3]||i[F+3&3])&&(o=i,O=F)}for(;z.data!==n;)if(s=z,!(z=z.next))return this;return(l=z.next)&&delete z.next,s?(l?s.next=l:delete s.next,this):i?(l?i[F]=l:delete i[F],(z=i[0]||i[1]||i[2]||i[3])&&z===(i[3]||i[2]||i[1]||i[0])&&!z.length&&(o?o[O]=z:this._root=z),this):(this._root=l,this)},pa.removeAll=function(n){for(var i=0,o=n.length;i<o;++i)this.remove(n[i]);return this},pa.root=function(){return this._root},pa.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},pa.visit=function(n){var i,o,s,l,p,b,v=[],T=this._root;for(T&&v.push(new da(T,this._x0,this._y0,this._x1,this._y1));i=v.pop();)if(!n(T=i.node,s=i.x0,l=i.y0,p=i.x1,b=i.y1)&&T.length){var N=(s+p)/2,B=(l+b)/2;(o=T[3])&&v.push(new da(o,N,B,p,b)),(o=T[2])&&v.push(new da(o,s,B,N,b)),(o=T[1])&&v.push(new da(o,N,l,p,B)),(o=T[0])&&v.push(new da(o,s,l,N,B))}return this},pa.visitAfter=function(n){var i,o=[],s=[];for(this._root&&o.push(new da(this._root,this._x0,this._y0,this._x1,this._y1));i=o.pop();){var l=i.node;if(l.length){var p,b=i.x0,v=i.y0,T=i.x1,N=i.y1,B=(b+T)/2,F=(v+N)/2;(p=l[0])&&o.push(new da(p,b,v,B,F)),(p=l[1])&&o.push(new da(p,B,v,T,F)),(p=l[2])&&o.push(new da(p,b,F,B,N)),(p=l[3])&&o.push(new da(p,B,F,T,N))}s.push(i)}for(;i=s.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},pa.x=function(n){return arguments.length?(this._x=n,this):this._x},pa.y=function(n){return arguments.length?(this._y=n,this):this._y};var Bu=Math.PI*(3-Math.sqrt(5));function O4(n){var i,o=1,s=.001,l=1-Math.pow(s,1/300),p=0,b=.6,v=xs(),T=de(B),N=an("tick","end");function B(){F(),N.call("tick",i),o<s&&(T.stop(),N.call("end",i))}function F(U){var Q,Z,G=n.length;U===void 0&&(U=1);for(var rt=0;rt<U;++rt)for(o+=(p-o)*l,v.each(function(et){et(o)}),Q=0;Q<G;++Q)(Z=n[Q]).fx==null?Z.x+=Z.vx*=b:(Z.x=Z.fx,Z.vx=0),Z.fy==null?Z.y+=Z.vy*=b:(Z.y=Z.fy,Z.vy=0);return i}function O(){for(var U,Q=0,Z=n.length;Q<Z;++Q){if((U=n[Q]).index=Q,U.fx!=null&&(U.x=U.fx),U.fy!=null&&(U.y=U.fy),isNaN(U.x)||isNaN(U.y)){var G=10*Math.sqrt(Q),rt=Q*Bu;U.x=G*Math.cos(rt),U.y=G*Math.sin(rt)}(isNaN(U.vx)||isNaN(U.vy))&&(U.vx=U.vy=0)}}function z(U){return U.initialize&&U.initialize(n),U}return n==null&&(n=[]),O(),i={tick:F,restart:function(){return T.restart(B),i},stop:function(){return T.stop(),i},nodes:function(U){return arguments.length?(n=U,O(),v.each(z),i):n},alpha:function(U){return arguments.length?(o=+U,i):o},alphaMin:function(U){return arguments.length?(s=+U,i):s},alphaDecay:function(U){return arguments.length?(l=+U,i):+l},alphaTarget:function(U){return arguments.length?(p=+U,i):p},velocityDecay:function(U){return arguments.length?(b=1-U,i):1-b},force:function(U,Q){return arguments.length>1?(Q==null?v.remove(U):v.set(U,z(Q)),i):v.get(U)},find:function(U,Q,Z){var G,rt,et,ut,Pt,Vt=0,qt=n.length;for(Z==null?Z=1/0:Z*=Z,Vt=0;Vt<qt;++Vt)(et=(G=U-(ut=n[Vt]).x)*G+(rt=Q-ut.y)*rt)<Z&&(Pt=ut,Z=et);return Pt},on:function(U,Q){return arguments.length>1?(N.on(U,Q),i):N.on(U)}}}function B4(){var n,i,o,s,l=Di(-30),p=1,b=1/0,v=.81;function T(O){var z,U=n.length,Q=ih(n,N4,D4).visitAfter(B);for(o=O,z=0;z<U;++z)i=n[z],Q.visit(F)}function N(){if(n){var O,z,U=n.length;for(s=new Array(U),O=0;O<U;++O)z=n[O],s[z.index]=+l(z,O,n)}}function B(O){var z,U,Q,Z,G,rt=0,et=0;if(O.length){for(Q=Z=G=0;G<4;++G)(z=O[G])&&(U=Math.abs(z.value))&&(rt+=z.value,et+=U,Q+=U*z.x,Z+=U*z.y);O.x=Q/et,O.y=Z/et}else{(z=O).x=z.data.x,z.y=z.data.y;do rt+=s[z.data.index];while(z=z.next)}O.value=rt}function F(O,z,U,Q){if(!O.value)return!0;var Z=O.x-i.x,G=O.y-i.y,rt=Q-z,et=Z*Z+G*G;if(rt*rt/v<et)return et<b&&(Z===0&&(et+=(Z=tc())*Z),G===0&&(et+=(G=tc())*G),et<p&&(et=Math.sqrt(p*et)),i.vx+=Z*O.value*o/et,i.vy+=G*O.value*o/et),!0;if(!(O.length||et>=b)){(O.data!==i||O.next)&&(Z===0&&(et+=(Z=tc())*Z),G===0&&(et+=(G=tc())*G),et<p&&(et=Math.sqrt(p*et)));do O.data!==i&&(rt=s[O.data.index]*o/et,i.vx+=Z*rt,i.vy+=G*rt);while(O=O.next)}}return T.initialize=function(O){n=O,N()},T.strength=function(O){return arguments.length?(l=typeof O=="function"?O:Di(+O),N(),T):l},T.distanceMin=function(O){return arguments.length?(p=O*O,T):Math.sqrt(p)},T.distanceMax=function(O){return arguments.length?(b=O*O,T):Math.sqrt(b)},T.theta=function(O){return arguments.length?(v=O*O,T):Math.sqrt(v)},T}function L4(n,i,o){var s,l,p,b=Di(.1);function v(N){for(var B=0,F=s.length;B<F;++B){var O=s[B],z=O.x-i||1e-6,U=O.y-o||1e-6,Q=Math.sqrt(z*z+U*U),Z=(p[B]-Q)*l[B]*N/Q;O.vx+=z*Z,O.vy+=U*Z}}function T(){if(s){var N,B=s.length;for(l=new Array(B),p=new Array(B),N=0;N<B;++N)p[N]=+n(s[N],N,s),l[N]=isNaN(p[N])?0:+b(s[N],N,s)}}return typeof n!="function"&&(n=Di(+n)),i==null&&(i=0),o==null&&(o=0),v.initialize=function(N){s=N,T()},v.strength=function(N){return arguments.length?(b=typeof N=="function"?N:Di(+N),T(),v):b},v.radius=function(N){return arguments.length?(n=typeof N=="function"?N:Di(+N),T(),v):n},v.x=function(N){return arguments.length?(i=+N,v):i},v.y=function(N){return arguments.length?(o=+N,v):o},v}function em(n){var i,o,s,l=Di(.1);function p(v){for(var T,N=0,B=i.length;N<B;++N)(T=i[N]).vx+=(s[N]-T.x)*o[N]*v}function b(){if(i){var v,T=i.length;for(o=new Array(T),s=new Array(T),v=0;v<T;++v)o[v]=isNaN(s[v]=+n(i[v],v,i))?0:+l(i[v],v,i)}}return typeof n!="function"&&(n=Di(n==null?0:+n)),p.initialize=function(v){i=v,b()},p.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Di(+v),b(),p):l},p.x=function(v){return arguments.length?(n=typeof v=="function"?v:Di(+v),b(),p):n},p}function Ep(n){var i,o,s,l=Di(.1);function p(v){for(var T,N=0,B=i.length;N<B;++N)(T=i[N]).vy+=(s[N]-T.y)*o[N]*v}function b(){if(i){var v,T=i.length;for(o=new Array(T),s=new Array(T),v=0;v<T;++v)o[v]=isNaN(s[v]=+n(i[v],v,i))?0:+l(i[v],v,i)}}return typeof n!="function"&&(n=Di(n==null?0:+n)),p.initialize=function(v){i=v,b()},p.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Di(+v),b(),p):l},p.y=function(v){return arguments.length?(n=typeof v=="function"?v:Di(+v),b(),p):n},p}function ah(n,i){if((o=(n=i?n.toExponential(i-1):n.toExponential()).indexOf("e"))<0)return null;var o,s=n.slice(0,o);return[s.length>1?s[0]+s.slice(2):s,+n.slice(o+1)]}function Fc(n){return(n=ah(Math.abs(n)))?n[1]:NaN}var Cp,I4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oh(n){if(!(i=I4.exec(n)))throw new Error("invalid format: "+n);var i;return new l1({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function l1(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+""}function nm(n,i){var o=ah(n,i);if(!o)return n+"";var s=o[0],l=o[1];return l<0?"0."+new Array(-l).join("0")+s:s.length>l+1?s.slice(0,l+1)+"."+s.slice(l+1):s+new Array(l-s.length+2).join("0")}oh.prototype=l1.prototype,l1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const rm={"%":function(n,i){return(100*n).toFixed(i)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(n,i){return n.toExponential(i)},f:function(n,i){return n.toFixed(i)},g:function(n,i){return n.toPrecision(i)},o:function(n){return Math.round(n).toString(8)},p:function(n,i){return nm(100*n,i)},r:nm,s:function(n,i){var o=ah(n,i);if(!o)return n+"";var s=o[0],l=o[1],p=l-(Cp=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,b=s.length;return p===b?s:p>b?s+new Array(p-b+1).join("0"):p>0?s.slice(0,p)+"."+s.slice(p):"0."+new Array(1-p).join("0")+ah(n,Math.max(0,i+p-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function im(n){return n}var h1,f1,Sp,am=Array.prototype.map,om=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function sm(n){var i,o,s=n.grouping===void 0||n.thousands===void 0?im:(i=am.call(n.grouping,Number),o=n.thousands+"",function(O,z){for(var U=O.length,Q=[],Z=0,G=i[0],rt=0;U>0&&G>0&&(rt+G+1>z&&(G=Math.max(1,z-rt)),Q.push(O.substring(U-=G,U+G)),!((rt+=G+1)>z));)G=i[Z=(Z+1)%i.length];return Q.reverse().join(o)}),l=n.currency===void 0?"":n.currency[0]+"",p=n.currency===void 0?"":n.currency[1]+"",b=n.decimal===void 0?".":n.decimal+"",v=n.numerals===void 0?im:function(O){return function(z){return z.replace(/[0-9]/g,function(U){return O[+U]})}}(am.call(n.numerals,String)),T=n.percent===void 0?"%":n.percent+"",N=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function F(O){var z=(O=oh(O)).fill,U=O.align,Q=O.sign,Z=O.symbol,G=O.zero,rt=O.width,et=O.comma,ut=O.precision,Pt=O.trim,Vt=O.type;Vt==="n"?(et=!0,Vt="g"):rm[Vt]||(ut===void 0&&(ut=12),Pt=!0,Vt="g"),(G||z==="0"&&U==="=")&&(G=!0,z="0",U="=");var qt=Z==="$"?l:Z==="#"&&/[boxX]/.test(Vt)?"0"+Vt.toLowerCase():"",be=Z==="$"?p:/[%p]/.test(Vt)?T:"",Yt=rm[Vt],ce=/[defgprs%]/.test(Vt);function ct(xt){var ie,Kt,ae,Be=qt,$e=be;if(Vt==="c")$e=Yt(xt)+$e,xt="";else{var dn=(xt=+xt)<0||1/xt<0;if(xt=isNaN(xt)?B:Yt(Math.abs(xt),ut),Pt&&(xt=function(rn){t:for(var tr,Dn=rn.length,Sn=1,sr=-1;Sn<Dn;++Sn)switch(rn[Sn]){case".":sr=tr=Sn;break;case"0":sr===0&&(sr=Sn),tr=Sn;break;default:if(!+rn[Sn])break t;sr>0&&(sr=0)}return sr>0?rn.slice(0,sr)+rn.slice(tr+1):rn}(xt)),dn&&+xt==0&&Q!=="+"&&(dn=!1),Be=(dn?Q==="("?Q:N:Q==="-"||Q==="("?"":Q)+Be,$e=(Vt==="s"?om[8+Cp/3]:"")+$e+(dn&&Q==="("?")":""),ce){for(ie=-1,Kt=xt.length;++ie<Kt;)if(48>(ae=xt.charCodeAt(ie))||ae>57){$e=(ae===46?b+xt.slice(ie+1):xt.slice(ie))+$e,xt=xt.slice(0,ie);break}}}et&&!G&&(xt=s(xt,1/0));var Fn=Be.length+xt.length+$e.length,ir=Fn<rt?new Array(rt-Fn+1).join(z):"";switch(et&&G&&(xt=s(ir+xt,ir.length?rt-$e.length:1/0),ir=""),U){case"<":xt=Be+xt+$e+ir;break;case"=":xt=Be+ir+xt+$e;break;case"^":xt=ir.slice(0,Fn=ir.length>>1)+Be+xt+$e+ir.slice(Fn);break;default:xt=ir+Be+xt+$e}return v(xt)}return ut=ut===void 0?6:/[gprs]/.test(Vt)?Math.max(1,Math.min(21,ut)):Math.max(0,Math.min(20,ut)),ct.toString=function(){return O+""},ct}return{format:F,formatPrefix:function(O,z){var U=F(((O=oh(O)).type="f",O)),Q=3*Math.max(-8,Math.min(8,Math.floor(Fc(z)/3))),Z=Math.pow(10,-Q),G=om[8+Q/3];return function(rt){return U(Z*rt)+G}}}}function cm(n){return h1=sm(n),f1=h1.format,Sp=h1.formatPrefix,h1}function Ap(n){return Math.max(0,-Fc(Math.abs(n)))}function um(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fc(i)/3)))-Fc(Math.abs(n)))}function lm(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,Fc(i)-Fc(n))+1}function ec(){return new d1}function d1(){this.reset()}cm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d1.prototype={constructor:d1,reset:function(){this.s=this.t=0},add:function(n){hm(p1,n,this.t),hm(this,p1.s,this.s),this.s?this.t+=p1.t:this.s=p1.t},valueOf:function(){return this.s}};var p1=new d1;function hm(n,i,o){var s=n.s=i+o,l=s-i,p=s-l;n.t=i-p+(o-l)}var Rn=1e-6,sh=1e-12,nr=Math.PI,ui=nr/2,Lu=nr/4,Nr=2*nr,Ir=180/nr,_n=nr/180,Se=Math.abs,nc=Math.atan,Xi=Math.atan2,hn=Math.cos,Qo=Math.ceil,fm=Math.exp,Iu=Math.log,g1=Math.pow,sn=Math.sin,_r=Math.sign||function(n){return n>0?1:n<0?-1:0},yi=Math.sqrt,ji=Math.tan;function rc(n){return n>1?0:n<-1?nr:Math.acos(n)}function ga(n){return n>1?ui:n<-1?-ui:Math.asin(n)}function y1(n){return(n=sn(n/2))*n}function xr(){}function Ts(n,i){n&&Ru.hasOwnProperty(n.type)&&Ru[n.type](n,i)}var ya={Feature:function(n,i){Ts(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)Ts(o[s].geometry,i)}},Ru={Sphere:function(n,i){i.sphere()},Point:function(n,i){n=n.coordinates,i.point(n[0],n[1],n[2])},MultiPoint:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)n=o[s],i.point(n[0],n[1],n[2])},LineString:function(n,i){Fu(n.coordinates,i,0)},MultiLineString:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)Fu(o[s],i,0)},Polygon:function(n,i){ch(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)ch(o[s],i)},GeometryCollection:function(n,i){for(var o=n.geometries,s=-1,l=o.length;++s<l;)Ts(o[s],i)}};function Fu(n,i,o){var s,l=-1,p=n.length-o;for(i.lineStart();++l<p;)s=n[l],i.point(s[0],s[1],s[2]);i.lineEnd()}function ch(n,i){var o=-1,s=n.length;for(i.polygonStart();++o<s;)Fu(n[o],i,1);i.polygonEnd()}function ko(n,i){n&&ya.hasOwnProperty(n.type)?ya[n.type](n,i):Ts(n,i)}var Mp,dm,Np,Dp,Op,m1=ec(),v1=ec(),Ua={point:xr,lineStart:xr,lineEnd:xr,polygonStart:function(){m1.reset(),Ua.lineStart=Bp,Ua.lineEnd=pm},polygonEnd:function(){var n=+m1;v1.add(n<0?Nr+n:n),this.lineStart=this.lineEnd=this.point=xr},sphere:function(){v1.add(Nr)}};function Bp(){Ua.point=gm}function pm(){ao(Mp,dm)}function gm(n,i){Ua.point=ao,Mp=n,dm=i,Np=n*=_n,Dp=hn(i=(i*=_n)/2+Lu),Op=sn(i)}function ao(n,i){var o=(n*=_n)-Np,s=o>=0?1:-1,l=s*o,p=hn(i=(i*=_n)/2+Lu),b=sn(i),v=Op*b,T=Dp*p+v*hn(l),N=v*s*sn(l);m1.add(Xi(N,T)),Np=n,Dp=p,Op=b}function R4(n){return v1.reset(),ko(n,Ua),2*v1}function b1(n){return[Xi(n[1],n[0]),ga(n[2])]}function oo(n){var i=n[0],o=n[1],s=hn(o);return[s*hn(i),s*sn(i),sn(o)]}function _1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Pu(n,i){return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}function ju(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function Pc(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function uh(n){var i=yi(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var Rr,ma,ri,Ma,ic,Lp,Ip,ac,To,Ko,Yu,lh,hh,jc,zu,Uu,so,fh,x1,Es,Rp,w1,qu,va,na,mi,dh=ec(),Eo={point:Yc,lineStart:Fp,lineEnd:Pp,polygonStart:function(){Eo.point=Hu,Eo.lineStart=mm,Eo.lineEnd=ph,dh.reset(),Ua.polygonStart()},polygonEnd:function(){Ua.polygonEnd(),Eo.point=Yc,Eo.lineStart=Fp,Eo.lineEnd=Pp,m1<0?(Rr=-(ri=180),ma=-(Ma=90)):dh>Rn?Ma=90:dh<-1e-6&&(ma=-90),Ko[0]=Rr,Ko[1]=ri},sphere:function(){Rr=-(ri=180),ma=-(Ma=90)}};function Yc(n,i){To.push(Ko=[Rr=n,ri=n]),i<ma&&(ma=i),i>Ma&&(Ma=i)}function ym(n,i){var o=oo([n*_n,i*_n]);if(ac){var s=Pu(ac,o),l=Pu([s[1],-s[0],0],s);uh(l),l=b1(l);var p,b=n-ic,v=b>0?1:-1,T=l[0]*Ir*v,N=Se(b)>180;N^(v*ic<T&&T<v*n)?(p=l[1]*Ir)>Ma&&(Ma=p):N^(v*ic<(T=(T+360)%360-180)&&T<v*n)?(p=-l[1]*Ir)<ma&&(ma=p):(i<ma&&(ma=i),i>Ma&&(Ma=i)),N?n<ic?ba(Rr,n)>ba(Rr,ri)&&(ri=n):ba(n,ri)>ba(Rr,ri)&&(Rr=n):ri>=Rr?(n<Rr&&(Rr=n),n>ri&&(ri=n)):n>ic?ba(Rr,n)>ba(Rr,ri)&&(ri=n):ba(n,ri)>ba(Rr,ri)&&(Rr=n)}else To.push(Ko=[Rr=n,ri=n]);i<ma&&(ma=i),i>Ma&&(Ma=i),ac=o,ic=n}function Fp(){Eo.point=ym}function Pp(){Ko[0]=Rr,Ko[1]=ri,Eo.point=Yc,ac=null}function Hu(n,i){if(ac){var o=n-ic;dh.add(Se(o)>180?o+(o>0?360:-360):o)}else Lp=n,Ip=i;Ua.point(n,i),ym(n,i)}function mm(){Ua.lineStart()}function ph(){Hu(Lp,Ip),Ua.lineEnd(),Se(dh)>Rn&&(Rr=-(ri=180)),Ko[0]=Rr,Ko[1]=ri,ac=null}function ba(n,i){return(i-=n)<0?i+360:i}function jp(n,i){return n[0]-i[0]}function Wu(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function gh(n){var i,o,s,l,p,b,v;if(Ma=ri=-(Rr=ma=1/0),To=[],ko(n,Eo),o=To.length){for(To.sort(jp),i=1,p=[s=To[0]];i<o;++i)Wu(s,(l=To[i])[0])||Wu(s,l[1])?(ba(s[0],l[1])>ba(s[0],s[1])&&(s[1]=l[1]),ba(l[0],s[1])>ba(s[0],s[1])&&(s[0]=l[0])):p.push(s=l);for(b=-1/0,i=0,s=p[o=p.length-1];i<=o;s=l,++i)l=p[i],(v=ba(s[1],l[0]))>b&&(b=v,Rr=l[0],ri=s[1])}return To=Ko=null,Rr===1/0||ma===1/0?[[NaN,NaN],[NaN,NaN]]:[[Rr,ma],[ri,Ma]]}var qa={sphere:xr,point:k1,lineStart:vm,lineEnd:bm,polygonStart:function(){qa.lineStart=yh,qa.lineEnd=mh},polygonEnd:function(){qa.lineStart=vm,qa.lineEnd=bm}};function k1(n,i){n*=_n;var o=hn(i*=_n);li(o*hn(n),o*sn(n),sn(i))}function li(n,i,o){++Yu,hh+=(n-hh)/Yu,jc+=(i-jc)/Yu,zu+=(o-zu)/Yu}function vm(){qa.point=F4}function F4(n,i){n*=_n;var o=hn(i*=_n);va=o*hn(n),na=o*sn(n),mi=sn(i),qa.point=wr,li(va,na,mi)}function wr(n,i){n*=_n;var o=hn(i*=_n),s=o*hn(n),l=o*sn(n),p=sn(i),b=Xi(yi((b=na*p-mi*l)*b+(b=mi*s-va*p)*b+(b=va*l-na*s)*b),va*s+na*l+mi*p);lh+=b,Uu+=b*(va+(va=s)),so+=b*(na+(na=l)),fh+=b*(mi+(mi=p)),li(va,na,mi)}function bm(){qa.point=k1}function yh(){qa.point=P4}function mh(){_m(w1,qu),qa.point=k1}function P4(n,i){w1=n,qu=i,n*=_n,i*=_n,qa.point=_m;var o=hn(i);va=o*hn(n),na=o*sn(n),mi=sn(i),li(va,na,mi)}function _m(n,i){n*=_n;var o=hn(i*=_n),s=o*hn(n),l=o*sn(n),p=sn(i),b=na*p-mi*l,v=mi*s-va*p,T=va*l-na*s,N=yi(b*b+v*v+T*T),B=ga(N),F=N&&-B/N;x1+=F*b,Es+=F*v,Rp+=F*T,lh+=B,Uu+=B*(va+(va=s)),so+=B*(na+(na=l)),fh+=B*(mi+(mi=p)),li(va,na,mi)}function j4(n){Yu=lh=hh=jc=zu=Uu=so=fh=x1=Es=Rp=0,ko(n,qa);var i=x1,o=Es,s=Rp,l=i*i+o*o+s*s;return l<sh&&(i=Uu,o=so,s=fh,lh<Rn&&(i=hh,o=jc,s=zu),(l=i*i+o*o+s*s)<sh)?[NaN,NaN]:[Xi(o,i)*Ir,ga(s/yi(l))*Ir]}function $u(n){return function(){return n}}function Yp(n,i){function o(s,l){return s=n(s,l),i(s[0],s[1])}return n.invert&&i.invert&&(o.invert=function(s,l){return(s=i.invert(s,l))&&n.invert(s[0],s[1])}),o}function T1(n,i){return[Se(n)>nr?n+Math.round(-n/Nr)*Nr:n,i]}function E1(n,i,o){return(n%=Nr)?i||o?Yp(wm(n),km(i,o)):wm(n):i||o?km(i,o):T1}function xm(n){return function(i,o){return[(i+=n)>nr?i-Nr:i<-nr?i+Nr:i,o]}}function wm(n){var i=xm(n);return i.invert=xm(-n),i}function km(n,i){var o=hn(n),s=sn(n),l=hn(i),p=sn(i);function b(v,T){var N=hn(T),B=hn(v)*N,F=sn(v)*N,O=sn(T),z=O*o+B*s;return[Xi(F*l-z*p,B*o-O*s),ga(z*l+F*p)]}return b.invert=function(v,T){var N=hn(T),B=hn(v)*N,F=sn(v)*N,O=sn(T),z=O*l-F*p;return[Xi(F*l+O*p,B*o+z*s),ga(z*o-B*s)]},b}function zp(n){function i(o){return(o=n(o[0]*_n,o[1]*_n))[0]*=Ir,o[1]*=Ir,o}return n=E1(n[0]*_n,n[1]*_n,n.length>2?n[2]*_n:0),i.invert=function(o){return(o=n.invert(o[0]*_n,o[1]*_n))[0]*=Ir,o[1]*=Ir,o},i}function Tm(n,i,o,s,l,p){if(o){var b=hn(i),v=sn(i),T=s*o;l==null?(l=i+s*Nr,p=i-T/2):(l=Up(b,l),p=Up(b,p),(s>0?l<p:l>p)&&(l+=s*Nr));for(var N,B=l;s>0?B>p:B<p;B-=T)N=b1([b,-v*hn(B),-v*sn(B)]),n.point(N[0],N[1])}}function Up(n,i){(i=oo(i))[0]-=n,uh(i);var o=rc(-i[1]);return((-i[2]<0?-o:o)+Nr-Rn)%Nr}function Y4(){var n,i,o=$u([0,0]),s=$u(90),l=$u(6),p={point:function(v,T){n.push(v=i(v,T)),v[0]*=Ir,v[1]*=Ir}};function b(){var v=o.apply(this,arguments),T=s.apply(this,arguments)*_n,N=l.apply(this,arguments)*_n;return n=[],i=E1(-v[0]*_n,-v[1]*_n,0).invert,Tm(p,T,N,1),v={type:"Polygon",coordinates:[n]},n=i=null,v}return b.center=function(v){return arguments.length?(o=typeof v=="function"?v:$u([+v[0],+v[1]]),b):o},b.radius=function(v){return arguments.length?(s=typeof v=="function"?v:$u(+v),b):s},b.precision=function(v){return arguments.length?(l=typeof v=="function"?v:$u(+v),b):l},b}function Em(){var n,i=[];return{point:function(o,s,l){n.push([o,s,l])},lineStart:function(){i.push(n=[])},lineEnd:xr,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var o=i;return i=[],n=null,o}}}function C1(n,i){return Se(n[0]-i[0])<Rn&&Se(n[1]-i[1])<Rn}function S1(n,i,o,s){this.x=n,this.z=i,this.o=o,this.e=s,this.v=!1,this.n=this.p=null}function Cm(n,i,o,s,l){var p,b,v=[],T=[];if(n.forEach(function(U){if(!((Q=U.length-1)<=0)){var Q,Z,G=U[0],rt=U[Q];if(C1(G,rt)){if(!G[2]&&!rt[2]){for(l.lineStart(),p=0;p<Q;++p)l.point((G=U[p])[0],G[1]);return void l.lineEnd()}rt[0]+=2e-6}v.push(Z=new S1(G,U,null,!0)),T.push(Z.o=new S1(G,null,Z,!1)),v.push(Z=new S1(rt,U,null,!1)),T.push(Z.o=new S1(rt,null,Z,!0))}}),v.length){for(T.sort(i),Sm(v),Sm(T),p=0,b=T.length;p<b;++p)T[p].e=o=!o;for(var N,B,F=v[0];;){for(var O=F,z=!0;O.v;)if((O=O.n)===F)return;N=O.z,l.lineStart();do{if(O.v=O.o.v=!0,O.e){if(z)for(p=0,b=N.length;p<b;++p)l.point((B=N[p])[0],B[1]);else s(O.x,O.n.x,1,l);O=O.n}else{if(z)for(N=O.p.z,p=N.length-1;p>=0;--p)l.point((B=N[p])[0],B[1]);else s(O.x,O.p.x,-1,l);O=O.p}N=(O=O.o).z,z=!z}while(!O.v);l.lineEnd()}}}function Sm(n){if(i=n.length){for(var i,o,s=0,l=n[0];++s<i;)l.n=o=n[s],o.p=l,l=o;l.n=o=n[0],o.p=l}}T1.invert=T1;var qp=ec();function A1(n){return Se(n[0])<=nr?n[0]:_r(n[0])*((Se(n[0])+nr)%Nr-nr)}function Am(n,i){var o=A1(i),s=i[1],l=sn(s),p=[sn(o),-hn(o),0],b=0,v=0;qp.reset(),l===1?s=ui+Rn:l===-1&&(s=-ui-Rn);for(var T=0,N=n.length;T<N;++T)if(F=(B=n[T]).length)for(var B,F,O=B[F-1],z=A1(O),U=O[1]/2+Lu,Q=sn(U),Z=hn(U),G=0;G<F;++G,z=et,Q=Pt,Z=Vt,O=rt){var rt=B[G],et=A1(rt),ut=rt[1]/2+Lu,Pt=sn(ut),Vt=hn(ut),qt=et-z,be=qt>=0?1:-1,Yt=be*qt,ce=Yt>nr,ct=Q*Pt;if(qp.add(Xi(ct*be*sn(Yt),Z*Vt+ct*hn(Yt))),b+=ce?qt+be*Nr:qt,ce^z>=o^et>=o){var xt=Pu(oo(O),oo(rt));uh(xt);var ie=Pu(p,xt);uh(ie);var Kt=(ce^qt>=0?-1:1)*ga(ie[2]);(s>Kt||s===Kt&&(xt[0]||xt[1]))&&(v+=ce^qt>=0?1:-1)}}return(b<-1e-6||b<Rn&&qp<-1e-6)^1&v}function Mm(n,i,o,s){return function(l){var p,b,v,T=i(l),N=Em(),B=i(N),F=!1,O={point:z,lineStart:Q,lineEnd:Z,polygonStart:function(){O.point=G,O.lineStart=rt,O.lineEnd=et,b=[],p=[]},polygonEnd:function(){O.point=z,O.lineStart=Q,O.lineEnd=Z,b=le(b);var ut=Am(p,s);b.length?(F||(l.polygonStart(),F=!0),Cm(b,Nm,ut,o,l)):ut&&(F||(l.polygonStart(),F=!0),l.lineStart(),o(null,null,1,l),l.lineEnd()),F&&(l.polygonEnd(),F=!1),b=p=null},sphere:function(){l.polygonStart(),l.lineStart(),o(null,null,1,l),l.lineEnd(),l.polygonEnd()}};function z(ut,Pt){n(ut,Pt)&&l.point(ut,Pt)}function U(ut,Pt){T.point(ut,Pt)}function Q(){O.point=U,T.lineStart()}function Z(){O.point=z,T.lineEnd()}function G(ut,Pt){v.push([ut,Pt]),B.point(ut,Pt)}function rt(){B.lineStart(),v=[]}function et(){G(v[0][0],v[0][1]),B.lineEnd();var ut,Pt,Vt,qt,be=B.clean(),Yt=N.result(),ce=Yt.length;if(v.pop(),p.push(v),v=null,ce)if(1&be){if((Pt=(Vt=Yt[0]).length-1)>0){for(F||(l.polygonStart(),F=!0),l.lineStart(),ut=0;ut<Pt;++ut)l.point((qt=Vt[ut])[0],qt[1]);l.lineEnd()}}else ce>1&&2&be&&Yt.push(Yt.pop().concat(Yt.shift())),b.push(Yt.filter(z4))}return O}}function z4(n){return n.length>1}function Nm(n,i){return((n=n.x)[0]<0?n[1]-ui-Rn:ui-n[1])-((i=i.x)[0]<0?i[1]-ui-Rn:ui-i[1])}const Hp=Mm(function(){return!0},function(n){var i,o=NaN,s=NaN,l=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(p,b){var v=p>0?nr:-nr,T=Se(p-o);Se(T-nr)<Rn?(n.point(o,s=(s+b)/2>0?ui:-ui),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),n.point(p,s),i=0):l!==v&&T>=nr&&(Se(o-l)<Rn&&(o-=l*Rn),Se(p-v)<Rn&&(p-=v*Rn),s=function(N,B,F,O){var z,U,Q=sn(N-F);return Se(Q)>Rn?nc((sn(B)*(U=hn(O))*sn(F)-sn(O)*(z=hn(B))*sn(N))/(z*U*Q)):(B+O)/2}(o,s,p,b),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),i=0),n.point(o=p,s=b),l=v},lineEnd:function(){n.lineEnd(),o=s=NaN},clean:function(){return 2-i}}},function(n,i,o,s){var l;if(n==null)l=o*ui,s.point(-nr,l),s.point(0,l),s.point(nr,l),s.point(nr,0),s.point(nr,-l),s.point(0,-l),s.point(-nr,-l),s.point(-nr,0),s.point(-nr,l);else if(Se(n[0]-i[0])>Rn){var p=n[0]<i[0]?nr:-nr;l=o*p/2,s.point(-p,l),s.point(0,l),s.point(p,l)}else s.point(i[0],i[1])},[-nr,-ui]);function Dm(n){var i=hn(n),o=6*_n,s=i>0,l=Se(i)>Rn;function p(T,N){return hn(T)*hn(N)>i}function b(T,N,B){var F=[1,0,0],O=Pu(oo(T),oo(N)),z=_1(O,O),U=O[0],Q=z-U*U;if(!Q)return!B&&T;var Z=i*z/Q,G=-i*U/Q,rt=Pu(F,O),et=Pc(F,Z);ju(et,Pc(O,G));var ut=rt,Pt=_1(et,ut),Vt=_1(ut,ut),qt=Pt*Pt-Vt*(_1(et,et)-1);if(!(qt<0)){var be=yi(qt),Yt=Pc(ut,(-Pt-be)/Vt);if(ju(Yt,et),Yt=b1(Yt),!B)return Yt;var ce,ct=T[0],xt=N[0],ie=T[1],Kt=N[1];xt<ct&&(ce=ct,ct=xt,xt=ce);var ae=xt-ct,Be=Se(ae-nr)<Rn;if(!Be&&Kt<ie&&(ce=ie,ie=Kt,Kt=ce),Be||ae<Rn?Be?ie+Kt>0^Yt[1]<(Se(Yt[0]-ct)<Rn?ie:Kt):ie<=Yt[1]&&Yt[1]<=Kt:ae>nr^(ct<=Yt[0]&&Yt[0]<=xt)){var $e=Pc(ut,(-Pt+be)/Vt);return ju($e,et),[Yt,b1($e)]}}}function v(T,N){var B=s?n:nr-n,F=0;return T<-B?F|=1:T>B&&(F|=2),N<-B?F|=4:N>B&&(F|=8),F}return Mm(p,function(T){var N,B,F,O,z;return{lineStart:function(){O=F=!1,z=1},point:function(U,Q){var Z,G=[U,Q],rt=p(U,Q),et=s?rt?0:v(U,Q):rt?v(U+(U<0?nr:-nr),Q):0;if(!N&&(O=F=rt)&&T.lineStart(),rt!==F&&(!(Z=b(N,G))||C1(N,Z)||C1(G,Z))&&(G[2]=1),rt!==F)z=0,rt?(T.lineStart(),Z=b(G,N),T.point(Z[0],Z[1])):(Z=b(N,G),T.point(Z[0],Z[1],2),T.lineEnd()),N=Z;else if(l&&N&&s^rt){var ut;et&B||!(ut=b(G,N,!0))||(z=0,s?(T.lineStart(),T.point(ut[0][0],ut[0][1]),T.point(ut[1][0],ut[1][1]),T.lineEnd()):(T.point(ut[1][0],ut[1][1]),T.lineEnd(),T.lineStart(),T.point(ut[0][0],ut[0][1],3)))}!rt||N&&C1(N,G)||T.point(G[0],G[1]),N=G,F=rt,B=et},lineEnd:function(){F&&T.lineEnd(),N=null},clean:function(){return z|(O&&F)<<1}}},function(T,N,B,F){Tm(F,n,o,B,T,N)},s?[0,-n]:[-nr,n-nr])}var vh=1e9,M1=-vh;function N1(n,i,o,s){function l(N,B){return n<=N&&N<=o&&i<=B&&B<=s}function p(N,B,F,O){var z=0,U=0;if(N==null||(z=b(N,F))!==(U=b(B,F))||T(N,B)<0^F>0)do O.point(z===0||z===3?n:o,z>1?s:i);while((z=(z+F+4)%4)!==U);else O.point(B[0],B[1])}function b(N,B){return Se(N[0]-n)<Rn?B>0?0:3:Se(N[0]-o)<Rn?B>0?2:1:Se(N[1]-i)<Rn?B>0?1:0:B>0?3:2}function v(N,B){return T(N.x,B.x)}function T(N,B){var F=b(N,1),O=b(B,1);return F!==O?F-O:F===0?B[1]-N[1]:F===1?N[0]-B[0]:F===2?N[1]-B[1]:B[0]-N[0]}return function(N){var B,F,O,z,U,Q,Z,G,rt,et,ut,Pt=N,Vt=Em(),qt={point:be,lineStart:function(){qt.point=Yt,F&&F.push(O=[]),et=!0,rt=!1,Z=G=NaN},lineEnd:function(){B&&(Yt(z,U),Q&&rt&&Vt.rejoin(),B.push(Vt.result())),qt.point=be,rt&&Pt.lineEnd()},polygonStart:function(){Pt=Vt,B=[],F=[],ut=!0},polygonEnd:function(){var ce=function(){for(var ie=0,Kt=0,ae=F.length;Kt<ae;++Kt)for(var Be,$e,dn=F[Kt],Fn=1,ir=dn.length,rn=dn[0],tr=rn[0],Dn=rn[1];Fn<ir;++Fn)Be=tr,$e=Dn,tr=(rn=dn[Fn])[0],Dn=rn[1],$e<=s?Dn>s&&(tr-Be)*(s-$e)>(Dn-$e)*(n-Be)&&++ie:Dn<=s&&(tr-Be)*(s-$e)<(Dn-$e)*(n-Be)&&--ie;return ie}(),ct=ut&&ce,xt=(B=le(B)).length;(ct||xt)&&(N.polygonStart(),ct&&(N.lineStart(),p(null,null,1,N),N.lineEnd()),xt&&Cm(B,v,ce,p,N),N.polygonEnd()),Pt=N,B=F=O=null}};function be(ce,ct){l(ce,ct)&&Pt.point(ce,ct)}function Yt(ce,ct){var xt=l(ce,ct);if(F&&O.push([ce,ct]),et)z=ce,U=ct,Q=xt,et=!1,xt&&(Pt.lineStart(),Pt.point(ce,ct));else if(xt&&rt)Pt.point(ce,ct);else{var ie=[Z=Math.max(M1,Math.min(vh,Z)),G=Math.max(M1,Math.min(vh,G))],Kt=[ce=Math.max(M1,Math.min(vh,ce)),ct=Math.max(M1,Math.min(vh,ct))];(function(ae,Be,$e,dn,Fn,ir){var rn,tr=ae[0],Dn=ae[1],Sn=0,sr=1,Hi=Be[0]-tr,bi=Be[1]-Dn;if(rn=$e-tr,Hi||!(rn>0)){if(rn/=Hi,Hi<0){if(rn<Sn)return;rn<sr&&(sr=rn)}else if(Hi>0){if(rn>sr)return;rn>Sn&&(Sn=rn)}if(rn=Fn-tr,Hi||!(rn<0)){if(rn/=Hi,Hi<0){if(rn>sr)return;rn>Sn&&(Sn=rn)}else if(Hi>0){if(rn<Sn)return;rn<sr&&(sr=rn)}if(rn=dn-Dn,bi||!(rn>0)){if(rn/=bi,bi<0){if(rn<Sn)return;rn<sr&&(sr=rn)}else if(bi>0){if(rn>sr)return;rn>Sn&&(Sn=rn)}if(rn=ir-Dn,bi||!(rn<0)){if(rn/=bi,bi<0){if(rn>sr)return;rn>Sn&&(Sn=rn)}else if(bi>0){if(rn<Sn)return;rn<sr&&(sr=rn)}return Sn>0&&(ae[0]=tr+Sn*Hi,ae[1]=Dn+Sn*bi),sr<1&&(Be[0]=tr+sr*Hi,Be[1]=Dn+sr*bi),!0}}}}})(ie,Kt,n,i,o,s)?(rt||(Pt.lineStart(),Pt.point(ie[0],ie[1])),Pt.point(Kt[0],Kt[1]),xt||Pt.lineEnd(),ut=!1):xt&&(Pt.lineStart(),Pt.point(ce,ct),ut=!1)}Z=ce,G=ct,rt=xt}return qt}}function U4(){var n,i,o,s=0,l=0,p=960,b=500;return o={stream:function(v){return n&&i===v?n:n=N1(s,l,p,b)(i=v)},extent:function(v){return arguments.length?(s=+v[0][0],l=+v[0][1],p=+v[1][0],b=+v[1][1],n=i=null,o):[[s,l],[p,b]]}}}var D1,O1,B1,Wp=ec(),Vu={sphere:xr,point:xr,lineStart:function(){Vu.point=H4,Vu.lineEnd=q4},lineEnd:xr,polygonStart:xr,polygonEnd:xr};function q4(){Vu.point=Vu.lineEnd=xr}function H4(n,i){D1=n*=_n,O1=sn(i*=_n),B1=hn(i),Vu.point=W4}function W4(n,i){n*=_n;var o=sn(i*=_n),s=hn(i),l=Se(n-D1),p=hn(l),b=s*sn(l),v=B1*o-O1*s*p,T=O1*o+B1*s*p;Wp.add(Xi(yi(b*b+v*v),T)),D1=n,O1=o,B1=s}function Om(n){return Wp.reset(),ko(n,Vu),+Wp}var L1=[null,null],$4={type:"LineString",coordinates:L1};function I1(n,i){return L1[0]=n,L1[1]=i,Om($4)}var Bm={Feature:function(n,i){return R1(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)if(R1(o[s].geometry,i))return!0;return!1}},$p={Sphere:function(){return!0},Point:function(n,i){return Lm(n.coordinates,i)},MultiPoint:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Lm(o[s],i))return!0;return!1},LineString:function(n,i){return Im(n.coordinates,i)},MultiLineString:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Im(o[s],i))return!0;return!1},Polygon:function(n,i){return Rm(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Rm(o[s],i))return!0;return!1},GeometryCollection:function(n,i){for(var o=n.geometries,s=-1,l=o.length;++s<l;)if(R1(o[s],i))return!0;return!1}};function R1(n,i){return!(!n||!$p.hasOwnProperty(n.type))&&$p[n.type](n,i)}function Lm(n,i){return I1(n,i)===0}function Im(n,i){for(var o,s,l,p=0,b=n.length;p<b;p++){if((s=I1(n[p],i))===0||p>0&&(l=I1(n[p],n[p-1]))>0&&o<=l&&s<=l&&(o+s-l)*(1-Math.pow((o-s)/l,2))<sh*l)return!0;o=s}return!1}function Rm(n,i){return!!Am(n.map(V4),Fm(i))}function V4(n){return(n=n.map(Fm)).pop(),n}function Fm(n){return[n[0]*_n,n[1]*_n]}function Pm(n,i){return(n&&Bm.hasOwnProperty(n.type)?Bm[n.type]:R1)(n,i)}function jm(n,i,o){var s=st(n,i-Rn,o).concat(i);return function(l){return s.map(function(p){return[l,p]})}}function Ym(n,i,o){var s=st(n,i-Rn,o).concat(i);return function(l){return s.map(function(p){return[p,l]})}}function zm(){var n,i,o,s,l,p,b,v,T,N,B,F,O=10,z=O,U=90,Q=360,Z=2.5;function G(){return{type:"MultiLineString",coordinates:rt()}}function rt(){return st(Qo(s/U)*U,o,U).map(B).concat(st(Qo(v/Q)*Q,b,Q).map(F)).concat(st(Qo(i/O)*O,n,O).filter(function(et){return Se(et%U)>Rn}).map(T)).concat(st(Qo(p/z)*z,l,z).filter(function(et){return Se(et%Q)>Rn}).map(N))}return G.lines=function(){return rt().map(function(et){return{type:"LineString",coordinates:et}})},G.outline=function(){return{type:"Polygon",coordinates:[B(s).concat(F(b).slice(1),B(o).reverse().slice(1),F(v).reverse().slice(1))]}},G.extent=function(et){return arguments.length?G.extentMajor(et).extentMinor(et):G.extentMinor()},G.extentMajor=function(et){return arguments.length?(s=+et[0][0],o=+et[1][0],v=+et[0][1],b=+et[1][1],s>o&&(et=s,s=o,o=et),v>b&&(et=v,v=b,b=et),G.precision(Z)):[[s,v],[o,b]]},G.extentMinor=function(et){return arguments.length?(i=+et[0][0],n=+et[1][0],p=+et[0][1],l=+et[1][1],i>n&&(et=i,i=n,n=et),p>l&&(et=p,p=l,l=et),G.precision(Z)):[[i,p],[n,l]]},G.step=function(et){return arguments.length?G.stepMajor(et).stepMinor(et):G.stepMinor()},G.stepMajor=function(et){return arguments.length?(U=+et[0],Q=+et[1],G):[U,Q]},G.stepMinor=function(et){return arguments.length?(O=+et[0],z=+et[1],G):[O,z]},G.precision=function(et){return arguments.length?(Z=+et,T=jm(p,l,90),N=Ym(i,n,Z),B=jm(v,b,90),F=Ym(s,o,Z),G):Z},G.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function G4(){return zm()()}function X4(n,i){var o=n[0]*_n,s=n[1]*_n,l=i[0]*_n,p=i[1]*_n,b=hn(s),v=sn(s),T=hn(p),N=sn(p),B=b*hn(o),F=b*sn(o),O=T*hn(l),z=T*sn(l),U=2*ga(yi(y1(p-s)+b*T*y1(l-o))),Q=sn(U),Z=U?function(G){var rt=sn(G*=U)/Q,et=sn(U-G)/Q,ut=et*B+rt*O,Pt=et*F+rt*z,Vt=et*v+rt*N;return[Xi(Pt,ut)*Ir,Xi(Vt,yi(ut*ut+Pt*Pt))*Ir]}:function(){return[o*Ir,s*Ir]};return Z.distance=U,Z}function bh(n){return n}var Um,qm,F1,P1,j1=ec(),Vp=ec(),Cs={point:xr,lineStart:xr,lineEnd:xr,polygonStart:function(){Cs.lineStart=Y1,Cs.lineEnd=Wm},polygonEnd:function(){Cs.lineStart=Cs.lineEnd=Cs.point=xr,j1.add(Se(Vp)),Vp.reset()},result:function(){var n=j1/2;return j1.reset(),n}};function Y1(){Cs.point=Z4}function Z4(n,i){Cs.point=Hm,Um=F1=n,qm=P1=i}function Hm(n,i){Vp.add(P1*n-F1*i),F1=n,P1=i}function Wm(){Hm(Um,qm)}const $m=Cs;var Ss=1/0,oc=Ss,Jo=-Ss,sc=Jo,_h={point:function(n,i){n<Ss&&(Ss=n),n>Jo&&(Jo=n),i<oc&&(oc=i),i>sc&&(sc=i)},lineStart:xr,lineEnd:xr,polygonStart:xr,polygonEnd:xr,result:function(){var n=[[Ss,oc],[Jo,sc]];return Jo=sc=-(oc=Ss=1/0),n}};const zc=_h;var cc,xh,Na,Co,wh=0,Gp=0,uc=0,kh=0,Th=0,Gu=0,Eh=0,z1=0,Ch=0,So={point:ts,lineStart:U1,lineEnd:As,polygonStart:function(){So.lineStart=q1,So.lineEnd=Vm},polygonEnd:function(){So.point=ts,So.lineStart=U1,So.lineEnd=As},result:function(){var n=Ch?[Eh/Ch,z1/Ch]:Gu?[kh/Gu,Th/Gu]:uc?[wh/uc,Gp/uc]:[NaN,NaN];return wh=Gp=uc=kh=Th=Gu=Eh=z1=Ch=0,n}};function ts(n,i){wh+=n,Gp+=i,++uc}function U1(){So.point=es}function es(n,i){So.point=Ao,ts(Na=n,Co=i)}function Ao(n,i){var o=n-Na,s=i-Co,l=yi(o*o+s*s);kh+=l*(Na+n)/2,Th+=l*(Co+i)/2,Gu+=l,ts(Na=n,Co=i)}function As(){So.point=ts}function q1(){So.point=Xp}function Vm(){Zp(cc,xh)}function Xp(n,i){So.point=Zp,ts(cc=Na=n,xh=Co=i)}function Zp(n,i){var o=n-Na,s=i-Co,l=yi(o*o+s*s);kh+=l*(Na+n)/2,Th+=l*(Co+i)/2,Gu+=l,Eh+=(l=Co*n-Na*i)*(Na+n),z1+=l*(Co+i),Ch+=3*l,ts(Na=n,Co=i)}const Qp=So;function Gm(n){this._context=n}Gm.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._context.moveTo(n,i),this._point=1;break;case 1:this._context.lineTo(n,i);break;default:this._context.moveTo(n+this._radius,i),this._context.arc(n,i,this._radius,0,Nr)}},result:xr};var Kp,Xm,Zm,Uc,Xu,Sh=ec(),Zu={point:xr,lineStart:function(){Zu.point=Q4},lineEnd:function(){Kp&&Jp(Xm,Zm),Zu.point=xr},polygonStart:function(){Kp=!0},polygonEnd:function(){Kp=null},result:function(){var n=+Sh;return Sh.reset(),n}};function Q4(n,i){Zu.point=Jp,Xm=Uc=n,Zm=Xu=i}function Jp(n,i){Uc-=n,Xu-=i,Sh.add(yi(Uc*Uc+Xu*Xu)),Uc=n,Xu=i}const Qm=Zu;function Km(){this._string=[]}function Jm(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function K4(n,i){var o,s,l=4.5;function p(b){return b&&(typeof l=="function"&&s.pointRadius(+l.apply(this,arguments)),ko(b,o(s))),s.result()}return p.area=function(b){return ko(b,o($m)),$m.result()},p.measure=function(b){return ko(b,o(Qm)),Qm.result()},p.bounds=function(b){return ko(b,o(zc)),zc.result()},p.centroid=function(b){return ko(b,o(Qp)),Qp.result()},p.projection=function(b){return arguments.length?(o=b==null?(n=null,bh):(n=b).stream,p):n},p.context=function(b){return arguments.length?(s=b==null?(i=null,new Km):new Gm(i=b),typeof l!="function"&&s.pointRadius(l),p):i},p.pointRadius=function(b){return arguments.length?(l=typeof b=="function"?b:(s.pointRadius(+b),+b),p):l},p.projection(n).context(i)}function J4(n){return{stream:Ah(n)}}function Ah(n){return function(i){var o=new tg;for(var s in n)o[s]=n[s];return o.stream=i,o}}function tg(){}function eg(n,i,o){var s=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),s!=null&&n.clipExtent(null),ko(o,n.stream(zc)),i(zc.result()),s!=null&&n.clipExtent(s),n}function H1(n,i,o){return eg(n,function(s){var l=i[1][0]-i[0][0],p=i[1][1]-i[0][1],b=Math.min(l/(s[1][0]-s[0][0]),p/(s[1][1]-s[0][1])),v=+i[0][0]+(l-b*(s[1][0]+s[0][0]))/2,T=+i[0][1]+(p-b*(s[1][1]+s[0][1]))/2;n.scale(150*b).translate([v,T])},o)}function ng(n,i,o){return H1(n,[[0,0],i],o)}function rg(n,i,o){return eg(n,function(s){var l=+i,p=l/(s[1][0]-s[0][0]),b=(l-p*(s[1][0]+s[0][0]))/2,v=-p*s[0][1];n.scale(150*p).translate([b,v])},o)}function ig(n,i,o){return eg(n,function(s){var l=+i,p=l/(s[1][1]-s[0][1]),b=-p*s[0][0],v=(l-p*(s[1][1]+s[0][1]))/2;n.scale(150*p).translate([b,v])},o)}Km.prototype={_radius:4.5,_circle:Jm(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._string.push("M",n,",",i),this._point=1;break;case 1:this._string.push("L",n,",",i);break;default:this._circle==null&&(this._circle=Jm(this._radius)),this._string.push("M",n,",",i,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},tg.prototype={constructor:tg,point:function(n,i){this.stream.point(n,i)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var t5=hn(30*_n);function tv(n,i){return+i?function(o,s){function l(p,b,v,T,N,B,F,O,z,U,Q,Z,G,rt){var et=F-p,ut=O-b,Pt=et*et+ut*ut;if(Pt>4*s&&G--){var Vt=T+U,qt=N+Q,be=B+Z,Yt=yi(Vt*Vt+qt*qt+be*be),ce=ga(be/=Yt),ct=Se(Se(be)-1)<Rn||Se(v-z)<Rn?(v+z)/2:Xi(qt,Vt),xt=o(ct,ce),ie=xt[0],Kt=xt[1],ae=ie-p,Be=Kt-b,$e=ut*ae-et*Be;($e*$e/Pt>s||Se((et*ae+ut*Be)/Pt-.5)>.3||T*U+N*Q+B*Z<t5)&&(l(p,b,v,T,N,B,ie,Kt,ct,Vt/=Yt,qt/=Yt,be,G,rt),rt.point(ie,Kt),l(ie,Kt,ct,Vt,qt,be,F,O,z,U,Q,Z,G,rt))}}return function(p){var b,v,T,N,B,F,O,z,U,Q,Z,G,rt={point:et,lineStart:ut,lineEnd:Vt,polygonStart:function(){p.polygonStart(),rt.lineStart=qt},polygonEnd:function(){p.polygonEnd(),rt.lineStart=ut}};function et(ce,ct){ce=o(ce,ct),p.point(ce[0],ce[1])}function ut(){z=NaN,rt.point=Pt,p.lineStart()}function Pt(ce,ct){var xt=oo([ce,ct]),ie=o(ce,ct);l(z,U,O,Q,Z,G,z=ie[0],U=ie[1],O=ce,Q=xt[0],Z=xt[1],G=xt[2],16,p),p.point(z,U)}function Vt(){rt.point=et,p.lineEnd()}function qt(){ut(),rt.point=be,rt.lineEnd=Yt}function be(ce,ct){Pt(b=ce,ct),v=z,T=U,N=Q,B=Z,F=G,rt.point=Pt}function Yt(){l(z,U,O,Q,Z,G,v,T,b,N,B,F,16,p),rt.lineEnd=Vt,Vt()}return rt}}(n,i):function(o){return Ah({point:function(s,l){s=o(s,l),this.stream.point(s[0],s[1])}})}(n)}var e5=Ah({point:function(n,i){this.stream.point(n*_n,i*_n)}});function n5(n,i,o,s,l){function p(b,v){return[i+n*(b*=s),o-n*(v*=l)]}return p.invert=function(b,v){return[(b-i)/n*s,(o-v)/n*l]},p}function ev(n,i,o,s,l,p){var b=hn(p),v=sn(p),T=b*n,N=v*n,B=b/n,F=v/n,O=(v*o-b*i)/n,z=(v*i+b*o)/n;function U(Q,Z){return[T*(Q*=s)-N*(Z*=l)+i,o-N*Q-T*Z]}return U.invert=function(Q,Z){return[s*(B*Q-F*Z+O),l*(z-F*Q-B*Z)]},U}function Mo(n){return ag(function(){return n})()}function ag(n){var i,o,s,l,p,b,v,T,N,B,F=150,O=480,z=250,U=0,Q=0,Z=0,G=0,rt=0,et=0,ut=1,Pt=1,Vt=null,qt=Hp,be=null,Yt=bh,ce=.5;function ct(ae){return T(ae[0]*_n,ae[1]*_n)}function xt(ae){return(ae=T.invert(ae[0],ae[1]))&&[ae[0]*Ir,ae[1]*Ir]}function ie(){var ae=ev(F,0,0,ut,Pt,et).apply(null,i(U,Q)),Be=(et?ev:n5)(F,O-ae[0],z-ae[1],ut,Pt,et);return o=E1(Z,G,rt),v=Yp(i,Be),T=Yp(o,v),b=tv(v,ce),Kt()}function Kt(){return N=B=null,ct}return ct.stream=function(ae){return N&&B===ae?N:N=e5(function(Be){return Ah({point:function($e,dn){var Fn=Be($e,dn);return this.stream.point(Fn[0],Fn[1])}})}(o)(qt(b(Yt(B=ae)))))},ct.preclip=function(ae){return arguments.length?(qt=ae,Vt=void 0,Kt()):qt},ct.postclip=function(ae){return arguments.length?(Yt=ae,be=s=l=p=null,Kt()):Yt},ct.clipAngle=function(ae){return arguments.length?(qt=+ae?Dm(Vt=ae*_n):(Vt=null,Hp),Kt()):Vt*Ir},ct.clipExtent=function(ae){return arguments.length?(Yt=ae==null?(be=s=l=p=null,bh):N1(be=+ae[0][0],s=+ae[0][1],l=+ae[1][0],p=+ae[1][1]),Kt()):be==null?null:[[be,s],[l,p]]},ct.scale=function(ae){return arguments.length?(F=+ae,ie()):F},ct.translate=function(ae){return arguments.length?(O=+ae[0],z=+ae[1],ie()):[O,z]},ct.center=function(ae){return arguments.length?(U=ae[0]%360*_n,Q=ae[1]%360*_n,ie()):[U*Ir,Q*Ir]},ct.rotate=function(ae){return arguments.length?(Z=ae[0]%360*_n,G=ae[1]%360*_n,rt=ae.length>2?ae[2]%360*_n:0,ie()):[Z*Ir,G*Ir,rt*Ir]},ct.angle=function(ae){return arguments.length?(et=ae%360*_n,ie()):et*Ir},ct.reflectX=function(ae){return arguments.length?(ut=ae?-1:1,ie()):ut<0},ct.reflectY=function(ae){return arguments.length?(Pt=ae?-1:1,ie()):Pt<0},ct.precision=function(ae){return arguments.length?(b=tv(v,ce=ae*ae),Kt()):yi(ce)},ct.fitExtent=function(ae,Be){return H1(ct,ae,Be)},ct.fitSize=function(ae,Be){return ng(ct,ae,Be)},ct.fitWidth=function(ae,Be){return rg(ct,ae,Be)},ct.fitHeight=function(ae,Be){return ig(ct,ae,Be)},function(){return i=n.apply(this,arguments),ct.invert=i.invert&&xt,ie()}}function og(n){var i=0,o=nr/3,s=ag(n),l=s(i,o);return l.parallels=function(p){return arguments.length?s(i=p[0]*_n,o=p[1]*_n):[i*Ir,o*Ir]},l}function nv(n,i){var o=sn(n),s=(o+sn(i))/2;if(Se(s)<Rn)return function(v){var T=hn(v);function N(B,F){return[B*T,sn(F)/T]}return N.invert=function(B,F){return[B/T,ga(F*T)]},N}(n);var l=1+o*(2*s-o),p=yi(l)/s;function b(v,T){var N=yi(l-2*s*sn(T))/s;return[N*sn(v*=s),p-N*hn(v)]}return b.invert=function(v,T){var N=p-T,B=Xi(v,Se(N))*_r(N);return N*s<0&&(B-=nr*_r(v)*_r(N)),[B/s,ga((l-(v*v+N*N)*s*s)/(2*s))]},b}function W1(){return og(nv).scale(155.424).center([0,33.6442])}function rv(){return W1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Ms(){var n,i,o,s,l,p,b=rv(),v=W1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=W1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),N={point:function(O,z){p=[O,z]}};function B(O){var z=O[0],U=O[1];return p=null,o.point(z,U),p||(s.point(z,U),p)||(l.point(z,U),p)}function F(){return n=i=null,B}return B.invert=function(O){var z=b.scale(),U=b.translate(),Q=(O[0]-U[0])/z,Z=(O[1]-U[1])/z;return(Z>=.12&&Z<.234&&Q>=-.425&&Q<-.214?v:Z>=.166&&Z<.234&&Q>=-.214&&Q<-.115?T:b).invert(O)},B.stream=function(O){return n&&i===O?n:(z=[b.stream(i=O),v.stream(O),T.stream(O)],U=z.length,n={point:function(Q,Z){for(var G=-1;++G<U;)z[G].point(Q,Z)},sphere:function(){for(var Q=-1;++Q<U;)z[Q].sphere()},lineStart:function(){for(var Q=-1;++Q<U;)z[Q].lineStart()},lineEnd:function(){for(var Q=-1;++Q<U;)z[Q].lineEnd()},polygonStart:function(){for(var Q=-1;++Q<U;)z[Q].polygonStart()},polygonEnd:function(){for(var Q=-1;++Q<U;)z[Q].polygonEnd()}});var z,U},B.precision=function(O){return arguments.length?(b.precision(O),v.precision(O),T.precision(O),F()):b.precision()},B.scale=function(O){return arguments.length?(b.scale(O),v.scale(.35*O),T.scale(O),B.translate(b.translate())):b.scale()},B.translate=function(O){if(!arguments.length)return b.translate();var z=b.scale(),U=+O[0],Q=+O[1];return o=b.translate(O).clipExtent([[U-.455*z,Q-.238*z],[U+.455*z,Q+.238*z]]).stream(N),s=v.translate([U-.307*z,Q+.201*z]).clipExtent([[U-.425*z+Rn,Q+.12*z+Rn],[U-.214*z-Rn,Q+.234*z-Rn]]).stream(N),l=T.translate([U-.205*z,Q+.212*z]).clipExtent([[U-.214*z+Rn,Q+.166*z+Rn],[U-.115*z-Rn,Q+.234*z-Rn]]).stream(N),F()},B.fitExtent=function(O,z){return H1(B,O,z)},B.fitSize=function(O,z){return ng(B,O,z)},B.fitWidth=function(O,z){return rg(B,O,z)},B.fitHeight=function(O,z){return ig(B,O,z)},B.scale(1070)}function sg(n){return function(i,o){var s=hn(i),l=hn(o),p=n(s*l);return[p*l*sn(i),p*sn(o)]}}function Ha(n){return function(i,o){var s=yi(i*i+o*o),l=n(s),p=sn(l),b=hn(l);return[Xi(i*p,s*b),ga(s&&o*p/s)]}}var cg=sg(function(n){return yi(2/(1+n))});function r5(){return Mo(cg).scale(124.75).clipAngle(179.999)}cg.invert=Ha(function(n){return 2*ga(n/2)});var ug=sg(function(n){return(n=rc(n))&&n/sn(n)});function lg(){return Mo(ug).scale(79.4188).clipAngle(179.999)}function Mh(n,i){return[n,Iu(ji((ui+i)/2))]}function i5(){return hg(Mh).scale(961/Nr)}function hg(n){var i,o,s,l=Mo(n),p=l.center,b=l.scale,v=l.translate,T=l.clipExtent,N=null;function B(){var F=nr*b(),O=l(zp(l.rotate()).invert([0,0]));return T(N==null?[[O[0]-F,O[1]-F],[O[0]+F,O[1]+F]]:n===Mh?[[Math.max(O[0]-F,N),i],[Math.min(O[0]+F,o),s]]:[[N,Math.max(O[1]-F,i)],[o,Math.min(O[1]+F,s)]])}return l.scale=function(F){return arguments.length?(b(F),B()):b()},l.translate=function(F){return arguments.length?(v(F),B()):v()},l.center=function(F){return arguments.length?(p(F),B()):p()},l.clipExtent=function(F){return arguments.length?(F==null?N=i=o=s=null:(N=+F[0][0],i=+F[0][1],o=+F[1][0],s=+F[1][1]),B()):N==null?null:[[N,i],[o,s]]},B()}function Nh(n){return ji((ui+n)/2)}function fg(n,i){var o=hn(n),s=n===i?sn(n):Iu(o/hn(i))/Iu(Nh(i)/Nh(n)),l=o*g1(Nh(n),s)/s;if(!s)return Mh;function p(b,v){l>0?v<-ui+Rn&&(v=-ui+Rn):v>ui-Rn&&(v=ui-Rn);var T=l/g1(Nh(v),s);return[T*sn(s*b),l-T*hn(s*b)]}return p.invert=function(b,v){var T=l-v,N=_r(s)*yi(b*b+T*T),B=Xi(b,Se(T))*_r(T);return T*s<0&&(B-=nr*_r(b)*_r(T)),[B/s,2*nc(g1(l/N,1/s))-ui]},p}function a5(){return og(fg).scale(109.5).parallels([30,30])}function Dh(n,i){return[n,i]}function o5(){return Mo(Dh).scale(152.63)}function iv(n,i){var o=hn(n),s=n===i?sn(n):(o-hn(i))/(i-n),l=o/s+n;if(Se(s)<Rn)return Dh;function p(b,v){var T=l-v,N=s*b;return[T*sn(N),l-T*hn(N)]}return p.invert=function(b,v){var T=l-v,N=Xi(b,Se(T))*_r(T);return T*s<0&&(N-=nr*_r(b)*_r(T)),[N/s,l-_r(s)*yi(b*b+T*T)]},p}function av(){return og(iv).scale(131.154).center([0,13.9389])}ug.invert=Ha(function(n){return n}),Mh.invert=function(n,i){return[n,2*nc(fm(i))-ui]},Dh.invert=Dh;var lc=1.340264,Oh=-.081106,Bh=893e-6,Lh=.003796,$1=yi(3)/2;function dg(n,i){var o=ga($1*sn(i)),s=o*o,l=s*s*s;return[n*hn(o)/($1*(lc+3*Oh*s+l*(7*Bh+9*Lh*s))),o*(lc+Oh*s+l*(Bh+Lh*s))]}function s5(){return Mo(dg).scale(177.158)}function Ih(n,i){var o=hn(i),s=hn(n)*o;return[o*sn(n)/s,sn(i)/s]}function ov(){return Mo(Ih).scale(144.049).clipAngle(60)}function V1(){var n,i,o,s,l,p,b,v=1,T=0,N=0,B=1,F=1,O=0,z=null,U=1,Q=1,Z=Ah({point:function(ut,Pt){var Vt=et([ut,Pt]);this.stream.point(Vt[0],Vt[1])}}),G=bh;function rt(){return U=v*B,Q=v*F,p=b=null,et}function et(ut){var Pt=ut[0]*U,Vt=ut[1]*Q;if(O){var qt=Vt*n-Pt*i;Pt=Pt*n+Vt*i,Vt=qt}return[Pt+T,Vt+N]}return et.invert=function(ut){var Pt=ut[0]-T,Vt=ut[1]-N;if(O){var qt=Vt*n+Pt*i;Pt=Pt*n-Vt*i,Vt=qt}return[Pt/U,Vt/Q]},et.stream=function(ut){return p&&b===ut?p:p=Z(G(b=ut))},et.postclip=function(ut){return arguments.length?(G=ut,z=o=s=l=null,rt()):G},et.clipExtent=function(ut){return arguments.length?(G=ut==null?(z=o=s=l=null,bh):N1(z=+ut[0][0],o=+ut[0][1],s=+ut[1][0],l=+ut[1][1]),rt()):z==null?null:[[z,o],[s,l]]},et.scale=function(ut){return arguments.length?(v=+ut,rt()):v},et.translate=function(ut){return arguments.length?(T=+ut[0],N=+ut[1],rt()):[T,N]},et.angle=function(ut){return arguments.length?(i=sn(O=ut%360*_n),n=hn(O),rt()):O*Ir},et.reflectX=function(ut){return arguments.length?(B=ut?-1:1,rt()):B<0},et.reflectY=function(ut){return arguments.length?(F=ut?-1:1,rt()):F<0},et.fitExtent=function(ut,Pt){return H1(et,ut,Pt)},et.fitSize=function(ut,Pt){return ng(et,ut,Pt)},et.fitWidth=function(ut,Pt){return rg(et,ut,Pt)},et.fitHeight=function(ut,Pt){return ig(et,ut,Pt)},et}function pg(n,i){var o=i*i,s=o*o;return[n*(.8707-.131979*o+s*(s*(.003971*o-.001529*s)-.013791)),i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))]}function c5(){return Mo(pg).scale(175.295)}function gg(n,i){return[hn(i)*sn(n),sn(i)]}function u5(){return Mo(gg).scale(249.5).clipAngle(90.000001)}function yg(n,i){var o=hn(i),s=1+hn(n)*o;return[o*sn(n)/s,sn(i)/s]}function l5(){return Mo(yg).scale(250).clipAngle(142)}function G1(n,i){return[Iu(ji((ui+i)/2)),-n]}function h5(){var n=hg(G1),i=n.center,o=n.rotate;return n.center=function(s){return arguments.length?i([-s[1],s[0]]):[(s=i())[1],-s[0]]},n.rotate=function(s){return arguments.length?o([s[0],s[1],s.length>2?s[2]+90:90]):[(s=o())[0],s[1],s[2]-90]},o([0,0,90]).scale(159.155)}function f5(n,i){return n.parent===i.parent?1:2}function d5(n,i){return n+i.x}function Qu(n,i){return Math.max(n,i.y)}function p5(){var n=f5,i=1,o=1,s=!1;function l(p){var b,v=0;p.eachAfter(function(O){var z=O.children;z?(O.x=function(U){return U.reduce(d5,0)/U.length}(z),O.y=function(U){return 1+U.reduce(Qu,0)}(z)):(O.x=b?v+=n(O,b):0,O.y=0,b=O)});var T=function(O){for(var z;z=O.children;)O=z[0];return O}(p),N=function(O){for(var z;z=O.children;)O=z[z.length-1];return O}(p),B=T.x-n(T,N)/2,F=N.x+n(N,T)/2;return p.eachAfter(s?function(O){O.x=(O.x-p.x)*i,O.y=(p.y-O.y)*o}:function(O){O.x=(O.x-B)/(F-B)*i,O.y=(1-(p.y?O.y/p.y:1))*o})}return l.separation=function(p){return arguments.length?(n=p,l):n},l.size=function(p){return arguments.length?(s=!1,i=+p[0],o=+p[1],l):s?null:[i,o]},l.nodeSize=function(p){return arguments.length?(s=!0,i=+p[0],o=+p[1],l):s?[i,o]:null},l}function g5(n){var i=0,o=n.children,s=o&&o.length;if(s)for(;--s>=0;)i+=o[s].value;else i=1;n.value=i}function mg(n,i){var o,s,l,p,b,v=new qc(n),T=+n.value&&(v.value=n.value),N=[v];for(i==null&&(i=sv);o=N.pop();)if(T&&(o.value=+o.data.value),(l=i(o.data))&&(b=l.length))for(o.children=new Array(b),p=b-1;p>=0;--p)N.push(s=o.children[p]=new qc(l[p])),s.parent=o,s.depth=o.depth+1;return v.eachBefore(bg)}function sv(n){return n.children}function vg(n){n.data=n.data.data}function bg(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function qc(n){this.data=n,this.depth=this.height=0,this.parent=null}dg.invert=function(n,i){for(var o,s=i,l=s*s,p=l*l*l,b=0;b<12&&(p=(l=(s-=o=(s*(lc+Oh*l+p*(Bh+Lh*l))-i)/(lc+3*Oh*l+p*(7*Bh+9*Lh*l)))*s)*l*l,!(Se(o)<sh));++b);return[$1*n*(lc+3*Oh*l+p*(7*Bh+9*Lh*l))/hn(s),ga(sn(s)/$1)]},Ih.invert=Ha(nc),pg.invert=function(n,i){var o,s=i,l=25;do{var p=s*s,b=p*p;s-=o=(s*(1.007226+p*(.015085+b*(.028874*p-.044475-.005916*b)))-i)/(1.007226+p*(.045255+b*(.259866*p-.311325-.005916*11*b)))}while(Se(o)>Rn&&--l>0);return[n/(.8707+(p=s*s)*(p*(p*p*p*(.003971-.001529*p)-.013791)-.131979)),s]},gg.invert=Ha(ga),yg.invert=Ha(function(n){return 2*nc(n)}),G1.invert=function(n,i){return[-i,2*nc(fm(n))-ui]},qc.prototype=mg.prototype={constructor:qc,count:function(){return this.eachAfter(g5)},each:function(n){var i,o,s,l,p=this,b=[p];do for(i=b.reverse(),b=[];p=i.pop();)if(n(p),o=p.children)for(s=0,l=o.length;s<l;++s)b.push(o[s]);while(b.length);return this},eachAfter:function(n){for(var i,o,s,l=this,p=[l],b=[];l=p.pop();)if(b.push(l),i=l.children)for(o=0,s=i.length;o<s;++o)p.push(i[o]);for(;l=b.pop();)n(l);return this},eachBefore:function(n){for(var i,o,s=this,l=[s];s=l.pop();)if(n(s),i=s.children)for(o=i.length-1;o>=0;--o)l.push(i[o]);return this},sum:function(n){return this.eachAfter(function(i){for(var o=+n(i.data)||0,s=i.children,l=s&&s.length;--l>=0;)o+=s[l].value;i.value=o})},sort:function(n){return this.eachBefore(function(i){i.children&&i.children.sort(n)})},path:function(n){for(var i=this,o=function(p,b){if(p===b)return p;var v=p.ancestors(),T=b.ancestors(),N=null;for(p=v.pop(),b=T.pop();p===b;)N=p,p=v.pop(),b=T.pop();return N}(i,n),s=[i];i!==o;)i=i.parent,s.push(i);for(var l=s.length;n!==o;)s.splice(l,0,n),n=n.parent;return s},ancestors:function(){for(var n=this,i=[n];n=n.parent;)i.push(n);return i},descendants:function(){var n=[];return this.each(function(i){n.push(i)}),n},leaves:function(){var n=[];return this.eachBefore(function(i){i.children||n.push(i)}),n},links:function(){var n=this,i=[];return n.each(function(o){o!==n&&i.push({source:o.parent,target:o})}),i},copy:function(){return mg(this).eachBefore(vg)}};var cv=Array.prototype.slice;function uv(n){for(var i,o,s=0,l=(n=function(b){for(var v,T,N=b.length;N;)T=Math.random()*N--|0,v=b[N],b[N]=b[T],b[T]=v;return b}(cv.call(n))).length,p=[];s<l;)i=n[s],o&&lv(o,i)?++s:(o=m5(p=y5(p,i)),s=0);return o}function y5(n,i){var o,s;if(_g(i,n))return[i];for(o=0;o<n.length;++o)if(X1(i,n[o])&&_g(Rh(n[o],i),n))return[n[o],i];for(o=0;o<n.length-1;++o)for(s=o+1;s<n.length;++s)if(X1(Rh(n[o],n[s]),i)&&X1(Rh(n[o],i),n[s])&&X1(Rh(n[s],i),n[o])&&_g(hv(n[o],n[s],i),n))return[n[o],n[s],i];throw new Error}function X1(n,i){var o=n.r-i.r,s=i.x-n.x,l=i.y-n.y;return o<0||o*o<s*s+l*l}function lv(n,i){var o=n.r-i.r+1e-6,s=i.x-n.x,l=i.y-n.y;return o>0&&o*o>s*s+l*l}function _g(n,i){for(var o=0;o<i.length;++o)if(!lv(n,i[o]))return!1;return!0}function m5(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return Rh(n[0],n[1]);case 3:return hv(n[0],n[1],n[2])}}function Rh(n,i){var o=n.x,s=n.y,l=n.r,p=i.x,b=i.y,v=i.r,T=p-o,N=b-s,B=v-l,F=Math.sqrt(T*T+N*N);return{x:(o+p+T/F*B)/2,y:(s+b+N/F*B)/2,r:(F+l+v)/2}}function hv(n,i,o){var s=n.x,l=n.y,p=n.r,b=i.x,v=i.y,T=i.r,N=o.x,B=o.y,F=o.r,O=s-b,z=s-N,U=l-v,Q=l-B,Z=T-p,G=F-p,rt=s*s+l*l-p*p,et=rt-b*b-v*v+T*T,ut=rt-N*N-B*B+F*F,Pt=z*U-O*Q,Vt=(U*ut-Q*et)/(2*Pt)-s,qt=(Q*Z-U*G)/Pt,be=(z*et-O*ut)/(2*Pt)-l,Yt=(O*G-z*Z)/Pt,ce=qt*qt+Yt*Yt-1,ct=2*(p+Vt*qt+be*Yt),xt=Vt*Vt+be*be-p*p,ie=-(ce?(ct+Math.sqrt(ct*ct-4*ce*xt))/(2*ce):xt/ct);return{x:s+Vt+qt*ie,y:l+be+Yt*ie,r:ie}}function fv(n,i,o){var s,l,p,b,v=n.x-i.x,T=n.y-i.y,N=v*v+T*T;N?(l=i.r+o.r,l*=l,b=n.r+o.r,l>(b*=b)?(s=(N+b-l)/(2*N),p=Math.sqrt(Math.max(0,b/N-s*s)),o.x=n.x-s*v-p*T,o.y=n.y-s*T+p*v):(s=(N+l-b)/(2*N),p=Math.sqrt(Math.max(0,l/N-s*s)),o.x=i.x+s*v-p*T,o.y=i.y+s*T+p*v)):(o.x=i.x+o.r,o.y=i.y)}function dv(n,i){var o=n.r+i.r-1e-6,s=i.x-n.x,l=i.y-n.y;return o>0&&o*o>s*s+l*l}function pv(n){var i=n._,o=n.next._,s=i.r+o.r,l=(i.x*o.r+o.x*i.r)/s,p=(i.y*o.r+o.y*i.r)/s;return l*l+p*p}function Z1(n){this._=n,this.next=null,this.previous=null}function gv(n){if(!(l=n.length))return 0;var i,o,s,l,p,b,v,T,N,B,F;if((i=n[0]).x=0,i.y=0,!(l>1))return i.r;if(o=n[1],i.x=-o.r,o.x=i.r,o.y=0,!(l>2))return i.r+o.r;fv(o,i,s=n[2]),i=new Z1(i),o=new Z1(o),s=new Z1(s),i.next=s.previous=o,o.next=i.previous=s,s.next=o.previous=i;t:for(v=3;v<l;++v){fv(i._,o._,s=n[v]),s=new Z1(s),T=o.next,N=i.previous,B=o._.r,F=i._.r;do if(B<=F){if(dv(T._,s._)){o=T,i.next=o,o.previous=i,--v;continue t}B+=T._.r,T=T.next}else{if(dv(N._,s._)){(i=N).next=o,o.previous=i,--v;continue t}F+=N._.r,N=N.previous}while(T!==N.next);for(s.previous=i,s.next=o,i.next=o.previous=o=s,p=pv(i);(s=s.next)!==o;)(b=pv(s))<p&&(i=s,p=b);o=i.next}for(i=[o._],s=o;(s=s.next)!==o;)i.push(s._);for(s=uv(i),v=0;v<l;++v)(i=n[v]).x-=s.x,i.y-=s.y;return s.r}function yv(n){return gv(n),n}function v5(n){return n==null?null:Q1(n)}function Q1(n){if(typeof n!="function")throw new Error;return n}function Hc(){return 0}function Ku(n){return function(){return n}}function b5(n){return Math.sqrt(n.value)}function _5(){var n=null,i=1,o=1,s=Hc;function l(p){return p.x=i/2,p.y=o/2,n?p.eachBefore(mv(n)).eachAfter(K1(s,.5)).eachBefore(vv(1)):p.eachBefore(mv(b5)).eachAfter(K1(Hc,1)).eachAfter(K1(s,p.r/Math.min(i,o))).eachBefore(vv(Math.min(i,o)/(2*p.r))),p}return l.radius=function(p){return arguments.length?(n=v5(p),l):n},l.size=function(p){return arguments.length?(i=+p[0],o=+p[1],l):[i,o]},l.padding=function(p){return arguments.length?(s=typeof p=="function"?p:Ku(+p),l):s},l}function mv(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function K1(n,i){return function(o){if(s=o.children){var s,l,p,b=s.length,v=n(o)*i||0;if(v)for(l=0;l<b;++l)s[l].r+=v;if(p=gv(s),v)for(l=0;l<b;++l)s[l].r-=v;o.r=p+v}}}function vv(n){return function(i){var o=i.parent;i.r*=n,o&&(i.x=o.x+n*i.x,i.y=o.y+n*i.y)}}function bv(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Fh(n,i,o,s,l){for(var p,b=n.children,v=-1,T=b.length,N=n.value&&(s-i)/n.value;++v<T;)(p=b[v]).y0=o,p.y1=l,p.x0=i,p.x1=i+=p.value*N}function No(){var n=1,i=1,o=0,s=!1;function l(p){var b=p.height+1;return p.x0=p.y0=o,p.x1=n,p.y1=i/b,p.eachBefore(function(v,T){return function(N){N.children&&Fh(N,N.x0,v*(N.depth+1)/T,N.x1,v*(N.depth+2)/T);var B=N.x0,F=N.y0,O=N.x1-o,z=N.y1-o;O<B&&(B=O=(B+O)/2),z<F&&(F=z=(F+z)/2),N.x0=B,N.y0=F,N.x1=O,N.y1=z}}(i,b)),s&&p.eachBefore(bv),p}return l.round=function(p){return arguments.length?(s=!!p,l):s},l.size=function(p){return arguments.length?(n=+p[0],i=+p[1],l):[n,i]},l.padding=function(p){return arguments.length?(o=+p,l):o},l}var _v={depth:-1},Ph={};function x5(n){return n.id}function xv(n){return n.parentId}function J1(){var n=x5,i=xv;function o(s){var l,p,b,v,T,N,B,F=s.length,O=new Array(F),z={};for(p=0;p<F;++p)l=s[p],T=O[p]=new qc(l),(N=n(l,p,s))!=null&&(N+="")&&(z[B="$"+(T.id=N)]=B in z?Ph:T);for(p=0;p<F;++p)if(T=O[p],(N=i(s[p],p,s))!=null&&(N+="")){if(!(v=z["$"+N]))throw new Error("missing: "+N);if(v===Ph)throw new Error("ambiguous: "+N);v.children?v.children.push(T):v.children=[T],T.parent=v}else{if(b)throw new Error("multiple roots");b=T}if(!b)throw new Error("no root");if(b.parent=_v,b.eachBefore(function(U){U.depth=U.parent.depth+1,--F}).eachBefore(bg),b.parent=null,F>0)throw new Error("cycle");return b}return o.id=function(s){return arguments.length?(n=Q1(s),o):n},o.parentId=function(s){return arguments.length?(i=Q1(s),o):i},o}function w5(n,i){return n.parent===i.parent?1:2}function xg(n){var i=n.children;return i?i[0]:n.t}function td(n){var i=n.children;return i?i[i.length-1]:n.t}function k5(n,i,o){var s=o/(i.i-n.i);i.c-=s,i.s+=o,n.c+=s,i.z+=o,i.m+=o}function ed(n,i,o){return n.a.parent===i.parent?n.a:o}function hc(n,i){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function Ju(){var n=w5,i=1,o=1,s=null;function l(T){var N=function(G){for(var rt,et,ut,Pt,Vt,qt=new hc(G,0),be=[qt];rt=be.pop();)if(ut=rt._.children)for(rt.children=new Array(Vt=ut.length),Pt=Vt-1;Pt>=0;--Pt)be.push(et=rt.children[Pt]=new hc(ut[Pt],Pt)),et.parent=rt;return(qt.parent=new hc(null,0)).children=[qt],qt}(T);if(N.eachAfter(p),N.parent.m=-N.z,N.eachBefore(b),s)T.eachBefore(v);else{var B=T,F=T,O=T;T.eachBefore(function(G){G.x<B.x&&(B=G),G.x>F.x&&(F=G),G.depth>O.depth&&(O=G)});var z=B===F?1:n(B,F)/2,U=z-B.x,Q=i/(F.x+z+U),Z=o/(O.depth||1);T.eachBefore(function(G){G.x=(G.x+U)*Q,G.y=G.depth*Z})}return T}function p(T){var N=T.children,B=T.parent.children,F=T.i?B[T.i-1]:null;if(N){(function(z){for(var U,Q=0,Z=0,G=z.children,rt=G.length;--rt>=0;)(U=G[rt]).z+=Q,U.m+=Q,Q+=U.s+(Z+=U.c)})(T);var O=(N[0].z+N[N.length-1].z)/2;F?(T.z=F.z+n(T._,F._),T.m=T.z-O):T.z=O}else F&&(T.z=F.z+n(T._,F._));T.parent.A=function(z,U,Q){if(U){for(var Z,G=z,rt=z,et=U,ut=G.parent.children[0],Pt=G.m,Vt=rt.m,qt=et.m,be=ut.m;et=td(et),G=xg(G),et&&G;)ut=xg(ut),(rt=td(rt)).a=z,(Z=et.z+qt-G.z-Pt+n(et._,G._))>0&&(k5(ed(et,z,Q),z,Z),Pt+=Z,Vt+=Z),qt+=et.m,Pt+=G.m,be+=ut.m,Vt+=rt.m;et&&!td(rt)&&(rt.t=et,rt.m+=qt-Vt),G&&!xg(ut)&&(ut.t=G,ut.m+=Pt-be,Q=z)}return Q}(T,F,T.parent.A||B[0])}function b(T){T._.x=T.z+T.parent.m,T.m+=T.parent.m}function v(T){T.x*=i,T.y=T.depth*o}return l.separation=function(T){return arguments.length?(n=T,l):n},l.size=function(T){return arguments.length?(s=!1,i=+T[0],o=+T[1],l):s?null:[i,o]},l.nodeSize=function(T){return arguments.length?(s=!0,i=+T[0],o=+T[1],l):s?[i,o]:null},l}function fc(n,i,o,s,l){for(var p,b=n.children,v=-1,T=b.length,N=n.value&&(l-o)/n.value;++v<T;)(p=b[v]).x0=i,p.x1=s,p.y0=o,p.y1=o+=p.value*N}hc.prototype=Object.create(qc.prototype);var tl=(1+Math.sqrt(5))/2;function jh(n,i,o,s,l,p){for(var b,v,T,N,B,F,O,z,U,Q,Z,G=[],rt=i.children,et=0,ut=0,Pt=rt.length,Vt=i.value;et<Pt;){T=l-o,N=p-s;do B=rt[ut++].value;while(!B&&ut<Pt);for(F=O=B,Z=B*B*(Q=Math.max(N/T,T/N)/(Vt*n)),U=Math.max(O/Z,Z/F);ut<Pt;++ut){if(B+=v=rt[ut].value,v<F&&(F=v),v>O&&(O=v),Z=B*B*Q,(z=Math.max(O/Z,Z/F))>U){B-=v;break}U=z}G.push(b={value:B,dice:T<N,children:rt.slice(et,ut)}),b.dice?Fh(b,o,s,l,Vt?s+=N*B/Vt:p):fc(b,o,s,Vt?o+=T*B/Vt:l,p),Vt-=B,et=ut}return G}const dc=function n(i){function o(s,l,p,b,v){jh(i,s,l,p,b,v)}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(tl);function nd(){var n=dc,i=!1,o=1,s=1,l=[0],p=Hc,b=Hc,v=Hc,T=Hc,N=Hc;function B(O){return O.x0=O.y0=0,O.x1=o,O.y1=s,O.eachBefore(F),l=[0],i&&O.eachBefore(bv),O}function F(O){var z=l[O.depth],U=O.x0+z,Q=O.y0+z,Z=O.x1-z,G=O.y1-z;Z<U&&(U=Z=(U+Z)/2),G<Q&&(Q=G=(Q+G)/2),O.x0=U,O.y0=Q,O.x1=Z,O.y1=G,O.children&&(z=l[O.depth+1]=p(O)/2,U+=N(O)-z,Q+=b(O)-z,(Z-=v(O)-z)<U&&(U=Z=(U+Z)/2),(G-=T(O)-z)<Q&&(Q=G=(Q+G)/2),n(O,U,Q,Z,G))}return B.round=function(O){return arguments.length?(i=!!O,B):i},B.size=function(O){return arguments.length?(o=+O[0],s=+O[1],B):[o,s]},B.tile=function(O){return arguments.length?(n=Q1(O),B):n},B.padding=function(O){return arguments.length?B.paddingInner(O).paddingOuter(O):B.paddingInner()},B.paddingInner=function(O){return arguments.length?(p=typeof O=="function"?O:Ku(+O),B):p},B.paddingOuter=function(O){return arguments.length?B.paddingTop(O).paddingRight(O).paddingBottom(O).paddingLeft(O):B.paddingTop()},B.paddingTop=function(O){return arguments.length?(b=typeof O=="function"?O:Ku(+O),B):b},B.paddingRight=function(O){return arguments.length?(v=typeof O=="function"?O:Ku(+O),B):v},B.paddingBottom=function(O){return arguments.length?(T=typeof O=="function"?O:Ku(+O),B):T},B.paddingLeft=function(O){return arguments.length?(N=typeof O=="function"?O:Ku(+O),B):N},B}function Yh(n,i,o,s,l){var p,b,v=n.children,T=v.length,N=new Array(T+1);for(N[0]=b=p=0;p<T;++p)N[p+1]=b+=v[p].value;(function B(F,O,z,U,Q,Z,G){if(F>=O-1){var rt=v[F];return rt.x0=U,rt.y0=Q,rt.x1=Z,void(rt.y1=G)}for(var et=N[F],ut=z/2+et,Pt=F+1,Vt=O-1;Pt<Vt;){var qt=Pt+Vt>>>1;N[qt]<ut?Pt=qt+1:Vt=qt}ut-N[Pt-1]<N[Pt]-ut&&F+1<Pt&&--Pt;var be=N[Pt]-et,Yt=z-be;if(Z-U>G-Q){var ce=(U*Yt+Z*be)/z;B(F,Pt,be,U,Q,ce,G),B(Pt,O,Yt,ce,Q,Z,G)}else{var ct=(Q*Yt+G*be)/z;B(F,Pt,be,U,Q,Z,ct),B(Pt,O,Yt,U,ct,Z,G)}})(0,T,n.value,i,o,s,l)}function wv(n,i,o,s,l){(1&n.depth?fc:Fh)(n,i,o,s,l)}const wg=function n(i){function o(s,l,p,b,v){if((T=s._squarify)&&T.ratio===i)for(var T,N,B,F,O,z=-1,U=T.length,Q=s.value;++z<U;){for(B=(N=T[z]).children,F=N.value=0,O=B.length;F<O;++F)N.value+=B[F].value;N.dice?Fh(N,l,p,b,p+=(v-p)*N.value/Q):fc(N,l,p,l+=(b-l)*N.value/Q,v),Q-=N.value}else s._squarify=T=jh(i,s,l,p,b,v),T.ratio=i}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(tl);function T5(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}function rd(n,i){var o=Ea(+n,+i);return function(s){var l=o(s);return l-360*Math.floor(l/360)}}function kg(n,i){return n=+n,i=+i,function(o){return Math.round(n*(1-o)+i*o)}}var el=Math.SQRT2;function kv(n){return((n=Math.exp(n))+1/n)/2}function id(n,i){var o,s,l=n[0],p=n[1],b=n[2],v=i[0],T=i[1],N=i[2],B=v-l,F=T-p,O=B*B+F*F;if(O<1e-12)s=Math.log(N/b)/el,o=function(rt){return[l+rt*B,p+rt*F,b*Math.exp(el*rt*s)]};else{var z=Math.sqrt(O),U=(N*N-b*b+4*O)/(2*b*2*z),Q=(N*N-b*b-4*O)/(2*N*2*z),Z=Math.log(Math.sqrt(U*U+1)-U),G=Math.log(Math.sqrt(Q*Q+1)-Q);s=(G-Z)/el,o=function(rt){var et,ut=rt*s,Pt=kv(Z),Vt=b/(2*z)*(Pt*(et=el*ut+Z,((et=Math.exp(2*et))-1)/(et+1))-function(qt){return((qt=Math.exp(qt))-1/qt)/2}(Z));return[l+Vt*B,p+Vt*F,b*Pt/kv(el*ut+Z)]}}return o.duration=1e3*s,o}function Tg(n){return function(i,o){var s=n((i=vu(i)).h,(o=vu(o)).h),l=gi(i.s,o.s),p=gi(i.l,o.l),b=gi(i.opacity,o.opacity);return function(v){return i.h=s(v),i.s=l(v),i.l=p(v),i.opacity=b(v),i+""}}}const E5=Tg(Ea);var C5=Tg(gi);function ad(n,i){var o=gi((n=Zl(n)).l,(i=Zl(i)).l),s=gi(n.a,i.a),l=gi(n.b,i.b),p=gi(n.opacity,i.opacity);return function(b){return n.l=o(b),n.a=s(b),n.b=l(b),n.opacity=p(b),n+""}}function od(n){return function(i,o){var s=n((i=Ks(i)).h,(o=Ks(o)).h),l=gi(i.c,o.c),p=gi(i.l,o.l),b=gi(i.opacity,o.opacity);return function(v){return i.h=s(v),i.c=l(v),i.l=p(v),i.opacity=b(v),i+""}}}const ns=od(Ea);var Do=od(gi);function Ns(n){return function i(o){function s(l,p){var b=n((l=fa(l)).h,(p=fa(p)).h),v=gi(l.s,p.s),T=gi(l.l,p.l),N=gi(l.opacity,p.opacity);return function(B){return l.h=b(B),l.s=v(B),l.l=T(Math.pow(B,o)),l.opacity=N(B),l+""}}return o=+o,s.gamma=i,s}(1)}const sd=Ns(Ea);var zh=Ns(gi);function Eg(n,i){for(var o=0,s=i.length-1,l=i[0],p=new Array(s<0?0:s);o<s;)p[o]=n(l,l=i[++o]);return function(b){var v=Math.max(0,Math.min(s-1,Math.floor(b*=s)));return p[v](b-v)}}function Tv(n,i){for(var o=new Array(i),s=0;s<i;++s)o[s]=n(s/(i-1));return o}function Ev(n){for(var i,o=-1,s=n.length,l=n[s-1],p=0;++o<s;)i=l,l=n[o],p+=i[1]*l[0]-i[0]*l[1];return p/2}function S5(n){for(var i,o,s=-1,l=n.length,p=0,b=0,v=n[l-1],T=0;++s<l;)i=v,v=n[s],T+=o=i[0]*v[1]-v[0]*i[1],p+=(i[0]+v[0])*o,b+=(i[1]+v[1])*o;return[p/(T*=3),b/T]}function A5(n,i,o){return(i[0]-n[0])*(o[1]-n[1])-(i[1]-n[1])*(o[0]-n[0])}function M5(n,i){return n[0]-i[0]||n[1]-i[1]}function Cv(n){for(var i=n.length,o=[0,1],s=2,l=2;l<i;++l){for(;s>1&&A5(n[o[s-2]],n[o[s-1]],n[l])<=0;)--s;o[s++]=l}return o.slice(0,s)}function Cg(n){if((o=n.length)<3)return null;var i,o,s=new Array(o),l=new Array(o);for(i=0;i<o;++i)s[i]=[+n[i][0],+n[i][1],i];for(s.sort(M5),i=0;i<o;++i)l[i]=[s[i][0],-s[i][1]];var p=Cv(s),b=Cv(l),v=b[0]===p[0],T=b[b.length-1]===p[p.length-1],N=[];for(i=p.length-1;i>=0;--i)N.push(n[s[p[i]][2]]);for(i=+v;i<b.length-T;++i)N.push(n[s[b[i]][2]]);return N}function Sg(n,i){for(var o,s,l=n.length,p=n[l-1],b=i[0],v=i[1],T=p[0],N=p[1],B=!1,F=0;F<l;++F)o=(p=n[F])[0],(s=p[1])>v!=N>v&&b<(T-o)*(v-s)/(N-s)+o&&(B=!B),T=o,N=s;return B}function Sv(n){for(var i,o,s=-1,l=n.length,p=n[l-1],b=p[0],v=p[1],T=0;++s<l;)i=b,o=v,i-=b=(p=n[s])[0],o-=v=p[1],T+=Math.sqrt(i*i+o*o);return T}function rs(){return Math.random()}const cd=function n(i){function o(s,l){return s=s==null?0:+s,l=l==null?1:+l,arguments.length===1?(l=s,s=0):l-=s,function(){return i()*l+s}}return o.source=n,o}(rs),Uh=function n(i){function o(s,l){var p,b;return s=s==null?0:+s,l=l==null?1:+l,function(){var v;if(p!=null)v=p,p=null;else do p=2*i()-1,v=2*i()-1,b=p*p+v*v;while(!b||b>1);return s+l*v*Math.sqrt(-2*Math.log(b)/b)}}return o.source=n,o}(rs),nl=function n(i){function o(){var s=Uh.source(i).apply(this,arguments);return function(){return Math.exp(s())}}return o.source=n,o}(rs),rl=function n(i){function o(s){return function(){for(var l=0,p=0;p<s;++p)l+=i();return l}}return o.source=n,o}(rs),is=function n(i){function o(s){var l=rl.source(i)(s);return function(){return l()/s}}return o.source=n,o}(rs),N5=function n(i){function o(s){return function(){return-Math.log(1-i())/s}}return o.source=n,o}(rs);function Oo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function Ds(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var Av=Array.prototype,ud=Av.map,Wc=Av.slice,Ag={name:"implicit"};function ld(){var n=xs(),i=[],o=[],s=Ag;function l(p){var b=p+"",v=n.get(b);if(!v){if(s!==Ag)return s;n.set(b,v=i.push(p))}return o[(v-1)%o.length]}return l.domain=function(p){if(!arguments.length)return i.slice();i=[],n=xs();for(var b,v,T=-1,N=p.length;++T<N;)n.has(v=(b=p[T])+"")||n.set(v,i.push(b));return l},l.range=function(p){return arguments.length?(o=Wc.call(p),l):o.slice()},l.unknown=function(p){return arguments.length?(s=p,l):s},l.copy=function(){return ld(i,o).unknown(s)},Oo.apply(l,arguments),l}function hd(){var n,i,o=ld().unknown(void 0),s=o.domain,l=o.range,p=[0,1],b=!1,v=0,T=0,N=.5;function B(){var F=s().length,O=p[1]<p[0],z=p[O-0],U=p[1-O];n=(U-z)/Math.max(1,F-v+2*T),b&&(n=Math.floor(n)),z+=(U-z-n*(F-v))*N,i=n*(1-v),b&&(z=Math.round(z),i=Math.round(i));var Q=st(F).map(function(Z){return z+n*Z});return l(O?Q.reverse():Q)}return delete o.unknown,o.domain=function(F){return arguments.length?(s(F),B()):s()},o.range=function(F){return arguments.length?(p=[+F[0],+F[1]],B()):p.slice()},o.rangeRound=function(F){return p=[+F[0],+F[1]],b=!0,B()},o.bandwidth=function(){return i},o.step=function(){return n},o.round=function(F){return arguments.length?(b=!!F,B()):b},o.padding=function(F){return arguments.length?(v=Math.min(1,T=+F),B()):v},o.paddingInner=function(F){return arguments.length?(v=Math.min(1,F),B()):v},o.paddingOuter=function(F){return arguments.length?(T=+F,B()):T},o.align=function(F){return arguments.length?(N=Math.max(0,Math.min(1,F)),B()):N},o.copy=function(){return hd(s(),p).round(b).paddingInner(v).paddingOuter(T).align(N)},Oo.apply(B(),arguments)}function Mg(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return Mg(i())},n}function qh(){return Mg(hd.apply(null,arguments).paddingInner(1))}function fd(n){return+n}var Hh=[0,1];function Zi(n){return n}function Wh(n,i){return(i-=n=+n)?function(s){return(s-n)/i}:(o=isNaN(i)?NaN:.5,function(){return o});var o}function Da(n){var i,o=n[0],s=n[n.length-1];return o>s&&(i=o,o=s,s=i),function(l){return Math.max(o,Math.min(s,l))}}function Mv(n,i,o){var s=n[0],l=n[1],p=i[0],b=i[1];return l<s?(s=Wh(l,s),p=o(b,p)):(s=Wh(s,l),p=o(p,b)),function(v){return p(s(v))}}function Nv(n,i,o){var s=Math.min(n.length,i.length)-1,l=new Array(s),p=new Array(s),b=-1;for(n[s]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++b<s;)l[b]=Wh(n[b],n[b+1]),p[b]=o(i[b],i[b+1]);return function(v){var T=A(n,v,1,s)-1;return p[T](l[T](v))}}function $c(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function $h(){var n,i,o,s,l,p,b=Hh,v=Hh,T=Mc,N=Zi;function B(){return s=Math.min(b.length,v.length)>2?Nv:Mv,l=p=null,F}function F(O){return isNaN(O=+O)?o:(l||(l=s(b.map(n),v,T)))(n(N(O)))}return F.invert=function(O){return N(i((p||(p=s(v,b.map(n),ua)))(O)))},F.domain=function(O){return arguments.length?(b=ud.call(O,fd),N===Zi||(N=Da(b)),B()):b.slice()},F.range=function(O){return arguments.length?(v=Wc.call(O),B()):v.slice()},F.rangeRound=function(O){return v=Wc.call(O),T=kg,B()},F.clamp=function(O){return arguments.length?(N=O?Da(b):Zi,F):N!==Zi},F.interpolate=function(O){return arguments.length?(T=O,B()):T},F.unknown=function(O){return arguments.length?(o=O,F):o},function(O,z){return n=O,i=z,B()}}function Ng(n,i){return $h()(n,i)}function Bo(n,i,o,s){var l,p=vt(n,i,o);switch((s=oh(s==null?",f":s)).type){case"s":var b=Math.max(Math.abs(n),Math.abs(i));return s.precision!=null||isNaN(l=um(p,b))||(s.precision=l),Sp(s,b);case"":case"e":case"g":case"p":case"r":s.precision!=null||isNaN(l=lm(p,Math.max(Math.abs(n),Math.abs(i))))||(s.precision=l-(s.type==="e"));break;case"f":case"%":s.precision!=null||isNaN(l=Ap(p))||(s.precision=l-2*(s.type==="%"))}return f1(s)}function Os(n){var i=n.domain;return n.ticks=function(o){var s=i();return It(s[0],s[s.length-1],o==null?10:o)},n.tickFormat=function(o,s){var l=i();return Bo(l[0],l[l.length-1],o==null?10:o,s)},n.nice=function(o){o==null&&(o=10);var s,l=i(),p=0,b=l.length-1,v=l[p],T=l[b];return T<v&&(s=v,v=T,T=s,s=p,p=b,b=s),(s=ft(v,T,o))>0?s=ft(v=Math.floor(v/s)*s,T=Math.ceil(T/s)*s,o):s<0&&(s=ft(v=Math.ceil(v*s)/s,T=Math.floor(T*s)/s,o)),s>0?(l[p]=Math.floor(v/s)*s,l[b]=Math.ceil(T/s)*s,i(l)):s<0&&(l[p]=Math.ceil(v*s)/s,l[b]=Math.floor(T*s)/s,i(l)),n},n}function Dg(){var n=Ng(Zi,Zi);return n.copy=function(){return $c(n,Dg())},Oo.apply(n,arguments),Os(n)}function Og(n){var i;function o(s){return isNaN(s=+s)?i:s}return o.invert=o,o.domain=o.range=function(s){return arguments.length?(n=ud.call(s,fd),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Og(n).unknown(i)},n=arguments.length?ud.call(n,fd):[0,1],Os(o)}function Bg(n,i){var o,s=0,l=(n=n.slice()).length-1,p=n[s],b=n[l];return b<p&&(o=s,s=l,l=o,o=p,p=b,b=o),n[s]=i.floor(p),n[l]=i.ceil(b),n}function dd(n){return Math.log(n)}function pd(n){return Math.exp(n)}function D5(n){return-Math.log(-n)}function Dv(n){return-Math.exp(-n)}function O5(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Ov(n){return function(i){return-n(-i)}}function Lg(n){var i,o,s=n(dd,pd),l=s.domain,p=10;function b(){return i=function(v){return v===Math.E?Math.log:v===10&&Math.log10||v===2&&Math.log2||(v=Math.log(v),function(T){return Math.log(T)/v})}(p),o=function(v){return v===10?O5:v===Math.E?Math.exp:function(T){return Math.pow(v,T)}}(p),l()[0]<0?(i=Ov(i),o=Ov(o),n(D5,Dv)):n(dd,pd),s}return s.base=function(v){return arguments.length?(p=+v,b()):p},s.domain=function(v){return arguments.length?(l(v),b()):l()},s.ticks=function(v){var T,N=l(),B=N[0],F=N[N.length-1];(T=F<B)&&(Q=B,B=F,F=Q);var O,z,U,Q=i(B),Z=i(F),G=v==null?10:+v,rt=[];if(!(p%1)&&Z-Q<G){if(Q=Math.round(Q)-1,Z=Math.round(Z)+1,B>0){for(;Q<Z;++Q)for(z=1,O=o(Q);z<p;++z)if(!((U=O*z)<B)){if(U>F)break;rt.push(U)}}else for(;Q<Z;++Q)for(z=p-1,O=o(Q);z>=1;--z)if(!((U=O*z)<B)){if(U>F)break;rt.push(U)}}else rt=It(Q,Z,Math.min(Z-Q,G)).map(o);return T?rt.reverse():rt},s.tickFormat=function(v,T){if(T==null&&(T=p===10?".0e":","),typeof T!="function"&&(T=f1(T)),v===1/0)return T;v==null&&(v=10);var N=Math.max(1,p*v/s.ticks().length);return function(B){var F=B/o(Math.round(i(B)));return F*p<p-.5&&(F*=p),F<=N?T(B):""}},s.nice=function(){return l(Bg(l(),{floor:function(v){return o(Math.floor(i(v)))},ceil:function(v){return o(Math.ceil(i(v)))}}))},s}function Bv(){var n=Lg($h()).domain([1,10]);return n.copy=function(){return $c(n,Bv()).base(n.base())},Oo.apply(n,arguments),n}function Lv(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function Iv(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function Ig(n){var i=1,o=n(Lv(i),Iv(i));return o.constant=function(s){return arguments.length?n(Lv(i=+s),Iv(i)):i},Os(o)}function Rv(){var n=Ig($h());return n.copy=function(){return $c(n,Rv()).constant(n.constant())},Oo.apply(n,arguments)}function Fv(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function B5(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function L5(n){return n<0?-n*n:n*n}function Rg(n){var i=n(Zi,Zi),o=1;function s(){return o===1?n(Zi,Zi):o===.5?n(B5,L5):n(Fv(o),Fv(1/o))}return i.exponent=function(l){return arguments.length?(o=+l,s()):o},Os(i)}function Fg(){var n=Rg($h());return n.copy=function(){return $c(n,Fg()).exponent(n.exponent())},Oo.apply(n,arguments),n}function I5(){return Fg.apply(null,arguments).exponent(.5)}function Pv(){var n,i=[],o=[],s=[];function l(){var b=0,v=Math.max(1,o.length);for(s=new Array(v-1);++b<v;)s[b-1]=me(i,b/v);return p}function p(b){return isNaN(b=+b)?n:o[A(s,b)]}return p.invertExtent=function(b){var v=o.indexOf(b);return v<0?[NaN,NaN]:[v>0?s[v-1]:i[0],v<s.length?s[v]:i[i.length-1]]},p.domain=function(b){if(!arguments.length)return i.slice();i=[];for(var v,T=0,N=b.length;T<N;++T)(v=b[T])==null||isNaN(v=+v)||i.push(v);return i.sort(d),l()},p.range=function(b){return arguments.length?(o=Wc.call(b),l()):o.slice()},p.unknown=function(b){return arguments.length?(n=b,p):n},p.quantiles=function(){return s.slice()},p.copy=function(){return Pv().domain(i).range(o).unknown(n)},Oo.apply(p,arguments)}function jv(){var n,i=0,o=1,s=1,l=[.5],p=[0,1];function b(T){return T<=T?p[A(l,T,0,s)]:n}function v(){var T=-1;for(l=new Array(s);++T<s;)l[T]=((T+1)*o-(T-s)*i)/(s+1);return b}return b.domain=function(T){return arguments.length?(i=+T[0],o=+T[1],v()):[i,o]},b.range=function(T){return arguments.length?(s=(p=Wc.call(T)).length-1,v()):p.slice()},b.invertExtent=function(T){var N=p.indexOf(T);return N<0?[NaN,NaN]:N<1?[i,l[0]]:N>=s?[l[s-1],o]:[l[N-1],l[N]]},b.unknown=function(T){return arguments.length&&(n=T),b},b.thresholds=function(){return l.slice()},b.copy=function(){return jv().domain([i,o]).range(p).unknown(n)},Oo.apply(Os(b),arguments)}function Yv(){var n,i=[.5],o=[0,1],s=1;function l(p){return p<=p?o[A(i,p,0,s)]:n}return l.domain=function(p){return arguments.length?(i=Wc.call(p),s=Math.min(i.length,o.length-1),l):i.slice()},l.range=function(p){return arguments.length?(o=Wc.call(p),s=Math.min(i.length,o.length-1),l):o.slice()},l.invertExtent=function(p){var b=o.indexOf(p);return[i[b-1],i[b]]},l.unknown=function(p){return arguments.length?(n=p,l):n},l.copy=function(){return Yv().domain(i).range(o).unknown(n)},Oo.apply(l,arguments)}var gd=new Date,Pg=new Date;function Oi(n,i,o,s){function l(p){return n(p=arguments.length===0?new Date:new Date(+p)),p}return l.floor=function(p){return n(p=new Date(+p)),p},l.ceil=function(p){return n(p=new Date(p-1)),i(p,1),n(p),p},l.round=function(p){var b=l(p),v=l.ceil(p);return p-b<v-p?b:v},l.offset=function(p,b){return i(p=new Date(+p),b==null?1:Math.floor(b)),p},l.range=function(p,b,v){var T,N=[];if(p=l.ceil(p),v=v==null?1:Math.floor(v),!(p<b&&v>0))return N;do N.push(T=new Date(+p)),i(p,v),n(p);while(T<p&&p<b);return N},l.filter=function(p){return Oi(function(b){if(b>=b)for(;n(b),!p(b);)b.setTime(b-1)},function(b,v){if(b>=b)if(v<0)for(;++v<=0;)for(;i(b,-1),!p(b););else for(;--v>=0;)for(;i(b,1),!p(b););})},o&&(l.count=function(p,b){return gd.setTime(+p),Pg.setTime(+b),n(gd),n(Pg),Math.floor(o(gd,Pg))},l.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?l.filter(s?function(b){return s(b)%p==0}:function(b){return l.count(0,b)%p==0}):l:null}),l}var jg=Oi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,i){n.setFullYear(n.getFullYear()+i)},function(n,i){return i.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});jg.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Oi(function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,o){i.setFullYear(i.getFullYear()+o*n)}):null};const Vc=jg;var R5=jg.range,as=Oi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,i){n.setMonth(n.getMonth()+i)},function(n,i){return i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const Yg=as;var Bs=as.range,yd=1e3,Gc=6e4,Vh=36e5,zg=864e5,Ug=6048e5;function Xc(n){return Oi(function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)},function(i,o){i.setDate(i.getDate()+7*o)},function(i,o){return(o-i-(o.getTimezoneOffset()-i.getTimezoneOffset())*Gc)/Ug})}var Zc=Xc(0),il=Xc(1),md=Xc(2),zv=Xc(3),Ls=Xc(4),al=Xc(5),Is=Xc(6),qg=Zc.range,vd=il.range,Hg=md.range,F5=zv.range,bd=Ls.range,ol=al.range,Uv=Is.range,Wa=Oi(function(n){n.setHours(0,0,0,0)},function(n,i){n.setDate(n.getDate()+i)},function(n,i){return(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*Gc)/zg},function(n){return n.getDate()-1});const ii=Wa;var sl=Wa.range,_d=Oi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*yd-n.getMinutes()*Gc)},function(n,i){n.setTime(+n+i*Vh)},function(n,i){return(i-n)/Vh},function(n){return n.getHours()});const qv=_d;var Lo=_d.range,pc=Oi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*yd)},function(n,i){n.setTime(+n+i*Gc)},function(n,i){return(i-n)/Gc},function(n){return n.getMinutes()});const Gh=pc;var xd=pc.range,wd=Oi(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*yd)},function(n,i){return(i-n)/yd},function(n){return n.getUTCSeconds()});const cl=wd;var Hv=wd.range,kd=Oi(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});kd.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Oi(function(i){i.setTime(Math.floor(i/n)*n)},function(i,o){i.setTime(+i+o*n)},function(i,o){return(o-i)/n}):kd:null};const ul=kd;var Wv=kd.range;function Qc(n){return Oi(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCDate(i.getUTCDate()+7*o)},function(i,o){return(o-i)/Ug})}var Xh=Qc(0),gc=Qc(1),Wg=Qc(2),$v=Qc(3),yc=Qc(4),$g=Qc(5),Kc=Qc(6),Vv=Xh.range,P5=gc.range,Gv=Wg.range,Xv=$v.range,Jc=yc.range,Td=$g.range,j5=Kc.range,Vg=Oi(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/zg},function(n){return n.getUTCDate()-1});const xi=Vg;var lr=Vg.range,ke=Oi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i)},function(n,i){return i.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});ke.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Oi(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCFullYear(i.getUTCFullYear()+o*n)}):null};const hi=ke;var Gg=ke.range;function Xg(n){if(0<=n.y&&n.y<100){var i=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return i.setFullYear(n.y),i}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Zg(n){if(0<=n.y&&n.y<100){var i=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return i.setUTCFullYear(n.y),i}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function tu(n,i,o){return{y:n,m:i,d:o,H:0,M:0,S:0,L:0}}function Zv(n){var i=n.dateTime,o=n.date,s=n.time,l=n.periods,p=n.days,b=n.shortDays,v=n.months,T=n.shortMonths,N=eu(l),B=nu(l),F=eu(p),O=nu(p),z=eu(b),U=nu(b),Q=eu(v),Z=nu(v),G=eu(T),rt=nu(T),et={a:function(Yt){return b[Yt.getDay()]},A:function(Yt){return p[Yt.getDay()]},b:function(Yt){return T[Yt.getMonth()]},B:function(Yt){return v[Yt.getMonth()]},c:null,d:ru,e:ru,f:zi,g:r2,G:Kh,H:mc,I:a3,j:o3,L:t2,m:$5,M:V5,p:function(Yt){return l[+(Yt.getHours()>=12)]},q:function(Yt){return 1+~~(Yt.getMonth()/3)},Q:pl,s:u2,S:G5,u:Nd,U:e2,V:$a,w:Dd,W:s3,x:null,X:null,y:Zn,Y:c3,Z:Ui,"%":d3},ut={a:function(Yt){return b[Yt.getUTCDay()]},A:function(Yt){return p[Yt.getUTCDay()]},b:function(Yt){return T[Yt.getUTCMonth()]},B:function(Yt){return v[Yt.getUTCMonth()]},c:null,d:dl,e:dl,f:X5,g:s2,G:f3,H:Od,I:Bd,j:u3,L:Jt,m:l3,M:Ld,p:function(Yt){return l[+(Yt.getUTCHours()>=12)]},q:function(Yt){return 1+~~(Yt.getUTCMonth()/3)},Q:pl,s:u2,S:i2,u:a2,U:o2,V:h3,w:Id,W:Jh,x:null,X:null,y:tf,Y:Rd,Z:c2,"%":d3},Pt={a:function(Yt,ce,ct){var xt=z.exec(ce.slice(ct));return xt?(Yt.w=U[xt[0].toLowerCase()],ct+xt[0].length):-1},A:function(Yt,ce,ct){var xt=F.exec(ce.slice(ct));return xt?(Yt.w=O[xt[0].toLowerCase()],ct+xt[0].length):-1},b:function(Yt,ce,ct){var xt=G.exec(ce.slice(ct));return xt?(Yt.m=rt[xt[0].toLowerCase()],ct+xt[0].length):-1},B:function(Yt,ce,ct){var xt=Q.exec(ce.slice(ct));return xt?(Yt.m=Z[xt[0].toLowerCase()],ct+xt[0].length):-1},c:function(Yt,ce,ct){return be(Yt,i,ce,ct)},d:Cd,e:Cd,f:r3,g:Jg,G:Jv,H:n3,I:n3,j:Sd,L:W5,m:e3,M:Ad,p:function(Yt,ce,ct){var xt=N.exec(ce.slice(ct));return xt?(Yt.p=B[xt[0].toLowerCase()],ct+xt[0].length):-1},q:t3,Q:Md,s:Io,S:H5,u:fl,U:z5,V:U5,w:Kg,W:q5,x:function(Yt,ce,ct){return be(Yt,o,ce,ct)},X:function(Yt,ce,ct){return be(Yt,s,ce,ct)},y:Jg,Y:Jv,Z:co,"%":i3};function Vt(Yt,ce){return function(ct){var xt,ie,Kt,ae=[],Be=-1,$e=0,dn=Yt.length;for(ct instanceof Date||(ct=new Date(+ct));++Be<dn;)Yt.charCodeAt(Be)===37&&(ae.push(Yt.slice($e,Be)),(ie=Kv[xt=Yt.charAt(++Be)])!=null?xt=Yt.charAt(++Be):ie=xt==="e"?" ":"0",(Kt=ce[xt])&&(xt=Kt(ct,ie)),ae.push(xt),$e=Be+1);return ae.push(Yt.slice($e,Be)),ae.join("")}}function qt(Yt,ce){return function(ct){var xt,ie,Kt=tu(1900,void 0,1);if(be(Kt,Yt,ct+="",0)!=ct.length)return null;if("Q"in Kt)return new Date(Kt.Q);if("s"in Kt)return new Date(1e3*Kt.s+("L"in Kt?Kt.L:0));if(ce&&!("Z"in Kt)&&(Kt.Z=0),"p"in Kt&&(Kt.H=Kt.H%12+12*Kt.p),Kt.m===void 0&&(Kt.m="q"in Kt?Kt.q:0),"V"in Kt){if(Kt.V<1||Kt.V>53)return null;"w"in Kt||(Kt.w=1),"Z"in Kt?(ie=(xt=Zg(tu(Kt.y,0,1))).getUTCDay(),xt=ie>4||ie===0?gc.ceil(xt):gc(xt),xt=xi.offset(xt,7*(Kt.V-1)),Kt.y=xt.getUTCFullYear(),Kt.m=xt.getUTCMonth(),Kt.d=xt.getUTCDate()+(Kt.w+6)%7):(ie=(xt=Xg(tu(Kt.y,0,1))).getDay(),xt=ie>4||ie===0?il.ceil(xt):il(xt),xt=ii.offset(xt,7*(Kt.V-1)),Kt.y=xt.getFullYear(),Kt.m=xt.getMonth(),Kt.d=xt.getDate()+(Kt.w+6)%7)}else("W"in Kt||"U"in Kt)&&("w"in Kt||(Kt.w="u"in Kt?Kt.u%7:"W"in Kt?1:0),ie="Z"in Kt?Zg(tu(Kt.y,0,1)).getUTCDay():Xg(tu(Kt.y,0,1)).getDay(),Kt.m=0,Kt.d="W"in Kt?(Kt.w+6)%7+7*Kt.W-(ie+5)%7:Kt.w+7*Kt.U-(ie+6)%7);return"Z"in Kt?(Kt.H+=Kt.Z/100|0,Kt.M+=Kt.Z%100,Zg(Kt)):Xg(Kt)}}function be(Yt,ce,ct,xt){for(var ie,Kt,ae=0,Be=ce.length,$e=ct.length;ae<Be;){if(xt>=$e)return-1;if((ie=ce.charCodeAt(ae++))===37){if(ie=ce.charAt(ae++),!(Kt=Pt[ie in Kv?ce.charAt(ae++):ie])||(xt=Kt(Yt,ct,xt))<0)return-1}else if(ie!=ct.charCodeAt(xt++))return-1}return xt}return et.x=Vt(o,et),et.X=Vt(s,et),et.c=Vt(i,et),ut.x=Vt(o,ut),ut.X=Vt(s,ut),ut.c=Vt(i,ut),{format:function(Yt){var ce=Vt(Yt+="",et);return ce.toString=function(){return Yt},ce},parse:function(Yt){var ce=qt(Yt+="",!1);return ce.toString=function(){return Yt},ce},utcFormat:function(Yt){var ce=Vt(Yt+="",ut);return ce.toString=function(){return Yt},ce},utcParse:function(Yt){var ce=qt(Yt+="",!0);return ce.toString=function(){return Yt},ce}}}var ll,Zh,Qv,Ed,Qh,Kv={"-":"",_:" ",0:"0"},Yi=/^\s*\d+/,Qg=/^%/,Y5=/[\\^$*+?|[\]().{}]/g;function kr(n,i,o){var s=n<0?"-":"",l=(s?-n:n)+"",p=l.length;return s+(p<o?new Array(o-p+1).join(i)+l:l)}function hl(n){return n.replace(Y5,"\\$&")}function eu(n){return new RegExp("^(?:"+n.map(hl).join("|")+")","i")}function nu(n){for(var i={},o=-1,s=n.length;++o<s;)i[n[o].toLowerCase()]=o;return i}function Kg(n,i,o){var s=Yi.exec(i.slice(o,o+1));return s?(n.w=+s[0],o+s[0].length):-1}function fl(n,i,o){var s=Yi.exec(i.slice(o,o+1));return s?(n.u=+s[0],o+s[0].length):-1}function z5(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.U=+s[0],o+s[0].length):-1}function U5(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.V=+s[0],o+s[0].length):-1}function q5(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.W=+s[0],o+s[0].length):-1}function Jv(n,i,o){var s=Yi.exec(i.slice(o,o+4));return s?(n.y=+s[0],o+s[0].length):-1}function Jg(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.y=+s[0]+(+s[0]>68?1900:2e3),o+s[0].length):-1}function co(n,i,o){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(o,o+6));return s?(n.Z=s[1]?0:-(s[2]+(s[3]||"00")),o+s[0].length):-1}function t3(n,i,o){var s=Yi.exec(i.slice(o,o+1));return s?(n.q=3*s[0]-3,o+s[0].length):-1}function e3(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.m=s[0]-1,o+s[0].length):-1}function Cd(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.d=+s[0],o+s[0].length):-1}function Sd(n,i,o){var s=Yi.exec(i.slice(o,o+3));return s?(n.m=0,n.d=+s[0],o+s[0].length):-1}function n3(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.H=+s[0],o+s[0].length):-1}function Ad(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.M=+s[0],o+s[0].length):-1}function H5(n,i,o){var s=Yi.exec(i.slice(o,o+2));return s?(n.S=+s[0],o+s[0].length):-1}function W5(n,i,o){var s=Yi.exec(i.slice(o,o+3));return s?(n.L=+s[0],o+s[0].length):-1}function r3(n,i,o){var s=Yi.exec(i.slice(o,o+6));return s?(n.L=Math.floor(s[0]/1e3),o+s[0].length):-1}function i3(n,i,o){var s=Qg.exec(i.slice(o,o+1));return s?o+s[0].length:-1}function Md(n,i,o){var s=Yi.exec(i.slice(o));return s?(n.Q=+s[0],o+s[0].length):-1}function Io(n,i,o){var s=Yi.exec(i.slice(o));return s?(n.s=+s[0],o+s[0].length):-1}function ru(n,i){return kr(n.getDate(),i,2)}function mc(n,i){return kr(n.getHours(),i,2)}function a3(n,i){return kr(n.getHours()%12||12,i,2)}function o3(n,i){return kr(1+ii.count(Vc(n),n),i,3)}function t2(n,i){return kr(n.getMilliseconds(),i,3)}function zi(n,i){return t2(n,i)+"000"}function $5(n,i){return kr(n.getMonth()+1,i,2)}function V5(n,i){return kr(n.getMinutes(),i,2)}function G5(n,i){return kr(n.getSeconds(),i,2)}function Nd(n){var i=n.getDay();return i===0?7:i}function e2(n,i){return kr(Zc.count(Vc(n)-1,n),i,2)}function n2(n){var i=n.getDay();return i>=4||i===0?Ls(n):Ls.ceil(n)}function $a(n,i){return n=n2(n),kr(Ls.count(Vc(n),n)+(Vc(n).getDay()===4),i,2)}function Dd(n){return n.getDay()}function s3(n,i){return kr(il.count(Vc(n)-1,n),i,2)}function Zn(n,i){return kr(n.getFullYear()%100,i,2)}function r2(n,i){return kr((n=n2(n)).getFullYear()%100,i,2)}function c3(n,i){return kr(n.getFullYear()%1e4,i,4)}function Kh(n,i){var o=n.getDay();return kr((n=o>=4||o===0?Ls(n):Ls.ceil(n)).getFullYear()%1e4,i,4)}function Ui(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+kr(i/60|0,"0",2)+kr(i%60,"0",2)}function dl(n,i){return kr(n.getUTCDate(),i,2)}function Od(n,i){return kr(n.getUTCHours(),i,2)}function Bd(n,i){return kr(n.getUTCHours()%12||12,i,2)}function u3(n,i){return kr(1+xi.count(hi(n),n),i,3)}function Jt(n,i){return kr(n.getUTCMilliseconds(),i,3)}function X5(n,i){return Jt(n,i)+"000"}function l3(n,i){return kr(n.getUTCMonth()+1,i,2)}function Ld(n,i){return kr(n.getUTCMinutes(),i,2)}function i2(n,i){return kr(n.getUTCSeconds(),i,2)}function a2(n){var i=n.getUTCDay();return i===0?7:i}function o2(n,i){return kr(Xh.count(hi(n)-1,n),i,2)}function wi(n){var i=n.getUTCDay();return i>=4||i===0?yc(n):yc.ceil(n)}function h3(n,i){return n=wi(n),kr(yc.count(hi(n),n)+(hi(n).getUTCDay()===4),i,2)}function Id(n){return n.getUTCDay()}function Jh(n,i){return kr(gc.count(hi(n)-1,n),i,2)}function tf(n,i){return kr(n.getUTCFullYear()%100,i,2)}function s2(n,i){return kr((n=wi(n)).getUTCFullYear()%100,i,2)}function Rd(n,i){return kr(n.getUTCFullYear()%1e4,i,4)}function f3(n,i){var o=n.getUTCDay();return kr((n=o>=4||o===0?yc(n):yc.ceil(n)).getUTCFullYear()%1e4,i,4)}function c2(){return"+0000"}function d3(){return"%"}function pl(n){return+n}function u2(n){return Math.floor(+n/1e3)}function l2(n){return ll=Zv(n),Zh=ll.format,Qv=ll.parse,Ed=ll.utcFormat,Qh=ll.utcParse,ll}l2({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"]});var uo=31536e6;function Z5(n){return new Date(n)}function ef(n){return n instanceof Date?+n:+new Date(+n)}function h2(n,i,o,s,l,p,b,v,T){var N=Ng(Zi,Zi),B=N.invert,F=N.domain,O=T(".%L"),z=T(":%S"),U=T("%I:%M"),Q=T("%I %p"),Z=T("%a %d"),G=T("%b %d"),rt=T("%B"),et=T("%Y"),ut=[[b,1,1e3],[b,5,5e3],[b,15,15e3],[b,30,3e4],[p,1,6e4],[p,5,3e5],[p,15,9e5],[p,30,18e5],[l,1,36e5],[l,3,108e5],[l,6,216e5],[l,12,432e5],[s,1,864e5],[s,2,1728e5],[o,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,uo]];function Pt(qt){return(b(qt)<qt?O:p(qt)<qt?z:l(qt)<qt?U:s(qt)<qt?Q:i(qt)<qt?o(qt)<qt?Z:G:n(qt)<qt?rt:et)(qt)}function Vt(qt,be,Yt,ce){if(qt==null&&(qt=10),typeof qt=="number"){var ct=Math.abs(Yt-be)/qt,xt=_(function(ie){return ie[2]}).right(ut,ct);xt===ut.length?(ce=vt(be/uo,Yt/uo,qt),qt=n):xt?(ce=(xt=ut[ct/ut[xt-1][2]<ut[xt][2]/ct?xt-1:xt])[1],qt=xt[0]):(ce=Math.max(vt(be,Yt,qt),1),qt=v)}return ce==null?qt:qt.every(ce)}return N.invert=function(qt){return new Date(B(qt))},N.domain=function(qt){return arguments.length?F(ud.call(qt,ef)):F().map(Z5)},N.ticks=function(qt,be){var Yt,ce=F(),ct=ce[0],xt=ce[ce.length-1],ie=xt<ct;return ie&&(Yt=ct,ct=xt,xt=Yt),Yt=(Yt=Vt(qt,ct,xt,be))?Yt.range(ct,xt+1):[],ie?Yt.reverse():Yt},N.tickFormat=function(qt,be){return be==null?Pt:T(be)},N.nice=function(qt,be){var Yt=F();return(qt=Vt(qt,Yt[0],Yt[Yt.length-1],be))?F(Bg(Yt,qt)):N},N.copy=function(){return $c(N,h2(n,i,o,s,l,p,b,v,T))},N}function Bi(){return Oo.apply(h2(Vc,Yg,Zc,ii,qv,Gh,cl,ul,Zh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var iu=Oi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCMonth(n.getUTCMonth()+i)},function(n,i){return i.getUTCMonth()-n.getUTCMonth()+12*(i.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const p3=iu;var g3=iu.range,Fd=Oi(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*Vh)},function(n,i){return(i-n)/Vh},function(n){return n.getUTCHours()});const y3=Fd;var Q5=Fd.range,m3=Oi(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*Gc)},function(n,i){return(i-n)/Gc},function(n){return n.getUTCMinutes()});const f2=m3;var gl=m3.range;function d2(){return Oo.apply(h2(hi,p3,Xh,xi,y3,f2,cl,ul,Ed).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pd(){var n,i,o,s,l,p=0,b=1,v=Zi,T=!1;function N(B){return isNaN(B=+B)?l:v(o===0?.5:(B=(s(B)-n)*o,T?Math.max(0,Math.min(1,B)):B))}return N.domain=function(B){return arguments.length?(n=s(p=+B[0]),i=s(b=+B[1]),o=n===i?0:1/(i-n),N):[p,b]},N.clamp=function(B){return arguments.length?(T=!!B,N):T},N.interpolator=function(B){return arguments.length?(v=B,N):v},N.unknown=function(B){return arguments.length?(l=B,N):l},function(B){return s=B,n=B(p),i=B(b),o=n===i?0:1/(i-n),N}}function os(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function nf(){var n=Os(Pd()(Zi));return n.copy=function(){return os(n,nf())},Ds.apply(n,arguments)}function rf(){var n=Lg(Pd()).domain([1,10]);return n.copy=function(){return os(n,rf()).base(n.base())},Ds.apply(n,arguments)}function p2(){var n=Ig(Pd());return n.copy=function(){return os(n,p2()).constant(n.constant())},Ds.apply(n,arguments)}function g2(){var n=Rg(Pd());return n.copy=function(){return os(n,g2()).exponent(n.exponent())},Ds.apply(n,arguments)}function K5(){return g2.apply(null,arguments).exponent(.5)}function v3(){var n=[],i=Zi;function o(s){if(!isNaN(s=+s))return i((A(n,s)-1)/(n.length-1))}return o.domain=function(s){if(!arguments.length)return n.slice();n=[];for(var l,p=0,b=s.length;p<b;++p)(l=s[p])==null||isNaN(l=+l)||n.push(l);return n.sort(d),o},o.interpolator=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return v3(i).domain(n)},Ds.apply(o,arguments)}function yl(){var n,i,o,s,l,p,b,v=0,T=.5,N=1,B=Zi,F=!1;function O(z){return isNaN(z=+z)?b:(z=.5+((z=+p(z))-i)*(z<i?s:l),B(F?Math.max(0,Math.min(1,z)):z))}return O.domain=function(z){return arguments.length?(n=p(v=+z[0]),i=p(T=+z[1]),o=p(N=+z[2]),s=n===i?0:.5/(i-n),l=i===o?0:.5/(o-i),O):[v,T,N]},O.clamp=function(z){return arguments.length?(F=!!z,O):F},O.interpolator=function(z){return arguments.length?(B=z,O):B},O.unknown=function(z){return arguments.length?(b=z,O):b},function(z){return p=z,n=z(v),i=z(T),o=z(N),s=n===i?0:.5/(i-n),l=i===o?0:.5/(o-i),O}}function _a(){var n=Os(yl()(Zi));return n.copy=function(){return os(n,_a())},Ds.apply(n,arguments)}function xa(){var n=Lg(yl()).domain([.1,1,10]);return n.copy=function(){return os(n,xa()).base(n.base())},Ds.apply(n,arguments)}function ki(){var n=Ig(yl());return n.copy=function(){return os(n,ki()).constant(n.constant())},Ds.apply(n,arguments)}function Ro(){var n=Rg(yl());return n.copy=function(){return os(n,Ro()).exponent(n.exponent())},Ds.apply(n,arguments)}function yr(){return Ro.apply(null,arguments).exponent(.5)}function Mn(n){for(var i=n.length/6|0,o=new Array(i),s=0;s<i;)o[s]="#"+n.slice(6*s,6*++s);return o}const b3=Mn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),jd=Mn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),J5=Mn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),t_=Mn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Yd=Mn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),_3=Mn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),e_=Mn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),n_=Mn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),r_=Mn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),i_=Mn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function zr(n){return _u(n[n.length-1])}var x3=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mn);const w3=zr(x3);var k3=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mn);const af=zr(k3);var of=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mn);const Rs=zr(of);var vc=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mn);const zd=zr(vc);var y2=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mn);const T3=zr(y2);var au=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mn);const E3=zr(au);var C3=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mn);const S3=zr(C3);var sf=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mn);const Qi=zr(sf);var A3=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mn);const Ud=zr(A3);var M3=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mn);const N3=zr(M3);var D3=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mn);const m2=zr(D3);var v2=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mn);const O3=zr(v2);var ml=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mn);const b2=zr(ml);var qd=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mn);const B3=zr(qd);var wa=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mn);const a_=zr(wa);var _2=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mn);const Fs=zr(_2);var Ps=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mn);const Ur=zr(Ps);var x2=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mn);const L3=zr(x2);var w2=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mn);const o_=zr(w2);var Hd=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mn);const k2=zr(Hd);var ss=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mn);const Wd=zr(ss);var I3=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mn);const R3=zr(I3);var ou=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mn);const fi=zr(ou);var bc=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mn);const vl=zr(bc);var Fo=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mn);const $d=zr(Fo);var Vd=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mn);const T2=zr(Vd);var Gd=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mn);const Xd=zr(Gd);function Zd(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const s_=zh(fa(300,.5,0),fa(-240,.5,1));var E2=zh(fa(-100,.75,.35),fa(80,1.5,.8)),F3=zh(fa(260,.75,.35),fa(80,1.5,.8)),Qd=fa();function C2(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return Qd.h=360*n-100,Qd.s=1.5-1.5*i,Qd.l=.8-.9*i,Qd+""}var cf=Fi(),c_=Math.PI/3,P3=2*Math.PI/3;function j3(n){var i;return n=(.5-n)*Math.PI,cf.r=255*(i=Math.sin(n))*i,cf.g=255*(i=Math.sin(n+c_))*i,cf.b=255*(i=Math.sin(n+P3))*i,cf+""}function rr(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"}function Kd(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}const Jd=Kd(Mn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var u_=Kd(Mn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Va=Kd(Mn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),l_=Kd(Mn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Y3(n){return pr(oi(n).call(document.documentElement))}var h_=0;function z3(){return new S2}function S2(){this._="@"+(++h_).toString(36)}function f_(n){return typeof n=="string"?new Cn([document.querySelectorAll(n)],[document.documentElement]):new Cn([n==null?[]:n],$i)}function d_(n,i){i==null&&(i=Pa().touches);for(var o=0,s=i?i.length:0,l=new Array(s);o<s;++o)l[o]=Nc(n,i[o]);return l}function ar(n){return function(){return n}}S2.prototype=z3.prototype={constructor:S2,get:function(n){for(var i=this._;!(i in n);)if(!(n=n.parentNode))return;return n[i]},set:function(n,i){return n[this._]=i},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var U3=Math.abs,ra=Math.atan2,su=Math.cos,p_=Math.max,A2=Math.min,qi=Math.sin,bl=Math.sqrt,Ki=1e-12,js=Math.PI,t0=js/2,Ys=2*js;function q3(n){return n>1?0:n<-1?js:Math.acos(n)}function H3(n){return n>=1?t0:n<=-1?-t0:Math.asin(n)}function M2(n){return n.innerRadius}function N2(n){return n.outerRadius}function e0(n){return n.startAngle}function cs(n){return n.endAngle}function D2(n){return n&&n.padAngle}function O2(n,i,o,s,l,p,b,v){var T=o-n,N=s-i,B=b-l,F=v-p,O=F*T-B*N;if(!(O*O<Ki))return[n+(O=(B*(i-p)-F*(n-l))/O)*T,i+O*N]}function _c(n,i,o,s,l,p,b){var v=n-o,T=i-s,N=(b?p:-p)/bl(v*v+T*T),B=N*T,F=-N*v,O=n+B,z=i+F,U=o+B,Q=s+F,Z=(O+U)/2,G=(z+Q)/2,rt=U-O,et=Q-z,ut=rt*rt+et*et,Pt=l-p,Vt=O*Q-U*z,qt=(et<0?-1:1)*bl(p_(0,Pt*Pt*ut-Vt*Vt)),be=(Vt*et-rt*qt)/ut,Yt=(-Vt*rt-et*qt)/ut,ce=(Vt*et+rt*qt)/ut,ct=(-Vt*rt+et*qt)/ut,xt=be-Z,ie=Yt-G,Kt=ce-Z,ae=ct-G;return xt*xt+ie*ie>Kt*Kt+ae*ae&&(be=ce,Yt=ct),{cx:be,cy:Yt,x01:-B,y01:-F,x11:be*(l/Pt-1),y11:Yt*(l/Pt-1)}}function uf(){var n=M2,i=N2,o=ar(0),s=null,l=e0,p=cs,b=D2,v=null;function T(){var N,B,F=+n.apply(this,arguments),O=+i.apply(this,arguments),z=l.apply(this,arguments)-t0,U=p.apply(this,arguments)-t0,Q=U3(U-z),Z=U>z;if(v||(v=N=_s()),O<F&&(B=O,O=F,F=B),O>Ki)if(Q>Ys-Ki)v.moveTo(O*su(z),O*qi(z)),v.arc(0,0,O,z,U,!Z),F>Ki&&(v.moveTo(F*su(U),F*qi(U)),v.arc(0,0,F,U,z,Z));else{var G,rt,et=z,ut=U,Pt=z,Vt=U,qt=Q,be=Q,Yt=b.apply(this,arguments)/2,ce=Yt>Ki&&(s?+s.apply(this,arguments):bl(F*F+O*O)),ct=A2(U3(O-F)/2,+o.apply(this,arguments)),xt=ct,ie=ct;if(ce>Ki){var Kt=H3(ce/F*qi(Yt)),ae=H3(ce/O*qi(Yt));(qt-=2*Kt)>Ki?(Pt+=Kt*=Z?1:-1,Vt-=Kt):(qt=0,Pt=Vt=(z+U)/2),(be-=2*ae)>Ki?(et+=ae*=Z?1:-1,ut-=ae):(be=0,et=ut=(z+U)/2)}var Be=O*su(et),$e=O*qi(et),dn=F*su(Vt),Fn=F*qi(Vt);if(ct>Ki){var ir,rn=O*su(ut),tr=O*qi(ut),Dn=F*su(Pt),Sn=F*qi(Pt);if(Q<js&&(ir=O2(Be,$e,Dn,Sn,rn,tr,dn,Fn))){var sr=Be-ir[0],Hi=$e-ir[1],bi=rn-ir[0],$s=tr-ir[1],Tc=1/qi(q3((sr*bi+Hi*$s)/(bl(sr*sr+Hi*Hi)*bl(bi*bi+$s*$s)))/2),Df=bl(ir[0]*ir[0]+ir[1]*ir[1]);xt=A2(ct,(F-Df)/(Tc-1)),ie=A2(ct,(O-Df)/(Tc+1))}}be>Ki?ie>Ki?(G=_c(Dn,Sn,Be,$e,O,ie,Z),rt=_c(rn,tr,dn,Fn,O,ie,Z),v.moveTo(G.cx+G.x01,G.cy+G.y01),ie<ct?v.arc(G.cx,G.cy,ie,ra(G.y01,G.x01),ra(rt.y01,rt.x01),!Z):(v.arc(G.cx,G.cy,ie,ra(G.y01,G.x01),ra(G.y11,G.x11),!Z),v.arc(0,0,O,ra(G.cy+G.y11,G.cx+G.x11),ra(rt.cy+rt.y11,rt.cx+rt.x11),!Z),v.arc(rt.cx,rt.cy,ie,ra(rt.y11,rt.x11),ra(rt.y01,rt.x01),!Z))):(v.moveTo(Be,$e),v.arc(0,0,O,et,ut,!Z)):v.moveTo(Be,$e),F>Ki&&qt>Ki?xt>Ki?(G=_c(dn,Fn,rn,tr,F,-xt,Z),rt=_c(Be,$e,Dn,Sn,F,-xt,Z),v.lineTo(G.cx+G.x01,G.cy+G.y01),xt<ct?v.arc(G.cx,G.cy,xt,ra(G.y01,G.x01),ra(rt.y01,rt.x01),!Z):(v.arc(G.cx,G.cy,xt,ra(G.y01,G.x01),ra(G.y11,G.x11),!Z),v.arc(0,0,F,ra(G.cy+G.y11,G.cx+G.x11),ra(rt.cy+rt.y11,rt.cx+rt.x11),Z),v.arc(rt.cx,rt.cy,xt,ra(rt.y11,rt.x11),ra(rt.y01,rt.x01),!Z))):v.arc(0,0,F,Vt,Pt,Z):v.lineTo(dn,Fn)}else v.moveTo(0,0);if(v.closePath(),N)return v=null,N+""||null}return T.centroid=function(){var N=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,B=(+l.apply(this,arguments)+ +p.apply(this,arguments))/2-js/2;return[su(B)*N,qi(B)*N]},T.innerRadius=function(N){return arguments.length?(n=typeof N=="function"?N:ar(+N),T):n},T.outerRadius=function(N){return arguments.length?(i=typeof N=="function"?N:ar(+N),T):i},T.cornerRadius=function(N){return arguments.length?(o=typeof N=="function"?N:ar(+N),T):o},T.padRadius=function(N){return arguments.length?(s=N==null?null:typeof N=="function"?N:ar(+N),T):s},T.startAngle=function(N){return arguments.length?(l=typeof N=="function"?N:ar(+N),T):l},T.endAngle=function(N){return arguments.length?(p=typeof N=="function"?N:ar(+N),T):p},T.padAngle=function(N){return arguments.length?(b=typeof N=="function"?N:ar(+N),T):b},T.context=function(N){return arguments.length?(v=N==null?null:N,T):v},T}function n0(n){this._context=n}function _l(n){return new n0(n)}function lf(n){return n[0]}function hf(n){return n[1]}function xc(){var n=lf,i=hf,o=ar(!0),s=null,l=_l,p=null;function b(v){var T,N,B,F=v.length,O=!1;for(s==null&&(p=l(B=_s())),T=0;T<=F;++T)!(T<F&&o(N=v[T],T,v))===O&&((O=!O)?p.lineStart():p.lineEnd()),O&&p.point(+n(N,T,v),+i(N,T,v));if(B)return p=null,B+""||null}return b.x=function(v){return arguments.length?(n=typeof v=="function"?v:ar(+v),b):n},b.y=function(v){return arguments.length?(i=typeof v=="function"?v:ar(+v),b):i},b.defined=function(v){return arguments.length?(o=typeof v=="function"?v:ar(!!v),b):o},b.curve=function(v){return arguments.length?(l=v,s!=null&&(p=l(s)),b):l},b.context=function(v){return arguments.length?(v==null?s=p=null:p=l(s=v),b):s},b}function B2(){var n=lf,i=null,o=ar(0),s=hf,l=ar(!0),p=null,b=_l,v=null;function T(B){var F,O,z,U,Q,Z=B.length,G=!1,rt=new Array(Z),et=new Array(Z);for(p==null&&(v=b(Q=_s())),F=0;F<=Z;++F){if(!(F<Z&&l(U=B[F],F,B))===G)if(G=!G)O=F,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),z=F-1;z>=O;--z)v.point(rt[z],et[z]);v.lineEnd(),v.areaEnd()}G&&(rt[F]=+n(U,F,B),et[F]=+o(U,F,B),v.point(i?+i(U,F,B):rt[F],s?+s(U,F,B):et[F]))}if(Q)return v=null,Q+""||null}function N(){return xc().defined(l).curve(b).context(p)}return T.x=function(B){return arguments.length?(n=typeof B=="function"?B:ar(+B),i=null,T):n},T.x0=function(B){return arguments.length?(n=typeof B=="function"?B:ar(+B),T):n},T.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:ar(+B),T):i},T.y=function(B){return arguments.length?(o=typeof B=="function"?B:ar(+B),s=null,T):o},T.y0=function(B){return arguments.length?(o=typeof B=="function"?B:ar(+B),T):o},T.y1=function(B){return arguments.length?(s=B==null?null:typeof B=="function"?B:ar(+B),T):s},T.lineX0=T.lineY0=function(){return N().x(n).y(o)},T.lineY1=function(){return N().x(n).y(s)},T.lineX1=function(){return N().x(i).y(o)},T.defined=function(B){return arguments.length?(l=typeof B=="function"?B:ar(!!B),T):l},T.curve=function(B){return arguments.length?(b=B,p!=null&&(v=b(p)),T):b},T.context=function(B){return arguments.length?(B==null?p=v=null:v=b(p=B),T):p},T}function r0(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function ff(n){return n}function L2(){var n=ff,i=r0,o=null,s=ar(0),l=ar(Ys),p=ar(0);function b(v){var T,N,B,F,O,z=v.length,U=0,Q=new Array(z),Z=new Array(z),G=+s.apply(this,arguments),rt=Math.min(Ys,Math.max(-Ys,l.apply(this,arguments)-G)),et=Math.min(Math.abs(rt)/z,p.apply(this,arguments)),ut=et*(rt<0?-1:1);for(T=0;T<z;++T)(O=Z[Q[T]=T]=+n(v[T],T,v))>0&&(U+=O);for(i!=null?Q.sort(function(Pt,Vt){return i(Z[Pt],Z[Vt])}):o!=null&&Q.sort(function(Pt,Vt){return o(v[Pt],v[Vt])}),T=0,B=U?(rt-z*ut)/U:0;T<z;++T,G=F)N=Q[T],F=G+((O=Z[N])>0?O*B:0)+ut,Z[N]={data:v[N],index:T,value:O,startAngle:G,endAngle:F,padAngle:et};return Z}return b.value=function(v){return arguments.length?(n=typeof v=="function"?v:ar(+v),b):n},b.sortValues=function(v){return arguments.length?(i=v,o=null,b):i},b.sort=function(v){return arguments.length?(o=v,i=null,b):o},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:ar(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:ar(+v),b):l},b.padAngle=function(v){return arguments.length?(p=typeof v=="function"?v:ar(+v),b):p},b}n0.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:this._context.lineTo(n,i)}}};var i0=a0(_l);function I2(n){this._curve=n}function a0(n){function i(o){return new I2(n(o))}return i._curve=n,i}function df(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(o){return arguments.length?i(a0(o)):i()._curve},n}function o0(){return df(xc().curve(i0))}function R2(){var n=B2().curve(i0),i=n.curve,o=n.lineX0,s=n.lineX1,l=n.lineY0,p=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return df(o())},delete n.lineX0,n.lineEndAngle=function(){return df(s())},delete n.lineX1,n.lineInnerRadius=function(){return df(l())},delete n.lineY0,n.lineOuterRadius=function(){return df(p())},delete n.lineY1,n.curve=function(b){return arguments.length?i(a0(b)):i()._curve},n}function xl(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}I2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,i){this._curve.point(i*Math.sin(n),i*-Math.cos(n))}};var s0=Array.prototype.slice;function wl(n){return n.source}function Ti(n){return n.target}function c0(n){var i=wl,o=Ti,s=lf,l=hf,p=null;function b(){var v,T=s0.call(arguments),N=i.apply(this,T),B=o.apply(this,T);if(p||(p=v=_s()),n(p,+s.apply(this,(T[0]=N,T)),+l.apply(this,T),+s.apply(this,(T[0]=B,T)),+l.apply(this,T)),v)return p=null,v+""||null}return b.source=function(v){return arguments.length?(i=v,b):i},b.target=function(v){return arguments.length?(o=v,b):o},b.x=function(v){return arguments.length?(s=typeof v=="function"?v:ar(+v),b):s},b.y=function(v){return arguments.length?(l=typeof v=="function"?v:ar(+v),b):l},b.context=function(v){return arguments.length?(p=v==null?null:v,b):p},b}function kl(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i=(i+s)/2,o,i,l,s,l)}function W3(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i,o=(o+l)/2,s,o,s,l)}function $3(n,i,o,s,l){var p=xl(i,o),b=xl(i,o=(o+l)/2),v=xl(s,o),T=xl(s,l);n.moveTo(p[0],p[1]),n.bezierCurveTo(b[0],b[1],v[0],v[1],T[0],T[1])}function V3(){return c0(kl)}function Tl(){return c0(W3)}function G3(){var n=c0($3);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const us={draw:function(n,i){var o=Math.sqrt(i/js);n.moveTo(o,0),n.arc(0,0,o,0,Ys)}},Ga={draw:function(n,i){var o=Math.sqrt(i/5)/2;n.moveTo(-3*o,-o),n.lineTo(-o,-o),n.lineTo(-o,-3*o),n.lineTo(o,-3*o),n.lineTo(o,-o),n.lineTo(3*o,-o),n.lineTo(3*o,o),n.lineTo(o,o),n.lineTo(o,3*o),n.lineTo(-o,3*o),n.lineTo(-o,o),n.lineTo(-3*o,o),n.closePath()}};var X3=Math.sqrt(1/3),g_=2*X3;const vi={draw:function(n,i){var o=Math.sqrt(i/g_),s=o*X3;n.moveTo(0,-o),n.lineTo(s,0),n.lineTo(0,o),n.lineTo(-s,0),n.closePath()}};var ia=Math.sin(js/10)/Math.sin(7*js/10),Li=Math.sin(Ys/10)*ia,ls=-Math.cos(Ys/10)*ia;const F2={draw:function(n,i){var o=Math.sqrt(.8908130915292852*i),s=Li*o,l=ls*o;n.moveTo(0,-o),n.lineTo(s,l);for(var p=1;p<5;++p){var b=Ys*p/5,v=Math.cos(b),T=Math.sin(b);n.lineTo(T*o,-v*o),n.lineTo(v*s-T*l,T*s+v*l)}n.closePath()}},u0={draw:function(n,i){var o=Math.sqrt(i),s=-o/2;n.rect(s,s,o,o)}};var l0=Math.sqrt(3);const pf={draw:function(n,i){var o=-Math.sqrt(i/(3*l0));n.moveTo(0,2*o),n.lineTo(-l0*o,-o),n.lineTo(l0*o,-o),n.closePath()}};var Xa=-.5,Za=Math.sqrt(3)/2,h0=1/Math.sqrt(12),Z3=3*(h0/2+1);const cu={draw:function(n,i){var o=Math.sqrt(i/Z3),s=o/2,l=o*h0,p=s,b=o*h0+o,v=-p,T=b;n.moveTo(s,l),n.lineTo(p,b),n.lineTo(v,T),n.lineTo(Xa*s-Za*l,Za*s+Xa*l),n.lineTo(Xa*p-Za*b,Za*p+Xa*b),n.lineTo(Xa*v-Za*T,Za*v+Xa*T),n.lineTo(Xa*s+Za*l,Xa*l-Za*s),n.lineTo(Xa*p+Za*b,Xa*b-Za*p),n.lineTo(Xa*v+Za*T,Xa*T-Za*v),n.closePath()}};var El=[us,Ga,vi,u0,F2,pf,cu];function y_(){var n=ar(us),i=ar(64),o=null;function s(){var l;if(o||(o=l=_s()),n.apply(this,arguments).draw(o,+i.apply(this,arguments)),l)return o=null,l+""||null}return s.type=function(l){return arguments.length?(n=typeof l=="function"?l:ar(l),s):n},s.size=function(l){return arguments.length?(i=typeof l=="function"?l:ar(+l),s):i},s.context=function(l){return arguments.length?(o=l==null?null:l,s):o},s}function zs(){}function Po(n,i,o){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+i)/6,(n._y0+4*n._y1+o)/6)}function Wn(n){this._context=n}function Q3(n){return new Wn(n)}function uu(n){this._context=n}function K3(n){return new uu(n)}function f0(n){this._context=n}function m_(n){return new f0(n)}function d0(n,i){this._basis=new Wn(n),this._beta=i}Wn.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:Po(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);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:Po(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},uu.prototype={areaStart:zs,areaEnd:zs,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)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x2=n,this._y2=i;break;case 1:this._point=2,this._x3=n,this._y3=i;break;case 2:this._point=3,this._x4=n,this._y4=i,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+i)/6);break;default:Po(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},f0.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+n)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(o,s):this._context.moveTo(o,s);break;case 3:this._point=4;default:Po(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},d0.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,o=n.length-1;if(o>0)for(var s,l=n[0],p=i[0],b=n[o]-l,v=i[o]-p,T=-1;++T<=o;)s=T/o,this._basis.point(this._beta*n[T]+(1-this._beta)*(l+s*b),this._beta*i[T]+(1-this._beta)*(p+s*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const J3=function n(i){function o(s){return i===1?new Wn(s):new d0(s,i)}return o.beta=function(s){return n(+s)},o}(.85);function gf(n,i,o){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-i),n._y2+n._k*(n._y1-o),n._x2,n._y2)}function p0(n,i){this._context=n,this._k=(1-i)/6}p0.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:gf(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2,this._x1=n,this._y1=i;break;case 2:this._point=3;default:gf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const tb=function n(i){function o(s){return new p0(s,i)}return o.tension=function(s){return n(+s)},o}(0);function g0(n,i){this._context=n,this._k=(1-i)/6}g0.prototype={areaStart:zs,areaEnd:zs,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)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:gf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const v_=function n(i){function o(s){return new g0(s,i)}return o.tension=function(s){return n(+s)},o}(0);function y0(n,i){this._context=n,this._k=(1-i)/6}y0.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(n,i){switch(n=+n,i=+i,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:gf(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const b_=function n(i){function o(s){return new y0(s,i)}return o.tension=function(s){return n(+s)},o}(0);function m0(n,i,o){var s=n._x1,l=n._y1,p=n._x2,b=n._y2;if(n._l01_a>Ki){var v=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,T=3*n._l01_a*(n._l01_a+n._l12_a);s=(s*v-n._x0*n._l12_2a+n._x2*n._l01_2a)/T,l=(l*v-n._y0*n._l12_2a+n._y2*n._l01_2a)/T}if(n._l23_a>Ki){var N=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,B=3*n._l23_a*(n._l23_a+n._l12_a);p=(p*N+n._x1*n._l23_2a-i*n._l12_2a)/B,b=(b*N+n._y1*n._l23_2a-o*n._l12_2a)/B}n._context.bezierCurveTo(s,l,p,b,n._x2,n._y2)}function eb(n,i){this._context=n,this._alpha=i}eb.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)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3;default:m0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const nb=function n(i){function o(s){return i?new eb(s,i):new p0(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function yf(n,i){this._context=n,this._alpha=i}yf.prototype={areaStart:zs,areaEnd:zs,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)}},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:m0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const P2=function n(i){function o(s){return i?new yf(s,i):new g0(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function v0(n,i){this._context=n,this._alpha=i}v0.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(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,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:m0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const j2=function n(i){function o(s){return i?new v0(s,i):new y0(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function Us(n){this._context=n}function qs(n){return new Us(n)}function rb(n){return n<0?-1:1}function mf(n,i,o){var s=n._x1-n._x0,l=i-n._x1,p=(n._y1-n._y0)/(s||l<0&&-0),b=(o-n._y1)/(l||s<0&&-0),v=(p*l+b*s)/(s+l);return(rb(p)+rb(b))*Math.min(Math.abs(p),Math.abs(b),.5*Math.abs(v))||0}function ib(n,i){var o=n._x1-n._x0;return o?(3*(n._y1-n._y0)/o-i)/2:i}function vf(n,i,o){var s=n._x0,l=n._y0,p=n._x1,b=n._y1,v=(p-s)/3;n._context.bezierCurveTo(s+v,l+v*i,p-v,b-v*o,p,b)}function Ji(n){this._context=n}function Cl(n){this._context=new Hs(n)}function Hs(n){this._context=n}function bf(n){return new Ji(n)}function Sl(n){return new Cl(n)}function b0(n){this._context=n}function ab(n){var i,o,s=n.length-1,l=new Array(s),p=new Array(s),b=new Array(s);for(l[0]=0,p[0]=2,b[0]=n[0]+2*n[1],i=1;i<s-1;++i)l[i]=1,p[i]=4,b[i]=4*n[i]+2*n[i+1];for(l[s-1]=2,p[s-1]=7,b[s-1]=8*n[s-1]+n[s],i=1;i<s;++i)o=l[i]/p[i-1],p[i]-=o,b[i]-=o*b[i-1];for(l[s-1]=b[s-1]/p[s-1],i=s-2;i>=0;--i)l[i]=(b[i]-l[i+1])/p[i];for(p[s-1]=(n[s]+l[s-1])/2,i=0;i<s-1;++i)p[i]=2*n[i+1]-l[i+1];return[l,p]}function Ei(n){return new b0(n)}function _f(n,i){this._context=n,this._t=i}function ob(n){return new _f(n,.5)}function sb(n){return new _f(n,0)}function cb(n){return new _f(n,1)}function jo(n,i){if((l=n.length)>1)for(var o,s,l,p=1,b=n[i[0]],v=b.length;p<l;++p)for(s=b,b=n[i[p]],o=0;o<v;++o)b[o][1]+=b[o][0]=isNaN(s[o][1])?s[o][0]:s[o][1]}function lu(n){for(var i=n.length,o=new Array(i);--i>=0;)o[i]=i;return o}function __(n,i){return n[i]}function nn(){var n=ar([]),i=lu,o=jo,s=__;function l(p){var b,v,T=n.apply(this,arguments),N=p.length,B=T.length,F=new Array(B);for(b=0;b<B;++b){for(var O,z=T[b],U=F[b]=new Array(N),Q=0;Q<N;++Q)U[Q]=O=[0,+s(p[Q],z,Q,p)],O.data=p[Q];U.key=z}for(b=0,v=i(F);b<B;++b)F[v[b]].index=b;return o(F,v),F}return l.keys=function(p){return arguments.length?(n=typeof p=="function"?p:ar(s0.call(p)),l):n},l.value=function(p){return arguments.length?(s=typeof p=="function"?p:ar(+p),l):s},l.order=function(p){return arguments.length?(i=p==null?lu:typeof p=="function"?p:ar(s0.call(p)),l):i},l.offset=function(p){return arguments.length?(o=p==null?jo:p,l):o},l}function x_(n,i){if((s=n.length)>0){for(var o,s,l,p=0,b=n[0].length;p<b;++p){for(l=o=0;o<s;++o)l+=n[o][p][1]||0;if(l)for(o=0;o<s;++o)n[o][p][1]/=l}jo(n,i)}}function xf(n,i){if((v=n.length)>0)for(var o,s,l,p,b,v,T=0,N=n[i[0]].length;T<N;++T)for(p=b=0,o=0;o<v;++o)(l=(s=n[i[o]][T])[1]-s[0])>0?(s[0]=p,s[1]=p+=l):l<0?(s[1]=b,s[0]=b+=l):(s[0]=0,s[1]=l)}function wc(n,i){if((o=n.length)>0){for(var o,s=0,l=n[i[0]],p=l.length;s<p;++s){for(var b=0,v=0;b<o;++b)v+=n[b][s][1]||0;l[s][1]+=l[s][0]=-v/2}jo(n,i)}}function hs(n,i){if((l=n.length)>0&&(s=(o=n[i[0]]).length)>0){for(var o,s,l,p=0,b=1;b<s;++b){for(var v=0,T=0,N=0;v<l;++v){for(var B=n[i[v]],F=B[b][1]||0,O=(F-(B[b-1][1]||0))/2,z=0;z<v;++z){var U=n[i[z]];O+=(U[b][1]||0)-(U[b-1][1]||0)}T+=F,N+=O*F}o[b-1][1]+=o[b-1][0]=p,T&&(p-=N/T)}o[b-1][1]+=o[b-1][0]=p,jo(n,i)}}function Y2(n){var i=n.map(ub);return lu(n).sort(function(o,s){return i[o]-i[s]})}function ub(n){for(var i,o=-1,s=0,l=n.length,p=-1/0;++o<l;)(i=+n[o][1])>p&&(p=i,s=o);return s}function z2(n){var i=n.map(U2);return lu(n).sort(function(o,s){return i[o]-i[s]})}function U2(n){for(var i,o=0,s=-1,l=n.length;++s<l;)(i=+n[s][1])&&(o+=i);return o}function q2(n){return z2(n).reverse()}function w_(n){var i,o,s=n.length,l=n.map(U2),p=Y2(n),b=0,v=0,T=[],N=[];for(i=0;i<s;++i)o=p[i],b<v?(b+=l[o],T.push(o)):(v+=l[o],N.push(o));return N.reverse().concat(T)}function Ws(n){return lu(n).reverse()}Us.prototype={areaStart:zs,areaEnd:zs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,i){n=+n,i=+i,this._point?this._context.lineTo(n,i):(this._point=1,this._context.moveTo(n,i))}},Ji.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vf(this,this._t0,ib(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){var o=NaN;if(i=+i,(n=+n)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,vf(this,ib(this,o=mf(this,n,i)),o);break;default:vf(this,this._t0,o=mf(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=o}}},(Cl.prototype=Object.create(Ji.prototype)).point=function(n,i){Ji.prototype.point.call(this,i,n)},Hs.prototype={moveTo:function(n,i){this._context.moveTo(i,n)},closePath:function(){this._context.closePath()},lineTo:function(n,i){this._context.lineTo(i,n)},bezierCurveTo:function(n,i,o,s,l,p){this._context.bezierCurveTo(i,n,s,o,p,l)}},b0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,i=this._y,o=n.length;if(o)if(this._line?this._context.lineTo(n[0],i[0]):this._context.moveTo(n[0],i[0]),o===2)this._context.lineTo(n[1],i[1]);else for(var s=ab(n),l=ab(i),p=0,b=1;b<o;++p,++b)this._context.bezierCurveTo(s[0][p],l[0][p],s[1][p],l[1][p],n[b],i[b]);(this._line||this._line!==0&&o===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,i){this._x.push(+n),this._y.push(+i)}},_f.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var o=this._x*(1-this._t)+n*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,i)}}this._x=n,this._y=i}};var Al="%Y-%m-%dT%H:%M:%S.%LZ",hu=Date.prototype.toISOString?function(n){return n.toISOString()}:Ed(Al);const wf=hu;var lb=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Qh(Al);const hb=lb;function H2(n,i,o){var s=new $t,l=i;return i==null?(s.restart(n,i,o),s):(i=+i,o=o==null?$():+o,s.restart(function p(b){b+=l,s.restart(p,l+=i,o),n(b)},i,o),s)}function W2(n){return function(){return n}}function fb(n){return n[0]}function db(n){return n[1]}function _0(){this._=null}function Ml(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function fu(n,i){var o=i,s=i.R,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.R=s.L,o.R&&(o.R.U=o),s.L=o}function kc(n,i){var o=i,s=i.L,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.L=s.R,o.L&&(o.L.U=o),s.R=o}function $2(n){for(;n.L;)n=n.L;return n}_0.prototype={constructor:_0,insert:function(n,i){var o,s,l;if(n){if(i.P=n,i.N=n.N,n.N&&(n.N.P=i),n.N=i,n.R){for(n=n.R;n.L;)n=n.L;n.L=i}else n.R=i;o=n}else this._?(n=$2(this._),i.P=null,i.N=n,n.P=n.L=i,o=n):(i.P=i.N=null,this._=i,o=null);for(i.L=i.R=null,i.U=o,i.C=!0,n=i;o&&o.C;)o===(s=o.U).L?(l=s.R)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.R&&(fu(this,o),o=(n=o).U),o.C=!1,s.C=!0,kc(this,s)):(l=s.L)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.L&&(kc(this,o),o=(n=o).U),o.C=!1,s.C=!0,fu(this,s)),o=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var i,o,s,l=n.U,p=n.L,b=n.R;if(o=p?b?$2(b):p:b,l?l.L===n?l.L=o:l.R=o:this._=o,p&&b?(s=o.C,o.C=n.C,o.L=p,p.U=o,o!==b?(l=o.U,o.U=n.U,n=o.R,l.L=n,o.R=b,b.U=o):(o.U=l,l=o,n=o.R)):(s=n.C,n=o),n&&(n.U=l),!s)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===l.L){if((i=l.R).C&&(i.C=!1,l.C=!0,fu(this,l),i=l.R),i.L&&i.L.C||i.R&&i.R.C){i.R&&i.R.C||(i.L.C=!1,i.C=!0,kc(this,i),i=l.R),i.C=l.C,l.C=i.R.C=!1,fu(this,l),n=this._;break}}else if((i=l.L).C&&(i.C=!1,l.C=!0,kc(this,l),i=l.L),i.L&&i.L.C||i.R&&i.R.C){i.L&&i.L.C||(i.R.C=!1,i.C=!0,fu(this,i),i=l.L),i.C=l.C,l.C=i.L.C=!1,kc(this,l),n=this._;break}i.C=!0,n=l,l=l.U}while(!n.C);n&&(n.C=!1)}}};const pb=_0;function kf(n,i,o,s){var l=[null,null],p=aa.push(l)-1;return l.left=n,l.right=i,o&&x0(l,n,i,o),s&&x0(l,i,n,s),Qa[n.index].halfedges.push(p),Qa[i.index].halfedges.push(p),l}function Tf(n,i,o){var s=[i,o];return s.left=n,s}function x0(n,i,o,s){n[0]||n[1]?n.left===o?n[1]=s:n[0]=s:(n[0]=s,n.left=i,n.right=o)}function Ef(n,i,o,s,l){var p,b=n[0],v=n[1],T=b[0],N=b[1],B=0,F=1,O=v[0]-T,z=v[1]-N;if(p=i-T,O||!(p>0)){if(p/=O,O<0){if(p<B)return;p<F&&(F=p)}else if(O>0){if(p>F)return;p>B&&(B=p)}if(p=s-T,O||!(p<0)){if(p/=O,O<0){if(p>F)return;p>B&&(B=p)}else if(O>0){if(p<B)return;p<F&&(F=p)}if(p=o-N,z||!(p>0)){if(p/=z,z<0){if(p<B)return;p<F&&(F=p)}else if(z>0){if(p>F)return;p>B&&(B=p)}if(p=l-N,z||!(p<0)){if(p/=z,z<0){if(p>F)return;p>B&&(B=p)}else if(z>0){if(p<B)return;p<F&&(F=p)}return!(B>0||F<1)||(B>0&&(n[0]=[T+B*O,N+B*z]),F<1&&(n[1]=[T+F*O,N+F*z]),!0)}}}}}function k_(n,i,o,s,l){var p=n[1];if(p)return!0;var b,v,T=n[0],N=n.left,B=n.right,F=N[0],O=N[1],z=B[0],U=B[1],Q=(F+z)/2,Z=(O+U)/2;if(U===O){if(Q<i||Q>=s)return;if(F>z){if(T){if(T[1]>=l)return}else T=[Q,o];p=[Q,l]}else{if(T){if(T[1]<o)return}else T=[Q,l];p=[Q,o]}}else if(v=Z-(b=(F-z)/(U-O))*Q,b<-1||b>1)if(F>z){if(T){if(T[1]>=l)return}else T=[(o-v)/b,o];p=[(l-v)/b,l]}else{if(T){if(T[1]<o)return}else T=[(l-v)/b,l];p=[(o-v)/b,o]}else if(O<U){if(T){if(T[0]>=s)return}else T=[i,b*i+v];p=[s,b*s+v]}else{if(T){if(T[0]<i)return}else T=[s,b*s+v];p=[i,b*i+v]}return n[0]=T,n[1]=p,!0}function fs(n,i){var o=n.site,s=i.left,l=i.right;return o===l&&(l=s,s=o),l?Math.atan2(l[1]-s[1],l[0]-s[0]):(o===s?(s=i[1],l=i[0]):(s=i[0],l=i[1]),Math.atan2(s[0]-l[0],l[1]-s[1]))}function gb(n,i){return i[+(i.left!==n.site)]}function T_(n,i){return i[+(i.left===n.site)]}var V2,G2=[];function E_(){Ml(this),this.x=this.y=this.arc=this.site=this.cy=null}function Nl(n){var i=n.P,o=n.N;if(i&&o){var s=i.site,l=n.site,p=o.site;if(s!==p){var b=l[0],v=l[1],T=s[0]-b,N=s[1]-v,B=p[0]-b,F=p[1]-v,O=2*(T*F-N*B);if(!(O>=-N_)){var z=T*T+N*N,U=B*B+F*F,Q=(F*z-N*U)/O,Z=(T*U-B*z)/O,G=G2.pop()||new E_;G.arc=n,G.site=l,G.x=Q+b,G.y=(G.cy=Z+v)+Math.sqrt(Q*Q+Z*Z),n.circle=G;for(var rt=null,et=Cf._;et;)if(G.y<et.y||G.y===et.y&&G.x<=et.x){if(!et.L){rt=et.P;break}et=et.L}else{if(!et.R){rt=et;break}et=et.R}Cf.insert(rt,G),rt||(V2=G)}}}}function Dl(n){var i=n.circle;i&&(i.P||(V2=i.N),Cf.remove(i),G2.push(i),Ml(i),n.circle=null)}var yb=[];function C_(){Ml(this),this.edge=this.site=this.circle=null}function mb(n){var i=yb.pop()||new C_;return i.site=n,i}function Ol(n){Dl(n),Bl.remove(n),yb.push(n),Ml(n)}function S_(n){var i=n.circle,o=i.x,s=i.cy,l=[o,s],p=n.P,b=n.N,v=[n];Ol(n);for(var T=p;T.circle&&Math.abs(o-T.circle.x)<Dr&&Math.abs(s-T.circle.cy)<Dr;)p=T.P,v.unshift(T),Ol(T),T=p;v.unshift(T),Dl(T);for(var N=b;N.circle&&Math.abs(o-N.circle.x)<Dr&&Math.abs(s-N.circle.cy)<Dr;)b=N.N,v.push(N),Ol(N),N=b;v.push(N),Dl(N);var B,F=v.length;for(B=1;B<F;++B)N=v[B],T=v[B-1],x0(N.edge,T.site,N.site,l);T=v[0],(N=v[F-1]).edge=kf(T.site,N.site,null,l),Nl(T),Nl(N)}function A_(n){for(var i,o,s,l,p=n[0],b=n[1],v=Bl._;v;)if((s=vb(v,b)-p)>Dr)v=v.L;else{if(!((l=p-M_(v,b))>Dr)){s>-Dr?(i=v.P,o=v):l>-Dr?(i=v,o=v.N):i=o=v;break}if(!v.R){i=v;break}v=v.R}(function(Pt){Qa[Pt.index]={site:Pt,halfedges:[]}})(n);var T=mb(n);if(Bl.insert(i,T),i||o){if(i===o)return Dl(i),o=mb(i.site),Bl.insert(T,o),T.edge=o.edge=kf(i.site,T.site),Nl(i),void Nl(o);if(o){Dl(i),Dl(o);var N=i.site,B=N[0],F=N[1],O=n[0]-B,z=n[1]-F,U=o.site,Q=U[0]-B,Z=U[1]-F,G=2*(O*Z-z*Q),rt=O*O+z*z,et=Q*Q+Z*Z,ut=[(Z*rt-z*et)/G+B,(O*et-Q*rt)/G+F];x0(o.edge,N,U,ut),T.edge=kf(N,n,null,ut),o.edge=kf(n,U,null,ut),Nl(i),Nl(o)}else T.edge=kf(i.site,T.site)}}function vb(n,i){var o=n.site,s=o[0],l=o[1],p=l-i;if(!p)return s;var b=n.P;if(!b)return-1/0;var v=(o=b.site)[0],T=o[1],N=T-i;if(!N)return v;var B=v-s,F=1/p-1/N,O=B/N;return F?(-O+Math.sqrt(O*O-2*F*(B*B/(-2*N)-T+N/2+l-p/2)))/F+s:(s+v)/2}function M_(n,i){var o=n.N;if(o)return vb(o,i);var s=n.site;return s[1]===i?s[0]:1/0}var Bl,Qa,Cf,aa,Dr=1e-6,N_=1e-12;function ue(n,i,o){return(n[0]-o[0])*(i[1]-n[1])-(n[0]-i[0])*(o[1]-n[1])}function Ge(n,i){return i[1]-n[1]||i[0]-n[0]}function du(n,i){var o,s,l,p=n.sort(Ge).pop();for(aa=[],Qa=new Array(n.length),Bl=new pb,Cf=new pb;;)if(l=V2,p&&(!l||p[1]<l.y||p[1]===l.y&&p[0]<l.x))p[0]===o&&p[1]===s||(A_(p),o=p[0],s=p[1]),p=n.pop();else{if(!l)break;S_(l.arc)}if(function(){for(var B,F,O,z,U=0,Q=Qa.length;U<Q;++U)if((B=Qa[U])&&(z=(F=B.halfedges).length)){var Z=new Array(z),G=new Array(z);for(O=0;O<z;++O)Z[O]=O,G[O]=fs(B,aa[F[O]]);for(Z.sort(function(rt,et){return G[et]-G[rt]}),O=0;O<z;++O)G[O]=F[Z[O]];for(O=0;O<z;++O)F[O]=G[O]}}(),i){var b=+i[0][0],v=+i[0][1],T=+i[1][0],N=+i[1][1];(function(B,F,O,z){for(var U,Q=aa.length;Q--;)k_(U=aa[Q],B,F,O,z)&&Ef(U,B,F,O,z)&&(Math.abs(U[0][0]-U[1][0])>Dr||Math.abs(U[0][1]-U[1][1])>Dr)||delete aa[Q]})(b,v,T,N),function(B,F,O,z){var U,Q,Z,G,rt,et,ut,Pt,Vt,qt,be,Yt,ce=Qa.length,ct=!0;for(U=0;U<ce;++U)if(Q=Qa[U]){for(Z=Q.site,G=(rt=Q.halfedges).length;G--;)aa[rt[G]]||rt.splice(G,1);for(G=0,et=rt.length;G<et;)be=(qt=T_(Q,aa[rt[G]]))[0],Yt=qt[1],Pt=(ut=gb(Q,aa[rt[++G%et]]))[0],Vt=ut[1],(Math.abs(be-Pt)>Dr||Math.abs(Yt-Vt)>Dr)&&(rt.splice(G,0,aa.push(Tf(Z,qt,Math.abs(be-B)<Dr&&z-Yt>Dr?[B,Math.abs(Pt-B)<Dr?Vt:z]:Math.abs(Yt-z)<Dr&&O-be>Dr?[Math.abs(Vt-z)<Dr?Pt:O,z]:Math.abs(be-O)<Dr&&Yt-F>Dr?[O,Math.abs(Pt-O)<Dr?Vt:F]:Math.abs(Yt-F)<Dr&&be-B>Dr?[Math.abs(Vt-F)<Dr?Pt:B,F]:null))-1),++et);et&&(ct=!1)}if(ct){var xt,ie,Kt,ae=1/0;for(U=0,ct=null;U<ce;++U)(Q=Qa[U])&&(Kt=(xt=(Z=Q.site)[0]-B)*xt+(ie=Z[1]-F)*ie)<ae&&(ae=Kt,ct=Q);if(ct){var Be=[B,F],$e=[B,z],dn=[O,z],Fn=[O,F];ct.halfedges.push(aa.push(Tf(Z=ct.site,Be,$e))-1,aa.push(Tf(Z,$e,dn))-1,aa.push(Tf(Z,dn,Fn))-1,aa.push(Tf(Z,Fn,Be))-1)}}for(U=0;U<ce;++U)(Q=Qa[U])&&(Q.halfedges.length||delete Qa[U])}(b,v,T,N)}this.edges=aa,this.cells=Qa,Bl=Cf=aa=Qa=null}function Ll(){var n=fb,i=db,o=null;function s(l){return new du(l.map(function(p,b){var v=[Math.round(n(p,b,l)/Dr)*Dr,Math.round(i(p,b,l)/Dr)*Dr];return v.index=b,v.data=p,v}),o)}return s.polygons=function(l){return s(l).polygons()},s.links=function(l){return s(l).links()},s.triangles=function(l){return s(l).triangles()},s.x=function(l){return arguments.length?(n=typeof l=="function"?l:W2(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:W2(+l),s):i},s.extent=function(l){return arguments.length?(o=l==null?null:[[+l[0][0],+l[0][1]],[+l[1][0],+l[1][1]]],s):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},s.size=function(l){return arguments.length?(o=l==null?null:[[0,0],[+l[0],+l[1]]],s):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},s}function Il(n){return function(){return n}}function X2(n,i,o){this.target=n,this.type=i,this.transform=o}function ds(n,i,o){this.k=n,this.x=i,this.y=o}du.prototype={constructor:du,polygons:function(){var n=this.edges;return this.cells.map(function(i){var o=i.halfedges.map(function(s){return gb(i,n[s])});return o.data=i.site.data,o})},triangles:function(){var n=[],i=this.edges;return this.cells.forEach(function(o,s){if(p=(l=o.halfedges).length)for(var l,p,b,v=o.site,T=-1,N=i[l[p-1]],B=N.left===v?N.right:N.left;++T<p;)b=B,B=(N=i[l[T]]).left===v?N.right:N.left,b&&B&&s<b.index&&s<B.index&&ue(v,b,B)<0&&n.push([v.data,b.data,B.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,i,o){for(var s,l,p=this,b=p._found||0,v=p.cells.length;!(l=p.cells[b]);)if(++b>=v)return null;var T=n-l.site[0],N=i-l.site[1],B=T*T+N*N;do l=p.cells[s=b],b=null,l.halfedges.forEach(function(F){var O=p.edges[F],z=O.left;if(z!==l.site&&z||(z=O.right)){var U=n-z[0],Q=i-z[1],Z=U*U+Q*Q;Z<B&&(B=Z,b=z.index)}});while(b!==null);return p._found=s,o==null||B<=o*o?l.site:null}},ds.prototype={constructor:ds,scale:function(n){return n===1?this:new ds(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new ds(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Sf=new ds(1,0,0);function Af(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Sf;return n.__zoom}function w0(){pt.stopImmediatePropagation()}function Yo(){pt.preventDefault(),pt.stopImmediatePropagation()}function D_(){return!pt.ctrlKey&&!pt.button}function Mf(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Nf(){return this.__zoom||Sf}function bb(){return-pt.deltaY*(pt.deltaMode===1?.05:pt.deltaMode?1:.002)}function Z2(){return navigator.maxTouchPoints||"ontouchstart"in this}function k0(n,i,o){var s=n.invertX(i[0][0])-o[0][0],l=n.invertX(i[1][0])-o[1][0],p=n.invertY(i[0][1])-o[0][1],b=n.invertY(i[1][1])-o[1][1];return n.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),b>p?(p+b)/2:Math.min(0,p)||Math.max(0,b))}function T0(){var n,i,o=D_,s=Mf,l=k0,p=bb,b=Z2,v=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],N=250,B=id,F=an("start","zoom","end"),O=500,z=0;function U(ct){ct.property("__zoom",Nf).on("wheel.zoom",Pt).on("mousedown.zoom",Vt).on("dblclick.zoom",qt).filter(b).on("touchstart.zoom",be).on("touchmove.zoom",Yt).on("touchend.zoom touchcancel.zoom",ce).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Q(ct,xt){return(xt=Math.max(v[0],Math.min(v[1],xt)))===ct.k?ct:new ds(xt,ct.x,ct.y)}function Z(ct,xt,ie){var Kt=xt[0]-ie[0]*ct.k,ae=xt[1]-ie[1]*ct.k;return Kt===ct.x&&ae===ct.y?ct:new ds(ct.k,Kt,ae)}function G(ct){return[(+ct[0][0]+ +ct[1][0])/2,(+ct[0][1]+ +ct[1][1])/2]}function rt(ct,xt,ie){ct.on("start.zoom",function(){et(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){et(this,arguments).end()}).tween("zoom",function(){var Kt=this,ae=arguments,Be=et(Kt,ae),$e=s.apply(Kt,ae),dn=ie==null?G($e):typeof ie=="function"?ie.apply(Kt,ae):ie,Fn=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),ir=Kt.__zoom,rn=typeof xt=="function"?xt.apply(Kt,ae):xt,tr=B(ir.invert(dn).concat(Fn/ir.k),rn.invert(dn).concat(Fn/rn.k));return function(Dn){if(Dn===1)Dn=rn;else{var Sn=tr(Dn),sr=Fn/Sn[2];Dn=new ds(sr,dn[0]-Sn[0]*sr,dn[1]-Sn[1]*sr)}Be.zoom(null,Dn)}})}function et(ct,xt,ie){return!ie&&ct.__zooming||new ut(ct,xt)}function ut(ct,xt){this.that=ct,this.args=xt,this.active=0,this.extent=s.apply(ct,xt),this.taps=0}function Pt(){if(o.apply(this,arguments)){var ct=et(this,arguments),xt=this.__zoom,ie=Math.max(v[0],Math.min(v[1],xt.k*Math.pow(2,p.apply(this,arguments)))),Kt=ys(this);if(ct.wheel)ct.mouse[0][0]===Kt[0]&&ct.mouse[0][1]===Kt[1]||(ct.mouse[1]=xt.invert(ct.mouse[0]=Kt)),clearTimeout(ct.wheel);else{if(xt.k===ie)return;ct.mouse=[Kt,xt.invert(Kt)],ha(this),ct.start()}Yo(),ct.wheel=setTimeout(ae,150),ct.zoom("mouse",l(Z(Q(xt,ie),ct.mouse[0],ct.mouse[1]),ct.extent,T))}function ae(){ct.wheel=null,ct.end()}}function Vt(){if(!i&&o.apply(this,arguments)){var ct=et(this,arguments,!0),xt=pr(pt.view).on("mousemove.zoom",Be,!0).on("mouseup.zoom",$e,!0),ie=ys(this),Kt=pt.clientX,ae=pt.clientY;Kr(pt.view),w0(),ct.mouse=[ie,this.__zoom.invert(ie)],ha(this),ct.start()}function Be(){if(Yo(),!ct.moved){var dn=pt.clientX-Kt,Fn=pt.clientY-ae;ct.moved=dn*dn+Fn*Fn>z}ct.zoom("mouse",l(Z(ct.that.__zoom,ct.mouse[0]=ys(ct.that),ct.mouse[1]),ct.extent,T))}function $e(){xt.on("mousemove.zoom mouseup.zoom",null),Pr(pt.view,ct.moved),Yo(),ct.end()}}function qt(){if(o.apply(this,arguments)){var ct=this.__zoom,xt=ys(this),ie=ct.invert(xt),Kt=ct.k*(pt.shiftKey?.5:2),ae=l(Z(Q(ct,Kt),xt,ie),s.apply(this,arguments),T);Yo(),N>0?pr(this).transition().duration(N).call(rt,ae,xt):pr(this).call(U.transform,ae)}}function be(){if(o.apply(this,arguments)){var ct,xt,ie,Kt,ae=pt.touches,Be=ae.length,$e=et(this,arguments,pt.changedTouches.length===Be);for(w0(),xt=0;xt<Be;++xt)Kt=[Kt=la(this,ae,(ie=ae[xt]).identifier),this.__zoom.invert(Kt),ie.identifier],$e.touch0?$e.touch1||$e.touch0[2]===Kt[2]||($e.touch1=Kt,$e.taps=0):($e.touch0=Kt,ct=!0,$e.taps=1+!!n);n&&(n=clearTimeout(n)),ct&&($e.taps<2&&(n=setTimeout(function(){n=null},O)),ha(this),$e.start())}}function Yt(){if(this.__zooming){var ct,xt,ie,Kt,ae=et(this,arguments),Be=pt.changedTouches,$e=Be.length;for(Yo(),n&&(n=clearTimeout(n)),ae.taps=0,ct=0;ct<$e;++ct)ie=la(this,Be,(xt=Be[ct]).identifier),ae.touch0&&ae.touch0[2]===xt.identifier?ae.touch0[0]=ie:ae.touch1&&ae.touch1[2]===xt.identifier&&(ae.touch1[0]=ie);if(xt=ae.that.__zoom,ae.touch1){var dn=ae.touch0[0],Fn=ae.touch0[1],ir=ae.touch1[0],rn=ae.touch1[1],tr=(tr=ir[0]-dn[0])*tr+(tr=ir[1]-dn[1])*tr,Dn=(Dn=rn[0]-Fn[0])*Dn+(Dn=rn[1]-Fn[1])*Dn;xt=Q(xt,Math.sqrt(tr/Dn)),ie=[(dn[0]+ir[0])/2,(dn[1]+ir[1])/2],Kt=[(Fn[0]+rn[0])/2,(Fn[1]+rn[1])/2]}else{if(!ae.touch0)return;ie=ae.touch0[0],Kt=ae.touch0[1]}ae.zoom("touch",l(Z(xt,ie,Kt),ae.extent,T))}}function ce(){if(this.__zooming){var ct,xt,ie=et(this,arguments),Kt=pt.changedTouches,ae=Kt.length;for(w0(),i&&clearTimeout(i),i=setTimeout(function(){i=null},O),ct=0;ct<ae;++ct)xt=Kt[ct],ie.touch0&&ie.touch0[2]===xt.identifier?delete ie.touch0:ie.touch1&&ie.touch1[2]===xt.identifier&&delete ie.touch1;if(ie.touch1&&!ie.touch0&&(ie.touch0=ie.touch1,delete ie.touch1),ie.touch0)ie.touch0[1]=this.__zoom.invert(ie.touch0[0]);else if(ie.end(),ie.taps===2){var Be=pr(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return U.transform=function(ct,xt,ie){var Kt=ct.selection?ct.selection():ct;Kt.property("__zoom",Nf),ct!==Kt?rt(ct,xt,ie):Kt.interrupt().each(function(){et(this,arguments).start().zoom(null,typeof xt=="function"?xt.apply(this,arguments):xt).end()})},U.scaleBy=function(ct,xt,ie){U.scaleTo(ct,function(){var Kt=this.__zoom.k,ae=typeof xt=="function"?xt.apply(this,arguments):xt;return Kt*ae},ie)},U.scaleTo=function(ct,xt,ie){U.transform(ct,function(){var Kt=s.apply(this,arguments),ae=this.__zoom,Be=ie==null?G(Kt):typeof ie=="function"?ie.apply(this,arguments):ie,$e=ae.invert(Be),dn=typeof xt=="function"?xt.apply(this,arguments):xt;return l(Z(Q(ae,dn),Be,$e),Kt,T)},ie)},U.translateBy=function(ct,xt,ie){U.transform(ct,function(){return l(this.__zoom.translate(typeof xt=="function"?xt.apply(this,arguments):xt,typeof ie=="function"?ie.apply(this,arguments):ie),s.apply(this,arguments),T)})},U.translateTo=function(ct,xt,ie,Kt){U.transform(ct,function(){var ae=s.apply(this,arguments),Be=this.__zoom,$e=Kt==null?G(ae):typeof Kt=="function"?Kt.apply(this,arguments):Kt;return l(Sf.translate($e[0],$e[1]).scale(Be.k).translate(typeof xt=="function"?-xt.apply(this,arguments):-xt,typeof ie=="function"?-ie.apply(this,arguments):-ie),ae,T)},Kt)},ut.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ct,xt){return this.mouse&&ct!=="mouse"&&(this.mouse[1]=xt.invert(this.mouse[0])),this.touch0&&ct!=="touch"&&(this.touch0[1]=xt.invert(this.touch0[0])),this.touch1&&ct!=="touch"&&(this.touch1[1]=xt.invert(this.touch1[0])),this.that.__zoom=xt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ct){no(new X2(U,ct,this.that.__zoom),F.apply,F,[ct,this.that,this.args])}},U.wheelDelta=function(ct){return arguments.length?(p=typeof ct=="function"?ct:Il(+ct),U):p},U.filter=function(ct){return arguments.length?(o=typeof ct=="function"?ct:Il(!!ct),U):o},U.touchable=function(ct){return arguments.length?(b=typeof ct=="function"?ct:Il(!!ct),U):b},U.extent=function(ct){return arguments.length?(s=typeof ct=="function"?ct:Il([[+ct[0][0],+ct[0][1]],[+ct[1][0],+ct[1][1]]]),U):s},U.scaleExtent=function(ct){return arguments.length?(v[0]=+ct[0],v[1]=+ct[1],U):[v[0],v[1]]},U.translateExtent=function(ct){return arguments.length?(T[0][0]=+ct[0][0],T[1][0]=+ct[1][0],T[0][1]=+ct[0][1],T[1][1]=+ct[1][1],U):[[T[0][0],T[0][1]],[T[1][0],T[1][1]]]},U.constrain=function(ct){return arguments.length?(l=ct,U):l},U.duration=function(ct){return arguments.length?(N=+ct,U):N},U.interpolate=function(ct){return arguments.length?(B=ct,U):B},U.on=function(){var ct=F.on.apply(F,arguments);return ct===F?U:ct},U.clickDistance=function(ct){return arguments.length?(z=(ct=+ct)*ct,U):Math.sqrt(z)},U}Af.prototype=ds.prototype},681:(S,M,h)=>{S.exports={graphlib:h(574),layout:h(8123),debug:h(7570),util:{time:h(1138).time,notime:h(1138).notime},version:h(8177)}},1207:(S,M,h)=>{var m=h(8436),d=h(4079);S.exports={run:function(_){var g=_.graph().acyclicer==="greedy"?d(_,function(k){return function(C){return k.edge(C).weight}}(_)):function(k){var C=[],A={},I={};return m.forEach(k.nodes(),function L(Y){m.has(I,Y)||(I[Y]=!0,A[Y]=!0,m.forEach(k.outEdges(Y),function(q){m.has(A,q.w)?C.push(q):L(q.w)}),delete A[Y])}),C}(_);m.forEach(g,function(k){var C=_.edge(k);_.removeEdge(k),C.forwardName=k.name,C.reversed=!0,_.setEdge(k.w,k.v,C,m.uniqueId("rev"))})},undo:function(_){m.forEach(_.edges(),function(g){var k=_.edge(g);if(k.reversed){_.removeEdge(g);var C=k.forwardName;delete k.reversed,delete k.forwardName,_.setEdge(g.w,g.v,k,C)}})}}},1133:(S,M,h)=>{var m=h(8436),d=h(1138);function _(g,k,C,A,I,L){var Y={width:0,height:0,rank:L,borderType:k},q=I[k][L-1],H=d.addDummyNode(g,"border",Y,C);I[k][L]=H,g.setParent(H,A),q&&g.setEdge(q,H,{weight:1})}S.exports=function(g){m.forEach(g.children(),function k(C){var A=g.children(C),I=g.node(C);if(A.length&&m.forEach(A,k),m.has(I,"minRank")){I.borderLeft=[],I.borderRight=[];for(var L=I.minRank,Y=I.maxRank+1;L<Y;++L)_(g,"borderLeft","_bl",C,I,L),_(g,"borderRight","_br",C,I,L)}})}},3258:(S,M,h)=>{var m=h(8436);function d(C){m.forEach(C.nodes(),function(A){_(C.node(A))}),m.forEach(C.edges(),function(A){_(C.edge(A))})}function _(C){var A=C.width;C.width=C.height,C.height=A}function g(C){C.y=-C.y}function k(C){var A=C.x;C.x=C.y,C.y=A}S.exports={adjust:function(C){var A=C.graph().rankdir.toLowerCase();A!=="lr"&&A!=="rl"||d(C)},undo:function(C){var A=C.graph().rankdir.toLowerCase();A!=="bt"&&A!=="rl"||function(I){m.forEach(I.nodes(),function(L){g(I.node(L))}),m.forEach(I.edges(),function(L){var Y=I.edge(L);m.forEach(Y.points,g),m.has(Y,"y")&&g(Y)})}(C),A!=="lr"&&A!=="rl"||(function(I){m.forEach(I.nodes(),function(L){k(I.node(L))}),m.forEach(I.edges(),function(L){var Y=I.edge(L);m.forEach(Y.points,k),m.has(Y,"x")&&k(Y)})}(C),d(C))}}},7822:S=>{function M(){var d={};d._next=d._prev=d,this._sentinel=d}function h(d){d._prev._next=d._next,d._next._prev=d._prev,delete d._next,delete d._prev}function m(d,_){if(d!=="_next"&&d!=="_prev")return _}S.exports=M,M.prototype.dequeue=function(){var d=this._sentinel,_=d._prev;if(_!==d)return h(_),_},M.prototype.enqueue=function(d){var _=this._sentinel;d._prev&&d._next&&h(d),d._next=_._next,_._next._prev=d,_._next=d,d._prev=_},M.prototype.toString=function(){for(var d=[],_=this._sentinel,g=_._prev;g!==_;)d.push(JSON.stringify(g,m)),g=g._prev;return"["+d.join(", ")+"]"}},7570:(S,M,h)=>{var m=h(8436),d=h(1138),_=h(574).Graph;S.exports={debugOrdering:function(g){var k=d.buildLayerMatrix(g),C=new _({compound:!0,multigraph:!0}).setGraph({});return m.forEach(g.nodes(),function(A){C.setNode(A,{label:A}),C.setParent(A,"layer"+g.node(A).rank)}),m.forEach(g.edges(),function(A){C.setEdge(A.v,A.w,{},A.name)}),m.forEach(k,function(A,I){var L="layer"+I;C.setNode(L,{rank:"same"}),m.reduce(A,function(Y,q){return C.setEdge(Y,q,{style:"invis"}),q})}),C}}},574:(S,M,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),S.exports=m},4079:(S,M,h)=>{var m=h(8436),d=h(574).Graph,_=h(7822);S.exports=function(A,I){if(A.nodeCount()<=1)return[];var L=function(q,H){var V=new d,X=0,J=0;m.forEach(q.nodes(),function(_t){V.setNode(_t,{v:_t,in:0,out:0})}),m.forEach(q.edges(),function(_t){var dt=V.edge(_t.v,_t.w)||0,At=H(_t),st=dt+At;V.setEdge(_t.v,_t.w,st),J=Math.max(J,V.node(_t.v).out+=At),X=Math.max(X,V.node(_t.w).in+=At)});var lt=m.range(J+X+3).map(function(){return new _}),nt=X+1;return m.forEach(V.nodes(),function(_t){C(lt,nt,V.node(_t))}),{graph:V,buckets:lt,zeroIdx:nt}}(A,I||g),Y=function(q,H,V){for(var X,J=[],lt=H[H.length-1],nt=H[0];q.nodeCount();){for(;X=nt.dequeue();)k(q,H,V,X);for(;X=lt.dequeue();)k(q,H,V,X);if(q.nodeCount()){for(var _t=H.length-2;_t>0;--_t)if(X=H[_t].dequeue()){J=J.concat(k(q,H,V,X,!0));break}}}return J}(L.graph,L.buckets,L.zeroIdx);return m.flatten(m.map(Y,function(q){return A.outEdges(q.v,q.w)}),!0)};var g=m.constant(1);function k(A,I,L,Y,q){var H=q?[]:void 0;return m.forEach(A.inEdges(Y.v),function(V){var X=A.edge(V),J=A.node(V.v);q&&H.push({v:V.v,w:V.w}),J.out-=X,C(I,L,J)}),m.forEach(A.outEdges(Y.v),function(V){var X=A.edge(V),J=V.w,lt=A.node(J);lt.in-=X,C(I,L,lt)}),A.removeNode(Y.v),H}function C(A,I,L){L.out?L.in?A[L.out-L.in+I].enqueue(L):A[A.length-1].enqueue(L):A[0].enqueue(L)}},8123:(S,M,h)=>{var m=h(8436),d=h(1207),_=h(5995),g=h(8093),k=h(1138).normalizeRanks,C=h(4219),A=h(1138).removeEmptyRanks,I=h(2981),L=h(1133),Y=h(3258),q=h(3408),H=h(7873),V=h(1138),X=h(574).Graph;S.exports=function(It,ft){var vt=ft&&ft.debugTiming?V.time:V.notime;vt("layout",function(){var Wt=vt(" buildLayoutGraph",function(){return function(jt){var me=new X({multigraph:!0,compound:!0}),ge=St(jt.graph());return me.setGraph(m.merge({},lt,mt(ge,J),m.pick(ge,nt))),m.forEach(jt.nodes(),function(pe){var Dt=St(jt.node(pe));me.setNode(pe,m.defaults(mt(Dt,_t),dt)),me.setParent(pe,jt.parent(pe))}),m.forEach(jt.edges(),function(pe){var Dt=St(jt.edge(pe));me.setEdge(pe,m.merge({},st,mt(Dt,At),m.pick(Dt,K)))}),me}(It)});vt(" runLayout",function(){(function(jt,me){me(" makeSpaceForEdgeLabels",function(){(function(ge){var pe=ge.graph();pe.ranksep/=2,m.forEach(ge.edges(),function(Dt){var Zt=ge.edge(Dt);Zt.minlen*=2,Zt.labelpos.toLowerCase()!=="c"&&(pe.rankdir==="TB"||pe.rankdir==="BT"?Zt.width+=Zt.labeloffset:Zt.height+=Zt.labeloffset)})})(jt)}),me(" removeSelfEdges",function(){(function(ge){m.forEach(ge.edges(),function(pe){if(pe.v===pe.w){var Dt=ge.node(pe.v);Dt.selfEdges||(Dt.selfEdges=[]),Dt.selfEdges.push({e:pe,label:ge.edge(pe)}),ge.removeEdge(pe)}})})(jt)}),me(" acyclic",function(){d.run(jt)}),me(" nestingGraph.run",function(){I.run(jt)}),me(" rank",function(){g(V.asNonCompoundGraph(jt))}),me(" injectEdgeLabelProxies",function(){(function(ge){m.forEach(ge.edges(),function(pe){var Dt=ge.edge(pe);if(Dt.width&&Dt.height){var Zt=ge.node(pe.v),se={rank:(ge.node(pe.w).rank-Zt.rank)/2+Zt.rank,e:pe};V.addDummyNode(ge,"edge-proxy",se,"_ep")}})})(jt)}),me(" removeEmptyRanks",function(){A(jt)}),me(" nestingGraph.cleanup",function(){I.cleanup(jt)}),me(" normalizeRanks",function(){k(jt)}),me(" assignRankMinMax",function(){(function(ge){var pe=0;m.forEach(ge.nodes(),function(Dt){var Zt=ge.node(Dt);Zt.borderTop&&(Zt.minRank=ge.node(Zt.borderTop).rank,Zt.maxRank=ge.node(Zt.borderBottom).rank,pe=m.max(pe,Zt.maxRank))}),ge.graph().maxRank=pe})(jt)}),me(" removeEdgeLabelProxies",function(){(function(ge){m.forEach(ge.nodes(),function(pe){var Dt=ge.node(pe);Dt.dummy==="edge-proxy"&&(ge.edge(Dt.e).labelRank=Dt.rank,ge.removeNode(pe))})})(jt)}),me(" normalize.run",function(){_.run(jt)}),me(" parentDummyChains",function(){C(jt)}),me(" addBorderSegments",function(){L(jt)}),me(" order",function(){q(jt)}),me(" insertSelfEdges",function(){(function(ge){var pe=V.buildLayerMatrix(ge);m.forEach(pe,function(Dt){var Zt=0;m.forEach(Dt,function(se,le){var ye=ge.node(se);ye.order=le+Zt,m.forEach(ye.selfEdges,function(Ot){V.addDummyNode(ge,"selfedge",{width:Ot.label.width,height:Ot.label.height,rank:ye.rank,order:le+ ++Zt,e:Ot.e,label:Ot.label},"_se")}),delete ye.selfEdges})})})(jt)}),me(" adjustCoordinateSystem",function(){Y.adjust(jt)}),me(" position",function(){H(jt)}),me(" positionSelfEdges",function(){(function(ge){m.forEach(ge.nodes(),function(pe){var Dt=ge.node(pe);if(Dt.dummy==="selfedge"){var Zt=ge.node(Dt.e.v),se=Zt.x+Zt.width/2,le=Zt.y,ye=Dt.x-se,Ot=Zt.height/2;ge.setEdge(Dt.e,Dt.label),ge.removeNode(pe),Dt.label.points=[{x:se+2*ye/3,y:le-Ot},{x:se+5*ye/6,y:le-Ot},{x:se+ye,y:le},{x:se+5*ye/6,y:le+Ot},{x:se+2*ye/3,y:le+Ot}],Dt.label.x=Dt.x,Dt.label.y=Dt.y}})})(jt)}),me(" removeBorderNodes",function(){(function(ge){m.forEach(ge.nodes(),function(pe){if(ge.children(pe).length){var Dt=ge.node(pe),Zt=ge.node(Dt.borderTop),se=ge.node(Dt.borderBottom),le=ge.node(m.last(Dt.borderLeft)),ye=ge.node(m.last(Dt.borderRight));Dt.width=Math.abs(ye.x-le.x),Dt.height=Math.abs(se.y-Zt.y),Dt.x=le.x+Dt.width/2,Dt.y=Zt.y+Dt.height/2}}),m.forEach(ge.nodes(),function(pe){ge.node(pe).dummy==="border"&&ge.removeNode(pe)})})(jt)}),me(" normalize.undo",function(){_.undo(jt)}),me(" fixupEdgeLabelCoords",function(){(function(ge){m.forEach(ge.edges(),function(pe){var Dt=ge.edge(pe);if(m.has(Dt,"x"))switch(Dt.labelpos!=="l"&&Dt.labelpos!=="r"||(Dt.width-=Dt.labeloffset),Dt.labelpos){case"l":Dt.x-=Dt.width/2+Dt.labeloffset;break;case"r":Dt.x+=Dt.width/2+Dt.labeloffset}})})(jt)}),me(" undoCoordinateSystem",function(){Y.undo(jt)}),me(" translateGraph",function(){(function(ge){var pe=Number.POSITIVE_INFINITY,Dt=0,Zt=Number.POSITIVE_INFINITY,se=0,le=ge.graph(),ye=le.marginx||0,Ot=le.marginy||0;function We(he){var zt=he.x,te=he.y,at=he.width,ne=he.height;pe=Math.min(pe,zt-at/2),Dt=Math.max(Dt,zt+at/2),Zt=Math.min(Zt,te-ne/2),se=Math.max(se,te+ne/2)}m.forEach(ge.nodes(),function(he){We(ge.node(he))}),m.forEach(ge.edges(),function(he){var zt=ge.edge(he);m.has(zt,"x")&&We(zt)}),pe-=ye,Zt-=Ot,m.forEach(ge.nodes(),function(he){var zt=ge.node(he);zt.x-=pe,zt.y-=Zt}),m.forEach(ge.edges(),function(he){var zt=ge.edge(he);m.forEach(zt.points,function(te){te.x-=pe,te.y-=Zt}),m.has(zt,"x")&&(zt.x-=pe),m.has(zt,"y")&&(zt.y-=Zt)}),le.width=Dt-pe+ye,le.height=se-Zt+Ot})(jt)}),me(" assignNodeIntersects",function(){(function(ge){m.forEach(ge.edges(),function(pe){var Dt,Zt,se=ge.edge(pe),le=ge.node(pe.v),ye=ge.node(pe.w);se.points?(Dt=se.points[0],Zt=se.points[se.points.length-1]):(se.points=[],Dt=ye,Zt=le),se.points.unshift(V.intersectRect(le,Dt)),se.points.push(V.intersectRect(ye,Zt))})})(jt)}),me(" reversePoints",function(){(function(ge){m.forEach(ge.edges(),function(pe){var Dt=ge.edge(pe);Dt.reversed&&Dt.points.reverse()})})(jt)}),me(" acyclic.undo",function(){d.undo(jt)})})(Wt,vt)}),vt(" updateInputGraph",function(){(function(jt,me){m.forEach(jt.nodes(),function(ge){var pe=jt.node(ge),Dt=me.node(ge);pe&&(pe.x=Dt.x,pe.y=Dt.y,me.children(ge).length&&(pe.width=Dt.width,pe.height=Dt.height))}),m.forEach(jt.edges(),function(ge){var pe=jt.edge(ge),Dt=me.edge(ge);pe.points=Dt.points,m.has(Dt,"x")&&(pe.x=Dt.x,pe.y=Dt.y)}),jt.graph().width=me.graph().width,jt.graph().height=me.graph().height})(It,Wt)})})};var J=["nodesep","edgesep","ranksep","marginx","marginy"],lt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nt=["acyclicer","ranker","rankdir","align"],_t=["width","height"],dt={width:0,height:0},At=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function mt(It,ft){return m.mapValues(m.pick(It,ft),Number)}function St(It){var ft={};return m.forEach(It,function(vt,Wt){ft[Wt.toLowerCase()]=vt}),ft}},8436:(S,M,h)=>{var m;try{m={cloneDeep:h(361),constant:h(5703),defaults:h(1747),each:h(6073),filter:h(3105),find:h(3311),flatten:h(5564),forEach:h(4486),forIn:h(2620),has:h(8721),isUndefined:h(2353),last:h(928),map:h(5161),mapValues:h(6604),max:h(6162),merge:h(3857),min:h(3632),minBy:h(2762),now:h(7771),pick:h(9722),range:h(6026),reduce:h(4061),sortBy:h(9734),uniqueId:h(3955),values:h(2628),zipObject:h(7287)}}catch{}m||(m=window._),S.exports=m},2981:(S,M,h)=>{var m=h(8436),d=h(1138);function _(g,k,C,A,I,L,Y){var q=g.children(Y);if(q.length){var H=d.addBorderNode(g,"_bt"),V=d.addBorderNode(g,"_bb"),X=g.node(Y);g.setParent(H,Y),X.borderTop=H,g.setParent(V,Y),X.borderBottom=V,m.forEach(q,function(J){_(g,k,C,A,I,L,J);var lt=g.node(J),nt=lt.borderTop?lt.borderTop:J,_t=lt.borderBottom?lt.borderBottom:J,dt=lt.borderTop?A:2*A,At=nt!==_t?1:I-L[Y]+1;g.setEdge(H,nt,{weight:dt,minlen:At,nestingEdge:!0}),g.setEdge(_t,V,{weight:dt,minlen:At,nestingEdge:!0})}),g.parent(Y)||g.setEdge(k,H,{weight:0,minlen:I+L[Y]})}else Y!==k&&g.setEdge(k,Y,{weight:0,minlen:C})}S.exports={run:function(g){var k=d.addDummyNode(g,"root",{},"_root"),C=function(Y){var q={};function H(V,X){var J=Y.children(V);J&&J.length&&m.forEach(J,function(lt){H(lt,X+1)}),q[V]=X}return m.forEach(Y.children(),function(V){H(V,1)}),q}(g),A=m.max(m.values(C))-1,I=2*A+1;g.graph().nestingRoot=k,m.forEach(g.edges(),function(Y){g.edge(Y).minlen*=I});var L=function(Y){return m.reduce(Y.edges(),function(q,H){return q+Y.edge(H).weight},0)}(g)+1;m.forEach(g.children(),function(Y){_(g,k,I,L,A,C,Y)}),g.graph().nodeRankFactor=I},cleanup:function(g){var k=g.graph();g.removeNode(k.nestingRoot),delete k.nestingRoot,m.forEach(g.edges(),function(C){g.edge(C).nestingEdge&&g.removeEdge(C)})}}},5995:(S,M,h)=>{var m=h(8436),d=h(1138);S.exports={run:function(_){_.graph().dummyChains=[],m.forEach(_.edges(),function(g){(function(k,C){var A,I,L,Y=C.v,q=k.node(Y).rank,H=C.w,V=k.node(H).rank,X=C.name,J=k.edge(C),lt=J.labelRank;if(V!==q+1){for(k.removeEdge(C),L=0,++q;q<V;++L,++q)J.points=[],I={width:0,height:0,edgeLabel:J,edgeObj:C,rank:q},A=d.addDummyNode(k,"edge",I,"_d"),q===lt&&(I.width=J.width,I.height=J.height,I.dummy="edge-label",I.labelpos=J.labelpos),k.setEdge(Y,A,{weight:J.weight},X),L===0&&k.graph().dummyChains.push(A),Y=A;k.setEdge(Y,H,{weight:J.weight},X)}})(_,g)})},undo:function(_){m.forEach(_.graph().dummyChains,function(g){var k,C=_.node(g),A=C.edgeLabel;for(_.setEdge(C.edgeObj,A);C.dummy;)k=_.successors(g)[0],_.removeNode(g),A.points.push({x:C.x,y:C.y}),C.dummy==="edge-label"&&(A.x=C.x,A.y=C.y,A.width=C.width,A.height=C.height),g=k,C=_.node(g)})}}},5093:(S,M,h)=>{var m=h(8436);S.exports=function(d,_,g){var k,C={};m.forEach(g,function(A){for(var I,L,Y=d.parent(A);Y;){if((I=d.parent(Y))?(L=C[I],C[I]=Y):(L=k,k=Y),L&&L!==Y)return void _.setEdge(L,Y);Y=I}})}},5439:(S,M,h)=>{var m=h(8436);S.exports=function(d,_){return m.map(_,function(g){var k=d.inEdges(g);if(k.length){var C=m.reduce(k,function(A,I){var L=d.edge(I),Y=d.node(I.v);return{sum:A.sum+L.weight*Y.order,weight:A.weight+L.weight}},{sum:0,weight:0});return{v:g,barycenter:C.sum/C.weight,weight:C.weight}}return{v:g}})}},3128:(S,M,h)=>{var m=h(8436),d=h(574).Graph;S.exports=function(_,g,k){var C=function(I){for(var L;I.hasNode(L=m.uniqueId("_root")););return L}(_),A=new d({compound:!0}).setGraph({root:C}).setDefaultNodeLabel(function(I){return _.node(I)});return m.forEach(_.nodes(),function(I){var L=_.node(I),Y=_.parent(I);(L.rank===g||L.minRank<=g&&g<=L.maxRank)&&(A.setNode(I),A.setParent(I,Y||C),m.forEach(_[k](I),function(q){var H=q.v===I?q.w:q.v,V=A.edge(H,I),X=m.isUndefined(V)?0:V.weight;A.setEdge(H,I,{weight:_.edge(q).weight+X})}),m.has(L,"minRank")&&A.setNode(I,{borderLeft:L.borderLeft[g],borderRight:L.borderRight[g]}))}),A}},6630:(S,M,h)=>{var m=h(8436);function d(_,g,k){for(var C=m.zipObject(k,m.map(k,function(H,V){return V})),A=m.flatten(m.map(g,function(H){return m.sortBy(m.map(_.outEdges(H),function(V){return{pos:C[V.w],weight:_.edge(V).weight}}),"pos")}),!0),I=1;I<k.length;)I<<=1;var L=2*I-1;I-=1;var Y=m.map(new Array(L),function(){return 0}),q=0;return m.forEach(A.forEach(function(H){var V=H.pos+I;Y[V]+=H.weight;for(var X=0;V>0;)V%2&&(X+=Y[V+1]),Y[V=V-1>>1]+=H.weight;q+=H.weight*X})),q}S.exports=function(_,g){for(var k=0,C=1;C<g.length;++C)k+=d(_,g[C-1],g[C]);return k}},3408:(S,M,h)=>{var m=h(8436),d=h(2588),_=h(6630),g=h(1026),k=h(3128),C=h(5093),A=h(574).Graph,I=h(1138);function L(H,V,X){return m.map(V,function(J){return k(H,J,X)})}function Y(H,V){var X=new A;m.forEach(H,function(J){var lt=J.graph().root,nt=g(J,lt,X,V);m.forEach(nt.vs,function(_t,dt){J.node(_t).order=dt}),C(J,X,nt.vs)})}function q(H,V){m.forEach(V,function(X){m.forEach(X,function(J,lt){H.node(J).order=lt})})}S.exports=function(H){var V=I.maxRank(H),X=L(H,m.range(1,V+1),"inEdges"),J=L(H,m.range(V-1,-1,-1),"outEdges"),lt=d(H);q(H,lt);for(var nt,_t=Number.POSITIVE_INFINITY,dt=0,At=0;At<4;++dt,++At){Y(dt%2?X:J,dt%4>=2),lt=I.buildLayerMatrix(H);var st=_(H,lt);st<_t&&(At=0,nt=m.cloneDeep(lt),_t=st)}q(H,nt)}},2588:(S,M,h)=>{var m=h(8436);S.exports=function(d){var _={},g=m.filter(d.nodes(),function(I){return!d.children(I).length}),k=m.max(m.map(g,function(I){return d.node(I).rank})),C=m.map(m.range(k+1),function(){return[]}),A=m.sortBy(g,function(I){return d.node(I).rank});return m.forEach(A,function I(L){if(!m.has(_,L)){_[L]=!0;var Y=d.node(L);C[Y.rank].push(L),m.forEach(d.successors(L),I)}}),C}},9567:(S,M,h)=>{var m=h(8436);S.exports=function(d,_){var g={};return m.forEach(d,function(k,C){var A=g[k.v]={indegree:0,in:[],out:[],vs:[k.v],i:C};m.isUndefined(k.barycenter)||(A.barycenter=k.barycenter,A.weight=k.weight)}),m.forEach(_.edges(),function(k){var C=g[k.v],A=g[k.w];m.isUndefined(C)||m.isUndefined(A)||(A.indegree++,C.out.push(g[k.w]))}),function(k){var C=[];function A(Y){return function(q){var H,V,X,J;q.merged||(m.isUndefined(q.barycenter)||m.isUndefined(Y.barycenter)||q.barycenter>=Y.barycenter)&&(V=q,X=0,J=0,(H=Y).weight&&(X+=H.barycenter*H.weight,J+=H.weight),V.weight&&(X+=V.barycenter*V.weight,J+=V.weight),H.vs=V.vs.concat(H.vs),H.barycenter=X/J,H.weight=J,H.i=Math.min(V.i,H.i),V.merged=!0)}}function I(Y){return function(q){q.in.push(Y),--q.indegree==0&&k.push(q)}}for(;k.length;){var L=k.pop();C.push(L),m.forEach(L.in.reverse(),A(L)),m.forEach(L.out,I(L))}return m.map(m.filter(C,function(Y){return!Y.merged}),function(Y){return m.pick(Y,["vs","i","barycenter","weight"])})}(m.filter(g,function(k){return!k.indegree}))}},1026:(S,M,h)=>{var m=h(8436),d=h(5439),_=h(9567),g=h(7304);S.exports=function k(C,A,I,L){var Y=C.children(A),q=C.node(A),H=q?q.borderLeft:void 0,V=q?q.borderRight:void 0,X={};H&&(Y=m.filter(Y,function(At){return At!==H&&At!==V}));var J=d(C,Y);m.forEach(J,function(At){if(C.children(At.v).length){var st=k(C,At.v,I,L);X[At.v]=st,m.has(st,"barycenter")&&(K=At,mt=st,m.isUndefined(K.barycenter)?(K.barycenter=mt.barycenter,K.weight=mt.weight):(K.barycenter=(K.barycenter*K.weight+mt.barycenter*mt.weight)/(K.weight+mt.weight),K.weight+=mt.weight))}var K,mt});var lt=_(J,I);(function(At,st){m.forEach(At,function(K){K.vs=m.flatten(K.vs.map(function(mt){return st[mt]?st[mt].vs:mt}),!0)})})(lt,X);var nt=g(lt,L);if(H&&(nt.vs=m.flatten([H,nt.vs,V],!0),C.predecessors(H).length)){var _t=C.node(C.predecessors(H)[0]),dt=C.node(C.predecessors(V)[0]);m.has(nt,"barycenter")||(nt.barycenter=0,nt.weight=0),nt.barycenter=(nt.barycenter*nt.weight+_t.order+dt.order)/(nt.weight+2),nt.weight+=2}return nt}},7304:(S,M,h)=>{var m=h(8436),d=h(1138);function _(g,k,C){for(var A;k.length&&(A=m.last(k)).i<=C;)k.pop(),g.push(A.vs),C++;return C}S.exports=function(g,k){var C,A=d.partition(g,function(J){return m.has(J,"barycenter")}),I=A.lhs,L=m.sortBy(A.rhs,function(J){return-J.i}),Y=[],q=0,H=0,V=0;I.sort((C=!!k,function(J,lt){return J.barycenter<lt.barycenter?-1:J.barycenter>lt.barycenter?1:C?lt.i-J.i:J.i-lt.i})),V=_(Y,L,V),m.forEach(I,function(J){V+=J.vs.length,Y.push(J.vs),q+=J.barycenter*J.weight,H+=J.weight,V=_(Y,L,V)});var X={vs:m.flatten(Y,!0)};return H&&(X.barycenter=q/H,X.weight=H),X}},4219:(S,M,h)=>{var m=h(8436);S.exports=function(d){var _=function(g){var k={},C=0;return m.forEach(g.children(),function A(I){var L=C;m.forEach(g.children(I),A),k[I]={low:L,lim:C++}}),k}(d);m.forEach(d.graph().dummyChains,function(g){for(var k=d.node(g),C=k.edgeObj,A=function(V,X,J,lt){var nt,_t,dt=[],At=[],st=Math.min(X[J].low,X[lt].low),K=Math.max(X[J].lim,X[lt].lim);nt=J;do nt=V.parent(nt),dt.push(nt);while(nt&&(X[nt].low>st||K>X[nt].lim));for(_t=nt,nt=lt;(nt=V.parent(nt))!==_t;)At.push(nt);return{path:dt.concat(At.reverse()),lca:_t}}(d,_,C.v,C.w),I=A.path,L=A.lca,Y=0,q=I[Y],H=!0;g!==C.w;){if(k=d.node(g),H){for(;(q=I[Y])!==L&&d.node(q).maxRank<k.rank;)Y++;q===L&&(H=!1)}if(!H){for(;Y<I.length-1&&d.node(q=I[Y+1]).minRank<=k.rank;)Y++;q=I[Y]}d.setParent(g,q),g=d.successors(g)[0]}})}},3573:(S,M,h)=>{var m=h(8436),d=h(574).Graph,_=h(1138);function g(V,X){var J={};return m.reduce(X,function(lt,nt){var _t=0,dt=0,At=lt.length,st=m.last(nt);return m.forEach(nt,function(K,mt){var St=function(ft,vt){if(ft.node(vt).dummy)return m.find(ft.predecessors(vt),function(Wt){return ft.node(Wt).dummy})}(V,K),It=St?V.node(St).order:At;(St||K===st)&&(m.forEach(nt.slice(dt,mt+1),function(ft){m.forEach(V.predecessors(ft),function(vt){var Wt=V.node(vt),jt=Wt.order;!(jt<_t||It<jt)||Wt.dummy&&V.node(ft).dummy||C(J,vt,ft)})}),dt=mt+1,_t=It)}),nt}),J}function k(V,X){var J={};function lt(nt,_t,dt,At,st){var K;m.forEach(m.range(_t,dt),function(mt){K=nt[mt],V.node(K).dummy&&m.forEach(V.predecessors(K),function(St){var It=V.node(St);It.dummy&&(It.order<At||It.order>st)&&C(J,St,K)})})}return m.reduce(X,function(nt,_t){var dt,At=-1,st=0;return m.forEach(_t,function(K,mt){if(V.node(K).dummy==="border"){var St=V.predecessors(K);St.length&&(dt=V.node(St[0]).order,lt(_t,st,mt,At,dt),st=mt,At=dt)}lt(_t,st,_t.length,dt,nt.length)}),_t}),J}function C(V,X,J){if(X>J){var lt=X;X=J,J=lt}var nt=V[X];nt||(V[X]=nt={}),nt[J]=!0}function A(V,X,J){if(X>J){var lt=X;X=J,J=lt}return m.has(V[X],J)}function I(V,X,J,lt){var nt={},_t={},dt={};return m.forEach(X,function(At){m.forEach(At,function(st,K){nt[st]=st,_t[st]=st,dt[st]=K})}),m.forEach(X,function(At){var st=-1;m.forEach(At,function(K){var mt=lt(K);if(mt.length){mt=m.sortBy(mt,function(Wt){return dt[Wt]});for(var St=(mt.length-1)/2,It=Math.floor(St),ft=Math.ceil(St);It<=ft;++It){var vt=mt[It];_t[K]===K&&st<dt[vt]&&!A(J,K,vt)&&(_t[vt]=K,_t[K]=nt[K]=nt[vt],st=dt[vt])}}})}),{root:nt,align:_t}}function L(V,X,J,lt,nt){var _t={},dt=function(K,mt,St,It){var ft=new d,vt=K.graph(),Wt=function(jt,me,ge){return function(pe,Dt,Zt){var se,le=pe.node(Dt),ye=pe.node(Zt),Ot=0;if(Ot+=le.width/2,m.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":se=-le.width/2;break;case"r":se=le.width/2}if(se&&(Ot+=ge?se:-se),se=0,Ot+=(le.dummy?me:jt)/2,Ot+=(ye.dummy?me:jt)/2,Ot+=ye.width/2,m.has(ye,"labelpos"))switch(ye.labelpos.toLowerCase()){case"l":se=ye.width/2;break;case"r":se=-ye.width/2}return se&&(Ot+=ge?se:-se),se=0,Ot}}(vt.nodesep,vt.edgesep,It);return m.forEach(mt,function(jt){var me;m.forEach(jt,function(ge){var pe=St[ge];if(ft.setNode(pe),me){var Dt=St[me],Zt=ft.edge(Dt,pe);ft.setEdge(Dt,pe,Math.max(Wt(K,ge,me),Zt||0))}me=ge})}),ft}(V,X,J,nt),At=nt?"borderLeft":"borderRight";function st(K,mt){for(var St=dt.nodes(),It=St.pop(),ft={};It;)ft[It]?K(It):(ft[It]=!0,St.push(It),St=St.concat(mt(It))),It=St.pop()}return st(function(K){_t[K]=dt.inEdges(K).reduce(function(mt,St){return Math.max(mt,_t[St.v]+dt.edge(St))},0)},dt.predecessors.bind(dt)),st(function(K){var mt=dt.outEdges(K).reduce(function(It,ft){return Math.min(It,_t[ft.w]-dt.edge(ft))},Number.POSITIVE_INFINITY),St=V.node(K);mt!==Number.POSITIVE_INFINITY&&St.borderType!==At&&(_t[K]=Math.max(_t[K],mt))},dt.successors.bind(dt)),m.forEach(lt,function(K){_t[K]=_t[J[K]]}),_t}function Y(V,X){return m.minBy(m.values(X),function(J){var lt=Number.NEGATIVE_INFINITY,nt=Number.POSITIVE_INFINITY;return m.forIn(J,function(_t,dt){var At=function(st,K){return st.node(K).width}(V,dt)/2;lt=Math.max(_t+At,lt),nt=Math.min(_t-At,nt)}),lt-nt})}function q(V,X){var J=m.values(X),lt=m.min(J),nt=m.max(J);m.forEach(["u","d"],function(_t){m.forEach(["l","r"],function(dt){var At,st=_t+dt,K=V[st];if(K!==X){var mt=m.values(K);(At=dt==="l"?lt-m.min(mt):nt-m.max(mt))&&(V[st]=m.mapValues(K,function(St){return St+At}))}})})}function H(V,X){return m.mapValues(V.ul,function(J,lt){if(X)return V[X.toLowerCase()][lt];var nt=m.sortBy(m.map(V,lt));return(nt[1]+nt[2])/2})}S.exports={positionX:function(V){var X,J=_.buildLayerMatrix(V),lt=m.merge(g(V,J),k(V,J)),nt={};m.forEach(["u","d"],function(dt){X=dt==="u"?J:m.values(J).reverse(),m.forEach(["l","r"],function(At){At==="r"&&(X=m.map(X,function(St){return m.values(St).reverse()}));var st=(dt==="u"?V.predecessors:V.successors).bind(V),K=I(0,X,lt,st),mt=L(V,X,K.root,K.align,At==="r");At==="r"&&(mt=m.mapValues(mt,function(St){return-St})),nt[dt+At]=mt})});var _t=Y(V,nt);return q(nt,_t),H(nt,V.graph().align)},findType1Conflicts:g,findType2Conflicts:k,addConflict:C,hasConflict:A,verticalAlignment:I,horizontalCompaction:L,alignCoordinates:q,findSmallestWidthAlignment:Y,balance:H}},7873:(S,M,h)=>{var m=h(8436),d=h(1138),_=h(3573).positionX;S.exports=function(g){(function(k){var C=d.buildLayerMatrix(k),A=k.graph().ranksep,I=0;m.forEach(C,function(L){var Y=m.max(m.map(L,function(q){return k.node(q).height}));m.forEach(L,function(q){k.node(q).y=I+Y/2}),I+=Y+A})})(g=d.asNonCompoundGraph(g)),m.forEach(_(g),function(k,C){g.node(C).x=k})}},300:(S,M,h)=>{var m=h(8436),d=h(574).Graph,_=h(6681).slack;function g(A,I){return m.forEach(A.nodes(),function L(Y){m.forEach(I.nodeEdges(Y),function(q){var H=q.v,V=Y===H?q.w:H;A.hasNode(V)||_(I,q)||(A.setNode(V,{}),A.setEdge(Y,V,{}),L(V))})}),A.nodeCount()}function k(A,I){return m.minBy(I.edges(),function(L){if(A.hasNode(L.v)!==A.hasNode(L.w))return _(I,L)})}function C(A,I,L){m.forEach(A.nodes(),function(Y){I.node(Y).rank+=L})}S.exports=function(A){var I,L,Y=new d({directed:!1}),q=A.nodes()[0],H=A.nodeCount();for(Y.setNode(q,{});g(Y,A)<H;)I=k(Y,A),L=Y.hasNode(I.v)?_(A,I):-_(A,I),C(Y,A,L);return Y}},8093:(S,M,h)=>{var m=h(6681).longestPath,d=h(300),_=h(2472);S.exports=function(k){switch(k.graph().ranker){case"network-simplex":default:(function(C){_(C)})(k);break;case"tight-tree":(function(C){m(C),d(C)})(k);break;case"longest-path":g(k)}};var g=m},2472:(S,M,h)=>{var m=h(8436),d=h(300),_=h(6681).slack,g=h(6681).longestPath,k=h(574).alg.preorder,C=h(574).alg.postorder,A=h(1138).simplify;function I(nt){nt=A(nt),g(nt);var _t,dt=d(nt);for(q(dt),L(dt,nt);_t=V(dt);)J(dt,nt,_t,X(dt,nt,_t))}function L(nt,_t){var dt=C(nt,nt.nodes());dt=dt.slice(0,dt.length-1),m.forEach(dt,function(At){(function(st,K,mt){var St=st.node(mt).parent;st.edge(mt,St).cutvalue=Y(st,K,mt)})(nt,_t,At)})}function Y(nt,_t,dt){var At=nt.node(dt).parent,st=!0,K=_t.edge(dt,At),mt=0;return K||(st=!1,K=_t.edge(At,dt)),mt=K.weight,m.forEach(_t.nodeEdges(dt),function(St){var It,ft,vt=St.v===dt,Wt=vt?St.w:St.v;if(Wt!==At){var jt=vt===st,me=_t.edge(St).weight;if(mt+=jt?me:-me,It=dt,ft=Wt,nt.hasEdge(It,ft)){var ge=nt.edge(dt,Wt).cutvalue;mt+=jt?-ge:ge}}}),mt}function q(nt,_t){arguments.length<2&&(_t=nt.nodes()[0]),H(nt,{},1,_t)}function H(nt,_t,dt,At,st){var K=dt,mt=nt.node(At);return _t[At]=!0,m.forEach(nt.neighbors(At),function(St){m.has(_t,St)||(dt=H(nt,_t,dt,St,At))}),mt.low=K,mt.lim=dt++,st?mt.parent=st:delete mt.parent,dt}function V(nt){return m.find(nt.edges(),function(_t){return nt.edge(_t).cutvalue<0})}function X(nt,_t,dt){var At=dt.v,st=dt.w;_t.hasEdge(At,st)||(At=dt.w,st=dt.v);var K=nt.node(At),mt=nt.node(st),St=K,It=!1;K.lim>mt.lim&&(St=mt,It=!0);var ft=m.filter(_t.edges(),function(vt){return It===lt(0,nt.node(vt.v),St)&&It!==lt(0,nt.node(vt.w),St)});return m.minBy(ft,function(vt){return _(_t,vt)})}function J(nt,_t,dt,At){var st=dt.v,K=dt.w;nt.removeEdge(st,K),nt.setEdge(At.v,At.w,{}),q(nt),L(nt,_t),function(mt,St){var It=m.find(mt.nodes(),function(vt){return!St.node(vt).parent}),ft=k(mt,It);ft=ft.slice(1),m.forEach(ft,function(vt){var Wt=mt.node(vt).parent,jt=St.edge(vt,Wt),me=!1;jt||(jt=St.edge(Wt,vt),me=!0),St.node(vt).rank=St.node(Wt).rank+(me?jt.minlen:-jt.minlen)})}(nt,_t)}function lt(nt,_t,dt){return dt.low<=_t.lim&&_t.lim<=dt.lim}S.exports=I,I.initLowLimValues=q,I.initCutValues=L,I.calcCutValue=Y,I.leaveEdge=V,I.enterEdge=X,I.exchangeEdges=J},6681:(S,M,h)=>{var m=h(8436);S.exports={longestPath:function(d){var _={};m.forEach(d.sources(),function g(k){var C=d.node(k);if(m.has(_,k))return C.rank;_[k]=!0;var A=m.min(m.map(d.outEdges(k),function(I){return g(I.w)-d.edge(I).minlen}));return A!==Number.POSITIVE_INFINITY&&A!=null||(A=0),C.rank=A})},slack:function(d,_){return d.node(_.w).rank-d.node(_.v).rank-d.edge(_).minlen}}},1138:(S,M,h)=>{var m=h(8436),d=h(574).Graph;function _(k,C,A,I){var L;do L=m.uniqueId(I);while(k.hasNode(L));return A.dummy=C,k.setNode(L,A),L}function g(k){return m.max(m.map(k.nodes(),function(C){var A=k.node(C).rank;if(!m.isUndefined(A))return A}))}S.exports={addDummyNode:_,simplify:function(k){var C=new d().setGraph(k.graph());return m.forEach(k.nodes(),function(A){C.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){var I=C.edge(A.v,A.w)||{weight:0,minlen:1},L=k.edge(A);C.setEdge(A.v,A.w,{weight:I.weight+L.weight,minlen:Math.max(I.minlen,L.minlen)})}),C},asNonCompoundGraph:function(k){var C=new d({multigraph:k.isMultigraph()}).setGraph(k.graph());return m.forEach(k.nodes(),function(A){k.children(A).length||C.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){C.setEdge(A,k.edge(A))}),C},successorWeights:function(k){var C=m.map(k.nodes(),function(A){var I={};return m.forEach(k.outEdges(A),function(L){I[L.w]=(I[L.w]||0)+k.edge(L).weight}),I});return m.zipObject(k.nodes(),C)},predecessorWeights:function(k){var C=m.map(k.nodes(),function(A){var I={};return m.forEach(k.inEdges(A),function(L){I[L.v]=(I[L.v]||0)+k.edge(L).weight}),I});return m.zipObject(k.nodes(),C)},intersectRect:function(k,C){var A,I,L=k.x,Y=k.y,q=C.x-L,H=C.y-Y,V=k.width/2,X=k.height/2;if(!q&&!H)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(H)*V>Math.abs(q)*X?(H<0&&(X=-X),A=X*q/H,I=X):(q<0&&(V=-V),A=V,I=V*H/q),{x:L+A,y:Y+I}},buildLayerMatrix:function(k){var C=m.map(m.range(g(k)+1),function(){return[]});return m.forEach(k.nodes(),function(A){var I=k.node(A),L=I.rank;m.isUndefined(L)||(C[L][I.order]=A)}),C},normalizeRanks:function(k){var C=m.min(m.map(k.nodes(),function(A){return k.node(A).rank}));m.forEach(k.nodes(),function(A){var I=k.node(A);m.has(I,"rank")&&(I.rank-=C)})},removeEmptyRanks:function(k){var C=m.min(m.map(k.nodes(),function(Y){return k.node(Y).rank})),A=[];m.forEach(k.nodes(),function(Y){var q=k.node(Y).rank-C;A[q]||(A[q]=[]),A[q].push(Y)});var I=0,L=k.graph().nodeRankFactor;m.forEach(A,function(Y,q){m.isUndefined(Y)&&q%L!=0?--I:I&&m.forEach(Y,function(H){k.node(H).rank+=I})})},addBorderNode:function(k,C,A,I){var L={width:0,height:0};return arguments.length>=4&&(L.rank=A,L.order=I),_(k,"border",L,C)},maxRank:g,partition:function(k,C){var A={lhs:[],rhs:[]};return m.forEach(k,function(I){C(I)?A.lhs.push(I):A.rhs.push(I)}),A},time:function(k,C){var A=m.now();try{return C()}finally{console.log(k+" time: "+(m.now()-A)+"ms")}},notime:function(k,C){return C()}}},8177:S=>{S.exports="0.8.5"},7856:function(S){S.exports=function(){var M=Object.hasOwnProperty,h=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,_=Object.getOwnPropertyDescriptor,g=Object.freeze,k=Object.seal,C=Object.create,A=typeof Reflect!="undefined"&&Reflect,I=A.apply,L=A.construct;I||(I=function(Ht,Nt,oe){return Ht.apply(Nt,oe)}),g||(g=function(Ht){return Ht}),k||(k=function(Ht){return Ht}),L||(L=function(Ht,Nt){return new(Function.prototype.bind.apply(Ht,[null].concat(function(oe){if(Array.isArray(oe)){for(var tn=0,ve=Array(oe.length);tn<oe.length;tn++)ve[tn]=oe[tn];return ve}return Array.from(oe)}(Nt))))});var Y,q=st(Array.prototype.forEach),H=st(Array.prototype.pop),V=st(Array.prototype.push),X=st(String.prototype.toLowerCase),J=st(String.prototype.match),lt=st(String.prototype.replace),nt=st(String.prototype.indexOf),_t=st(String.prototype.trim),dt=st(RegExp.prototype.test),At=(Y=TypeError,function(){for(var Ht=arguments.length,Nt=Array(Ht),oe=0;oe<Ht;oe++)Nt[oe]=arguments[oe];return L(Y,Nt)});function st(Ht){return function(Nt){for(var oe=arguments.length,tn=Array(oe>1?oe-1:0),ve=1;ve<oe;ve++)tn[ve-1]=arguments[ve];return I(Ht,Nt,tn)}}function K(Ht,Nt){h&&h(Ht,null);for(var oe=Nt.length;oe--;){var tn=Nt[oe];if(typeof tn=="string"){var ve=X(tn);ve!==tn&&(m(Nt)||(Nt[oe]=ve),tn=ve)}Ht[tn]=!0}return Ht}function mt(Ht){var Nt=C(null),oe=void 0;for(oe in Ht)I(M,Ht,[oe])&&(Nt[oe]=Ht[oe]);return Nt}function St(Ht,Nt){for(;Ht!==null;){var oe=_(Ht,Nt);if(oe){if(oe.get)return st(oe.get);if(typeof oe.value=="function")return st(oe.value)}Ht=d(Ht)}return function(tn){return console.warn("fallback value for",tn),null}}var It=g(["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"]),ft=g(["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"]),vt=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wt=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jt=g(["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"]),me=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ge=g(["#text"]),pe=g(["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"]),Dt=g(["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"]),Zt=g(["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"]),se=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),le=k(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ye=k(/<%[\s\S]*|[\s\S]*%>/gm),Ot=k(/^data-[\-\w.\u00B7-\uFFFF]/),We=k(/^aria-[\-\w]+$/),he=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zt=k(/^(?:\w+script|data):/i),te=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ht){return typeof Ht}:function(Ht){return Ht&&typeof Symbol=="function"&&Ht.constructor===Symbol&&Ht!==Symbol.prototype?"symbol":typeof Ht};function ne(Ht){if(Array.isArray(Ht)){for(var Nt=0,oe=Array(Ht.length);Nt<Ht.length;Nt++)oe[Nt]=Ht[Nt];return oe}return Array.from(Ht)}var Mt=function(){return typeof window=="undefined"?null:window},Xt=function(Ht,Nt){if((Ht===void 0?"undefined":at(Ht))!=="object"||typeof Ht.createPolicy!="function")return null;var oe=null,tn="data-tt-policy-suffix";Nt.currentScript&&Nt.currentScript.hasAttribute(tn)&&(oe=Nt.currentScript.getAttribute(tn));var ve="dompurify"+(oe?"#"+oe:"");try{return Ht.createPolicy(ve,{createHTML:function(De){return De}})}catch{return console.warn("TrustedTypes policy "+ve+" could not be created."),null}};return function Ht(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mt(),oe=function(Bt){return Ht(Bt)};if(oe.version="2.3.5",oe.removed=[],!Nt||!Nt.document||Nt.document.nodeType!==9)return oe.isSupported=!1,oe;var tn=Nt.document,ve=Nt.document,De=Nt.DocumentFragment,ln=Nt.HTMLTemplateElement,Xe=Nt.Node,Ie=Nt.Element,Ae=Nt.NodeFilter,en=Nt.NamedNodeMap,Ue=en===void 0?Nt.NamedNodeMap||Nt.MozNamedAttrMap:en,Ze=Nt.HTMLFormElement,Qe=Nt.DOMParser,Le=Nt.trustedTypes,Yn=Ie.prototype,Me=St(Yn,"cloneNode"),an=St(Yn,"nextSibling"),vn=St(Yn,"childNodes"),Or=St(Yn,"parentNode");if(typeof ln=="function"){var bn=ve.createElement("template");bn.content&&bn.content.ownerDocument&&(ve=bn.content.ownerDocument)}var Kn=Xt(Le,tn),cn=Kn?Kn.createHTML(""):"",gn=ve,Ke=gn.implementation,Tn=gn.createNodeIterator,wn=gn.createDocumentFragment,zn=gn.getElementsByTagName,Un=tn.importNode,Cr={};try{Cr=mt(ve).documentMode?ve.documentMode:{}}catch{}var kn={};oe.isSupported=typeof Or=="function"&&Ke&&Ke.createHTMLDocument!==void 0&&Cr!==9;var Hn=le,Pn=ye,$n=Ot,Vn=We,Jn=zt,An=te,Ln=he,un=null,jn=K({},[].concat(ne(It),ne(ft),ne(vt),ne(jt),ne(ge))),mn=null,ei=K({},[].concat(ne(pe),ne(Dt),ne(Zt),ne(se))),dr=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ii=null,In=null,po=!0,oa=!0,ni=!1,Br=!1,Fr=!1,$r=!1,Xr=!1,Sr=!1,Zr=!1,Lr=!1,Ci=!0,ai=!0,er=!1,Hr={},sa=null,Qr=K({},["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"]),ca=null,eo=K({},["audio","video","img","source","image","track"]),oi=null,on=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",En="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml",Xn=Re,pt=!1,Vr=void 0,Qt=["application/xhtml+xml","text/html"],Si="text/html",Wi=void 0,Ba=null,no=ve.createElement("form"),go=function(Bt){return Bt instanceof RegExp||Bt instanceof Function},yo=function(Bt){Ba&&Ba===Bt||(Bt&&(Bt===void 0?"undefined":at(Bt))==="object"||(Bt={}),Bt=mt(Bt),un="ALLOWED_TAGS"in Bt?K({},Bt.ALLOWED_TAGS):jn,mn="ALLOWED_ATTR"in Bt?K({},Bt.ALLOWED_ATTR):ei,oi="ADD_URI_SAFE_ATTR"in Bt?K(mt(on),Bt.ADD_URI_SAFE_ATTR):on,ca="ADD_DATA_URI_TAGS"in Bt?K(mt(eo),Bt.ADD_DATA_URI_TAGS):eo,sa="FORBID_CONTENTS"in Bt?K({},Bt.FORBID_CONTENTS):Qr,Ii="FORBID_TAGS"in Bt?K({},Bt.FORBID_TAGS):{},In="FORBID_ATTR"in Bt?K({},Bt.FORBID_ATTR):{},Hr="USE_PROFILES"in Bt&&Bt.USE_PROFILES,po=Bt.ALLOW_ARIA_ATTR!==!1,oa=Bt.ALLOW_DATA_ATTR!==!1,ni=Bt.ALLOW_UNKNOWN_PROTOCOLS||!1,Br=Bt.SAFE_FOR_TEMPLATES||!1,Fr=Bt.WHOLE_DOCUMENT||!1,Sr=Bt.RETURN_DOM||!1,Zr=Bt.RETURN_DOM_FRAGMENT||!1,Lr=Bt.RETURN_TRUSTED_TYPE||!1,Xr=Bt.FORCE_BODY||!1,Ci=Bt.SANITIZE_DOM!==!1,ai=Bt.KEEP_CONTENT!==!1,er=Bt.IN_PLACE||!1,Ln=Bt.ALLOWED_URI_REGEXP||Ln,Xn=Bt.NAMESPACE||Re,Bt.CUSTOM_ELEMENT_HANDLING&&go(Bt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(dr.tagNameCheck=Bt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Bt.CUSTOM_ELEMENT_HANDLING&&go(Bt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(dr.attributeNameCheck=Bt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Bt.CUSTOM_ELEMENT_HANDLING&&typeof Bt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(dr.allowCustomizedBuiltInElements=Bt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Vr=Vr=Qt.indexOf(Bt.PARSER_MEDIA_TYPE)===-1?Si:Bt.PARSER_MEDIA_TYPE,Wi=Vr==="application/xhtml+xml"?function(qe){return qe}:X,Br&&(oa=!1),Zr&&(Sr=!0),Hr&&(un=K({},[].concat(ne(ge))),mn=[],Hr.html===!0&&(K(un,It),K(mn,pe)),Hr.svg===!0&&(K(un,ft),K(mn,Dt),K(mn,se)),Hr.svgFilters===!0&&(K(un,vt),K(mn,Dt),K(mn,se)),Hr.mathMl===!0&&(K(un,jt),K(mn,Zt),K(mn,se))),Bt.ADD_TAGS&&(un===jn&&(un=mt(un)),K(un,Bt.ADD_TAGS)),Bt.ADD_ATTR&&(mn===ei&&(mn=mt(mn)),K(mn,Bt.ADD_ATTR)),Bt.ADD_URI_SAFE_ATTR&&K(oi,Bt.ADD_URI_SAFE_ATTR),Bt.FORBID_CONTENTS&&(sa===Qr&&(sa=mt(sa)),K(sa,Bt.FORBID_CONTENTS)),ai&&(un["#text"]=!0),Fr&&K(un,["html","head","body"]),un.table&&(K(un,["tbody"]),delete Ii.tbody),g&&g(Bt),Ba=Bt)},Wr=K({},["mi","mo","mn","ms","mtext"]),$i=K({},["foreignobject","desc","title","annotation-xml"]),Cn=K({},ft);K(Cn,vt),K(Cn,Wt);var Ta=K({},jt);K(Ta,me);var La=function(Bt){var qe=Or(Bt);qe&&qe.tagName||(qe={namespaceURI:Re,tagName:"template"});var Ye=X(Bt.tagName),gr=X(qe.tagName);if(Bt.namespaceURI===En)return qe.namespaceURI===Re?Ye==="svg":qe.namespaceURI===Gn?Ye==="svg"&&(gr==="annotation-xml"||Wr[gr]):Boolean(Cn[Ye]);if(Bt.namespaceURI===Gn)return qe.namespaceURI===Re?Ye==="math":qe.namespaceURI===En?Ye==="math"&&$i[gr]:Boolean(Ta[Ye]);if(Bt.namespaceURI===Re){if(qe.namespaceURI===En&&!$i[gr]||qe.namespaceURI===Gn&&!Wr[gr])return!1;var vr=K({},["title","style","font","a","script"]);return!Ta[Ye]&&(vr[Ye]||!Cn[Ye])}return!1},pr=function(Bt){V(oe.removed,{element:Bt});try{Bt.parentNode.removeChild(Bt)}catch{try{Bt.outerHTML=cn}catch{Bt.remove()}}},Tr=function(Bt,qe){try{V(oe.removed,{attribute:qe.getAttributeNode(Bt),from:qe})}catch{V(oe.removed,{attribute:null,from:qe})}if(qe.removeAttribute(Bt),Bt==="is"&&!mn[Bt])if(Sr||Zr)try{pr(qe)}catch{}else try{qe.setAttribute(Bt,"")}catch{}},di=function(Bt){var qe=void 0,Ye=void 0;if(Xr)Bt="<remove></remove>"+Bt;else{var gr=J(Bt,/^[\r\n\t ]+/);Ye=gr&&gr[0]}Vr==="application/xhtml+xml"&&(Bt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Bt+"</body></html>");var vr=Kn?Kn.createHTML(Bt):Bt;if(Xn===Re)try{qe=new Qe().parseFromString(vr,Vr)}catch{}if(!qe||!qe.documentElement){qe=Ke.createDocument(Xn,"template",null);try{qe.documentElement.innerHTML=pt?"":vr}catch{}}var pi=qe.body||qe.documentElement;return Bt&&Ye&&pi.insertBefore(ve.createTextNode(Ye),pi.childNodes[0]||null),Xn===Re?zn.call(qe,Fr?"html":"body")[0]:Fr?qe.documentElement:pi},Kr=function(Bt){return Tn.call(Bt.ownerDocument||Bt,Bt,Ae.SHOW_ELEMENT|Ae.SHOW_COMMENT|Ae.SHOW_TEXT,null,!1)},Pr=function(Bt){return Bt instanceof Ze&&(typeof Bt.nodeName!="string"||typeof Bt.textContent!="string"||typeof Bt.removeChild!="function"||!(Bt.attributes instanceof Ue)||typeof Bt.removeAttribute!="function"||typeof Bt.setAttribute!="function"||typeof Bt.namespaceURI!="string"||typeof Bt.insertBefore!="function")},jr=function(Bt){return(Xe===void 0?"undefined":at(Xe))==="object"?Bt instanceof Xe:Bt&&(Bt===void 0?"undefined":at(Bt))==="object"&&typeof Bt.nodeType=="number"&&typeof Bt.nodeName=="string"},si=function(Bt,qe,Ye){kn[Bt]&&q(kn[Bt],function(gr){gr.call(oe,qe,Ye,Ba)})},Gr=function(Bt){var qe=void 0;if(si("beforeSanitizeElements",Bt,null),Pr(Bt)||J(Bt.nodeName,/[\u0080-\uFFFF]/))return pr(Bt),!0;var Ye=Wi(Bt.nodeName);if(si("uponSanitizeElement",Bt,{tagName:Ye,allowedTags:un}),!jr(Bt.firstElementChild)&&(!jr(Bt.content)||!jr(Bt.content.firstElementChild))&&dt(/<[/\w]/g,Bt.innerHTML)&&dt(/<[/\w]/g,Bt.textContent)||Ye==="select"&&dt(/<template/i,Bt.innerHTML))return pr(Bt),!0;if(!un[Ye]||Ii[Ye]){if(ai&&!sa[Ye]){var gr=Or(Bt)||Bt.parentNode,vr=vn(Bt)||Bt.childNodes;if(vr&&gr)for(var pi=vr.length-1;pi>=0;--pi)gr.insertBefore(Me(vr[pi],!0),an(Bt))}return!Ii[Ye]&&Ri(Ye)&&(dr.tagNameCheck instanceof RegExp&&dt(dr.tagNameCheck,Ye)||dr.tagNameCheck instanceof Function&&dr.tagNameCheck(Ye))?!1:(pr(Bt),!0)}return Bt instanceof Ie&&!La(Bt)?(pr(Bt),!0):Ye!=="noscript"&&Ye!=="noembed"||!dt(/<\/no(script|embed)/i,Bt.innerHTML)?(Br&&Bt.nodeType===3&&(qe=Bt.textContent,qe=lt(qe,Hn," "),qe=lt(qe,Pn," "),Bt.textContent!==qe&&(V(oe.removed,{element:Bt.cloneNode()}),Bt.textContent=qe)),si("afterSanitizeElements",Bt,null),!1):(pr(Bt),!0)},Vi=function(Bt,qe,Ye){if(Ci&&(qe==="id"||qe==="name")&&(Ye in ve||Ye in no))return!1;if(!(oa&&!In[qe]&&dt($n,qe))){if(!(po&&dt(Vn,qe))){if(!mn[qe]||In[qe]){if(!(Ri(Bt)&&(dr.tagNameCheck instanceof RegExp&&dt(dr.tagNameCheck,Bt)||dr.tagNameCheck instanceof Function&&dr.tagNameCheck(Bt))&&(dr.attributeNameCheck instanceof RegExp&&dt(dr.attributeNameCheck,qe)||dr.attributeNameCheck instanceof Function&&dr.attributeNameCheck(qe))||qe==="is"&&dr.allowCustomizedBuiltInElements&&(dr.tagNameCheck instanceof RegExp&&dt(dr.tagNameCheck,Ye)||dr.tagNameCheck instanceof Function&&dr.tagNameCheck(Ye))))return!1}else if(!oi[qe]){if(!dt(Ln,lt(Ye,An,""))){if((qe!=="src"&&qe!=="xlink:href"&&qe!=="href"||Bt==="script"||nt(Ye,"data:")!==0||!ca[Bt])&&!(ni&&!dt(Jn,lt(Ye,An,"")))){if(Ye)return!1}}}}}return!0},Ri=function(Bt){return Bt.indexOf("-")>0},Ai=function(Bt){var qe=void 0,Ye=void 0,gr=void 0,vr=void 0;si("beforeSanitizeAttributes",Bt,null);var pi=Bt.attributes;if(pi){var Jr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mn};for(vr=pi.length;vr--;){var gs=qe=pi[vr],ea=gs.name,Yr=gs.namespaceURI;if(Ye=_t(qe.value),gr=Wi(ea),Jr.attrName=gr,Jr.attrValue=Ye,Jr.keepAttr=!0,Jr.forceKeepAttr=void 0,si("uponSanitizeAttribute",Bt,Jr),Ye=Jr.attrValue,!Jr.forceKeepAttr&&(Tr(ea,Bt),Jr.keepAttr))if(dt(/\/>/i,Ye))Tr(ea,Bt);else{Br&&(Ye=lt(Ye,Hn," "),Ye=lt(Ye,Pn," "));var Vs=Wi(Bt.nodeName);if(Vi(Vs,gr,Ye))try{Yr?Bt.setAttributeNS(Yr,ea,Ye):Bt.setAttribute(ea,Ye),H(oe.removed)}catch{}}}si("afterSanitizeAttributes",Bt,null)}},ro=function Bt(qe){var Ye=void 0,gr=Kr(qe);for(si("beforeSanitizeShadowDOM",qe,null);Ye=gr.nextNode();)si("uponSanitizeShadowNode",Ye,null),Gr(Ye)||(Ye.content instanceof De&&Bt(Ye.content),Ai(Ye));si("afterSanitizeShadowDOM",qe,null)};return oe.sanitize=function(Bt,qe){var Ye=void 0,gr=void 0,vr=void 0,pi=void 0,Jr=void 0;if((pt=!Bt)&&(Bt="<!-->"),typeof Bt!="string"&&!jr(Bt)){if(typeof Bt.toString!="function")throw At("toString is not a function");if(typeof(Bt=Bt.toString())!="string")throw At("dirty is not a string, aborting")}if(!oe.isSupported){if(at(Nt.toStaticHTML)==="object"||typeof Nt.toStaticHTML=="function"){if(typeof Bt=="string")return Nt.toStaticHTML(Bt);if(jr(Bt))return Nt.toStaticHTML(Bt.outerHTML)}return Bt}if($r||yo(qe),oe.removed=[],typeof Bt=="string"&&(er=!1),er){if(Bt.nodeName){var gs=Wi(Bt.nodeName);if(!un[gs]||Ii[gs])throw At("root node is forbidden and cannot be sanitized in-place")}}else if(Bt instanceof Xe)(gr=(Ye=di("<!---->")).ownerDocument.importNode(Bt,!0)).nodeType===1&&gr.nodeName==="BODY"||gr.nodeName==="HTML"?Ye=gr:Ye.appendChild(gr);else{if(!Sr&&!Br&&!Fr&&Bt.indexOf("<")===-1)return Kn&&Lr?Kn.createHTML(Bt):Bt;if(!(Ye=di(Bt)))return Sr?null:Lr?cn:""}Ye&&Xr&&pr(Ye.firstChild);for(var ea=Kr(er?Bt:Ye);vr=ea.nextNode();)vr.nodeType===3&&vr===pi||Gr(vr)||(vr.content instanceof De&&ro(vr.content),Ai(vr),pi=vr);if(pi=null,er)return Bt;if(Sr){if(Zr)for(Jr=wn.call(Ye.ownerDocument);Ye.firstChild;)Jr.appendChild(Ye.firstChild);else Jr=Ye;return mn.shadowroot&&(Jr=Un.call(tn,Jr,!0)),Jr}var Yr=Fr?Ye.outerHTML:Ye.innerHTML;return Br&&(Yr=lt(Yr,Hn," "),Yr=lt(Yr,Pn," ")),Kn&&Lr?Kn.createHTML(Yr):Yr},oe.setConfig=function(Bt){yo(Bt),$r=!0},oe.clearConfig=function(){Ba=null,$r=!1},oe.isValidAttribute=function(Bt,qe,Ye){Ba||yo({});var gr=Wi(Bt),vr=Wi(qe);return Vi(gr,vr,Ye)},oe.addHook=function(Bt,qe){typeof qe=="function"&&(kn[Bt]=kn[Bt]||[],V(kn[Bt],qe))},oe.removeHook=function(Bt){kn[Bt]&&H(kn[Bt])},oe.removeHooks=function(Bt){kn[Bt]&&(kn[Bt]=[])},oe.removeAllHooks=function(){kn={}},oe}()}()},8282:(S,M,h)=>{var m=h(2354);S.exports={Graph:m.Graph,json:h(8974),alg:h(2440),version:m.version}},2842:(S,M,h)=>{var m=h(9126);S.exports=function(d){var _,g={},k=[];function C(A){m.has(g,A)||(g[A]=!0,_.push(A),m.each(d.successors(A),C),m.each(d.predecessors(A),C))}return m.each(d.nodes(),function(A){_=[],C(A),_.length&&k.push(_)}),k}},3984:(S,M,h)=>{var m=h(9126);function d(_,g,k,C,A,I){m.has(C,g)||(C[g]=!0,k||I.push(g),m.each(A(g),function(L){d(_,L,k,C,A,I)}),k&&I.push(g))}S.exports=function(_,g,k){m.isArray(g)||(g=[g]);var C=(_.isDirected()?_.successors:_.neighbors).bind(_),A=[],I={};return m.each(g,function(L){if(!_.hasNode(L))throw new Error("Graph does not have node: "+L);d(_,L,k==="post",I,C,A)}),A}},4847:(S,M,h)=>{var m=h(3763),d=h(9126);S.exports=function(_,g,k){return d.transform(_.nodes(),function(C,A){C[A]=m(_,A,g,k)},{})}},3763:(S,M,h)=>{var m=h(9126),d=h(9675);S.exports=function(g,k,C,A){return function(I,L,Y,q){var H,V,X={},J=new d,lt=function(nt){var _t=nt.v!==H?nt.v:nt.w,dt=X[_t],At=Y(nt),st=V.distance+At;if(At<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+nt+" Weight: "+At);st<dt.distance&&(dt.distance=st,dt.predecessor=H,J.decrease(_t,st))};for(I.nodes().forEach(function(nt){var _t=nt===L?0:Number.POSITIVE_INFINITY;X[nt]={distance:_t},J.add(nt,_t)});J.size()>0&&(H=J.removeMin(),(V=X[H]).distance!==Number.POSITIVE_INFINITY);)q(H).forEach(lt);return X}(g,String(k),C||_,A||function(I){return g.outEdges(I)})};var _=m.constant(1)},9096:(S,M,h)=>{var m=h(9126),d=h(5023);S.exports=function(_){return m.filter(d(_),function(g){return g.length>1||g.length===1&&_.hasEdge(g[0],g[0])})}},8924:(S,M,h)=>{var m=h(9126);S.exports=function(_,g,k){return function(C,A,I){var L={},Y=C.nodes();return Y.forEach(function(q){L[q]={},L[q][q]={distance:0},Y.forEach(function(H){q!==H&&(L[q][H]={distance:Number.POSITIVE_INFINITY})}),I(q).forEach(function(H){var V=H.v===q?H.w:H.v,X=A(H);L[q][V]={distance:X,predecessor:q}})}),Y.forEach(function(q){var H=L[q];Y.forEach(function(V){var X=L[V];Y.forEach(function(J){var lt=X[q],nt=H[J],_t=X[J],dt=lt.distance+nt.distance;dt<_t.distance&&(_t.distance=dt,_t.predecessor=nt.predecessor)})})}),L}(_,g||d,k||function(C){return _.outEdges(C)})};var d=m.constant(1)},2440:(S,M,h)=>{S.exports={components:h(2842),dijkstra:h(3763),dijkstraAll:h(4847),findCycles:h(9096),floydWarshall:h(8924),isAcyclic:h(2707),postorder:h(8828),preorder:h(2648),prim:h(514),tarjan:h(5023),topsort:h(2166)}},2707:(S,M,h)=>{var m=h(2166);S.exports=function(d){try{m(d)}catch(_){if(_ instanceof m.CycleException)return!1;throw _}return!0}},8828:(S,M,h)=>{var m=h(3984);S.exports=function(d,_){return m(d,_,"post")}},2648:(S,M,h)=>{var m=h(3984);S.exports=function(d,_){return m(d,_,"pre")}},514:(S,M,h)=>{var m=h(9126),d=h(771),_=h(9675);S.exports=function(g,k){var C,A=new d,I={},L=new _;function Y(H){var V=H.v===C?H.w:H.v,X=L.priority(V);if(X!==void 0){var J=k(H);J<X&&(I[V]=C,L.decrease(V,J))}}if(g.nodeCount()===0)return A;m.each(g.nodes(),function(H){L.add(H,Number.POSITIVE_INFINITY),A.setNode(H)}),L.decrease(g.nodes()[0],0);for(var q=!1;L.size()>0;){if(C=L.removeMin(),m.has(I,C))A.setEdge(C,I[C]);else{if(q)throw new Error("Input graph is not connected: "+g);q=!0}g.nodeEdges(C).forEach(Y)}return A}},5023:(S,M,h)=>{var m=h(9126);S.exports=function(d){var _=0,g=[],k={},C=[];function A(I){var L=k[I]={onStack:!0,lowlink:_,index:_++};if(g.push(I),d.successors(I).forEach(function(H){m.has(k,H)?k[H].onStack&&(L.lowlink=Math.min(L.lowlink,k[H].index)):(A(H),L.lowlink=Math.min(L.lowlink,k[H].lowlink))}),L.lowlink===L.index){var Y,q=[];do Y=g.pop(),k[Y].onStack=!1,q.push(Y);while(I!==Y);C.push(q)}}return d.nodes().forEach(function(I){m.has(k,I)||A(I)}),C}},2166:(S,M,h)=>{var m=h(9126);function d(g){var k={},C={},A=[];if(m.each(g.sinks(),function I(L){if(m.has(C,L))throw new _;m.has(k,L)||(C[L]=!0,k[L]=!0,m.each(g.predecessors(L),I),delete C[L],A.push(L))}),m.size(k)!==g.nodeCount())throw new _;return A}function _(){}S.exports=d,d.CycleException=_,_.prototype=new Error},9675:(S,M,h)=>{var m=h(9126);function d(){this._arr=[],this._keyIndices={}}S.exports=d,d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map(function(_){return _.key})},d.prototype.has=function(_){return m.has(this._keyIndices,_)},d.prototype.priority=function(_){var g=this._keyIndices[_];if(g!==void 0)return this._arr[g].priority},d.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(_,g){var k=this._keyIndices;if(_=String(_),!m.has(k,_)){var C=this._arr,A=C.length;return k[_]=A,C.push({key:_,priority:g}),this._decrease(A),!0}return!1},d.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},d.prototype.decrease=function(_,g){var k=this._keyIndices[_];if(g>this._arr[k].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[k].priority+" New: "+g);this._arr[k].priority=g,this._decrease(k)},d.prototype._heapify=function(_){var g=this._arr,k=2*_,C=k+1,A=_;k<g.length&&(A=g[k].priority<g[A].priority?k:A,C<g.length&&(A=g[C].priority<g[A].priority?C:A),A!==_&&(this._swap(_,A),this._heapify(A)))},d.prototype._decrease=function(_){for(var g,k=this._arr,C=k[_].priority;_!==0&&!(k[g=_>>1].priority<C);)this._swap(_,g),_=g},d.prototype._swap=function(_,g){var k=this._arr,C=this._keyIndices,A=k[_],I=k[g];k[_]=I,k[g]=A,C[I.key]=_,C[A.key]=g}},771:(S,M,h)=>{var m=h(9126);S.exports=_;var d="\0";function _(L){this._isDirected=!m.has(L,"directed")||L.directed,this._isMultigraph=!!m.has(L,"multigraph")&&L.multigraph,this._isCompound=!!m.has(L,"compound")&&L.compound,this._label=void 0,this._defaultNodeLabelFn=m.constant(void 0),this._defaultEdgeLabelFn=m.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function g(L,Y){L[Y]?L[Y]++:L[Y]=1}function k(L,Y){--L[Y]||delete L[Y]}function C(L,Y,q,H){var V=""+Y,X=""+q;if(!L&&V>X){var J=V;V=X,X=J}return V+""+X+""+(m.isUndefined(H)?"\0":H)}function A(L,Y,q,H){var V=""+Y,X=""+q;if(!L&&V>X){var J=V;V=X,X=J}var lt={v:V,w:X};return H&&(lt.name=H),lt}function I(L,Y){return C(L,Y.v,Y.w,Y.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(L){return this._label=L,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(L){return m.isFunction(L)||(L=m.constant(L)),this._defaultNodeLabelFn=L,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return m.keys(this._nodes)},_.prototype.sources=function(){var L=this;return m.filter(this.nodes(),function(Y){return m.isEmpty(L._in[Y])})},_.prototype.sinks=function(){var L=this;return m.filter(this.nodes(),function(Y){return m.isEmpty(L._out[Y])})},_.prototype.setNodes=function(L,Y){var q=arguments,H=this;return m.each(L,function(V){q.length>1?H.setNode(V,Y):H.setNode(V)}),this},_.prototype.setNode=function(L,Y){return m.has(this._nodes,L)?(arguments.length>1&&(this._nodes[L]=Y),this):(this._nodes[L]=arguments.length>1?Y:this._defaultNodeLabelFn(L),this._isCompound&&(this._parent[L]=d,this._children[L]={},this._children["\0"][L]=!0),this._in[L]={},this._preds[L]={},this._out[L]={},this._sucs[L]={},++this._nodeCount,this)},_.prototype.node=function(L){return this._nodes[L]},_.prototype.hasNode=function(L){return m.has(this._nodes,L)},_.prototype.removeNode=function(L){var Y=this;if(m.has(this._nodes,L)){var q=function(H){Y.removeEdge(Y._edgeObjs[H])};delete this._nodes[L],this._isCompound&&(this._removeFromParentsChildList(L),delete this._parent[L],m.each(this.children(L),function(H){Y.setParent(H)}),delete this._children[L]),m.each(m.keys(this._in[L]),q),delete this._in[L],delete this._preds[L],m.each(m.keys(this._out[L]),q),delete this._out[L],delete this._sucs[L],--this._nodeCount}return this},_.prototype.setParent=function(L,Y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(Y))Y=d;else{for(var q=Y+="";!m.isUndefined(q);q=this.parent(q))if(q===L)throw new Error("Setting "+Y+" as parent of "+L+" would create a cycle");this.setNode(Y)}return this.setNode(L),this._removeFromParentsChildList(L),this._parent[L]=Y,this._children[Y][L]=!0,this},_.prototype._removeFromParentsChildList=function(L){delete this._children[this._parent[L]][L]},_.prototype.parent=function(L){if(this._isCompound){var Y=this._parent[L];if(Y!==d)return Y}},_.prototype.children=function(L){if(m.isUndefined(L)&&(L=d),this._isCompound){var Y=this._children[L];if(Y)return m.keys(Y)}else{if(L===d)return this.nodes();if(this.hasNode(L))return[]}},_.prototype.predecessors=function(L){var Y=this._preds[L];if(Y)return m.keys(Y)},_.prototype.successors=function(L){var Y=this._sucs[L];if(Y)return m.keys(Y)},_.prototype.neighbors=function(L){var Y=this.predecessors(L);if(Y)return m.union(Y,this.successors(L))},_.prototype.isLeaf=function(L){return(this.isDirected()?this.successors(L):this.neighbors(L)).length===0},_.prototype.filterNodes=function(L){var Y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});Y.setGraph(this.graph());var q=this;m.each(this._nodes,function(X,J){L(J)&&Y.setNode(J,X)}),m.each(this._edgeObjs,function(X){Y.hasNode(X.v)&&Y.hasNode(X.w)&&Y.setEdge(X,q.edge(X))});var H={};function V(X){var J=q.parent(X);return J===void 0||Y.hasNode(J)?(H[X]=J,J):J in H?H[J]:V(J)}return this._isCompound&&m.each(Y.nodes(),function(X){Y.setParent(X,V(X))}),Y},_.prototype.setDefaultEdgeLabel=function(L){return m.isFunction(L)||(L=m.constant(L)),this._defaultEdgeLabelFn=L,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return m.values(this._edgeObjs)},_.prototype.setPath=function(L,Y){var q=this,H=arguments;return m.reduce(L,function(V,X){return H.length>1?q.setEdge(V,X,Y):q.setEdge(V,X),X}),this},_.prototype.setEdge=function(){var L,Y,q,H,V=!1,X=arguments[0];typeof X=="object"&&X!==null&&"v"in X?(L=X.v,Y=X.w,q=X.name,arguments.length===2&&(H=arguments[1],V=!0)):(L=X,Y=arguments[1],q=arguments[3],arguments.length>2&&(H=arguments[2],V=!0)),L=""+L,Y=""+Y,m.isUndefined(q)||(q=""+q);var J=C(this._isDirected,L,Y,q);if(m.has(this._edgeLabels,J))return V&&(this._edgeLabels[J]=H),this;if(!m.isUndefined(q)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(L),this.setNode(Y),this._edgeLabels[J]=V?H:this._defaultEdgeLabelFn(L,Y,q);var lt=A(this._isDirected,L,Y,q);return L=lt.v,Y=lt.w,Object.freeze(lt),this._edgeObjs[J]=lt,g(this._preds[Y],L),g(this._sucs[L],Y),this._in[Y][J]=lt,this._out[L][J]=lt,this._edgeCount++,this},_.prototype.edge=function(L,Y,q){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,q);return this._edgeLabels[H]},_.prototype.hasEdge=function(L,Y,q){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,q);return m.has(this._edgeLabels,H)},_.prototype.removeEdge=function(L,Y,q){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,q),V=this._edgeObjs[H];return V&&(L=V.v,Y=V.w,delete this._edgeLabels[H],delete this._edgeObjs[H],k(this._preds[Y],L),k(this._sucs[L],Y),delete this._in[Y][H],delete this._out[L][H],this._edgeCount--),this},_.prototype.inEdges=function(L,Y){var q=this._in[L];if(q){var H=m.values(q);return Y?m.filter(H,function(V){return V.v===Y}):H}},_.prototype.outEdges=function(L,Y){var q=this._out[L];if(q){var H=m.values(q);return Y?m.filter(H,function(V){return V.w===Y}):H}},_.prototype.nodeEdges=function(L,Y){var q=this.inEdges(L,Y);if(q)return q.concat(this.outEdges(L,Y))}},2354:(S,M,h)=>{S.exports={Graph:h(771),version:h(9631)}},8974:(S,M,h)=>{var m=h(9126),d=h(771);function _(k){return m.map(k.nodes(),function(C){var A=k.node(C),I=k.parent(C),L={v:C};return m.isUndefined(A)||(L.value=A),m.isUndefined(I)||(L.parent=I),L})}function g(k){return m.map(k.edges(),function(C){var A=k.edge(C),I={v:C.v,w:C.w};return m.isUndefined(C.name)||(I.name=C.name),m.isUndefined(A)||(I.value=A),I})}S.exports={write:function(k){var C={options:{directed:k.isDirected(),multigraph:k.isMultigraph(),compound:k.isCompound()},nodes:_(k),edges:g(k)};return m.isUndefined(k.graph())||(C.value=m.clone(k.graph())),C},read:function(k){var C=new d(k.options).setGraph(k.value);return m.each(k.nodes,function(A){C.setNode(A.v,A.value),A.parent&&C.setParent(A.v,A.parent)}),m.each(k.edges,function(A){C.setEdge({v:A.v,w:A.w,name:A.name},A.value)}),C}}},9126:(S,M,h)=>{var m;try{m={clone:h(6678),constant:h(5703),each:h(6073),filter:h(3105),has:h(8721),isArray:h(1469),isEmpty:h(1609),isFunction:h(3560),isUndefined:h(2353),keys:h(3674),map:h(5161),reduce:h(4061),size:h(4238),transform:h(8718),union:h(3386),values:h(2628)}}catch{}m||(m=window._),S.exports=m},9631:S=>{S.exports="2.1.8"},1773:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(7628),_=function(){function g(k,C){this.color=C,this.changed=!1,this.data=k,this.type=new d.default}return g.prototype.set=function(k,C){return this.color=C,this.changed=!1,this.data=k,this.type.type=0,this},g.prototype._ensureHSL=function(){var k=this.data,C=k.h,A=k.s,I=k.l;C===void 0&&(k.h=m.default.channel.rgb2hsl(k,"h")),A===void 0&&(k.s=m.default.channel.rgb2hsl(k,"s")),I===void 0&&(k.l=m.default.channel.rgb2hsl(k,"l"))},g.prototype._ensureRGB=function(){var k=this.data,C=k.r,A=k.g,I=k.b;C===void 0&&(k.r=m.default.channel.hsl2rgb(k,"r")),A===void 0&&(k.g=m.default.channel.hsl2rgb(k,"g")),I===void 0&&(k.b=m.default.channel.hsl2rgb(k,"b"))},Object.defineProperty(g.prototype,"r",{get:function(){var k=this.data,C=k.r;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"r")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.r=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"g",{get:function(){var k=this.data,C=k.g;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"g")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.g=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"b",{get:function(){var k=this.data,C=k.b;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"b")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.b=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"h",{get:function(){var k=this.data,C=k.h;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"h")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.h=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"s",{get:function(){var k=this.data,C=k.s;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"s")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.s=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"l",{get:function(){var k=this.data,C=k.l;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"l")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.l=k},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"a",{get:function(){return this.data.a},set:function(k){this.changed=!0,this.data.a=k},enumerable:!0,configurable:!0}),g}();M.default=_},8167:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=new(h(1773)).default({r:0,g:0,b:0,a:0},"transparent");M.default=m},7628:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var h=function(){function m(){this.type=0}return m.prototype.get=function(){return this.type},m.prototype.set=function(d){if(this.type&&this.type!==d)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=d},m.prototype.reset=function(){this.type=0},m.prototype.is=function(d){return this.type===d},m}();M.default=h},1655:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(8167),d=h(6061),_={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(g){if(g.charCodeAt(0)===35){var k=g.match(_.re);if(k){var C=k[1],A=parseInt(C,16),I=C.length,L=I%4==0,Y=I>4,q=Y?1:17,H=Y?8:4,V=L?0:-1,X=Y?255:15;return m.default.set({r:(A>>H*(V+3)&X)*q,g:(A>>H*(V+2)&X)*q,b:(A>>H*(V+1)&X)*q,a:L?(A&X)*q/255:1},g)}}},stringify:function(g){var k=g.r,C=g.g,A=g.b,I=g.a;return I<1?"#"+d.DEC2HEX[Math.round(k)]+d.DEC2HEX[Math.round(C)]+d.DEC2HEX[Math.round(A)]+d.DEC2HEX[Math.round(255*I)]:"#"+d.DEC2HEX[Math.round(k)]+d.DEC2HEX[Math.round(C)]+d.DEC2HEX[Math.round(A)]}};M.default=_},8589:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(8167),_={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:function(g){var k=g.match(_.hueRe);if(k){var C=k[1];switch(k[2]){case"grad":return m.default.channel.clamp.h(.9*parseFloat(C));case"rad":return m.default.channel.clamp.h(180*parseFloat(C)/Math.PI);case"turn":return m.default.channel.clamp.h(360*parseFloat(C))}}return m.default.channel.clamp.h(parseFloat(g))},parse:function(g){var k=g.charCodeAt(0);if(k===104||k===72){var C=g.match(_.re);if(C){var A=C[1],I=C[2],L=C[3],Y=C[4],q=C[5];return d.default.set({h:_._hue2deg(A),s:m.default.channel.clamp.s(parseFloat(I)),l:m.default.channel.clamp.l(parseFloat(L)),a:Y?m.default.channel.clamp.a(q?parseFloat(Y)/100:parseFloat(Y)):1},g)}}},stringify:function(g){var k=g.h,C=g.s,A=g.l,I=g.a;return I<1?"hsla("+m.default.lang.round(k)+", "+m.default.lang.round(C)+"%, "+m.default.lang.round(A)+"%, "+I+")":"hsl("+m.default.lang.round(k)+", "+m.default.lang.round(C)+"%, "+m.default.lang.round(A)+"%)"}};M.default=_},2191:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1655),d=h(7538),_=h(6762),g=h(8589),k={format:{keyword:d.default,hex:m.default,rgb:_.default,rgba:_.default,hsl:g.default,hsla:g.default},parse:function(C){if(typeof C!="string")return C;var A=m.default.parse(C)||_.default.parse(C)||g.default.parse(C)||d.default.parse(C);if(A)return A;throw new Error('Unsupported color format: "'+C+'"')},stringify:function(C){return!C.changed&&C.color?C.color:C.type.is(2)||C.data.r===void 0?g.default.stringify(C):C.a<1||!Number.isInteger(C.r)||!Number.isInteger(C.g)||!Number.isInteger(C.b)?_.default.stringify(C):m.default.stringify(C)}};M.default=k},7538:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1655),d={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:function(_){_=_.toLowerCase();var g=d.colors[_];if(g)return m.default.parse(g)},stringify:function(_){var g=m.default.stringify(_);for(var k in d.colors)if(d.colors[k]===g)return k}};M.default=d},6762:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(8167),_={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:function(g){var k=g.charCodeAt(0);if(k===114||k===82){var C=g.match(_.re);if(C){var A=C[1],I=C[2],L=C[3],Y=C[4],q=C[5],H=C[6],V=C[7],X=C[8];return d.default.set({r:m.default.channel.clamp.r(I?2.55*parseFloat(A):parseFloat(A)),g:m.default.channel.clamp.g(Y?2.55*parseFloat(L):parseFloat(L)),b:m.default.channel.clamp.b(H?2.55*parseFloat(q):parseFloat(q)),a:V?m.default.channel.clamp.a(X?parseFloat(V)/100:parseFloat(V)):1},g)}}},stringify:function(g){var k=g.r,C=g.g,A=g.b,I=g.a;return I<1?"rgba("+m.default.lang.round(k)+", "+m.default.lang.round(C)+", "+m.default.lang.round(A)+", "+m.default.lang.round(I)+")":"rgb("+m.default.lang.round(k)+", "+m.default.lang.round(C)+", "+m.default.lang.round(A)+")"}};M.default=_},6061:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d={};M.DEC2HEX=d;for(var _=0;_<=255;_++)d[_]=m.default.unit.dec2hex(_)},8613:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0}),function(m){for(var d in m)M.hasOwnProperty(d)||(M[d]=m[d])}(h(1203))},5371:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191),d=h(418);M.default=function(_,g){var k=m.default.parse(_),C={};for(var A in g)g[A]&&(C[A]=k[A]+g[A]);return d.default(_,C)}},1416:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(2191);M.default=function(_,g,k){var C=d.default.parse(_),A=C[g],I=m.default.channel.clamp[g](A+k);return A!==I&&(C[g]=I),d.default.stringify(C)}},9353:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"a")}},3394:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"b")}},418:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(2191);M.default=function(_,g){var k=d.default.parse(_);for(var C in g)k[C]=m.default.channel.clamp[C](g[C]);return d.default.stringify(k)}},6197:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(2191);M.default=function(_,g){return m.default.lang.round(d.default.parse(_)[g])}},7361:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d){return m.default(d,"h",180)}},3042:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(8346);M.default=function(_,g){var k=d.default(_),C=d.default(g),A=Math.max(k,C),I=Math.min(k,C),L=(A+Number.EPSILON)/(I+Number.EPSILON);return m.default.lang.round(m.default.lang.clamp(L,1,10))}},1364:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"l",-_)}},9610:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"s",-_)}},572:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(418);M.default=function(d){return m.default(d,{s:0})}},2299:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"g")}},3116:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(8167),_=h(2191);M.default=function(g,k,C,A){A===void 0&&(A=1);var I=d.default.set({h:m.default.channel.clamp.h(g),s:m.default.channel.clamp.s(k),l:m.default.channel.clamp.l(C),a:m.default.channel.clamp.a(A)});return _.default.stringify(I)}},3008:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"h")}},1203:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6538);M.hex=m.default;var d=h(6538);M.rgb=d.default;var _=h(6538);M.rgba=_.default;var g=h(3116);M.hsl=g.default;var k=h(3116);M.hsla=k.default;var C=h(2619);M.toKeyword=C.default;var A=h(4307);M.toHex=A.default;var I=h(4125);M.toRgba=I.default;var L=h(7329);M.toHsla=L.default;var Y=h(6197);M.channel=Y.default;var q=h(9640);M.red=q.default;var H=h(2299);M.green=H.default;var V=h(3394);M.blue=V.default;var X=h(3008);M.hue=X.default;var J=h(6451);M.saturation=J.default;var lt=h(9235);M.lightness=lt.default;var nt=h(9353);M.alpha=nt.default;var _t=h(9353);M.opacity=_t.default;var dt=h(3042);M.contrast=dt.default;var At=h(8346);M.luminance=At.default;var st=h(4117);M.isDark=st.default;var K=h(2224);M.isLight=K.default;var mt=h(585);M.isValid=mt.default;var St=h(1080);M.saturate=St.default;var It=h(9610);M.desaturate=It.default;var ft=h(3235);M.lighten=ft.default;var vt=h(1364);M.darken=vt.default;var Wt=h(7189);M.opacify=Wt.default;var jt=h(7189);M.fadeIn=jt.default;var me=h(4989);M.transparentize=me.default;var ge=h(4989);M.fadeOut=ge.default;var pe=h(7361);M.complement=pe.default;var Dt=h(572);M.grayscale=Dt.default;var Zt=h(5371);M.adjust=Zt.default;var se=h(418);M.change=se.default;var le=h(566);M.invert=le.default;var ye=h(1861);M.mix=ye.default;var Ot=h(7081);M.scale=Ot.default},566:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191),d=h(1861);M.default=function(_,g){g===void 0&&(g=100);var k=m.default.parse(_);return k.r=255-k.r,k.g=255-k.g,k.b=255-k.b,d.default(k,_,g)}},4117:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2224);M.default=function(d){return!m.default(d)}},2224:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(8346);M.default=function(d){return m.default(d)>=.5}},585:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191);M.default=function(d){try{return m.default.parse(d),!0}catch{return!1}}},3235:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"l",_)}},9235:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"l")}},8346:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(2191);M.default=function(_){var g=d.default.parse(_),k=g.r,C=g.g,A=g.b,I=.2126*m.default.channel.toLinear(k)+.7152*m.default.channel.toLinear(C)+.0722*m.default.channel.toLinear(A);return m.default.lang.round(I)}},1861:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191),d=h(6538);M.default=function(_,g,k){k===void 0&&(k=50);var C=m.default.parse(_),A=C.r,I=C.g,L=C.b,Y=C.a,q=m.default.parse(g),H=q.r,V=q.g,X=q.b,J=q.a,lt=k/100,nt=2*lt-1,_t=Y-J,dt=((nt*_t==-1?nt:(nt+_t)/(1+nt*_t))+1)/2,At=1-dt,st=A*dt+H*At,K=I*dt+V*At,mt=L*dt+X*At,St=Y*lt+J*(1-lt);return d.default(st,K,mt,St)}},7189:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"a",_)}},9640:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"r")}},6538:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(8167),_=h(2191),g=h(418);M.default=function(k,C,A,I){if(A===void 0&&(A=0),I===void 0&&(I=1),typeof k!="number")return g.default(k,{a:C});var L=d.default.set({r:m.default.channel.clamp.r(k),g:m.default.channel.clamp.g(C),b:m.default.channel.clamp.b(A),a:m.default.channel.clamp.a(I)});return _.default.stringify(L)}},1080:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"s",_)}},6451:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(6197);M.default=function(d){return m.default(d,"s")}},7081:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1083),d=h(2191),_=h(5371);M.default=function(g,k){var C,A,I,L=d.default.parse(g),Y={};for(var q in k)Y[q]=(C=L[q],A=k[q],I=m.default.channel.max[q],A>0?(I-C)*A/100:C*A/100);return _.default(g,Y)}},4307:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191);M.default=function(d){return m.default.format.hex.stringify(m.default.parse(d))}},7329:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191);M.default=function(d){return m.default.format.hsla.stringify(m.default.parse(d))}},2619:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191);M.default=function(d){return m.default.format.keyword.stringify(m.default.parse(d))}},4125:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(2191);M.default=function(d){return m.default.format.rgba.stringify(m.default.parse(d))}},4989:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(1416);M.default=function(d,_){return m.default(d,"a",-_)}},7994:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var h={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:function(m){return m>=255?255:m<0?0:m},g:function(m){return m>=255?255:m<0?0:m},b:function(m){return m>=255?255:m<0?0:m},h:function(m){return m%360},s:function(m){return m>=100?100:m<0?0:m},l:function(m){return m>=100?100:m<0?0:m},a:function(m){return m>=1?1:m<0?0:m}},toLinear:function(m){var d=m/255;return m>.03928?Math.pow((d+.055)/1.055,2.4):d/12.92},hue2rgb:function(m,d,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?m+6*(d-m)*_:_<.5?d:_<2/3?m+(d-m)*(2/3-_)*6:m},hsl2rgb:function(m,d){var _=m.h,g=m.s,k=m.l;if(!g)return 2.55*k;_/=360,g/=100;var C=(k/=100)<.5?k*(1+g):k+g-k*g,A=2*k-C;switch(d){case"r":return 255*h.hue2rgb(A,C,_+1/3);case"g":return 255*h.hue2rgb(A,C,_);case"b":return 255*h.hue2rgb(A,C,_-1/3)}},rgb2hsl:function(m,d){var _=m.r,g=m.g,k=m.b;_/=255,g/=255,k/=255;var C=Math.max(_,g,k),A=Math.min(_,g,k),I=(C+A)/2;if(d==="l")return 100*I;if(C===A)return 0;var L=C-A;if(d==="s")return 100*(I>.5?L/(2-C-A):L/(C+A));switch(C){case _:return 60*((g-k)/L+(g<k?6:0));case g:return 60*((k-_)/L+2);case k:return 60*((_-g)/L+4);default:return-1}}};M.default=h},1083:(S,M,h)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=h(7994),d=h(4027),_=h(318),g={channel:m.default,lang:d.default,unit:_.default};M.default=g},4027:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var h={clamp:function(m,d,_){return d>_?Math.min(d,Math.max(_,m)):Math.min(_,Math.max(d,m))},round:function(m){return Math.round(1e10*m)/1e10}};M.default=h},318:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var h={dec2hex:function(m){var d=Math.round(m).toString(16);return d.length>1?d:"0"+d}};M.default=h},8552:(S,M,h)=>{var m=h(852)(h(5639),"DataView");S.exports=m},1989:(S,M,h)=>{var m=h(1789),d=h(401),_=h(7667),g=h(1327),k=h(1866);function C(A){var I=-1,L=A==null?0:A.length;for(this.clear();++I<L;){var Y=A[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=_,C.prototype.has=g,C.prototype.set=k,S.exports=C},8407:(S,M,h)=>{var m=h(7040),d=h(2188),_=h(2117),g=h(7518),k=h(4705);function C(A){var I=-1,L=A==null?0:A.length;for(this.clear();++I<L;){var Y=A[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=_,C.prototype.has=g,C.prototype.set=k,S.exports=C},7071:(S,M,h)=>{var m=h(852)(h(5639),"Map");S.exports=m},3369:(S,M,h)=>{var m=h(4785),d=h(1285),_=h(6e3),g=h(9916),k=h(5265);function C(A){var I=-1,L=A==null?0:A.length;for(this.clear();++I<L;){var Y=A[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=_,C.prototype.has=g,C.prototype.set=k,S.exports=C},3818:(S,M,h)=>{var m=h(852)(h(5639),"Promise");S.exports=m},8525:(S,M,h)=>{var m=h(852)(h(5639),"Set");S.exports=m},8668:(S,M,h)=>{var m=h(3369),d=h(619),_=h(2385);function g(k){var C=-1,A=k==null?0:k.length;for(this.__data__=new m;++C<A;)this.add(k[C])}g.prototype.add=g.prototype.push=d,g.prototype.has=_,S.exports=g},6384:(S,M,h)=>{var m=h(8407),d=h(7465),_=h(3779),g=h(7599),k=h(4758),C=h(4309);function A(I){var L=this.__data__=new m(I);this.size=L.size}A.prototype.clear=d,A.prototype.delete=_,A.prototype.get=g,A.prototype.has=k,A.prototype.set=C,S.exports=A},2705:(S,M,h)=>{var m=h(5639).Symbol;S.exports=m},1149:(S,M,h)=>{var m=h(5639).Uint8Array;S.exports=m},577:(S,M,h)=>{var m=h(852)(h(5639),"WeakMap");S.exports=m},6874:S=>{S.exports=function(M,h,m){switch(m.length){case 0:return M.call(h);case 1:return M.call(h,m[0]);case 2:return M.call(h,m[0],m[1]);case 3:return M.call(h,m[0],m[1],m[2])}return M.apply(h,m)}},7412:S=>{S.exports=function(M,h){for(var m=-1,d=M==null?0:M.length;++m<d&&h(M[m],m,M)!==!1;);return M}},4963:S=>{S.exports=function(M,h){for(var m=-1,d=M==null?0:M.length,_=0,g=[];++m<d;){var k=M[m];h(k,m,M)&&(g[_++]=k)}return g}},7443:(S,M,h)=>{var m=h(2118);S.exports=function(d,_){return!(d==null||!d.length)&&m(d,_,0)>-1}},1196:S=>{S.exports=function(M,h,m){for(var d=-1,_=M==null?0:M.length;++d<_;)if(m(h,M[d]))return!0;return!1}},4636:(S,M,h)=>{var m=h(2545),d=h(5694),_=h(1469),g=h(4144),k=h(5776),C=h(6719),A=Object.prototype.hasOwnProperty;S.exports=function(I,L){var Y=_(I),q=!Y&&d(I),H=!Y&&!q&&g(I),V=!Y&&!q&&!H&&C(I),X=Y||q||H||V,J=X?m(I.length,String):[],lt=J.length;for(var nt in I)!L&&!A.call(I,nt)||X&&(nt=="length"||H&&(nt=="offset"||nt=="parent")||V&&(nt=="buffer"||nt=="byteLength"||nt=="byteOffset")||k(nt,lt))||J.push(nt);return J}},9932:S=>{S.exports=function(M,h){for(var m=-1,d=M==null?0:M.length,_=Array(d);++m<d;)_[m]=h(M[m],m,M);return _}},2488:S=>{S.exports=function(M,h){for(var m=-1,d=h.length,_=M.length;++m<d;)M[_+m]=h[m];return M}},2663:S=>{S.exports=function(M,h,m,d){var _=-1,g=M==null?0:M.length;for(d&&g&&(m=M[++_]);++_<g;)m=h(m,M[_],_,M);return m}},2908:S=>{S.exports=function(M,h){for(var m=-1,d=M==null?0:M.length;++m<d;)if(h(M[m],m,M))return!0;return!1}},8983:(S,M,h)=>{var m=h(371)("length");S.exports=m},6556:(S,M,h)=>{var m=h(9465),d=h(7813);S.exports=function(_,g,k){(k!==void 0&&!d(_[g],k)||k===void 0&&!(g in _))&&m(_,g,k)}},4865:(S,M,h)=>{var m=h(9465),d=h(7813),_=Object.prototype.hasOwnProperty;S.exports=function(g,k,C){var A=g[k];_.call(g,k)&&d(A,C)&&(C!==void 0||k in g)||m(g,k,C)}},8470:(S,M,h)=>{var m=h(7813);S.exports=function(d,_){for(var g=d.length;g--;)if(m(d[g][0],_))return g;return-1}},4037:(S,M,h)=>{var m=h(8363),d=h(3674);S.exports=function(_,g){return _&&m(g,d(g),_)}},3886:(S,M,h)=>{var m=h(8363),d=h(1704);S.exports=function(_,g){return _&&m(g,d(g),_)}},9465:(S,M,h)=>{var m=h(8777);S.exports=function(d,_,g){_=="__proto__"&&m?m(d,_,{configurable:!0,enumerable:!0,value:g,writable:!0}):d[_]=g}},5990:(S,M,h)=>{var m=h(6384),d=h(7412),_=h(4865),g=h(4037),k=h(3886),C=h(4626),A=h(278),I=h(8805),L=h(1911),Y=h(8234),q=h(6904),H=h(4160),V=h(3824),X=h(9148),J=h(8517),lt=h(1469),nt=h(4144),_t=h(6688),dt=h(3218),At=h(2928),st=h(3674),K=h(1704),mt="[object Arguments]",St="[object Function]",It="[object Object]",ft={};ft[mt]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object DataView]"]=ft["[object Boolean]"]=ft["[object Date]"]=ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Map]"]=ft["[object Number]"]=ft[It]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object Symbol]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Error]"]=ft[St]=ft["[object WeakMap]"]=!1,S.exports=function vt(Wt,jt,me,ge,pe,Dt){var Zt,se=1&jt,le=2&jt,ye=4&jt;if(me&&(Zt=pe?me(Wt,ge,pe,Dt):me(Wt)),Zt!==void 0)return Zt;if(!dt(Wt))return Wt;var Ot=lt(Wt);if(Ot){if(Zt=V(Wt),!se)return A(Wt,Zt)}else{var We=H(Wt),he=We==St||We=="[object GeneratorFunction]";if(nt(Wt))return C(Wt,se);if(We==It||We==mt||he&&!pe){if(Zt=le||he?{}:J(Wt),!se)return le?L(Wt,k(Zt,Wt)):I(Wt,g(Zt,Wt))}else{if(!ft[We])return pe?Wt:{};Zt=X(Wt,We,se)}}Dt||(Dt=new m);var zt=Dt.get(Wt);if(zt)return zt;Dt.set(Wt,Zt),At(Wt)?Wt.forEach(function(at){Zt.add(vt(at,jt,me,at,Wt,Dt))}):_t(Wt)&&Wt.forEach(function(at,ne){Zt.set(ne,vt(at,jt,me,ne,Wt,Dt))});var te=Ot?void 0:(ye?le?q:Y:le?K:st)(Wt);return d(te||Wt,function(at,ne){te&&(at=Wt[ne=at]),_(Zt,ne,vt(at,jt,me,ne,Wt,Dt))}),Zt}},3118:(S,M,h)=>{var m=h(3218),d=Object.create,_=function(){function g(){}return function(k){if(!m(k))return{};if(d)return d(k);g.prototype=k;var C=new g;return g.prototype=void 0,C}}();S.exports=_},9881:(S,M,h)=>{var m=h(7816),d=h(9291)(m);S.exports=d},6029:(S,M,h)=>{var m=h(3448);S.exports=function(d,_,g){for(var k=-1,C=d.length;++k<C;){var A=d[k],I=_(A);if(I!=null&&(L===void 0?I==I&&!m(I):g(I,L)))var L=I,Y=A}return Y}},760:(S,M,h)=>{var m=h(9881);S.exports=function(d,_){var g=[];return m(d,function(k,C,A){_(k,C,A)&&g.push(k)}),g}},1848:S=>{S.exports=function(M,h,m,d){for(var _=M.length,g=m+(d?1:-1);d?g--:++g<_;)if(h(M[g],g,M))return g;return-1}},1078:(S,M,h)=>{var m=h(2488),d=h(7285);S.exports=function _(g,k,C,A,I){var L=-1,Y=g.length;for(C||(C=d),I||(I=[]);++L<Y;){var q=g[L];k>0&&C(q)?k>1?_(q,k-1,C,A,I):m(I,q):A||(I[I.length]=q)}return I}},8483:(S,M,h)=>{var m=h(5063)();S.exports=m},7816:(S,M,h)=>{var m=h(8483),d=h(3674);S.exports=function(_,g){return _&&m(_,g,d)}},7786:(S,M,h)=>{var m=h(1811),d=h(327);S.exports=function(_,g){for(var k=0,C=(g=m(g,_)).length;_!=null&&k<C;)_=_[d(g[k++])];return k&&k==C?_:void 0}},8866:(S,M,h)=>{var m=h(2488),d=h(1469);S.exports=function(_,g,k){var C=g(_);return d(_)?C:m(C,k(_))}},4239:(S,M,h)=>{var m=h(2705),d=h(9607),_=h(2333),g=m?m.toStringTag:void 0;S.exports=function(k){return k==null?k===void 0?"[object Undefined]":"[object Null]":g&&g in Object(k)?d(k):_(k)}},3325:S=>{S.exports=function(M,h){return M>h}},8565:S=>{var M=Object.prototype.hasOwnProperty;S.exports=function(h,m){return h!=null&&M.call(h,m)}},13:S=>{S.exports=function(M,h){return M!=null&&h in Object(M)}},2118:(S,M,h)=>{var m=h(1848),d=h(2722),_=h(2351);S.exports=function(g,k,C){return k==k?_(g,k,C):m(g,d,C)}},9454:(S,M,h)=>{var m=h(4239),d=h(7005);S.exports=function(_){return d(_)&&m(_)=="[object Arguments]"}},939:(S,M,h)=>{var m=h(2492),d=h(7005);S.exports=function _(g,k,C,A,I){return g===k||(g==null||k==null||!d(g)&&!d(k)?g!=g&&k!=k:m(g,k,C,A,_,I))}},2492:(S,M,h)=>{var m=h(6384),d=h(7114),_=h(8351),g=h(6096),k=h(4160),C=h(1469),A=h(4144),I=h(6719),L="[object Arguments]",Y="[object Array]",q="[object Object]",H=Object.prototype.hasOwnProperty;S.exports=function(V,X,J,lt,nt,_t){var dt=C(V),At=C(X),st=dt?Y:k(V),K=At?Y:k(X),mt=(st=st==L?q:st)==q,St=(K=K==L?q:K)==q,It=st==K;if(It&&A(V)){if(!A(X))return!1;dt=!0,mt=!1}if(It&&!mt)return _t||(_t=new m),dt||I(V)?d(V,X,J,lt,nt,_t):_(V,X,st,J,lt,nt,_t);if(!(1&J)){var ft=mt&&H.call(V,"__wrapped__"),vt=St&&H.call(X,"__wrapped__");if(ft||vt){var Wt=ft?V.value():V,jt=vt?X.value():X;return _t||(_t=new m),nt(Wt,jt,J,lt,_t)}}return!!It&&(_t||(_t=new m),g(V,X,J,lt,nt,_t))}},5588:(S,M,h)=>{var m=h(4160),d=h(7005);S.exports=function(_){return d(_)&&m(_)=="[object Map]"}},2958:(S,M,h)=>{var m=h(6384),d=h(939);S.exports=function(_,g,k,C){var A=k.length,I=A,L=!C;if(_==null)return!I;for(_=Object(_);A--;){var Y=k[A];if(L&&Y[2]?Y[1]!==_[Y[0]]:!(Y[0]in _))return!1}for(;++A<I;){var q=(Y=k[A])[0],H=_[q],V=Y[1];if(L&&Y[2]){if(H===void 0&&!(q in _))return!1}else{var X=new m;if(C)var J=C(H,V,q,_,g,X);if(!(J===void 0?d(V,H,3,C,X):J))return!1}}return!0}},2722:S=>{S.exports=function(M){return M!=M}},8458:(S,M,h)=>{var m=h(3560),d=h(5346),_=h(3218),g=h(346),k=/^\[object .+?Constructor\]$/,C=Function.prototype,A=Object.prototype,I=C.toString,L=A.hasOwnProperty,Y=RegExp("^"+I.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");S.exports=function(q){return!(!_(q)||d(q))&&(m(q)?Y:k).test(g(q))}},9221:(S,M,h)=>{var m=h(4160),d=h(7005);S.exports=function(_){return d(_)&&m(_)=="[object Set]"}},8749:(S,M,h)=>{var m=h(4239),d=h(1780),_=h(7005),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1,S.exports=function(k){return _(k)&&d(k.length)&&!!g[m(k)]}},7206:(S,M,h)=>{var m=h(1573),d=h(6432),_=h(6557),g=h(1469),k=h(9601);S.exports=function(C){return typeof C=="function"?C:C==null?_:typeof C=="object"?g(C)?d(C[0],C[1]):m(C):k(C)}},280:(S,M,h)=>{var m=h(5726),d=h(6916),_=Object.prototype.hasOwnProperty;S.exports=function(g){if(!m(g))return d(g);var k=[];for(var C in Object(g))_.call(g,C)&&C!="constructor"&&k.push(C);return k}},313:(S,M,h)=>{var m=h(3218),d=h(5726),_=h(3498),g=Object.prototype.hasOwnProperty;S.exports=function(k){if(!m(k))return _(k);var C=d(k),A=[];for(var I in k)(I!="constructor"||!C&&g.call(k,I))&&A.push(I);return A}},433:S=>{S.exports=function(M,h){return M<h}},9199:(S,M,h)=>{var m=h(9881),d=h(8612);S.exports=function(_,g){var k=-1,C=d(_)?Array(_.length):[];return m(_,function(A,I,L){C[++k]=g(A,I,L)}),C}},1573:(S,M,h)=>{var m=h(2958),d=h(1499),_=h(2634);S.exports=function(g){var k=d(g);return k.length==1&&k[0][2]?_(k[0][0],k[0][1]):function(C){return C===g||m(C,g,k)}}},6432:(S,M,h)=>{var m=h(939),d=h(1917),_=h(9095),g=h(5403),k=h(9162),C=h(2634),A=h(327);S.exports=function(I,L){return g(I)&&k(L)?C(A(I),L):function(Y){var q=d(Y,I);return q===void 0&&q===L?_(Y,I):m(L,q,3)}}},2980:(S,M,h)=>{var m=h(6384),d=h(6556),_=h(8483),g=h(9783),k=h(3218),C=h(1704),A=h(6390);S.exports=function I(L,Y,q,H,V){L!==Y&&_(Y,function(X,J){if(V||(V=new m),k(X))g(L,Y,J,q,I,H,V);else{var lt=H?H(A(L,J),X,J+"",L,Y,V):void 0;lt===void 0&&(lt=X),d(L,J,lt)}},C)}},9783:(S,M,h)=>{var m=h(6556),d=h(4626),_=h(7133),g=h(278),k=h(8517),C=h(5694),A=h(1469),I=h(9246),L=h(4144),Y=h(3560),q=h(3218),H=h(8630),V=h(6719),X=h(6390),J=h(3678);S.exports=function(lt,nt,_t,dt,At,st,K){var mt=X(lt,_t),St=X(nt,_t),It=K.get(St);if(It)m(lt,_t,It);else{var ft=st?st(mt,St,_t+"",lt,nt,K):void 0,vt=ft===void 0;if(vt){var Wt=A(St),jt=!Wt&&L(St),me=!Wt&&!jt&&V(St);ft=St,Wt||jt||me?A(mt)?ft=mt:I(mt)?ft=g(mt):jt?(vt=!1,ft=d(St,!0)):me?(vt=!1,ft=_(St,!0)):ft=[]:H(St)||C(St)?(ft=mt,C(mt)?ft=J(mt):q(mt)&&!Y(mt)||(ft=k(St))):vt=!1}vt&&(K.set(St,ft),At(ft,St,dt,st,K),K.delete(St)),m(lt,_t,ft)}}},9556:(S,M,h)=>{var m=h(9932),d=h(7786),_=h(7206),g=h(9199),k=h(1131),C=h(1717),A=h(5022),I=h(6557),L=h(1469);S.exports=function(Y,q,H){q=q.length?m(q,function(J){return L(J)?function(lt){return d(lt,J.length===1?J[0]:J)}:J}):[I];var V=-1;q=m(q,C(_));var X=g(Y,function(J,lt,nt){return{criteria:m(q,function(_t){return _t(J)}),index:++V,value:J}});return k(X,function(J,lt){return A(J,lt,H)})}},5970:(S,M,h)=>{var m=h(3012),d=h(9095);S.exports=function(_,g){return m(_,g,function(k,C){return d(_,C)})}},3012:(S,M,h)=>{var m=h(7786),d=h(611),_=h(1811);S.exports=function(g,k,C){for(var A=-1,I=k.length,L={};++A<I;){var Y=k[A],q=m(g,Y);C(q,Y)&&d(L,_(Y,g),q)}return L}},371:S=>{S.exports=function(M){return function(h){return h==null?void 0:h[M]}}},9152:(S,M,h)=>{var m=h(7786);S.exports=function(d){return function(_){return m(_,d)}}},98:S=>{var M=Math.ceil,h=Math.max;S.exports=function(m,d,_,g){for(var k=-1,C=h(M((d-m)/(_||1)),0),A=Array(C);C--;)A[g?C:++k]=m,m+=_;return A}},107:S=>{S.exports=function(M,h,m,d,_){return _(M,function(g,k,C){m=d?(d=!1,g):h(m,g,k,C)}),m}},5976:(S,M,h)=>{var m=h(6557),d=h(5357),_=h(61);S.exports=function(g,k){return _(d(g,k,m),g+"")}},611:(S,M,h)=>{var m=h(4865),d=h(1811),_=h(5776),g=h(3218),k=h(327);S.exports=function(C,A,I,L){if(!g(C))return C;for(var Y=-1,q=(A=d(A,C)).length,H=q-1,V=C;V!=null&&++Y<q;){var X=k(A[Y]),J=I;if(X==="__proto__"||X==="constructor"||X==="prototype")return C;if(Y!=H){var lt=V[X];(J=L?L(lt,X,V):void 0)===void 0&&(J=g(lt)?lt:_(A[Y+1])?[]:{})}m(V,X,J),V=V[X]}return C}},6560:(S,M,h)=>{var m=h(5703),d=h(8777),_=h(6557),g=d?function(k,C){return d(k,"toString",{configurable:!0,enumerable:!1,value:m(C),writable:!0})}:_;S.exports=g},1131:S=>{S.exports=function(M,h){var m=M.length;for(M.sort(h);m--;)M[m]=M[m].value;return M}},2545:S=>{S.exports=function(M,h){for(var m=-1,d=Array(M);++m<M;)d[m]=h(m);return d}},531:(S,M,h)=>{var m=h(2705),d=h(9932),_=h(1469),g=h(3448),k=m?m.prototype:void 0,C=k?k.toString:void 0;S.exports=function A(I){if(typeof I=="string")return I;if(_(I))return d(I,A)+"";if(g(I))return C?C.call(I):"";var L=I+"";return L=="0"&&1/I==-1/0?"-0":L}},7561:(S,M,h)=>{var m=h(7990),d=/^\s+/;S.exports=function(_){return _&&_.slice(0,m(_)+1).replace(d,"")}},1717:S=>{S.exports=function(M){return function(h){return M(h)}}},5652:(S,M,h)=>{var m=h(8668),d=h(7443),_=h(1196),g=h(4757),k=h(3593),C=h(1814);S.exports=function(A,I,L){var Y=-1,q=d,H=A.length,V=!0,X=[],J=X;if(L)V=!1,q=_;else if(H>=200){var lt=I?null:k(A);if(lt)return C(lt);V=!1,q=g,J=new m}else J=I?[]:X;t:for(;++Y<H;){var nt=A[Y],_t=I?I(nt):nt;if(nt=L||nt!==0?nt:0,V&&_t==_t){for(var dt=J.length;dt--;)if(J[dt]===_t)continue t;I&&J.push(_t),X.push(nt)}else q(J,_t,L)||(J!==X&&J.push(_t),X.push(nt))}return X}},7415:(S,M,h)=>{var m=h(9932);S.exports=function(d,_){return m(_,function(g){return d[g]})}},1757:S=>{S.exports=function(M,h,m){for(var d=-1,_=M.length,g=h.length,k={};++d<_;){var C=d<g?h[d]:void 0;m(k,M[d],C)}return k}},4757:S=>{S.exports=function(M,h){return M.has(h)}},4290:(S,M,h)=>{var m=h(6557);S.exports=function(d){return typeof d=="function"?d:m}},1811:(S,M,h)=>{var m=h(1469),d=h(5403),_=h(5514),g=h(9833);S.exports=function(k,C){return m(k)?k:d(k,C)?[k]:_(g(k))}},4318:(S,M,h)=>{var m=h(1149);S.exports=function(d){var _=new d.constructor(d.byteLength);return new m(_).set(new m(d)),_}},4626:(S,M,h)=>{S=h.nmd(S);var m=h(5639),d=M&&!M.nodeType&&M,_=d&&S&&!S.nodeType&&S,g=_&&_.exports===d?m.Buffer:void 0,k=g?g.allocUnsafe:void 0;S.exports=function(C,A){if(A)return C.slice();var I=C.length,L=k?k(I):new C.constructor(I);return C.copy(L),L}},7157:(S,M,h)=>{var m=h(4318);S.exports=function(d,_){var g=_?m(d.buffer):d.buffer;return new d.constructor(g,d.byteOffset,d.byteLength)}},3147:S=>{var M=/\w*$/;S.exports=function(h){var m=new h.constructor(h.source,M.exec(h));return m.lastIndex=h.lastIndex,m}},419:(S,M,h)=>{var m=h(2705),d=m?m.prototype:void 0,_=d?d.valueOf:void 0;S.exports=function(g){return _?Object(_.call(g)):{}}},7133:(S,M,h)=>{var m=h(4318);S.exports=function(d,_){var g=_?m(d.buffer):d.buffer;return new d.constructor(g,d.byteOffset,d.length)}},6393:(S,M,h)=>{var m=h(3448);S.exports=function(d,_){if(d!==_){var g=d!==void 0,k=d===null,C=d==d,A=m(d),I=_!==void 0,L=_===null,Y=_==_,q=m(_);if(!L&&!q&&!A&&d>_||A&&I&&Y&&!L&&!q||k&&I&&Y||!g&&Y||!C)return 1;if(!k&&!A&&!q&&d<_||q&&g&&C&&!k&&!A||L&&g&&C||!I&&C||!Y)return-1}return 0}},5022:(S,M,h)=>{var m=h(6393);S.exports=function(d,_,g){for(var k=-1,C=d.criteria,A=_.criteria,I=C.length,L=g.length;++k<I;){var Y=m(C[k],A[k]);if(Y)return k>=L?Y:Y*(g[k]=="desc"?-1:1)}return d.index-_.index}},278:S=>{S.exports=function(M,h){var m=-1,d=M.length;for(h||(h=Array(d));++m<d;)h[m]=M[m];return h}},8363:(S,M,h)=>{var m=h(4865),d=h(9465);S.exports=function(_,g,k,C){var A=!k;k||(k={});for(var I=-1,L=g.length;++I<L;){var Y=g[I],q=C?C(k[Y],_[Y],Y,k,_):void 0;q===void 0&&(q=_[Y]),A?d(k,Y,q):m(k,Y,q)}return k}},8805:(S,M,h)=>{var m=h(8363),d=h(9551);S.exports=function(_,g){return m(_,d(_),g)}},1911:(S,M,h)=>{var m=h(8363),d=h(1442);S.exports=function(_,g){return m(_,d(_),g)}},4429:(S,M,h)=>{var m=h(5639)["__core-js_shared__"];S.exports=m},1750:(S,M,h)=>{var m=h(5976),d=h(6612);S.exports=function(_){return m(function(g,k){var C=-1,A=k.length,I=A>1?k[A-1]:void 0,L=A>2?k[2]:void 0;for(I=_.length>3&&typeof I=="function"?(A--,I):void 0,L&&d(k[0],k[1],L)&&(I=A<3?void 0:I,A=1),g=Object(g);++C<A;){var Y=k[C];Y&&_(g,Y,C,I)}return g})}},9291:(S,M,h)=>{var m=h(8612);S.exports=function(d,_){return function(g,k){if(g==null)return g;if(!m(g))return d(g,k);for(var C=g.length,A=_?C:-1,I=Object(g);(_?A--:++A<C)&&k(I[A],A,I)!==!1;);return g}}},5063:S=>{S.exports=function(M){return function(h,m,d){for(var _=-1,g=Object(h),k=d(h),C=k.length;C--;){var A=k[M?C:++_];if(m(g[A],A,g)===!1)break}return h}}},7740:(S,M,h)=>{var m=h(7206),d=h(8612),_=h(3674);S.exports=function(g){return function(k,C,A){var I=Object(k);if(!d(k)){var L=m(C,3);k=_(k),C=function(q){return L(I[q],q,I)}}var Y=g(k,C,A);return Y>-1?I[L?k[Y]:Y]:void 0}}},7445:(S,M,h)=>{var m=h(98),d=h(6612),_=h(8601);S.exports=function(g){return function(k,C,A){return A&&typeof A!="number"&&d(k,C,A)&&(C=A=void 0),k=_(k),C===void 0?(C=k,k=0):C=_(C),A=A===void 0?k<C?1:-1:_(A),m(k,C,A,g)}}},3593:(S,M,h)=>{var m=h(8525),d=h(308),_=h(1814),g=m&&1/_(new m([,-0]))[1]==1/0?function(k){return new m(k)}:d;S.exports=g},8777:(S,M,h)=>{var m=h(852),d=function(){try{var _=m(Object,"defineProperty");return _({},"",{}),_}catch{}}();S.exports=d},7114:(S,M,h)=>{var m=h(8668),d=h(2908),_=h(4757);S.exports=function(g,k,C,A,I,L){var Y=1&C,q=g.length,H=k.length;if(q!=H&&!(Y&&H>q))return!1;var V=L.get(g),X=L.get(k);if(V&&X)return V==k&&X==g;var J=-1,lt=!0,nt=2&C?new m:void 0;for(L.set(g,k),L.set(k,g);++J<q;){var _t=g[J],dt=k[J];if(A)var At=Y?A(dt,_t,J,k,g,L):A(_t,dt,J,g,k,L);if(At!==void 0){if(At)continue;lt=!1;break}if(nt){if(!d(k,function(st,K){if(!_(nt,K)&&(_t===st||I(_t,st,C,A,L)))return nt.push(K)})){lt=!1;break}}else if(_t!==dt&&!I(_t,dt,C,A,L)){lt=!1;break}}return L.delete(g),L.delete(k),lt}},8351:(S,M,h)=>{var m=h(2705),d=h(1149),_=h(7813),g=h(7114),k=h(8776),C=h(1814),A=m?m.prototype:void 0,I=A?A.valueOf:void 0;S.exports=function(L,Y,q,H,V,X,J){switch(q){case"[object DataView]":if(L.byteLength!=Y.byteLength||L.byteOffset!=Y.byteOffset)return!1;L=L.buffer,Y=Y.buffer;case"[object ArrayBuffer]":return!(L.byteLength!=Y.byteLength||!X(new d(L),new d(Y)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+L,+Y);case"[object Error]":return L.name==Y.name&&L.message==Y.message;case"[object RegExp]":case"[object String]":return L==Y+"";case"[object Map]":var lt=k;case"[object Set]":var nt=1&H;if(lt||(lt=C),L.size!=Y.size&&!nt)return!1;var _t=J.get(L);if(_t)return _t==Y;H|=2,J.set(L,Y);var dt=g(lt(L),lt(Y),H,V,X,J);return J.delete(L),dt;case"[object Symbol]":if(I)return I.call(L)==I.call(Y)}return!1}},6096:(S,M,h)=>{var m=h(8234),d=Object.prototype.hasOwnProperty;S.exports=function(_,g,k,C,A,I){var L=1&k,Y=m(_),q=Y.length;if(q!=m(g).length&&!L)return!1;for(var H=q;H--;){var V=Y[H];if(!(L?V in g:d.call(g,V)))return!1}var X=I.get(_),J=I.get(g);if(X&&J)return X==g&&J==_;var lt=!0;I.set(_,g),I.set(g,_);for(var nt=L;++H<q;){var _t=_[V=Y[H]],dt=g[V];if(C)var At=L?C(dt,_t,V,g,_,I):C(_t,dt,V,_,g,I);if(!(At===void 0?_t===dt||A(_t,dt,k,C,I):At)){lt=!1;break}nt||(nt=V=="constructor")}if(lt&&!nt){var st=_.constructor,K=g.constructor;st==K||!("constructor"in _)||!("constructor"in g)||typeof st=="function"&&st instanceof st&&typeof K=="function"&&K instanceof K||(lt=!1)}return I.delete(_),I.delete(g),lt}},9021:(S,M,h)=>{var m=h(5564),d=h(5357),_=h(61);S.exports=function(g){return _(d(g,void 0,m),g+"")}},1957:(S,M,h)=>{var m=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g;S.exports=m},8234:(S,M,h)=>{var m=h(8866),d=h(9551),_=h(3674);S.exports=function(g){return m(g,_,d)}},6904:(S,M,h)=>{var m=h(8866),d=h(1442),_=h(1704);S.exports=function(g){return m(g,_,d)}},5050:(S,M,h)=>{var m=h(7019);S.exports=function(d,_){var g=d.__data__;return m(_)?g[typeof _=="string"?"string":"hash"]:g.map}},1499:(S,M,h)=>{var m=h(9162),d=h(3674);S.exports=function(_){for(var g=d(_),k=g.length;k--;){var C=g[k],A=_[C];g[k]=[C,A,m(A)]}return g}},852:(S,M,h)=>{var m=h(8458),d=h(7801);S.exports=function(_,g){var k=d(_,g);return m(k)?k:void 0}},5924:(S,M,h)=>{var m=h(5569)(Object.getPrototypeOf,Object);S.exports=m},9607:(S,M,h)=>{var m=h(2705),d=Object.prototype,_=d.hasOwnProperty,g=d.toString,k=m?m.toStringTag:void 0;S.exports=function(C){var A=_.call(C,k),I=C[k];try{C[k]=void 0;var L=!0}catch{}var Y=g.call(C);return L&&(A?C[k]=I:delete C[k]),Y}},9551:(S,M,h)=>{var m=h(4963),d=h(479),_=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols,k=g?function(C){return C==null?[]:(C=Object(C),m(g(C),function(A){return _.call(C,A)}))}:d;S.exports=k},1442:(S,M,h)=>{var m=h(2488),d=h(5924),_=h(9551),g=h(479),k=Object.getOwnPropertySymbols?function(C){for(var A=[];C;)m(A,_(C)),C=d(C);return A}:g;S.exports=k},4160:(S,M,h)=>{var m=h(8552),d=h(7071),_=h(3818),g=h(8525),k=h(577),C=h(4239),A=h(346),I="[object Map]",L="[object Promise]",Y="[object Set]",q="[object WeakMap]",H="[object DataView]",V=A(m),X=A(d),J=A(_),lt=A(g),nt=A(k),_t=C;(m&&_t(new m(new ArrayBuffer(1)))!=H||d&&_t(new d)!=I||_&&_t(_.resolve())!=L||g&&_t(new g)!=Y||k&&_t(new k)!=q)&&(_t=function(dt){var At=C(dt),st=At=="[object Object]"?dt.constructor:void 0,K=st?A(st):"";if(K)switch(K){case V:return H;case X:return I;case J:return L;case lt:return Y;case nt:return q}return At}),S.exports=_t},7801:S=>{S.exports=function(M,h){return M==null?void 0:M[h]}},222:(S,M,h)=>{var m=h(1811),d=h(5694),_=h(1469),g=h(5776),k=h(1780),C=h(327);S.exports=function(A,I,L){for(var Y=-1,q=(I=m(I,A)).length,H=!1;++Y<q;){var V=C(I[Y]);if(!(H=A!=null&&L(A,V)))break;A=A[V]}return H||++Y!=q?H:!!(q=A==null?0:A.length)&&k(q)&&g(V,q)&&(_(A)||d(A))}},2689:S=>{var M=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");S.exports=function(h){return M.test(h)}},1789:(S,M,h)=>{var m=h(4536);S.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:S=>{S.exports=function(M){var h=this.has(M)&&delete this.__data__[M];return this.size-=h?1:0,h}},7667:(S,M,h)=>{var m=h(4536),d=Object.prototype.hasOwnProperty;S.exports=function(_){var g=this.__data__;if(m){var k=g[_];return k==="__lodash_hash_undefined__"?void 0:k}return d.call(g,_)?g[_]:void 0}},1327:(S,M,h)=>{var m=h(4536),d=Object.prototype.hasOwnProperty;S.exports=function(_){var g=this.__data__;return m?g[_]!==void 0:d.call(g,_)}},1866:(S,M,h)=>{var m=h(4536);S.exports=function(d,_){var g=this.__data__;return this.size+=this.has(d)?0:1,g[d]=m&&_===void 0?"__lodash_hash_undefined__":_,this}},3824:S=>{var M=Object.prototype.hasOwnProperty;S.exports=function(h){var m=h.length,d=new h.constructor(m);return m&&typeof h[0]=="string"&&M.call(h,"index")&&(d.index=h.index,d.input=h.input),d}},9148:(S,M,h)=>{var m=h(4318),d=h(7157),_=h(3147),g=h(419),k=h(7133);S.exports=function(C,A,I){var L=C.constructor;switch(A){case"[object ArrayBuffer]":return m(C);case"[object Boolean]":case"[object Date]":return new L(+C);case"[object DataView]":return d(C,I);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return k(C,I);case"[object Map]":case"[object Set]":return new L;case"[object Number]":case"[object String]":return new L(C);case"[object RegExp]":return _(C);case"[object Symbol]":return g(C)}}},8517:(S,M,h)=>{var m=h(3118),d=h(5924),_=h(5726);S.exports=function(g){return typeof g.constructor!="function"||_(g)?{}:m(d(g))}},7285:(S,M,h)=>{var m=h(2705),d=h(5694),_=h(1469),g=m?m.isConcatSpreadable:void 0;S.exports=function(k){return _(k)||d(k)||!!(g&&k&&k[g])}},5776:S=>{var M=/^(?:0|[1-9]\d*)$/;S.exports=function(h,m){var d=typeof h;return!!(m=m==null?9007199254740991:m)&&(d=="number"||d!="symbol"&&M.test(h))&&h>-1&&h%1==0&&h<m}},6612:(S,M,h)=>{var m=h(7813),d=h(8612),_=h(5776),g=h(3218);S.exports=function(k,C,A){if(!g(A))return!1;var I=typeof C;return!!(I=="number"?d(A)&&_(C,A.length):I=="string"&&C in A)&&m(A[C],k)}},5403:(S,M,h)=>{var m=h(1469),d=h(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;S.exports=function(k,C){if(m(k))return!1;var A=typeof k;return!(A!="number"&&A!="symbol"&&A!="boolean"&&k!=null&&!d(k))||g.test(k)||!_.test(k)||C!=null&&k in Object(C)}},7019:S=>{S.exports=function(M){var h=typeof M;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?M!=="__proto__":M===null}},5346:(S,M,h)=>{var m,d=h(4429),_=(m=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";S.exports=function(g){return!!_&&_ in g}},5726:S=>{var M=Object.prototype;S.exports=function(h){var m=h&&h.constructor;return h===(typeof m=="function"&&m.prototype||M)}},9162:(S,M,h)=>{var m=h(3218);S.exports=function(d){return d==d&&!m(d)}},7040:S=>{S.exports=function(){this.__data__=[],this.size=0}},2188:(S,M,h)=>{var m=h(8470),d=Array.prototype.splice;S.exports=function(_){var g=this.__data__,k=m(g,_);return!(k<0||(k==g.length-1?g.pop():d.call(g,k,1),--this.size,0))}},2117:(S,M,h)=>{var m=h(8470);S.exports=function(d){var _=this.__data__,g=m(_,d);return g<0?void 0:_[g][1]}},7518:(S,M,h)=>{var m=h(8470);S.exports=function(d){return m(this.__data__,d)>-1}},4705:(S,M,h)=>{var m=h(8470);S.exports=function(d,_){var g=this.__data__,k=m(g,d);return k<0?(++this.size,g.push([d,_])):g[k][1]=_,this}},4785:(S,M,h)=>{var m=h(1989),d=h(8407),_=h(7071);S.exports=function(){this.size=0,this.__data__={hash:new m,map:new(_||d),string:new m}}},1285:(S,M,h)=>{var m=h(5050);S.exports=function(d){var _=m(this,d).delete(d);return this.size-=_?1:0,_}},6e3:(S,M,h)=>{var m=h(5050);S.exports=function(d){return m(this,d).get(d)}},9916:(S,M,h)=>{var m=h(5050);S.exports=function(d){return m(this,d).has(d)}},5265:(S,M,h)=>{var m=h(5050);S.exports=function(d,_){var g=m(this,d),k=g.size;return g.set(d,_),this.size+=g.size==k?0:1,this}},8776:S=>{S.exports=function(M){var h=-1,m=Array(M.size);return M.forEach(function(d,_){m[++h]=[_,d]}),m}},2634:S=>{S.exports=function(M,h){return function(m){return m!=null&&m[M]===h&&(h!==void 0||M in Object(m))}}},4523:(S,M,h)=>{var m=h(8306);S.exports=function(d){var _=m(d,function(k){return g.size===500&&g.clear(),k}),g=_.cache;return _}},4536:(S,M,h)=>{var m=h(852)(Object,"create");S.exports=m},6916:(S,M,h)=>{var m=h(5569)(Object.keys,Object);S.exports=m},3498:S=>{S.exports=function(M){var h=[];if(M!=null)for(var m in Object(M))h.push(m);return h}},1167:(S,M,h)=>{S=h.nmd(S);var m=h(1957),d=M&&!M.nodeType&&M,_=d&&S&&!S.nodeType&&S,g=_&&_.exports===d&&m.process,k=function(){try{return _&&_.require&&_.require("util").types||g&&g.binding&&g.binding("util")}catch{}}();S.exports=k},2333:S=>{var M=Object.prototype.toString;S.exports=function(h){return M.call(h)}},5569:S=>{S.exports=function(M,h){return function(m){return M(h(m))}}},5357:(S,M,h)=>{var m=h(6874),d=Math.max;S.exports=function(_,g,k){return g=d(g===void 0?_.length-1:g,0),function(){for(var C=arguments,A=-1,I=d(C.length-g,0),L=Array(I);++A<I;)L[A]=C[g+A];A=-1;for(var Y=Array(g+1);++A<g;)Y[A]=C[A];return Y[g]=k(L),m(_,this,Y)}}},5639:(S,M,h)=>{var m=h(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,_=m||d||Function("return this")();S.exports=_},6390:S=>{S.exports=function(M,h){if((h!=="constructor"||typeof M[h]!="function")&&h!="__proto__")return M[h]}},619:S=>{S.exports=function(M){return this.__data__.set(M,"__lodash_hash_undefined__"),this}},2385:S=>{S.exports=function(M){return this.__data__.has(M)}},1814:S=>{S.exports=function(M){var h=-1,m=Array(M.size);return M.forEach(function(d){m[++h]=d}),m}},61:(S,M,h)=>{var m=h(6560),d=h(1275)(m);S.exports=d},1275:S=>{var M=Date.now;S.exports=function(h){var m=0,d=0;return function(){var _=M(),g=16-(_-d);if(d=_,g>0){if(++m>=800)return arguments[0]}else m=0;return h.apply(void 0,arguments)}}},7465:(S,M,h)=>{var m=h(8407);S.exports=function(){this.__data__=new m,this.size=0}},3779:S=>{S.exports=function(M){var h=this.__data__,m=h.delete(M);return this.size=h.size,m}},7599:S=>{S.exports=function(M){return this.__data__.get(M)}},4758:S=>{S.exports=function(M){return this.__data__.has(M)}},4309:(S,M,h)=>{var m=h(8407),d=h(7071),_=h(3369);S.exports=function(g,k){var C=this.__data__;if(C instanceof m){var A=C.__data__;if(!d||A.length<199)return A.push([g,k]),this.size=++C.size,this;C=this.__data__=new _(A)}return C.set(g,k),this.size=C.size,this}},2351:S=>{S.exports=function(M,h,m){for(var d=m-1,_=M.length;++d<_;)if(M[d]===h)return d;return-1}},8016:(S,M,h)=>{var m=h(8983),d=h(2689),_=h(1903);S.exports=function(g){return d(g)?_(g):m(g)}},5514:(S,M,h)=>{var m=h(4523),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,g=m(function(k){var C=[];return k.charCodeAt(0)===46&&C.push(""),k.replace(d,function(A,I,L,Y){C.push(L?Y.replace(_,"$1"):I||A)}),C});S.exports=g},327:(S,M,h)=>{var m=h(3448);S.exports=function(d){if(typeof d=="string"||m(d))return d;var _=d+"";return _=="0"&&1/d==-1/0?"-0":_}},346:S=>{var M=Function.prototype.toString;S.exports=function(h){if(h!=null){try{return M.call(h)}catch{}try{return h+""}catch{}}return""}},7990:S=>{var M=/\s/;S.exports=function(h){for(var m=h.length;m--&&M.test(h.charAt(m)););return m}},1903:S=>{var M="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",g="(?:"+M+"|"+h+")?",k="[\\ufe0e\\ufe0f]?",C=k+g+"(?:\\u200d(?:"+[m,d,_].join("|")+")"+k+g+")*",A="(?:"+[m+M+"?",M,d,_,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(h+"(?="+h+")|"+A+C,"g");S.exports=function(L){for(var Y=I.lastIndex=0;I.test(L);)++Y;return Y}},6678:(S,M,h)=>{var m=h(5990);S.exports=function(d){return m(d,4)}},361:(S,M,h)=>{var m=h(5990);S.exports=function(d){return m(d,5)}},5703:S=>{S.exports=function(M){return function(){return M}}},1747:(S,M,h)=>{var m=h(5976),d=h(7813),_=h(6612),g=h(1704),k=Object.prototype,C=k.hasOwnProperty,A=m(function(I,L){I=Object(I);var Y=-1,q=L.length,H=q>2?L[2]:void 0;for(H&&_(L[0],L[1],H)&&(q=1);++Y<q;)for(var V=L[Y],X=g(V),J=-1,lt=X.length;++J<lt;){var nt=X[J],_t=I[nt];(_t===void 0||d(_t,k[nt])&&!C.call(I,nt))&&(I[nt]=V[nt])}return I});S.exports=A},6073:(S,M,h)=>{S.exports=h(4486)},7813:S=>{S.exports=function(M,h){return M===h||M!=M&&h!=h}},3105:(S,M,h)=>{var m=h(4963),d=h(760),_=h(7206),g=h(1469);S.exports=function(k,C){return(g(k)?m:d)(k,_(C,3))}},3311:(S,M,h)=>{var m=h(7740)(h(998));S.exports=m},998:(S,M,h)=>{var m=h(1848),d=h(7206),_=h(554),g=Math.max;S.exports=function(k,C,A){var I=k==null?0:k.length;if(!I)return-1;var L=A==null?0:_(A);return L<0&&(L=g(I+L,0)),m(k,d(C,3),L)}},5564:(S,M,h)=>{var m=h(1078);S.exports=function(d){return d!=null&&d.length?m(d,1):[]}},4486:(S,M,h)=>{var m=h(7412),d=h(9881),_=h(4290),g=h(1469);S.exports=function(k,C){return(g(k)?m:d)(k,_(C))}},2620:(S,M,h)=>{var m=h(8483),d=h(4290),_=h(1704);S.exports=function(g,k){return g==null?g:m(g,d(k),_)}},1917:(S,M,h)=>{var m=h(7786);S.exports=function(d,_,g){var k=d==null?void 0:m(d,_);return k===void 0?g:k}},8721:(S,M,h)=>{var m=h(8565),d=h(222);S.exports=function(_,g){return _!=null&&d(_,g,m)}},9095:(S,M,h)=>{var m=h(13),d=h(222);S.exports=function(_,g){return _!=null&&d(_,g,m)}},6557:S=>{S.exports=function(M){return M}},5694:(S,M,h)=>{var m=h(9454),d=h(7005),_=Object.prototype,g=_.hasOwnProperty,k=_.propertyIsEnumerable,C=m(function(){return arguments}())?m:function(A){return d(A)&&g.call(A,"callee")&&!k.call(A,"callee")};S.exports=C},1469:S=>{var M=Array.isArray;S.exports=M},8612:(S,M,h)=>{var m=h(3560),d=h(1780);S.exports=function(_){return _!=null&&d(_.length)&&!m(_)}},9246:(S,M,h)=>{var m=h(8612),d=h(7005);S.exports=function(_){return d(_)&&m(_)}},4144:(S,M,h)=>{S=h.nmd(S);var m=h(5639),d=h(5062),_=M&&!M.nodeType&&M,g=_&&S&&!S.nodeType&&S,k=g&&g.exports===_?m.Buffer:void 0,C=(k?k.isBuffer:void 0)||d;S.exports=C},1609:(S,M,h)=>{var m=h(280),d=h(4160),_=h(5694),g=h(1469),k=h(8612),C=h(4144),A=h(5726),I=h(6719),L=Object.prototype.hasOwnProperty;S.exports=function(Y){if(Y==null)return!0;if(k(Y)&&(g(Y)||typeof Y=="string"||typeof Y.splice=="function"||C(Y)||I(Y)||_(Y)))return!Y.length;var q=d(Y);if(q=="[object Map]"||q=="[object Set]")return!Y.size;if(A(Y))return!m(Y).length;for(var H in Y)if(L.call(Y,H))return!1;return!0}},3560:(S,M,h)=>{var m=h(4239),d=h(3218);S.exports=function(_){if(!d(_))return!1;var g=m(_);return g=="[object Function]"||g=="[object GeneratorFunction]"||g=="[object AsyncFunction]"||g=="[object Proxy]"}},1780:S=>{S.exports=function(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=9007199254740991}},6688:(S,M,h)=>{var m=h(5588),d=h(1717),_=h(1167),g=_&&_.isMap,k=g?d(g):m;S.exports=k},3218:S=>{S.exports=function(M){var h=typeof M;return M!=null&&(h=="object"||h=="function")}},7005:S=>{S.exports=function(M){return M!=null&&typeof M=="object"}},8630:(S,M,h)=>{var m=h(4239),d=h(5924),_=h(7005),g=Function.prototype,k=Object.prototype,C=g.toString,A=k.hasOwnProperty,I=C.call(Object);S.exports=function(L){if(!_(L)||m(L)!="[object Object]")return!1;var Y=d(L);if(Y===null)return!0;var q=A.call(Y,"constructor")&&Y.constructor;return typeof q=="function"&&q instanceof q&&C.call(q)==I}},2928:(S,M,h)=>{var m=h(9221),d=h(1717),_=h(1167),g=_&&_.isSet,k=g?d(g):m;S.exports=k},7037:(S,M,h)=>{var m=h(4239),d=h(1469),_=h(7005);S.exports=function(g){return typeof g=="string"||!d(g)&&_(g)&&m(g)=="[object String]"}},3448:(S,M,h)=>{var m=h(4239),d=h(7005);S.exports=function(_){return typeof _=="symbol"||d(_)&&m(_)=="[object Symbol]"}},6719:(S,M,h)=>{var m=h(8749),d=h(1717),_=h(1167),g=_&&_.isTypedArray,k=g?d(g):m;S.exports=k},2353:S=>{S.exports=function(M){return M===void 0}},3674:(S,M,h)=>{var m=h(4636),d=h(280),_=h(8612);S.exports=function(g){return _(g)?m(g):d(g)}},1704:(S,M,h)=>{var m=h(4636),d=h(313),_=h(8612);S.exports=function(g){return _(g)?m(g,!0):d(g)}},928:S=>{S.exports=function(M){var h=M==null?0:M.length;return h?M[h-1]:void 0}},5161:(S,M,h)=>{var m=h(9932),d=h(7206),_=h(9199),g=h(1469);S.exports=function(k,C){return(g(k)?m:_)(k,d(C,3))}},6604:(S,M,h)=>{var m=h(9465),d=h(7816),_=h(7206);S.exports=function(g,k){var C={};return k=_(k,3),d(g,function(A,I,L){m(C,I,k(A,I,L))}),C}},6162:(S,M,h)=>{var m=h(6029),d=h(3325),_=h(6557);S.exports=function(g){return g&&g.length?m(g,_,d):void 0}},8306:(S,M,h)=>{var m=h(3369);function d(_,g){if(typeof _!="function"||g!=null&&typeof g!="function")throw new TypeError("Expected a function");var k=function(){var C=arguments,A=g?g.apply(this,C):C[0],I=k.cache;if(I.has(A))return I.get(A);var L=_.apply(this,C);return k.cache=I.set(A,L)||I,L};return k.cache=new(d.Cache||m),k}d.Cache=m,S.exports=d},3857:(S,M,h)=>{var m=h(2980),d=h(1750)(function(_,g,k){m(_,g,k)});S.exports=d},3632:(S,M,h)=>{var m=h(6029),d=h(433),_=h(6557);S.exports=function(g){return g&&g.length?m(g,_,d):void 0}},2762:(S,M,h)=>{var m=h(6029),d=h(7206),_=h(433);S.exports=function(g,k){return g&&g.length?m(g,d(k,2),_):void 0}},308:S=>{S.exports=function(){}},7771:(S,M,h)=>{var m=h(5639);S.exports=function(){return m.Date.now()}},9722:(S,M,h)=>{var m=h(5970),d=h(9021)(function(_,g){return _==null?{}:m(_,g)});S.exports=d},9601:(S,M,h)=>{var m=h(371),d=h(9152),_=h(5403),g=h(327);S.exports=function(k){return _(k)?m(g(k)):d(k)}},6026:(S,M,h)=>{var m=h(7445)();S.exports=m},4061:(S,M,h)=>{var m=h(2663),d=h(9881),_=h(7206),g=h(107),k=h(1469);S.exports=function(C,A,I){var L=k(C)?m:g,Y=arguments.length<3;return L(C,_(A,4),I,Y,d)}},4238:(S,M,h)=>{var m=h(280),d=h(4160),_=h(8612),g=h(7037),k=h(8016);S.exports=function(C){if(C==null)return 0;if(_(C))return g(C)?k(C):C.length;var A=d(C);return A=="[object Map]"||A=="[object Set]"?C.size:m(C).length}},9734:(S,M,h)=>{var m=h(1078),d=h(9556),_=h(5976),g=h(6612),k=_(function(C,A){if(C==null)return[];var I=A.length;return I>1&&g(C,A[0],A[1])?A=[]:I>2&&g(A[0],A[1],A[2])&&(A=[A[0]]),d(C,m(A,1),[])});S.exports=k},479:S=>{S.exports=function(){return[]}},5062:S=>{S.exports=function(){return!1}},8601:(S,M,h)=>{var m=h(4841);S.exports=function(d){return d?(d=m(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}},554:(S,M,h)=>{var m=h(8601);S.exports=function(d){var _=m(d),g=_%1;return _==_?g?_-g:_:0}},4841:(S,M,h)=>{var m=h(7561),d=h(3218),_=h(3448),g=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,C=/^0o[0-7]+$/i,A=parseInt;S.exports=function(I){if(typeof I=="number")return I;if(_(I))return NaN;if(d(I)){var L=typeof I.valueOf=="function"?I.valueOf():I;I=d(L)?L+"":L}if(typeof I!="string")return I===0?I:+I;I=m(I);var Y=k.test(I);return Y||C.test(I)?A(I.slice(2),Y?2:8):g.test(I)?NaN:+I}},3678:(S,M,h)=>{var m=h(8363),d=h(1704);S.exports=function(_){return m(_,d(_))}},9833:(S,M,h)=>{var m=h(531);S.exports=function(d){return d==null?"":m(d)}},8718:(S,M,h)=>{var m=h(7412),d=h(3118),_=h(7816),g=h(7206),k=h(5924),C=h(1469),A=h(4144),I=h(3560),L=h(3218),Y=h(6719);S.exports=function(q,H,V){var X=C(q),J=X||A(q)||Y(q);if(H=g(H,4),V==null){var lt=q&&q.constructor;V=J?X?new lt:[]:L(q)&&I(lt)?d(k(q)):{}}return(J?m:_)(q,function(nt,_t,dt){return H(V,nt,_t,dt)}),V}},3386:(S,M,h)=>{var m=h(1078),d=h(5976),_=h(5652),g=h(9246),k=d(function(C){return _(m(C,1,g,!0))});S.exports=k},3955:(S,M,h)=>{var m=h(9833),d=0;S.exports=function(_){var g=++d;return m(_)+g}},2628:(S,M,h)=>{var m=h(7415),d=h(3674);S.exports=function(_){return _==null?[]:m(_,d(_))}},7287:(S,M,h)=>{var m=h(4865),d=h(1757);S.exports=function(_,g){return d(_||[],g||[],m)}},9234:()=>{},1748:(S,M,h)=>{var m={"./locale":9234,"./locale.js":9234};function d(g){var k=_(g);return h(k)}function _(g){if(!h.o(m,g)){var k=new Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k}return m[g]}d.keys=function(){return Object.keys(m)},d.resolve=_,S.exports=d,d.id=1748},1941:function(S,M,h){(S=h.nmd(S)).exports=function(){var m,d;function _(){return m.apply(null,arguments)}function g(E){return E instanceof Array||Object.prototype.toString.call(E)==="[object Array]"}function k(E){return E!=null&&Object.prototype.toString.call(E)==="[object Object]"}function C(E){return E===void 0}function A(E){return typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]"}function I(E){return E instanceof Date||Object.prototype.toString.call(E)==="[object Date]"}function L(E,R){var $,it=[];for($=0;$<E.length;++$)it.push(R(E[$],$));return it}function Y(E,R){return Object.prototype.hasOwnProperty.call(E,R)}function q(E,R){for(var $ in R)Y(R,$)&&(E[$]=R[$]);return Y(R,"toString")&&(E.toString=R.toString),Y(R,"valueOf")&&(E.valueOf=R.valueOf),E}function H(E,R,$,it){return $i(E,R,$,it,!0).utc()}function V(E){return E._pf==null&&(E._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),E._pf}function X(E){if(E._isValid==null){var R=V(E),$=d.call(R.parsedDateParts,function($t){return $t!=null}),it=!isNaN(E._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&$);if(E._strict&&(it=it&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(E))return it;E._isValid=it}return E._isValid}function J(E){var R=H(NaN);return E!=null?q(V(R),E):V(R).userInvalidated=!0,R}d=Array.prototype.some?Array.prototype.some:function(E){for(var R=Object(this),$=R.length>>>0,it=0;it<$;it++)if(it in R&&E.call(this,R[it],it,R))return!0;return!1};var lt=_.momentProperties=[];function nt(E,R){var $,it,$t;if(C(R._isAMomentObject)||(E._isAMomentObject=R._isAMomentObject),C(R._i)||(E._i=R._i),C(R._f)||(E._f=R._f),C(R._l)||(E._l=R._l),C(R._strict)||(E._strict=R._strict),C(R._tzm)||(E._tzm=R._tzm),C(R._isUTC)||(E._isUTC=R._isUTC),C(R._offset)||(E._offset=R._offset),C(R._pf)||(E._pf=V(R)),C(R._locale)||(E._locale=R._locale),0<lt.length)for($=0;$<lt.length;$++)C($t=R[it=lt[$]])||(E[it]=$t);return E}var _t=!1;function dt(E){nt(this,E),this._d=new Date(E._d!=null?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_t===!1&&(_t=!0,_.updateOffset(this),_t=!1)}function At(E){return E instanceof dt||E!=null&&E._isAMomentObject!=null}function st(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function K(E){var R=+E,$=0;return R!==0&&isFinite(R)&&($=st(R)),$}function mt(E,R,$){var it,$t=Math.min(E.length,R.length),de=Math.abs(E.length-R.length),we=0;for(it=0;it<$t;it++)($&&E[it]!==R[it]||!$&&K(E[it])!==K(R[it]))&&we++;return we+de}function St(E){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+E)}function It(E,R){var $=!0;return q(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,E),$){for(var it,$t=[],de=0;de<arguments.length;de++){if(it="",typeof arguments[de]=="object"){for(var we in it+=`
[`+de+"] ",arguments[0])it+=we+": "+arguments[0][we]+", ";it=it.slice(0,-2)}else it=arguments[de];$t.push(it)}St(E+`
Arguments: `+Array.prototype.slice.call($t).join("")+`
`+new Error().stack),$=!1}return R.apply(this,arguments)},R)}var ft,vt={};function Wt(E,R){_.deprecationHandler!=null&&_.deprecationHandler(E,R),vt[E]||(St(R),vt[E]=!0)}function jt(E){return E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function me(E,R){var $,it=q({},E);for($ in R)Y(R,$)&&(k(E[$])&&k(R[$])?(it[$]={},q(it[$],E[$]),q(it[$],R[$])):R[$]!=null?it[$]=R[$]:delete it[$]);for($ in E)Y(E,$)&&!Y(R,$)&&k(E[$])&&(it[$]=q({},it[$]));return it}function ge(E){E!=null&&this.set(E)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null,ft=Object.keys?Object.keys:function(E){var R,$=[];for(R in E)Y(E,R)&&$.push(R);return $};var pe={};function Dt(E,R){var $=E.toLowerCase();pe[$]=pe[$+"s"]=pe[R]=E}function Zt(E){return typeof E=="string"?pe[E]||pe[E.toLowerCase()]:void 0}function se(E){var R,$,it={};for($ in E)Y(E,$)&&(R=Zt($))&&(it[R]=E[$]);return it}var le={};function ye(E,R){le[E]=R}function Ot(E,R,$){var it=""+Math.abs(E),$t=R-it.length;return(0<=E?$?"+":"":"-")+Math.pow(10,Math.max(0,$t)).toString().substr(1)+it}var We=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,he=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},te={};function at(E,R,$,it){var $t=it;typeof it=="string"&&($t=function(){return this[it]()}),E&&(te[E]=$t),R&&(te[R[0]]=function(){return Ot($t.apply(this,arguments),R[1],R[2])}),$&&(te[$]=function(){return this.localeData().ordinal($t.apply(this,arguments),E)})}function ne(E,R){return E.isValid()?(R=Mt(R,E.localeData()),zt[R]=zt[R]||function($){var it,$t,de,we=$.match(We);for(it=0,$t=we.length;it<$t;it++)te[we[it]]?we[it]=te[we[it]]:we[it]=(de=we[it]).match(/\[[\s\S]/)?de.replace(/^\[|\]$/g,""):de.replace(/\\/g,"");return function(Ne){var Oe,ze="";for(Oe=0;Oe<$t;Oe++)ze+=jt(we[Oe])?we[Oe].call(Ne,$):we[Oe];return ze}}(R),zt[R](E)):E.localeData().invalidDate()}function Mt(E,R){var $=5;function it($t){return R.longDateFormat($t)||$t}for(he.lastIndex=0;0<=$&&he.test(E);)E=E.replace(he,it),he.lastIndex=0,$-=1;return E}var Xt=/\d/,Ht=/\d\d/,Nt=/\d{3}/,oe=/\d{4}/,tn=/[+-]?\d{6}/,ve=/\d\d?/,De=/\d\d\d\d?/,ln=/\d\d\d\d\d\d?/,Xe=/\d{1,3}/,Ie=/\d{1,4}/,Ae=/[+-]?\d{1,6}/,en=/\d+/,Ue=/[+-]?\d+/,Ze=/Z|[+-]\d\d:?\d\d/gi,Qe=/Z|[+-]\d\d(?::?\d\d)?/gi,Le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Yn={};function Me(E,R,$){Yn[E]=jt(R)?R:function(it,$t){return it&&$?$:R}}function an(E,R){return Y(Yn,E)?Yn[E](R._strict,R._locale):new RegExp(vn(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function($,it,$t,de,we){return it||$t||de||we})))}function vn(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Or={};function bn(E,R){var $,it=R;for(typeof E=="string"&&(E=[E]),A(R)&&(it=function($t,de){de[R]=K($t)}),$=0;$<E.length;$++)Or[E[$]]=it}function Kn(E,R){bn(E,function($,it,$t,de){$t._w=$t._w||{},R($,$t._w,$t,de)})}function cn(E){return gn(E)?366:365}function gn(E){return E%4==0&&E%100!=0||E%400==0}at("Y",0,0,function(){var E=this.year();return E<=9999?""+E:"+"+E}),at(0,["YY",2],0,function(){return this.year()%100}),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),Dt("year","y"),ye("year",1),Me("Y",Ue),Me("YY",ve,Ht),Me("YYYY",Ie,oe),Me("YYYYY",Ae,tn),Me("YYYYYY",Ae,tn),bn(["YYYYY","YYYYYY"],0),bn("YYYY",function(E,R){R[0]=E.length===2?_.parseTwoDigitYear(E):K(E)}),bn("YY",function(E,R){R[0]=_.parseTwoDigitYear(E)}),bn("Y",function(E,R){R[0]=parseInt(E,10)}),_.parseTwoDigitYear=function(E){return K(E)+(68<K(E)?1900:2e3)};var Ke,Tn=wn("FullYear",!0);function wn(E,R){return function($){return $!=null?(Un(this,E,$),_.updateOffset(this,R),this):zn(this,E)}}function zn(E,R){return E.isValid()?E._d["get"+(E._isUTC?"UTC":"")+R]():NaN}function Un(E,R,$){E.isValid()&&!isNaN($)&&(R==="FullYear"&&gn(E.year())&&E.month()===1&&E.date()===29?E._d["set"+(E._isUTC?"UTC":"")+R]($,E.month(),Cr($,E.month())):E._d["set"+(E._isUTC?"UTC":"")+R]($))}function Cr(E,R){if(isNaN(E)||isNaN(R))return NaN;var $=(R%12+12)%12;return E+=(R-$)/12,$===1?gn(E)?29:28:31-$%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(E){var R;for(R=0;R<this.length;++R)if(this[R]===E)return R;return-1},at("M",["MM",2],"Mo",function(){return this.month()+1}),at("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),at("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Dt("month","M"),ye("month",8),Me("M",ve),Me("MM",ve,Ht),Me("MMM",function(E,R){return R.monthsShortRegex(E)}),Me("MMMM",function(E,R){return R.monthsRegex(E)}),bn(["M","MM"],function(E,R){R[1]=K(E)-1}),bn(["MMM","MMMM"],function(E,R,$,it){var $t=$._locale.monthsParse(E,it,$._strict);$t!=null?R[1]=$t:V($).invalidMonth=E});var kn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Hn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function $n(E,R){var $;if(!E.isValid())return E;if(typeof R=="string"){if(/^\d+$/.test(R))R=K(R);else if(!A(R=E.localeData().monthsParse(R)))return E}return $=Math.min(E.date(),Cr(E.year(),R)),E._d["set"+(E._isUTC?"UTC":"")+"Month"](R,$),E}function Vn(E){return E!=null?($n(this,E),_.updateOffset(this,!0),this):zn(this,"Month")}var Jn=Le,An=Le;function Ln(){function E(we,Ne){return Ne.length-we.length}var R,$,it=[],$t=[],de=[];for(R=0;R<12;R++)$=H([2e3,R]),it.push(this.monthsShort($,"")),$t.push(this.months($,"")),de.push(this.months($,"")),de.push(this.monthsShort($,""));for(it.sort(E),$t.sort(E),de.sort(E),R=0;R<12;R++)it[R]=vn(it[R]),$t[R]=vn($t[R]);for(R=0;R<24;R++)de[R]=vn(de[R]);this._monthsRegex=new RegExp("^("+de.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+$t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+it.join("|")+")","i")}function un(E){var R;if(E<100&&0<=E){var $=Array.prototype.slice.call(arguments);$[0]=E+400,R=new Date(Date.UTC.apply(null,$)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(E)}else R=new Date(Date.UTC.apply(null,arguments));return R}function jn(E,R,$){var it=7+R-$;return-(7+un(E,0,it).getUTCDay()-R)%7+it-1}function mn(E,R,$,it,$t){var de,we,Ne=1+7*(R-1)+(7+$-it)%7+jn(E,it,$t);return we=Ne<=0?cn(de=E-1)+Ne:Ne>cn(E)?(de=E+1,Ne-cn(E)):(de=E,Ne),{year:de,dayOfYear:we}}function ei(E,R,$){var it,$t,de=jn(E.year(),R,$),we=Math.floor((E.dayOfYear()-de-1)/7)+1;return we<1?it=we+dr($t=E.year()-1,R,$):we>dr(E.year(),R,$)?(it=we-dr(E.year(),R,$),$t=E.year()+1):($t=E.year(),it=we),{week:it,year:$t}}function dr(E,R,$){var it=jn(E,R,$),$t=jn(E+1,R,$);return(cn(E)-it+$t)/7}function Ii(E,R){return E.slice(R,7).concat(E.slice(0,R))}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),Dt("week","w"),Dt("isoWeek","W"),ye("week",5),ye("isoWeek",5),Me("w",ve),Me("ww",ve,Ht),Me("W",ve),Me("WW",ve,Ht),Kn(["w","ww","W","WW"],function(E,R,$,it){R[it.substr(0,1)]=K(E)}),at("d",0,"do","day"),at("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),at("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),at("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),Dt("day","d"),Dt("weekday","e"),Dt("isoWeekday","E"),ye("day",11),ye("weekday",11),ye("isoWeekday",11),Me("d",ve),Me("e",ve),Me("E",ve),Me("dd",function(E,R){return R.weekdaysMinRegex(E)}),Me("ddd",function(E,R){return R.weekdaysShortRegex(E)}),Me("dddd",function(E,R){return R.weekdaysRegex(E)}),Kn(["dd","ddd","dddd"],function(E,R,$,it){var $t=$._locale.weekdaysParse(E,it,$._strict);$t!=null?R.d=$t:V($).invalidWeekday=E}),Kn(["d","e","E"],function(E,R,$,it){R[it]=K(E)});var In="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),po="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ni=Le,Br=Le,Fr=Le;function $r(){function E(Ve,xn){return xn.length-Ve.length}var R,$,it,$t,de,we=[],Ne=[],Oe=[],ze=[];for(R=0;R<7;R++)$=H([2e3,1]).day(R),it=this.weekdaysMin($,""),$t=this.weekdaysShort($,""),de=this.weekdays($,""),we.push(it),Ne.push($t),Oe.push(de),ze.push(it),ze.push($t),ze.push(de);for(we.sort(E),Ne.sort(E),Oe.sort(E),ze.sort(E),R=0;R<7;R++)Ne[R]=vn(Ne[R]),Oe[R]=vn(Oe[R]),ze[R]=vn(ze[R]);this._weekdaysRegex=new RegExp("^("+ze.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Oe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ne.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+we.join("|")+")","i")}function Xr(){return this.hours()%12||12}function Sr(E,R){at(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}function Zr(E,R){return R._meridiemParse}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Xr),at("k",["kk",2],0,function(){return this.hours()||24}),at("hmm",0,0,function(){return""+Xr.apply(this)+Ot(this.minutes(),2)}),at("hmmss",0,0,function(){return""+Xr.apply(this)+Ot(this.minutes(),2)+Ot(this.seconds(),2)}),at("Hmm",0,0,function(){return""+this.hours()+Ot(this.minutes(),2)}),at("Hmmss",0,0,function(){return""+this.hours()+Ot(this.minutes(),2)+Ot(this.seconds(),2)}),Sr("a",!0),Sr("A",!1),Dt("hour","h"),ye("hour",13),Me("a",Zr),Me("A",Zr),Me("H",ve),Me("h",ve),Me("k",ve),Me("HH",ve,Ht),Me("hh",ve,Ht),Me("kk",ve,Ht),Me("hmm",De),Me("hmmss",ln),Me("Hmm",De),Me("Hmmss",ln),bn(["H","HH"],3),bn(["k","kk"],function(E,R,$){var it=K(E);R[3]=it===24?0:it}),bn(["a","A"],function(E,R,$){$._isPm=$._locale.isPM(E),$._meridiem=E}),bn(["h","hh"],function(E,R,$){R[3]=K(E),V($).bigHour=!0}),bn("hmm",function(E,R,$){var it=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it)),V($).bigHour=!0}),bn("hmmss",function(E,R,$){var it=E.length-4,$t=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it,2)),R[5]=K(E.substr($t)),V($).bigHour=!0}),bn("Hmm",function(E,R,$){var it=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it))}),bn("Hmmss",function(E,R,$){var it=E.length-4,$t=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it,2)),R[5]=K(E.substr($t))});var Lr,Ci=wn("Hours",!0),ai={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Hn,monthsShort:Pn,week:{dow:0,doy:6},weekdays:In,weekdaysMin:oa,weekdaysShort:po,meridiemParse:/[ap]\.?m?\.?/i},er={},Hr={};function sa(E){return E&&E.toLowerCase().replace("_","-")}function Qr(E){var R=null;if(!er[E]&&S&&S.exports)try{R=Lr._abbr,h(1748)("./"+E),ca(R)}catch{}return er[E]}function ca(E,R){var $;return E&&(($=C(R)?oi(E):eo(E,R))?Lr=$:typeof console!="undefined"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Lr._abbr}function eo(E,R){if(R===null)return delete er[E],null;var $,it=ai;if(R.abbr=E,er[E]!=null)Wt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),it=er[E]._config;else if(R.parentLocale!=null)if(er[R.parentLocale]!=null)it=er[R.parentLocale]._config;else{if(($=Qr(R.parentLocale))==null)return Hr[R.parentLocale]||(Hr[R.parentLocale]=[]),Hr[R.parentLocale].push({name:E,config:R}),null;it=$._config}return er[E]=new ge(me(it,R)),Hr[E]&&Hr[E].forEach(function($t){eo($t.name,$t.config)}),ca(E),er[E]}function oi(E){var R;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Lr;if(!g(E)){if(R=Qr(E))return R;E=[E]}return function($){for(var it,$t,de,we,Ne=0;Ne<$.length;){for(it=(we=sa($[Ne]).split("-")).length,$t=($t=sa($[Ne+1]))?$t.split("-"):null;0<it;){if(de=Qr(we.slice(0,it).join("-")))return de;if($t&&$t.length>=it&&mt(we,$t,!0)>=it-1)break;it--}Ne++}return Lr}(E)}function on(E){var R,$=E._a;return $&&V(E).overflow===-2&&(R=$[1]<0||11<$[1]?1:$[2]<1||$[2]>Cr($[0],$[1])?2:$[3]<0||24<$[3]||$[3]===24&&($[4]!==0||$[5]!==0||$[6]!==0)?3:$[4]<0||59<$[4]?4:$[5]<0||59<$[5]?5:$[6]<0||999<$[6]?6:-1,V(E)._overflowDayOfYear&&(R<0||2<R)&&(R=2),V(E)._overflowWeeks&&R===-1&&(R=7),V(E)._overflowWeekday&&R===-1&&(R=8),V(E).overflow=R),E}function Gn(E,R,$){return E!=null?E:R!=null?R:$}function En(E){var R,$,it,$t,de,we=[];if(!E._d){var Ne,Oe;for(Ne=E,Oe=new Date(_.now()),it=Ne._useUTC?[Oe.getUTCFullYear(),Oe.getUTCMonth(),Oe.getUTCDate()]:[Oe.getFullYear(),Oe.getMonth(),Oe.getDate()],E._w&&E._a[2]==null&&E._a[1]==null&&function(ze){var Ve,xn,fn,cr,ur,Mr,or,ha;if((Ve=ze._w).GG!=null||Ve.W!=null||Ve.E!=null)ur=1,Mr=4,xn=Gn(Ve.GG,ze._a[0],ei(Cn(),1,4).year),fn=Gn(Ve.W,1),((cr=Gn(Ve.E,1))<1||7<cr)&&(ha=!0);else{ur=ze._locale._week.dow,Mr=ze._locale._week.doy;var ms=ei(Cn(),ur,Mr);xn=Gn(Ve.gg,ze._a[0],ms.year),fn=Gn(Ve.w,ms.week),Ve.d!=null?((cr=Ve.d)<0||6<cr)&&(ha=!0):Ve.e!=null?(cr=Ve.e+ur,(Ve.e<0||6<Ve.e)&&(ha=!0)):cr=ur}fn<1||fn>dr(xn,ur,Mr)?V(ze)._overflowWeeks=!0:ha!=null?V(ze)._overflowWeekday=!0:(or=mn(xn,fn,cr,ur,Mr),ze._a[0]=or.year,ze._dayOfYear=or.dayOfYear)}(E),E._dayOfYear!=null&&(de=Gn(E._a[0],it[0]),(E._dayOfYear>cn(de)||E._dayOfYear===0)&&(V(E)._overflowDayOfYear=!0),$=un(de,0,E._dayOfYear),E._a[1]=$.getUTCMonth(),E._a[2]=$.getUTCDate()),R=0;R<3&&E._a[R]==null;++R)E._a[R]=we[R]=it[R];for(;R<7;R++)E._a[R]=we[R]=E._a[R]==null?R===2?1:0:E._a[R];E._a[3]===24&&E._a[4]===0&&E._a[5]===0&&E._a[6]===0&&(E._nextDay=!0,E._a[3]=0),E._d=(E._useUTC?un:function(ze,Ve,xn,fn,cr,ur,Mr){var or;return ze<100&&0<=ze?(or=new Date(ze+400,Ve,xn,fn,cr,ur,Mr),isFinite(or.getFullYear())&&or.setFullYear(ze)):or=new Date(ze,Ve,xn,fn,cr,ur,Mr),or}).apply(null,we),$t=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[3]=24),E._w&&E._w.d!==void 0&&E._w.d!==$t&&(V(E).weekdayMismatch=!0)}}var Re=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,Vr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Qt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Si=/^\/?Date\((\-?\d+)/i;function Wi(E){var R,$,it,$t,de,we,Ne=E._i,Oe=Re.exec(Ne)||Xn.exec(Ne);if(Oe){for(V(E).iso=!0,R=0,$=Vr.length;R<$;R++)if(Vr[R][1].exec(Oe[1])){$t=Vr[R][0],it=Vr[R][2]!==!1;break}if($t==null)return void(E._isValid=!1);if(Oe[3]){for(R=0,$=Qt.length;R<$;R++)if(Qt[R][1].exec(Oe[3])){de=(Oe[2]||" ")+Qt[R][0];break}if(de==null)return void(E._isValid=!1)}if(!it&&de!=null)return void(E._isValid=!1);if(Oe[4]){if(!pt.exec(Oe[4]))return void(E._isValid=!1);we="Z"}E._f=$t+(de||"")+(we||""),yo(E)}else E._isValid=!1}var Ba=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,no={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function go(E){var R,$,it,$t=Ba.exec(E._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if($t){var de=function(we,Ne,Oe,ze,Ve,xn){var fn=[function(cr){var ur=parseInt(cr,10);return ur<=49?2e3+ur:ur<=999?1900+ur:ur}(we),Pn.indexOf(Ne),parseInt(Oe,10),parseInt(ze,10),parseInt(Ve,10)];return xn&&fn.push(parseInt(xn,10)),fn}($t[4],$t[3],$t[2],$t[5],$t[6],$t[7]);if($=de,it=E,(R=$t[1])&&po.indexOf(R)!==new Date($[0],$[1],$[2]).getDay()&&(V(it).weekdayMismatch=!0,!(it._isValid=!1)))return;E._a=de,E._tzm=function(we,Ne,Oe){if(we)return no[we];if(Ne)return 0;var ze=parseInt(Oe,10),Ve=ze%100;return(ze-Ve)/100*60+Ve}($t[8],$t[9],$t[10]),E._d=un.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),V(E).rfc2822=!0}else E._isValid=!1}function yo(E){if(E._f!==_.ISO_8601)if(E._f!==_.RFC_2822){E._a=[],V(E).empty=!0;var R,$,it,$t,de,we,Ne,Oe,ze=""+E._i,Ve=ze.length,xn=0;for(it=Mt(E._f,E._locale).match(We)||[],R=0;R<it.length;R++)$t=it[R],($=(ze.match(an($t,E))||[])[0])&&(0<(de=ze.substr(0,ze.indexOf($))).length&&V(E).unusedInput.push(de),ze=ze.slice(ze.indexOf($)+$.length),xn+=$.length),te[$t]?($?V(E).empty=!1:V(E).unusedTokens.push($t),we=$t,Oe=E,(Ne=$)!=null&&Y(Or,we)&&Or[we](Ne,Oe._a,Oe,we)):E._strict&&!$&&V(E).unusedTokens.push($t);V(E).charsLeftOver=Ve-xn,0<ze.length&&V(E).unusedInput.push(ze),E._a[3]<=12&&V(E).bigHour===!0&&0<E._a[3]&&(V(E).bigHour=void 0),V(E).parsedDateParts=E._a.slice(0),V(E).meridiem=E._meridiem,E._a[3]=function(fn,cr,ur){var Mr;return ur==null?cr:fn.meridiemHour!=null?fn.meridiemHour(cr,ur):(fn.isPM!=null&&((Mr=fn.isPM(ur))&&cr<12&&(cr+=12),Mr||cr!==12||(cr=0)),cr)}(E._locale,E._a[3],E._meridiem),En(E),on(E)}else go(E);else Wi(E)}function Wr(E){var R,$,it,$t,de=E._i,we=E._f;return E._locale=E._locale||oi(E._l),de===null||we===void 0&&de===""?J({nullInput:!0}):(typeof de=="string"&&(E._i=de=E._locale.preparse(de)),At(de)?new dt(on(de)):(I(de)?E._d=de:g(we)?function(Ne){var Oe,ze,Ve,xn,fn;if(Ne._f.length===0)return V(Ne).invalidFormat=!0,Ne._d=new Date(NaN);for(xn=0;xn<Ne._f.length;xn++)fn=0,Oe=nt({},Ne),Ne._useUTC!=null&&(Oe._useUTC=Ne._useUTC),Oe._f=Ne._f[xn],yo(Oe),X(Oe)&&(fn+=V(Oe).charsLeftOver,fn+=10*V(Oe).unusedTokens.length,V(Oe).score=fn,(Ve==null||fn<Ve)&&(Ve=fn,ze=Oe));q(Ne,ze||Oe)}(E):we?yo(E):C($=(R=E)._i)?R._d=new Date(_.now()):I($)?R._d=new Date($.valueOf()):typeof $=="string"?(it=R,($t=Si.exec(it._i))===null?(Wi(it),it._isValid===!1&&(delete it._isValid,go(it),it._isValid===!1&&(delete it._isValid,_.createFromInputFallback(it)))):it._d=new Date(+$t[1])):g($)?(R._a=L($.slice(0),function(Ne){return parseInt(Ne,10)}),En(R)):k($)?function(Ne){if(!Ne._d){var Oe=se(Ne._i);Ne._a=L([Oe.year,Oe.month,Oe.day||Oe.date,Oe.hour,Oe.minute,Oe.second,Oe.millisecond],function(ze){return ze&&parseInt(ze,10)}),En(Ne)}}(R):A($)?R._d=new Date($):_.createFromInputFallback(R),X(E)||(E._d=null),E))}function $i(E,R,$,it,$t){var de,we={};return $!==!0&&$!==!1||(it=$,$=void 0),(k(E)&&function(Ne){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ne).length===0;var Oe;for(Oe in Ne)if(Ne.hasOwnProperty(Oe))return!1;return!0}(E)||g(E)&&E.length===0)&&(E=void 0),we._isAMomentObject=!0,we._useUTC=we._isUTC=$t,we._l=$,we._i=E,we._f=R,we._strict=it,(de=new dt(on(Wr(we))))._nextDay&&(de.add(1,"d"),de._nextDay=void 0),de}function Cn(E,R,$,it){return $i(E,R,$,it,!1)}_.createFromInputFallback=It("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(E){E._d=new Date(E._i+(E._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};var Ta=It("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=Cn.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:J()}),La=It("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=Cn.apply(null,arguments);return this.isValid()&&E.isValid()?this<E?this:E:J()});function pr(E,R){var $,it;if(R.length===1&&g(R[0])&&(R=R[0]),!R.length)return Cn();for($=R[0],it=1;it<R.length;++it)R[it].isValid()&&!R[it][E]($)||($=R[it]);return $}var Tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function di(E){var R=se(E),$=R.year||0,it=R.quarter||0,$t=R.month||0,de=R.week||R.isoWeek||0,we=R.day||0,Ne=R.hour||0,Oe=R.minute||0,ze=R.second||0,Ve=R.millisecond||0;this._isValid=function(xn){for(var fn in xn)if(Ke.call(Tr,fn)===-1||xn[fn]!=null&&isNaN(xn[fn]))return!1;for(var cr=!1,ur=0;ur<Tr.length;++ur)if(xn[Tr[ur]]){if(cr)return!1;parseFloat(xn[Tr[ur]])!==K(xn[Tr[ur]])&&(cr=!0)}return!0}(R),this._milliseconds=+Ve+1e3*ze+6e4*Oe+1e3*Ne*60*60,this._days=+we+7*de,this._months=+$t+3*it+12*$,this._data={},this._locale=oi(),this._bubble()}function Kr(E){return E instanceof di}function Pr(E){return E<0?-1*Math.round(-1*E):Math.round(E)}function jr(E,R){at(E,0,0,function(){var $=this.utcOffset(),it="+";return $<0&&($=-$,it="-"),it+Ot(~~($/60),2)+R+Ot(~~$%60,2)})}jr("Z",":"),jr("ZZ",""),Me("Z",Qe),Me("ZZ",Qe),bn(["Z","ZZ"],function(E,R,$){$._useUTC=!0,$._tzm=Gr(Qe,E)});var si=/([\+\-]|\d\d)/gi;function Gr(E,R){var $=(R||"").match(E);if($===null)return null;var it=(($[$.length-1]||[])+"").match(si)||["-",0,0],$t=60*it[1]+K(it[2]);return $t===0?0:it[0]==="+"?$t:-$t}function Vi(E,R){var $,it;return R._isUTC?($=R.clone(),it=(At(E)||I(E)?E.valueOf():Cn(E).valueOf())-$.valueOf(),$._d.setTime($._d.valueOf()+it),_.updateOffset($,!1),$):Cn(E).local()}function Ri(E){return 15*-Math.round(E._d.getTimezoneOffset()/15)}function Ai(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var ro=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(E,R){var $,it,$t,de=E,we=null;return Kr(E)?de={ms:E._milliseconds,d:E._days,M:E._months}:A(E)?(de={},R?de[R]=E:de.milliseconds=E):(we=ro.exec(E))?($=we[1]==="-"?-1:1,de={y:0,d:K(we[2])*$,h:K(we[3])*$,m:K(we[4])*$,s:K(we[5])*$,ms:K(Pr(1e3*we[6]))*$}):(we=Bt.exec(E))?($=we[1]==="-"?-1:1,de={y:Ye(we[2],$),M:Ye(we[3],$),w:Ye(we[4],$),d:Ye(we[5],$),h:Ye(we[6],$),m:Ye(we[7],$),s:Ye(we[8],$)}):de==null?de={}:typeof de=="object"&&("from"in de||"to"in de)&&($t=function(Ne,Oe){var ze;return Ne.isValid()&&Oe.isValid()?(Oe=Vi(Oe,Ne),Ne.isBefore(Oe)?ze=gr(Ne,Oe):((ze=gr(Oe,Ne)).milliseconds=-ze.milliseconds,ze.months=-ze.months),ze):{milliseconds:0,months:0}}(Cn(de.from),Cn(de.to)),(de={}).ms=$t.milliseconds,de.M=$t.months),it=new di(de),Kr(E)&&Y(E,"_locale")&&(it._locale=E._locale),it}function Ye(E,R){var $=E&&parseFloat(E.replace(",","."));return(isNaN($)?0:$)*R}function gr(E,R){var $={};return $.months=R.month()-E.month()+12*(R.year()-E.year()),E.clone().add($.months,"M").isAfter(R)&&--$.months,$.milliseconds=+R-+E.clone().add($.months,"M"),$}function vr(E,R){return function($,it){var $t;return it===null||isNaN(+it)||(Wt(R,"moment()."+R+"(period, number) is deprecated. Please use moment()."+R+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$t=$,$=it,it=$t),pi(this,qe($=typeof $=="string"?+$:$,it),E),this}}function pi(E,R,$,it){var $t=R._milliseconds,de=Pr(R._days),we=Pr(R._months);E.isValid()&&(it=it==null||it,we&&$n(E,zn(E,"Month")+we*$),de&&Un(E,"Date",zn(E,"Date")+de*$),$t&&E._d.setTime(E._d.valueOf()+$t*$),it&&_.updateOffset(E,de||we))}qe.fn=di.prototype,qe.invalid=function(){return qe(NaN)};var Jr=vr(1,"add"),gs=vr(-1,"subtract");function ea(E,R){var $=12*(R.year()-E.year())+(R.month()-E.month()),it=E.clone().add($,"months");return-($+(R-it<0?(R-it)/(it-E.clone().add($-1,"months")):(R-it)/(E.clone().add($+1,"months")-it)))||0}function Yr(E){var R;return E===void 0?this._locale._abbr:((R=oi(E))!=null&&(this._locale=R),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Vs=It("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(E){return E===void 0?this.localeData():this.locale(E)});function Ia(){return this._locale}var Ec=126227808e5;function io(E,R){return(E%R+R)%R}function Cc(E,R,$){return E<100&&0<=E?new Date(E+400,R,$)-Ec:new Date(E,R,$).valueOf()}function Fi(E,R,$){return E<100&&0<=E?Date.UTC(E+400,R,$)-Ec:Date.UTC(E,R,$)}function ti(E,R){at(0,[E,E.length],0,R)}function pu(E,R,$,it,$t){var de;return E==null?ei(this,it,$t).year:((de=dr(E,it,$t))<R&&(R=de),function(we,Ne,Oe,ze,Ve){var xn=mn(we,Ne,Oe,ze,Ve),fn=un(xn.year,0,xn.dayOfYear);return this.year(fn.getUTCFullYear()),this.month(fn.getUTCMonth()),this.date(fn.getUTCDate()),this}.call(this,E,R,$,it,$t))}at(0,["gg",2],0,function(){return this.weekYear()%100}),at(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),Dt("weekYear","gg"),Dt("isoWeekYear","GG"),ye("weekYear",1),ye("isoWeekYear",1),Me("G",Ue),Me("g",Ue),Me("GG",ve,Ht),Me("gg",ve,Ht),Me("GGGG",Ie,oe),Me("gggg",Ie,oe),Me("GGGGG",Ae,tn),Me("ggggg",Ae,tn),Kn(["gggg","ggggg","GGGG","GGGGG"],function(E,R,$,it){R[it.substr(0,2)]=K(E)}),Kn(["gg","GG"],function(E,R,$,it){R[it]=_.parseTwoDigitYear(E)}),at("Q",0,"Qo","quarter"),Dt("quarter","Q"),ye("quarter",7),Me("Q",Xt),bn("Q",function(E,R){R[1]=3*(K(E)-1)}),at("D",["DD",2],"Do","date"),Dt("date","D"),ye("date",9),Me("D",ve),Me("DD",ve,Ht),Me("Do",function(E,R){return E?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),bn(["D","DD"],2),bn("Do",function(E,R){R[2]=K(E.match(ve)[0])});var gu=wn("Date",!0);at("DDD",["DDDD",3],"DDDo","dayOfYear"),Dt("dayOfYear","DDD"),ye("dayOfYear",4),Me("DDD",Xe),Me("DDDD",Nt),bn(["DDD","DDDD"],function(E,R,$){$._dayOfYear=K(E)}),at("m",["mm",2],0,"minute"),Dt("minute","m"),ye("minute",14),Me("m",ve),Me("mm",ve,Ht),bn(["m","mm"],4);var yu=wn("Minutes",!1);at("s",["ss",2],0,"second"),Dt("second","s"),ye("second",15),Me("s",ve),Me("ss",ve,Ht),bn(["s","ss"],5);var Ra,mu=wn("Seconds",!1);for(at("S",0,0,function(){return~~(this.millisecond()/100)}),at(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,function(){return 10*this.millisecond()}),at(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),at(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),at(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),at(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),at(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Dt("millisecond","ms"),ye("millisecond",16),Me("S",Xe,Xt),Me("SS",Xe,Ht),Me("SSS",Xe,Nt),Ra="SSSS";Ra.length<=9;Ra+="S")Me(Ra,en);function vu(E,R){R[6]=K(1e3*("0."+E))}for(Ra="S";Ra.length<=9;Ra+="S")bn(Ra,vu);var Fa=wn("Milliseconds",!1);at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var Pe=dt.prototype;function Rl(E){return E}Pe.add=Jr,Pe.calendar=function(E,R){var $=E||Cn(),it=Vi($,this).startOf("day"),$t=_.calendarFormat(this,it)||"sameElse",de=R&&(jt(R[$t])?R[$t].call(this,$):R[$t]);return this.format(de||this.localeData().calendar($t,this,Cn($)))},Pe.clone=function(){return new dt(this)},Pe.diff=function(E,R,$){var it,$t,de;if(!this.isValid())return NaN;if(!(it=Vi(E,this)).isValid())return NaN;switch($t=6e4*(it.utcOffset()-this.utcOffset()),R=Zt(R)){case"year":de=ea(this,it)/12;break;case"month":de=ea(this,it);break;case"quarter":de=ea(this,it)/3;break;case"second":de=(this-it)/1e3;break;case"minute":de=(this-it)/6e4;break;case"hour":de=(this-it)/36e5;break;case"day":de=(this-it-$t)/864e5;break;case"week":de=(this-it-$t)/6048e5;break;default:de=this-it}return $?de:st(de)},Pe.endOf=function(E){var R;if((E=Zt(E))===void 0||E==="millisecond"||!this.isValid())return this;var $=this._isUTC?Fi:Cc;switch(E){case"year":R=$(this.year()+1,0,1)-1;break;case"quarter":R=$(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=$(this.year(),this.month()+1,1)-1;break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=$(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=36e5-io(R+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":R=this._d.valueOf(),R+=6e4-io(R,6e4)-1;break;case"second":R=this._d.valueOf(),R+=1e3-io(R,1e3)-1}return this._d.setTime(R),_.updateOffset(this,!0),this},Pe.format=function(E){E||(E=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var R=ne(this,E);return this.localeData().postformat(R)},Pe.from=function(E,R){return this.isValid()&&(At(E)&&E.isValid()||Cn(E).isValid())?qe({to:this,from:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Pe.fromNow=function(E){return this.from(Cn(),E)},Pe.to=function(E,R){return this.isValid()&&(At(E)&&E.isValid()||Cn(E).isValid())?qe({from:this,to:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Pe.toNow=function(E){return this.to(Cn(),E)},Pe.get=function(E){return jt(this[E=Zt(E)])?this[E]():this},Pe.invalidAt=function(){return V(this).overflow},Pe.isAfter=function(E,R){var $=At(E)?E:Cn(E);return!(!this.isValid()||!$.isValid())&&((R=Zt(R)||"millisecond")==="millisecond"?this.valueOf()>$.valueOf():$.valueOf()<this.clone().startOf(R).valueOf())},Pe.isBefore=function(E,R){var $=At(E)?E:Cn(E);return!(!this.isValid()||!$.isValid())&&((R=Zt(R)||"millisecond")==="millisecond"?this.valueOf()<$.valueOf():this.clone().endOf(R).valueOf()<$.valueOf())},Pe.isBetween=function(E,R,$,it){var $t=At(E)?E:Cn(E),de=At(R)?R:Cn(R);return!!(this.isValid()&&$t.isValid()&&de.isValid())&&((it=it||"()")[0]==="("?this.isAfter($t,$):!this.isBefore($t,$))&&(it[1]===")"?this.isBefore(de,$):!this.isAfter(de,$))},Pe.isSame=function(E,R){var $,it=At(E)?E:Cn(E);return!(!this.isValid()||!it.isValid())&&((R=Zt(R)||"millisecond")==="millisecond"?this.valueOf()===it.valueOf():($=it.valueOf(),this.clone().startOf(R).valueOf()<=$&&$<=this.clone().endOf(R).valueOf()))},Pe.isSameOrAfter=function(E,R){return this.isSame(E,R)||this.isAfter(E,R)},Pe.isSameOrBefore=function(E,R){return this.isSame(E,R)||this.isBefore(E,R)},Pe.isValid=function(){return X(this)},Pe.lang=Vs,Pe.locale=Yr,Pe.localeData=Ia,Pe.max=La,Pe.min=Ta,Pe.parsingFlags=function(){return q({},V(this))},Pe.set=function(E,R){if(typeof E=="object")for(var $=function($t){var de=[];for(var we in $t)de.push({unit:we,priority:le[we]});return de.sort(function(Ne,Oe){return Ne.priority-Oe.priority}),de}(E=se(E)),it=0;it<$.length;it++)this[$[it].unit](E[$[it].unit]);else if(jt(this[E=Zt(E)]))return this[E](R);return this},Pe.startOf=function(E){var R;if((E=Zt(E))===void 0||E==="millisecond"||!this.isValid())return this;var $=this._isUTC?Fi:Cc;switch(E){case"year":R=$(this.year(),0,1);break;case"quarter":R=$(this.year(),this.month()-this.month()%3,1);break;case"month":R=$(this.year(),this.month(),1);break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=$(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=io(R+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":R=this._d.valueOf(),R-=io(R,6e4);break;case"second":R=this._d.valueOf(),R-=io(R,1e3)}return this._d.setTime(R),_.updateOffset(this,!0),this},Pe.subtract=gs,Pe.toArray=function(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]},Pe.toObject=function(){var E=this;return{years:E.year(),months:E.month(),date:E.date(),hours:E.hours(),minutes:E.minutes(),seconds:E.seconds(),milliseconds:E.milliseconds()}},Pe.toDate=function(){return new Date(this.valueOf())},Pe.toISOString=function(E){if(!this.isValid())return null;var R=E!==!0,$=R?this.clone().utc():this;return $.year()<0||9999<$.year()?ne($,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jt(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ne($,"Z")):ne($,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pe.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",R="";this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z");var $="["+E+'("]',it=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",$t=R+'[")]';return this.format($+it+"-MM-DD[T]HH:mm:ss.SSS"+$t)},Pe.toJSON=function(){return this.isValid()?this.toISOString():null},Pe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pe.unix=function(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Pe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pe.year=Tn,Pe.isLeapYear=function(){return gn(this.year())},Pe.weekYear=function(E){return pu.call(this,E,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Pe.isoWeekYear=function(E){return pu.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)},Pe.quarter=Pe.quarters=function(E){return E==null?Math.ceil((this.month()+1)/3):this.month(3*(E-1)+this.month()%3)},Pe.month=Vn,Pe.daysInMonth=function(){return Cr(this.year(),this.month())},Pe.week=Pe.weeks=function(E){var R=this.localeData().week(this);return E==null?R:this.add(7*(E-R),"d")},Pe.isoWeek=Pe.isoWeeks=function(E){var R=ei(this,1,4).week;return E==null?R:this.add(7*(E-R),"d")},Pe.weeksInYear=function(){var E=this.localeData()._week;return dr(this.year(),E.dow,E.doy)},Pe.isoWeeksInYear=function(){return dr(this.year(),1,4)},Pe.date=gu,Pe.day=Pe.days=function(E){if(!this.isValid())return E!=null?this:NaN;var R,$,it=this._isUTC?this._d.getUTCDay():this._d.getDay();return E!=null?(R=E,$=this.localeData(),E=typeof R!="string"?R:isNaN(R)?typeof(R=$.weekdaysParse(R))=="number"?R:null:parseInt(R,10),this.add(E-it,"d")):it},Pe.weekday=function(E){if(!this.isValid())return E!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return E==null?R:this.add(E-R,"d")},Pe.isoWeekday=function(E){if(!this.isValid())return E!=null?this:NaN;if(E==null)return this.day()||7;var R,$,it=(R=E,$=this.localeData(),typeof R=="string"?$.weekdaysParse(R)%7||7:isNaN(R)?null:R);return this.day(this.day()%7?it:it-7)},Pe.dayOfYear=function(E){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?R:this.add(E-R,"d")},Pe.hour=Pe.hours=Ci,Pe.minute=Pe.minutes=yu,Pe.second=Pe.seconds=mu,Pe.millisecond=Pe.milliseconds=Fa,Pe.utcOffset=function(E,R,$){var it,$t=this._offset||0;if(!this.isValid())return E!=null?this:NaN;if(E==null)return this._isUTC?$t:Ri(this);if(typeof E=="string"){if((E=Gr(Qe,E))===null)return this}else Math.abs(E)<16&&!$&&(E*=60);return!this._isUTC&&R&&(it=Ri(this)),this._offset=E,this._isUTC=!0,it!=null&&this.add(it,"m"),$t!==E&&(!R||this._changeInProgress?pi(this,qe(E-$t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},Pe.utc=function(E){return this.utcOffset(0,E)},Pe.local=function(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Ri(this),"m")),this},Pe.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=Gr(Ze,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this},Pe.hasAlignedHourOffset=function(E){return!!this.isValid()&&(E=E?Cn(E).utcOffset():0,(this.utcOffset()-E)%60==0)},Pe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pe.isLocal=function(){return!!this.isValid()&&!this._isUTC},Pe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Pe.isUtc=Ai,Pe.isUTC=Ai,Pe.zoneAbbr=function(){return this._isUTC?"UTC":""},Pe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Pe.dates=It("dates accessor is deprecated. Use date instead.",gu),Pe.months=It("months accessor is deprecated. Use month instead",Vn),Pe.years=It("years accessor is deprecated. Use year instead",Tn),Pe.zone=It("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(E,R){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,R),this):-this.utcOffset()}),Pe.isDSTShifted=It("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!C(this._isDSTShifted))return this._isDSTShifted;var E={};if(nt(E,this),(E=Wr(E))._a){var R=E._isUTC?H(E._a):Cn(E._a);this._isDSTShifted=this.isValid()&&0<mt(E._a,R.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Ar=ge.prototype;function Sc(E,R,$,it){var $t=oi(),de=H().set(it,R);return $t[$](de,E)}function Ac(E,R,$){if(A(E)&&(R=E,E=void 0),E=E||"",R!=null)return Sc(E,R,$,"month");var it,$t=[];for(it=0;it<12;it++)$t[it]=Sc(E,it,$,"month");return $t}function bu(E,R,$,it){typeof E=="boolean"?A(R)&&($=R,R=void 0):(R=E,E=!1,A($=R)&&($=R,R=void 0)),R=R||"";var $t,de=oi(),we=E?de._week.dow:0;if($!=null)return Sc(R,($+we)%7,it,"day");var Ne=[];for($t=0;$t<7;$t++)Ne[$t]=Sc(R,($t+we)%7,it,"day");return Ne}Ar.calendar=function(E,R,$){var it=this._calendar[E]||this._calendar.sameElse;return jt(it)?it.call(R,$):it},Ar.longDateFormat=function(E){var R=this._longDateFormat[E],$=this._longDateFormat[E.toUpperCase()];return R||!$?R:(this._longDateFormat[E]=$.replace(/MMMM|MM|DD|dddd/g,function(it){return it.slice(1)}),this._longDateFormat[E])},Ar.invalidDate=function(){return this._invalidDate},Ar.ordinal=function(E){return this._ordinal.replace("%d",E)},Ar.preparse=Rl,Ar.postformat=Rl,Ar.relativeTime=function(E,R,$,it){var $t=this._relativeTime[$];return jt($t)?$t(E,R,$,it):$t.replace(/%d/i,E)},Ar.pastFuture=function(E,R){var $=this._relativeTime[0<E?"future":"past"];return jt($)?$(R):$.replace(/%s/i,R)},Ar.set=function(E){var R,$;for($ in E)jt(R=E[$])?this[$]=R:this["_"+$]=R;this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ar.months=function(E,R){return E?g(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||kn).test(R)?"format":"standalone"][E.month()]:g(this._months)?this._months:this._months.standalone},Ar.monthsShort=function(E,R){return E?g(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[kn.test(R)?"format":"standalone"][E.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ar.monthsParse=function(E,R,$){var it,$t,de;if(this._monthsParseExact)return function(we,Ne,Oe){var ze,Ve,xn,fn=we.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ze=0;ze<12;++ze)xn=H([2e3,ze]),this._shortMonthsParse[ze]=this.monthsShort(xn,"").toLocaleLowerCase(),this._longMonthsParse[ze]=this.months(xn,"").toLocaleLowerCase();return Oe?Ne==="MMM"?(Ve=Ke.call(this._shortMonthsParse,fn))!==-1?Ve:null:(Ve=Ke.call(this._longMonthsParse,fn))!==-1?Ve:null:Ne==="MMM"?(Ve=Ke.call(this._shortMonthsParse,fn))!==-1||(Ve=Ke.call(this._longMonthsParse,fn))!==-1?Ve:null:(Ve=Ke.call(this._longMonthsParse,fn))!==-1||(Ve=Ke.call(this._shortMonthsParse,fn))!==-1?Ve:null}.call(this,E,R,$);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),it=0;it<12;it++)if($t=H([2e3,it]),$&&!this._longMonthsParse[it]&&(this._longMonthsParse[it]=new RegExp("^"+this.months($t,"").replace(".","")+"$","i"),this._shortMonthsParse[it]=new RegExp("^"+this.monthsShort($t,"").replace(".","")+"$","i")),$||this._monthsParse[it]||(de="^"+this.months($t,"")+"|^"+this.monthsShort($t,""),this._monthsParse[it]=new RegExp(de.replace(".",""),"i")),$&&R==="MMMM"&&this._longMonthsParse[it].test(E)||$&&R==="MMM"&&this._shortMonthsParse[it].test(E)||!$&&this._monthsParse[it].test(E))return it},Ar.monthsRegex=function(E){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ln.call(this),E?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=An),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)},Ar.monthsShortRegex=function(E){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ln.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Jn),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)},Ar.week=function(E){return ei(E,this._week.dow,this._week.doy).week},Ar.firstDayOfYear=function(){return this._week.doy},Ar.firstDayOfWeek=function(){return this._week.dow},Ar.weekdays=function(E,R){var $=g(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return E===!0?Ii($,this._week.dow):E?$[E.day()]:$},Ar.weekdaysMin=function(E){return E===!0?Ii(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin},Ar.weekdaysShort=function(E){return E===!0?Ii(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort},Ar.weekdaysParse=function(E,R,$){var it,$t,de;if(this._weekdaysParseExact)return function(we,Ne,Oe){var ze,Ve,xn,fn=we.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ze=0;ze<7;++ze)xn=H([2e3,1]).day(ze),this._minWeekdaysParse[ze]=this.weekdaysMin(xn,"").toLocaleLowerCase(),this._shortWeekdaysParse[ze]=this.weekdaysShort(xn,"").toLocaleLowerCase(),this._weekdaysParse[ze]=this.weekdays(xn,"").toLocaleLowerCase();return Oe?Ne==="dddd"?(Ve=Ke.call(this._weekdaysParse,fn))!==-1?Ve:null:Ne==="ddd"?(Ve=Ke.call(this._shortWeekdaysParse,fn))!==-1?Ve:null:(Ve=Ke.call(this._minWeekdaysParse,fn))!==-1?Ve:null:Ne==="dddd"?(Ve=Ke.call(this._weekdaysParse,fn))!==-1||(Ve=Ke.call(this._shortWeekdaysParse,fn))!==-1||(Ve=Ke.call(this._minWeekdaysParse,fn))!==-1?Ve:null:Ne==="ddd"?(Ve=Ke.call(this._shortWeekdaysParse,fn))!==-1||(Ve=Ke.call(this._weekdaysParse,fn))!==-1||(Ve=Ke.call(this._minWeekdaysParse,fn))!==-1?Ve:null:(Ve=Ke.call(this._minWeekdaysParse,fn))!==-1||(Ve=Ke.call(this._weekdaysParse,fn))!==-1||(Ve=Ke.call(this._shortWeekdaysParse,fn))!==-1?Ve:null}.call(this,E,R,$);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),it=0;it<7;it++)if($t=H([2e3,1]).day(it),$&&!this._fullWeekdaysParse[it]&&(this._fullWeekdaysParse[it]=new RegExp("^"+this.weekdays($t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[it]=new RegExp("^"+this.weekdaysShort($t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[it]=new RegExp("^"+this.weekdaysMin($t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[it]||(de="^"+this.weekdays($t,"")+"|^"+this.weekdaysShort($t,"")+"|^"+this.weekdaysMin($t,""),this._weekdaysParse[it]=new RegExp(de.replace(".",""),"i")),$&&R==="dddd"&&this._fullWeekdaysParse[it].test(E)||$&&R==="ddd"&&this._shortWeekdaysParse[it].test(E)||$&&R==="dd"&&this._minWeekdaysParse[it].test(E)||!$&&this._weekdaysParse[it].test(E))return it},Ar.weekdaysRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=ni),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)},Ar.weekdaysShortRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Br),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ar.weekdaysMinRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fr),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ar.isPM=function(E){return(E+"").toLowerCase().charAt(0)==="p"},Ar.meridiem=function(E,R,$){return 11<E?$?"pm":"PM":$?"am":"AM"},ca("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var R=E%10;return E+(K(E%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th")}}),_.lang=It("moment.lang is deprecated. Use moment.locale instead.",ca),_.langData=It("moment.langData is deprecated. Use moment.localeData instead.",oi);var Ea=Math.abs;function gi(E,R,$,it){var $t=qe(R,$);return E._milliseconds+=it*$t._milliseconds,E._days+=it*$t._days,E._months+=it*$t._months,E._bubble()}function Gs(E){return E<0?Math.floor(E):Math.ceil(E)}function Fl(E){return 4800*E/146097}function _u(E){return 146097*E/4800}function mo(E){return function(){return this.as(E)}}var Pl=mo("ms"),Lf=mo("s"),C0=mo("m"),If=mo("h"),Rf=mo("d"),ua=mo("w"),Ff=mo("M"),jl=mo("Q"),Yl=mo("y");function vo(E){return function(){return this.isValid()?this._data[E]:NaN}}var Mc=vo("milliseconds"),Pa=vo("seconds"),Nc=vo("minutes"),la=vo("hours"),ys=vo("days"),xu=vo("months"),bo=vo("years"),Pi=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,M:11},ja=Math.abs;function Ca(E){return(0<E)-(E<0)||+E}function Gi(){if(!this.isValid())return this.localeData().invalidDate();var E,R,$=ja(this._milliseconds)/1e3,it=ja(this._days),$t=ja(this._months);R=st((E=st($/60))/60),$%=60,E%=60;var de=st($t/12),we=$t%=12,Ne=it,Oe=R,ze=E,Ve=$?$.toFixed(3).replace(/\.?0+$/,""):"",xn=this.asSeconds();if(!xn)return"P0D";var fn=xn<0?"-":"",cr=Ca(this._months)!==Ca(xn)?"-":"",ur=Ca(this._days)!==Ca(xn)?"-":"",Mr=Ca(this._milliseconds)!==Ca(xn)?"-":"";return fn+"P"+(de?cr+de+"Y":"")+(we?cr+we+"M":"")+(Ne?ur+Ne+"D":"")+(Oe||ze||Ve?"T":"")+(Oe?Mr+Oe+"H":"")+(ze?Mr+ze+"M":"")+(Ve?Mr+Ve+"S":"")}var qn=di.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var E=this._data;return this._milliseconds=Ea(this._milliseconds),this._days=Ea(this._days),this._months=Ea(this._months),E.milliseconds=Ea(E.milliseconds),E.seconds=Ea(E.seconds),E.minutes=Ea(E.minutes),E.hours=Ea(E.hours),E.months=Ea(E.months),E.years=Ea(E.years),this},qn.add=function(E,R){return gi(this,E,R,1)},qn.subtract=function(E,R){return gi(this,E,R,-1)},qn.as=function(E){if(!this.isValid())return NaN;var R,$,it=this._milliseconds;if((E=Zt(E))==="month"||E==="quarter"||E==="year")switch(R=this._days+it/864e5,$=this._months+Fl(R),E){case"month":return $;case"quarter":return $/3;case"year":return $/12}else switch(R=this._days+Math.round(_u(this._months)),E){case"week":return R/7+it/6048e5;case"day":return R+it/864e5;case"hour":return 24*R+it/36e5;case"minute":return 1440*R+it/6e4;case"second":return 86400*R+it/1e3;case"millisecond":return Math.floor(864e5*R)+it;default:throw new Error("Unknown unit "+E)}},qn.asMilliseconds=Pl,qn.asSeconds=Lf,qn.asMinutes=C0,qn.asHours=If,qn.asDays=Rf,qn.asWeeks=ua,qn.asMonths=Ff,qn.asQuarters=jl,qn.asYears=Yl,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},qn._bubble=function(){var E,R,$,it,$t,de=this._milliseconds,we=this._days,Ne=this._months,Oe=this._data;return 0<=de&&0<=we&&0<=Ne||de<=0&&we<=0&&Ne<=0||(de+=864e5*Gs(_u(Ne)+we),Ne=we=0),Oe.milliseconds=de%1e3,E=st(de/1e3),Oe.seconds=E%60,R=st(E/60),Oe.minutes=R%60,$=st(R/60),Oe.hours=$%24,Ne+=$t=st(Fl(we+=st($/24))),we-=Gs(_u($t)),it=st(Ne/12),Ne%=12,Oe.days=we,Oe.months=Ne,Oe.years=it,this},qn.clone=function(){return qe(this)},qn.get=function(E){return E=Zt(E),this.isValid()?this[E+"s"]():NaN},qn.milliseconds=Mc,qn.seconds=Pa,qn.minutes=Nc,qn.hours=la,qn.days=ys,qn.weeks=function(){return st(this.days()/7)},qn.months=xu,qn.years=bo,qn.humanize=function(E){if(!this.isValid())return this.localeData().invalidDate();var R,$,it,$t,de,we,Ne,Oe,ze,Ve,xn=this.localeData(),fn=(R=!E,$=xn,it=qe(this).abs(),$t=Pi(it.as("s")),de=Pi(it.as("m")),we=Pi(it.as("h")),Ne=Pi(it.as("d")),Oe=Pi(it.as("M")),ze=Pi(it.as("y")),(Ve=$t<=ci.ss&&["s",$t]||$t<ci.s&&["ss",$t]||de<=1&&["m"]||de<ci.m&&["mm",de]||we<=1&&["h"]||we<ci.h&&["hh",we]||Ne<=1&&["d"]||Ne<ci.d&&["dd",Ne]||Oe<=1&&["M"]||Oe<ci.M&&["MM",Oe]||ze<=1&&["y"]||["yy",ze])[2]=R,Ve[3]=0<+this,Ve[4]=$,function(cr,ur,Mr,or,ha){return ha.relativeTime(ur||1,!!Mr,cr,or)}.apply(null,Ve));return E&&(fn=xn.pastFuture(+this,fn)),xn.postformat(fn)},qn.toISOString=Gi,qn.toString=Gi,qn.toJSON=Gi,qn.locale=Yr,qn.localeData=Ia,qn.toIsoString=It("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gi),qn.lang=Vs,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Me("x",Ue),Me("X",/[+-]?\d+(\.\d{1,3})?/),bn("X",function(E,R,$){$._d=new Date(1e3*parseFloat(E,10))}),bn("x",function(E,R,$){$._d=new Date(K(E))}),_.version="2.24.0",m=Cn,_.fn=Pe,_.min=function(){return pr("isBefore",[].slice.call(arguments,0))},_.max=function(){return pr("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=H,_.unix=function(E){return Cn(1e3*E)},_.months=function(E,R){return Ac(E,R,"months")},_.isDate=I,_.locale=ca,_.invalid=J,_.duration=qe,_.isMoment=At,_.weekdays=function(E,R,$){return bu(E,R,$,"weekdays")},_.parseZone=function(){return Cn.apply(null,arguments).parseZone()},_.localeData=oi,_.isDuration=Kr,_.monthsShort=function(E,R){return Ac(E,R,"monthsShort")},_.weekdaysMin=function(E,R,$){return bu(E,R,$,"weekdaysMin")},_.defineLocale=eo,_.updateLocale=function(E,R){if(R!=null){var $,it,$t=ai;(it=Qr(E))!=null&&($t=it._config),($=new ge(R=me($t,R))).parentLocale=er[E],er[E]=$,ca(E)}else er[E]!=null&&(er[E].parentLocale!=null?er[E]=er[E].parentLocale:er[E]!=null&&delete er[E]);return er[E]},_.locales=function(){return ft(er)},_.weekdaysShort=function(E,R,$){return bu(E,R,$,"weekdaysShort")},_.normalizeUnits=Zt,_.relativeTimeRounding=function(E){return E===void 0?Pi:typeof E=="function"&&(Pi=E,!0)},_.relativeTimeThreshold=function(E,R){return ci[E]!==void 0&&(R===void 0?ci[E]:(ci[E]=R,E==="s"&&(ci.ss=R-1),!0))},_.calendarFormat=function(E,R){var $=E.diff(R,"days",!0);return $<-6?"sameElse":$<-1?"lastWeek":$<0?"lastDay":$<1?"sameDay":$<2?"nextDay":$<7?"nextWeek":"sameElse"},_.prototype=Pe,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}()},6470:S=>{function M(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}function h(d,_){for(var g,k="",C=0,A=-1,I=0,L=0;L<=d.length;++L){if(L<d.length)g=d.charCodeAt(L);else{if(g===47)break;g=47}if(g===47){if(!(A===L-1||I===1))if(A!==L-1&&I===2){if(k.length<2||C!==2||k.charCodeAt(k.length-1)!==46||k.charCodeAt(k.length-2)!==46){if(k.length>2){var Y=k.lastIndexOf("/");if(Y!==k.length-1){Y===-1?(k="",C=0):C=(k=k.slice(0,Y)).length-1-k.lastIndexOf("/"),A=L,I=0;continue}}else if(k.length===2||k.length===1){k="",C=0,A=L,I=0;continue}}_&&(k.length>0?k+="/..":k="..",C=2)}else k.length>0?k+="/"+d.slice(A+1,L):k=d.slice(A+1,L),C=L-A-1;A=L,I=0}else g===46&&I!==-1?++I:I=-1}return k}var m={resolve:function(){for(var d,_="",g=!1,k=arguments.length-1;k>=-1&&!g;k--){var C;k>=0?C=arguments[k]:(d===void 0&&(d=process.cwd()),C=d),M(C),C.length!==0&&(_=C+"/"+_,g=C.charCodeAt(0)===47)}return _=h(_,!g),g?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(d){if(M(d),d.length===0)return".";var _=d.charCodeAt(0)===47,g=d.charCodeAt(d.length-1)===47;return(d=h(d,!_)).length!==0||_||(d="."),d.length>0&&g&&(d+="/"),_?"/"+d:d},isAbsolute:function(d){return M(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,_=0;_<arguments.length;++_){var g=arguments[_];M(g),g.length>0&&(d===void 0?d=g:d+="/"+g)}return d===void 0?".":m.normalize(d)},relative:function(d,_){if(M(d),M(_),d===_||(d=m.resolve(d))===(_=m.resolve(_)))return"";for(var g=1;g<d.length&&d.charCodeAt(g)===47;++g);for(var k=d.length,C=k-g,A=1;A<_.length&&_.charCodeAt(A)===47;++A);for(var I=_.length-A,L=C<I?C:I,Y=-1,q=0;q<=L;++q){if(q===L){if(I>L){if(_.charCodeAt(A+q)===47)return _.slice(A+q+1);if(q===0)return _.slice(A+q)}else C>L&&(d.charCodeAt(g+q)===47?Y=q:q===0&&(Y=0));break}var H=d.charCodeAt(g+q);if(H!==_.charCodeAt(A+q))break;H===47&&(Y=q)}var V="";for(q=g+Y+1;q<=k;++q)q!==k&&d.charCodeAt(q)!==47||(V.length===0?V+="..":V+="/..");return V.length>0?V+_.slice(A+Y):(A+=Y,_.charCodeAt(A)===47&&++A,_.slice(A))},_makeLong:function(d){return d},dirname:function(d){if(M(d),d.length===0)return".";for(var _=d.charCodeAt(0),g=_===47,k=-1,C=!0,A=d.length-1;A>=1;--A)if((_=d.charCodeAt(A))===47){if(!C){k=A;break}}else C=!1;return k===-1?g?"/":".":g&&k===1?"//":d.slice(0,k)},basename:function(d,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');M(d);var g,k=0,C=-1,A=!0;if(_!==void 0&&_.length>0&&_.length<=d.length){if(_.length===d.length&&_===d)return"";var I=_.length-1,L=-1;for(g=d.length-1;g>=0;--g){var Y=d.charCodeAt(g);if(Y===47){if(!A){k=g+1;break}}else L===-1&&(A=!1,L=g+1),I>=0&&(Y===_.charCodeAt(I)?--I==-1&&(C=g):(I=-1,C=L))}return k===C?C=L:C===-1&&(C=d.length),d.slice(k,C)}for(g=d.length-1;g>=0;--g)if(d.charCodeAt(g)===47){if(!A){k=g+1;break}}else C===-1&&(A=!1,C=g+1);return C===-1?"":d.slice(k,C)},extname:function(d){M(d);for(var _=-1,g=0,k=-1,C=!0,A=0,I=d.length-1;I>=0;--I){var L=d.charCodeAt(I);if(L!==47)k===-1&&(C=!1,k=I+1),L===46?_===-1?_=I:A!==1&&(A=1):_!==-1&&(A=-1);else if(!C){g=I+1;break}}return _===-1||k===-1||A===0||A===1&&_===k-1&&_===g+1?"":d.slice(_,k)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return function(_,g){var k=g.dir||g.root,C=g.base||(g.name||"")+(g.ext||"");return k?k===g.root?k+C:k+"/"+C:C}(0,d)},parse:function(d){M(d);var _={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return _;var g,k=d.charCodeAt(0),C=k===47;C?(_.root="/",g=1):g=0;for(var A=-1,I=0,L=-1,Y=!0,q=d.length-1,H=0;q>=g;--q)if((k=d.charCodeAt(q))!==47)L===-1&&(Y=!1,L=q+1),k===46?A===-1?A=q:H!==1&&(H=1):A!==-1&&(H=-1);else if(!Y){I=q+1;break}return A===-1||L===-1||H===0||H===1&&A===L-1&&A===I+1?L!==-1&&(_.base=_.name=I===0&&C?d.slice(1,L):d.slice(I,L)):(I===0&&C?(_.name=d.slice(1,A),_.base=d.slice(1,L)):(_.name=d.slice(I,A),_.base=d.slice(I,L)),_.ext=d.slice(A,L)),I>0?_.dir=d.slice(0,I-1):C&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,S.exports=m},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},Y_={};function Uo(S){var M=Y_[S];if(M!==void 0)return M.exports;var h=Y_[S]={id:S,loaded:!1,exports:{}};return Y6[S].call(h.exports,h,h.exports,Uo),h.loaded=!0,h.exports}Uo.c=Y_,Uo.n=S=>{var M=S&&S.__esModule?()=>S.default:()=>S;return Uo.d(M,{a:M}),M},Uo.d=(S,M)=>{for(var h in M)Uo.o(M,h)&&!Uo.o(S,h)&&Object.defineProperty(S,h,{enumerable:!0,get:M[h]})},Uo.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Uo.o=(S,M)=>Object.prototype.hasOwnProperty.call(S,M),Uo.r=S=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},Uo.nmd=S=>(S.paths=[],S.children||(S.children=[]),S);var r6=Uo(Uo.s=7458).Z;function z6(S){let M,h;return{c(){M=K_("div"),h=K_("div"),this.h()},l(m){M=J_(m,"DIV",{id:!0,class:!0});var d=t6(M);h=J_(d,"DIV",{id:!0,class:!0}),t6(h).forEach(R_),d.forEach(R_),this.h()},h(){xb(h,"id","container"),xb(h,"class","flex-1 overflow-auto"),xb(M,"id","view"),xb(M,"class","p-2 svelte-5ndy2s"),wb(M,"error",S[2]),wb(M,"outOfSync",S[3])},m(m,d){A6(m,M,d),M6(M,h),S[4](h),S[5](M)},p(m,[d]){d&4&&wb(M,"error",m[2]),d&8&&wb(M,"outOfSync",m[3])},i:e6,o:e6,d(m){m&&R_(M),S[4](null),S[5](null)}}}function U6(S,M,h){let m;N6(S,F_,q=>h(9,m=q));let d="",_="",g,k,C=!1,A=!1,I=!0;D6(()=>{F_.subscribe(q=>{try{if(g&&q&&(q.updateDiagram||q.autoSync)){if(q.autoSync||O6(F_,m.updateDiagram=!1,m),h(3,A=!1),I=!0,d===q.code&&_===q.mermaid)return;d=q.code,_=q.mermaid;const H=k.parentElement.scrollTop;delete g.dataset.processed,r6.initialize(Object.assign({},JSON.parse(q.mermaid))),r6.render("graph-div",d,V=>{h(0,g.innerHTML=V,g)}),h(1,k.parentElement.scrollTop=H,k),h(2,C=!1)}else I?I=!1:h(3,A=!0)}catch(H){console.log("view fail",H),h(2,C=!0)}}),j6.subscribe(q=>{typeof q=="undefined"?h(2,C=!1):(h(2,C=!0),console.log("Error: ",q))})});function L(q){n6[q?"unshift":"push"](()=>{g=q,h(0,g)})}function Y(q){n6[q?"unshift":"push"](()=>{k=q,h(1,k)})}return[g,k,C,A,L,Y]}class ix extends E6{constructor(M){super();C6(this,M,U6,z6,S6,{})}}var kb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},J2={},u6={};(function(S){var M=kb&&kb.__values||function(m){var d=typeof Symbol=="function"&&Symbol.iterator,_=d&&m[d],g=0;if(_)return _.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&g>=m.length&&(m=void 0),{value:m&&m[g++],done:!m}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(S,"__esModule",{value:!0}),S.getWordsByCategory=S.wordList=void 0,S.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function h(m,d){var _,g;d===void 0&&(d=[]);var k=new Set(d),C=[];try{for(var A=M(S.wordList[m]),I=A.next();!I.done;I=A.next()){var L=I.value;(d.length===0||L.categories.some(function(Y){return k.has(Y)}))&&C.push(L.word)}}catch(Y){_={error:Y}}finally{try{I&&!I.done&&(g=A.return)&&g.call(A)}finally{if(_)throw _.error}}return C}S.getWordsByCategory=h})(u6);var Tb=kb&&kb.__assign||function(){return Tb=Object.assign||function(S){for(var M,h=1,m=arguments.length;h<m;h++){M=arguments[h];for(var d in M)Object.prototype.hasOwnProperty.call(M,d)&&(S[d]=M[d])}return S},Tb.apply(this,arguments)};Object.defineProperty(J2,"__esModule",{value:!0});J2.totalUniqueSlugs=h6=J2.generateSlug=void 0;var z_=u6,l6=3;function q6(S,M){for(var h=S||l6,m={partsOfSpeech:f6(h),categories:{},format:"kebab"},d=Tb(Tb({},m),M),_=[],g=0;g<h;g++){var k=d.partsOfSpeech[g],C=z_.getWordsByCategory(d.partsOfSpeech[g],d.categories[k]),A=C[Math.floor(Math.random()*C.length)];_.push(A)}return H6(_,d.format)}var h6=J2.generateSlug=q6;function f6(S){for(var M=[],h=0;h<S-1;h++)M.push("adjective");return M.push("noun"),M}function H6(S,M){return M==="kebab"?S.join("-").toLowerCase():M==="camel"?S.map(function(h,m){return m===0?h.toLowerCase():h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(""):M==="lower"?S.join(" ").toLowerCase():M==="sentence"?S.map(function(h,m){return m===0?h[0].toUpperCase()+h.slice(1).toLowerCase():h}).join(" "):S.map(function(h){return h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(" ")}function W6(S,M){for(var h,m,d=z_.getWordsByCategory("adjective",(h=M==null?void 0:M.categories)===null||h===void 0?void 0:h.adjective).length,_=z_.getWordsByCategory("noun",(m=M==null?void 0:M.categories)===null||m===void 0?void 0:m.noun).length,g={adjective:d,noun:_},k=S||l6,C=(M==null?void 0:M.partsOfSpeech)||f6(k),A=1,I=0;I<k;I++)A*=g[C[I]];return A}J2.totalUniqueSlugs=W6;const $6=30,U_=q_(ty("manual"),H_(),"autoHistoryMode"),Eb=q_(ty([]),H_(),"autoHistoryStore"),Cb=q_(ty([]),H_(),"manualHistoryStore"),d6=ty([]),ax=B6([U_,Eb,Cb,d6],([S,M,h,m],d)=>{d(S==="auto"?M:S==="manual"?h:S==="loader"?m:M)}),V6=S=>{if(S.type==="loader"){d6.update(M=>[S,...M]);return}if(S.name=h6(2),S.type!=="auto"){Cb.update(M=>[S,...M]);return}Eb.update(M=>(M.length===$6&&M.pop(),[S,...M]))},ox=S=>{(P_(U_)==="auto"?Eb:Cb).update(M=>(P_(U_)!=="loader"&&(M=M.filter(h=>S&&h.time!=S)),M))},sx=S=>{const M=P_(S?Eb:Cb);return M.length>0?JSON.stringify(M[0].state):""},p6="code.mmd",i6="config.json",G6=S=>p6 in S,a6=async S=>S.truncated?await(await fetch(S.raw_url)).text():S.content,X6=async S=>{const[M,h,m,d]=S.split("github.com").pop().split("/"),{html_url:_,files:g,history:k}=await(await fetch(`https://api.github.com/gists/${m}${d?"/"+d:""}`)).json();if(G6(g)){const C=await a6(g[p6]);let A;i6 in g&&(A=await a6(g[i6]));const I=k[0];return{url:`${_}/${I.version}`,code:C,config:A,author:I.user.login,time:new Date(I.committed_at).getTime(),version:I.version.slice(-7)}}else throw"Invalid gist provided"},o6=(S,M=S.url)=>{const h=I_(L_({},j_),{code:S.code,loader:{type:"gist",config:{url:M}}});return S.config&&(h.mermaid=S.config),h},Z6=async S=>{try{const[M,h,m,d]=S.split("github.com").pop().split("/"),{history:_}=await(await fetch(`https://api.github.com/gists/${m}${d?"/"+d:""}`)).json(),g=[];for(const C of _){const A=await X6(C.url).catch(()=>{});A&&g.push(A)}if(g.length===0)throw"Invalid gist provided";g.reverse();const k=o6(g.slice(-1).pop(),S);for(const C of g)V6({state:o6(C),time:C.time,type:"loader",url:C.url,name:`${C.author} v${C.version}`});return k}catch(M){console.error(M)}},s6={gist:Z6},Q6=async()=>{const S=new URLSearchParams(window.location.search);let M=j_,h,m,d=!1;const _=S.get("code"),g=S.get("config");if(_&&(h=await(await fetch(_)).text(),d=!0),g?m=await(await fetch(g)).text():m=j_.mermaid,h)M={code:h,mermaid:m,loader:{type:"files",config:{codeURL:_,configURL:g}}};else for(const[k,C]of S.entries())if(k in s6)try{M=await s6[k](C),d=!0;break}catch(A){console.error(A)}d&&c6(I_(L_({},M),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},K6=()=>{P6(window.location.hash.slice(1))},J6=()=>{c6({updateDiagram:!0})},cx=async()=>{var S;K6(),await L6("Loading Gist...",Q6().catch(console.error)),J6(),I6(),await R6(),(S=F6)==null||S.page()};export{ix as V,ax as a,V6 as b,ox as c,j6 as e,sx as g,U_ as h,cx as i,d6 as l,r6 as r,J6 as s};