1229 lines
1.1 MiB
Plaintext
1229 lines
1.1 MiB
Plaintext
var k_=Object.defineProperty,T_=Object.defineProperties;var C_=Object.getOwnPropertyDescriptors;var J6=Object.getOwnPropertySymbols;var E_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable;var t_=(S,M,f)=>M in S?k_(S,M,{enumerable:!0,configurable:!0,writable:!0,value:f}):S[M]=f,I6=(S,M)=>{for(var f in M||(M={}))E_.call(M,f)&&t_(S,f,M[f]);if(J6)for(var f of J6(M))S_.call(M,f)&&t_(S,f,M[f]);return S},R6=(S,M)=>T_(S,C_(M));import{S as A_,i as M_,s as N_,e as e_,c as n_,a as r_,d as F6,b as fb,Y as db,g as D_,J as L_,E as i_,N as B_,v as O_,a5 as I_,Q as a_,O as j6}from"./index-3ccfa173.js";import{w as ty,d as R_}from"./preload-helper-e8f5b6ac.js";import{c as P6,p as H6,a as $6,h as Y6,i as h_,j as F_,k as P_,m as j_,b as Y_,n as z_}from"./state-f215c7fd.js";const U_=ty(void 0);/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var q_={1362:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(ae,Zt,St,Qt){for(St=St||{},Qt=ae.length;Qt--;St[ae[Qt]]=Zt);return St},x=[1,6],g=[1,7],k=[1,8],E=[1,9],A=[1,12],I=[1,11],O=[1,15,24],Y=[1,19],H=[1,31],X=[1,34],Z=[1,32],et=[1,33],Q=[1,35],gt=[1,36],ht=[1,37],xt=[1,38],Tt=[1,41],ne=[1,42],bt=[1,43],at=[1,44],nt=[15,24],Dt=[1,56],Lt=[1,57],tt=[1,58],lt=[1,59],q=[1,60],Ut=[1,61],G=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],me=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],ve=[7,8,9,10,15,18,22,24],jt=[47,77,78,79,80],ie=[47,54,55,77,78,79,80],he=[47,50,51,52,53,77,78,79,80],pe=[15,24,31],le=[1,93],oe={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(ae,Zt,St,Qt,mt,Ht,kt){var It=Ht.length-1;switch(mt){case 4:Qt.setDirection("TB");break;case 5:Qt.setDirection("BT");break;case 6:Qt.setDirection("RL");break;case 7:Qt.setDirection("LR");break;case 11:Qt.parseDirective("%%{","open_directive");break;case 12:Qt.parseDirective(Ht[It],"type_directive");break;case 13:Ht[It]=Ht[It].trim().replace(/'/g,'"'),Qt.parseDirective(Ht[It],"arg_directive");break;case 14:Qt.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Ht[It];break;case 21:this.$=Ht[It-1]+Ht[It];break;case 22:case 23:this.$=Ht[It-1]+"~"+Ht[It];break;case 24:Qt.addRelation(Ht[It]);break;case 25:Ht[It-1].title=Qt.cleanupLabel(Ht[It]),Qt.addRelation(Ht[It-1]);break;case 33:Qt.addClass(Ht[It]);break;case 34:Qt.addClass(Ht[It-2]),Qt.setCssClass(Ht[It-2],Ht[It]);break;case 35:Qt.addClass(Ht[It-3]),Qt.addMembers(Ht[It-3],Ht[It-1]);break;case 36:Qt.addClass(Ht[It-5]),Qt.setCssClass(Ht[It-5],Ht[It-3]),Qt.addMembers(Ht[It-5],Ht[It-1]);break;case 37:Qt.addAnnotation(Ht[It],Ht[It-2]);break;case 38:this.$=[Ht[It]];break;case 39:Ht[It].push(Ht[It-1]),this.$=Ht[It];break;case 40:case 42:case 43:break;case 41:Qt.addMember(Ht[It-1],Qt.cleanupLabel(Ht[It]));break;case 44:this.$={id1:Ht[It-2],id2:Ht[It],relation:Ht[It-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Ht[It-3],id2:Ht[It],relation:Ht[It-1],relationTitle1:Ht[It-2],relationTitle2:"none"};break;case 46:this.$={id1:Ht[It-3],id2:Ht[It],relation:Ht[It-2],relationTitle1:"none",relationTitle2:Ht[It-1]};break;case 47:this.$={id1:Ht[It-4],id2:Ht[It],relation:Ht[It-2],relationTitle1:Ht[It-3],relationTitle2:Ht[It-1]};break;case 48:this.$={type1:Ht[It-2],type2:Ht[It],lineType:Ht[It-1]};break;case 49:this.$={type1:"none",type2:Ht[It],lineType:Ht[It-1]};break;case 50:this.$={type1:Ht[It-1],type2:"none",lineType:Ht[It]};break;case 51:this.$={type1:"none",type2:"none",lineType:Ht[It]};break;case 52:this.$=Qt.relationType.AGGREGATION;break;case 53:this.$=Qt.relationType.EXTENSION;break;case 54:this.$=Qt.relationType.COMPOSITION;break;case 55:this.$=Qt.relationType.DEPENDENCY;break;case 56:this.$=Qt.lineType.LINE;break;case 57:this.$=Qt.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Ht[It-2],Qt.setClickEvent(Ht[It-1],Ht[It]);break;case 59:case 65:this.$=Ht[It-3],Qt.setClickEvent(Ht[It-2],Ht[It-1]),Qt.setTooltip(Ht[It-2],Ht[It]);break;case 60:case 68:this.$=Ht[It-2],Qt.setLink(Ht[It-1],Ht[It]);break;case 61:case 69:this.$=Ht[It-3],Qt.setLink(Ht[It-2],Ht[It-1],Ht[It]);break;case 62:case 70:this.$=Ht[It-3],Qt.setLink(Ht[It-2],Ht[It-1]),Qt.setTooltip(Ht[It-2],Ht[It]);break;case 63:case 71:this.$=Ht[It-4],Qt.setLink(Ht[It-3],Ht[It-2],Ht[It]),Qt.setTooltip(Ht[It-3],Ht[It-1]);break;case 66:this.$=Ht[It-3],Qt.setClickEvent(Ht[It-2],Ht[It-1],Ht[It]);break;case 67:this.$=Ht[It-4],Qt.setClickEvent(Ht[It-3],Ht[It-2],Ht[It-1]),Qt.setTooltip(Ht[It-3],Ht[It]);break;case 72:Qt.setCssClass(Ht[It-1],Ht[It])}},table:[{3:1,4:2,5:3,6:4,7:x,8:g,9:k,10:E,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:x,8:g,9:k,10:E,11:5,12:10,18:A,22:I},{1:[2,8]},h(O,[2,4]),h(O,[2,5]),h(O,[2,6]),h(O,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:Y},h([16,21],[2,12]),{5:29,6:28,7:x,8:g,9:k,10:E,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:H,42:X,44:Z,45:et,56:Q,57:gt,59:ht,63:xt,77:Tt,78:ne,79:bt,80:at},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},h(nt,[2,24],{31:[1,50]}),h(nt,[2,26]),h(nt,[2,27]),h(nt,[2,28]),h(nt,[2,29]),h(nt,[2,30]),h(nt,[2,31]),h(nt,[2,32]),h(nt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:Dt,51:Lt,52:tt,53:lt,54:q,55:Ut}),{26:62,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(nt,[2,42]),h(nt,[2,43]),{27:63,77:Tt,78:ne,79:bt},{26:64,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:65,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:66,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{47:[1,67]},h(G,[2,19],{27:39,28:40,26:68,29:[1,69],77:Tt,78:ne,79:bt,80:at}),h(G,[2,20],{29:[1,70]}),h(me,[2,86]),h(me,[2,87]),h(me,[2,88]),h([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),h(ve,[2,9]),{14:71,21:Y},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:x,8:g,9:k,10:E,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:H,42:X,44:Z,45:et,56:Q,57:gt,59:ht,63:xt,77:Tt,78:ne,79:bt,80:at},h(nt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:Tt,78:ne,79:bt,80:at},{46:75,48:54,49:55,50:Dt,51:Lt,52:tt,53:lt,54:q,55:Ut},h(nt,[2,41]),{49:76,54:q,55:Ut},h(jt,[2,51],{48:77,50:Dt,51:Lt,52:tt,53:lt}),h(ie,[2,52]),h(ie,[2,53]),h(ie,[2,54]),h(ie,[2,55]),h(he,[2,56]),h(he,[2,57]),h(nt,[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:Tt,78:ne,79:bt},h(G,[2,21]),h(G,[2,22]),h(G,[2,23]),{15:[1,86]},{24:[2,18]},h(pe,[2,44]),{26:87,27:39,28:40,77:Tt,78:ne,79:bt,80:at},{26:88,27:39,28:40,47:[1,89],77:Tt,78:ne,79:bt,80:at},h(jt,[2,50],{48:90,50:Dt,51:Lt,52:tt,53:lt}),h(jt,[2,49]),{27:91,77:Tt,78:ne,79:bt},{40:92,44:le},{26:94,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(nt,[2,58],{47:[1,95]}),h(nt,[2,60],{47:[1,97],58:[1,96]}),h(nt,[2,64],{47:[1,98],61:[1,99]}),h(nt,[2,68],{47:[1,101],58:[1,100]}),h(nt,[2,72]),h(ve,[2,10]),h(pe,[2,46]),h(pe,[2,45]),{26:102,27:39,28:40,77:Tt,78:ne,79:bt,80:at},h(jt,[2,48]),h(nt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:le},h(nt,[2,37]),h(nt,[2,59]),h(nt,[2,61]),h(nt,[2,62],{58:[1,106]}),h(nt,[2,65]),h(nt,[2,66],{47:[1,107]}),h(nt,[2,69]),h(nt,[2,70],{58:[1,108]}),h(pe,[2,47]),{40:109,44:le},h(nt,[2,35]),{41:[2,39]},h(nt,[2,63]),h(nt,[2,67]),h(nt,[2,71]),{41:[1,110]},h(nt,[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(ae,Zt){if(!Zt.recoverable){var St=new Error(ae);throw St.hash=Zt,St}this.trace(ae)},parse:function(ae){var Zt=this,St=[0],Qt=[],mt=[null],Ht=[],kt=this.table,It="",se=0,Se=0,be=0,Ae=2,cn=1,De=Ht.slice.call(arguments,1),Be=Object.create(this.lexer),Le={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Le.yy[Ze]=this.yy[Ze]);Be.setInput(ae,Le.yy),Le.yy.lexer=Be,Le.yy.parser=this,Be.yylloc===void 0&&(Be.yylloc={});var Ke=Be.yylloc;Ht.push(Ke);var Je=Be.options&&Be.options.ranges;function $e(){var mn;return typeof(mn=Qt.pop()||Be.lex()||cn)!="number"&&(mn instanceof Array&&(mn=(Qt=mn).pop()),mn=Zt.symbols_[mn]||mn),mn}typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ue,Yn,Me,un,gn,kr,kn,sr,rn,ln={};;){if(Me=St[St.length-1],this.defaultActions[Me]?un=this.defaultActions[Me]:(Ue==null&&(Ue=$e()),un=kt[Me]&&kt[Me][Ue]),un===void 0||!un.length||!un[0]){var Ye="";for(kr in rn=[],kt[Me])this.terminals_[kr]&&kr>Ae&&rn.push("'"+this.terminals_[kr]+"'");Ye=Be.showPosition?"Parse error on line "+(se+1)+`:
|
|
`+Be.showPosition()+`
|
|
Expecting `+rn.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":"Parse error on line "+(se+1)+": Unexpected "+(Ue==cn?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Ye,{text:Be.match,token:this.terminals_[Ue]||Ue,line:Be.yylineno,loc:Ke,expected:rn})}if(un[0]instanceof Array&&un.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+Ue);switch(un[0]){case 1:St.push(Ue),mt.push(Be.yytext),Ht.push(Be.yylloc),St.push(un[1]),Ue=null,Yn?(Ue=Yn,Yn=null):(Se=Be.yyleng,It=Be.yytext,se=Be.yylineno,Ke=Be.yylloc,be>0);break;case 2:if(kn=this.productions_[un[1]][1],ln.$=mt[mt.length-kn],ln._$={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},Je&&(ln._$.range=[Ht[Ht.length-(kn||1)].range[0],Ht[Ht.length-1].range[1]]),(gn=this.performAction.apply(ln,[It,Se,se,Le.yy,un[1],mt,Ht].concat(De)))!==void 0)return gn;kn&&(St=St.slice(0,-1*kn*2),mt=mt.slice(0,-1*kn),Ht=Ht.slice(0,-1*kn)),St.push(this.productions_[un[1]][0]),mt.push(ln.$),Ht.push(ln._$),sr=kt[St[St.length-2]][St[St.length-1]],St.push(sr);break;case 3:return!0}}return!0}},wn={EOF:1,parseError:function(ae,Zt){if(!this.yy.parser)throw new Error(ae);this.yy.parser.parseError(ae,Zt)},setInput:function(ae,Zt){return this.yy=Zt||this.yy||{},this._input=ae,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ae=this._input[0];return this.yytext+=ae,this.yyleng++,this.offset++,this.match+=ae,this.matched+=ae,ae.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),ae},unput:function(ae){var Zt=ae.length,St=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var Qt=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 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:St?(St.length===Qt.length?this.yylloc.first_column:0)+Qt[Qt.length-St.length].length-St[0].length:this.yylloc.first_column-Zt},this.options.ranges&&(this.yylloc.range=[mt[0],mt[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(ae){this.unput(this.match.slice(ae))},pastInput:function(){var ae=this.matched.substr(0,this.matched.length-this.match.length);return(ae.length>20?"...":"")+ae.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ae=this.match;return ae.length<20&&(ae+=this._input.substr(0,20-ae.length)),(ae.substr(0,20)+(ae.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ae=this.pastInput(),Zt=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+`
|
|
`+Zt+"^"},test_match:function(ae,Zt){var St,Qt,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))),(Qt=ae[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Qt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Qt?Qt[Qt.length-1].length-Qt[Qt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ae[0].length},this.yytext+=ae[0],this.match+=ae[0],this.matches=ae,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ae[0].length),this.matched+=ae[0],St=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var Ht in mt)this[Ht]=mt[Ht];return!1}return!1},next:function(){if(this.done)return this.EOF;var ae,Zt,St,Qt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var mt=this._currentRules(),Ht=0;Ht<mt.length;Ht++)if((St=this._input.match(this.rules[mt[Ht]]))&&(!Zt||St[0].length>Zt[0].length)){if(Zt=St,Qt=Ht,this.options.backtrack_lexer){if((ae=this.test_match(St,mt[Ht]))!==!1)return ae;if(this._backtrack){Zt=!1;continue}return!1}if(!this.options.flex)break}return Zt?(ae=this.test_match(Zt,mt[Qt]))!==!1&&ae: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(ae){this.conditionStack.push(ae)},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(ae){return(ae=this.conditionStack.length-1-Math.abs(ae||0))>=0?this.conditionStack[ae]:"INITIAL"},pushState:function(ae){this.begin(ae)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ae,Zt,St,Qt){switch(St){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 fe(){this.yy={}}return oe.lexer=wn,fe.prototype=oe,oe.Parser=fe,new fe}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8218).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},5890:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(nt,Dt,Lt,tt){for(Lt=Lt||{},tt=nt.length;tt--;Lt[nt[tt]]=Dt);return Lt},x=[1,2],g=[1,5],k=[6,9,11,23,25,27,45],E=[1,17],A=[1,18],I=[1,19],O=[1,22],Y=[1,27],H=[1,28],X=[1,29],Z=[1,30],et=[1,41],Q=[27,42,43],gt=[4,6,9,11,23,25,27,45],ht=[38,39,40,41],xt=[22,33],Tt=[1,59],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,accDescription:25,description_value:26,ALPHANUM:27,attribute:28,attributeType:29,attributeName:30,attributeKeyType:31,attributeComment:32,ATTRIBUTE_WORD:33,ATTRIBUTE_KEY:34,COMMENT:35,cardinality:36,relType:37,ZERO_OR_ONE:38,ZERO_OR_MORE:39,ONE_OR_MORE:40,ONLY_ONE:41,NON_IDENTIFYING:42,IDENTIFYING:43,WORD:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"accDescription",26:"description_value",27:"ALPHANUM",33:"ATTRIBUTE_WORD",34:"ATTRIBUTE_KEY",35:"COMMENT",38:"ZERO_OR_ONE",39:"ZERO_OR_MORE",40:"ONE_OR_MORE",41:"ONLY_ONE",42:"NON_IDENTIFYING",43:"IDENTIFYING",44:"WORD",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[17,1],[21,1],[21,2],[28,2],[28,3],[28,3],[28,4],[29,1],[30,1],[31,1],[32,1],[18,3],[36,1],[36,1],[36,1],[36,1],[37,1],[37,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(nt,Dt,Lt,tt,lt,q,Ut){var G=q.length-1;switch(lt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:q[G-1].push(q[G]),this.$=q[G-1];break;case 5:case 6:case 18:case 25:case 26:case 27:case 37:this.$=q[G];break;case 12:tt.addEntity(q[G-4]),tt.addEntity(q[G-2]),tt.addRelationship(q[G-4],q[G],q[G-2],q[G-3]);break;case 13:tt.addEntity(q[G-3]),tt.addAttributes(q[G-3],q[G-1]);break;case 14:tt.addEntity(q[G-2]);break;case 15:tt.addEntity(q[G]);break;case 16:this.$=q[G].trim(),tt.setTitle(this.$);break;case 17:this.$=q[G].trim(),tt.setAccDescription(this.$);break;case 19:this.$=[q[G]];break;case 20:q[G].push(q[G-1]),this.$=q[G];break;case 21:this.$={attributeType:q[G-1],attributeName:q[G]};break;case 22:this.$={attributeType:q[G-2],attributeName:q[G-1],attributeKeyType:q[G]};break;case 23:this.$={attributeType:q[G-2],attributeName:q[G-1],attributeComment:q[G]};break;case 24:this.$={attributeType:q[G-3],attributeName:q[G-2],attributeKeyType:q[G-1],attributeComment:q[G]};break;case 28:case 36:this.$=q[G].replace(/"/g,"");break;case 29:this.$={cardA:q[G],relType:q[G-1],cardB:q[G-2]};break;case 30:this.$=tt.Cardinality.ZERO_OR_ONE;break;case 31:this.$=tt.Cardinality.ZERO_OR_MORE;break;case 32:this.$=tt.Cardinality.ONE_OR_MORE;break;case 33:this.$=tt.Cardinality.ONLY_ONE;break;case 34:this.$=tt.Identification.NON_IDENTIFYING;break;case 35:this.$=tt.Identification.IDENTIFYING;break;case 38:tt.parseDirective("%%{","open_directive");break;case 39:tt.parseDirective(q[G],"type_directive");break;case 40:q[G]=q[G].trim().replace(/'/g,'"'),tt.parseDirective(q[G],"arg_directive");break;case 41:tt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:x,7:3,12:4,45:g},{1:[3]},h(k,[2,3],{5:6}),{3:7,4:x,7:3,12:4,45:g},{13:8,46:[1,9]},{46:[2,38]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:E,25:A,27:I,45:g},{1:[2,2]},{14:20,15:[1,21],48:O},h([15,48],[2,39]),h(k,[2,8],{1:[2,1]}),h(k,[2,4]),{7:15,10:23,12:4,17:16,23:E,25:A,27:I,45:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,11]),h(k,[2,15],{18:24,36:26,20:[1,25],38:Y,39:H,40:X,41:Z}),{24:[1,31]},{26:[1,32]},h([6,9,11,15,20,23,25,27,38,39,40,41,45],[2,18]),{11:[1,33]},{16:34,47:[1,35]},{11:[2,41]},h(k,[2,5]),{17:36,27:I},{21:37,22:[1,38],28:39,29:40,33:et},{37:42,42:[1,43],43:[1,44]},h(Q,[2,30]),h(Q,[2,31]),h(Q,[2,32]),h(Q,[2,33]),h(k,[2,16]),h(k,[2,17]),h(gt,[2,9]),{14:45,48:O},{48:[2,40]},{15:[1,46]},{22:[1,47]},h(k,[2,14]),{21:48,22:[2,19],28:39,29:40,33:et},{30:49,33:[1,50]},{33:[2,25]},{36:51,38:Y,39:H,40:X,41:Z},h(ht,[2,34]),h(ht,[2,35]),{11:[1,52]},{19:53,27:[1,55],44:[1,54]},h(k,[2,13]),{22:[2,20]},h(xt,[2,21],{31:56,32:57,34:[1,58],35:Tt}),h([22,33,34,35],[2,26]),{27:[2,29]},h(gt,[2,10]),h(k,[2,12]),h(k,[2,36]),h(k,[2,37]),h(xt,[2,22],{32:60,35:Tt}),h(xt,[2,23]),h([22,33,35],[2,27]),h(xt,[2,28]),h(xt,[2,24])],defaultActions:{5:[2,38],7:[2,2],22:[2,41],35:[2,40],41:[2,25],48:[2,20],51:[2,29]},parseError:function(nt,Dt){if(!Dt.recoverable){var Lt=new Error(nt);throw Lt.hash=Dt,Lt}this.trace(nt)},parse:function(nt){var Dt=this,Lt=[0],tt=[],lt=[null],q=[],Ut=this.table,G="",me=0,ve=0,jt=0,ie=2,he=1,pe=q.slice.call(arguments,1),le=Object.create(this.lexer),oe={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(oe.yy[wn]=this.yy[wn]);le.setInput(nt,oe.yy),oe.yy.lexer=le,oe.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var fe=le.yylloc;q.push(fe);var ae=le.options&&le.options.ranges;function Zt(){var De;return typeof(De=tt.pop()||le.lex()||he)!="number"&&(De instanceof Array&&(De=(tt=De).pop()),De=Dt.symbols_[De]||De),De}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var St,Qt,mt,Ht,kt,It,se,Se,be,Ae={};;){if(mt=Lt[Lt.length-1],this.defaultActions[mt]?Ht=this.defaultActions[mt]:(St==null&&(St=Zt()),Ht=Ut[mt]&&Ut[mt][St]),Ht===void 0||!Ht.length||!Ht[0]){var cn="";for(It in be=[],Ut[mt])this.terminals_[It]&&It>ie&&be.push("'"+this.terminals_[It]+"'");cn=le.showPosition?"Parse error on line "+(me+1)+`:
|
|
`+le.showPosition()+`
|
|
Expecting `+be.join(", ")+", got '"+(this.terminals_[St]||St)+"'":"Parse error on line "+(me+1)+": Unexpected "+(St==he?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(cn,{text:le.match,token:this.terminals_[St]||St,line:le.yylineno,loc:fe,expected:be})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+St);switch(Ht[0]){case 1:Lt.push(St),lt.push(le.yytext),q.push(le.yylloc),Lt.push(Ht[1]),St=null,Qt?(St=Qt,Qt=null):(ve=le.yyleng,G=le.yytext,me=le.yylineno,fe=le.yylloc,jt>0);break;case 2:if(se=this.productions_[Ht[1]][1],Ae.$=lt[lt.length-se],Ae._$={first_line:q[q.length-(se||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(se||1)].first_column,last_column:q[q.length-1].last_column},ae&&(Ae._$.range=[q[q.length-(se||1)].range[0],q[q.length-1].range[1]]),(kt=this.performAction.apply(Ae,[G,ve,me,oe.yy,Ht[1],lt,q].concat(pe)))!==void 0)return kt;se&&(Lt=Lt.slice(0,-1*se*2),lt=lt.slice(0,-1*se),q=q.slice(0,-1*se)),Lt.push(this.productions_[Ht[1]][0]),lt.push(Ae.$),q.push(Ae._$),Se=Ut[Lt[Lt.length-2]][Lt[Lt.length-1]],Lt.push(Se);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(nt,Dt){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,Dt)},setInput:function(nt,Dt){return this.yy=Dt||this.yy||{},this._input=nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var nt=this._input[0];return this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt,nt.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),nt},unput:function(nt){var Dt=nt.length,Lt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Dt),this.offset-=Dt;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lt.length-1&&(this.yylineno-=Lt.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:Lt?(Lt.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-Lt.length].length-Lt[0].length:this.yylloc.first_column-Dt},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Dt]),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(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),Dt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|
`+Dt+"^"},test_match:function(nt,Dt){var Lt,tt,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))),(tt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(nt[0].length),this.matched+=nt[0],Lt=this.performAction.call(this,this.yy,this,Dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lt)return Lt;if(this._backtrack){for(var q in lt)this[q]=lt[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,Dt,Lt,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),q=0;q<lt.length;q++)if((Lt=this._input.match(this.rules[lt[q]]))&&(!Dt||Lt[0].length>Dt[0].length)){if(Dt=Lt,tt=q,this.options.backtrack_lexer){if((nt=this.test_match(Lt,lt[q]))!==!1)return nt;if(this._backtrack){Dt=!1;continue}return!1}if(!this.options.flex)break}return Dt?(nt=this.test_match(Dt,lt[tt]))!==!1&&nt: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(nt){this.conditionStack.push(nt)},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(nt){return(nt=this.conditionStack.length-1-Math.abs(nt||0))>=0?this.conditionStack[nt]:"INITIAL"},pushState:function(nt){this.begin(nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nt,Dt,Lt,tt){switch(Lt){case 0:return this.begin("title"),23;case 1:return this.popState(),"title_value";case 2:return this.begin("accDescription"),25;case 3:return this.popState(),"description_value";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"),15;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 17:case 21:break;case 11:return 11;case 13:return 9;case 14:return 44;case 15:return 4;case 16:return this.begin("block"),20;case 18:return 34;case 19:return 33;case 20:return 35;case 22:return this.popState(),22;case 23:case 36:return Dt.yytext[0];case 24:case 28:return 38;case 25:case 29:return 39;case 26:case 30:return 40;case 27:return 41;case 31:case 33:case 34:return 42;case 32:return 43;case 35:return 27;case 37:return 6}},rules:[/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:%%\{)/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:{accDescription:{rules:[3],inclusive:!1},title:{rules:[1],inclusive:!1},open_directive:{rules:[5],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},block:{rules:[17,18,19,20,21,22,23],inclusive:!1},INITIAL:{rules:[0,2,4,9,10,11,12,13,14,15,16,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function at(){this.yy={}}return ne.lexer=bt,at.prototype=ne,ne.Parser=at,new at}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8009).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3602:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(an,Jn,Cn,ze){for(Cn=Cn||{},ze=an.length;ze--;Cn[an[ze]]=Jn);return Cn},x=[1,9],g=[1,7],k=[1,6],E=[1,8],A=[1,20,21,22,23,38,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],I=[2,10],O=[1,20],Y=[1,21],H=[1,22],X=[1,23],Z=[1,30],et=[1,59],Q=[1,45],gt=[1,49],ht=[1,33],xt=[1,34],Tt=[1,35],ne=[1,36],bt=[1,37],at=[1,53],nt=[1,60],Dt=[1,48],Lt=[1,50],tt=[1,52],lt=[1,56],q=[1,57],Ut=[1,38],G=[1,39],me=[1,40],ve=[1,41],jt=[1,58],ie=[1,47],he=[1,51],pe=[1,54],le=[1,55],oe=[1,46],wn=[1,63],fe=[1,68],ae=[1,20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],Zt=[1,72],St=[1,71],Qt=[1,73],mt=[20,21,23,76,77],Ht=[1,94],kt=[1,99],It=[1,102],se=[1,103],Se=[1,96],be=[1,101],Ae=[1,104],cn=[1,97],De=[1,109],Be=[1,108],Le=[1,98],Ze=[1,100],Ke=[1,105],Je=[1,106],$e=[1,107],Ue=[1,110],Yn=[20,21,22,23,76,77],Me=[20,21,22,23,48,76,77],un=[20,21,22,23,40,47,48,50,52,54,56,58,60,61,62,64,66,68,69,71,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],gn=[20,21,23],kr=[20,21,23,47,61,62,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],kn=[1,12,20,21,22,23,24,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],sr=[47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],rn=[1,144],ln=[1,152],Ye=[1,153],mn=[1,154],bn=[1,155],zn=[1,139],Un=[1,140],Cr=[1,136],Ln=[1,147],Sn=[1,148],Fn=[1,149],qn=[1,150],Vn=[1,151],Xn=[1,156],Tn=[1,157],In=[1,142],An=[1,145],hn=[1,141],Hn=[1,138],ir=[20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],ra=[1,160],gr=[20,21,22,23,26,47,61,62,86,100,101,104,106,107,117,118,119,120,121,122],Bn=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,61,62,63,65,67,68,70,72,76,77,81,82,83,84,85,86,87,90,100,101,104,106,107,108,109,117,118,119,120,121,122],io=[12,21,22,24],Ta=[22,101],Vr=[1,245],Gr=[1,240],Fr=[1,241],Er=[1,249],Xr=[1,246],Ur=[1,243],qr=[1,242],Dr=[1,244],li=[1,247],hi=[1,248],cr=[1,250],Hr=[1,268],ia=[20,21,23,101],Lr=[20,21,22,23,61,62,81,97,100,101,104,105,106,107,108],aa={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,DOUBLECIRCLESTART:50,DOUBLECIRCLEEND:51,PS:52,PE:53,"(-":54,"-)":55,STADIUMSTART:56,STADIUMEND:57,SUBROUTINESTART:58,SUBROUTINEEND:59,VERTEX_WITH_PROPS_START:60,ALPHA:61,COLON:62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,LINK:77,textToken:78,STR:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTags:88,textNoTagsToken:89,DEFAULT:90,stylesOpt:91,alphaNum:92,CALLBACKNAME:93,CALLBACKARGS:94,HREF:95,LINK_TARGET:96,HEX:97,numList:98,INTERPOLATE:99,NUM:100,COMMA:101,style:102,styleComponent:103,MINUS:104,UNIT:105,BRKT:106,DOT:107,PCT:108,TAGSTART:109,alphaNumToken:110,idStringToken:111,alphaNumStatement:112,direction_tb:113,direction_bt:114,direction_rl:115,direction_lr:116,PUNCTUATION:117,UNICODE_TEXT:118,PLUS:119,EQUALS:120,MULT:121,UNDERSCORE:122,graphCodeTokens:123,ARROW_CROSS:124,ARROW_POINT:125,ARROW_CIRCLE:126,ARROW_OPEN:127,QUOTE:128,$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:"DOUBLECIRCLESTART",51:"DOUBLECIRCLEEND",52:"PS",53:"PE",54:"(-",55:"-)",56:"STADIUMSTART",57:"STADIUMEND",58:"SUBROUTINESTART",59:"SUBROUTINEEND",60:"VERTEX_WITH_PROPS_START",61:"ALPHA",62:"COLON",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",77:"LINK",79:"STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"DEFAULT",93:"CALLBACKNAME",94:"CALLBACKARGS",95:"HREF",96:"LINK_TARGET",97:"HEX",99:"INTERPOLATE",100:"NUM",101:"COMMA",104:"MINUS",105:"UNIT",106:"BRKT",107:"DOT",108:"PCT",109:"TAGSTART",113:"direction_tb",114:"direction_bt",115:"direction_rl",116:"direction_lr",117:"PUNCTUATION",118:"UNICODE_TEXT",119:"PLUS",120:"EQUALS",121:"MULT",122:"UNDERSCORE",124:"ARROW_CROSS",125:"ARROW_POINT",126:"ARROW_CIRCLE",127:"ARROW_OPEN",128:"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,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],[73,1],[74,3],[39,1],[39,2],[39,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[88,1],[88,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],[98,1],[98,3],[91,1],[91,3],[102,1],[102,2],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[89,1],[89,1],[89,1],[89,1],[49,1],[49,2],[92,1],[92,2],[112,1],[112,1],[112,1],[112,1],[43,1],[43,1],[43,1],[43,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1]],performAction:function(an,Jn,Cn,ze,$n,pt,ii){var Xt=pt.length-1;switch($n){case 5:ze.parseDirective("%%{","open_directive");break;case 6:ze.parseDirective(pt[Xt],"type_directive");break;case 7:pt[Xt]=pt[Xt].trim().replace(/'/g,'"'),ze.parseDirective(pt[Xt],"arg_directive");break;case 8:ze.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:pt[Xt]!==[]&&pt[Xt-1].push(pt[Xt]),this.$=pt[Xt-1];break;case 12:case 79:case 81:case 93:case 149:case 151:case 152:case 75:case 147:this.$=pt[Xt];break;case 19:ze.setDirection("TB"),this.$="TB";break;case 20:ze.setDirection(pt[Xt-1]),this.$=pt[Xt-1];break;case 35:this.$=pt[Xt-1].nodes;break;case 41:this.$=ze.addSubGraph(pt[Xt-6],pt[Xt-1],pt[Xt-4]);break;case 42:this.$=ze.addSubGraph(pt[Xt-3],pt[Xt-1],pt[Xt-3]);break;case 43:this.$=ze.addSubGraph(void 0,pt[Xt-1],void 0);break;case 48:ze.addLink(pt[Xt-2].stmt,pt[Xt],pt[Xt-1]),this.$={stmt:pt[Xt],nodes:pt[Xt].concat(pt[Xt-2].nodes)};break;case 49:ze.addLink(pt[Xt-3].stmt,pt[Xt-1],pt[Xt-2]),this.$={stmt:pt[Xt-1],nodes:pt[Xt-1].concat(pt[Xt-3].nodes)};break;case 50:this.$={stmt:pt[Xt-1],nodes:pt[Xt-1]};break;case 51:this.$={stmt:pt[Xt],nodes:pt[Xt]};break;case 52:case 120:case 122:this.$=[pt[Xt]];break;case 53:this.$=pt[Xt-4].concat(pt[Xt]);break;case 54:this.$=[pt[Xt-2]],ze.setClass(pt[Xt-2],pt[Xt]);break;case 55:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"square");break;case 56:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"doublecircle");break;case 57:this.$=pt[Xt-5],ze.addVertex(pt[Xt-5],pt[Xt-2],"circle");break;case 58:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"ellipse");break;case 59:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"stadium");break;case 60:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"subroutine");break;case 61:this.$=pt[Xt-7],ze.addVertex(pt[Xt-7],pt[Xt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pt[Xt-5],pt[Xt-3]]]));break;case 62:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"cylinder");break;case 63:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"round");break;case 64:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"diamond");break;case 65:this.$=pt[Xt-5],ze.addVertex(pt[Xt-5],pt[Xt-2],"hexagon");break;case 66:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"odd");break;case 67:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"trapezoid");break;case 68:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"inv_trapezoid");break;case 69:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"lean_right");break;case 70:this.$=pt[Xt-3],ze.addVertex(pt[Xt-3],pt[Xt-1],"lean_left");break;case 71:this.$=pt[Xt],ze.addVertex(pt[Xt]);break;case 72:pt[Xt-1].text=pt[Xt],this.$=pt[Xt-1];break;case 73:case 74:pt[Xt-2].text=pt[Xt-1],this.$=pt[Xt-2];break;case 76:var ki=ze.destructLink(pt[Xt],pt[Xt-2]);this.$={type:ki.type,stroke:ki.stroke,length:ki.length,text:pt[Xt-1]};break;case 77:ki=ze.destructLink(pt[Xt]),this.$={type:ki.type,stroke:ki.stroke,length:ki.length};break;case 78:this.$=pt[Xt-1];break;case 80:case 94:case 150:case 148:this.$=pt[Xt-1]+""+pt[Xt];break;case 95:case 96:this.$=pt[Xt-4],ze.addClass(pt[Xt-2],pt[Xt]);break;case 97:this.$=pt[Xt-4],ze.setClass(pt[Xt-2],pt[Xt]);break;case 98:case 106:this.$=pt[Xt-1],ze.setClickEvent(pt[Xt-1],pt[Xt]);break;case 99:case 107:this.$=pt[Xt-3],ze.setClickEvent(pt[Xt-3],pt[Xt-2]),ze.setTooltip(pt[Xt-3],pt[Xt]);break;case 100:this.$=pt[Xt-2],ze.setClickEvent(pt[Xt-2],pt[Xt-1],pt[Xt]);break;case 101:this.$=pt[Xt-4],ze.setClickEvent(pt[Xt-4],pt[Xt-3],pt[Xt-2]),ze.setTooltip(pt[Xt-4],pt[Xt]);break;case 102:case 108:this.$=pt[Xt-1],ze.setLink(pt[Xt-1],pt[Xt]);break;case 103:case 109:this.$=pt[Xt-3],ze.setLink(pt[Xt-3],pt[Xt-2]),ze.setTooltip(pt[Xt-3],pt[Xt]);break;case 104:case 110:this.$=pt[Xt-3],ze.setLink(pt[Xt-3],pt[Xt-2],pt[Xt]);break;case 105:case 111:this.$=pt[Xt-5],ze.setLink(pt[Xt-5],pt[Xt-4],pt[Xt]),ze.setTooltip(pt[Xt-5],pt[Xt-2]);break;case 112:this.$=pt[Xt-4],ze.addVertex(pt[Xt-2],void 0,void 0,pt[Xt]);break;case 113:case 115:this.$=pt[Xt-4],ze.updateLink(pt[Xt-2],pt[Xt]);break;case 114:this.$=pt[Xt-4],ze.updateLink([pt[Xt-2]],pt[Xt]);break;case 116:this.$=pt[Xt-8],ze.updateLinkInterpolate([pt[Xt-6]],pt[Xt-2]),ze.updateLink([pt[Xt-6]],pt[Xt]);break;case 117:this.$=pt[Xt-8],ze.updateLinkInterpolate(pt[Xt-6],pt[Xt-2]),ze.updateLink(pt[Xt-6],pt[Xt]);break;case 118:this.$=pt[Xt-6],ze.updateLinkInterpolate([pt[Xt-4]],pt[Xt]);break;case 119:this.$=pt[Xt-6],ze.updateLinkInterpolate(pt[Xt-4],pt[Xt]);break;case 121:case 123:pt[Xt-2].push(pt[Xt]),this.$=pt[Xt-2];break;case 125:this.$=pt[Xt-1]+pt[Xt];break;case 153:this.$="v";break;case 154:this.$="-";break;case 155:this.$={stmt:"dir",value:"TB"};break;case 156:this.$={stmt:"dir",value:"BT"};break;case 157:this.$={stmt:"dir",value:"RL"};break;case 158:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:x,16:4,21:g,22:k,24:E},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:x,16:4,21:g,22:k,24:E},h(A,I,{17:11}),{7:12,13:[1,13]},{16:14,21:g,22:k,24:E},{16:15,21:g,22:k,24:E},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{8:61,10:[1,62],15:wn},h([10,15],[2,6]),h(A,[2,17]),h(A,[2,18]),h(A,[2,19]),{20:[1,65],21:[1,66],22:fe,27:64,30:67},h(ae,[2,11]),h(ae,[2,12]),h(ae,[2,13]),h(ae,[2,14]),h(ae,[2,15]),h(ae,[2,16]),{9:69,20:Zt,21:St,23:Qt,44:70,73:74,76:[1,75],77:[1,76]},{9:77,20:Zt,21:St,23:Qt},{9:78,20:Zt,21:St,23:Qt},{9:79,20:Zt,21:St,23:Qt},{9:80,20:Zt,21:St,23:Qt},{9:81,20:Zt,21:St,23:Qt},{9:83,20:Zt,21:St,22:[1,82],23:Qt},h(ae,[2,44]),h(mt,[2,51],{30:84,22:fe}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Ht,47:kt,61:It,62:se,79:[1,92],86:Se,92:91,93:[1,89],95:[1,90],100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ae,[2,155]),h(ae,[2,156]),h(ae,[2,157]),h(ae,[2,158]),h(Yn,[2,52],{48:[1,111]}),h(Me,[2,71],{111:124,40:[1,112],47:et,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],60:[1,118],61:Q,62:gt,64:[1,119],66:[1,120],68:[1,121],69:[1,122],71:[1,123],86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,117:jt,118:ie,119:he,120:pe,121:le,122:oe}),h(un,[2,147]),h(un,[2,172]),h(un,[2,173]),h(un,[2,174]),h(un,[2,175]),h(un,[2,176]),h(un,[2,177]),h(un,[2,178]),h(un,[2,179]),h(un,[2,180]),h(un,[2,181]),h(un,[2,182]),h(un,[2,183]),h(un,[2,184]),h(un,[2,185]),h(un,[2,186]),h(un,[2,187]),{9:125,20:Zt,21:St,23:Qt},{11:126,14:[1,127]},h(gn,[2,8]),h(A,[2,20]),h(A,[2,26]),h(A,[2,27]),{21:[1,128]},h(kr,[2,34],{30:129,22:fe}),h(ae,[2,35]),{45:130,46:42,47:et,49:43,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},h(kn,[2,45]),h(kn,[2,46]),h(kn,[2,47]),h(sr,[2,75],{74:131,63:[1,133],75:[1,132]}),{22:rn,24:ln,26:Ye,38:mn,39:134,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h([47,61,62,63,75,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,77]),h(ae,[2,36]),h(ae,[2,37]),h(ae,[2,38]),h(ae,[2,39]),h(ae,[2,40]),{22:rn,24:ln,26:Ye,38:mn,39:158,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ir,I,{17:159}),h(mt,[2,50],{47:ra}),{26:Ht,47:kt,61:It,62:se,86:Se,92:161,97:[1,162],100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{90:[1,163],98:164,100:[1,165]},{26:Ht,47:kt,61:It,62:se,86:Se,90:[1,166],92:167,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{26:Ht,47:kt,61:It,62:se,86:Se,92:168,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,98],{22:[1,169],94:[1,170]}),h(gn,[2,102],{22:[1,171]}),h(gn,[2,106],{110:95,112:173,22:[1,172],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,108],{22:[1,174]}),h(gr,[2,149]),h(gr,[2,151]),h(gr,[2,152]),h(gr,[2,153]),h(gr,[2,154]),h(Bn,[2,159]),h(Bn,[2,160]),h(Bn,[2,161]),h(Bn,[2,162]),h(Bn,[2,163]),h(Bn,[2,164]),h(Bn,[2,165]),h(Bn,[2,166]),h(Bn,[2,167]),h(Bn,[2,168]),h(Bn,[2,169]),h(Bn,[2,170]),h(Bn,[2,171]),{47:et,49:175,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:rn,24:ln,26:Ye,38:mn,39:176,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:177,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:179,42:bn,47:kt,52:[1,178],61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:180,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:181,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:182,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{61:[1,183]},{22:rn,24:ln,26:Ye,38:mn,39:184,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:185,42:bn,47:kt,61:It,62:se,66:[1,186],68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:187,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:188,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:189,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(un,[2,148]),h(io,[2,3]),{8:190,15:wn},{15:[2,7]},h(A,[2,28]),h(kr,[2,33]),h(mt,[2,48],{30:191,22:fe}),h(sr,[2,72],{22:[1,192]}),{22:[1,193]},{22:rn,24:ln,26:Ye,38:mn,39:194,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,76:Un,77:[1,195],78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Bn,[2,79]),h(Bn,[2,81]),h(Bn,[2,137]),h(Bn,[2,138]),h(Bn,[2,139]),h(Bn,[2,140]),h(Bn,[2,141]),h(Bn,[2,142]),h(Bn,[2,143]),h(Bn,[2,144]),h(Bn,[2,145]),h(Bn,[2,146]),h(Bn,[2,82]),h(Bn,[2,83]),h(Bn,[2,84]),h(Bn,[2,85]),h(Bn,[2,86]),h(Bn,[2,87]),h(Bn,[2,88]),h(Bn,[2,89]),h(Bn,[2,90]),h(Bn,[2,91]),h(Bn,[2,92]),{9:198,20:Zt,21:St,22:rn,23:Qt,24:ln,26:Ye,38:mn,40:[1,197],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,199],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:fe,30:200},{22:[1,201],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:[1,202]},{22:[1,203]},{22:[1,204],101:[1,205]},h(Ta,[2,120]),{22:[1,206]},{22:[1,207],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:[1,208],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:173,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{79:[1,209]},h(gn,[2,100],{22:[1,210]}),{79:[1,211],96:[1,212]},{79:[1,213]},h(gr,[2,150]),{79:[1,214],96:[1,215]},h(Yn,[2,54],{111:124,47:et,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,117:jt,118:ie,119:he,120:pe,121:le,122:oe}),{22:rn,24:ln,26:Ye,38:mn,41:[1,216],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,51:[1,217],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:218,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,53:[1,219],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,55:[1,220],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,57:[1,221],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,59:[1,222],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{62:[1,223]},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,65:[1,224],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,67:[1,225],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,39:226,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,41:[1,227],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,70:[1,228],72:[1,229],76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,68:zn,70:[1,231],72:[1,230],76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{9:232,20:Zt,21:St,23:Qt},h(mt,[2,49],{47:ra}),h(sr,[2,74]),h(sr,[2,73]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,63:[1,233],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(sr,[2,76]),h(Bn,[2,80]),{22:rn,24:ln,26:Ye,38:mn,39:234,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(ir,I,{17:235}),h(ae,[2,43]),{46:236,47:et,49:43,61:Q,62:gt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:Vr,61:Gr,62:Fr,81:Er,91:237,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:251,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:252,97:Xr,99:[1,253],100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:254,97:Xr,99:[1,255],100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{100:[1,256]},{22:Vr,61:Gr,62:Fr,81:Er,91:257,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:258,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{26:Ht,47:kt,61:It,62:se,86:Se,92:259,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,99]),{79:[1,260]},h(gn,[2,103],{22:[1,261]}),h(gn,[2,104]),h(gn,[2,107]),h(gn,[2,109],{22:[1,262]}),h(gn,[2,110]),h(Me,[2,55]),h(Me,[2,56]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,53:[1,263],61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,63]),h(Me,[2,58]),h(Me,[2,59]),h(Me,[2,60]),{61:[1,264]},h(Me,[2,62]),h(Me,[2,64]),{22:rn,24:ln,26:Ye,38:mn,42:bn,47:kt,61:It,62:se,67:[1,265],68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,66]),h(Me,[2,67]),h(Me,[2,69]),h(Me,[2,68]),h(Me,[2,70]),h(io,[2,4]),h([22,47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,78]),{22:rn,24:ln,26:Ye,38:mn,41:[1,266],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,267],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},h(Yn,[2,53]),h(gn,[2,112],{101:Hr}),h(ia,[2,122],{103:269,22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,104:qr,105:Dr,106:li,107:hi,108:cr}),h(Lr,[2,124]),h(Lr,[2,126]),h(Lr,[2,127]),h(Lr,[2,128]),h(Lr,[2,129]),h(Lr,[2,130]),h(Lr,[2,131]),h(Lr,[2,132]),h(Lr,[2,133]),h(Lr,[2,134]),h(Lr,[2,135]),h(Lr,[2,136]),h(gn,[2,113],{101:Hr}),h(gn,[2,114],{101:Hr}),{22:[1,270]},h(gn,[2,115],{101:Hr}),{22:[1,271]},h(Ta,[2,121]),h(gn,[2,95],{101:Hr}),h(gn,[2,96],{101:Hr}),h(gn,[2,97],{110:95,112:173,26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,101]),{96:[1,272]},{96:[1,273]},{53:[1,274]},{63:[1,275]},{67:[1,276]},{9:277,20:Zt,21:St,23:Qt},h(ae,[2,42]),{22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,102:278,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},h(Lr,[2,125]),{26:Ht,47:kt,61:It,62:se,86:Se,92:279,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{26:Ht,47:kt,61:It,62:se,86:Se,92:280,100:be,101:Ae,104:cn,106:De,107:Be,110:95,112:93,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(gn,[2,105]),h(gn,[2,111]),h(Me,[2,57]),{22:rn,24:ln,26:Ye,38:mn,39:281,42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:135,79:Cr,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},h(Me,[2,65]),h(ir,I,{17:282}),h(ia,[2,123],{103:269,22:Vr,61:Gr,62:Fr,81:Er,97:Xr,100:Ur,104:qr,105:Dr,106:li,107:hi,108:cr}),h(gn,[2,118],{110:95,112:173,22:[1,283],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),h(gn,[2,119],{110:95,112:173,22:[1,284],26:Ht,47:kt,61:It,62:se,86:Se,100:be,101:Ae,104:cn,106:De,107:Be,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue}),{22:rn,24:ln,26:Ye,38:mn,41:[1,285],42:bn,47:kt,61:It,62:se,68:zn,76:Un,78:196,80:146,81:Ln,82:Sn,83:Fn,84:qn,85:Vn,86:Xn,87:Tn,89:137,90:In,100:be,101:Ae,104:An,106:De,107:Be,108:hn,109:Hn,110:143,117:Le,118:Ze,119:Ke,120:Je,121:$e,122:Ue},{18:18,19:19,20:O,21:Y,22:H,23:X,32:24,33:25,34:26,35:27,36:28,37:29,38:Z,42:[1,286],43:31,45:32,46:42,47:et,49:43,61:Q,62:gt,81:ht,82:xt,83:Tt,84:ne,85:bt,86:at,90:nt,100:Dt,101:Lt,104:tt,106:lt,107:q,111:44,113:Ut,114:G,115:me,116:ve,117:jt,118:ie,119:he,120:pe,121:le,122:oe},{22:Vr,61:Gr,62:Fr,81:Er,91:287,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},{22:Vr,61:Gr,62:Fr,81:Er,91:288,97:Xr,100:Ur,102:238,103:239,104:qr,105:Dr,106:li,107:hi,108:cr},h(Me,[2,61]),h(ae,[2,41]),h(gn,[2,116],{101:Hr}),h(gn,[2,117],{101:Hr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],127:[2,7]},parseError:function(an,Jn){if(!Jn.recoverable){var Cn=new Error(an);throw Cn.hash=Jn,Cn}this.trace(an)},parse:function(an){var Jn=this,Cn=[0],ze=[],$n=[null],pt=[],ii=this.table,Xt="",ki=0,go=0,Ca=0,Ui=2,Yo=1,zo=pt.slice.call(arguments,1),Pr=Object.create(this.lexer),qi={yy:{}};for(var Dn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dn)&&(qi.yy[Dn]=this.yy[Dn]);Pr.setInput(an,qi.yy),qi.yy.lexer=Pr,qi.yy.parser=this,Pr.yylloc===void 0&&(Pr.yylloc={});var oa=Pr.yylloc;pt.push(oa);var sa=Pr.options&&Pr.options.ranges;function $r(){var Jr;return typeof(Jr=ze.pop()||Pr.lex()||Yo)!="number"&&(Jr instanceof Array&&(Jr=(ze=Jr).pop()),Jr=Jn.symbols_[Jr]||Jr),Jr}typeof qi.yy.parseError=="function"?this.parseError=qi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ar,di,Zr,Br,Kr,Li,mr,Hi,Bi,Ti={};;){if(Zr=Cn[Cn.length-1],this.defaultActions[Zr]?Br=this.defaultActions[Zr]:(ar==null&&(ar=$r()),Br=ii[Zr]&&ii[Zr][ar]),Br===void 0||!Br.length||!Br[0]){var Ya="";for(Li in Bi=[],ii[Zr])this.terminals_[Li]&&Li>Ui&&Bi.push("'"+this.terminals_[Li]+"'");Ya=Pr.showPosition?"Parse error on line "+(ki+1)+`:
|
|
`+Pr.showPosition()+`
|
|
Expecting `+Bi.join(", ")+", got '"+(this.terminals_[ar]||ar)+"'":"Parse error on line "+(ki+1)+": Unexpected "+(ar==Yo?"end of input":"'"+(this.terminals_[ar]||ar)+"'"),this.parseError(Ya,{text:Pr.match,token:this.terminals_[ar]||ar,line:Pr.yylineno,loc:oa,expected:Bi})}if(Br[0]instanceof Array&&Br.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zr+", token: "+ar);switch(Br[0]){case 1:Cn.push(ar),$n.push(Pr.yytext),pt.push(Pr.yylloc),Cn.push(Br[1]),ar=null,di?(ar=di,di=null):(go=Pr.yyleng,Xt=Pr.yytext,ki=Pr.yylineno,oa=Pr.yylloc,Ca>0);break;case 2:if(mr=this.productions_[Br[1]][1],Ti.$=$n[$n.length-mr],Ti._$={first_line:pt[pt.length-(mr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(mr||1)].first_column,last_column:pt[pt.length-1].last_column},sa&&(Ti._$.range=[pt[pt.length-(mr||1)].range[0],pt[pt.length-1].range[1]]),(Kr=this.performAction.apply(Ti,[Xt,go,ki,qi.yy,Br[1],$n,pt].concat(zo)))!==void 0)return Kr;mr&&(Cn=Cn.slice(0,-1*mr*2),$n=$n.slice(0,-1*mr),pt=pt.slice(0,-1*mr)),Cn.push(this.productions_[Br[1]][0]),$n.push(Ti.$),pt.push(Ti._$),Hi=ii[Cn[Cn.length-2]][Cn[Cn.length-1]],Cn.push(Hi);break;case 3:return!0}}return!0}},ao={EOF:1,parseError:function(an,Jn){if(!this.yy.parser)throw new Error(an);this.yy.parser.parseError(an,Jn)},setInput:function(an,Jn){return this.yy=Jn||this.yy||{},this._input=an,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 an=this._input[0];return this.yytext+=an,this.yyleng++,this.offset++,this.match+=an,this.matched+=an,an.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),an},unput:function(an){var Jn=an.length,Cn=an.split(/(?:\r\n?|\n)/g);this._input=an+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Jn),this.offset-=Jn;var ze=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),Cn.length-1&&(this.yylineno-=Cn.length-1);var $n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Cn?(Cn.length===ze.length?this.yylloc.first_column:0)+ze[ze.length-Cn.length].length-Cn[0].length:this.yylloc.first_column-Jn},this.options.ranges&&(this.yylloc.range=[$n[0],$n[0]+this.yyleng-Jn]),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(an){this.unput(this.match.slice(an))},pastInput:function(){var an=this.matched.substr(0,this.matched.length-this.match.length);return(an.length>20?"...":"")+an.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var an=this.match;return an.length<20&&(an+=this._input.substr(0,20-an.length)),(an.substr(0,20)+(an.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var an=this.pastInput(),Jn=new Array(an.length+1).join("-");return an+this.upcomingInput()+`
|
|
`+Jn+"^"},test_match:function(an,Jn){var Cn,ze,$n;if(this.options.backtrack_lexer&&($n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($n.yylloc.range=this.yylloc.range.slice(0))),(ze=an[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ze.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ze?ze[ze.length-1].length-ze[ze.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+an[0].length},this.yytext+=an[0],this.match+=an[0],this.matches=an,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(an[0].length),this.matched+=an[0],Cn=this.performAction.call(this,this.yy,this,Jn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Cn)return Cn;if(this._backtrack){for(var pt in $n)this[pt]=$n[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var an,Jn,Cn,ze;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $n=this._currentRules(),pt=0;pt<$n.length;pt++)if((Cn=this._input.match(this.rules[$n[pt]]))&&(!Jn||Cn[0].length>Jn[0].length)){if(Jn=Cn,ze=pt,this.options.backtrack_lexer){if((an=this.test_match(Cn,$n[pt]))!==!1)return an;if(this._backtrack){Jn=!1;continue}return!1}if(!this.options.flex)break}return Jn?(an=this.test_match(Jn,$n[ze]))!==!1&&an: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(an){this.conditionStack.push(an)},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(an){return(an=this.conditionStack.length-1-Math.abs(an||0))>=0?this.conditionStack[an]:"INITIAL"},pushState:function(an){this.begin(an)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(an,Jn,Cn,ze){switch(Cn){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 81;case 11:return 90;case 12:return 82;case 13:return 99;case 14:return 83;case 15:return 84;case 16:this.begin("href");break;case 18:return 95;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 93;case 24:return 94;case 25:this.begin("click");break;case 27:return 85;case 28:case 29:return an.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 96;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 113;case 48:return 114;case 49:return 115;case 50:return 116;case 51:return 100;case 52:return 106;case 53:return 48;case 54:return 62;case 55:return 47;case 56:return 20;case 57:return 101;case 58:return 121;case 59:case 60:case 61:return 77;case 62:case 63:case 64:return 76;case 65:return 54;case 66:return 55;case 67:return 56;case 68:return 57;case 69:return 58;case 70:return 59;case 71:return 60;case 72:return 64;case 73:return 65;case 74:return 50;case 75:return 51;case 76:return 104;case 77:return 107;case 78:return 122;case 79:return 119;case 80:return 108;case 81:case 82:return 120;case 83:return 109;case 84:return 68;case 85:return 87;case 86:return"SEP";case 87:return 86;case 88:return 61;case 89:return 70;case 90:return 69;case 91:return 72;case 92:return 71;case 93:return 117;case 94:return 118;case 95:return 63;case 96:return 52;case 97:return 53;case 98:return 40;case 99:return 41;case 100:return 66;case 101:return 67;case 102:return 128;case 103:return 21;case 104:return 22;case 105: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,104,105],inclusive:!0}}};function fi(){this.yy={}}return aa.lexer=ao,fi.prototype=aa,aa.Parser=fi,new fi}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(5354).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},9959:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(at,nt,Dt,Lt){for(Dt=Dt||{},Lt=at.length;Lt--;Dt[at[Lt]]=nt);return Dt},x=[1,3],g=[1,5],k=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],E=[1,15],A=[1,16],I=[1,17],O=[1,18],Y=[1,19],H=[1,20],X=[1,21],Z=[1,22],et=[1,23],Q=[1,25],gt=[1,27],ht=[1,30],xt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],Tt={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(at,nt,Dt,Lt,tt,lt,q){var Ut=lt.length-1;switch(tt){case 2:return lt[Ut-1];case 3:case 7:case 8:this.$=[];break;case 4:lt[Ut-1].push(lt[Ut]),this.$=lt[Ut-1];break;case 5:case 6:this.$=lt[Ut];break;case 9:Lt.setDateFormat(lt[Ut].substr(11)),this.$=lt[Ut].substr(11);break;case 10:Lt.enableInclusiveEndDates(),this.$=lt[Ut].substr(18);break;case 11:Lt.TopAxis(),this.$=lt[Ut].substr(8);break;case 12:Lt.setAxisFormat(lt[Ut].substr(11)),this.$=lt[Ut].substr(11);break;case 13:Lt.setExcludes(lt[Ut].substr(9)),this.$=lt[Ut].substr(9);break;case 14:Lt.setIncludes(lt[Ut].substr(9)),this.$=lt[Ut].substr(9);break;case 15:Lt.setTodayMarker(lt[Ut].substr(12)),this.$=lt[Ut].substr(12);break;case 16:Lt.setTitle(lt[Ut].substr(6)),this.$=lt[Ut].substr(6);break;case 17:Lt.addSection(lt[Ut].substr(8)),this.$=lt[Ut].substr(8);break;case 19:Lt.addTask(lt[Ut-1],lt[Ut]),this.$="task";break;case 23:this.$=lt[Ut-1],Lt.setClickEvent(lt[Ut-1],lt[Ut],null);break;case 24:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut-1],lt[Ut]);break;case 25:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut-1],null),Lt.setLink(lt[Ut-2],lt[Ut]);break;case 26:this.$=lt[Ut-3],Lt.setClickEvent(lt[Ut-3],lt[Ut-2],lt[Ut-1]),Lt.setLink(lt[Ut-3],lt[Ut]);break;case 27:this.$=lt[Ut-2],Lt.setClickEvent(lt[Ut-2],lt[Ut],null),Lt.setLink(lt[Ut-2],lt[Ut-1]);break;case 28:this.$=lt[Ut-3],Lt.setClickEvent(lt[Ut-3],lt[Ut-1],lt[Ut]),Lt.setLink(lt[Ut-3],lt[Ut-2]);break;case 29:this.$=lt[Ut-1],Lt.setLink(lt[Ut-1],lt[Ut]);break;case 30:case 36:this.$=lt[Ut-1]+" "+lt[Ut];break;case 31:case 32:case 34:this.$=lt[Ut-2]+" "+lt[Ut-1]+" "+lt[Ut];break;case 33:case 35:this.$=lt[Ut-3]+" "+lt[Ut-2]+" "+lt[Ut-1]+" "+lt[Ut];break;case 37:Lt.parseDirective("%%{","open_directive");break;case 38:Lt.parseDirective(lt[Ut],"type_directive");break;case 39:lt[Ut]=lt[Ut].trim().replace(/'/g,'"'),Lt.parseDirective(lt[Ut],"arg_directive");break;case 40:Lt.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:x,24:4,34:g},{1:[3]},{3:6,4:2,5:x,24:4,34:g},h(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:E,13:A,14:I,15:O,16:Y,17:H,18:X,19:Z,20:et,21:24,22:Q,24:4,29:gt,34:g},{26:28,27:[1,29],37:ht},h([27,37],[2,38]),h(k,[2,8],{1:[2,2]}),h(k,[2,4]),{4:26,10:31,12:E,13:A,14:I,15:O,16:Y,17:H,18:X,19:Z,20:et,21:24,22:Q,24:4,29:gt,34:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,9]),h(k,[2,10]),h(k,[2,11]),h(k,[2,12]),h(k,[2,13]),h(k,[2,14]),h(k,[2,15]),h(k,[2,16]),h(k,[2,17]),h(k,[2,18]),{23:[1,32]},h(k,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},h(k,[2,5]),h(k,[2,19]),h(k,[2,23],{31:[1,38],32:[1,39]}),h(k,[2,29],{30:[1,40]}),h(xt,[2,21]),{26:41,37:ht},{37:[2,39]},h(k,[2,24],{32:[1,42]}),h(k,[2,25]),h(k,[2,27],{31:[1,43]}),{11:[1,44]},h(k,[2,26]),h(k,[2,28]),h(xt,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(at,nt){if(!nt.recoverable){var Dt=new Error(at);throw Dt.hash=nt,Dt}this.trace(at)},parse:function(at){var nt=this,Dt=[0],Lt=[],tt=[null],lt=[],q=this.table,Ut="",G=0,me=0,ve=0,jt=2,ie=1,he=lt.slice.call(arguments,1),pe=Object.create(this.lexer),le={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(le.yy[oe]=this.yy[oe]);pe.setInput(at,le.yy),le.yy.lexer=pe,le.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var wn=pe.yylloc;lt.push(wn);var fe=pe.options&&pe.options.ranges;function ae(){var cn;return typeof(cn=Lt.pop()||pe.lex()||ie)!="number"&&(cn instanceof Array&&(cn=(Lt=cn).pop()),cn=nt.symbols_[cn]||cn),cn}typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Zt,St,Qt,mt,Ht,kt,It,se,Se,be={};;){if(Qt=Dt[Dt.length-1],this.defaultActions[Qt]?mt=this.defaultActions[Qt]:(Zt==null&&(Zt=ae()),mt=q[Qt]&&q[Qt][Zt]),mt===void 0||!mt.length||!mt[0]){var Ae="";for(kt in Se=[],q[Qt])this.terminals_[kt]&&kt>jt&&Se.push("'"+this.terminals_[kt]+"'");Ae=pe.showPosition?"Parse error on line "+(G+1)+`:
|
|
`+pe.showPosition()+`
|
|
Expecting `+Se.join(", ")+", got '"+(this.terminals_[Zt]||Zt)+"'":"Parse error on line "+(G+1)+": Unexpected "+(Zt==ie?"end of input":"'"+(this.terminals_[Zt]||Zt)+"'"),this.parseError(Ae,{text:pe.match,token:this.terminals_[Zt]||Zt,line:pe.yylineno,loc:wn,expected:Se})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+Zt);switch(mt[0]){case 1:Dt.push(Zt),tt.push(pe.yytext),lt.push(pe.yylloc),Dt.push(mt[1]),Zt=null,St?(Zt=St,St=null):(me=pe.yyleng,Ut=pe.yytext,G=pe.yylineno,wn=pe.yylloc,ve>0);break;case 2:if(It=this.productions_[mt[1]][1],be.$=tt[tt.length-It],be._$={first_line:lt[lt.length-(It||1)].first_line,last_line:lt[lt.length-1].last_line,first_column:lt[lt.length-(It||1)].first_column,last_column:lt[lt.length-1].last_column},fe&&(be._$.range=[lt[lt.length-(It||1)].range[0],lt[lt.length-1].range[1]]),(Ht=this.performAction.apply(be,[Ut,me,G,le.yy,mt[1],tt,lt].concat(he)))!==void 0)return Ht;It&&(Dt=Dt.slice(0,-1*It*2),tt=tt.slice(0,-1*It),lt=lt.slice(0,-1*It)),Dt.push(this.productions_[mt[1]][0]),tt.push(be.$),lt.push(be._$),se=q[Dt[Dt.length-2]][Dt[Dt.length-1]],Dt.push(se);break;case 3:return!0}}return!0}},ne={EOF:1,parseError:function(at,nt){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,nt)},setInput:function(at,nt){return this.yy=nt||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 nt=at.length,Dt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;var Lt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Dt.length-1&&(this.yylineno-=Dt.length-1);var tt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Dt?(Dt.length===Lt.length?this.yylloc.first_column:0)+Lt[Lt.length-Dt.length].length-Dt[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[tt[0],tt[0]+this.yyleng-nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){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(),nt=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
|
|
`+nt+"^"},test_match:function(at,nt){var Dt,Lt,tt;if(this.options.backtrack_lexer&&(tt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(tt.yylloc.range=this.yylloc.range.slice(0))),(Lt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lt?Lt[Lt.length-1].length-Lt[Lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],Dt=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dt)return Dt;if(this._backtrack){for(var lt in tt)this[lt]=tt[lt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,nt,Dt,Lt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var tt=this._currentRules(),lt=0;lt<tt.length;lt++)if((Dt=this._input.match(this.rules[tt[lt]]))&&(!nt||Dt[0].length>nt[0].length)){if(nt=Dt,Lt=lt,this.options.backtrack_lexer){if((at=this.test_match(Dt,tt[lt]))!==!1)return at;if(this._backtrack){nt=!1;continue}return!1}if(!this.options.flex)break}return nt?(at=this.test_match(nt,tt[Lt]))!==!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,nt,Dt,Lt){switch(Dt){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 bt(){this.yy={}}return Tt.lexer=ne,bt.prototype=Tt,Tt.Parser=bt,new bt}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(6878).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},2553:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(nt,Dt,Lt,tt){for(Lt=Lt||{},tt=nt.length;tt--;Lt[nt[tt]]=Dt);return Lt},x=[1,4],g=[1,7],k=[1,5],E=[1,9],A=[1,6],I=[2,6],O=[1,16],Y=[6,8,14,18,20,21,22,37,41],H=[8,14,18,20,21,22],X=[8,13,14,18,20,21,22],Z=[1,26],et=[6,8,14,37,41],Q=[8,14,41],gt=[1,53],ht=[1,54],xt=[1,55],Tt=[8,14,24,28,29,41],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,BRANCH:18,ID:19,CHECKOUT:20,MERGE:21,COMMIT:22,commit_arg:23,COMMIT_TAG:24,STR:25,COMMIT_TYPE:26,commitType:27,COMMIT_ID:28,COMMIT_MSG:29,NORMAL:30,REVERSE:31,HIGHLIGHT:32,openDirective:33,typeDirective:34,closeDirective:35,argDirective:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,";":41,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",18:"BRANCH",19:"ID",20:"CHECKOUT",21:"MERGE",22:"COMMIT",24:"COMMIT_TAG",25:"STR",26:"COMMIT_TYPE",28:"COMMIT_ID",29:"COMMIT_MSG",30:"NORMAL",31:"REVERSE",32:"HIGHLIGHT",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive",41:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,2],[16,2],[16,2],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[23,0],[23,1],[27,1],[27,1],[27,1],[5,3],[5,5],[33,1],[34,1],[36,1],[35,1],[4,1],[4,1],[4,1]],performAction:function(nt,Dt,Lt,tt,lt,q,Ut){var G=q.length-1;switch(lt){case 3:return q[G];case 4:return q[G-1];case 5:return tt.setDirection(q[G-3]),q[G-1];case 7:tt.setOptions(q[G-1]),this.$=q[G];break;case 8:q[G-1]+=q[G],this.$=q[G-1];break;case 10:this.$=[];break;case 11:q[G-1].push(q[G]),this.$=q[G-1];break;case 12:this.$=q[G-1];break;case 15:tt.branch(q[G]);break;case 16:tt.checkout(q[G]);break;case 17:tt.merge(q[G]);break;case 18:tt.commit(q[G]);break;case 19:tt.commit("","",tt.commitType.NORMAL,q[G]);break;case 20:tt.commit("","",q[G],"");break;case 21:tt.commit("","",q[G],q[G-2]);break;case 22:tt.commit("","",q[G-2],q[G]);break;case 23:tt.commit("",q[G],tt.commitType.NORMAL,"");break;case 24:tt.commit("",q[G-2],tt.commitType.NORMAL,q[G]);break;case 25:tt.commit("",q[G],tt.commitType.NORMAL,q[G-2]);break;case 26:tt.commit("",q[G-2],q[G],"");break;case 27:tt.commit("",q[G],q[G-2],"");break;case 28:tt.commit("",q[G-4],q[G-2],q[G]);break;case 29:tt.commit("",q[G-4],q[G],q[G-2]);break;case 30:tt.commit("",q[G-2],q[G-4],q[G]);break;case 31:tt.commit("",q[G],q[G-4],q[G-2]);break;case 32:tt.commit("",q[G],q[G-2],q[G-4]);break;case 33:tt.commit("",q[G-2],q[G],q[G-4]);break;case 34:tt.commit(q[G],"",tt.commitType.NORMAL,"");break;case 35:tt.commit(q[G],"",tt.commitType.NORMAL,q[G-2]);break;case 36:tt.commit(q[G-2],"",tt.commitType.NORMAL,q[G]);break;case 37:tt.commit(q[G-2],"",q[G],"");break;case 38:tt.commit(q[G],"",q[G-2],"");break;case 39:tt.commit(q[G],q[G-2],tt.commitType.NORMAL,"");break;case 40:tt.commit(q[G-2],q[G],tt.commitType.NORMAL,"");break;case 41:tt.commit(q[G-4],"",q[G-2],q[G]);break;case 42:tt.commit(q[G-4],"",q[G],q[G-2]);break;case 43:tt.commit(q[G-2],"",q[G-4],q[G]);break;case 44:tt.commit(q[G],"",q[G-4],q[G-2]);break;case 45:tt.commit(q[G],"",q[G-2],q[G-4]);break;case 46:tt.commit(q[G-2],"",q[G],q[G-4]);break;case 47:tt.commit(q[G-4],q[G],q[G-2],"");break;case 48:tt.commit(q[G-4],q[G-2],q[G],"");break;case 49:tt.commit(q[G-2],q[G],q[G-4],"");break;case 50:tt.commit(q[G],q[G-2],q[G-4],"");break;case 51:tt.commit(q[G],q[G-4],q[G-2],"");break;case 52:tt.commit(q[G-2],q[G-4],q[G],"");break;case 53:tt.commit(q[G-4],q[G],tt.commitType.NORMAL,q[G-2]);break;case 54:tt.commit(q[G-4],q[G-2],tt.commitType.NORMAL,q[G]);break;case 55:tt.commit(q[G-2],q[G],tt.commitType.NORMAL,q[G-4]);break;case 56:tt.commit(q[G],q[G-2],tt.commitType.NORMAL,q[G-4]);break;case 57:tt.commit(q[G],q[G-4],tt.commitType.NORMAL,q[G-2]);break;case 58:tt.commit(q[G-2],q[G-4],tt.commitType.NORMAL,q[G]);break;case 59:tt.commit(q[G-6],q[G-4],q[G-2],q[G]);break;case 60:tt.commit(q[G-6],q[G-4],q[G],q[G-2]);break;case 61:tt.commit(q[G-6],q[G-2],q[G-4],q[G]);break;case 62:tt.commit(q[G-6],q[G],q[G-4],q[G-2]);break;case 63:tt.commit(q[G-6],q[G-2],q[G],q[G-4]);break;case 64:tt.commit(q[G-6],q[G],q[G-2],q[G-4]);break;case 65:tt.commit(q[G-4],q[G-6],q[G-2],q[G]);break;case 66:tt.commit(q[G-4],q[G-6],q[G],q[G-2]);break;case 67:tt.commit(q[G-2],q[G-6],q[G-4],q[G]);break;case 68:tt.commit(q[G],q[G-6],q[G-4],q[G-2]);break;case 69:tt.commit(q[G-2],q[G-6],q[G],q[G-4]);break;case 70:tt.commit(q[G],q[G-6],q[G-2],q[G-4]);break;case 71:tt.commit(q[G],q[G-4],q[G-2],q[G-6]);break;case 72:tt.commit(q[G-2],q[G-4],q[G],q[G-6]);break;case 73:tt.commit(q[G],q[G-2],q[G-4],q[G-6]);break;case 74:tt.commit(q[G-2],q[G],q[G-4],q[G-6]);break;case 75:tt.commit(q[G-4],q[G-2],q[G],q[G-6]);break;case 76:tt.commit(q[G-4],q[G],q[G-2],q[G-6]);break;case 77:tt.commit(q[G-2],q[G-4],q[G-6],q[G]);break;case 78:tt.commit(q[G],q[G-4],q[G-6],q[G-2]);break;case 79:tt.commit(q[G-2],q[G],q[G-6],q[G-4]);break;case 80:tt.commit(q[G],q[G-2],q[G-6],q[G-4]);break;case 81:tt.commit(q[G-4],q[G-2],q[G-6],q[G]);break;case 82:tt.commit(q[G-4],q[G],q[G-6],q[G-2]);break;case 83:this.$="";break;case 84:this.$=q[G];break;case 85:this.$=tt.commitType.NORMAL;break;case 86:this.$=tt.commitType.REVERSE;break;case 87:this.$=tt.commitType.HIGHLIGHT;break;case 90:tt.parseDirective("%%{","open_directive");break;case 91:tt.parseDirective(q[G],"type_directive");break;case 92:q[G]=q[G].trim().replace(/'/g,'"'),tt.parseDirective(q[G],"arg_directive");break;case 93:tt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{1:[3]},{3:10,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{3:11,4:2,5:3,6:x,8:g,14:k,33:8,37:E,41:A},{7:12,8:I,9:[1,13],10:[1,14],11:15,14:O},h(Y,[2,94]),h(Y,[2,95]),h(Y,[2,96]),{34:17,38:[1,18]},{38:[2,90]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:I,11:15,14:O},{9:[1,21]},h(H,[2,10],{12:22,13:[1,23]}),h(X,[2,9]),{9:[1,25],35:24,40:Z},h([9,40],[2,91]),{1:[2,3]},{8:[1,27]},{7:28,8:I,11:15,14:O},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:[1,33],20:[1,34],21:[1,35],22:[1,36]},h(X,[2,8]),h(et,[2,88]),{36:37,39:[1,38]},h(et,[2,93]),{1:[2,4]},{8:[1,39]},h(H,[2,11]),{4:40,8:g,14:k,41:A},h(H,[2,13]),h(Q,[2,14]),{19:[1,41]},{19:[1,42]},{19:[1,43]},h(Q,[2,83],{23:44,24:[1,45],25:[1,49],26:[1,46],28:[1,47],29:[1,48]}),{35:50,40:Z},{40:[2,92]},{1:[2,5]},h(H,[2,12]),h(Q,[2,15]),h(Q,[2,16]),h(Q,[2,17]),h(Q,[2,18]),{25:[1,51]},{27:52,30:gt,31:ht,32:xt},{25:[1,56]},{25:[1,57]},h(Q,[2,84]),h(et,[2,89]),h(Q,[2,19],{26:[1,58],28:[1,59],29:[1,60]}),h(Q,[2,20],{24:[1,61],28:[1,62],29:[1,63]}),h(Tt,[2,85]),h(Tt,[2,86]),h(Tt,[2,87]),h(Q,[2,23],{24:[1,64],26:[1,65],29:[1,66]}),h(Q,[2,34],{24:[1,67],26:[1,68],28:[1,69]}),{27:70,30:gt,31:ht,32:xt},{25:[1,71]},{25:[1,72]},{25:[1,73]},{25:[1,74]},{25:[1,75]},{25:[1,76]},{27:77,30:gt,31:ht,32:xt},{25:[1,78]},{25:[1,79]},{27:80,30:gt,31:ht,32:xt},{25:[1,81]},h(Q,[2,21],{28:[1,82],29:[1,83]}),h(Q,[2,25],{26:[1,84],29:[1,85]}),h(Q,[2,35],{26:[1,86],28:[1,87]}),h(Q,[2,22],{28:[1,88],29:[1,89]}),h(Q,[2,27],{24:[1,90],29:[1,91]}),h(Q,[2,38],{24:[1,92],28:[1,93]}),h(Q,[2,24],{26:[1,94],29:[1,95]}),h(Q,[2,26],{24:[1,96],29:[1,97]}),h(Q,[2,39],{24:[1,99],26:[1,98]}),h(Q,[2,36],{26:[1,100],28:[1,101]}),h(Q,[2,37],{24:[1,102],28:[1,103]}),h(Q,[2,40],{24:[1,105],26:[1,104]}),{25:[1,106]},{25:[1,107]},{27:108,30:gt,31:ht,32:xt},{25:[1,109]},{27:110,30:gt,31:ht,32:xt},{25:[1,111]},{25:[1,112]},{25:[1,113]},{25:[1,114]},{25:[1,115]},{25:[1,116]},{25:[1,117]},{27:118,30:gt,31:ht,32:xt},{25:[1,119]},{25:[1,120]},{25:[1,121]},{27:122,30:gt,31:ht,32:xt},{25:[1,123]},{27:124,30:gt,31:ht,32:xt},{25:[1,125]},{25:[1,126]},{25:[1,127]},{27:128,30:gt,31:ht,32:xt},{25:[1,129]},h(Q,[2,32],{29:[1,130]}),h(Q,[2,45],{28:[1,131]}),h(Q,[2,33],{29:[1,132]}),h(Q,[2,56],{26:[1,133]}),h(Q,[2,46],{28:[1,134]}),h(Q,[2,55],{26:[1,135]}),h(Q,[2,31],{29:[1,136]}),h(Q,[2,44],{28:[1,137]}),h(Q,[2,30],{29:[1,138]}),h(Q,[2,50],{24:[1,139]}),h(Q,[2,43],{28:[1,140]}),h(Q,[2,49],{24:[1,141]}),h(Q,[2,29],{29:[1,142]}),h(Q,[2,57],{26:[1,143]}),h(Q,[2,28],{29:[1,144]}),h(Q,[2,51],{24:[1,145]}),h(Q,[2,52],{24:[1,146]}),h(Q,[2,58],{26:[1,147]}),h(Q,[2,42],{28:[1,148]}),h(Q,[2,53],{26:[1,149]}),h(Q,[2,41],{28:[1,150]}),h(Q,[2,47],{24:[1,151]}),h(Q,[2,48],{24:[1,152]}),h(Q,[2,54],{26:[1,153]}),{25:[1,154]},{25:[1,155]},{25:[1,156]},{27:157,30:gt,31:ht,32:xt},{25:[1,158]},{27:159,30:gt,31:ht,32:xt},{25:[1,160]},{25:[1,161]},{25:[1,162]},{25:[1,163]},{25:[1,164]},{25:[1,165]},{25:[1,166]},{27:167,30:gt,31:ht,32:xt},{25:[1,168]},{25:[1,169]},{25:[1,170]},{27:171,30:gt,31:ht,32:xt},{25:[1,172]},{27:173,30:gt,31:ht,32:xt},{25:[1,174]},{25:[1,175]},{25:[1,176]},{27:177,30:gt,31:ht,32:xt},h(Q,[2,73]),h(Q,[2,74]),h(Q,[2,71]),h(Q,[2,72]),h(Q,[2,76]),h(Q,[2,75]),h(Q,[2,80]),h(Q,[2,79]),h(Q,[2,78]),h(Q,[2,77]),h(Q,[2,82]),h(Q,[2,81]),h(Q,[2,70]),h(Q,[2,69]),h(Q,[2,68]),h(Q,[2,67]),h(Q,[2,65]),h(Q,[2,66]),h(Q,[2,64]),h(Q,[2,63]),h(Q,[2,62]),h(Q,[2,61]),h(Q,[2,59]),h(Q,[2,60])],defaultActions:{9:[2,90],10:[2,1],11:[2,2],19:[2,3],27:[2,4],38:[2,92],39:[2,5]},parseError:function(nt,Dt){if(!Dt.recoverable){var Lt=new Error(nt);throw Lt.hash=Dt,Lt}this.trace(nt)},parse:function(nt){var Dt=this,Lt=[0],tt=[],lt=[null],q=[],Ut=this.table,G="",me=0,ve=0,jt=0,ie=2,he=1,pe=q.slice.call(arguments,1),le=Object.create(this.lexer),oe={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(oe.yy[wn]=this.yy[wn]);le.setInput(nt,oe.yy),oe.yy.lexer=le,oe.yy.parser=this,le.yylloc===void 0&&(le.yylloc={});var fe=le.yylloc;q.push(fe);var ae=le.options&&le.options.ranges;function Zt(){var De;return typeof(De=tt.pop()||le.lex()||he)!="number"&&(De instanceof Array&&(De=(tt=De).pop()),De=Dt.symbols_[De]||De),De}typeof oe.yy.parseError=="function"?this.parseError=oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var St,Qt,mt,Ht,kt,It,se,Se,be,Ae={};;){if(mt=Lt[Lt.length-1],this.defaultActions[mt]?Ht=this.defaultActions[mt]:(St==null&&(St=Zt()),Ht=Ut[mt]&&Ut[mt][St]),Ht===void 0||!Ht.length||!Ht[0]){var cn="";for(It in be=[],Ut[mt])this.terminals_[It]&&It>ie&&be.push("'"+this.terminals_[It]+"'");cn=le.showPosition?"Parse error on line "+(me+1)+`:
|
|
`+le.showPosition()+`
|
|
Expecting `+be.join(", ")+", got '"+(this.terminals_[St]||St)+"'":"Parse error on line "+(me+1)+": Unexpected "+(St==he?"end of input":"'"+(this.terminals_[St]||St)+"'"),this.parseError(cn,{text:le.match,token:this.terminals_[St]||St,line:le.yylineno,loc:fe,expected:be})}if(Ht[0]instanceof Array&&Ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+St);switch(Ht[0]){case 1:Lt.push(St),lt.push(le.yytext),q.push(le.yylloc),Lt.push(Ht[1]),St=null,Qt?(St=Qt,Qt=null):(ve=le.yyleng,G=le.yytext,me=le.yylineno,fe=le.yylloc,jt>0);break;case 2:if(se=this.productions_[Ht[1]][1],Ae.$=lt[lt.length-se],Ae._$={first_line:q[q.length-(se||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(se||1)].first_column,last_column:q[q.length-1].last_column},ae&&(Ae._$.range=[q[q.length-(se||1)].range[0],q[q.length-1].range[1]]),(kt=this.performAction.apply(Ae,[G,ve,me,oe.yy,Ht[1],lt,q].concat(pe)))!==void 0)return kt;se&&(Lt=Lt.slice(0,-1*se*2),lt=lt.slice(0,-1*se),q=q.slice(0,-1*se)),Lt.push(this.productions_[Ht[1]][0]),lt.push(Ae.$),q.push(Ae._$),Se=Ut[Lt[Lt.length-2]][Lt[Lt.length-1]],Lt.push(Se);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(nt,Dt){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,Dt)},setInput:function(nt,Dt){return this.yy=Dt||this.yy||{},this._input=nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var nt=this._input[0];return this.yytext+=nt,this.yyleng++,this.offset++,this.match+=nt,this.matched+=nt,nt.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),nt},unput:function(nt){var Dt=nt.length,Lt=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Dt),this.offset-=Dt;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lt.length-1&&(this.yylineno-=Lt.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:Lt?(Lt.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-Lt.length].length-Lt[0].length:this.yylloc.first_column-Dt},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Dt]),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(nt){this.unput(this.match.slice(nt))},pastInput:function(){var nt=this.matched.substr(0,this.matched.length-this.match.length);return(nt.length>20?"...":"")+nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var nt=this.match;return nt.length<20&&(nt+=this._input.substr(0,20-nt.length)),(nt.substr(0,20)+(nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var nt=this.pastInput(),Dt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|
`+Dt+"^"},test_match:function(nt,Dt){var Lt,tt,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))),(tt=nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+nt[0].length},this.yytext+=nt[0],this.match+=nt[0],this.matches=nt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(nt[0].length),this.matched+=nt[0],Lt=this.performAction.call(this,this.yy,this,Dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lt)return Lt;if(this._backtrack){for(var q in lt)this[q]=lt[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var nt,Dt,Lt,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),q=0;q<lt.length;q++)if((Lt=this._input.match(this.rules[lt[q]]))&&(!Dt||Lt[0].length>Dt[0].length)){if(Dt=Lt,tt=q,this.options.backtrack_lexer){if((nt=this.test_match(Lt,lt[q]))!==!1)return nt;if(this._backtrack){Dt=!1;continue}return!1}if(!this.options.flex)break}return Dt?(nt=this.test_match(Dt,lt[tt]))!==!1&&nt: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(nt){this.conditionStack.push(nt)},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(nt){return(nt=this.conditionStack.length-1-Math.abs(nt||0))>=0?this.conditionStack[nt]:"INITIAL"},pushState:function(nt){this.begin(nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nt,Dt,Lt,tt){switch(Lt){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:return 14;case 6:case 7:case 8:break;case 9:return 6;case 10:return 22;case 11:return 28;case 12:return 26;case 13:return 29;case 14:return 30;case 15:return 31;case 16:return 32;case 17:return 24;case 18:return 18;case 19:return 21;case 20:return 20;case 21:case 22:return 10;case 23:return 9;case 24:return"CARET";case 25:this.begin("options");break;case 26:case 29:this.popState();break;case 27:return 13;case 28:this.begin("string");break;case 30:return 25;case 31:return 19;case 32:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:merge\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:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[26,27],inclusive:!1},string:{rules:[29,30],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,28,31,32],inclusive:!0}}};function at(){this.yy={}}return ne.lexer=bt,at.prototype=ne,ne.Parser=at,new at}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8183).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},6765:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(A,I,O,Y){for(O=O||{},Y=A.length;Y--;O[A[Y]]=I);return O},x=[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,O,Y,H,X,Z){switch(X.length,H){case 1:return Y;case 4:break;case 6:Y.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},h(x,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(x,[2,3]),h(x,[2,4]),h(x,[2,5]),h(x,[2,6])],defaultActions:{4:[2,1]},parseError:function(A,I){if(!I.recoverable){var O=new Error(A);throw O.hash=I,O}this.trace(A)},parse:function(A){var I=this,O=[0],Y=[],H=[null],X=[],Z=this.table,et="",Q=0,gt=0,ht=0,xt=2,Tt=1,ne=X.slice.call(arguments,1),bt=Object.create(this.lexer),at={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(at.yy[nt]=this.yy[nt]);bt.setInput(A,at.yy),at.yy.lexer=bt,at.yy.parser=this,bt.yylloc===void 0&&(bt.yylloc={});var Dt=bt.yylloc;X.push(Dt);var Lt=bt.options&&bt.options.ranges;function tt(){var oe;return typeof(oe=Y.pop()||bt.lex()||Tt)!="number"&&(oe instanceof Array&&(oe=(Y=oe).pop()),oe=I.symbols_[oe]||oe),oe}typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var lt,q,Ut,G,me,ve,jt,ie,he,pe={};;){if(Ut=O[O.length-1],this.defaultActions[Ut]?G=this.defaultActions[Ut]:(lt==null&&(lt=tt()),G=Z[Ut]&&Z[Ut][lt]),G===void 0||!G.length||!G[0]){var le="";for(ve in he=[],Z[Ut])this.terminals_[ve]&&ve>xt&&he.push("'"+this.terminals_[ve]+"'");le=bt.showPosition?"Parse error on line "+(Q+1)+`:
|
|
`+bt.showPosition()+`
|
|
Expecting `+he.join(", ")+", got '"+(this.terminals_[lt]||lt)+"'":"Parse error on line "+(Q+1)+": Unexpected "+(lt==Tt?"end of input":"'"+(this.terminals_[lt]||lt)+"'"),this.parseError(le,{text:bt.match,token:this.terminals_[lt]||lt,line:bt.yylineno,loc:Dt,expected:he})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ut+", token: "+lt);switch(G[0]){case 1:O.push(lt),H.push(bt.yytext),X.push(bt.yylloc),O.push(G[1]),lt=null,q?(lt=q,q=null):(gt=bt.yyleng,et=bt.yytext,Q=bt.yylineno,Dt=bt.yylloc,ht>0);break;case 2:if(jt=this.productions_[G[1]][1],pe.$=H[H.length-jt],pe._$={first_line:X[X.length-(jt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(jt||1)].first_column,last_column:X[X.length-1].last_column},Lt&&(pe._$.range=[X[X.length-(jt||1)].range[0],X[X.length-1].range[1]]),(me=this.performAction.apply(pe,[et,gt,Q,at.yy,G[1],H,X].concat(ne)))!==void 0)return me;jt&&(O=O.slice(0,-1*jt*2),H=H.slice(0,-1*jt),X=X.slice(0,-1*jt)),O.push(this.productions_[G[1]][0]),H.push(pe.$),X.push(pe._$),ie=Z[O[O.length-2]][O[O.length-1]],O.push(ie);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,O=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),O.length-1&&(this.yylineno-=O.length-1);var H=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-O.length].length-O[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[H[0],H[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 O,Y,H;if(this.options.backtrack_lexer&&(H={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(H.yylloc.range=this.yylloc.range.slice(0))),(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],O=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var X in H)this[X]=H[X];return!1}return!1},next:function(){if(this.done)return this.EOF;var A,I,O,Y;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var H=this._currentRules(),X=0;X<H.length;X++)if((O=this._input.match(this.rules[H[X]]))&&(!I||O[0].length>I[0].length)){if(I=O,Y=X,this.options.backtrack_lexer){if((A=this.test_match(O,H[X]))!==!1)return A;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(A=this.test_match(I,H[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,O,Y){switch(O){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 E(){this.yy={}}return g.lexer=k,E.prototype=g,g.Parser=E,new E}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(1428).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},7062:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(bt,at,nt,Dt){for(nt=nt||{},Dt=bt.length;Dt--;nt[bt[Dt]]=at);return nt},x=[1,4],g=[1,5],k=[1,6],E=[1,7],A=[1,9],I=[1,11,13,15,22,23,24,25],O=[2,5],Y=[1,6,11,13,15,22,23,24,25],H=[22,23,24],X=[2,8],Z=[1,18],et=[1,19],Q=[1,20],gt=[1,25],ht=[6,22,23,24,25],xt={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,accDescription:15,description_value:16,openDirective:17,typeDirective:18,closeDirective:19,":":20,argDirective:21,NEWLINE:22,";":23,EOF:24,open_directive:25,type_directive:26,arg_directive:27,close_directive:28,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"accDescription",16:"description_value",20:":",22:"NEWLINE",23:";",24:"EOF",25:"open_directive",26:"type_directive",27:"arg_directive",28:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[17,1],[18,1],[21,1],[19,1]],performAction:function(bt,at,nt,Dt,Lt,tt,lt){var q=tt.length-1;switch(Lt){case 4:Dt.setShowData(!0);break;case 7:this.$=tt[q-1];break;case 9:Dt.addSection(tt[q-1],Dt.cleanupValue(tt[q]));break;case 10:this.$=tt[q].trim(),Dt.setTitle(this.$);break;case 11:this.$=tt[q].trim(),Dt.setAccDescription(this.$);break;case 18:Dt.parseDirective("%%{","open_directive");break;case 19:Dt.parseDirective(tt[q],"type_directive");break;case 20:tt[q]=tt[q].trim().replace(/'/g,'"'),Dt.parseDirective(tt[q],"arg_directive");break;case 21:Dt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},{1:[3]},{3:10,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},{3:11,4:2,5:3,6:x,17:8,22:g,23:k,24:E,25:A},h(I,O,{7:12,8:[1,13]}),h(Y,[2,15]),h(Y,[2,16]),h(Y,[2,17]),{18:14,26:[1,15]},{26:[2,18]},{1:[2,1]},{1:[2,2]},h(H,X,{17:8,9:16,10:17,5:21,1:[2,3],11:Z,13:et,15:Q,25:A}),h(I,O,{7:22}),{19:23,20:[1,24],28:gt},h([20,28],[2,19]),h(I,[2,6]),{4:26,22:g,23:k,24:E},{12:[1,27]},{14:[1,28]},{16:[1,29]},h(H,[2,12]),h(H,X,{17:8,9:16,10:17,5:21,1:[2,4],11:Z,13:et,15:Q,25:A}),h(ht,[2,13]),{21:30,27:[1,31]},h(ht,[2,21]),h(I,[2,7]),h(H,[2,9]),h(H,[2,10]),h(H,[2,11]),{19:32,28:gt},{28:[2,20]},h(ht,[2,14])],defaultActions:{9:[2,18],10:[2,1],11:[2,2],31:[2,20]},parseError:function(bt,at){if(!at.recoverable){var nt=new Error(bt);throw nt.hash=at,nt}this.trace(bt)},parse:function(bt){var at=this,nt=[0],Dt=[],Lt=[null],tt=[],lt=this.table,q="",Ut=0,G=0,me=0,ve=2,jt=1,ie=tt.slice.call(arguments,1),he=Object.create(this.lexer),pe={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(pe.yy[le]=this.yy[le]);he.setInput(bt,pe.yy),pe.yy.lexer=he,pe.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var oe=he.yylloc;tt.push(oe);var wn=he.options&&he.options.ranges;function fe(){var Ae;return typeof(Ae=Dt.pop()||he.lex()||jt)!="number"&&(Ae instanceof Array&&(Ae=(Dt=Ae).pop()),Ae=at.symbols_[Ae]||Ae),Ae}typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ae,Zt,St,Qt,mt,Ht,kt,It,se,Se={};;){if(St=nt[nt.length-1],this.defaultActions[St]?Qt=this.defaultActions[St]:(ae==null&&(ae=fe()),Qt=lt[St]&<[St][ae]),Qt===void 0||!Qt.length||!Qt[0]){var be="";for(Ht in se=[],lt[St])this.terminals_[Ht]&&Ht>ve&&se.push("'"+this.terminals_[Ht]+"'");be=he.showPosition?"Parse error on line "+(Ut+1)+`:
|
|
`+he.showPosition()+`
|
|
Expecting `+se.join(", ")+", got '"+(this.terminals_[ae]||ae)+"'":"Parse error on line "+(Ut+1)+": Unexpected "+(ae==jt?"end of input":"'"+(this.terminals_[ae]||ae)+"'"),this.parseError(be,{text:he.match,token:this.terminals_[ae]||ae,line:he.yylineno,loc:oe,expected:se})}if(Qt[0]instanceof Array&&Qt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+ae);switch(Qt[0]){case 1:nt.push(ae),Lt.push(he.yytext),tt.push(he.yylloc),nt.push(Qt[1]),ae=null,Zt?(ae=Zt,Zt=null):(G=he.yyleng,q=he.yytext,Ut=he.yylineno,oe=he.yylloc,me>0);break;case 2:if(kt=this.productions_[Qt[1]][1],Se.$=Lt[Lt.length-kt],Se._$={first_line:tt[tt.length-(kt||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(kt||1)].first_column,last_column:tt[tt.length-1].last_column},wn&&(Se._$.range=[tt[tt.length-(kt||1)].range[0],tt[tt.length-1].range[1]]),(mt=this.performAction.apply(Se,[q,G,Ut,pe.yy,Qt[1],Lt,tt].concat(ie)))!==void 0)return mt;kt&&(nt=nt.slice(0,-1*kt*2),Lt=Lt.slice(0,-1*kt),tt=tt.slice(0,-1*kt)),nt.push(this.productions_[Qt[1]][0]),Lt.push(Se.$),tt.push(Se._$),It=lt[nt[nt.length-2]][nt[nt.length-1]],nt.push(It);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(bt,at){if(!this.yy.parser)throw new Error(bt);this.yy.parser.parseError(bt,at)},setInput:function(bt,at){return this.yy=at||this.yy||{},this._input=bt,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 bt=this._input[0];return this.yytext+=bt,this.yyleng++,this.offset++,this.match+=bt,this.matched+=bt,bt.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),bt},unput:function(bt){var at=bt.length,nt=bt.split(/(?:\r\n?|\n)/g);this._input=bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var Dt=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),nt.length-1&&(this.yylineno-=nt.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:nt?(nt.length===Dt.length?this.yylloc.first_column:0)+Dt[Dt.length-nt.length].length-nt[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[Lt[0],Lt[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(bt){this.unput(this.match.slice(bt))},pastInput:function(){var bt=this.matched.substr(0,this.matched.length-this.match.length);return(bt.length>20?"...":"")+bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var bt=this.match;return bt.length<20&&(bt+=this._input.substr(0,20-bt.length)),(bt.substr(0,20)+(bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var bt=this.pastInput(),at=new Array(bt.length+1).join("-");return bt+this.upcomingInput()+`
|
|
`+at+"^"},test_match:function(bt,at){var nt,Dt,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))),(Dt=bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Dt?Dt[Dt.length-1].length-Dt[Dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+bt[0].length},this.yytext+=bt[0],this.match+=bt[0],this.matches=bt,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(bt[0].length),this.matched+=bt[0],nt=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nt)return nt;if(this._backtrack){for(var tt in Lt)this[tt]=Lt[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var bt,at,nt,Dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Lt=this._currentRules(),tt=0;tt<Lt.length;tt++)if((nt=this._input.match(this.rules[Lt[tt]]))&&(!at||nt[0].length>at[0].length)){if(at=nt,Dt=tt,this.options.backtrack_lexer){if((bt=this.test_match(nt,Lt[tt]))!==!1)return bt;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(bt=this.test_match(at,Lt[Dt]))!==!1&&bt: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(bt){this.conditionStack.push(bt)},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(bt){return(bt=this.conditionStack.length-1-Math.abs(bt||0))>=0?this.conditionStack[bt]:"INITIAL"},pushState:function(bt){this.begin(bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(bt,at,nt,Dt){switch(nt){case 0:return this.begin("open_directive"),25;case 1:return this.begin("type_directive"),26;case 2:return this.popState(),this.begin("arg_directive"),20;case 3:return this.popState(),this.popState(),28;case 4:return 27;case 5:case 6:case 8:case 9:break;case 7:return 22;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("accDescription"),15;case 13:return this.popState(),"description_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 6;case 18:return 8;case 19:return"value";case 20:return 24}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\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},accDescription:{rules:[13],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,17,18,19,20],inclusive:!0}}};function ne(){this.yy={}}return xt.lexer=Tt,ne.prototype=xt,xt.Parser=ne,new ne}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(4551).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3176:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(Zt,St,Qt,mt){for(Qt=Qt||{},mt=Zt.length;mt--;Qt[Zt[mt]]=St);return Qt},x=[1,3],g=[1,5],k=[1,17],E=[2,10],A=[1,21],I=[1,22],O=[1,23],Y=[1,24],H=[1,25],X=[1,26],Z=[1,19],et=[1,27],Q=[1,28],gt=[1,31],ht=[66,67],xt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],Tt=[5,6,8,14,35,36,37,38,39,40,48,66,67],ne=[1,51],bt=[1,52],at=[1,53],nt=[1,54],Dt=[1,55],Lt=[1,56],tt=[1,57],lt=[57,58],q=[1,69],Ut=[1,65],G=[1,66],me=[1,67],ve=[1,68],jt=[1,70],ie=[1,74],he=[1,75],pe=[1,72],le=[1,73],oe=[5,8,14,35,36,37,38,39,40,48,66,67],wn={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(Zt,St,Qt,mt,Ht,kt,It){var se=kt.length-1;switch(Ht){case 6:mt.parseDirective("%%{","open_directive");break;case 7:mt.parseDirective(kt[se],"type_directive");break;case 8:kt[se]=kt[se].trim().replace(/'/g,'"'),mt.parseDirective(kt[se],"arg_directive");break;case 9:mt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:mt.addRequirement(kt[se-3],kt[se-4]);break;case 17:mt.setNewReqId(kt[se-2]);break;case 18:mt.setNewReqText(kt[se-2]);break;case 19:mt.setNewReqRisk(kt[se-2]);break;case 20:mt.setNewReqVerifyMethod(kt[se-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(kt[se-3]);break;case 37:mt.setNewElementType(kt[se-2]);break;case 38:mt.setNewElementDocRef(kt[se-2]);break;case 41:mt.addRelationship(kt[se-2],kt[se],kt[se-4]);break;case 42:mt.addRelationship(kt[se-2],kt[se-4],kt[se]);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:x,9:4,14:g},{1:[3]},{3:7,4:2,5:[1,6],6:x,9:4,14:g},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:x,9:4,14:g},{1:[2,2]},{4:16,5:k,7:12,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{11:29,12:[1,30],17:gt},h([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:k,7:33,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:34,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:35,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:36,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{4:16,5:k,7:37,8:E,9:4,14:g,18:13,19:14,20:15,21:18,27:20,35:A,36:I,37:O,38:Y,39:H,40:X,48:Z,66:et,67:Q},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},h(ht,[2,23]),h(ht,[2,24]),h(ht,[2,25]),h(ht,[2,26]),h(ht,[2,27]),h(ht,[2,28]),h(xt,[2,52]),h(xt,[2,53]),h(Tt,[2,4]),{13:46,16:[1,47]},h(Tt,[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:ne,60:bt,61:at,62:nt,63:Dt,64:Lt,65:tt},{56:58,59:ne,60:bt,61:at,62:nt,63:Dt,64:Lt,65:tt},{11:59,17:gt},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},h(lt,[2,43]),h(lt,[2,44]),h(lt,[2,45]),h(lt,[2,46]),h(lt,[2,47]),h(lt,[2,48]),h(lt,[2,49]),{58:[1,63]},h(Tt,[2,5]),{5:q,24:64,25:Ut,28:G,30:me,32:ve,34:jt},{5:ie,34:he,50:71,51:pe,53:le},{27:76,66:et,67:Q},{27:77,66:et,67:Q},h(oe,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:q,24:82,25:Ut,28:G,30:me,32:ve,34:jt},h(oe,[2,22]),h(oe,[2,36]),{26:[1,83]},{26:[1,84]},{5:ie,34:he,50:85,51:pe,53:le},h(oe,[2,40]),h(oe,[2,41]),h(oe,[2,42]),{27:86,66:et,67:Q},{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]},h(oe,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},h(oe,[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:q,24:111,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:112,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:113,25:Ut,28:G,30:me,32:ve,34:jt},{5:q,24:114,25:Ut,28:G,30:me,32:ve,34:jt},{5:ie,34:he,50:115,51:pe,53:le},{5:ie,34:he,50:116,51:pe,53:le},h(oe,[2,17]),h(oe,[2,18]),h(oe,[2,19]),h(oe,[2,20]),h(oe,[2,37]),h(oe,[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(Zt,St){if(!St.recoverable){var Qt=new Error(Zt);throw Qt.hash=St,Qt}this.trace(Zt)},parse:function(Zt){var St=this,Qt=[0],mt=[],Ht=[null],kt=[],It=this.table,se="",Se=0,be=0,Ae=0,cn=2,De=1,Be=kt.slice.call(arguments,1),Le=Object.create(this.lexer),Ze={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(Ze.yy[Ke]=this.yy[Ke]);Le.setInput(Zt,Ze.yy),Ze.yy.lexer=Le,Ze.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var Je=Le.yylloc;kt.push(Je);var $e=Le.options&&Le.options.ranges;function Ue(){var bn;return typeof(bn=mt.pop()||Le.lex()||De)!="number"&&(bn instanceof Array&&(bn=(mt=bn).pop()),bn=St.symbols_[bn]||bn),bn}typeof Ze.yy.parseError=="function"?this.parseError=Ze.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yn,Me,un,gn,kr,kn,sr,rn,ln,Ye={};;){if(un=Qt[Qt.length-1],this.defaultActions[un]?gn=this.defaultActions[un]:(Yn==null&&(Yn=Ue()),gn=It[un]&&It[un][Yn]),gn===void 0||!gn.length||!gn[0]){var mn="";for(kn in ln=[],It[un])this.terminals_[kn]&&kn>cn&&ln.push("'"+this.terminals_[kn]+"'");mn=Le.showPosition?"Parse error on line "+(Se+1)+`:
|
|
`+Le.showPosition()+`
|
|
Expecting `+ln.join(", ")+", got '"+(this.terminals_[Yn]||Yn)+"'":"Parse error on line "+(Se+1)+": Unexpected "+(Yn==De?"end of input":"'"+(this.terminals_[Yn]||Yn)+"'"),this.parseError(mn,{text:Le.match,token:this.terminals_[Yn]||Yn,line:Le.yylineno,loc:Je,expected:ln})}if(gn[0]instanceof Array&&gn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+Yn);switch(gn[0]){case 1:Qt.push(Yn),Ht.push(Le.yytext),kt.push(Le.yylloc),Qt.push(gn[1]),Yn=null,Me?(Yn=Me,Me=null):(be=Le.yyleng,se=Le.yytext,Se=Le.yylineno,Je=Le.yylloc,Ae>0);break;case 2:if(sr=this.productions_[gn[1]][1],Ye.$=Ht[Ht.length-sr],Ye._$={first_line:kt[kt.length-(sr||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(sr||1)].first_column,last_column:kt[kt.length-1].last_column},$e&&(Ye._$.range=[kt[kt.length-(sr||1)].range[0],kt[kt.length-1].range[1]]),(kr=this.performAction.apply(Ye,[se,be,Se,Ze.yy,gn[1],Ht,kt].concat(Be)))!==void 0)return kr;sr&&(Qt=Qt.slice(0,-1*sr*2),Ht=Ht.slice(0,-1*sr),kt=kt.slice(0,-1*sr)),Qt.push(this.productions_[gn[1]][0]),Ht.push(Ye.$),kt.push(Ye._$),rn=It[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(rn);break;case 3:return!0}}return!0}},fe={EOF:1,parseError:function(Zt,St){if(!this.yy.parser)throw new Error(Zt);this.yy.parser.parseError(Zt,St)},setInput:function(Zt,St){return this.yy=St||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 St=Zt.length,Qt=Zt.split(/(?:\r\n?|\n)/g);this._input=Zt+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),Qt.length-1&&(this.yylineno-=Qt.length-1);var Ht=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:Qt?(Qt.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-St},this.options.ranges&&(this.yylloc.range=[Ht[0],Ht[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(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(),St=new Array(Zt.length+1).join("-");return Zt+this.upcomingInput()+`
|
|
`+St+"^"},test_match:function(Zt,St){var Qt,mt,Ht;if(this.options.backtrack_lexer&&(Ht={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&&(Ht.yylloc.range=this.yylloc.range.slice(0))),(mt=Zt[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+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],Qt=this.performAction.call(this,this.yy,this,St,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var kt in Ht)this[kt]=Ht[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Zt,St,Qt,mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ht=this._currentRules(),kt=0;kt<Ht.length;kt++)if((Qt=this._input.match(this.rules[Ht[kt]]))&&(!St||Qt[0].length>St[0].length)){if(St=Qt,mt=kt,this.options.backtrack_lexer){if((Zt=this.test_match(Qt,Ht[kt]))!==!1)return Zt;if(this._backtrack){St=!1;continue}return!1}if(!this.options.flex)break}return St?(Zt=this.test_match(St,Ht[mt]))!==!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:{"case-insensitive":!0},performAction:function(Zt,St,Qt,mt){switch(Qt){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 St.yytext=St.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 ae(){this.yy={}}return wn.lexer=fe,ae.prototype=wn,wn.Parser=ae,new ae}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(8800).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},6876:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(fe,ae,Zt,St){for(Zt=Zt||{},St=fe.length;St--;Zt[fe[St]]=ae);return Zt},x=[1,2],g=[1,3],k=[1,5],E=[1,7],A=[2,5],I=[1,15],O=[1,17],Y=[1,18],H=[1,19],X=[1,21],Z=[1,22],et=[1,23],Q=[1,29],gt=[1,30],ht=[1,31],xt=[1,32],Tt=[1,33],ne=[1,34],bt=[1,35],at=[1,36],nt=[1,39],Dt=[1,40],Lt=[1,41],tt=[1,42],lt=[1,43],q=[1,44],Ut=[1,47],G=[1,4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],me=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,43,48,49,50,51,59,69],ve=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,42,43,48,49,50,51,59,69],jt=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,43,48,49,50,51,59,69],ie=[57,58,59],he=[1,104],pe=[1,4,5,7,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],le={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,legacy_title:31,accDescription:32,loop:33,end:34,rect:35,opt:36,alt:37,else_sections:38,par:39,par_sections:40,and:41,else:42,note:43,placement:44,text2:45,over:46,actor_pair:47,links:48,link:49,properties:50,details:51,spaceList:52,",":53,left_of:54,right_of:55,signaltype:56,"+":57,"-":58,ACTOR:59,SOLID_OPEN_ARROW:60,DOTTED_OPEN_ARROW:61,SOLID_ARROW:62,DOTTED_ARROW:63,SOLID_CROSS:64,DOTTED_CROSS:65,SOLID_POINT:66,DOTTED_POINT:67,TXT:68,open_directive:69,type_directive:70,arg_directive:71,close_directive:72,$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",31:"legacy_title",32:"accDescription",33:"loop",34:"end",35:"rect",36:"opt",37:"alt",39:"par",41:"and",42:"else",43:"note",46:"over",48:"links",49:"link",50:"properties",51:"details",53:",",54:"left_of",55:"right_of",57:"+",58:"-",59:"ACTOR",60:"SOLID_OPEN_ARROW",61:"DOTTED_OPEN_ARROW",62:"SOLID_ARROW",63:"DOTTED_ARROW",64:"SOLID_CROSS",65:"DOTTED_CROSS",66:"SOLID_POINT",67:"DOTTED_POINT",68:"TXT",69:"open_directive",70:"type_directive",71:"arg_directive",72:"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,1],[10,1],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[40,1],[40,4],[38,1],[38,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[52,2],[52,1],[47,3],[47,1],[44,1],[44,1],[21,5],[21,5],[21,4],[17,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[45,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(fe,ae,Zt,St,Qt,mt,Ht){var kt=mt.length-1;switch(Qt){case 4:return St.apply(mt[kt]),mt[kt];case 5:case 9:this.$=[];break;case 6:mt[kt-1].push(mt[kt]),this.$=mt[kt-1];break;case 7:case 8:case 47:this.$=mt[kt];break;case 12:mt[kt-3].type="addParticipant",mt[kt-3].description=St.parseMessage(mt[kt-1]),this.$=mt[kt-3];break;case 13:mt[kt-1].type="addParticipant",this.$=mt[kt-1];break;case 14:mt[kt-3].type="addActor",mt[kt-3].description=St.parseMessage(mt[kt-1]),this.$=mt[kt-3];break;case 15:mt[kt-1].type="addActor",this.$=mt[kt-1];break;case 17:St.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:St.LINETYPE.ACTIVE_START,actor:mt[kt-1]};break;case 19:this.$={type:"activeEnd",signalType:St.LINETYPE.ACTIVE_END,actor:mt[kt-1]};break;case 25:St.setTitle(mt[kt].substring(6)),this.$=mt[kt].substring(6);break;case 26:St.setTitle(mt[kt].substring(7)),this.$=mt[kt].substring(7);break;case 27:St.setAccDescription(mt[kt].substring(15)),this.$=mt[kt].substring(15);break;case 28:mt[kt-1].unshift({type:"loopStart",loopText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.LOOP_START}),mt[kt-1].push({type:"loopEnd",loopText:mt[kt-2],signalType:St.LINETYPE.LOOP_END}),this.$=mt[kt-1];break;case 29:mt[kt-1].unshift({type:"rectStart",color:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.RECT_START}),mt[kt-1].push({type:"rectEnd",color:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.RECT_END}),this.$=mt[kt-1];break;case 30:mt[kt-1].unshift({type:"optStart",optText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.OPT_START}),mt[kt-1].push({type:"optEnd",optText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.OPT_END}),this.$=mt[kt-1];break;case 31:mt[kt-1].unshift({type:"altStart",altText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.ALT_START}),mt[kt-1].push({type:"altEnd",signalType:St.LINETYPE.ALT_END}),this.$=mt[kt-1];break;case 32:mt[kt-1].unshift({type:"parStart",parText:St.parseMessage(mt[kt-2]),signalType:St.LINETYPE.PAR_START}),mt[kt-1].push({type:"parEnd",signalType:St.LINETYPE.PAR_END}),this.$=mt[kt-1];break;case 35:this.$=mt[kt-3].concat([{type:"and",parText:St.parseMessage(mt[kt-1]),signalType:St.LINETYPE.PAR_AND},mt[kt]]);break;case 37:this.$=mt[kt-3].concat([{type:"else",altText:St.parseMessage(mt[kt-1]),signalType:St.LINETYPE.ALT_ELSE},mt[kt]]);break;case 38:this.$=[mt[kt-1],{type:"addNote",placement:mt[kt-2],actor:mt[kt-1].actor,text:mt[kt]}];break;case 39:mt[kt-2]=[].concat(mt[kt-1],mt[kt-1]).slice(0,2),mt[kt-2][0]=mt[kt-2][0].actor,mt[kt-2][1]=mt[kt-2][1].actor,this.$=[mt[kt-1],{type:"addNote",placement:St.PLACEMENT.OVER,actor:mt[kt-2].slice(0,2),text:mt[kt]}];break;case 40:this.$=[mt[kt-1],{type:"addLinks",actor:mt[kt-1].actor,text:mt[kt]}];break;case 41:this.$=[mt[kt-1],{type:"addALink",actor:mt[kt-1].actor,text:mt[kt]}];break;case 42:this.$=[mt[kt-1],{type:"addProperties",actor:mt[kt-1].actor,text:mt[kt]}];break;case 43:this.$=[mt[kt-1],{type:"addDetails",actor:mt[kt-1].actor,text:mt[kt]}];break;case 46:this.$=[mt[kt-2],mt[kt]];break;case 48:this.$=St.PLACEMENT.LEFTOF;break;case 49:this.$=St.PLACEMENT.RIGHTOF;break;case 50:this.$=[mt[kt-4],mt[kt-1],{type:"addMessage",from:mt[kt-4].actor,to:mt[kt-1].actor,signalType:mt[kt-3],msg:mt[kt]},{type:"activeStart",signalType:St.LINETYPE.ACTIVE_START,actor:mt[kt-1]}];break;case 51:this.$=[mt[kt-4],mt[kt-1],{type:"addMessage",from:mt[kt-4].actor,to:mt[kt-1].actor,signalType:mt[kt-3],msg:mt[kt]},{type:"activeEnd",signalType:St.LINETYPE.ACTIVE_END,actor:mt[kt-4]}];break;case 52:this.$=[mt[kt-3],mt[kt-1],{type:"addMessage",from:mt[kt-3].actor,to:mt[kt-1].actor,signalType:mt[kt-2],msg:mt[kt]}];break;case 53:this.$={type:"addParticipant",actor:mt[kt]};break;case 54:this.$=St.LINETYPE.SOLID_OPEN;break;case 55:this.$=St.LINETYPE.DOTTED_OPEN;break;case 56:this.$=St.LINETYPE.SOLID;break;case 57:this.$=St.LINETYPE.DOTTED;break;case 58:this.$=St.LINETYPE.SOLID_CROSS;break;case 59:this.$=St.LINETYPE.DOTTED_CROSS;break;case 60:this.$=St.LINETYPE.SOLID_POINT;break;case 61:this.$=St.LINETYPE.DOTTED_POINT;break;case 62:this.$=St.parseMessage(mt[kt].trim().substring(1));break;case 63:St.parseDirective("%%{","open_directive");break;case 64:St.parseDirective(mt[kt],"type_directive");break;case 65:mt[kt]=mt[kt].trim().replace(/'/g,'"'),St.parseDirective(mt[kt],"arg_directive");break;case 66:St.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:x,5:g,6:4,7:k,11:6,69:E},{1:[3]},{3:8,4:x,5:g,6:4,7:k,11:6,69:E},{3:9,4:x,5:g,6:4,7:k,11:6,69:E},{3:10,4:x,5:g,6:4,7:k,11:6,69:E},h([1,4,5,16,20,22,23,24,30,31,32,33,35,36,37,39,43,48,49,50,51,59,69],A,{8:11}),{12:12,70:[1,13]},{70:[2,63]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{13:45,14:[1,46],72:Ut},h([14,72],[2,64]),h(G,[2,6]),{6:37,10:48,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},h(G,[2,8]),h(G,[2,9]),{17:49,59:q},{17:50,59:q},{5:[1,51]},h(G,[2,17]),{17:52,59:q},{17:53,59:q},{5:[1,54]},{5:[1,55]},{5:[1,56]},{5:[1,57]},{5:[1,58]},h(G,[2,25]),h(G,[2,26]),h(G,[2,27]),{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},h(G,[2,33]),{56:64,60:[1,65],61:[1,66],62:[1,67],63:[1,68],64:[1,69],65:[1,70],66:[1,71],67:[1,72]},{44:73,46:[1,74],54:[1,75],55:[1,76]},{17:77,59:q},{17:78,59:q},{17:79,59:q},{17:80,59:q},h([5,18,53,60,61,62,63,64,65,66,67,68],[2,53]),{5:[1,81]},{15:82,71:[1,83]},{5:[2,66]},h(G,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},h(G,[2,16]),{5:[1,88]},{5:[1,89]},h(G,[2,20]),h(G,[2,21]),h(G,[2,22]),h(G,[2,23]),h(G,[2,24]),h(me,A,{8:90}),h(me,A,{8:91}),h(me,A,{8:92}),h(ve,A,{38:93,8:94}),h(jt,A,{40:95,8:96}),{17:99,57:[1,97],58:[1,98],59:q},h(ie,[2,54]),h(ie,[2,55]),h(ie,[2,56]),h(ie,[2,57]),h(ie,[2,58]),h(ie,[2,59]),h(ie,[2,60]),h(ie,[2,61]),{17:100,59:q},{17:102,47:101,59:q},{59:[2,48]},{59:[2,49]},{45:103,68:he},{45:105,68:he},{45:106,68:he},{45:107,68:he},h(pe,[2,10]),{13:108,72:Ut},{72:[2,65]},{19:[1,109]},h(G,[2,13]),{19:[1,110]},h(G,[2,15]),h(G,[2,18]),h(G,[2,19]),{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,111],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,112],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[1,113],35:Tt,36:ne,37:bt,39:at,43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{34:[1,114]},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[2,36],35:Tt,36:ne,37:bt,39:at,42:[1,115],43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{34:[1,116]},{4:I,5:O,6:37,9:14,10:16,11:6,16:Y,17:38,20:H,21:20,22:X,23:Z,24:et,25:24,26:25,27:26,28:27,29:28,30:Q,31:gt,32:ht,33:xt,34:[2,34],35:Tt,36:ne,37:bt,39:at,41:[1,117],43:nt,48:Dt,49:Lt,50:tt,51:lt,59:q,69:E},{17:118,59:q},{17:119,59:q},{45:120,68:he},{45:121,68:he},{45:122,68:he},{53:[1,123],68:[2,47]},{5:[2,40]},{5:[2,62]},{5:[2,41]},{5:[2,42]},{5:[2,43]},{5:[1,124]},{5:[1,125]},{5:[1,126]},h(G,[2,28]),h(G,[2,29]),h(G,[2,30]),h(G,[2,31]),{19:[1,127]},h(G,[2,32]),{19:[1,128]},{45:129,68:he},{45:130,68:he},{5:[2,52]},{5:[2,38]},{5:[2,39]},{17:131,59:q},h(pe,[2,11]),h(G,[2,12]),h(G,[2,14]),h(ve,A,{8:94,38:132}),h(jt,A,{8:96,40:133}),{5:[2,50]},{5:[2,51]},{68:[2,46]},{34:[2,37]},{34:[2,35]}],defaultActions:{7:[2,63],8:[2,1],9:[2,2],10:[2,3],47:[2,66],75:[2,48],76:[2,49],83:[2,65],103:[2,40],104:[2,62],105:[2,41],106:[2,42],107:[2,43],120:[2,52],121:[2,38],122:[2,39],129:[2,50],130:[2,51],131:[2,46],132:[2,37],133:[2,35]},parseError:function(fe,ae){if(!ae.recoverable){var Zt=new Error(fe);throw Zt.hash=ae,Zt}this.trace(fe)},parse:function(fe){var ae=this,Zt=[0],St=[],Qt=[null],mt=[],Ht=this.table,kt="",It=0,se=0,Se=0,be=2,Ae=1,cn=mt.slice.call(arguments,1),De=Object.create(this.lexer),Be={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Be.yy[Le]=this.yy[Le]);De.setInput(fe,Be.yy),Be.yy.lexer=De,Be.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var Ze=De.yylloc;mt.push(Ze);var Ke=De.options&&De.options.ranges;function Je(){var Ye;return typeof(Ye=St.pop()||De.lex()||Ae)!="number"&&(Ye instanceof Array&&(Ye=(St=Ye).pop()),Ye=ae.symbols_[Ye]||Ye),Ye}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var $e,Ue,Yn,Me,un,gn,kr,kn,sr,rn={};;){if(Yn=Zt[Zt.length-1],this.defaultActions[Yn]?Me=this.defaultActions[Yn]:($e==null&&($e=Je()),Me=Ht[Yn]&&Ht[Yn][$e]),Me===void 0||!Me.length||!Me[0]){var ln="";for(gn in sr=[],Ht[Yn])this.terminals_[gn]&&gn>be&&sr.push("'"+this.terminals_[gn]+"'");ln=De.showPosition?"Parse error on line "+(It+1)+`:
|
|
`+De.showPosition()+`
|
|
Expecting `+sr.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":"Parse error on line "+(It+1)+": Unexpected "+($e==Ae?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(ln,{text:De.match,token:this.terminals_[$e]||$e,line:De.yylineno,loc:Ze,expected:sr})}if(Me[0]instanceof Array&&Me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yn+", token: "+$e);switch(Me[0]){case 1:Zt.push($e),Qt.push(De.yytext),mt.push(De.yylloc),Zt.push(Me[1]),$e=null,Ue?($e=Ue,Ue=null):(se=De.yyleng,kt=De.yytext,It=De.yylineno,Ze=De.yylloc,Se>0);break;case 2:if(kr=this.productions_[Me[1]][1],rn.$=Qt[Qt.length-kr],rn._$={first_line:mt[mt.length-(kr||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(kr||1)].first_column,last_column:mt[mt.length-1].last_column},Ke&&(rn._$.range=[mt[mt.length-(kr||1)].range[0],mt[mt.length-1].range[1]]),(un=this.performAction.apply(rn,[kt,se,It,Be.yy,Me[1],Qt,mt].concat(cn)))!==void 0)return un;kr&&(Zt=Zt.slice(0,-1*kr*2),Qt=Qt.slice(0,-1*kr),mt=mt.slice(0,-1*kr)),Zt.push(this.productions_[Me[1]][0]),Qt.push(rn.$),mt.push(rn._$),kn=Ht[Zt[Zt.length-2]][Zt[Zt.length-1]],Zt.push(kn);break;case 3:return!0}}return!0}},oe={EOF:1,parseError:function(fe,ae){if(!this.yy.parser)throw new Error(fe);this.yy.parser.parseError(fe,ae)},setInput:function(fe,ae){return this.yy=ae||this.yy||{},this._input=fe,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 fe=this._input[0];return this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe,fe.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),fe},unput:function(fe){var ae=fe.length,Zt=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;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),Zt.length-1&&(this.yylineno-=Zt.length-1);var Qt=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:Zt?(Zt.length===St.length?this.yylloc.first_column:0)+St[St.length-Zt.length].length-Zt[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[Qt[0],Qt[0]+this.yyleng-ae]),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(fe){this.unput(this.match.slice(fe))},pastInput:function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fe=this.pastInput(),ae=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+`
|
|
`+ae+"^"},test_match:function(fe,ae){var Zt,St,Qt;if(this.options.backtrack_lexer&&(Qt={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&&(Qt.yylloc.range=this.yylloc.range.slice(0))),(St=fe[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+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],Zt=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Zt)return Zt;if(this._backtrack){for(var mt in Qt)this[mt]=Qt[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var fe,ae,Zt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Qt=this._currentRules(),mt=0;mt<Qt.length;mt++)if((Zt=this._input.match(this.rules[Qt[mt]]))&&(!ae||Zt[0].length>ae[0].length)){if(ae=Zt,St=mt,this.options.backtrack_lexer){if((fe=this.test_match(Zt,Qt[mt]))!==!1)return fe;if(this._backtrack){ae=!1;continue}return!1}if(!this.options.flex)break}return ae?(fe=this.test_match(ae,Qt[St]))!==!1&&fe: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(fe){this.conditionStack.push(fe)},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(fe){return(fe=this.conditionStack.length-1-Math.abs(fe||0))>=0?this.conditionStack[fe]:"INITIAL"},pushState:function(fe){this.begin(fe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(fe,ae,Zt,St){switch(Zt){case 0:return this.begin("open_directive"),69;case 1:return this.begin("type_directive"),70;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),72;case 4:return 71;case 5:case 41:case 54: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 ae.yytext=ae.yytext.trim(),this.begin("ALIAS"),59;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"),33;case 17:return this.begin("LINE"),35;case 18:return this.begin("LINE"),36;case 19:return this.begin("LINE"),37;case 20:return this.begin("LINE"),42;case 21:return this.begin("LINE"),39;case 22:return this.begin("LINE"),41;case 23:return this.popState(),19;case 24:return 34;case 25:return 54;case 26:return 55;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 46;case 32:return 43;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 31;case 37:return 32;case 38:return 7;case 39:return 22;case 40:return 53;case 42:return ae.yytext=ae.yytext.trim(),59;case 43:return 62;case 44:return 63;case 45:return 60;case 46:return 61;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 67;case 51:return 68;case 52:return 57;case 53:return 58;case 55: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\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/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,54,55],inclusive:!0}}};function wn(){this.yy={}}return le.lexer=oe,wn.prototype=le,le.Parser=wn,new wn}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(1993).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},3584:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(jt,ie,he,pe){for(he=he||{},pe=jt.length;pe--;he[jt[pe]]=ie);return he},x=[1,2],g=[1,3],k=[1,5],E=[1,7],A=[2,5],I=[1,15],O=[1,17],Y=[1,19],H=[1,20],X=[1,21],Z=[1,22],et=[1,30],Q=[1,23],gt=[1,24],ht=[1,25],xt=[1,26],Tt=[1,27],ne=[1,32],bt=[1,33],at=[1,34],nt=[1,35],Dt=[1,31],Lt=[1,38],tt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],lt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],q=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Ut=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],G={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(jt,ie,he,pe,le,oe,wn){var fe=oe.length-1;switch(le){case 4:return pe.setRootDoc(oe[fe]),oe[fe];case 5:this.$=[];break;case 6:oe[fe]!="nl"&&(oe[fe-1].push(oe[fe]),this.$=oe[fe-1]);break;case 7:case 8:case 36:case 37:this.$=oe[fe];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:oe[fe],type:"default",description:""};break;case 11:this.$={stmt:"state",id:oe[fe-1],type:"default",description:pe.trimColon(oe[fe])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:oe[fe-2],type:"default",description:""},state2:{stmt:"state",id:oe[fe],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:oe[fe-3],type:"default",description:""},state2:{stmt:"state",id:oe[fe-1],type:"default",description:""},description:oe[fe].substr(1).trim()};break;case 17:this.$={stmt:"state",id:oe[fe-3],type:"default",description:"",doc:oe[fe-1]};break;case 18:var ae=oe[fe],Zt=oe[fe-2].trim();if(oe[fe].match(":")){var St=oe[fe].split(":");ae=St[0],Zt=[Zt,St[1]]}this.$={stmt:"state",id:ae,type:"default",description:Zt};break;case 19:this.$={stmt:"state",id:oe[fe-3],type:"default",description:oe[fe-5],doc:oe[fe-1]};break;case 20:this.$={stmt:"state",id:oe[fe],type:"fork"};break;case 21:this.$={stmt:"state",id:oe[fe],type:"join"};break;case 22:this.$={stmt:"state",id:oe[fe],type:"choice"};break;case 23:this.$={stmt:"state",id:pe.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:oe[fe-1].trim(),note:{position:oe[fe-2].trim(),text:oe[fe].trim()}};break;case 30:pe.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:pe.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:pe.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:pe.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:pe.parseDirective("%%{","open_directive");break;case 41:pe.parseDirective(oe[fe],"type_directive");break;case 42:oe[fe]=oe[fe].trim().replace(/'/g,'"'),pe.parseDirective(oe[fe],"arg_directive");break;case 43:pe.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:x,5:g,6:4,7:k,31:6,45:E},{1:[3]},{3:8,4:x,5:g,6:4,7:k,31:6,45:E},{3:9,4:x,5:g,6:4,7:k,31:6,45:E},{3:10,4:x,5:g,6:4,7:k,31:6,45:E},h([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:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},{33:36,34:[1,37],48:Lt},h([34,48],[2,41]),h(tt,[2,6]),{6:28,10:39,11:18,14:Y,15:H,17:X,20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[2,8]),h(tt,[2,9]),h(tt,[2,10],{12:[1,40],13:[1,41]}),h(tt,[2,14]),{16:[1,42]},h(tt,[2,16],{18:[1,43]}),{21:[1,44]},h(tt,[2,20]),h(tt,[2,21]),h(tt,[2,22]),h(tt,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},h(tt,[2,26]),h(tt,[2,27]),h(lt,[2,36]),h(lt,[2,37]),h(tt,[2,30]),h(tt,[2,31]),h(tt,[2,32]),h(tt,[2,33]),h(q,[2,28]),{35:49,47:[1,50]},h(q,[2,43]),h(tt,[2,7]),h(tt,[2,11]),{11:51,22:et,42:Dt},h(tt,[2,15]),h(Ut,A,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:Lt},{48:[2,42]},h(tt,[2,12],{12:[1,57]}),{4:I,5:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,19:[1,58],20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},h(q,[2,29]),h(tt,[2,13]),h(tt,[2,17]),h(Ut,A,{8:62}),h(tt,[2,24]),h(tt,[2,25]),{4:I,5:O,6:28,9:14,10:16,11:18,14:Y,15:H,17:X,19:[1,63],20:Z,22:et,23:Q,24:gt,25:ht,26:xt,27:Tt,30:29,31:6,36:ne,37:bt,38:at,39:nt,42:Dt,45:E},h(tt,[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(jt,ie){if(!ie.recoverable){var he=new Error(jt);throw he.hash=ie,he}this.trace(jt)},parse:function(jt){var ie=this,he=[0],pe=[],le=[null],oe=[],wn=this.table,fe="",ae=0,Zt=0,St=0,Qt=2,mt=1,Ht=oe.slice.call(arguments,1),kt=Object.create(this.lexer),It={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(It.yy[se]=this.yy[se]);kt.setInput(jt,It.yy),It.yy.lexer=kt,It.yy.parser=this,kt.yylloc===void 0&&(kt.yylloc={});var Se=kt.yylloc;oe.push(Se);var be=kt.options&&kt.options.ranges;function Ae(){var un;return typeof(un=pe.pop()||kt.lex()||mt)!="number"&&(un instanceof Array&&(un=(pe=un).pop()),un=ie.symbols_[un]||un),un}typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var cn,De,Be,Le,Ze,Ke,Je,$e,Ue,Yn={};;){if(Be=he[he.length-1],this.defaultActions[Be]?Le=this.defaultActions[Be]:(cn==null&&(cn=Ae()),Le=wn[Be]&&wn[Be][cn]),Le===void 0||!Le.length||!Le[0]){var Me="";for(Ke in Ue=[],wn[Be])this.terminals_[Ke]&&Ke>Qt&&Ue.push("'"+this.terminals_[Ke]+"'");Me=kt.showPosition?"Parse error on line "+(ae+1)+`:
|
|
`+kt.showPosition()+`
|
|
Expecting `+Ue.join(", ")+", got '"+(this.terminals_[cn]||cn)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(cn==mt?"end of input":"'"+(this.terminals_[cn]||cn)+"'"),this.parseError(Me,{text:kt.match,token:this.terminals_[cn]||cn,line:kt.yylineno,loc:Se,expected:Ue})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+cn);switch(Le[0]){case 1:he.push(cn),le.push(kt.yytext),oe.push(kt.yylloc),he.push(Le[1]),cn=null,De?(cn=De,De=null):(Zt=kt.yyleng,fe=kt.yytext,ae=kt.yylineno,Se=kt.yylloc,St>0);break;case 2:if(Je=this.productions_[Le[1]][1],Yn.$=le[le.length-Je],Yn._$={first_line:oe[oe.length-(Je||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(Je||1)].first_column,last_column:oe[oe.length-1].last_column},be&&(Yn._$.range=[oe[oe.length-(Je||1)].range[0],oe[oe.length-1].range[1]]),(Ze=this.performAction.apply(Yn,[fe,Zt,ae,It.yy,Le[1],le,oe].concat(Ht)))!==void 0)return Ze;Je&&(he=he.slice(0,-1*Je*2),le=le.slice(0,-1*Je),oe=oe.slice(0,-1*Je)),he.push(this.productions_[Le[1]][0]),le.push(Yn.$),oe.push(Yn._$),$e=wn[he[he.length-2]][he[he.length-1]],he.push($e);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(jt,ie){if(!this.yy.parser)throw new Error(jt);this.yy.parser.parseError(jt,ie)},setInput:function(jt,ie){return this.yy=ie||this.yy||{},this._input=jt,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 jt=this._input[0];return this.yytext+=jt,this.yyleng++,this.offset++,this.match+=jt,this.matched+=jt,jt.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),jt},unput:function(jt){var ie=jt.length,he=jt.split(/(?:\r\n?|\n)/g);this._input=jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ie),this.offset-=ie;var pe=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 le=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===pe.length?this.yylloc.first_column:0)+pe[pe.length-he.length].length-he[0].length:this.yylloc.first_column-ie},this.options.ranges&&(this.yylloc.range=[le[0],le[0]+this.yyleng-ie]),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(jt){this.unput(this.match.slice(jt))},pastInput:function(){var jt=this.matched.substr(0,this.matched.length-this.match.length);return(jt.length>20?"...":"")+jt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var jt=this.match;return jt.length<20&&(jt+=this._input.substr(0,20-jt.length)),(jt.substr(0,20)+(jt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var jt=this.pastInput(),ie=new Array(jt.length+1).join("-");return jt+this.upcomingInput()+`
|
|
`+ie+"^"},test_match:function(jt,ie){var he,pe,le;if(this.options.backtrack_lexer&&(le={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&&(le.yylloc.range=this.yylloc.range.slice(0))),(pe=jt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pe?pe[pe.length-1].length-pe[pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+jt[0].length},this.yytext+=jt[0],this.match+=jt[0],this.matches=jt,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(jt[0].length),this.matched+=jt[0],he=this.performAction.call(this,this.yy,this,ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var oe in le)this[oe]=le[oe];return!1}return!1},next:function(){if(this.done)return this.EOF;var jt,ie,he,pe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var le=this._currentRules(),oe=0;oe<le.length;oe++)if((he=this._input.match(this.rules[le[oe]]))&&(!ie||he[0].length>ie[0].length)){if(ie=he,pe=oe,this.options.backtrack_lexer){if((jt=this.test_match(he,le[oe]))!==!1)return jt;if(this._backtrack){ie=!1;continue}return!1}if(!this.options.flex)break}return ie?(jt=this.test_match(ie,le[pe]))!==!1&&jt: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(jt){this.conditionStack.push(jt)},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(jt){return(jt=this.conditionStack.length-1-Math.abs(jt||0))>=0?this.conditionStack[jt]:"INITIAL"},pushState:function(jt){this.begin(jt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(jt,ie,he,pe){switch(he){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(),ie.yytext=ie.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),ie.yytext=ie.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),ie.yytext=ie.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(),ie.yytext=ie.yytext.substr(2).trim(),29;case 50:return this.popState(),ie.yytext=ie.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 ie.yytext=ie.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 ve(){this.yy={}}return G.lexer=me,ve.prototype=G,G.Parser=ve,new ve}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(3069).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},9763:(S,M,f)=>{S=f.nmd(S);var m=function(){var h=function(et,Q,gt,ht){for(gt=gt||{},ht=et.length;ht--;gt[et[ht]]=Q);return gt},x=[1,2],g=[1,5],k=[6,9,11,17,18,19,21],E=[1,15],A=[1,16],I=[1,17],O=[1,21],Y=[4,6,9,11,17,18,19,21],H={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(et,Q,gt,ht,xt,Tt,ne){var bt=Tt.length-1;switch(xt){case 1:return Tt[bt-1];case 3:case 7:case 8:this.$=[];break;case 4:Tt[bt-1].push(Tt[bt]),this.$=Tt[bt-1];break;case 5:case 6:this.$=Tt[bt];break;case 11:ht.setTitle(Tt[bt].substr(6)),this.$=Tt[bt].substr(6);break;case 12:ht.addSection(Tt[bt].substr(8)),this.$=Tt[bt].substr(8);break;case 13:ht.addTask(Tt[bt-1],Tt[bt]),this.$="task";break;case 15:ht.parseDirective("%%{","open_directive");break;case 16:ht.parseDirective(Tt[bt],"type_directive");break;case 17:Tt[bt]=Tt[bt].trim().replace(/'/g,'"'),ht.parseDirective(Tt[bt],"arg_directive");break;case 18:ht.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:x,7:3,12:4,21:g},{1:[3]},h(k,[2,3],{5:6}),{3:7,4:x,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:E,18:A,19:I,21:g},{1:[2,2]},{14:19,15:[1,20],24:O},h([15,24],[2,16]),h(k,[2,8],{1:[2,1]}),h(k,[2,4]),{7:18,10:22,12:4,17:E,18:A,19:I,21:g},h(k,[2,6]),h(k,[2,7]),h(k,[2,11]),h(k,[2,12]),{20:[1,23]},h(k,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},h(k,[2,5]),h(k,[2,13]),h(Y,[2,9]),{14:27,24:O},{24:[2,17]},{11:[1,28]},h(Y,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(et,Q){if(!Q.recoverable){var gt=new Error(et);throw gt.hash=Q,gt}this.trace(et)},parse:function(et){var Q=this,gt=[0],ht=[],xt=[null],Tt=[],ne=this.table,bt="",at=0,nt=0,Dt=0,Lt=2,tt=1,lt=Tt.slice.call(arguments,1),q=Object.create(this.lexer),Ut={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(Ut.yy[G]=this.yy[G]);q.setInput(et,Ut.yy),Ut.yy.lexer=q,Ut.yy.parser=this,q.yylloc===void 0&&(q.yylloc={});var me=q.yylloc;Tt.push(me);var ve=q.options&&q.options.ranges;function jt(){var mt;return typeof(mt=ht.pop()||q.lex()||tt)!="number"&&(mt instanceof Array&&(mt=(ht=mt).pop()),mt=Q.symbols_[mt]||mt),mt}typeof Ut.yy.parseError=="function"?this.parseError=Ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ie,he,pe,le,oe,wn,fe,ae,Zt,St={};;){if(pe=gt[gt.length-1],this.defaultActions[pe]?le=this.defaultActions[pe]:(ie==null&&(ie=jt()),le=ne[pe]&&ne[pe][ie]),le===void 0||!le.length||!le[0]){var Qt="";for(wn in Zt=[],ne[pe])this.terminals_[wn]&&wn>Lt&&Zt.push("'"+this.terminals_[wn]+"'");Qt=q.showPosition?"Parse error on line "+(at+1)+`:
|
|
`+q.showPosition()+`
|
|
Expecting `+Zt.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":"Parse error on line "+(at+1)+": Unexpected "+(ie==tt?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(Qt,{text:q.match,token:this.terminals_[ie]||ie,line:q.yylineno,loc:me,expected:Zt})}if(le[0]instanceof Array&&le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+ie);switch(le[0]){case 1:gt.push(ie),xt.push(q.yytext),Tt.push(q.yylloc),gt.push(le[1]),ie=null,he?(ie=he,he=null):(nt=q.yyleng,bt=q.yytext,at=q.yylineno,me=q.yylloc,Dt>0);break;case 2:if(fe=this.productions_[le[1]][1],St.$=xt[xt.length-fe],St._$={first_line:Tt[Tt.length-(fe||1)].first_line,last_line:Tt[Tt.length-1].last_line,first_column:Tt[Tt.length-(fe||1)].first_column,last_column:Tt[Tt.length-1].last_column},ve&&(St._$.range=[Tt[Tt.length-(fe||1)].range[0],Tt[Tt.length-1].range[1]]),(oe=this.performAction.apply(St,[bt,nt,at,Ut.yy,le[1],xt,Tt].concat(lt)))!==void 0)return oe;fe&&(gt=gt.slice(0,-1*fe*2),xt=xt.slice(0,-1*fe),Tt=Tt.slice(0,-1*fe)),gt.push(this.productions_[le[1]][0]),xt.push(St.$),Tt.push(St._$),ae=ne[gt[gt.length-2]][gt[gt.length-1]],gt.push(ae);break;case 3:return!0}}return!0}},X={EOF:1,parseError:function(et,Q){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,Q)},setInput:function(et,Q){return this.yy=Q||this.yy||{},this._input=et,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 et=this._input[0];return this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et,et.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),et},unput:function(et){var Q=et.length,gt=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gt.length-1&&(this.yylineno-=gt.length-1);var 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:gt?(gt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-gt.length].length-gt[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[xt[0],xt[0]+this.yyleng-Q]),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(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),Q=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
|
|
`+Q+"^"},test_match:function(et,Q){var gt,ht,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))),(ht=et[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,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(et[0].length),this.matched+=et[0],gt=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var Tt in xt)this[Tt]=xt[Tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,Q,gt,ht;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var xt=this._currentRules(),Tt=0;Tt<xt.length;Tt++)if((gt=this._input.match(this.rules[xt[Tt]]))&&(!Q||gt[0].length>Q[0].length)){if(Q=gt,ht=Tt,this.options.backtrack_lexer){if((et=this.test_match(gt,xt[Tt]))!==!1)return et;if(this._backtrack){Q=!1;continue}return!1}if(!this.options.flex)break}return Q?(et=this.test_match(Q,xt[ht]))!==!1&&et: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(et){this.conditionStack.push(et)},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(et){return(et=this.conditionStack.length-1-Math.abs(et||0))>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,Q,gt,ht){switch(gt){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 Z(){this.yy={}}return H.lexer=X,Z.prototype=H,H.Parser=Z,new Z}();M.parser=m,M.Parser=m.Parser,M.parse=function(){return m.parse.apply(m,arguments)},M.main=function(h){h[1]||(console.log("Usage: "+h[0]+" FILE"),process.exit(1));var x=f(9143).readFileSync(f(6470).normalize(h[1]),"utf8");return M.parser.parse(x)},f.c[f.s]===S&&M.main(process.argv.slice(1))},7967:(S,M)=>{M.N=void 0;var f=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,h=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,x=/^([^:]+):/gm,g=[".","/"];M.N=function(k){var E,A=(E=k||"",E.replace(m,function(Y,H){return String.fromCharCode(H)})).replace(h,"").trim();if(!A)return"about:blank";if(function(Y){return g.indexOf(Y[0])>-1}(A))return A;var I=A.match(x);if(!I)return A;var O=I[0];return f.test(O)?"about:blank":A}},3841:S=>{S.exports=function(M,f){return M.intersect(f)}},3850:(S,M,f)=>{f.d(M,{Z:()=>w_});var m=f(1941),h=f.n(m),x={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(),x[t]!==void 0&&(t=x[t])),g.trace=function(){},g.debug=function(){},g.info=function(){},g.warn=function(){},g.error=function(){},g.fatal=function(){},t<=x.fatal&&(g.fatal=console.error?console.error.bind(console,E("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",E("FATAL"))),t<=x.error&&(g.error=console.error?console.error.bind(console,E("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",E("ERROR"))),t<=x.warn&&(g.warn=console.warn?console.warn.bind(console,E("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",E("WARN"))),t<=x.info&&(g.info=console.info?console.info.bind(console,E("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",E("INFO"))),t<=x.debug&&(g.debug=console.debug?console.debug.bind(console,E("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",E("DEBUG")))},E=function(t){var e=h()().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 O(t){return t}var Y=1e-6;function H(t){return"translate("+t+",0)"}function X(t){return"translate(0,"+t+")"}function Z(t){return e=>+t(e)}function et(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Q(){return!this.__axis}function gt(t,e){var r=[],a=null,c=null,u=6,d=6,y=3,w=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,_=t===1||t===4?-1:1,D=t===4||t===2?"x":"y",j=t===1||t===3?H:X;function P($){var ct=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,rt=c==null?e.tickFormat?e.tickFormat.apply(e,r):O:c,vt=Math.max(u,0)+y,ft=e.range(),Et=+ft[0]+w,Nt=+ft[ft.length-1]+w,Rt=(e.bandwidth?et:Z)(e.copy(),w),$t=$.selection?$.selection():$,Mt=$t.selectAll(".domain").data([null]),Kt=$t.selectAll(".tick").data(ct,e).order(),Jt=Kt.exit(),At=Kt.enter().append("g").attr("class","tick"),Bt=Kt.select("line"),wt=Kt.select("text");Mt=Mt.merge(Mt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Kt=Kt.merge(At),Bt=Bt.merge(At.append("line").attr("stroke","currentColor").attr(D+"2",_*u)),wt=wt.merge(At.append("text").attr("fill","currentColor").attr(D,_*vt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),$!==$t&&(Mt=Mt.transition($),Kt=Kt.transition($),Bt=Bt.transition($),wt=wt.transition($),Jt=Jt.transition($).attr("opacity",Y).attr("transform",function(_t){return isFinite(_t=Rt(_t))?j(_t+w):this.getAttribute("transform")}),At.attr("opacity",Y).attr("transform",function(_t){var Ft=this.parentNode.__axis;return j((Ft&&isFinite(Ft=Ft(_t))?Ft:Rt(_t))+w)})),Jt.remove(),Mt.attr("d",t===4||t===2?d?"M"+_*d+","+Et+"H"+w+"V"+Nt+"H"+_*d:"M"+w+","+Et+"V"+Nt:d?"M"+Et+","+_*d+"V"+w+"H"+Nt+"V"+_*d:"M"+Et+","+w+"H"+Nt),Kt.attr("opacity",1).attr("transform",function(_t){return j(Rt(_t)+w)}),Bt.attr(D+"2",_*u),wt.attr(D,_*vt).text(rt),$t.filter(Q).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),$t.each(function(){this.__axis=Rt})}return P.scale=function($){return arguments.length?(e=$,P):e},P.ticks=function(){return r=Array.from(arguments),P},P.tickArguments=function($){return arguments.length?(r=$==null?[]:Array.from($),P):r.slice()},P.tickValues=function($){return arguments.length?(a=$==null?null:Array.from($),P):a&&a.slice()},P.tickFormat=function($){return arguments.length?(c=$,P):c},P.tickSize=function($){return arguments.length?(u=d=+$,P):u},P.tickSizeInner=function($){return arguments.length?(u=+$,P):u},P.tickSizeOuter=function($){return arguments.length?(d=+$,P):d},P.tickPadding=function($){return arguments.length?(y=+$,P):y},P.offset=function($){return arguments.length?(w=+$,P):w},P}function ht(){}function xt(t){return t==null?ht:function(){return this.querySelector(t)}}function Tt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ne(){return[]}function bt(t){return t==null?ne:function(){return this.querySelectorAll(t)}}function at(t){return function(){return this.matches(t)}}function nt(t){return function(e){return e.matches(t)}}var Dt=Array.prototype.find;function Lt(){return this.firstElementChild}var tt=Array.prototype.filter;function lt(){return Array.from(this.children)}function q(t){return new Array(t.length)}function Ut(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function G(t){return function(){return t}}function me(t,e,r,a,c,u){for(var d,y=0,w=e.length,_=u.length;y<_;++y)(d=e[y])?(d.__data__=u[y],a[y]=d):r[y]=new Ut(t,u[y]);for(;y<w;++y)(d=e[y])&&(c[y]=d)}function ve(t,e,r,a,c,u,d){var y,w,_,D=new Map,j=e.length,P=u.length,$=new Array(j);for(y=0;y<j;++y)(w=e[y])&&($[y]=_=d.call(w,w.__data__,y,e)+"",D.has(_)?c[y]=w:D.set(_,w));for(y=0;y<P;++y)_=d.call(t,u[y],y,u)+"",(w=D.get(_))?(a[y]=w,w.__data__=u[y],D.delete(_)):r[y]=new Ut(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get($[y])===w&&(c[y]=w)}function jt(t){return t.__data__}function ie(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function he(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Ut.prototype={constructor:Ut,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 pe="http://www.w3.org/1999/xhtml";const le={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oe(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),le.hasOwnProperty(e)?{space:le[e],local:t}:t}function wn(t){return function(){this.removeAttribute(t)}}function fe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function Zt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function St(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Qt(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 Ht(t){return function(){this.style.removeProperty(t)}}function kt(t,e,r){return function(){this.style.setProperty(t,e,r)}}function It(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function se(t,e){return t.style.getPropertyValue(e)||mt(t).getComputedStyle(t,null).getPropertyValue(e)}function Se(t){return function(){delete this[t]}}function be(t,e){return function(){this[t]=e}}function Ae(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cn(t){return t.trim().split(/^|\s+/)}function De(t){return t.classList||new Be(t)}function Be(t){this._node=t,this._names=cn(t.getAttribute("class")||"")}function Le(t,e){for(var r=De(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function Ze(t,e){for(var r=De(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function Ke(t){return function(){Le(this,t)}}function Je(t){return function(){Ze(this,t)}}function $e(t,e){return function(){(e.apply(this,arguments)?Le:Ze)(this,t)}}function Ue(){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 un(){this.innerHTML=""}function gn(t){return function(){this.innerHTML=t}}function kr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function kn(){this.nextSibling&&this.parentNode.appendChild(this)}function sr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rn(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===pe&&e.documentElement.namespaceURI===pe?e.createElement(t):e.createElementNS(r,t)}}function ln(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ye(t){var e=oe(t);return(e.local?ln:rn)(e)}function mn(){return null}function bn(){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 Ln(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 Sn(t,e,r){return function(){var a,c=this.__on,u=function(w){return function(_){w.call(this,_,this.__data__)}}(e);if(c){for(var d=0,y=c.length;d<y;++d)if((a=c[d]).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 Fn(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 qn(t,e){return function(){return Fn(this,t,e)}}function Vn(t,e){return function(){return Fn(this,t,e.apply(this,arguments))}}Be.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 Xn=[null];function Tn(t,e){this._groups=t,this._parents=e}function In(){return new Tn([[document.documentElement]],Xn)}Tn.prototype=In.prototype={constructor:Tn,select:function(t){typeof t!="function"&&(t=xt(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d,y=e[c],w=y.length,_=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(d=t.call(u,u.__data__,D,y))&&("__data__"in u&&(d.__data__=u.__data__),_[D]=d);return new Tn(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return Tt(D.apply(this,arguments))}}(t):bt(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var d,y=e[u],w=y.length,_=0;_<w;++_)(d=y[_])&&(a.push(t.call(d,d.__data__,_,y)),c.push(d));return new Tn(a,c)},selectChild:function(t){return this.select(t==null?Lt:function(e){return function(){return Dt.call(this.children,e)}}(typeof t=="function"?t:nt(t)))},selectChildren:function(t){return this.selectAll(t==null?lt:function(e){return function(){return tt.call(this.children,e)}}(typeof t=="function"?t:nt(t)))},filter:function(t){typeof t!="function"&&(t=at(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new Tn(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,jt);var r=e?ve:me,a=this._parents,c=this._groups;typeof t!="function"&&(t=G(t));for(var u=c.length,d=new Array(u),y=new Array(u),w=new Array(u),_=0;_<u;++_){var D=a[_],j=c[_],P=j.length,$=ie(t.call(D,D&&D.__data__,_,a)),ct=$.length,rt=y[_]=new Array(ct),vt=d[_]=new Array(ct),ft=w[_]=new Array(P);r(D,j,rt,vt,ft,$,e);for(var Et,Nt,Rt=0,$t=0;Rt<ct;++Rt)if(Et=rt[Rt]){for(Rt>=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t<ct;);Et._next=Nt||null}}return(d=new Tn(d,a))._enter=y,d._exit=w,d},enter:function(){return new Tn(this._enter||this._groups.map(q),this._parents)},exit:function(){return new Tn(this._exit||this._groups.map(q),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,d=Math.min(c,u),y=new Array(c),w=0;w<d;++w)for(var _,D=r[w],j=a[w],P=D.length,$=y[w]=new Array(P),ct=0;ct<P;++ct)(_=D[ct]||j[ct])&&($[ct]=_);for(;w<c;++w)y[w]=r[w];return new Tn(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,d=c[u];--u>=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=he);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var d,y=r[u],w=y.length,_=c[u]=new Array(w),D=0;D<w;++D)(d=y[D])&&(_[D]=d);_.sort(e)}return new Tn(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 d=a[c];if(d)return d}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],d=0,y=u.length;d<y;++d)(c=u[d])&&t.call(c,c.__data__,d,u);return this},attr:function(t,e){var r=oe(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?fe:wn:typeof e=="function"?r.local?Qt:St:r.local?Zt:ae)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?Ht:typeof e=="function"?It:kt)(t,e,r==null?"":r)):se(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Se:typeof e=="function"?Ae:be)(t,e)):this.node()[t]},classed:function(t,e){var r=cn(t+"");if(arguments.length<2){for(var a=De(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?$e:e?Ke:Je)(r,e))},text:function(t){return arguments.length?this.each(t==null?Ue:(typeof t=="function"?Me:Yn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?un:(typeof t=="function"?kr:gn)(t)):this.node().innerHTML},raise:function(){return this.each(kn)},lower:function(){return this.each(sr)},append:function(t){var e=typeof t=="function"?t:Ye(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Ye(t),a=e==null?mn:typeof e=="function"?e:xt(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(bn)},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+""),d=u.length;if(!(arguments.length<2)){for(y=e?Sn:Ln,a=0;a<d;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,_=0,D=y.length;_<D;++_)for(a=0,w=y[_];a<d;++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:qn)(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,d=c.length;u<d;++u)(a=c[u])&&(yield a)}};const An=In;var hn={value:()=>{}};function Hn(){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 ir(a)}function ir(t){this._=t}function ra(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 gr(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function Bn(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=hn,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}ir.prototype=Hn.prototype={constructor:ir,on:function(t,e){var r,a=this._,c=ra(t+"",a),u=-1,d=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<d;)if(r=(t=c[u]).type)a[r]=Bn(a[r],t.name,e);else if(e==null)for(r in a)a[r]=Bn(a[r],t.name,null);return this}for(;++u<d;)if((r=(t=c[u]).type)&&(r=gr(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ir(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 io=Hn;var Ta,Vr,Gr=0,Fr=0,Er=0,Xr=0,Ur=0,qr=0,Dr=typeof performance=="object"&&performance.now?performance:Date,li=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function hi(){return Ur||(li(cr),Ur=Dr.now()+qr)}function cr(){Ur=0}function Hr(){this._call=this._time=this._next=null}function ia(t,e,r){var a=new Hr;return a.restart(t,e,r),a}function Lr(){Ur=(Xr=Dr.now())+qr,Gr=Fr=0;try{(function(){hi(),++Gr;for(var t,e=Ta;e;)(t=Ur-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gr})()}finally{Gr=0,function(){for(var t,e,r=Ta,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:Ta=e);Vr=t,ao(a)}(),Ur=0}}function aa(){var t=Dr.now(),e=t-Xr;e>1e3&&(qr-=e,Xr=t)}function ao(t){Gr||(Fr&&(Fr=clearTimeout(Fr)),t-Ur>24?(t<1/0&&(Fr=setTimeout(Lr,t-Dr.now()-qr)),Er&&(Er=clearInterval(Er))):(Er||(Xr=Dr.now(),Er=setInterval(aa,1e3)),Gr=1,li(Lr)))}function fi(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=ia.prototype={constructor:Hr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?hi():+r)+(e==null?0:+e),this._next||Vr===this||(Vr?Vr._next=this:Ta=this,Vr=this),this._call=t,this._time=r,ao()},stop:function(){this._call&&(this._call=null,this._time=1/0,ao())}};var an=io("start","end","cancel","interrupt"),Jn=[];function Cn(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return fi(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt<w&&(Nt.state=6,Nt.timer.stop(),Nt.on.call("cancel",y,y.__data__,Nt.index,Nt.group),delete j[vt])}if(fi(function(){_.state===3&&(_.state=4,_.timer.restart($,_.delay,_.time),$(rt))}),_.state=2,_.on.call("start",y,y.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(Et=_.tween.length),vt=0,ft=-1;vt<Et;++vt)(Nt=_.tween[vt].value.call(y,y.__data__,_.index,_.group))&&(D[++ft]=Nt);D.length=ft+1}}function $(rt){for(var vt=rt<_.duration?_.ease.call(null,rt/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,Et=D.length;++ft<Et;)D[ft].call(y,vt);_.state===5&&(_.on.call("end",y,y.__data__,_.index,_.group),ct())}function ct(){for(var rt in _.state=6,_.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=_,_.timer=ia(function(rt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=rt&&P(rt-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:an,tween:Jn,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function ze(t,e){var r=pt(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function $n(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 ii(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Xt,ki=180/Math.PI,go={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ca(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(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,d=-d),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*ki,skewX:Math.atan(w)*ki,scaleX:d,scaleY:y}}function Ui(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,d){var y=[],w=[];return u=t(u),d=t(d),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push("translate(",null,e,null,r);ct.push({i:rt-4,x:ii(_,j)},{i:rt-2,x:ii(D,P)})}else(j||P)&&$.push("translate("+j+e+P+r)}(u.translateX,u.translateY,d.translateX,d.translateY,y,w),function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:ii(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:ii(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:ii(_,j)},{i:rt-2,x:ii(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(_);return y.join("")}}}var Yo=Ui(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?go:Ca(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),zo=Ui(function(t){return t==null?go:(Xt||(Xt=document.createElementNS("http://www.w3.org/2000/svg","g")),Xt.setAttribute("transform",t),(t=Xt.transform.baseVal.consolidate())?Ca((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):go)},", ",")",")");function Pr(t,e){var r,a;return function(){var c=$n(this,t),u=c.tween;if(u!==r){for(var d=0,y=(a=r=u).length;d<y;++d)if(a[d].name===e){(a=a.slice()).splice(d,1);break}}c.tween=a}}function qi(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=$n(this,t),d=u.tween;if(d!==a){c=(a=d).slice();for(var y={name:e,value:r},w=0,_=c.length;w<_;++w)if(c[w].name===e){c[w]=y;break}w===_&&c.push(y)}u.tween=c}}function Dn(t,e,r){var a=t._id;return t.each(function(){var c=$n(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return pt(c,a).value[e]}}function oa(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function sa(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function $r(){}var ar=.7,di=1/ar,Zr="\\s*([+-]?\\d+)\\s*",Br="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Li=/^#([0-9a-f]{3,8})$/,mr=new RegExp("^rgb\\("+[Zr,Zr,Zr]+"\\)$"),Hi=new RegExp("^rgb\\("+[Kr,Kr,Kr]+"\\)$"),Bi=new RegExp("^rgba\\("+[Zr,Zr,Zr,Br]+"\\)$"),Ti=new RegExp("^rgba\\("+[Kr,Kr,Kr,Br]+"\\)$"),Ya=new RegExp("^hsl\\("+[Br,Kr,Kr]+"\\)$"),Jr=new RegExp("^hsla\\("+[Br,Kr,Kr,Br]+"\\)$"),Yt={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 Ve(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function lr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Li.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Sr(e):r===3?new Wr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ai(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ai(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=mr.exec(t))?new Wr(e[1],e[2],e[3],1):(e=Hi.exec(t))?new Wr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Bi.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=Ti.exec(t))?ai(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ya.exec(t))?oo(e[1],e[2]/100,e[3]/100,1):(e=Jr.exec(t))?oo(e[1],e[2]/100,e[3]/100,e[4]):Yt.hasOwnProperty(t)?Sr(Yt[t]):t==="transparent"?new Wr(NaN,NaN,NaN,0):null}function Sr(t){return new Wr(t>>16&255,t>>8&255,255&t,1)}function ai(t,e,r,a){return a<=0&&(t=e=r=NaN),new Wr(t,e,r,a)}function pi(t){return t instanceof $r||(t=lr(t)),t?new Wr((t=t.rgb()).r,t.g,t.b,t.opacity):new Wr}function Ea(t,e,r,a){return arguments.length===1?pi(t):new Wr(t,e,r,a==null?1:a)}function Wr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Oi(){return"#"+Hs(this.r)+Hs(this.g)+Hs(this.b)}function Sa(){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 Hs(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oo(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ii(t,e,r,a)}function wc(t){if(t instanceof Ii)return new Ii(t.h,t.s,t.l,t.opacity);if(t instanceof $r||(t=lr(t)),!t)return new Ii;if(t instanceof Ii)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),d=NaN,y=u-c,w=(u+c)/2;return y?(d=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,d*=60):y=w>0&&w<1?0:d,new Ii(d,y,w,t.opacity)}function Ii(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Qr(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}oa($r,lr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ve,formatHex:Ve,formatHsl:function(){return wc(this).formatHsl()},formatRgb:qe,toString:qe}),oa(Wr,Ea,sa($r,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Wr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?ar:Math.pow(ar,t),new Wr(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:Oi,formatHex:Oi,formatRgb:Sa,toString:Sa})),oa(Ii,function(t,e,r,a){return arguments.length===1?wc(t):new Ii(t,e,r,a==null?1:a)},sa($r,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Ii(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?ar:Math.pow(ar,t),new Ii(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 Wr(Qr(t>=240?t-240:t+120,c,a),Qr(t,c,a),Qr(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 lu=t=>()=>t;function hu(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):lu(isNaN(t)?e:t)}const fu=function t(e){var r=function(c){return(c=+c)==1?hu:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):lu(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=Ea(c)).r,(u=Ea(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=hu(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);var za=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(za.source,"g");function pu(t,e){var r,a,c,u=za.lastIndex=du.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=za.exec(t))&&(a=du.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:ii(r,a)})),u=du.lastIndex;return u<e.length&&(c=e.slice(u),y[d]?y[d]+=c:y[++d]=c),y.length<2?w[0]?function(_){return function(D){return _(D)+""}}(w[0].x):function(_){return function(){return _}}(e):(e=w.length,function(_){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(_);return y.join("")})}function Ua(t,e){var r;return(typeof e=="number"?ii:e instanceof lr?fu:(r=lr(e))?(e=r,fu):pu)(t,e)}function je(t){return function(){this.removeAttribute(t)}}function jl(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ar(t,e,r){var a,c,u=r+"";return function(){var d=this.getAttribute(t);return d===u?null:d===a?c:c=e(a=d,r)}}function kc(t,e,r){var a,c,u=r+"";return function(){var d=this.getAttributeNS(t.space,t.local);return d===u?null:d===a?c:c=e(a=d,r)}}function Tc(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttribute(t))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttribute(t)}}function gu(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttributeNS(t.space,t.local)}}function Aa(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 $s(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 Yl(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Aa(t,u)),r}return c._value=e,c}function yu(t,e){return function(){ze(this,t).delay=+e.apply(this,arguments)}}function yo(t,e){return e=+e,function(){ze(this,t).delay=e}}function zl(t,e){return function(){$n(this,t).duration=+e.apply(this,arguments)}}function Pf(t,e){return e=+e,function(){$n(this,t).duration=e}}function Nd(t,e){if(typeof e!="function")throw new Error;return function(){$n(this,t).ease=e}}function jf(t,e,r){var a,c,u=function(d){return(d+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?ze:$n;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var Yf=An.prototype.constructor;function ca(t){return function(){this.style.removeProperty(t)}}function zf(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Ul(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&zf(t,d,r)),a}return u._value=e,u}function ql(t){return function(e){this.textContent=t.call(this,e)}}function mo(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&ql(c)),e}return a._value=t,a}var Cc=0;function qa(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Ec(){return++Cc}var ua=An.prototype;qa.prototype={constructor:qa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=xt(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d<c;++d)for(var y,w,_=a[d],D=_.length,j=u[d]=new Array(D),P=0;P<D;++P)(y=_[P])&&(w=t.call(y,y.__data__,P,_))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,Cn(j[P],e,r,P,j,pt(y,r)));return new qa(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=bt(t));for(var a=this._groups,c=a.length,u=[],d=[],y=0;y<c;++y)for(var w,_=a[y],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,$=t.call(w,w.__data__,j,_),ct=pt(w,r),rt=0,vt=$.length;rt<vt;++rt)(P=$[rt])&&Cn(P,e,r,rt,$,ct);u.push($),d.push(w)}return new qa(u,d,e,r)},selectChild:ua.selectChild,selectChildren:ua.selectChildren,filter:function(t){typeof t!="function"&&(t=at(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new qa(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),d=new Array(a),y=0;y<u;++y)for(var w,_=e[y],D=r[y],j=_.length,P=d[y]=new Array(j),$=0;$<j;++$)(w=_[$]||D[$])&&(P[$]=w);for(;y<a;++y)d[y]=e[y];return new qa(d,this._parents,this._name,this._id)},selection:function(){return new Yf(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Ec(),a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)if(d=y[_]){var D=pt(d,e);Cn(d,t,r,_,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new qa(a,this._parents,t,r)},call:ua.call,nodes:ua.nodes,node:ua.node,size:ua.size,empty:ua.empty,each:ua.each,on:function(t,e){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(t):this.each(jf(r,t,e))},attr:function(t,e){var r=oe(t),a=r==="transform"?zo:Ua;return this.attrTween(t,typeof e=="function"?(r.local?gu:Tc)(r,a,Dn(this,"attr."+t,e)):e==null?(r.local?jl:je)(r):(r.local?kc: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=oe(t);return this.tween(r,(a.local?$s:Yl)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Yo:Ua;return e==null?this.styleTween(t,function(c,u){var d,y,w;return function(){var _=se(this,c),D=(this.style.removeProperty(c),se(this,c));return _===D?null:_===d&&D===y?w:w=u(d=_,y=D)}}(t,a)).on("end.style."+t,ca(t)):typeof e=="function"?this.styleTween(t,function(c,u,d){var y,w,_;return function(){var D=se(this,c),j=d(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=se(this,c)),D===P?null:D===y&&P===w?_:(w=P,_=u(y=D,j))}}(t,a,Dn(this,"style."+t,e))).each(function(c,u){var d,y,w,_,D="style."+u,j="end."+D;return function(){var P=$n(this,c),$=P.on,ct=P.value[D]==null?_||(_=ca(u)):void 0;$===d&&w===ct||(y=(d=$).copy()).on(j,w=ct),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,d){var y,w,_=d+"";return function(){var D=se(this,c);return D===_?null:D===y?w:w=u(y=D,d)}}(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,Ul(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}}(Dn(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,mo(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,d=c.length;u<d;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?Pr:qi)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yu:yo)(e,t)):pt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zl:Pf)(e,t)):pt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Nd(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;$n(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,d){var y={value:d},w={value:function(){--c==0&&u()}};r.each(function(){var _=$n(this,a),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),_.on=e}),c===0&&u()})},[Symbol.iterator]:ua[Symbol.iterator]};var ds={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function mu(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}An.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,d=e.__transition,y=!0;if(d){for(u in r=r==null?null:r+"",d)(a=d[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 d[u]):y=!1;y&&delete e.__transition}})(this,t)})},An.prototype.transition=function(t){var e,r;t instanceof qa?(e=t._id,t=t._name):(e=Ec(),(r=ds).time=hi(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)(d=y[_])&&Cn(d,t,e,_,y,r||mu(d,e));return new qa(a,this._parents,t,e)};function vo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ri(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function oi(){}var Ha=.7,Ma=1/Ha,$i="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,W=new RegExp("^rgb\\("+[$i,$i,$i]+"\\)$"),st=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),Vt=new RegExp("^rgba\\("+[$i,$i,$i,Gn]+"\\)$"),ye=new RegExp("^rgba\\("+[C,C,C,Gn]+"\\)$"),Te=new RegExp("^hsl\\("+[Gn,C,C]+"\\)$"),Oe=new RegExp("^hsla\\("+[Gn,C,C,Gn]+"\\)$"),Ie={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 He(){return this.rgb().formatHex()}function Qe(){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?pn(e):r===3?new ur(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?hr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?hr(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=W.exec(t))?new ur(e[1],e[2],e[3],1):(e=st.exec(t))?new ur(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Vt.exec(t))?hr(e[1],e[2],e[3],e[4]):(e=ye.exec(t))?hr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Te.exec(t))?Dd(e[1],e[2]/100,e[3]/100,1):(e=Oe.exec(t))?Dd(e[1],e[2]/100,e[3]/100,e[4]):Ie.hasOwnProperty(t)?pn(Ie[t]):t==="transparent"?new ur(NaN,NaN,NaN,0):null}function pn(t){return new ur(t>>16&255,t>>8&255,255&t,1)}function hr(t,e,r,a){return a<=0&&(t=e=r=NaN),new ur(t,e,r,a)}function fr(t){return t instanceof oi||(t=xn(t)),t?new ur((t=t.rgb()).r,t.g,t.b,t.opacity):new ur}function Mr(t,e,r,a){return arguments.length===1?fr(t):new ur(t,e,r,a==null?1:a)}function ur(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function la(){return"#"+Hl(this.r)+Hl(this.g)+Hl(this.b)}function ps(){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 Hl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Dd(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 $l(t){if(t instanceof bo)return new bo(t.h,t.s,t.l,t.opacity);if(t instanceof oi||(t=xn(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),d=NaN,y=u-c,w=(u+c)/2;return y?(d=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,d*=60):y=w>0&&w<1?0:d,new bo(d,y,w,t.opacity)}function bo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Wl(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}vo(oi,xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:He,formatHex:He,formatHsl:function(){return $l(this).formatHsl()},formatRgb:Qe,toString:Qe}),vo(ur,Mr,Ri(oi,{brighter:function(t){return t=t==null?Ma:Math.pow(Ma,t),new ur(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ha:Math.pow(Ha,t),new ur(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:la,formatHex:la,formatRgb:ps,toString:ps})),vo(bo,function(t,e,r,a){return arguments.length===1?$l(t):new bo(t,e,r,a==null?1:a)},Ri(oi,{brighter:function(t){return t=t==null?Ma:Math.pow(Ma,t),new bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ha:Math.pow(Ha,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 ur(Wl(t>=240?t-240:t+120,c,a),Wl(t,c,a),Wl(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,Ld=.96422,Bd=.82521,ry=4/29,Od=6/29,Uf=3*Od*Od;function Id(t){if(t instanceof Uo)return new Uo(t.l,t.a,t.b,t.opacity);if(t instanceof gs)return iy(t);t instanceof ur||(t=fr(t));var e,r,a=jd(t.r),c=jd(t.g),u=jd(t.b),d=Rd((.2225045*a+.7168786*c+.0606169*u)/1);return a===c&&c===u?e=r=d:(e=Rd((.4360747*a+.3850649*c+.1430804*u)/Ld),r=Rd((.0139322*a+.0971045*c+.7141733*u)/Bd)),new Uo(116*d-16,500*(e-d),200*(d-r),t.opacity)}function Uo(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Rd(t){return t>.008856451679035631?Math.pow(t,1/3):t/Uf+ry}function Fd(t){return t>Od?t*t*t:Uf*(t-ry)}function Pd(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function jd(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vb(t){if(t instanceof gs)return new gs(t.h,t.c,t.l,t.opacity);if(t instanceof Uo||(t=Id(t)),t.a===0&&t.b===0)return new gs(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ny;return new gs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Yd(t,e,r,a){return arguments.length===1?vb(t):new gs(t,e,r,a==null?1:a)}function gs(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 Uo(t.l,0,0,t.opacity);var e=t.h*ey;return new Uo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}vo(Uo,function(t,e,r,a){return arguments.length===1?Id(t):new Uo(t,e,r,a==null?1:a)},Ri(oi,{brighter:function(t){return new Uo(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Uo(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 ur(Pd(3.1338561*(e=Ld*Fd(e))-1.6168667*(t=1*Fd(t))-.4906146*(r=Bd*Fd(r))),Pd(-.9787684*e+1.9161415*t+.033454*r),Pd(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),vo(gs,Yd,Ri(oi,{brighter:function(t){return new gs(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new gs(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return iy(this).rgb()}}));const zd=t=>()=>t;function ay(t,e){return function(r){return t+r*e}}function Vl(t,e){var r=e-t;return r?ay(t,r):zd(isNaN(t)?e:t)}function bb(t){return function(e,r){var a=t((e=Yd(e)).h,(r=Yd(r)).h),c=Vl(e.c,r.c),u=Vl(e.l,r.l),d=Vl(e.opacity,r.opacity);return function(y){return e.h=a(y),e.c=c(y),e.l=u(y),e.opacity=d(y),e+""}}}const _b=bb(function(t,e){var r=e-t;return r?ay(t,r>180||r<-180?r-360*Math.round(r/360):r):zd(isNaN(t)?e:t)});var Ud=Math.sqrt(50),qd=Math.sqrt(10),Hd=Math.sqrt(2);function $d(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>=Ud?10:u>=qd?5:u>=Hd?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=Ud?10:u>=qd?5:u>=Hd?2:1)}function Wd(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>=Ud?c*=10:u>=qd?c*=5:u>=Hd&&(c*=2),e<t?-c:c}function Vd(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gd(t){let e=t,r=t,a=t;function c(u,d,y=0,w=u.length){if(y<w){if(r(d,d)!==0)return w;do{const _=y+w>>>1;a(u[_],d)<0?y=_+1:w=_}while(y<w)}return y}return t.length!==2&&(e=(u,d)=>t(u)-d,r=Vd,a=(u,d)=>Vd(t(u),d)),{left:c,center:function(u,d,y=0,w=u.length){const _=c(u,d,y,w-1);return _>y&&e(u[_-1],d)>-e(u[_],d)?_-1:_},right:function(u,d,y=0,w=u.length){if(y<w){if(r(d,d)!==0)return w;do{const _=y+w>>>1;a(u[_],d)<=0?y=_+1:w=_}while(y<w)}return y}}}const xb=Gd(Vd),wb=xb.right,qo=(Gd(function(t){return t===null?NaN:+t}).center,wb);function qf(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Xd(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function Ho(){}var Hf=.7,$f=1.4285714285714286,Ws="\\s*([+-]?\\d+)\\s*",Sc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kb=/^#([0-9a-f]{3,8})$/,Tb=new RegExp("^rgb\\("+[Ws,Ws,Ws]+"\\)$"),Zd=new RegExp("^rgb\\("+[$o,$o,$o]+"\\)$"),Cb=new RegExp("^rgba\\("+[Ws,Ws,Ws,Sc]+"\\)$"),oy=new RegExp("^rgba\\("+[$o,$o,$o,Sc]+"\\)$"),Qd=new RegExp("^hsl\\("+[Sc,$o,$o]+"\\)$"),sy=new RegExp("^hsla\\("+[Sc,$o,$o,Sc]+"\\)$"),Wf={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 Ac(){return this.rgb().formatHex()}function Mc(){return this.rgb().formatRgb()}function vu(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=kb.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Vf(e):r===3?new $a(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Gf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Gf(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=Tb.exec(t))?new $a(e[1],e[2],e[3],1):(e=Zd.exec(t))?new $a(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Cb.exec(t))?Gf(e[1],e[2],e[3],e[4]):(e=oy.exec(t))?Gf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qd.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]):Wf.hasOwnProperty(t)?Vf(Wf[t]):t==="transparent"?new $a(NaN,NaN,NaN,0):null}function Vf(t){return new $a(t>>16&255,t>>8&255,255&t,1)}function Gf(t,e,r,a){return a<=0&&(t=e=r=NaN),new $a(t,e,r,a)}function Xf(t){return t instanceof Ho||(t=vu(t)),t?new $a((t=t.rgb()).r,t.g,t.b,t.opacity):new $a}function bu(t,e,r,a){return arguments.length===1?Xf(t):new $a(t,e,r,a==null?1:a)}function $a(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Wo(){return"#"+Zf(this.r)+Zf(this.g)+Zf(this.b)}function Kd(){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 Zf(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 Na(t,e,r,a)}function uy(t){if(t instanceof Na)return new Na(t.h,t.s,t.l,t.opacity);if(t instanceof Ho||(t=vu(t)),!t)return new Na;if(t instanceof Na)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),d=NaN,y=u-c,w=(u+c)/2;return y?(d=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,d*=60):y=w>0&&w<1?0:d,new Na(d,y,w,t.opacity)}function Na(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Jd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}qf(Ho,vu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ac,formatHex:Ac,formatHsl:function(){return uy(this).formatHsl()},formatRgb:Mc,toString:Mc}),qf($a,bu,Xd(Ho,{brighter:function(t){return t=t==null?$f:Math.pow($f,t),new $a(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Hf:Math.pow(Hf,t),new $a(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:Wo,formatHex:Wo,formatRgb:Kd,toString:Kd})),qf(Na,function(t,e,r,a){return arguments.length===1?uy(t):new Na(t,e,r,a==null?1:a)},Xd(Ho,{brighter:function(t){return t=t==null?$f:Math.pow($f,t),new Na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Hf:Math.pow(Hf,t),new Na(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 $a(Jd(t>=240?t-240:t+120,c,a),Jd(t,c,a),Jd(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 tp=t=>()=>t;function ly(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):tp(isNaN(t)?e:t)}const Qf=function t(e){var r=function(c){return(c=+c)==1?ly:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):tp(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=bu(c)).r,(u=bu(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=ly(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);function Eb(t,e){var r,a=e?e.length:0,c=t?Math.min(a,t.length):0,u=new Array(c),d=new Array(a);for(r=0;r<c;++r)u[r]=Jf(t[r],e[r]);for(;r<a;++r)d[r]=e[r];return function(y){for(r=0;r<c;++r)d[r]=u[r](y);return d}}function Sb(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function Kf(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ab(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]=Jf(t[r],e[r]):c[r]=e[r];return function(u){for(r in a)c[r]=a[r](u);return c}}var ep=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gl=new RegExp(ep.source,"g");function hy(t,e){var r,a,c,u=ep.lastIndex=Gl.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=ep.exec(t))&&(a=Gl.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Kf(r,a)})),u=Gl.lastIndex;return u<e.length&&(c=e.slice(u),y[d]?y[d]+=c:y[++d]=c),y.length<2?w[0]?function(_){return function(D){return _(D)+""}}(w[0].x):function(_){return function(){return _}}(e):(e=w.length,function(_){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.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 Jf(t,e){var r,a,c=typeof e;return e==null||c==="boolean"?tp(e):(c==="number"?Kf:c==="string"?(r=vu(e))?(e=r,Qf):hy:e instanceof vu?Qf:e instanceof Date?Sb:(a=e,!ArrayBuffer.isView(a)||a instanceof DataView?Array.isArray(e)?Eb:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ab:Kf:fy))(t,e)}function t1(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function dy(t){return+t}var np=[0,1];function _u(t){return t}function rp(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Mb(t,e,r){var a=t[0],c=t[1],u=e[0],d=e[1];return c<a?(a=rp(c,a),u=r(d,u)):(a=rp(a,c),u=r(u,d)),function(y){return u(a(y))}}function ip(t,e,r){var a=Math.min(t.length,e.length)-1,c=new Array(a),u=new Array(a),d=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++d<a;)c[d]=rp(t[d],t[d+1]),u[d]=r(e[d],e[d+1]);return function(y){var w=qo(t,y,1,a)-1;return u[w](c[w](y))}}function e1(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function n1(){return function(){var t,e,r,a,c,u,d=np,y=np,w=Jf,_=_u;function D(){var P,$,ct,rt=Math.min(d.length,y.length);return _!==_u&&(P=d[0],$=d[rt-1],P>$&&(ct=P,P=$,$=ct),_=function(vt){return Math.max(P,Math.min($,vt))}),a=rt>2?ip:Mb,c=u=null,j}function j(P){return P==null||isNaN(P=+P)?r:(c||(c=a(d.map(t),y,w)))(t(_(P)))}return j.invert=function(P){return _(e((u||(u=a(y,d.map(t),Kf)))(P)))},j.domain=function(P){return arguments.length?(d=Array.from(P,dy),D()):d.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=t1,D()},j.clamp=function(P){return arguments.length?(_=!!P||_u,D()):_!==_u},j.interpolate=function(P){return arguments.length?(w=P,D()):w},j.unknown=function(P){return arguments.length?(r=P,j):r},function(P,$){return t=P,e=$,D()}}()(_u,_u)}function ys(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var py,ap=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xl(t){if(!(e=ap.exec(t)))throw new Error("invalid format: "+t);var e;return new ms({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 ms(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 r1(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 xu(t){return(t=r1(Math.abs(t)))?t[1]:NaN}function gy(t,e){var r=r1(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")}Xl.prototype=ms.prototype,ms.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=r1(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,d=a.length;return u===d?a:u>d?a+new Array(u-d+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+r1(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 op,Wa,Zl,sp=Array.prototype.map,vs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Nb(t){var e=t.domain;return t.ticks=function(r){var a=e();return function(c,u,d){var y,w,_,D,j=-1;if(d=+d,(c=+c)==(u=+u)&&d>0)return[c];if((y=u<c)&&(w=c,c=u,u=w),(D=$d(c,u,d))===0||!isFinite(D))return[];if(D>0){let P=Math.round(c/D),$=Math.round(u/D);for(P*D<c&&++P,$*D>u&&--$,_=new Array(w=$-P+1);++j<w;)_[j]=(P+j)*D}else{D=-D;let P=Math.round(c*D),$=Math.round(u*D);for(P/D<c&&++P,$/D>u&&--$,_=new Array(w=$-P+1);++j<w;)_[j]=(P+j)/D}return y&&_.reverse(),_}(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var c=e();return function(u,d,y,w){var _,D=Wd(u,d,y);switch((w=Xl(w==null?",f":w)).type){case"s":var j=Math.max(Math.abs(u),Math.abs(d));return w.precision!=null||isNaN(_=function(P,$){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xu($)/3)))-xu(Math.abs(P)))}(D,j))||(w.precision=_),Zl(w,j);case"":case"e":case"g":case"p":case"r":w.precision!=null||isNaN(_=function(P,$){return P=Math.abs(P),$=Math.abs($)-P,Math.max(0,xu($)-xu(P))+1}(D,Math.max(Math.abs(u),Math.abs(d))))||(w.precision=_-(w.type==="e"));break;case"f":case"%":w.precision!=null||isNaN(_=function(P){return Math.max(0,-xu(Math.abs(P)))}(D))||(w.precision=_-2*(w.type==="%"))}return Wa(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(),d=0,y=u.length-1,w=u[d],_=u[y],D=10;for(_<w&&(c=w,w=_,_=c,c=d,d=y,y=c);D-- >0;){if((c=$d(w,_,r))===a)return u[d]=w,u[y]=_,e(u);if(c>0)w=Math.floor(w/c)*c,_=Math.ceil(_/c)*c;else{if(!(c<0))break;w=Math.ceil(w*c)/c,_=Math.floor(_*c)/c}a=c}return t},t}function vy(){var t=n1();return t.copy=function(){return e1(t,vy())},ys.apply(t,arguments),Nb(t)}op=function(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?my:(e=sp.call(t.grouping,Number),r=t.thousands+"",function(P,$){for(var ct=P.length,rt=[],vt=0,ft=e[0],Et=0;ct>0&&ft>0&&(Et+ft+1>$&&(ft=Math.max(1,$-Et)),rt.push(P.substring(ct-=ft,ct+ft)),!((Et+=ft+1)>$));)ft=e[vt=(vt+1)%e.length];return rt.reverse().join(r)}),c=t.currency===void 0?"":t.currency[0]+"",u=t.currency===void 0?"":t.currency[1]+"",d=t.decimal===void 0?".":t.decimal+"",y=t.numerals===void 0?my:function(P){return function($){return $.replace(/[0-9]/g,function(ct){return P[+ct]})}}(sp.call(t.numerals,String)),w=t.percent===void 0?"%":t.percent+"",_=t.minus===void 0?"\u2212":t.minus+"",D=t.nan===void 0?"NaN":t.nan+"";function j(P){var $=(P=Xl(P)).fill,ct=P.align,rt=P.sign,vt=P.symbol,ft=P.zero,Et=P.width,Nt=P.comma,Rt=P.precision,$t=P.trim,Mt=P.type;Mt==="n"?(Nt=!0,Mt="g"):yy[Mt]||(Rt===void 0&&(Rt=12),$t=!0,Mt="g"),(ft||$==="0"&&ct==="=")&&(ft=!0,$="0",ct="=");var Kt=vt==="$"?c:vt==="#"&&/[boxX]/.test(Mt)?"0"+Mt.toLowerCase():"",Jt=vt==="$"?u:/[%p]/.test(Mt)?w:"",At=yy[Mt],Bt=/[defgprs%]/.test(Mt);function wt(_t){var Ft,yt,we,_e=Kt,zt=Jt;if(Mt==="c")zt=At(_t)+zt,_t="";else{var Ce=(_t=+_t)<0||1/_t<0;if(_t=isNaN(_t)?D:At(Math.abs(_t),Rt),$t&&(_t=function(ge){t:for(var Re,Pe=ge.length,on=1,yn=-1;on<Pe;++on)switch(ge[on]){case".":yn=Re=on;break;case"0":yn===0&&(yn=on),Re=on;break;default:if(!+ge[on])break t;yn>0&&(yn=0)}return yn>0?ge.slice(0,yn)+ge.slice(Re+1):ge}(_t)),Ce&&+_t==0&&rt!=="+"&&(Ce=!1),_e=(Ce?rt==="("?rt:_:rt==="-"||rt==="("?"":rt)+_e,zt=(Mt==="s"?vs[8+py/3]:"")+zt+(Ce&&rt==="("?")":""),Bt){for(Ft=-1,yt=_t.length;++Ft<yt;)if(48>(we=_t.charCodeAt(Ft))||we>57){zt=(we===46?d+_t.slice(Ft+1):_t.slice(Ft))+zt,_t=_t.slice(0,Ft);break}}}Nt&&!ft&&(_t=a(_t,1/0));var Ee=_e.length+_t.length+zt.length,ke=Ee<Et?new Array(Et-Ee+1).join($):"";switch(Nt&&ft&&(_t=a(ke+_t,ke.length?Et-zt.length:1/0),ke=""),ct){case"<":_t=_e+_t+zt+ke;break;case"=":_t=_e+ke+_t+zt;break;case"^":_t=ke.slice(0,Ee=ke.length>>1)+_e+_t+zt+ke.slice(Ee);break;default:_t=ke+_e+_t+zt}return y(_t)}return Rt=Rt===void 0?6:/[gprs]/.test(Mt)?Math.max(1,Math.min(21,Rt)):Math.max(0,Math.min(20,Rt)),wt.toString=function(){return P+""},wt}return{format:j,formatPrefix:function(P,$){var ct=j(((P=Xl(P)).type="f",P)),rt=3*Math.max(-8,Math.min(8,Math.floor(xu($)/3))),vt=Math.pow(10,-rt),ft=vs[8+rt/3];return function(Et){return ct(vt*Et)+ft}}}}({thousands:",",grouping:[3],currency:["$",""]}),Wa=op.format,Zl=op.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(cp(this,e))}has(e){return super.has(cp(this,e))}set(e,r){return super.set(function({_intern:a,_key:c},u){const d=c(u);return a.has(d)?a.get(d):(a.set(d,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 cp({_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 Ql=Symbol("implicit");function Vs(){var t=new by,e=[],r=[],a=Ql;function c(u){let d=t.get(u);if(d===void 0){if(a!==Ql)return a;t.set(u,d=e.push(u)-1)}return r[d%r.length]}return c.domain=function(u){if(!arguments.length)return e.slice();e=[],t=new by;for(const d of u)t.has(d)||t.set(d,e.push(d)-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 Vs(e,r).unknown(a)},ys.apply(c,arguments),c}const wu=1e3,Gs=6e4,Kl=36e5,up=864e5,lp=6048e5,i1=31536e6;var a1=new Date,o1=new Date;function Ci(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 d=c(u),y=c.ceil(u);return u-d<y-u?d:y},c.offset=function(u,d){return e(u=new Date(+u),d==null?1:Math.floor(d)),u},c.range=function(u,d,y){var w,_=[];if(u=c.ceil(u),y=y==null?1:Math.floor(y),!(u<d&&y>0))return _;do _.push(w=new Date(+u)),e(u,y),t(u);while(w<u&&u<d);return _},c.filter=function(u){return Ci(function(d){if(d>=d)for(;t(d),!u(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;e(d,-1),!u(d););else for(;--y>=0;)for(;e(d,1),!u(d););})},r&&(c.count=function(u,d){return a1.setTime(+u),o1.setTime(+d),t(a1),t(o1),Math.floor(r(a1,o1))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(d){return a(d)%u==0}:function(d){return c.count(0,d)%u==0}):c:null}),c}var s1=Ci(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});s1.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ci(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):s1:null};const hp=s1;var xy=Ci(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*wu)},function(t,e){return(e-t)/wu},function(t){return t.getUTCSeconds()});const ku=xy;var Db=Ci(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wu)},function(t,e){t.setTime(+t+e*Gs)},function(t,e){return(e-t)/Gs},function(t){return t.getMinutes()});const Jl=Db;var _o=Ci(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wu-t.getMinutes()*Gs)},function(t,e){t.setTime(+t+e*Kl)},function(t,e){return(e-t)/Kl},function(t){return t.getHours()});const c1=_o;var fp=Ci(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Gs)/up,t=>t.getDate()-1);const Tu=fp;function bs(t){return Ci(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())*Gs)/lp})}var u1=bs(0),dp=bs(1);bs(2),bs(3);var Xs=bs(4);bs(5),bs(6);var Vo=Ci(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 pp=Vo;var gp=Ci(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()});gp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ci(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 _s=gp;Ci(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Gs)},function(t,e){return(e-t)/Gs},function(t){return t.getUTCMinutes()}),Ci(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Kl)},function(t,e){return(e-t)/Kl},function(t){return t.getUTCHours()});var yp=Ci(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/up},function(t){return t.getUTCDate()-1});const th=yp;function xo(t){return Ci(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)/lp})}var wy=xo(0),l1=xo(1);xo(2),xo(3);var Cu=xo(4);xo(5),xo(6),Ci(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=Ci(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?Ci(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 ha=ky;function Nc(t,e,r,a,c,u){const d=[[ku,1,wu],[ku,5,5e3],[ku,15,15e3],[ku,30,3e4],[u,1,Gs],[u,5,3e5],[u,15,9e5],[u,30,18e5],[c,1,Kl],[c,3,108e5],[c,6,216e5],[c,12,432e5],[a,1,up],[a,2,1728e5],[r,1,lp],[e,1,2592e6],[e,3,7776e6],[t,1,i1]];function y(w,_,D){const j=Math.abs(_-w)/D,P=Gd(([,,rt])=>rt).right(d,j);if(P===d.length)return t.every(Wd(w/i1,_/i1,D));if(P===0)return hp.every(Math.max(Wd(w,_,D),1));const[$,ct]=d[j/d[P-1][2]<d[P][2]/j?P-1:P];return $.every(ct)}return[function(w,_,D){const j=_<w;j&&([w,_]=[_,w]);const P=D&&typeof D.range=="function"?D:y(w,_,D),$=P?P.range(w,+_+1):[];return j?$.reverse():$},y]}const[Ty,Lb]=Nc(_s,pp,u1,Tu,c1,Jl);function Go(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 mp(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 eh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var nh,Cy,Xo={"-":"",_:" ",0:"0"},Ei=/^\s*\d+/,vp=/^%/,bp=/[\\^$*+?|[\]().{}]/g;function vr(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 Bb(t){return t.replace(bp,"\\$&")}function rh(t){return new RegExp("^(?:"+t.map(Bb).join("|")+")","i")}function ih(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function h1(t,e,r){var a=Ei.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function _p(t,e,r){var a=Ei.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function Ob(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Ib(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Rb(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Ey(t,e,r){var a=Ei.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Sy(t,e,r){var a=Ei.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 xp(t,e,r){var a=Ei.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=Ei.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function wp(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Da(t,e,r){var a=Ei.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function ah(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Dc(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Ny(t,e,r){var a=Ei.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Fb(t,e,r){var a=Ei.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function Pb(t,e,r){var a=Ei.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function jb(t,e,r){var a=vp.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Yb(t,e,r){var a=Ei.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function zb(t,e,r){var a=Ei.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Dy(t,e){return vr(t.getDate(),e,2)}function Lc(t,e){return vr(t.getHours(),e,2)}function Ly(t,e){return vr(t.getHours()%12||12,e,2)}function Ub(t,e){return vr(1+Tu.count(_s(t),t),e,3)}function By(t,e){return vr(t.getMilliseconds(),e,3)}function qb(t,e){return By(t,e)+"000"}function Hb(t,e){return vr(t.getMonth()+1,e,2)}function $b(t,e){return vr(t.getMinutes(),e,2)}function Wb(t,e){return vr(t.getSeconds(),e,2)}function Vb(t){var e=t.getDay();return e===0?7:e}function Gb(t,e){return vr(u1.count(_s(t)-1,t),e,2)}function Oy(t){var e=t.getDay();return e>=4||e===0?Xs(t):Xs.ceil(t)}function Xb(t,e){return t=Oy(t),vr(Xs.count(_s(t),t)+(_s(t).getDay()===4),e,2)}function Zb(t){return t.getDay()}function Iy(t,e){return vr(dp.count(_s(t)-1,t),e,2)}function Qb(t,e){return vr(t.getFullYear()%100,e,2)}function Kb(t,e){return vr((t=Oy(t)).getFullYear()%100,e,2)}function Ry(t,e){return vr(t.getFullYear()%1e4,e,4)}function Fy(t,e){var r=t.getDay();return vr((t=r>=4||r===0?Xs(t):Xs.ceil(t)).getFullYear()%1e4,e,4)}function Py(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+vr(e/60|0,"0",2)+vr(e%60,"0",2)}function jy(t,e){return vr(t.getUTCDate(),e,2)}function Jb(t,e){return vr(t.getUTCHours(),e,2)}function Yy(t,e){return vr(t.getUTCHours()%12||12,e,2)}function Zs(t,e){return vr(1+th.count(ha(t),t),e,3)}function zy(t,e){return vr(t.getUTCMilliseconds(),e,3)}function t4(t,e){return zy(t,e)+"000"}function Uy(t,e){return vr(t.getUTCMonth()+1,e,2)}function e4(t,e){return vr(t.getUTCMinutes(),e,2)}function n4(t,e){return vr(t.getUTCSeconds(),e,2)}function qy(t){var e=t.getUTCDay();return e===0?7:e}function f1(t,e){return vr(wy.count(ha(t)-1,t),e,2)}function Hy(t){var e=t.getUTCDay();return e>=4||e===0?Cu(t):Cu.ceil(t)}function oh(t,e){return t=Hy(t),vr(Cu.count(ha(t),t)+(ha(t).getUTCDay()===4),e,2)}function r4(t){return t.getUTCDay()}function kp(t,e){return vr(l1.count(ha(t)-1,t),e,2)}function i4(t,e){return vr(t.getUTCFullYear()%100,e,2)}function a4(t,e){return vr((t=Hy(t)).getUTCFullYear()%100,e,2)}function $y(t,e){return vr(t.getUTCFullYear()%1e4,e,4)}function Eu(t,e){var r=t.getUTCDay();return vr((t=r>=4||r===0?Cu(t):Cu.ceil(t)).getUTCFullYear()%1e4,e,4)}function o4(){return"+0000"}function Tp(){return"%"}function Wy(t){return+t}function Vy(t){return Math.floor(+t/1e3)}function s4(t){return new Date(t)}function c4(t){return t instanceof Date?+t:+new Date(+t)}function Gy(t,e,r,a,c,u,d,y,w,_){var D=n1(),j=D.invert,P=D.domain,$=_(".%L"),ct=_(":%S"),rt=_("%I:%M"),vt=_("%I %p"),ft=_("%a %d"),Et=_("%b %d"),Nt=_("%B"),Rt=_("%Y");function $t(Mt){return(w(Mt)<Mt?$:y(Mt)<Mt?ct:d(Mt)<Mt?rt:u(Mt)<Mt?vt:a(Mt)<Mt?c(Mt)<Mt?ft:Et:r(Mt)<Mt?Nt:Rt)(Mt)}return D.invert=function(Mt){return new Date(j(Mt))},D.domain=function(Mt){return arguments.length?P(Array.from(Mt,c4)):P().map(s4)},D.ticks=function(Mt){var Kt=P();return t(Kt[0],Kt[Kt.length-1],Mt==null?10:Mt)},D.tickFormat=function(Mt,Kt){return Kt==null?$t:_(Kt)},D.nice=function(Mt){var Kt=P();return Mt&&typeof Mt.range=="function"||(Mt=e(Kt[0],Kt[Kt.length-1],Mt==null?10:Mt)),Mt?P(function(Jt,At){var Bt,wt=0,_t=(Jt=Jt.slice()).length-1,Ft=Jt[wt],yt=Jt[_t];return yt<Ft&&(Bt=wt,wt=_t,_t=Bt,Bt=Ft,Ft=yt,yt=Bt),Jt[wt]=At.floor(Ft),Jt[_t]=At.ceil(yt),Jt}(Kt,Mt)):D},D.copy=function(){return e1(D,Gy(t,e,r,a,c,u,d,y,w,_))},D}function u4(){}function Su(t){return t==null?u4:function(){return this.querySelector(t)}}function Cp(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function l4(){return[]}function Xy(t){return t==null?l4:function(){return this.querySelectorAll(t)}}function Zy(t){return function(){return this.matches(t)}}function Qy(t){return function(e){return e.matches(t)}}nh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,d=t.shortDays,y=t.months,w=t.shortMonths,_=rh(c),D=ih(c),j=rh(u),P=ih(u),$=rh(d),ct=ih(d),rt=rh(y),vt=ih(y),ft=rh(w),Et=ih(w),Nt={a:function(At){return d[At.getDay()]},A:function(At){return u[At.getDay()]},b:function(At){return w[At.getMonth()]},B:function(At){return y[At.getMonth()]},c:null,d:Dy,e:Dy,f:qb,g:Kb,G:Fy,H:Lc,I:Ly,j:Ub,L:By,m:Hb,M:$b,p:function(At){return c[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:Wy,s:Vy,S:Wb,u:Vb,U:Gb,V:Xb,w:Zb,W:Iy,x:null,X:null,y:Qb,Y:Ry,Z:Py,"%":Tp},Rt={a:function(At){return d[At.getUTCDay()]},A:function(At){return u[At.getUTCDay()]},b:function(At){return w[At.getUTCMonth()]},B:function(At){return y[At.getUTCMonth()]},c:null,d:jy,e:jy,f:t4,g:a4,G:Eu,H:Jb,I:Yy,j:Zs,L:zy,m:Uy,M:e4,p:function(At){return c[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:Wy,s:Vy,S:n4,u:qy,U:f1,V:oh,w:r4,W:kp,x:null,X:null,y:i4,Y:$y,Z:o4,"%":Tp},$t={a:function(At,Bt,wt){var _t=$.exec(Bt.slice(wt));return _t?(At.w=ct.get(_t[0].toLowerCase()),wt+_t[0].length):-1},A:function(At,Bt,wt){var _t=j.exec(Bt.slice(wt));return _t?(At.w=P.get(_t[0].toLowerCase()),wt+_t[0].length):-1},b:function(At,Bt,wt){var _t=ft.exec(Bt.slice(wt));return _t?(At.m=Et.get(_t[0].toLowerCase()),wt+_t[0].length):-1},B:function(At,Bt,wt){var _t=rt.exec(Bt.slice(wt));return _t?(At.m=vt.get(_t[0].toLowerCase()),wt+_t[0].length):-1},c:function(At,Bt,wt){return Jt(At,e,Bt,wt)},d:wp,e:wp,f:Pb,g:Sy,G:Ey,H:ah,I:ah,j:Da,L:Fb,m:My,M:Dc,p:function(At,Bt,wt){var _t=_.exec(Bt.slice(wt));return _t?(At.p=D.get(_t[0].toLowerCase()),wt+_t[0].length):-1},q:xp,Q:Yb,s:zb,S:Ny,u:_p,U:Ob,V:Ib,w:h1,W:Rb,x:function(At,Bt,wt){return Jt(At,r,Bt,wt)},X:function(At,Bt,wt){return Jt(At,a,Bt,wt)},y:Sy,Y:Ey,Z:Ay,"%":jb};function Mt(At,Bt){return function(wt){var _t,Ft,yt,we=[],_e=-1,zt=0,Ce=At.length;for(wt instanceof Date||(wt=new Date(+wt));++_e<Ce;)At.charCodeAt(_e)===37&&(we.push(At.slice(zt,_e)),(Ft=Xo[_t=At.charAt(++_e)])!=null?_t=At.charAt(++_e):Ft=_t==="e"?" ":"0",(yt=Bt[_t])&&(_t=yt(wt,Ft)),we.push(_t),zt=_e+1);return we.push(At.slice(zt,_e)),we.join("")}}function Kt(At,Bt){return function(wt){var _t,Ft,yt=eh(1900,void 0,1);if(Jt(yt,At,wt+="",0)!=wt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Bt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Ft=(_t=mp(eh(yt.y,0,1))).getUTCDay(),_t=Ft>4||Ft===0?l1.ceil(_t):l1(_t),_t=th.offset(_t,7*(yt.V-1)),yt.y=_t.getUTCFullYear(),yt.m=_t.getUTCMonth(),yt.d=_t.getUTCDate()+(yt.w+6)%7):(Ft=(_t=Go(eh(yt.y,0,1))).getDay(),_t=Ft>4||Ft===0?dp.ceil(_t):dp(_t),_t=Tu.offset(_t,7*(yt.V-1)),yt.y=_t.getFullYear(),yt.m=_t.getMonth(),yt.d=_t.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Ft="Z"in yt?mp(eh(yt.y,0,1)).getUTCDay():Go(eh(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Ft+5)%7:yt.w+7*yt.U-(Ft+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,mp(yt)):Go(yt)}}function Jt(At,Bt,wt,_t){for(var Ft,yt,we=0,_e=Bt.length,zt=wt.length;we<_e;){if(_t>=zt)return-1;if((Ft=Bt.charCodeAt(we++))===37){if(Ft=Bt.charAt(we++),!(yt=$t[Ft in Xo?Bt.charAt(we++):Ft])||(_t=yt(At,wt,_t))<0)return-1}else if(Ft!=wt.charCodeAt(_t++))return-1}return _t}return Nt.x=Mt(r,Nt),Nt.X=Mt(a,Nt),Nt.c=Mt(e,Nt),Rt.x=Mt(r,Rt),Rt.X=Mt(a,Rt),Rt.c=Mt(e,Rt),{format:function(At){var Bt=Mt(At+="",Nt);return Bt.toString=function(){return At},Bt},parse:function(At){var Bt=Kt(At+="",!1);return Bt.toString=function(){return At},Bt},utcFormat:function(At){var Bt=Mt(At+="",Rt);return Bt.toString=function(){return At},Bt},utcParse:function(At){var Bt=Kt(At+="",!0);return Bt.toString=function(){return At},Bt}}}({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"]}),Cy=nh.format,nh.parse,nh.utcFormat,nh.utcParse;var h4=Array.prototype.find;function f4(){return this.firstElementChild}var Ep=Array.prototype.filter;function d4(){return Array.from(this.children)}function Ky(t){return new Array(t.length)}function d1(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function p4(t){return function(){return t}}function Si(t,e,r,a,c,u){for(var d,y=0,w=e.length,_=u.length;y<_;++y)(d=e[y])?(d.__data__=u[y],a[y]=d):r[y]=new d1(t,u[y]);for(;y<w;++y)(d=e[y])&&(c[y]=d)}function Qs(t,e,r,a,c,u,d){var y,w,_,D=new Map,j=e.length,P=u.length,$=new Array(j);for(y=0;y<j;++y)(w=e[y])&&($[y]=_=d.call(w,w.__data__,y,e)+"",D.has(_)?c[y]=w:D.set(_,w));for(y=0;y<P;++y)_=d.call(t,u[y],y,u)+"",(w=D.get(_))?(a[y]=w,w.__data__=u[y],D.delete(_)):r[y]=new d1(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get($[y])===w&&(c[y]=w)}function Jy(t){return t.__data__}function fa(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function g4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}d1.prototype={constructor:d1,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 Sp="http://www.w3.org/1999/xhtml";const sh={svg:"http://www.w3.org/2000/svg",xhtml:Sp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Au(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),sh.hasOwnProperty(e)?{space:sh[e],local:t}:t}function tm(t){return function(){this.removeAttribute(t)}}function da(t){return function(){this.removeAttributeNS(t.space,t.local)}}function y4(t,e){return function(){this.setAttribute(t,e)}}function m4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function b4(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 Ap(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _4(t){return function(){this.style.removeProperty(t)}}function x4(t,e,r){return function(){this.style.setProperty(t,e,r)}}function w4(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Mu(t,e){return t.style.getPropertyValue(e)||Ap(t).getComputedStyle(t,null).getPropertyValue(e)}function k4(t){return function(){delete this[t]}}function T4(t,e){return function(){this[t]=e}}function C4(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 Mp(t){return t.classList||new ch(t)}function ch(t){this._node=t,this._names=em(t.getAttribute("class")||"")}function Bc(t,e){for(var r=Mp(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function Np(t,e){for(var r=Mp(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function E4(t){return function(){Bc(this,t)}}function uh(t){return function(){Np(this,t)}}function p1(t,e){return function(){(e.apply(this,arguments)?Bc:Np)(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 g1(){this.innerHTML=""}function y1(t){return function(){this.innerHTML=t}}function Dp(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===Sp&&e.documentElement.namespaceURI===Sp?e.createElement(t):e.createElementNS(r,t)}}function cm(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Lp(t){var e=Au(t);return(e.local?cm:sm)(e)}function um(){return null}function lm(){var t=this.parentNode;t&&t.removeChild(this)}function Ks(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function m1(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function v1(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 Pn(t,e,r){return function(){var a,c=this.__on,u=function(w){return function(_){w.call(this,_,this.__data__)}}(e);if(c){for(var d=0,y=c.length;d<y;++d)if((a=c[d]).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 lh(t,e,r){var a=Ap(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 er(t,e){return function(){return lh(this,t,e)}}function si(t,e){return function(){return lh(this,t,e.apply(this,arguments))}}ch.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 Nu=[null];function Nr(t,e){this._groups=t,this._parents=e}function Or(){return new Nr([[document.documentElement]],Nu)}Nr.prototype=Or.prototype={constructor:Nr,select:function(t){typeof t!="function"&&(t=Su(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d,y=e[c],w=y.length,_=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(d=t.call(u,u.__data__,D,y))&&("__data__"in u&&(d.__data__=u.__data__),_[D]=d);return new Nr(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return Cp(D.apply(this,arguments))}}(t):Xy(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var d,y=e[u],w=y.length,_=0;_<w;++_)(d=y[_])&&(a.push(t.call(d,d.__data__,_,y)),c.push(d));return new Nr(a,c)},selectChild:function(t){return this.select(t==null?f4:function(e){return function(){return h4.call(this.children,e)}}(typeof t=="function"?t:Qy(t)))},selectChildren:function(t){return this.selectAll(t==null?d4:function(e){return function(){return Ep.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,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new Nr(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Jy);var r=e?Qs:Si,a=this._parents,c=this._groups;typeof t!="function"&&(t=p4(t));for(var u=c.length,d=new Array(u),y=new Array(u),w=new Array(u),_=0;_<u;++_){var D=a[_],j=c[_],P=j.length,$=fa(t.call(D,D&&D.__data__,_,a)),ct=$.length,rt=y[_]=new Array(ct),vt=d[_]=new Array(ct),ft=w[_]=new Array(P);r(D,j,rt,vt,ft,$,e);for(var Et,Nt,Rt=0,$t=0;Rt<ct;++Rt)if(Et=rt[Rt]){for(Rt>=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t<ct;);Et._next=Nt||null}}return(d=new Nr(d,a))._enter=y,d._exit=w,d},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,d=Math.min(c,u),y=new Array(c),w=0;w<d;++w)for(var _,D=r[w],j=a[w],P=D.length,$=y[w]=new Array(P),ct=0;ct<P;++ct)(_=D[ct]||j[ct])&&($[ct]=_);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,d=c[u];--u>=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=g4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var d,y=r[u],w=y.length,_=c[u]=new Array(w),D=0;D<w;++D)(d=y[D])&&(_[D]=d);_.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 d=a[c];if(d)return d}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],d=0,y=u.length;d<y;++d)(c=u[d])&&t.call(c,c.__data__,d,u);return this},attr:function(t,e){var r=Au(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?da:tm:typeof e=="function"?r.local?b4:v4:r.local?m4:y4)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?_4:typeof e=="function"?w4:x4)(t,e,r==null?"":r)):Mu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?k4:typeof e=="function"?C4:T4)(t,e)):this.node()[t]},classed:function(t,e){var r=em(t+"");if(arguments.length<2){for(var a=Mp(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?p1:e?E4:uh)(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?g1:(typeof t=="function"?Dp:y1)(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:Lp(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Lp(t),a=e==null?um:typeof e=="function"?e:Su(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?m1:Ks)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=v1(t+""),d=u.length;if(!(arguments.length<2)){for(y=e?Pn:hm,a=0;a<d;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,_=0,D=y.length;_<D;++_)for(a=0,w=y[_];a<d;++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"?si:er)(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,d=c.length;u<d;++u)(a=c[u])&&(yield a)}};const _n=Or;function Ne(t){return typeof t=="string"?new Nr([[document.querySelector(t)]],[document.documentElement]):new Nr([[t]],Nu)}function Js(t){return typeof t=="string"?new Nr([document.querySelectorAll(t)],[document.documentElement]):new Nr([Cp(t)],Nu)}const Wi=Math.PI,fn=2*Wi,Zo=1e-6,fm=fn-Zo;function Du(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function b1(){return new Du}Du.prototype=b1.prototype={constructor:Du,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,d=this._y1,y=r-t,w=a-e,_=u-t,D=d-e,j=_*_+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>Zo)if(Math.abs(D*y-w*_)>Zo&&c){var P=r-u,$=a-d,ct=y*y+w*w,rt=P*P+$*$,vt=Math.sqrt(ct),ft=Math.sqrt(j),Et=c*Math.tan((Wi-Math.acos((ct+j-rt)/(2*vt*ft)))/2),Nt=Et/ft,Rt=Et/vt;Math.abs(Nt-1)>Zo&&(this._+="L"+(t+Nt*_)+","+(e+Nt*D)),this._+="A"+c+","+c+",0,0,"+ +(D*P>_*$)+","+(this._x1=t+Rt*y)+","+(this._y1=e+Rt*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 d=(r=+r)*Math.cos(a),y=r*Math.sin(a),w=t+d,_=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+","+_:(Math.abs(this._x1-w)>Zo||Math.abs(this._y1-_)>Zo)&&(this._+="L"+w+","+_),r&&(j<0&&(j=j%fn+fn),j>fm?this._+="A"+r+","+r+",0,1,"+D+","+(t-d)+","+(e-y)+"A"+r+","+r+",0,1,"+D+","+(this._x1=w)+","+(this._y1=_):j>Zo&&(this._+="A"+r+","+r+",0,"+ +(j>=Wi)+","+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=b1;function br(t){return function(){return t}}var yi=Math.abs,Fi=Math.atan2,tc=Math.cos,pa=Math.max,_1=Math.min,_r=Math.sin,xs=Math.sqrt,ga=1e-12,Lu=Math.PI,Bu=Lu/2,hh=2*Lu;function wo(t){return t>1?0:t<-1?Lu:Math.acos(t)}function Bp(t){return t>=1?Bu:t<=-1?-Bu:Math.asin(t)}function dm(t){return t.innerRadius}function Op(t){return t.outerRadius}function Ip(t){return t.startAngle}function Rp(t){return t.endAngle}function x1(t){return t&&t.padAngle}function w1(t,e,r,a,c,u,d,y){var w=r-t,_=a-e,D=d-c,j=y-u,P=j*w-D*_;if(!(P*P<ga))return[t+(P=(D*(e-u)-j*(t-c))/P)*w,e+P*_]}function Va(t,e,r,a,c,u,d){var y=t-r,w=e-a,_=(d?u:-u)/xs(y*y+w*w),D=_*w,j=-_*y,P=t+D,$=e+j,ct=r+D,rt=a+j,vt=(P+ct)/2,ft=($+rt)/2,Et=ct-P,Nt=rt-$,Rt=Et*Et+Nt*Nt,$t=c-u,Mt=P*rt-ct*$,Kt=(Nt<0?-1:1)*xs(pa(0,$t*$t*Rt-Mt*Mt)),Jt=(Mt*Nt-Et*Kt)/Rt,At=(-Mt*Et-Nt*Kt)/Rt,Bt=(Mt*Nt+Et*Kt)/Rt,wt=(-Mt*Et+Nt*Kt)/Rt,_t=Jt-vt,Ft=At-ft,yt=Bt-vt,we=wt-ft;return _t*_t+Ft*Ft>yt*yt+we*we&&(Jt=Bt,At=wt),{cx:Jt,cy:At,x01:-D,y01:-j,x11:Jt*(c/$t-1),y11:At*(c/$t-1)}}function Fp(){var t=dm,e=Op,r=br(0),a=null,c=Ip,u=Rp,d=x1,y=null;function w(){var _,D,j=+t.apply(this,arguments),P=+e.apply(this,arguments),$=c.apply(this,arguments)-Bu,ct=u.apply(this,arguments)-Bu,rt=yi(ct-$),vt=ct>$;if(y||(y=_=sn()),P<j&&(D=P,P=j,j=D),P>ga)if(rt>hh-ga)y.moveTo(P*tc($),P*_r($)),y.arc(0,0,P,$,ct,!vt),j>ga&&(y.moveTo(j*tc(ct),j*_r(ct)),y.arc(0,0,j,ct,$,vt));else{var ft,Et,Nt=$,Rt=ct,$t=$,Mt=ct,Kt=rt,Jt=rt,At=d.apply(this,arguments)/2,Bt=At>ga&&(a?+a.apply(this,arguments):xs(j*j+P*P)),wt=_1(yi(P-j)/2,+r.apply(this,arguments)),_t=wt,Ft=wt;if(Bt>ga){var yt=Bp(Bt/j*_r(At)),we=Bp(Bt/P*_r(At));(Kt-=2*yt)>ga?($t+=yt*=vt?1:-1,Mt-=yt):(Kt=0,$t=Mt=($+ct)/2),(Jt-=2*we)>ga?(Nt+=we*=vt?1:-1,Rt-=we):(Jt=0,Nt=Rt=($+ct)/2)}var _e=P*tc(Nt),zt=P*_r(Nt),Ce=j*tc(Mt),Ee=j*_r(Mt);if(wt>ga){var ke,ge=P*tc(Rt),Re=P*_r(Rt),Pe=j*tc($t),on=j*_r($t);if(rt<Lu&&(ke=w1(_e,zt,Pe,on,ge,Re,Ce,Ee))){var yn=_e-ke[0],We=zt-ke[1],pr=ge-ke[0],Tr=Re-ke[1],Rn=1/_r(wo((yn*pr+We*Tr)/(xs(yn*yn+We*We)*xs(pr*pr+Tr*Tr)))/2),zr=xs(ke[0]*ke[0]+ke[1]*ke[1]);_t=_1(wt,(j-zr)/(Rn-1)),Ft=_1(wt,(P-zr)/(Rn+1))}}Jt>ga?Ft>ga?(ft=Va(Pe,on,_e,zt,P,Ft,vt),Et=Va(ge,Re,Ce,Ee,P,Ft,vt),y.moveTo(ft.cx+ft.x01,ft.cy+ft.y01),Ft<wt?y.arc(ft.cx,ft.cy,Ft,Fi(ft.y01,ft.x01),Fi(Et.y01,Et.x01),!vt):(y.arc(ft.cx,ft.cy,Ft,Fi(ft.y01,ft.x01),Fi(ft.y11,ft.x11),!vt),y.arc(0,0,P,Fi(ft.cy+ft.y11,ft.cx+ft.x11),Fi(Et.cy+Et.y11,Et.cx+Et.x11),!vt),y.arc(Et.cx,Et.cy,Ft,Fi(Et.y11,Et.x11),Fi(Et.y01,Et.x01),!vt))):(y.moveTo(_e,zt),y.arc(0,0,P,Nt,Rt,!vt)):y.moveTo(_e,zt),j>ga&&Kt>ga?_t>ga?(ft=Va(Ce,Ee,ge,Re,j,-_t,vt),Et=Va(_e,zt,Pe,on,j,-_t,vt),y.lineTo(ft.cx+ft.x01,ft.cy+ft.y01),_t<wt?y.arc(ft.cx,ft.cy,_t,Fi(ft.y01,ft.x01),Fi(Et.y01,Et.x01),!vt):(y.arc(ft.cx,ft.cy,_t,Fi(ft.y01,ft.x01),Fi(ft.y11,ft.x11),!vt),y.arc(0,0,j,Fi(ft.cy+ft.y11,ft.cx+ft.x11),Fi(Et.cy+Et.y11,Et.cx+Et.x11),vt),y.arc(Et.cx,Et.cy,_t,Fi(Et.y11,Et.x11),Fi(Et.y01,Et.x01),!vt))):y.arc(0,0,j,Mt,$t,vt):y.lineTo(Ce,Ee)}else y.moveTo(0,0);if(y.closePath(),_)return y=null,_+""||null}return w.centroid=function(){var _=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,D=(+c.apply(this,arguments)+ +u.apply(this,arguments))/2-Lu/2;return[tc(D)*_,_r(D)*_]},w.innerRadius=function(_){return arguments.length?(t=typeof _=="function"?_:br(+_),w):t},w.outerRadius=function(_){return arguments.length?(e=typeof _=="function"?_:br(+_),w):e},w.cornerRadius=function(_){return arguments.length?(r=typeof _=="function"?_:br(+_),w):r},w.padRadius=function(_){return arguments.length?(a=_==null?null:typeof _=="function"?_:br(+_),w):a},w.startAngle=function(_){return arguments.length?(c=typeof _=="function"?_:br(+_),w):c},w.endAngle=function(_){return arguments.length?(u=typeof _=="function"?_:br(+_),w):u},w.padAngle=function(_){return arguments.length?(d=typeof _=="function"?_:br(+_),w):d},w.context=function(_){return arguments.length?(y=_==null?null:_,w):y},w}function pm(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gm(t){this._context=t}function so(t){return new gm(t)}function S4(t){return t[0]}function k1(t){return t[1]}function ko(t,e){var r=br(!0),a=null,c=so,u=null;function d(y){var w,_,D,j=(y=pm(y)).length,P=!1;for(a==null&&(u=c(D=sn())),w=0;w<=j;++w)!(w<j&&r(_=y[w],w,y))===P&&((P=!P)?u.lineStart():u.lineEnd()),P&&u.point(+t(_,w,y),+e(_,w,y));if(D)return u=null,D+""||null}return t=typeof t=="function"?t:t===void 0?S4:br(t),e=typeof e=="function"?e:e===void 0?k1:br(e),d.x=function(y){return arguments.length?(t=typeof y=="function"?y:br(+y),d):t},d.y=function(y){return arguments.length?(e=typeof y=="function"?y:br(+y),d):e},d.defined=function(y){return arguments.length?(r=typeof y=="function"?y:br(!!y),d):r},d.curve=function(y){return arguments.length?(c=y,a!=null&&(u=c(a)),d):c},d.context=function(y){return arguments.length?(y==null?a=u=null:u=c(a=y),d):a},d}function T1(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Ou(t){return t}function Iu(){}function Oc(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 fh(t){this._context=t}function jr(t){return new fh(t)}function ya(t){this._context=t}function ti(t){this._context=t}function La(t){this._context=t}function ec(t){return t<0?-1:1}function Pp(t,e,r){var a=t._x1-t._x0,c=e-t._x1,u=(t._y1-t._y0)/(a||c<0&&-0),d=(r-t._y1)/(c||a<0&&-0),y=(u*c+d*a)/(a+c);return(ec(u)+ec(d))*Math.min(Math.abs(u),Math.abs(d),.5*Math.abs(y))||0}function jp(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function nc(t,e,r){var a=t._x0,c=t._y0,u=t._x1,d=t._y1,y=(u-a)/3;t._context.bezierCurveTo(a+y,c+y*e,u-y,d-y*r,u,d)}function To(t){this._context=t}function Qo(t){this._context=new Ru(t)}function Ru(t){this._context=t}function dh(t){this._context=t}function ph(t){var e,r,a=t.length-1,c=new Array(a),u=new Array(a),d=new Array(a);for(c[0]=0,u[0]=2,d[0]=t[0]+2*t[1],e=1;e<a-1;++e)c[e]=1,u[e]=4,d[e]=4*t[e]+2*t[e+1];for(c[a-1]=2,u[a-1]=7,d[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=c[e]/u[e-1],u[e]-=r,d[e]-=r*d[e-1];for(c[a-1]=d[a-1]/u[a-1],e=a-2;e>=0;--e)c[e]=(d[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 Ic(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)}}},fh.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:Oc(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:Oc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ya.prototype={areaStart:Iu,areaEnd:Iu,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:Oc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ti.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:Oc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},La.prototype={areaStart:Iu,areaEnd:Iu,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:nc(this,this._t0,jp(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,nc(this,jp(this,r=Pp(this,t,e)),r);break;default:nc(this,this._t0,r=Pp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Qo.prototype=Object.create(To.prototype)).point=function(t,e){To.prototype.point.call(this,e,t)},Ru.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)}},dh.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=ph(t),c=ph(e),u=0,d=1;d<r;++u,++d)this._context.bezierCurveTo(a[0][u],c[0][u],a[1][u],c[1][u],t[d],e[d]);(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)}},Ic.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 Fu=new Date,Pu=new Date;function co(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 d=c(u),y=c.ceil(u);return u-d<y-u?d:y},c.offset=function(u,d){return e(u=new Date(+u),d==null?1:Math.floor(d)),u},c.range=function(u,d,y){var w,_=[];if(u=c.ceil(u),y=y==null?1:Math.floor(y),!(u<d&&y>0))return _;do _.push(w=new Date(+u)),e(u,y),t(u);while(w<u&&u<d);return _},c.filter=function(u){return co(function(d){if(d>=d)for(;t(d),!u(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;e(d,-1),!u(d););else for(;--y>=0;)for(;e(d,1),!u(d););})},r&&(c.count=function(u,d){return Fu.setTime(+u),Pu.setTime(+d),t(Fu),t(Pu),Math.floor(r(Fu,Pu))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(d){return a(d)%u==0}:function(d){return c.count(0,d)%u==0}):c:null}),c}const gh=864e5,C1=6048e5;function ws(t){return co(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)/C1})}var Yp=ws(0),E1=ws(1);ws(2),ws(3);var ju=ws(4);ws(5),ws(6);var ma=co(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/gh},function(t){return t.getUTCDate()-1});const Zi=ma;function mi(t){return co(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()))/C1})}var yh=mi(0),Co=mi(1);mi(2),mi(3);var Rc=mi(4);mi(5),mi(6);var ym=co(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/gh,t=>t.getDate()-1);const zp=ym;var Up=co(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()});Up.every=function(t){return isFinite(t=Math.floor(t))&&t>0?co(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 Yu=Up;var mm=co(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?co(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 mh=mm;function va(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 qp(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 zu(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var vh,Ga,S1={"-":"",_:" ",0:"0"},ci=/^\s*\d+/,vm=/^%/,A4=/[\\^$*+?|[\]().{}]/g;function xr(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(A4,"\\$&")}function bh(t){return new RegExp("^(?:"+t.map(bm).join("|")+")","i")}function _h(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function M4(t,e,r){var a=ci.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function _m(t,e,r){var a=ci.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function N4(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Uu(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Hp(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function A1(t,e,r){var a=ci.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function M1(t,e,r){var a=ci.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=ci.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=ci.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function $p(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Tm(t,e,r){var a=ci.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Wp(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function D4(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Cm(t,e,r){var a=ci.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function N1(t,e,r){var a=ci.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function D1(t,e,r){var a=ci.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Em(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=ci.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Vp(t,e,r){var a=ci.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function L1(t,e){return xr(t.getDate(),e,2)}function Am(t,e){return xr(t.getHours(),e,2)}function Mm(t,e){return xr(t.getHours()%12||12,e,2)}function L4(t,e){return xr(1+zp.count(Yu(t),t),e,3)}function Nm(t,e){return xr(t.getMilliseconds(),e,3)}function Gp(t,e){return Nm(t,e)+"000"}function Dm(t,e){return xr(t.getMonth()+1,e,2)}function xh(t,e){return xr(t.getMinutes(),e,2)}function B1(t,e){return xr(t.getSeconds(),e,2)}function O1(t){var e=t.getDay();return e===0?7:e}function B4(t,e){return xr(yh.count(Yu(t)-1,t),e,2)}function I1(t){var e=t.getDay();return e>=4||e===0?Rc(t):Rc.ceil(t)}function R1(t,e){return t=I1(t),xr(Rc.count(Yu(t),t)+(Yu(t).getDay()===4),e,2)}function F1(t){return t.getDay()}function Xp(t,e){return xr(Co.count(Yu(t)-1,t),e,2)}function qu(t,e){return xr(t.getFullYear()%100,e,2)}function O4(t,e){return xr((t=I1(t)).getFullYear()%100,e,2)}function I4(t,e){return xr(t.getFullYear()%1e4,e,4)}function R4(t,e){var r=t.getDay();return xr((t=r>=4||r===0?Rc(t):Rc.ceil(t)).getFullYear()%1e4,e,4)}function Lm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+xr(e/60|0,"0",2)+xr(e%60,"0",2)}function P1(t,e){return xr(t.getUTCDate(),e,2)}function F4(t,e){return xr(t.getUTCHours(),e,2)}function j1(t,e){return xr(t.getUTCHours()%12||12,e,2)}function Bm(t,e){return xr(1+Zi.count(mh(t),t),e,3)}function Zp(t,e){return xr(t.getUTCMilliseconds(),e,3)}function Y1(t,e){return Zp(t,e)+"000"}function Om(t,e){return xr(t.getUTCMonth()+1,e,2)}function Im(t,e){return xr(t.getUTCMinutes(),e,2)}function Rm(t,e){return xr(t.getUTCSeconds(),e,2)}function P4(t){var e=t.getUTCDay();return e===0?7:e}function Fm(t,e){return xr(Yp.count(mh(t)-1,t),e,2)}function Pm(t){var e=t.getUTCDay();return e>=4||e===0?ju(t):ju.ceil(t)}function jm(t,e){return t=Pm(t),xr(ju.count(mh(t),t)+(mh(t).getUTCDay()===4),e,2)}function Ym(t){return t.getUTCDay()}function zm(t,e){return xr(E1.count(mh(t)-1,t),e,2)}function j4(t,e){return xr(t.getUTCFullYear()%100,e,2)}function Y4(t,e){return xr((t=Pm(t)).getUTCFullYear()%100,e,2)}function wh(t,e){return xr(t.getUTCFullYear()%1e4,e,4)}function Um(t,e){var r=t.getUTCDay();return xr((t=r>=4||r===0?ju(t):ju.ceil(t)).getUTCFullYear()%1e4,e,4)}function qm(){return"+0000"}function z1(){return"%"}function U1(t){return+t}function q1(t){return Math.floor(+t/1e3)}vh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,d=t.shortDays,y=t.months,w=t.shortMonths,_=bh(c),D=_h(c),j=bh(u),P=_h(u),$=bh(d),ct=_h(d),rt=bh(y),vt=_h(y),ft=bh(w),Et=_h(w),Nt={a:function(At){return d[At.getDay()]},A:function(At){return u[At.getDay()]},b:function(At){return w[At.getMonth()]},B:function(At){return y[At.getMonth()]},c:null,d:L1,e:L1,f:Gp,g:O4,G:R4,H:Am,I:Mm,j:L4,L:Nm,m:Dm,M:xh,p:function(At){return c[+(At.getHours()>=12)]},q:function(At){return 1+~~(At.getMonth()/3)},Q:U1,s:q1,S:B1,u:O1,U:B4,V:R1,w:F1,W:Xp,x:null,X:null,y:qu,Y:I4,Z:Lm,"%":z1},Rt={a:function(At){return d[At.getUTCDay()]},A:function(At){return u[At.getUTCDay()]},b:function(At){return w[At.getUTCMonth()]},B:function(At){return y[At.getUTCMonth()]},c:null,d:P1,e:P1,f:Y1,g:Y4,G:Um,H:F4,I:j1,j:Bm,L:Zp,m:Om,M:Im,p:function(At){return c[+(At.getUTCHours()>=12)]},q:function(At){return 1+~~(At.getUTCMonth()/3)},Q:U1,s:q1,S:Rm,u:P4,U:Fm,V:jm,w:Ym,W:zm,x:null,X:null,y:j4,Y:wh,Z:qm,"%":z1},$t={a:function(At,Bt,wt){var _t=$.exec(Bt.slice(wt));return _t?(At.w=ct.get(_t[0].toLowerCase()),wt+_t[0].length):-1},A:function(At,Bt,wt){var _t=j.exec(Bt.slice(wt));return _t?(At.w=P.get(_t[0].toLowerCase()),wt+_t[0].length):-1},b:function(At,Bt,wt){var _t=ft.exec(Bt.slice(wt));return _t?(At.m=Et.get(_t[0].toLowerCase()),wt+_t[0].length):-1},B:function(At,Bt,wt){var _t=rt.exec(Bt.slice(wt));return _t?(At.m=vt.get(_t[0].toLowerCase()),wt+_t[0].length):-1},c:function(At,Bt,wt){return Jt(At,e,Bt,wt)},d:$p,e:$p,f:D1,g:M1,G:A1,H:Wp,I:Wp,j:Tm,L:N1,m:km,M:D4,p:function(At,Bt,wt){var _t=_.exec(Bt.slice(wt));return _t?(At.p=D.get(_t[0].toLowerCase()),wt+_t[0].length):-1},q:wm,Q:Sm,s:Vp,S:Cm,u:_m,U:N4,V:Uu,w:M4,W:Hp,x:function(At,Bt,wt){return Jt(At,r,Bt,wt)},X:function(At,Bt,wt){return Jt(At,a,Bt,wt)},y:M1,Y:A1,Z:xm,"%":Em};function Mt(At,Bt){return function(wt){var _t,Ft,yt,we=[],_e=-1,zt=0,Ce=At.length;for(wt instanceof Date||(wt=new Date(+wt));++_e<Ce;)At.charCodeAt(_e)===37&&(we.push(At.slice(zt,_e)),(Ft=S1[_t=At.charAt(++_e)])!=null?_t=At.charAt(++_e):Ft=_t==="e"?" ":"0",(yt=Bt[_t])&&(_t=yt(wt,Ft)),we.push(_t),zt=_e+1);return we.push(At.slice(zt,_e)),we.join("")}}function Kt(At,Bt){return function(wt){var _t,Ft,yt=zu(1900,void 0,1);if(Jt(yt,At,wt+="",0)!=wt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(Bt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Ft=(_t=qp(zu(yt.y,0,1))).getUTCDay(),_t=Ft>4||Ft===0?E1.ceil(_t):E1(_t),_t=Zi.offset(_t,7*(yt.V-1)),yt.y=_t.getUTCFullYear(),yt.m=_t.getUTCMonth(),yt.d=_t.getUTCDate()+(yt.w+6)%7):(Ft=(_t=va(zu(yt.y,0,1))).getDay(),_t=Ft>4||Ft===0?Co.ceil(_t):Co(_t),_t=zp.offset(_t,7*(yt.V-1)),yt.y=_t.getFullYear(),yt.m=_t.getMonth(),yt.d=_t.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Ft="Z"in yt?qp(zu(yt.y,0,1)).getUTCDay():va(zu(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Ft+5)%7:yt.w+7*yt.U-(Ft+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,qp(yt)):va(yt)}}function Jt(At,Bt,wt,_t){for(var Ft,yt,we=0,_e=Bt.length,zt=wt.length;we<_e;){if(_t>=zt)return-1;if((Ft=Bt.charCodeAt(we++))===37){if(Ft=Bt.charAt(we++),!(yt=$t[Ft in S1?Bt.charAt(we++):Ft])||(_t=yt(At,wt,_t))<0)return-1}else if(Ft!=wt.charCodeAt(_t++))return-1}return _t}return Nt.x=Mt(r,Nt),Nt.X=Mt(a,Nt),Nt.c=Mt(e,Nt),Rt.x=Mt(r,Rt),Rt.X=Mt(a,Rt),Rt.c=Mt(e,Rt),{format:function(At){var Bt=Mt(At+="",Nt);return Bt.toString=function(){return At},Bt},parse:function(At){var Bt=Kt(At+="",!1);return Bt.toString=function(){return At},Bt},utcFormat:function(At){var Bt=Mt(At+="",Rt);return Bt.toString=function(){return At},Bt},utcParse:function(At){var Bt=Kt(At+="",!0);return Bt.toString=function(){return At},Bt}}}({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"]}),Ga=vh.format,vh.parse,vh.utcFormat,vh.utcParse;var Qp={value:()=>{}};function ks(){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 H1(a)}function H1(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 $m(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=Qp,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}H1.prototype=ks.prototype={constructor:H1,on:function(t,e){var r,a=this._,c=z4(t+"",a),u=-1,d=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<d;)if(r=(t=c[u]).type)a[r]=$m(a[r],t.name,e);else if(e==null)for(r in a)a[r]=$m(a[r],t.name,null);return this}for(;++u<d;)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 H1(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 Wm=ks;var Ts,rc,Ko=0,ic=0,kh=0,Fc=0,ac=0,Th=0,Ba=typeof performance=="object"&&performance.now?performance:Date,Eo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ch(){return ac||(Eo(Kp),ac=Ba.now()+Th)}function Kp(){ac=0}function oc(){this._call=this._time=this._next=null}function Eh(t,e,r){var a=new oc;return a.restart(t,e,r),a}function Sh(){ac=(Fc=Ba.now())+Th,Ko=ic=0;try{(function(){Ch(),++Ko;for(var t,e=Ts;e;)(t=ac-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ko})()}finally{Ko=0,function(){for(var t,e,r=Ts,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:Ts=e);rc=t,Ah(a)}(),ac=0}}function Hu(){var t=Ba.now(),e=t-Fc;e>1e3&&(Th-=e,Fc=t)}function Ah(t){Ko||(ic&&(ic=clearTimeout(ic)),t-ac>24?(t<1/0&&(ic=setTimeout(Sh,t-Ba.now()-Th)),kh&&(kh=clearInterval(kh))):(kh||(Fc=Ba.now(),kh=setInterval(Hu,1e3)),Ko=1,Eo(Sh)))}function $1(t,e,r){var a=new oc;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}oc.prototype=Eh.prototype={constructor:oc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Ch():+r)+(e==null?0:+e),this._next||rc===this||(rc?rc._next=this:Ts=this,rc=this),this._call=t,this._time=r,Ah()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ah())}};var Mh=Wm("start","end","cancel","interrupt"),So=[];function Jo(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return $1(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt<w&&(Nt.state=6,Nt.timer.stop(),Nt.on.call("cancel",y,y.__data__,Nt.index,Nt.group),delete j[vt])}if($1(function(){_.state===3&&(_.state=4,_.timer.restart($,_.delay,_.time),$(rt))}),_.state=2,_.on.call("start",y,y.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(Et=_.tween.length),vt=0,ft=-1;vt<Et;++vt)(Nt=_.tween[vt].value.call(y,y.__data__,_.index,_.group))&&(D[++ft]=Nt);D.length=ft+1}}function $(rt){for(var vt=rt<_.duration?_.ease.call(null,rt/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,Et=D.length;++ft<Et;)D[ft].call(y,vt);_.state===5&&(_.on.call("end",y,y.__data__,_.index,_.group),ct())}function ct(){for(var rt in _.state=6,_.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=_,_.timer=Eh(function(rt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=rt&&P(rt-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:Mh,tween:So,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function W1(t,e){var r=Ao(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function ts(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 Cs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var V1,Vm=180/Math.PI,Jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tg(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(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,d=-d),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Vm,skewX:Math.atan(w)*Vm,scaleX:d,scaleY:y}}function eg(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,d){var y=[],w=[];return u=t(u),d=t(d),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push("translate(",null,e,null,r);ct.push({i:rt-4,x:Cs(_,j)},{i:rt-2,x:Cs(D,P)})}else(j||P)&&$.push("translate("+j+e+P+r)}(u.translateX,u.translateY,d.translateX,d.translateY,y,w),function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Cs(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Cs(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:Cs(_,j)},{i:rt-2,x:Cs(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(_);return y.join("")}}}var Gm=eg(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Jp:tg(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),ng=eg(function(t){return t==null?Jp:(V1||(V1=document.createElementNS("http://www.w3.org/2000/svg","g")),V1.setAttribute("transform",t),(t=V1.transform.baseVal.consolidate())?tg((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Jp)},", ",")",")");function Xm(t,e){var r,a;return function(){var c=ts(this,t),u=c.tween;if(u!==r){for(var d=0,y=(a=r=u).length;d<y;++d)if(a[d].name===e){(a=a.slice()).splice(d,1);break}}c.tween=a}}function Zm(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=ts(this,t),d=u.tween;if(d!==a){c=(a=d).slice();for(var y={name:e,value:r},w=0,_=c.length;w<_;++w)if(c[w].name===e){c[w]=y;break}w===_&&c.push(y)}u.tween=c}}function Pc(t,e,r){var a=t._id;return t.each(function(){var c=ts(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return Ao(c,a).value[e]}}const $u=function t(e){var r=function(c){return(c=+c)==1?Vl:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):zd(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=Mr(c)).r,(u=Mr(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=Vl(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);var Nh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wu=new RegExp(Nh.source,"g");function U4(t,e){var r,a,c,u=Nh.lastIndex=Wu.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=Nh.exec(t))&&(a=Wu.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Cs(r,a)})),u=Wu.lastIndex;return u<e.length&&(c=e.slice(u),y[d]?y[d]+=c:y[++d]=c),y.length<2?w[0]?function(_){return function(D){return _(D)+""}}(w[0].x):function(_){return function(){return _}}(e):(e=w.length,function(_){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(_);return y.join("")})}function rg(t,e){var r;return(typeof e=="number"?Cs:e instanceof xn?$u:(r=xn(e))?(e=r,$u):U4)(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 d=this.getAttribute(t);return d===u?null:d===a?c:c=e(a=d,r)}}function q4(t,e,r){var a,c,u=r+"";return function(){var d=this.getAttributeNS(t.space,t.local);return d===u?null:d===a?c:c=e(a=d,r)}}function H4(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttribute(t))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttribute(t)}}function Dh(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttributeNS(t.space,t.local)}}function ig(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ag(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function G1(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&ag(t,u)),r}return c._value=e,c}function og(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 sg(t,e){return function(){W1(this,t).delay=+e.apply(this,arguments)}}function cg(t,e){return e=+e,function(){W1(this,t).delay=e}}function $4(t,e){return function(){ts(this,t).duration=+e.apply(this,arguments)}}function tv(t,e){return e=+e,function(){ts(this,t).duration=e}}function W4(t,e){if(typeof e!="function")throw new Error;return function(){ts(this,t).ease=e}}function V4(t,e,r){var a,c,u=function(d){return(d+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?W1:ts;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var ev=_n.prototype.constructor;function Mo(t){return function(){this.style.removeProperty(t)}}function ug(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function lg(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&ug(t,d,r)),a}return u._value=e,u}function nv(t){return function(e){this.textContent=t.call(this,e)}}function X1(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 Es(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function hg(){return++rv}var Xa=_n.prototype;Es.prototype={constructor:Es,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Su(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d<c;++d)for(var y,w,_=a[d],D=_.length,j=u[d]=new Array(D),P=0;P<D;++P)(y=_[P])&&(w=t.call(y,y.__data__,P,_))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,Jo(j[P],e,r,P,j,Ao(y,r)));return new Es(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=[],d=[],y=0;y<c;++y)for(var w,_=a[y],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,$=t.call(w,w.__data__,j,_),ct=Ao(w,r),rt=0,vt=$.length;rt<vt;++rt)(P=$[rt])&&Jo(P,e,r,rt,$,ct);u.push($),d.push(w)}return new Es(u,d,e,r)},selectChild:Xa.selectChild,selectChildren:Xa.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,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new Es(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),d=new Array(a),y=0;y<u;++y)for(var w,_=e[y],D=r[y],j=_.length,P=d[y]=new Array(j),$=0;$<j;++$)(w=_[$]||D[$])&&(P[$]=w);for(;y<a;++y)d[y]=e[y];return new Es(d,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=hg(),a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)if(d=y[_]){var D=Ao(d,e);Jo(d,t,r,_,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new Es(a,this._parents,t,r)},call:Xa.call,nodes:Xa.nodes,node:Xa.node,size:Xa.size,empty:Xa.empty,each:Xa.each,on:function(t,e){var r=this._id;return arguments.length<2?Ao(this.node(),r).on.on(t):this.each(V4(r,t,e))},attr:function(t,e){var r=Au(t),a=r==="transform"?ng:rg;return this.attrTween(t,typeof e=="function"?(r.local?Dh:H4)(r,a,Pc(this,"attr."+t,e)):e==null?(r.local?Km:Qm)(r):(r.local?q4: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=Au(t);return this.tween(r,(a.local?G1:og)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Gm:rg;return e==null?this.styleTween(t,function(c,u){var d,y,w;return function(){var _=Mu(this,c),D=(this.style.removeProperty(c),Mu(this,c));return _===D?null:_===d&&D===y?w:w=u(d=_,y=D)}}(t,a)).on("end.style."+t,Mo(t)):typeof e=="function"?this.styleTween(t,function(c,u,d){var y,w,_;return function(){var D=Mu(this,c),j=d(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=Mu(this,c)),D===P?null:D===y&&P===w?_:(w=P,_=u(y=D,j))}}(t,a,Pc(this,"style."+t,e))).each(function(c,u){var d,y,w,_,D="style."+u,j="end."+D;return function(){var P=ts(this,c),$=P.on,ct=P.value[D]==null?_||(_=Mo(u)):void 0;$===d&&w===ct||(y=(d=$).copy()).on(j,w=ct),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,d){var y,w,_=d+"";return function(){var D=Mu(this,c);return D===_?null:D===y?w:w=u(y=D,d)}}(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,lg(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}}(Pc(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,X1(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,d=c.length;u<d;++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"?sg:cg)(e,t)):Ao(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?$4:tv)(e,t)):Ao(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(W4(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;ts(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,d){var y={value:d},w={value:function(){--c==0&&u()}};r.each(function(){var _=ts(this,a),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),_.on=e}),c===0&&u()})},[Symbol.iterator]:Xa[Symbol.iterator]};var fg={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function G4(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 dg(){}function pg(t){return t==null?dg:function(){return this.querySelector(t)}}function Lh(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function X4(){return[]}function gg(t){return t==null?X4:function(){return this.querySelectorAll(t)}}function Bh(t){return function(){return this.matches(t)}}function yg(t){return function(e){return e.matches(t)}}_n.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,d=e.__transition,y=!0;if(d){for(u in r=r==null?null:r+"",d)(a=d[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 d[u]):y=!1;y&&delete e.__transition}})(this,t)})},_n.prototype.transition=function(t){var e,r;t instanceof Es?(e=t._id,t=t._name):(e=hg(),(r=fg).time=Ch(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)(d=y[_])&&Jo(d,t,e,_,y,r||G4(d,e));return new Es(a,this._parents,t,e)};var Z4=Array.prototype.find;function Oh(){return this.firstElementChild}var Q4=Array.prototype.filter;function iv(){return Array.from(this.children)}function av(t){return new Array(t.length)}function sc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ih(t){return function(){return t}}function Rh(t,e,r,a,c,u){for(var d,y=0,w=e.length,_=u.length;y<_;++y)(d=e[y])?(d.__data__=u[y],a[y]=d):r[y]=new sc(t,u[y]);for(;y<w;++y)(d=e[y])&&(c[y]=d)}function Fh(t,e,r,a,c,u,d){var y,w,_,D=new Map,j=e.length,P=u.length,$=new Array(j);for(y=0;y<j;++y)(w=e[y])&&($[y]=_=d.call(w,w.__data__,y,e)+"",D.has(_)?c[y]=w:D.set(_,w));for(y=0;y<P;++y)_=d.call(t,u[y],y,u)+"",(w=D.get(_))?(a[y]=w,w.__data__=u[y],D.delete(_)):r[y]=new sc(t,u[y]);for(y=0;y<j;++y)(w=e[y])&&D.get($[y])===w&&(c[y]=w)}function Z1(t){return t.__data__}function mg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function K4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}sc.prototype={constructor:sc,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 Ph="http://www.w3.org/1999/xhtml";const ov={svg:"http://www.w3.org/2000/svg",xhtml:Ph,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Q1(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 vg(t){return function(){this.removeAttribute(t)}}function J4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bg(t,e){return function(){this.setAttribute(t,e)}}function t5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _g(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function e5(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 K1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function n5(t){return function(){this.style.removeProperty(t)}}function r5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function i5(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Vu(t,e){return t.style.getPropertyValue(e)||K1(t).getComputedStyle(t,null).getPropertyValue(e)}function a5(t){return function(){delete this[t]}}function o5(t,e){return function(){this[t]=e}}function xg(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 wg(t){return t.classList||new kg(t)}function kg(t){this._node=t,this._names=sv(t.getAttribute("class")||"")}function jc(t,e){for(var r=wg(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function cv(t,e){for(var r=wg(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function uv(t){return function(){jc(this,t)}}function s5(t){return function(){cv(this,t)}}function J1(t,e){return function(){(e.apply(this,arguments)?jc:cv)(this,t)}}function lv(){this.textContent=""}function Tg(t){return function(){this.textContent=t}}function c5(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function jh(){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 t0(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Ph&&e.documentElement.namespaceURI===Ph?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=Q1(t);return(e.local?gv:t0)(e)}function u5(){return null}function e0(){var t=this.parentNode;t&&t.removeChild(this)}function Yc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Gu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function l5(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 h5(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(_){w.call(this,_,this.__data__)}}(e);if(c){for(var d=0,y=c.length;d<y;++d)if((a=c[d]).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 n0(t,e,r){var a=K1(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 n0(this,t,e)}}function bv(t,e){return function(){return n0(this,t,e.apply(this,arguments))}}kg.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 Yh=[null];function No(t,e){this._groups=t,this._parents=e}function _v(){return new No([[document.documentElement]],Yh)}No.prototype=_v.prototype={constructor:No,select:function(t){typeof t!="function"&&(t=pg(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d,y=e[c],w=y.length,_=a[c]=new Array(w),D=0;D<w;++D)(u=y[D])&&(d=t.call(u,u.__data__,D,y))&&("__data__"in u&&(d.__data__=u.__data__),_[D]=d);return new No(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(D){return function(){return Lh(D.apply(this,arguments))}}(t):gg(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var d,y=e[u],w=y.length,_=0;_<w;++_)(d=y[_])&&(a.push(t.call(d,d.__data__,_,y)),c.push(d));return new No(a,c)},selectChild:function(t){return this.select(t==null?Oh:function(e){return function(){return Z4.call(this.children,e)}}(typeof t=="function"?t:yg(t)))},selectChildren:function(t){return this.selectAll(t==null?iv:function(e){return function(){return Q4.call(this.children,e)}}(typeof t=="function"?t:yg(t)))},filter:function(t){typeof t!="function"&&(t=Bh(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new No(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Z1);var r=e?Fh:Rh,a=this._parents,c=this._groups;typeof t!="function"&&(t=Ih(t));for(var u=c.length,d=new Array(u),y=new Array(u),w=new Array(u),_=0;_<u;++_){var D=a[_],j=c[_],P=j.length,$=mg(t.call(D,D&&D.__data__,_,a)),ct=$.length,rt=y[_]=new Array(ct),vt=d[_]=new Array(ct),ft=w[_]=new Array(P);r(D,j,rt,vt,ft,$,e);for(var Et,Nt,Rt=0,$t=0;Rt<ct;++Rt)if(Et=rt[Rt]){for(Rt>=$t&&($t=Rt+1);!(Nt=vt[$t])&&++$t<ct;);Et._next=Nt||null}}return(d=new No(d,a))._enter=y,d._exit=w,d},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,d=Math.min(c,u),y=new Array(c),w=0;w<d;++w)for(var _,D=r[w],j=a[w],P=D.length,$=y[w]=new Array(P),ct=0;ct<P;++ct)(_=D[ct]||j[ct])&&($[ct]=_);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,d=c[u];--u>=0;)(a=c[u])&&(d&&4^a.compareDocumentPosition(d)&&d.parentNode.insertBefore(a,d),d=a);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=K4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var d,y=r[u],w=y.length,_=c[u]=new Array(w),D=0;D<w;++D)(d=y[D])&&(_[D]=d);_.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 d=a[c];if(d)return d}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],d=0,y=u.length;d<y;++d)(c=u[d])&&t.call(c,c.__data__,d,u);return this},attr:function(t,e){var r=Q1(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?J4:vg:typeof e=="function"?r.local?e5:_g:r.local?t5:bg)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?n5:typeof e=="function"?i5:r5)(t,e,r==null?"":r)):Vu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?a5:typeof e=="function"?xg:o5)(t,e)):this.node()[t]},classed:function(t,e){var r=sv(t+"");if(arguments.length<2){for(var a=wg(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?J1:e?uv:s5)(r,e))},text:function(t){return arguments.length?this.each(t==null?lv:(typeof t=="function"?c5:Tg)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?jh:(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?u5:typeof e=="function"?e:pg(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(e0)},clone:function(t){return this.select(t?Gu:Yc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=l5(t+""),d=u.length;if(!(arguments.length<2)){for(y=e?mv:h5,a=0;a<d;++a)this.each(y(u[a],e,r));return this}var y=this.node().__on;if(y){for(var w,_=0,D=y.length;_<D;++_)for(a=0,w=y[_];a<d;++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,d=c.length;u<d;++u)(a=c[u])&&(yield a)}};const zh=_v;var f5={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 r0(a)}function r0(t){this._=t}function d5(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 Cg(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function i0(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=f5,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}r0.prototype=xv.prototype={constructor:r0,on:function(t,e){var r,a=this._,c=d5(t+"",a),u=-1,d=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<d;)if(r=(t=c[u]).type)a[r]=i0(a[r],t.name,e);else if(e==null)for(r in a)a[r]=i0(a[r],t.name,null);return this}for(;++u<d;)if((r=(t=c[u]).type)&&(r=Cg(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new r0(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 p5=xv;var a0,cc,Xu=0,uc=0,Zu=0,Uh=0,lc=0,o0=0,qh=typeof performance=="object"&&performance.now?performance:Date,wv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Eg(){return lc||(wv(g5),lc=qh.now()+o0)}function g5(){lc=0}function s0(){this._call=this._time=this._next=null}function Sg(t,e,r){var a=new s0;return a.restart(t,e,r),a}function Qu(){lc=(Uh=qh.now())+o0,Xu=uc=0;try{(function(){Eg(),++Xu;for(var t,e=a0;e;)(t=lc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xu})()}finally{Xu=0,function(){for(var t,e,r=a0,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:a0=e);cc=t,c0(a)}(),lc=0}}function kv(){var t=qh.now(),e=t-Uh;e>1e3&&(o0-=e,Uh=t)}function c0(t){Xu||(uc&&(uc=clearTimeout(uc)),t-lc>24?(t<1/0&&(uc=setTimeout(Qu,t-qh.now()-o0)),Zu&&(Zu=clearInterval(Zu))):(Zu||(Uh=qh.now(),Zu=setInterval(kv,1e3)),Xu=1,wv(Qu)))}function Ag(t,e,r){var a=new s0;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}s0.prototype=Sg.prototype={constructor:s0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Eg():+r)+(e==null?0:+e),this._next||cc===this||(cc?cc._next=this:a0=this,cc=this),this._call=t,this._time=r,c0()},stop:function(){this._call&&(this._call=null,this._time=1/0,c0())}};var y5=p5("start","end","cancel","interrupt"),m5=[];function u0(t,e,r,a,c,u){var d=t.__transition;if(d){if(r in d)return}else t.__transition={};(function(y,w,_){var D,j=y.__transition;function P(rt){var vt,ft,Et,Nt;if(_.state!==1)return ct();for(vt in j)if((Nt=j[vt]).name===_.name){if(Nt.state===3)return Ag(P);Nt.state===4?(Nt.state=6,Nt.timer.stop(),Nt.on.call("interrupt",y,y.__data__,Nt.index,Nt.group),delete j[vt]):+vt<w&&(Nt.state=6,Nt.timer.stop(),Nt.on.call("cancel",y,y.__data__,Nt.index,Nt.group),delete j[vt])}if(Ag(function(){_.state===3&&(_.state=4,_.timer.restart($,_.delay,_.time),$(rt))}),_.state=2,_.on.call("start",y,y.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(Et=_.tween.length),vt=0,ft=-1;vt<Et;++vt)(Nt=_.tween[vt].value.call(y,y.__data__,_.index,_.group))&&(D[++ft]=Nt);D.length=ft+1}}function $(rt){for(var vt=rt<_.duration?_.ease.call(null,rt/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,Et=D.length;++ft<Et;)D[ft].call(y,vt);_.state===5&&(_.on.call("end",y,y.__data__,_.index,_.group),ct())}function ct(){for(var rt in _.state=6,_.timer.stop(),delete j[w],j)return;delete y.__transition}j[w]=_,_.timer=Sg(function(rt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=rt&&P(rt-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:y5,tween:m5,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function l0(t,e){var r=Do(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function es(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 Ss(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var h0,Hh=180/Math.PI,Mg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tv(t,e,r,a,c,u){var d,y,w;return(d=Math.sqrt(t*t+e*e))&&(t/=d,e/=d),(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,d=-d),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Hh,skewX:Math.atan(w)*Hh,scaleX:d,scaleY:y}}function Cv(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,d){var y=[],w=[];return u=t(u),d=t(d),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push("translate(",null,e,null,r);ct.push({i:rt-4,x:Ss(_,j)},{i:rt-2,x:Ss(D,P)})}else(j||P)&&$.push("translate("+j+e+P+r)}(u.translateX,u.translateY,d.translateX,d.translateY,y,w),function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(c(j)+"rotate(",null,a)-2,x:Ss(_,D)})):D&&j.push(c(j)+"rotate("+D+a)}(u.rotate,d.rotate,y,w),function(_,D,j,P){_!==D?P.push({i:j.push(c(j)+"skewX(",null,a)-2,x:Ss(_,D)}):D&&j.push(c(j)+"skewX("+D+a)}(u.skewX,d.skewX,y,w),function(_,D,j,P,$,ct){if(_!==j||D!==P){var rt=$.push(c($)+"scale(",null,",",null,")");ct.push({i:rt-4,x:Ss(_,j)},{i:rt-2,x:Ss(D,P)})}else j===1&&P===1||$.push(c($)+"scale("+j+","+P+")")}(u.scaleX,u.scaleY,d.scaleX,d.scaleY,y,w),u=d=null,function(_){for(var D,j=-1,P=w.length;++j<P;)y[(D=w[j]).i]=D.x(_);return y.join("")}}}var v5=Cv(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Mg:Tv(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),b5=Cv(function(t){return t==null?Mg:(h0||(h0=document.createElementNS("http://www.w3.org/2000/svg","g")),h0.setAttribute("transform",t),(t=h0.transform.baseVal.consolidate())?Tv((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Mg)},", ",")",")");function _5(t,e){var r,a;return function(){var c=es(this,t),u=c.tween;if(u!==r){for(var d=0,y=(a=r=u).length;d<y;++d)if(a[d].name===e){(a=a.slice()).splice(d,1);break}}c.tween=a}}function Ev(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=es(this,t),d=u.tween;if(d!==a){c=(a=d).slice();for(var y={name:e,value:r},w=0,_=c.length;w<_;++w)if(c[w].name===e){c[w]=y;break}w===_&&c.push(y)}u.tween=c}}function Ng(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 Do(c,a).value[e]}}function Dg(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 ns(){}var f0=.7,$h=1.4285714285714286,Ku="\\s*([+-]?\\d+)\\s*",Ju="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x5=/^#([0-9a-f]{3,8})$/,Lo=new RegExp("^rgb\\("+[Ku,Ku,Ku]+"\\)$"),As=new RegExp("^rgb\\("+[rs,rs,rs]+"\\)$"),Av=new RegExp("^rgba\\("+[Ku,Ku,Ku,Ju]+"\\)$"),d0=new RegExp("^rgba\\("+[rs,rs,rs,Ju]+"\\)$"),zc=new RegExp("^hsl\\("+[Ju,rs,rs]+"\\)$"),Lg=new RegExp("^hsla\\("+[Ju,rs,rs,Ju]+"\\)$"),p0={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 g0(){return this.rgb().formatHex()}function Bg(){return this.rgb().formatRgb()}function Wh(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=x5.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?y0(e):r===3?new Oa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Vh(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Vh(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=Lo.exec(t))?new Oa(e[1],e[2],e[3],1):(e=As.exec(t))?new Oa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Av.exec(t))?Vh(e[1],e[2],e[3],e[4]):(e=d0.exec(t))?Vh(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zc.exec(t))?Xh(e[1],e[2]/100,e[3]/100,1):(e=Lg.exec(t))?Xh(e[1],e[2]/100,e[3]/100,e[4]):p0.hasOwnProperty(t)?y0(p0[t]):t==="transparent"?new Oa(NaN,NaN,NaN,0):null}function y0(t){return new Oa(t>>16&255,t>>8&255,255&t,1)}function Vh(t,e,r,a){return a<=0&&(t=e=r=NaN),new Oa(t,e,r,a)}function Vi(t){return t instanceof ns||(t=Wh(t)),t?new Oa((t=t.rgb()).r,t.g,t.b,t.opacity):new Oa}function Gh(t,e,r,a){return arguments.length===1?Vi(t):new Oa(t,e,r,a==null?1:a)}function Oa(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Mv(){return"#"+Uc(this.r)+Uc(this.g)+Uc(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 Uc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Xh(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 Og(t){if(t instanceof Bo)return new Bo(t.h,t.s,t.l,t.opacity);if(t instanceof ns||(t=Wh(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),d=NaN,y=u-c,w=(u+c)/2;return y?(d=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,d*=60):y=w>0&&w<1?0:d,new Bo(d,y,w,t.opacity)}function Bo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Ms(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Dg(ns,Wh,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g0,formatHex:g0,formatHsl:function(){return Og(this).formatHsl()},formatRgb:Bg,toString:Bg}),Dg(Oa,Gh,Sv(ns,{brighter:function(t){return t=t==null?$h:Math.pow($h,t),new Oa(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?f0:Math.pow(f0,t),new Oa(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})),Dg(Bo,function(t,e,r,a){return arguments.length===1?Og(t):new Bo(t,e,r,a==null?1:a)},Sv(ns,{brighter:function(t){return t=t==null?$h:Math.pow($h,t),new Bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?f0:Math.pow(f0,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 Oa(Ms(t>=240?t-240:t+120,c,a),Ms(t,c,a),Ms(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 Ig=t=>()=>t;function Rg(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Ig(isNaN(t)?e:t)}const Fg=function t(e){var r=function(c){return(c=+c)==1?Rg:function(u,d){return d-u?function(y,w,_){return y=Math.pow(y,_),w=Math.pow(w,_)-y,_=1/_,function(D){return Math.pow(y+D*w,_)}}(u,d,c):Ig(isNaN(u)?d:u)}}(e);function a(c,u){var d=r((c=Gh(c)).r,(u=Gh(u)).r),y=r(c.g,u.g),w=r(c.b,u.b),_=Rg(c.opacity,u.opacity);return function(D){return c.r=d(D),c.g=y(D),c.b=w(D),c.opacity=_(D),c+""}}return a.gamma=t,a}(1);var m0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v0=new RegExp(m0.source,"g");function w5(t,e){var r,a,c,u=m0.lastIndex=v0.lastIndex=0,d=-1,y=[],w=[];for(t+="",e+="";(r=m0.exec(t))&&(a=v0.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),y[d]?y[d]+=c:y[++d]=c),(r=r[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,w.push({i:d,x:Ss(r,a)})),u=v0.lastIndex;return u<e.length&&(c=e.slice(u),y[d]?y[d]+=c:y[++d]=c),y.length<2?w[0]?function(_){return function(D){return _(D)+""}}(w[0].x):function(_){return function(){return _}}(e):(e=w.length,function(_){for(var D,j=0;j<e;++j)y[(D=w[j]).i]=D.x(_);return y.join("")})}function Dv(t,e){var r;return(typeof e=="number"?Ss:e instanceof Wh?Fg:(r=Wh(e))?(e=r,Fg):w5)(t,e)}function k5(t){return function(){this.removeAttribute(t)}}function Lv(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pg(t,e,r){var a,c,u=r+"";return function(){var d=this.getAttribute(t);return d===u?null:d===a?c:c=e(a=d,r)}}function Bv(t,e,r){var a,c,u=r+"";return function(){var d=this.getAttributeNS(t.space,t.local);return d===u?null:d===a?c:c=e(a=d,r)}}function Ov(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttribute(t))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttribute(t)}}function Iv(t,e,r){var a,c,u;return function(){var d,y,w=r(this);if(w!=null)return(d=this.getAttributeNS(t.space,t.local))===(y=w+"")?null:d===a&&y===c?u:(c=y,u=e(a=d,w));this.removeAttributeNS(t.space,t.local)}}function jg(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 T5(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&jg(t,u)),r}return c._value=e,c}function C5(t,e){return function(){l0(this,t).delay=+e.apply(this,arguments)}}function Yg(t,e){return e=+e,function(){l0(this,t).delay=e}}function zg(t,e){return function(){es(this,t).duration=+e.apply(this,arguments)}}function E5(t,e){return e=+e,function(){es(this,t).duration=e}}function Pv(t,e){if(typeof e!="function")throw new Error;return function(){es(this,t).ease=e}}function jv(t,e,r){var a,c,u=function(d){return(d+"").trim().split(/^|\s+/).every(function(y){var w=y.indexOf(".");return w>=0&&(y=y.slice(0,w)),!y||y==="start"})}(e)?l0:es;return function(){var d=u(this,t),y=d.on;y!==a&&(c=(a=y).copy()).on(e,r),d.on=c}}var Yv=zh.prototype.constructor;function b0(t){return function(){this.style.removeProperty(t)}}function Ug(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Ai(t,e,r){var a,c;function u(){var d=e.apply(this,arguments);return d!==c&&(a=(c=d)&&Ug(t,d,r)),a}return u._value=e,u}function qg(t){return function(e){this.textContent=t.call(this,e)}}function qc(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&qg(c)),e}return a._value=t,a}var S5=0;function is(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Hg(){return++S5}var Ns=zh.prototype;is.prototype={constructor:is,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=pg(t));for(var a=this._groups,c=a.length,u=new Array(c),d=0;d<c;++d)for(var y,w,_=a[d],D=_.length,j=u[d]=new Array(D),P=0;P<D;++P)(y=_[P])&&(w=t.call(y,y.__data__,P,_))&&("__data__"in y&&(w.__data__=y.__data__),j[P]=w,u0(j[P],e,r,P,j,Do(y,r)));return new is(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=gg(t));for(var a=this._groups,c=a.length,u=[],d=[],y=0;y<c;++y)for(var w,_=a[y],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,$=t.call(w,w.__data__,j,_),ct=Do(w,r),rt=0,vt=$.length;rt<vt;++rt)(P=$[rt])&&u0(P,e,r,rt,$,ct);u.push($),d.push(w)}return new is(u,d,e,r)},selectChild:Ns.selectChild,selectChildren:Ns.selectChildren,filter:function(t){typeof t!="function"&&(t=Bh(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,d=e[c],y=d.length,w=a[c]=[],_=0;_<y;++_)(u=d[_])&&t.call(u,u.__data__,_,d)&&w.push(u);return new is(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),d=new Array(a),y=0;y<u;++y)for(var w,_=e[y],D=r[y],j=_.length,P=d[y]=new Array(j),$=0;$<j;++$)(w=_[$]||D[$])&&(P[$]=w);for(;y<a;++y)d[y]=e[y];return new is(d,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=Hg(),a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)if(d=y[_]){var D=Do(d,e);u0(d,t,r,_,y,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new is(a,this._parents,t,r)},call:Ns.call,nodes:Ns.nodes,node:Ns.node,size:Ns.size,empty:Ns.empty,each:Ns.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=Q1(t),a=r==="transform"?b5:Dv;return this.attrTween(t,typeof e=="function"?(r.local?Iv:Ov)(r,a,Ng(this,"attr."+t,e)):e==null?(r.local?Lv:k5)(r):(r.local?Bv:Pg)(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=Q1(t);return this.tween(r,(a.local?Fv:T5)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?v5:Dv;return e==null?this.styleTween(t,function(c,u){var d,y,w;return function(){var _=Vu(this,c),D=(this.style.removeProperty(c),Vu(this,c));return _===D?null:_===d&&D===y?w:w=u(d=_,y=D)}}(t,a)).on("end.style."+t,b0(t)):typeof e=="function"?this.styleTween(t,function(c,u,d){var y,w,_;return function(){var D=Vu(this,c),j=d(this),P=j+"";return j==null&&(this.style.removeProperty(c),P=j=Vu(this,c)),D===P?null:D===y&&P===w?_:(w=P,_=u(y=D,j))}}(t,a,Ng(this,"style."+t,e))).each(function(c,u){var d,y,w,_,D="style."+u,j="end."+D;return function(){var P=es(this,c),$=P.on,ct=P.value[D]==null?_||(_=b0(u)):void 0;$===d&&w===ct||(y=(d=$).copy()).on(j,w=ct),P.on=y}}(this._id,t)):this.styleTween(t,function(c,u,d){var y,w,_=d+"";return function(){var D=Vu(this,c);return D===_?null:D===y?w:w=u(y=D,d)}}(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,Ai(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}}(Ng(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,qc(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,d=c.length;u<d;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?_5:Ev)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?C5:Yg)(e,t)):Do(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zg:E5)(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;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,d){var y={value:d},w={value:function(){--c==0&&u()}};r.each(function(){var _=es(this,a),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(y),e._.interrupt.push(y),e._.end.push(w)),_.on=e}),c===0&&u()})},[Symbol.iterator]:Ns[Symbol.iterator]};var _0={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Hc(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}zh.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,d=e.__transition,y=!0;if(d){for(u in r=r==null?null:r+"",d)(a=d[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 d[u]):y=!1;y&&delete e.__transition}})(this,t)})},zh.prototype.transition=function(t){var e,r;t instanceof is?(e=t._id,t=t._name):(e=Hg(),(r=_0).time=Eg(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var d,y=a[u],w=y.length,_=0;_<w;++_)(d=y[_])&&u0(d,t,e,_,y,r||Hc(d,e));return new is(a,this._parents,t,e)};var Zh="comm",$g="rule",Wg="decl",$c=Math.abs,Wc=String.fromCharCode;function tl(t){return t.trim()}function x0(t,e,r){return t.replace(e,r)}function zv(t,e){return t.indexOf(e)}function Ds(t,e){return 0|t.charCodeAt(e)}function el(t,e,r){return t.slice(e,r)}function Ls(t){return t.length}function Vg(t){return t.length}function w0(t,e){return e.push(t),t}function Gg(t,e){for(var r="",a=Vg(t),c=0;c<a;c++)r+=e(t[c],c,t,e)||"";return r}function A5(t,e,r,a){switch(t.type){case"@import":case Wg:return t.return=t.return||t.value;case Zh:return"";case"@keyframes":return t.return=t.value+"{"+Gg(t.children,a)+"}";case $g:t.value=t.props.join(",")}return Ls(r=Gg(t.children,a))?t.return=t.value+"{"+r+"}":""}var k0=1,nl=1,Uv=0,Za=0,ei=0,rl="";function T0(t,e,r,a,c,u,d){return{value:t,root:e,parent:r,type:a,props:c,children:u,line:k0,column:nl,length:d,return:""}}function qv(){return ei=Za>0?Ds(rl,--Za):0,nl--,ei===10&&(nl=1,k0--),ei}function Oo(){return ei=Za<Uv?Ds(rl,Za++):0,nl++,ei===10&&(nl=1,k0++),ei}function hc(){return Ds(rl,Za)}function Qh(){return Za}function C0(t,e){return el(rl,t,e)}function E0(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 il(t){return tl(C0(Za-1,al(t===91?t+2:t===40?t+1:t)))}function Hv(t){for(;(ei=hc())&&ei<33;)Oo();return E0(t)>2||E0(ei)>3?"":" "}function S0(t,e){for(;--e&&Oo()&&!(ei<48||ei>102||ei>57&&ei<65||ei>70&&ei<97););return C0(t,Qh()+(e<6&&hc()==32&&Oo()==32))}function al(t){for(;Oo();)switch(ei){case t:return Za;case 34:case 39:t!==34&&t!==39&&al(ei);break;case 40:t===41&&al(t);break;case 92:Oo()}return Za}function $v(t,e){for(;Oo()&&t+ei!==57&&(t+ei!==84||hc()!==47););return"/*"+C0(e,Za-1)+"*"+Wc(t===47?t:Oo())}function Vc(t){for(;!E0(hc());)Oo();return C0(t,Za)}function Kh(t){return function(e){return rl="",e}(fc("",null,null,null,[""],t=function(e){return k0=nl=1,Uv=Ls(rl=e),Za=0,[]}(t),0,[0],t))}function fc(t,e,r,a,c,u,d,y,w){for(var _=0,D=0,j=d,P=0,$=0,ct=0,rt=1,vt=1,ft=1,Et=0,Nt="",Rt=c,$t=u,Mt=a,Kt=Nt;vt;)switch(ct=Et,Et=Oo()){case 40:if(ct!=108&&Kt.charCodeAt(j-1)==58){zv(Kt+=x0(il(Et),"&","&\f"),"&\f")!=-1&&(ft=-1);break}case 34:case 39:case 91:Kt+=il(Et);break;case 9:case 10:case 13:case 32:Kt+=Hv(ct);break;case 92:Kt+=S0(Qh()-1,7);continue;case 47:switch(hc()){case 42:case 47:w0(Wv($v(Oo(),Qh()),e,r),w);break;default:Kt+="/"}break;case 123*rt:y[_++]=Ls(Kt)*ft;case 125*rt:case 59:case 0:switch(Et){case 0:case 125:vt=0;case 59+D:$>0&&Ls(Kt)-j&&w0($>32?dc(Kt+";",a,r,j-1):dc(x0(Kt," ","")+";",a,r,j-2),w);break;case 59:Kt+=";";default:if(w0(Mt=Xg(Kt,e,r,_,D,c,y,Nt,Rt=[],$t=[],j),u),Et===123)if(D===0)fc(Kt,e,Mt,Mt,Rt,u,j,y,$t);else switch(P){case 100:case 109:case 115:fc(t,Mt,Mt,a&&w0(Xg(t,Mt,Mt,0,0,c,y,Nt,c,Rt=[],j),$t),c,$t,j,y,a?Rt:$t);break;default:fc(Kt,Mt,Mt,Mt,[""],$t,0,y,$t)}}_=D=$=0,rt=ft=1,Nt=Kt="",j=d;break;case 58:j=1+Ls(Kt),$=ct;default:if(rt<1){if(Et==123)--rt;else if(Et==125&&rt++==0&&qv()==125)continue}switch(Kt+=Wc(Et),Et*rt){case 38:ft=D>0?1:(Kt+="\f",-1);break;case 44:y[_++]=(Ls(Kt)-1)*ft,ft=1;break;case 64:hc()===45&&(Kt+=il(Oo())),P=hc(),D=j=Ls(Nt=Kt+=Vc(Qh())),Et++;break;case 45:ct===45&&Ls(Kt)==2&&(rt=0)}}return u}function Xg(t,e,r,a,c,u,d,y,w,_,D){for(var j=c-1,P=c===0?u:[""],$=Vg(P),ct=0,rt=0,vt=0;ct<a;++ct)for(var ft=0,Et=el(t,j+1,j=$c(rt=d[ct])),Nt=t;ft<$;++ft)(Nt=tl(rt>0?P[ft]+" "+Et:x0(Et,/&\f/g,P[ft])))&&(w[vt++]=Nt);return T0(t,e,r,c===0?$g:y,w,_,D)}function Wv(t,e,r){return T0(t,e,r,Zh,Wc(ei),el(t,2,-2),0)}function dc(t,e,r,a){return T0(t,e,r,Wg,el(t,0,a),el(t,a+1,-1),a)}const Zg="9.0.0";var Gc=f(7967),Vv=f(7856),Gv=f.n(Vv),Xv=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))})},Zv=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=Xv(e);return(a=(a=(a=a.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Qv=function(t,e){var r=t,a=!0;if(!e.flowchart||e.flowchart.htmlLabels!==!1&&e.flowchart.htmlLabels!=="false"||(a=!1),a){var c=e.securityLevel;c==="antiscript"||c==="strict"?r=Zv(r):c!=="loose"&&(r=(r=(r=Jh(r)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),r=Kv(r))}return r},Bs=function(t,e){return t&&(e.dompurifyConfig?Gv().sanitize(Qv(t,e),e.dompurifyConfig):Gv().sanitize(Qv(t,e)))},A0=/<br\s*\/?>/gi,Kv=function(t){return t.replace(/#br#/g,"<br/>")},Jh=function(t){return t.replace(A0,"#br#")},Gi=function(t){return t!=="false"&&t!==!1};const jn={getRows:function(t){if(!t)return 1;var e=Jh(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Bs,sanitizeTextOrArray:function(t,e){return typeof t=="string"?Bs(t,e):t.flat().map(function(r){return Bs(r,e)})},hasBreaks:function(t){return A0.test(t)},splitBreaks:function(t){return t.split(A0)},lineBreakRegex:A0,removeScript:Zv,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:Gi,removeEscapes:Xv};var Ot=f(8613),ba=function(t,e){return e?(0,Ot.adjust)(t,{s:-40,l:10}):(0,Ot.adjust)(t,{s:-40,l:-10})};function tf(t){return tf=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},tf(t)}function Qg(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 ef=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?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,Ot.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,Ot.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ba(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ba(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ba(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ba(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,Ot.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,Ot.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,Ot.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,Ot.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,Ot.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,Ot.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,Ot.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,Ot.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,Ot.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,Ot.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,Ot.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,Ot.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,Ot.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,Ot.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,Ot.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,Ot.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,Ot.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,Ot.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,Ot.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,Ot.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,Ot.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,Ot.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,Ot.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,Ot.adjust)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,Ot.adjust)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,Ot.adjust)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,Ot.adjust)(this.primaryColor,{h:60}),this.git7=this.git7||(0,Ot.adjust)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,Ot.lighten)(this.git0,25),this.git1=(0,Ot.lighten)(this.git1,25),this.git2=(0,Ot.lighten)(this.git2,25),this.git3=(0,Ot.lighten)(this.git3,25),this.git4=(0,Ot.lighten)(this.git4,25),this.git5=(0,Ot.lighten)(this.git5,25),this.git6=(0,Ot.lighten)(this.git6,25),this.git7=(0,Ot.lighten)(this.git7,25)):(this.git0=(0,Ot.darken)(this.git0,25),this.git1=(0,Ot.darken)(this.git1,25),this.git2=(0,Ot.darken)(this.git2,25),this.git3=(0,Ot.darken)(this.git3,25),this.git4=(0,Ot.darken)(this.git4,25),this.git5=(0,Ot.darken)(this.git5,25),this.git6=(0,Ot.darken)(this.git6,25),this.git7=(0,Ot.darken)(this.git7,25)),this.gitInv0=this.gitInv0||(0,Ot.invert)(this.git0),this.gitInv1=this.gitInv1||(0,Ot.invert)(this.git1),this.gitInv2=this.gitInv2||(0,Ot.invert)(this.git2),this.gitInv3=this.gitInv3||(0,Ot.invert)(this.git3),this.gitInv4=this.gitInv4||(0,Ot.invert)(this.git4),this.gitInv5=this.gitInv5||(0,Ot.invert)(this.git5),this.gitInv6=this.gitInv6||(0,Ot.invert)(this.git6),this.gitInv7=this.gitInv7||(0,Ot.invert)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(tf(a)==="object"){var u=Object.keys(a);u.forEach(function(d){c[d]=a[d]}),this.updateColors(),u.forEach(function(d){c[d]=a[d]})}else this.updateColors()}}],r&&Qg(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function M0(t){return M0=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},M0(t)}function ol(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 Kg=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,Ot.lighten)(this.primaryColor,16),this.tertiaryColor=(0,Ot.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,Ot.invert)(this.background),this.secondaryBorderColor=ba(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ba(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Ot.invert)(this.primaryColor),this.secondaryTextColor=(0,Ot.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Ot.invert)(this.tertiaryColor),this.lineColor=(0,Ot.invert)(this.background),this.textColor=(0,Ot.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,Ot.lighten)((0,Ot.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,Ot.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,Ot.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,Ot.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,Ot.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,Ot.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,Ot.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,Ot.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,Ot.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Ot.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Ot.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Ot.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Ot.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Ot.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,Ot.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,Ot.lighten)(this.secondaryColor,20),this.git1=(0,Ot.lighten)(this.pie2||this.secondaryColor,20),this.git2=(0,Ot.lighten)(this.pie3||this.tertiaryColor,20),this.git3=(0,Ot.lighten)(this.pie4||(0,Ot.adjust)(this.primaryColor,{h:-30}),20),this.git4=(0,Ot.lighten)(this.pie5||(0,Ot.adjust)(this.primaryColor,{h:-60}),20),this.git5=(0,Ot.lighten)(this.pie6||(0,Ot.adjust)(this.primaryColor,{h:-90}),10),this.git6=(0,Ot.lighten)(this.pie7||(0,Ot.adjust)(this.primaryColor,{h:60}),10),this.git7=(0,Ot.lighten)(this.pie8||(0,Ot.adjust)(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||(0,Ot.invert)(this.git0),this.gitInv1=this.gitInv1||(0,Ot.invert)(this.git1),this.gitInv2=this.gitInv2||(0,Ot.invert)(this.git2),this.gitInv3=this.gitInv3||(0,Ot.invert)(this.git3),this.gitInv4=this.gitInv4||(0,Ot.invert)(this.git4),this.gitInv5=this.gitInv5||(0,Ot.invert)(this.git5),this.gitInv6=this.gitInv6||(0,Ot.invert)(this.git6),this.gitInv7=this.gitInv7||(0,Ot.invert)(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(M0(a)==="object"){var u=Object.keys(a);u.forEach(function(d){c[d]=a[d]}),this.updateColors(),u.forEach(function(d){c[d]=a[d]})}else this.updateColors()}}],r&&ol(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N0(t){return N0=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},N0(t)}function D0(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 Jg=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,Ot.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,Ot.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=ba(this.primaryColor,this.darkMode),this.secondaryBorderColor=ba(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ba(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Ot.invert)(this.primaryColor),this.secondaryTextColor=(0,Ot.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Ot.invert)(this.tertiaryColor),this.lineColor=(0,Ot.invert)(this.background),this.textColor=(0,Ot.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,Ot.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,Ot.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,Ot.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Ot.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Ot.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Ot.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Ot.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Ot.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,Ot.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,Ot.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,Ot.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,Ot.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,Ot.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,Ot.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,Ot.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,Ot.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,Ot.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,Ot.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,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,Ot.adjust)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,Ot.adjust)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,Ot.adjust)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,Ot.adjust)(this.primaryColor,{h:60}),this.git7=this.git7||(0,Ot.adjust)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,Ot.lighten)(this.git0,25),this.git1=(0,Ot.lighten)(this.git1,25),this.git2=(0,Ot.lighten)(this.git2,25),this.git3=(0,Ot.lighten)(this.git3,25),this.git4=(0,Ot.lighten)(this.git4,25),this.git5=(0,Ot.lighten)(this.git5,25),this.git6=(0,Ot.lighten)(this.git6,25),this.git7=(0,Ot.lighten)(this.git7,25)):(this.git0=(0,Ot.darken)(this.git0,25),this.git1=(0,Ot.darken)(this.git1,25),this.git2=(0,Ot.darken)(this.git2,25),this.git3=(0,Ot.darken)(this.git3,25),this.git4=(0,Ot.darken)(this.git4,25),this.git5=(0,Ot.darken)(this.git5,25),this.git6=(0,Ot.darken)(this.git6,25),this.git7=(0,Ot.darken)(this.git7,25)),this.gitInv0=this.gitInv0||(0,Ot.darken)((0,Ot.invert)(this.git0),25),this.gitInv1=this.gitInv1||(0,Ot.invert)(this.git1),this.gitInv2=this.gitInv2||(0,Ot.invert)(this.git2),this.gitInv3=this.gitInv3||(0,Ot.invert)(this.git3),this.gitInv4=this.gitInv4||(0,Ot.invert)(this.git4),this.gitInv5=this.gitInv5||(0,Ot.invert)(this.git5),this.gitInv6=this.gitInv6||(0,Ot.invert)(this.git6),this.gitInv7=this.gitInv7||(0,Ot.invert)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,Ot.invert)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,Ot.invert)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(N0(a)==="object"){var u=Object.keys(a);u.forEach(function(d){c[d]=a[d]}),this.updateColors(),u.forEach(function(d){c[d]=a[d]})}else this.updateColors()}}],r&&D0(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function L0(t){return L0=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},L0(t)}function Pi(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 M5=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,Ot.lighten)("#cde498",10),this.primaryBorderColor=ba(this.primaryColor,this.darkMode),this.secondaryBorderColor=ba(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ba(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Ot.invert)(this.primaryColor),this.secondaryTextColor=(0,Ot.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Ot.invert)(this.primaryColor),this.lineColor=(0,Ot.invert)(this.background),this.textColor=(0,Ot.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,Ot.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,Ot.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Ot.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Ot.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Ot.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Ot.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Ot.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,Ot.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,Ot.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,Ot.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,Ot.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,Ot.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,Ot.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,Ot.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,Ot.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,Ot.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,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,Ot.adjust)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,Ot.adjust)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,Ot.adjust)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,Ot.adjust)(this.primaryColor,{h:60}),this.git7=this.git7||(0,Ot.adjust)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,Ot.lighten)(this.git0,25),this.git1=(0,Ot.lighten)(this.git1,25),this.git2=(0,Ot.lighten)(this.git2,25),this.git3=(0,Ot.lighten)(this.git3,25),this.git4=(0,Ot.lighten)(this.git4,25),this.git5=(0,Ot.lighten)(this.git5,25),this.git6=(0,Ot.lighten)(this.git6,25),this.git7=(0,Ot.lighten)(this.git7,25)):(this.git0=(0,Ot.darken)(this.git0,25),this.git1=(0,Ot.darken)(this.git1,25),this.git2=(0,Ot.darken)(this.git2,25),this.git3=(0,Ot.darken)(this.git3,25),this.git4=(0,Ot.darken)(this.git4,25),this.git5=(0,Ot.darken)(this.git5,25),this.git6=(0,Ot.darken)(this.git6,25),this.git7=(0,Ot.darken)(this.git7,25)),this.gitInv0=this.gitInv0||(0,Ot.invert)(this.git0),this.gitInv1=this.gitInv1||(0,Ot.invert)(this.git1),this.gitInv2=this.gitInv2||(0,Ot.invert)(this.git2),this.gitInv3=this.gitInv3||(0,Ot.invert)(this.git3),this.gitInv4=this.gitInv4||(0,Ot.invert)(this.git4),this.gitInv5=this.gitInv5||(0,Ot.invert)(this.git5),this.gitInv6=this.gitInv6||(0,Ot.invert)(this.git6),this.gitInv7=this.gitInv7||(0,Ot.invert)(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(L0(a)==="object"){var u=Object.keys(a);u.forEach(function(d){c[d]=a[d]}),this.updateColors(),u.forEach(function(d){c[d]=a[d]})}else this.updateColors()}}],r&&Pi(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function t2(t){return t2=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},t2(t)}function wr(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 N5=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,Ot.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,Ot.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=ba(this.primaryColor,this.darkMode),this.secondaryBorderColor=ba(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ba(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,Ot.invert)(this.primaryColor),this.secondaryTextColor=(0,Ot.invert)(this.secondaryColor),this.tertiaryTextColor=(0,Ot.invert)(this.tertiaryColor),this.lineColor=(0,Ot.invert)(this.background),this.textColor=(0,Ot.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,Ot.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,Ot.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,Ot.lighten)(this.contrast,30),this.sectionBkgColor2=(0,Ot.lighten)(this.contrast,30),this.taskBorderColor=(0,Ot.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,Ot.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,Ot.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,Ot.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,Ot.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,Ot.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,Ot.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,Ot.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,Ot.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,this.git0=(0,Ot.darken)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||(0,Ot.adjust)(this.primaryColor,{h:-30}),this.git4=this.pie5||(0,Ot.adjust)(this.primaryColor,{h:-60}),this.git5=this.pie6||(0,Ot.adjust)(this.primaryColor,{h:-90}),this.git6=this.pie7||(0,Ot.adjust)(this.primaryColor,{h:60}),this.git7=this.pie8||(0,Ot.adjust)(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||(0,Ot.invert)(this.git0),this.gitInv1=this.gitInv1||(0,Ot.invert)(this.git1),this.gitInv2=this.gitInv2||(0,Ot.invert)(this.git2),this.gitInv3=this.gitInv3||(0,Ot.invert)(this.git3),this.gitInv4=this.gitInv4||(0,Ot.invert)(this.git4),this.gitInv5=this.gitInv5||(0,Ot.invert)(this.git5),this.gitInv6=this.gitInv6||(0,Ot.invert)(this.git6),this.gitInv7=this.gitInv7||(0,Ot.invert)(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(t2(a)==="object"){var u=Object.keys(a);u.forEach(function(d){c[d]=a[d]}),this.updateColors(),u.forEach(function(d){c[d]=a[d]})}else this.updateColors()}}],r&&wr(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const as={base:{getThemeVariables:function(t){var e=new ef;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new Kg;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new Jg;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new M5;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new N5;return e.calculate(t),e}}};function Xc(t){return function(e){if(Array.isArray(e))return e2(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 e2(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)?e2(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 e2(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 n2(t){return n2=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},n2(t)}var sl={theme:"default",themeVariables:as.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"},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},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",showCommitLabel:!0,showBranches:!0}};sl.class.arrowMarkerAbsolute=sl.arrowMarkerAbsolute,sl.gitGraph.arrowMarkerAbsolute=sl.arrowMarkerAbsolute;var D5=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:n2(e[c])==="object"&&e[c]!==null?[].concat(Xc(a),[r+c],Xc(t(e[c],""))):[].concat(Xc(a),[r+c])},[])}(sl,"");const L5=sl;var Jv=void 0;function t3(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 e3(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=r2(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,d=!0,y=!1;return{s:function(){r=r.call(t)},n:function(){var w=r.next();return d=w.done,w},e:function(w){y=!0,u=w},f:function(){try{d||r.return==null||r.return()}finally{if(y)throw u}}}}function uo(t){return uo=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},uo(t)}function n3(t){return function(e){if(Array.isArray(e))return i2(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||r2(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 r2(t,e){if(t){if(typeof t=="string")return i2(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)?i2(t,e):void 0}}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 nf,B5={curveBasis:jr,curveBasisClosed:function(t){return new ya(t)},curveBasisOpen:function(t){return new ti(t)},curveLinear:so,curveLinearClosed:function(t){return new La(t)},curveMonotoneX:function(t){return new To(t)},curveMonotoneY:function(t){return new Qo(t)},curveNatural:function(t){return new dh(t)},curveStep:function(t){return new Ic(t,.5)},curveStepAfter:function(t){return new Ic(t,1)},curveStepBefore:function(t){return new Ic(t,0)}},B0=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,O5=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,I5=/\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(O5.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=B0.exec(t))!==null;)if(a.index===B0.lastIndex&&B0.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],d=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;c.push({type:u,args:d})}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(B0,"").replace(I5,`
|
|
`)).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/)?"gitGraph":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"},O0=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 d=e?e.apply(Jv,c):c[0];if(d in r)return r[d];var y=t.apply(void 0,c);return r[d]=y,y}},Io=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return B5[r]||e},cl=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},pc=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,a2=function(){return a3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+a3},o3=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)},ji=function t(e,r,a){var c=Object.assign({depth:2,clobber:!1},a),u=c.depth,d=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&&uo(e)==="object"&&uo(r)==="object"?Object.assign(e,r):r:(r!==void 0&&uo(e)==="object"&&uo(r)==="object"&&Object.keys(r).forEach(function(y){uo(r[y])!=="object"||e[y]!==void 0&&uo(e[y])!=="object"?(d||uo(e[y])!=="object"&&uo(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:d}))}),e)},R5=function(t,e){var r=e.text.replace(jn.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},F5=O0(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),jn.lineBreakRegex.test(t)))return t;var a=t.split(" "),c=[],u="";return a.forEach(function(d,y){var w=I0("".concat(d," "),r),_=I0(u,r);if(w>e){var D=P5(d,e,"-",r),j=D.hyphenatedStrings,P=D.remainingWord;c.push.apply(c,[u].concat(n3(j))),u=P}else _+w>=e?(c.push(u),u=d):u=[u,d].filter(Boolean).join(" ");y+1===a.length&&c.push(u)}),c.filter(function(d){return d!==""}).join(r.joinWith)},function(t,e,r){return"".concat(t,"-").concat(e,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)}),P5=O0(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=[],d="";return c.forEach(function(y,w){var _="".concat(d).concat(y);if(I0(_,a)>=e){var D=w+1,j=c.length===D,P="".concat(_).concat(r);u.push(j?_:P),d=""}else d=_}),{hyphenatedStrings:u,remainingWord:d}},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)}),I0=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),R0(t,e).width},R0=O0(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 d=["sans-serif",c],y=t.split(jn.lineBreakRegex),w=[],_=Ne("body");if(!_.remove)return{width:0,height:0,lineHeight:0};for(var D=_.append("svg"),j=0,P=d;j<P.length;j++){var $,ct=P[j],rt=0,vt={width:0,height:0,lineHeight:0},ft=e3(y);try{for(ft.s();!($=ft.n()).done;){var Et=$.value,Nt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Nt.text=Et;var Rt=R5(D,Nt).style("font-size",a).style("font-weight",u).style("font-family",ct),$t=(Rt._groups||Rt)[0][0].getBBox();vt.width=Math.round(Math.max(vt.width,$t.width)),rt=Math.round($t.height),vt.height+=rt,vt.lineHeight=Math.round(Math.max(vt.lineHeight,rt))}}catch(Mt){ft.e(Mt)}finally{ft.f()}w.push(vt)}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)}),s3=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},Ia=function(t,e,r,a){(function(c,u){var d,y=e3(u);try{for(y.s();!(d=y.n()).done;){var w=d.value;c.attr(w[0],w[1])}}catch(_){y.e(_)}finally{y.f()}})(t,s3(e,r,a))},F0=function t(e){g.debug("directiveSanitizer called with",e),uo(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]=c3(e[r])),D5.indexOf(r)<0?(g.debug("sanitize deleting option",r),delete e[r]):uo(e[r])==="object"&&(g.debug("sanitize deleting object",r),t(e[r]))}))},c3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Qn={assignWithDepth:ji,wrapLabel:F5,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),R0(t,e).height},calculateTextWidth:I0,calculateTextDimensions:R0,calculateSvgSizeAttrs:s3,configureSvgSize:Ia,detectInit:function(t,e){var r=r3(t,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(r)){var c=r.map(function(d){return d.args});F0(c),a=ji(a,n3(c))}else a=r.args;if(a){var u=i3(t,e);["config"].forEach(function(d){a[d]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),a[u]=a[d],delete a[d])})}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(d){a+=cl(d,r),r=d});var c=a/2,u=void 0;return r=void 0,e.forEach(function(d){if(r&&!u){var y=cl(d,r);if(y<c)c-=y;else{var w=c/y;w<=0&&(u=r),w>=1&&(u={x:d.x,y:d.y}),w>0&&w<1&&(u={x:(1-w)*r.x+w*d.x,y:(1-w)*r.y+w*d.y})}}r=d}),u}(t)},calcCardinalityPosition:function(t,e,r){var a;g.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach(function(_){cl(_,a),a=_});var c,u=25;a=void 0,e.forEach(function(_){if(a&&!c){var D=cl(_,a);if(D<u)u-=D;else{var j=u/D;j<=0&&(c=a),j>=1&&(c={x:_.x,y:_.y}),j>0&&j<1&&(c={x:(1-j)*a.x+j*_.x,y:(1-j)*a.y+j*_.y})}}a=_});var d=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)*d+(e[0].x+c.x)/2,w.y=-Math.cos(y)*d+(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){cl(D,a),a=D});var u,d=25+t;a=void 0,c.forEach(function(D){if(a&&!u){var j=cl(D,a);if(j<d)d-=j;else{var P=d/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:0,y:0};return _.x=Math.sin(w)*y+(c[0].x+u.x)/2,_.y=-Math.cos(w)*y+(c[0].y+u.y)/2,e==="start_left"&&(_.x=Math.sin(w+Math.PI)*y+(c[0].x+u.x)/2,_.y=-Math.cos(w+Math.PI)*y+(c[0].y+u.y)/2),e==="end_right"&&(_.x=Math.sin(w-Math.PI)*y+(c[0].x+u.x)/2-5,_.y=-Math.cos(w-Math.PI)*y+(c[0].y+u.y)/2-5),e==="end_left"&&(_.x=Math.sin(w)*y+(c[0].x+u.x)/2-5,_.y=-Math.cos(w)*y+(c[0].y+u.y)/2-5),_},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Gc.N)(r):r},getStylesFromArray:pc,generateId:a2,random:o3,memoize:O0,runFunc:function(t){for(var e,r=t.split("."),a=r.length-1,c=r[a],u=window,d=0;d<a;d++)if(!(u=u[r[d]]))return;for(var y=arguments.length,w=new Array(y>1?y-1:0),_=1;_<y;_++)w[_-1]=arguments[_];(e=u)[c].apply(e,w)},entityDecode:function(t){return nf=nf||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),nf.innerHTML=t,unescape(nf.textContent)},initIdGeneratior:function(){function t(a,c){(function(u,d){if(!(u instanceof d))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()}}])&&t3(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:F0,sanitizeCss:c3};function o2(t){return o2=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},o2(t)}var u3,rf=Object.freeze(L5),Mi=ji({},rf),af=[],P0=ji({},rf),j0=function(t,e){for(var r=ji({},t),a={},c=0;c<e.length;c++){var u=e[c];j5(u),a=ji(a,u)}if(r=ji(r,a),a.theme){var d=ji({},u3),y=ji(d.themeVariables||{},a.themeVariables);r.themeVariables=as[r.theme].getThemeVariables(y)}return P0=r,r},s2=function(){return ji({},Mi)},Wt=function(){return ji({},P0)},j5=function t(e){Object.keys(Mi.secure).forEach(function(r){e[Mi.secure[r]]!==void 0&&(g.debug("Denied attempt to modify a secure key ".concat(Mi.secure[r]),e[Mi.secure[r]]),delete e[Mi.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],o2(e[r])==="object"&&t(e[r])})},l3=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),af.push(t),j0(Mi,af)},Y0=function(){j0(Mi,af=[])};function c2(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 u2="classid-",z0=[],Ni={},h3=0,U0=[],of=function(t){return jn.sanitizeText(t,Wt())},sf=function(t){var e="",r=t;if(t.indexOf("~")>0){var a=t.split("~");r=a[0],e=jn.sanitizeText(a[1],Wt())}return{className:r,type:e}},l2=function(t){var e=sf(t);Ni[e.className]===void 0&&(Ni[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:u2+e.className+"-"+h3},h3++)},q0=function(t){for(var e=Object.keys(Ni),r=0;r<e.length;r++)if(Ni[e[r]].id===t)return Ni[e[r]].domId},f3=function(t,e){var r=sf(t).className,a=Ni[r];if(typeof e=="string"){var c=e.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(of(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(of(c)):c&&a.members.push(of(c))}},H0=function(t,e){t.split(",").forEach(function(r){var a=r;r[0].match(/\d/)&&(a=u2+a),Ni[a]!==void 0&&Ni[a].cssClasses.push(e)})},d3=function(t,e,r){var a=Wt(),c=t,u=q0(c);if(a.securityLevel==="loose"&&e!==void 0&&Ni[c]!==void 0){var d=[];if(typeof r=="string"){d=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var y=0;y<d.length;y++){var w=d[y].trim();w.charAt(0)==='"'&&w.charAt(w.length-1)==='"'&&(w=w.substr(1,w.length-2)),d[y]=w}}d.length===0&&d.push(u),U0.push(function(){var _=document.querySelector('[id="'.concat(u,'"]'));_!==null&&_.addEventListener("click",function(){var D;Qn.runFunc.apply(Qn,[e].concat(function(j){if(Array.isArray(j))return c2(j)}(D=d)||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 c2(j,P);var $=Object.prototype.toString.call(j).slice(8,-1);return $==="Object"&&j.constructor&&($=j.constructor.name),$==="Map"||$==="Set"?Array.from(j):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?c2(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)})}},ul={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},h2=function(t){var e=Ne(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ne("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ne(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Ne(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),Ne(this).classed("hover",!1)})};U0.push(h2);var $0="TB";const os={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().class},addClass:l2,bindFunctions:function(t){U0.forEach(function(e){e(t)})},clear:function(){z0=[],Ni={},(U0=[]).push(h2)},getClass:function(t){return Ni[t]},getClasses:function(){return Ni},addAnnotation:function(t,e){var r=sf(t).className;Ni[r].annotations.push(e)},getRelations:function(){return z0},addRelation:function(t){g.debug("Adding relation: "+JSON.stringify(t)),l2(t.id1),l2(t.id2),t.id1=sf(t.id1).className,t.id2=sf(t.id2).className,t.relationTitle1=jn.sanitizeText(t.relationTitle1.trim(),Wt()),t.relationTitle2=jn.sanitizeText(t.relationTitle2.trim(),Wt()),z0.push(t)},getDirection:function(){return $0},setDirection:function(t){$0=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)===":"?jn.sanitizeText(t.substr(1).trim(),Wt()):of(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:ul,setClickEvent:function(t,e,r){t.split(",").forEach(function(a){d3(a,e,r),Ni[a].haveCallback=!0}),H0(t,"clickable")},setCssClass:H0,setLink:function(t,e,r){var a=Wt();t.split(",").forEach(function(c){var u=c;c[0].match(/\d/)&&(u=u2+u),Ni[u]!==void 0&&(Ni[u].link=Qn.formatUrl(e,a),a.securityLevel==="sandbox"?Ni[u].linkTarget="_top":Ni[u].linkTarget=typeof r=="string"?of(r):"_blank")}),H0(t,"clickable")},setTooltip:function(t,e){var r=Wt();t.split(",").forEach(function(a){e!==void 0&&(Ni[a].tooltip=jn.sanitizeText(e,r))})},lookUpDomId:q0};var Y5=f(681),Zc=f.n(Y5),z5=f(8282),_i=f.n(z5),Qc=f(1362),U5=f.n(Qc),f2=0,W0=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?q5(e):r?p3(r):g3(t)},q5=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?ll(t[3].trim()):"",d=t[4]?t[4].trim():"",y=t[5]?t[5].trim():"";r=a+c+u+" "+d,e=hl(y)}catch{r=t}return{displayText:r,cssStyle:e}},p3=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?ll(t[3].trim()):"",d=t[4]?t[4].trim():"";r=a+c+"("+u+")"+(t[5]?" : "+ll(t[5]).trim():""),e=hl(d)}catch{r=t}return{displayText:r,cssStyle:e}},g3=function(t){var e="",r="",a="",c=t.indexOf("("),u=t.indexOf(")");if(c>1&&u>c&&u<=t.length){var d="",y="",w=t.substring(0,1);w.match(/\w/)?y=t.substring(0,c).trim():(w.match(/\+|-|~|#/)&&(d=w),y=t.substring(1,c).trim());var _=t.substring(c+1,u),D=t.substring(u+1,1);r=hl(D),e=d+y+"("+ll(_.trim())+")",u<0&&(a=t.substring(u+2).trim())!==""&&(a=" : "+ll(a))}else e=ll(t);return{displayText:e,cssStyle:r}},y3=function(t,e,r,a){var c=W0(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)},ll=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},hl=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const gc=function(t,e,r){g.info("Rendering class "+e);var a,c=e.id,u={id:c,label:e.id,width:0,height:0},d=t.append("g").attr("id",q0(c)).attr("class","classGroup");a=e.link?d.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):d.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var y=!0;e.annotations.forEach(function(Nt){var Rt=a.append("tspan").text("\xAB"+Nt+"\xBB");y||Rt.attr("dy",r.textHeight),y=!1});var w=e.id;e.type!==void 0&&e.type!==""&&(w+="<"+e.type+">");var _=a.append("tspan").text(w).attr("class","title");y||_.attr("dy",r.textHeight);var D=a.node().getBBox().height,j=d.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin/2).attr("y2",r.padding+D+r.dividerMargin/2),P=d.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(Nt){y3(P,Nt,y,r),y=!1});var $=P.node().getBBox(),ct=d.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin+$.height).attr("y2",r.padding+D+r.dividerMargin+$.height),rt=d.append("text").attr("x",r.padding).attr("y",D+2*r.dividerMargin+$.height+r.textHeight).attr("fill","white").attr("class","classText");y=!0,e.methods.forEach(function(Nt){y3(rt,Nt,y,r),y=!1});var vt=d.node().getBBox(),ft=" ";e.cssClasses.length>0&&(ft+=e.cssClasses.join(" "));var Et=d.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",vt.width+2*r.padding).attr("height",vt.height+r.padding+.5*r.dividerMargin).attr("class",ft).node().getBBox().width;return a.node().childNodes.forEach(function(Nt){Nt.setAttribute("x",(Et-Nt.getBBox().width)/2)}),e.tooltip&&a.insert("title").text(e.tooltip),j.attr("x2",Et),ct.attr("x2",Et),u.width=Et,u.height=vt.height+r.padding+.5*r.dividerMargin,u};Qc.parser.yy=os;var V0={},cf={dividerMargin:10,padding:5,textHeight:10},uf=function(t){var e=Object.entries(V0).find(function(r){return r[1].label===t});if(e)return e[0]};const G0=function(t){Object.keys(t).forEach(function(e){cf[e]=t[e]})},H5=function(t,e){V0={},Qc.parser.yy.clear(),Qc.parser.parse(t),g.info("Rendering diagram "+t);var r,a=Wt().securityLevel;a==="sandbox"&&(r=Ne("#i"+e));var c,u=Ne(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),d=(a==="sandbox"&&r.nodes()[0].contentDocument,u.select("[id='".concat(e,"']")));d.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(c=d).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(_i()).Graph({multigraph:!0});y.setGraph({isMultiGraph:!0}),y.setDefaultEdgeLabel(function(){return{}});for(var w=os.getClasses(),_=Object.keys(w),D=0;D<_.length;D++){var j=w[_[D]],P=gc(d,j,cf);V0[P.id]=P,y.setNode(P.id,P),g.info("Org height: "+P.height)}os.getRelations().forEach(function(ft){g.info("tjoho"+uf(ft.id1)+uf(ft.id2)+JSON.stringify(ft)),y.setEdge(uf(ft.id1),uf(ft.id2),{relation:ft},ft.title||"DEFAULT")}),Zc().layout(y),y.nodes().forEach(function(ft){ft!==void 0&&y.node(ft)!==void 0&&(g.debug("Node "+ft+": "+JSON.stringify(y.node(ft))),u.select("#"+q0(ft)).attr("transform","translate("+(y.node(ft).x-y.node(ft).width/2)+","+(y.node(ft).y-y.node(ft).height/2)+" )"))}),y.edges().forEach(function(ft){ft!==void 0&&y.edge(ft)!==void 0&&(g.debug("Edge "+ft.v+" -> "+ft.w+": "+JSON.stringify(y.edge(ft))),function(Et,Nt,Rt,$t){var Mt=function(on){switch(on){case ul.AGGREGATION:return"aggregation";case ul.EXTENSION:return"extension";case ul.COMPOSITION:return"composition";case ul.DEPENDENCY:return"dependency"}};Nt.points=Nt.points.filter(function(on){return!Number.isNaN(on.y)});var Kt,Jt,At=Nt.points,Bt=ko().x(function(on){return on.x}).y(function(on){return on.y}).curve(jr),wt=Et.append("path").attr("d",Bt(At)).attr("id","edge"+f2).attr("class","relation"),_t="";$t.arrowMarkerAbsolute&&(_t=(_t=(_t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Rt.relation.lineType==1&&wt.attr("class","relation dashed-line"),Rt.relation.type1!=="none"&&wt.attr("marker-start","url("+_t+"#"+Mt(Rt.relation.type1)+"Start)"),Rt.relation.type2!=="none"&&wt.attr("marker-end","url("+_t+"#"+Mt(Rt.relation.type2)+"End)");var Ft,yt,we,_e,zt=Nt.points.length,Ce=Qn.calcLabelPosition(Nt.points);if(Kt=Ce.x,Jt=Ce.y,zt%2!=0&&zt>1){var Ee=Qn.calcCardinalityPosition(Rt.relation.type1!=="none",Nt.points,Nt.points[0]),ke=Qn.calcCardinalityPosition(Rt.relation.type2!=="none",Nt.points,Nt.points[zt-1]);g.debug("cardinality_1_point "+JSON.stringify(Ee)),g.debug("cardinality_2_point "+JSON.stringify(ke)),Ft=Ee.x,yt=Ee.y,we=ke.x,_e=ke.y}if(Rt.title!==void 0){var ge=Et.append("g").attr("class","classLabel"),Re=ge.append("text").attr("class","label").attr("x",Kt).attr("y",Jt).attr("fill","red").attr("text-anchor","middle").text(Rt.title);window.label=Re;var Pe=Re.node().getBBox();ge.insert("rect",":first-child").attr("class","box").attr("x",Pe.x-$t.padding/2).attr("y",Pe.y-$t.padding/2).attr("width",Pe.width+$t.padding).attr("height",Pe.height+$t.padding)}g.info("Rendering relation "+JSON.stringify(Rt)),Rt.relationTitle1!==void 0&&Rt.relationTitle1!=="none"&&Et.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ft).attr("y",yt).attr("fill","black").attr("font-size","6").text(Rt.relationTitle1),Rt.relationTitle2!==void 0&&Rt.relationTitle2!=="none"&&Et.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",we).attr("y",_e).attr("fill","black").attr("font-size","6").text(Rt.relationTitle2),f2++}(d,y.edge(ft),y.edge(ft).relation,cf))});var $=d.node().getBBox(),ct=$.width+40,rt=$.height+40;Ia(d,rt,ct,cf.useMaxWidth);var vt="".concat($.x-20," ").concat($.y-20," ").concat(ct," ").concat(rt);g.debug("viewBox ".concat(vt)),d.attr("viewBox",vt)};var m3={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 X0=function(t,e,r,a){e.forEach(function(c){m3[c](t,r,a)})};function Z0(t){return Z0=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},Z0(t)}const _a=function(t,e,r,a){var c,u,d,y,w,_,D=t||"";if(Z0(D)==="object"&&(D=D[0]),Gi(Wt().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(rt){return"<i class='".concat(rt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},d=Ne(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),y=d.append("xhtml:div"),w=c.label,_=c.isNode?"nodeLabel":"edgeLabel",y.html('<span class="'+_+'" '+(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"),d.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 $=0;$<P.length;$++){var ct=document.createElementNS("http://www.w3.org/2000/svg","tspan");ct.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ct.setAttribute("dy","1em"),ct.setAttribute("x","0"),r?ct.setAttribute("class","title-row"):ct.setAttribute("class","row"),ct.textContent=P[$].trim(),j.appendChild(ct)}return j};var Qi=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),d=u.insert("g").attr("class","label").attr("style",e.labelStyle),y=typeof e.labelText=="string"?e.labelText:e.labelText[0],w=d.node().appendChild(_a(Bs(Z6(y),Wt()),e.labelStyle,!1,a)),_=w.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var D=w.children[0],j=Ne(w);_=D.getBoundingClientRect(),j.attr("width",_.width),j.attr("height",_.height)}var P=e.padding/2;return d.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),{shapeSvg:u,bbox:_,halfPadding:P,label:d}},ui=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function Os(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 en={},Ro={},v3={},Q0=function(t,e){return g.trace("In isDecendant",e," ",t," = ",Ro[e].indexOf(t)>=0),Ro[e].indexOf(t)>=0},$5=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(d){if(r.children(d).length>0)t(d,r,a,c);else{var y=r.node(d);g.info("cp ",d," to ",c," with parent ",e),a.setNode(d,y),c!==r.parent(d)&&(g.warn("Setting parent",d,r.parent(d)),a.setParent(d,r.parent(d))),e!==c&&d!==e?(g.debug("Setting parent",d,e),a.setParent(d,e)):(g.info("In copy ",e,"root",c,"data",r.node(e),c),g.debug("Not Setting parent for node=",d,"cluster!==rootId",e!==c,"node!==clusterId",d!==e));var w=r.edges(d);g.debug("Copying Edges",w),w.forEach(function(_){g.info("Edge",_);var D=r.edge(_.v,_.w,_.name);g.info("Edge data",D,c);try{(function(j,P){return g.info("Decendants of ",P," is ",Ro[P]),g.info("Edge is ",j),j.v!==P&&j.w!==P&&(Ro[P]?(g.info("Here "),Ro[P].indexOf(j.v)>=0||!!Q0(j.v,P)||!!Q0(j.w,P)||Ro[P].indexOf(j.w)>=0):(g.debug("Tilt, ",P,",not in decendants"),!1))})(_,c)?(g.info("Copying as ",_.v,_.w,D,_.name),a.setEdge(_.v,_.w,D,_.name),g.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):g.info("Skipping copy of edge ",_.v,"-->",_.w," rootId: ",c," clusterId:",e)}catch(j){g.error(j)}})}g.debug("Removing node",d),r.removeNode(d)})},W5=function t(e,r){for(var a=r.children(e),c=[].concat(a),u=0;u<a.length;u++)v3[a[u]]=e,c=c.concat(t(a[u],r));return c},K0=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}},b3=function(t){return en[t]&&en[t].externalConnections&&en[t]?en[t].id:t},V5=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: ",K0(r,t)),Ro[r]=W5(r,t),en[r]={id:K0(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,Ro),c.forEach(function(u){u.v!==r&&u.w!==r&&Q0(u.v,r)^Q0(u.w,r)&&(g.warn("Edge: ",u," leaves cluster ",r),g.warn("Decendants of XXX ",r,": ",Ro[r]),en[r].externalConnections=!0)})):g.debug("Not a cluster ",r,Ro)}),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",en,"ids:",r.v,r.w,"Translateing: ",en[r.v]," --- ",en[r.w]),(en[r.v]||en[r.w])&&(g.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),c=b3(r.v),u=b3(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",_i().json.write(t)),G5(t,0),g.trace(en))},G5=function t(e,r){if(g.warn("extractor - ",r,_i().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 d=a[u],y=e.children(d);c=c||y.length>0}if(c){g.debug("Nodes = ",a,r);for(var w=0;w<a.length;w++){var _=a[w];if(g.debug("Extracting node",_,en,en[_]&&!en[_].externalConnections,!e.parent(_),e.node(_),e.children("D")," Depth ",r),en[_])if(!en[_].externalConnections&&e.children(_)&&e.children(_).length>0){g.warn("Cluster without external connections, without a parent and with children",_,r);var D=e.graph().rankdir==="TB"?"LR":"TB";en[_]&&en[_].clusterData&&en[_].clusterData.dir&&(D=en[_].clusterData.dir,g.warn("Fixing dir",en[_].clusterData.dir,D));var j=new(_i()).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",_i().json.write(e)),$5(_,e,j,_),e.setNode(_,{clusterNode:!0,id:_,clusterData:en[_].clusterData,labelText:en[_].labelText,graph:j}),g.warn("New graph after copy node: (",_,")",_i().json.write(j)),g.debug("Old graph after copy",_i().json.write(e))}else g.warn("Cluster ** ",_," **not meeting the criteria !externalConnections:",!en[_].externalConnections," no parent: ",!e.parent(_)," children ",e.children(_)&&e.children(_).length>0,e.children("D"),r),g.debug(en);else g.debug("Not a cluster",_,r)}a=e.nodes(),g.warn("New list of nodes",a);for(var P=0;P<a.length;P++){var $=a[P],ct=e.node($);g.warn(" Now next level",$,ct),ct.clusterNode&&t(ct.graph,r+1)}}else g.debug("Done, no node has children",e.nodes())}},X5=function t(e,r){if(r.length===0)return[];var a=Object.assign(r);return r.forEach(function(c){var u=e.children(c),d=t(e,u);a=a.concat(d)}),a},Yr=function(t){return X5(t,t.children())},_3=f(3841);const Z5=function(t,e,r,a){var c=t.x,u=t.y,d=c-a.x,y=u-a.y,w=Math.sqrt(e*e*y*y+r*r*d*d),_=Math.abs(e*r*d/w);a.x<c&&(_=-_);var D=Math.abs(e*r*y/w);return a.y<u&&(D=-D),{x:c+_,y:u+D}};function d2(t,e){return t*e>0}const Q5=function(t,e,r,a){var c,u,d,y,w,_,D,j,P,$,ct,rt,vt;if(c=e.y-t.y,d=t.x-e.x,w=e.x*t.y-t.x*e.y,P=c*r.x+d*r.y+w,$=c*a.x+d*a.y+w,!(P!==0&&$!==0&&d2(P,$)||(u=a.y-r.y,y=r.x-a.x,_=a.x*r.y-r.x*a.y,D=u*t.x+y*t.y+_,j=u*e.x+y*e.y+_,D!==0&&j!==0&&d2(D,j)||(ct=c*y-u*d)==0)))return rt=Math.abs(ct/2),{x:(vt=d*_-y*w)<0?(vt-rt)/ct:(vt+rt)/ct,y:(vt=u*w-c*_)<0?(vt-rt)/ct:(vt+rt)/ct}},fl=function(t,e){var r,a,c=t.x,u=t.y,d=e.x-c,y=e.y-u,w=t.width/2,_=t.height/2;return Math.abs(y)*w>Math.abs(d)*_?(y<0&&(_=-_),r=y===0?0:_*d/y,a=_):(d<0&&(w=-w),r=w,a=d===0?0:w*y/d),{x:c+r,y:u+a}},lf=(f.n(_3)(),function(t,e,r){return Z5(t,e,e,r)}),ss=function(t,e,r){var a=t.x,c=t.y,u=[],d=Number.POSITIVE_INFINITY,y=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ct){d=Math.min(d,ct.x),y=Math.min(y,ct.y)}):(d=Math.min(d,e.x),y=Math.min(y,e.y));for(var w=a-t.width/2-d,_=c-t.height/2-y,D=0;D<e.length;D++){var j=e[D],P=e[D<e.length-1?D+1:0],$=Q5(t,r,{x:w+j.x,y:_+j.y},{x:w+P.x,y:_+P.y});$&&u.push($)}return u.length?(u.length>1&&u.sort(function(ct,rt){var vt=ct.x-r.x,ft=ct.y-r.y,Et=Math.sqrt(vt*vt+ft*ft),Nt=rt.x-r.x,Rt=rt.y-r.y,$t=Math.sqrt(Nt*Nt+Rt*Rt);return Et<$t?-1:Et===$t?0:1}),u[0]):t},Kc=fl;function hf(t){return hf=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},hf(t)}var x3=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 d=a.append("rect").attr("x",-1*c/2).attr("y",-1*u/2).attr("width",c).attr("height",u).attr("class","fork-join");return ui(e,d),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(y){return Kc(e,y)},a},p2={question:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding+(c.height+e.padding),d=[{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=Os(a,u,u,d);return y.attr("style",e.style),ui(e,y),e.intersect=function(w){return g.warn("Intersect called"),ss(e,d,w)},a},rect:function(t,e){var r=Qi(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;g.trace("Classes = ",e.classes);var d=a.insert("rect",":first-child"),y=c.width+e.padding,w=c.height+e.padding;if(d.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 _=new Set(Object.keys(e.props));e.props.borders&&(function(D,j,P,$){var ct=[],rt=function(ft){ct.push(ft),ct.push(0)},vt=function(ft){ct.push(0),ct.push(ft)};j.includes("t")?(g.debug("add top border"),rt(P)):vt(P),j.includes("r")?(g.debug("add right border"),rt($)):vt($),j.includes("b")?(g.debug("add bottom border"),rt(P)):vt(P),j.includes("l")?(g.debug("add left border"),rt($)):vt($),D.attr("stroke-dasharray",ct.join(" "))}(d,e.props.borders,y,w),_.delete("borders")),_.forEach(function(D){g.warn("Unknown node property ".concat(D))})}return ui(e,d),e.intersect=function(D){return Kc(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"),d=c.insert("line"),y=c.insert("g").attr("class","label"),w=e.labelText.flat?e.labelText.flat():e.labelText;a=hf(w)==="object"?w[0]:w,g.info("Label text abc79",a,w,hf(w)==="object");var _=y.node().appendChild(_a(a,e.labelStyle,!0,!0)),D={width:0,height:0};if(Gi(Wt().flowchart.htmlLabels)){var j=_.children[0],P=Ne(_);D=j.getBoundingClientRect(),P.attr("width",D.width),P.attr("height",D.height)}g.info("Text 2",w);var $=w.slice(1,w.length),ct=_.getBBox(),rt=y.node().appendChild(_a($.join?$.join("<br/>"):$,e.labelStyle,!0,!0));if(Gi(Wt().flowchart.htmlLabels)){var vt=rt.children[0],ft=Ne(rt);D=vt.getBoundingClientRect(),ft.attr("width",D.width),ft.attr("height",D.height)}var Et=e.padding/2;return Ne(rt).attr("transform","translate( "+(D.width>ct.width?0:(ct.width-D.width)/2)+", "+(ct.height+Et+5)+")"),Ne(_).attr("transform","translate( "+(D.width<ct.width?0:-(ct.width-D.width)/2)+", 0)"),D=y.node().getBBox(),y.attr("transform","translate("+-D.width/2+", "+(-D.height/2-Et+3)+")"),u.attr("class","outer title-state").attr("x",-D.width/2-Et).attr("y",-D.height/2-Et).attr("width",D.width+e.padding).attr("height",D.height+e.padding),d.attr("class","divider").attr("x1",-D.width/2-Et).attr("x2",D.width/2+Et).attr("y1",-D.height/2-Et+ct.height+Et).attr("y2",-D.height/2-Et+ct.height+Et),ui(e,u),e.intersect=function(Nt){return Kc(e,Nt)},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 lf(e,14,a)},r},circle:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding,d=a.insert("circle",":first-child");return d.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"),ui(e,d),e.intersect=function(y){return g.info("Circle intersect",e,c.width/2+u,y),lf(e,c.width/2+u,y)},a},doublecircle:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding,d=a.insert("g",":first-child"),y=d.insert("circle"),w=d.insert("circle");return y.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",c.width/2+u+5).attr("width",c.width+e.padding+10).attr("height",c.height+e.padding+10),w.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("DoubleCircle main"),ui(e,y),e.intersect=function(_){return g.info("DoubleCircle intersect",e,c.width/2+u+5,_),lf(e,c.width/2+u+5,_)},a},stadium:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,d=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",-d/2).attr("y",-u/2).attr("width",d).attr("height",u);return ui(e,y),e.intersect=function(w){return Kc(e,w)},a},hexagon:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,d=u/4,y=c.width+2*d+e.padding,w=[{x:d,y:0},{x:y-d,y:0},{x:y,y:-u/2},{x:y-d,y:-u},{x:d,y:-u},{x:0,y:-u/2}],_=Os(a,y,u,w);return _.attr("style",e.style),ui(e,_),e.intersect=function(D){return ss(e,w,D)},a},rect_left_inv_arrow:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:-d/2,y:0},{x:u,y:0},{x:u,y:-d},{x:-d/2,y:-d},{x:0,y:-d/2}];return Os(a,u,d,y).attr("style",e.style),e.width=u+d,e.height=d,e.intersect=function(w){return ss(e,y,w)},a},lean_right:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:-2*d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:d/6,y:-d}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},lean_left:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:2*d/6,y:0},{x:u+d/6,y:0},{x:u-2*d/6,y:-d},{x:-d/6,y:-d}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},trapezoid:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:-2*d/6,y:0},{x:u+2*d/6,y:0},{x:u-d/6,y:-d},{x:d/6,y:-d}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},inv_trapezoid:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:d/6,y:0},{x:u-d/6,y:0},{x:u+2*d/6,y:-d},{x:-2*d/6,y:-d}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},rect_right_inv_arrow:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:0,y:0},{x:u+d/2,y:0},{x:u,y:-d/2},{x:u+d/2,y:-d},{x:0,y:-d}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},cylinder:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=u/2,y=d/(2.5+u/50),w=c.height+y+e.padding,_="M 0,"+y+" a "+d+","+y+" 0,0,0 "+u+" 0 a "+d+","+y+" 0,0,0 "+-u+" 0 l 0,"+w+" a "+d+","+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",_).attr("transform","translate("+-u/2+","+-(w/2+y)+")");return ui(e,D),e.intersect=function(j){var P=Kc(e,j),$=P.x-e.x;if(d!=0&&(Math.abs($)<e.width/2||Math.abs($)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-y)){var ct=y*y*(1-$*$/(d*d));ct!=0&&(ct=Math.sqrt(ct)),ct=y-ct,j.y-e.y>0&&(ct=-ct),P.y+=ct}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),ui(e,a),e.intersect=function(c){return lf(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),ui(e,c),e.intersect=function(u){return lf(e,7,u)},r},note:function(t,e){var r=Qi(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;g.info("Classes = ",e.classes);var d=a.insert("rect",":first-child");return d.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),ui(e,d),e.intersect=function(y){return Kc(e,y)},a},subroutine:function(t,e){var r=Qi(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,d=c.height+e.padding,y=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}],w=Os(a,u,d,y);return w.attr("style",e.style),ui(e,w),e.intersect=function(_){return ss(e,y,_)},a},fork:x3,join:x3,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"),d=c.insert("line"),y=c.insert("line"),w=0,_=4,D=c.insert("g").attr("class","label"),j=0,P=e.classData.annotations&&e.classData.annotations[0],$=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ct=D.node().appendChild(_a($,e.labelStyle,!0,!0)),rt=ct.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var vt=ct.children[0],ft=Ne(ct);rt=vt.getBoundingClientRect(),ft.attr("width",rt.width),ft.attr("height",rt.height)}e.classData.annotations[0]&&(_+=rt.height+4,w+=rt.width);var Et=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(Wt().flowchart.htmlLabels?Et+="<"+e.classData.type+">":Et+="<"+e.classData.type+">");var Nt=D.node().appendChild(_a(Et,e.labelStyle,!0,!0));Ne(Nt).attr("class","classTitle");var Rt=Nt.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var $t=Nt.children[0],Mt=Ne(Nt);Rt=$t.getBoundingClientRect(),Mt.attr("width",Rt.width),Mt.attr("height",Rt.height)}_+=Rt.height+4,Rt.width>w&&(w=Rt.width);var Kt=[];e.classData.members.forEach(function(wt){var _t=W0(wt),Ft=_t.displayText;Wt().flowchart.htmlLabels&&(Ft=Ft.replace(/</g,"<").replace(/>/g,">"));var yt=D.node().appendChild(_a(Ft,_t.cssStyle?_t.cssStyle:e.labelStyle,!0,!0)),we=yt.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var _e=yt.children[0],zt=Ne(yt);we=_e.getBoundingClientRect(),zt.attr("width",we.width),zt.attr("height",we.height)}we.width>w&&(w=we.width),_+=we.height+4,Kt.push(yt)}),_+=8;var Jt=[];if(e.classData.methods.forEach(function(wt){var _t=W0(wt),Ft=_t.displayText;Wt().flowchart.htmlLabels&&(Ft=Ft.replace(/</g,"<").replace(/>/g,">"));var yt=D.node().appendChild(_a(Ft,_t.cssStyle?_t.cssStyle:e.labelStyle,!0,!0)),we=yt.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var _e=yt.children[0],zt=Ne(yt);we=_e.getBoundingClientRect(),zt.attr("width",we.width),zt.attr("height",we.height)}we.width>w&&(w=we.width),_+=we.height+4,Jt.push(yt)}),_+=8,P){var At=(w-rt.width)/2;Ne(ct).attr("transform","translate( "+(-1*w/2+At)+", "+-1*_/2+")"),j=rt.height+4}var Bt=(w-Rt.width)/2;return Ne(Nt).attr("transform","translate( "+(-1*w/2+Bt)+", "+(-1*_/2+j)+")"),j+=Rt.height+4,d.attr("class","divider").attr("x1",-w/2-a).attr("x2",w/2+a).attr("y1",-_/2-a+8+j).attr("y2",-_/2-a+8+j),j+=8,Kt.forEach(function(wt){Ne(wt).attr("transform","translate( "+-w/2+", "+(-1*_/2+j+4)+")"),j+=Rt.height+4}),j+=8,y.attr("class","divider").attr("x1",-w/2-a).attr("x2",w/2+a).attr("y1",-_/2-a+8+j).attr("y2",-_/2-a+8+j),j+=8,Jt.forEach(function(wt){Ne(wt).attr("transform","translate( "+-w/2+", "+(-1*_/2+j)+")"),j+=Rt.height+4}),u.attr("class","outer title-state").attr("x",-w/2-a).attr("y",-_/2-a).attr("width",w+e.padding).attr("height",_+e.padding),ui(e,u),e.intersect=function(wt){return Kc(e,wt)},c}},dl={},g2=function(t){var e=dl[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},K5={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)),d=u.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var y=u.children[0],w=Ne(u);d=y.getBoundingClientRect(),w.attr("width",d.width),w.attr("height",d.height)}var _=0*e.padding,D=_/2,j=e.width<=d.width+_?d.width+_:e.width;e.width<=d.width+_?e.diff=(d.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+_),c.attr("transform","translate("+(e.x-d.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($){return fl(e,$)},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"),d=c.node().appendChild(_a(e.labelText,e.labelStyle,void 0,!0)),y=d.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var w=d.children[0],_=Ne(d);y=w.getBoundingClientRect(),_.attr("width",y.width),_.attr("height",y.height)}y=d.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+(Gi(Wt().flowchart.htmlLabels)?5:3))+")");var $=a.node().getBBox();return e.height=$.height,e.intersect=function(ct){return fl(e,ct)},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 d=a.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(y){return fl(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 d=a.node().getBBox();return e.width=d.width,e.height=d.height,e.diff=-e.padding/2,e.intersect=function(y){return fl(e,y)},r}},y2={},J0={},Yi={},J5=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,d=r.getBBox();if(Gi(Wt().flowchart.htmlLabels)){var y=r.children[0],w=Ne(r);d=y.getBoundingClientRect(),w.attr("width",d.width),w.attr("height",d.height)}if(c.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),J0[e.id]=a,e.width=d.width,e.height=d.height,e.startLabelLeft){var _=_a(e.startLabelLeft,e.labelStyle),D=t.insert("g").attr("class","edgeTerminals"),j=D.insert("g").attr("class","inner");u=j.node().appendChild(_);var P=_.getBBox();j.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),Yi[e.id]||(Yi[e.id]={}),Yi[e.id].startLeft=D,ff(u,e.startLabelLeft)}if(e.startLabelRight){var $=_a(e.startLabelRight,e.labelStyle),ct=t.insert("g").attr("class","edgeTerminals"),rt=ct.insert("g").attr("class","inner");u=ct.node().appendChild($),rt.node().appendChild($);var vt=$.getBBox();rt.attr("transform","translate("+-vt.width/2+", "+-vt.height/2+")"),Yi[e.id]||(Yi[e.id]={}),Yi[e.id].startRight=ct,ff(u,e.startLabelRight)}if(e.endLabelLeft){var ft=_a(e.endLabelLeft,e.labelStyle),Et=t.insert("g").attr("class","edgeTerminals"),Nt=Et.insert("g").attr("class","inner");u=Nt.node().appendChild(ft);var Rt=ft.getBBox();Nt.attr("transform","translate("+-Rt.width/2+", "+-Rt.height/2+")"),Et.node().appendChild(ft),Yi[e.id]||(Yi[e.id]={}),Yi[e.id].endLeft=Et,ff(u,e.endLabelLeft)}if(e.endLabelRight){var $t=_a(e.endLabelRight,e.labelStyle),Mt=t.insert("g").attr("class","edgeTerminals"),Kt=Mt.insert("g").attr("class","inner");u=Kt.node().appendChild($t);var Jt=$t.getBBox();Kt.attr("transform","translate("+-Jt.width/2+", "+-Jt.height/2+")"),Mt.node().appendChild($t),Yi[e.id]||(Yi[e.id]={}),Yi[e.id].endRight=Mt,ff(u,e.endLabelRight)}};function ff(t,e){Wt().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var t6=function(t,e){g.info("Moving label abc78 ",t.id,t.label,J0[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var a=J0[t.id],c=t.x,u=t.y;if(r){var d=Qn.calcLabelPosition(r);g.info("Moving label from (",c,",",u,") to (",d.x,",",d.y,") abc78")}a.attr("transform","translate("+c+", "+u+")")}if(t.startLabelLeft){var y=Yi[t.id].startLeft,w=t.x,_=t.y;if(r){var D=Qn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);w=D.x,_=D.y}y.attr("transform","translate("+w+", "+_+")")}if(t.startLabelRight){var j=Yi[t.id].startRight,P=t.x,$=t.y;if(r){var ct=Qn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);P=ct.x,$=ct.y}j.attr("transform","translate("+P+", "+$+")")}if(t.endLabelLeft){var rt=Yi[t.id].endLeft,vt=t.x,ft=t.y;if(r){var Et=Qn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);vt=Et.x,ft=Et.y}rt.attr("transform","translate("+vt+", "+ft+")")}if(t.endLabelRight){var Nt=Yi[t.id].endRight,Rt=t.x,$t=t.y;if(r){var Mt=Qn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);Rt=Mt.x,$t=Mt.y}Nt.attr("transform","translate("+Rt+", "+$t+")")}},m2=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,_){var D=w.x,j=w.y,P=Math.abs(_.x-D),$=Math.abs(_.y-j),ct=w.width/2,rt=w.height/2;return P>=ct||$>=rt}(e,u)||c)g.warn("abc88 outside",u,a),a=u,c||r.push(u);else{var d=function(w,_,D){g.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(_),`
|
|
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,$=Math.abs(j-D.x),ct=w.width/2,rt=D.x<_.x?ct-$:ct+$,vt=w.height/2,ft=Math.abs(_.y-D.y),Et=Math.abs(_.x-D.x);if(Math.abs(P-_.y)*ct>Math.abs(j-_.x)*vt){var Nt=D.y<_.y?_.y-vt-P:P-vt-_.y;rt=Et*Nt/ft;var Rt={x:D.x<_.x?D.x+rt:D.x-Et+rt,y:D.y<_.y?D.y+ft-Nt:D.y-ft+Nt};return rt===0&&(Rt.x=_.x,Rt.y=_.y),Et===0&&(Rt.x=_.x),ft===0&&(Rt.y=_.y),g.warn("abc89 topp/bott calc, Q ".concat(ft,", q ").concat(Nt,", R ").concat(Et,", r ").concat(rt),Rt),Rt}var $t=ft*(rt=D.x<_.x?_.x-ct-j:j-ct-_.x)/Et,Mt=D.x<_.x?D.x+Et-rt:D.x-Et+rt,Kt=D.y<_.y?D.y+$t:D.y-$t;return g.warn("sides calc abc89, Q ".concat(ft,", q ").concat($t,", R ").concat(Et,", r ").concat(rt),{_x:Mt,_y:Kt}),rt===0&&(Mt=_.x,Kt=_.y),Et===0&&(Mt=_.x),ft===0&&(Kt=_.y),{x:Mt,y:Kt}}(e,a,u);g.warn("abc88 inside",u,a,d),g.warn("abc88 intersection",d);var y=!1;r.forEach(function(w){y=y||w.x===d.x&&w.y===d.y}),r.find(function(w){return w.x===d.x&&w.y===d.y})?g.warn("abc88 no intersect",d,r):r.push(d),c=!0}}),g.warn("abc88 returning points",r),r},e6=function t(e,r,a,c){g.info("Graph in recursive render: XXX",_i().json.write(r),c);var u=r.graph().rankdir;g.trace("Dir in recursive render - dir:",u);var d=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=d.insert("g").attr("class","clusters"),w=d.insert("g").attr("class","edgePaths"),_=d.insert("g").attr("class","edgeLabels"),D=d.insert("g").attr("class","nodes");r.nodes().forEach(function(P){var $=r.node(P);if(c!==void 0){var ct=JSON.parse(JSON.stringify(c.clusterData));g.info("Setting data for cluster XXX (",P,") ",ct,c),r.setNode(c.id,ct),r.parent(P)||(g.trace("Setting parent",P,c.id),r.setParent(P,c.id,ct))}if(g.info("(Insert) Node XXX"+P+": "+JSON.stringify(r.node(P))),$&&$.clusterNode){g.info("Cluster identified",P,$.width,r.node(P));var rt=t(D,$.graph,a,r.node(P)),vt=rt.elem;ui($,vt),$.diff=rt.diff||0,g.info("Node bounds (abc123)",P,$,$.width,$.x,$.y),function(ft,Et){dl[Et.id]=ft}(vt,$),g.warn("Recursive render complete ",vt,$)}else r.children(P).length>0?(g.info("Cluster - the non recursive path XXX",P,$.id,$,r),g.info(K0($.id,r)),en[$.id]={id:K0($.id,r),node:$}):(g.info("Node - the non recursive path",P,$.id,$),function(ft,Et,Nt){var Rt,$t,Mt;Et.link?(Wt().securityLevel==="sandbox"?Mt="_top":Et.linkTarget&&(Mt=Et.linkTarget||"_blank"),Rt=ft.insert("svg:a").attr("xlink:href",Et.link).attr("target",Mt),$t=p2[Et.shape](Rt,Et,Nt)):Rt=$t=p2[Et.shape](ft,Et,Nt),Et.tooltip&&$t.attr("title",Et.tooltip),Et.class&&$t.attr("class","node default "+Et.class),dl[Et.id]=Rt,Et.haveCallback&&dl[Et.id].attr("class",dl[Et.id].attr("class")+" clickable")}(D,r.node(P),u))}),r.edges().forEach(function(P){var $=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",en,"ids:",P.v,P.w,"Translateing: ",en[P.v],en[P.w]),J5(_,$)}),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),Zc().layout(r),g.info("Graph after layout:",_i().json.write(r));var j=0;return Yr(r).forEach(function(P){var $=r.node(P);g.info("Position "+P+": "+JSON.stringify(r.node(P))),g.info("Position "+P+": ("+$.x,","+$.y,") width: ",$.width," height: ",$.height),$&&$.clusterNode?g2($):r.children(P).length>0?(function(ct,rt){g.trace("Inserting cluster");var vt=rt.shape||"rect";y2[rt.id]=K5[vt](ct,rt)}(y,$),en[$.id].node=$):g2($)}),r.edges().forEach(function(P){var $=r.edge(P);g.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify($),$);var ct=function(rt,vt,ft,Et,Nt,Rt){var $t=ft.points,Mt=!1,Kt=Rt.node(vt.v),Jt=Rt.node(vt.w);g.info("abc88 InsertEdge: ",ft),Jt.intersect&&Kt.intersect&&(($t=$t.slice(1,ft.points.length-1)).unshift(Kt.intersect($t[0])),g.info("Last point",$t[$t.length-1],Jt,Jt.intersect($t[$t.length-1])),$t.push(Jt.intersect($t[$t.length-1]))),ft.toCluster&&(g.info("to cluster abc88",Et[ft.toCluster]),$t=m2(ft.points,Et[ft.toCluster].node),Mt=!0),ft.fromCluster&&(g.info("from cluster abc88",Et[ft.fromCluster]),$t=m2($t.reverse(),Et[ft.fromCluster].node).reverse(),Mt=!0);var At,Bt=$t.filter(function(_e){return!Number.isNaN(_e.y)});At=(Nt==="graph"||Nt==="flowchart")&&ft.curve||jr;var wt,_t=ko().x(function(_e){return _e.x}).y(function(_e){return _e.y}).curve(At);switch(ft.thickness){case"normal":wt="edge-thickness-normal";break;case"thick":wt="edge-thickness-thick";break;default:wt=""}switch(ft.pattern){case"solid":wt+=" edge-pattern-solid";break;case"dotted":wt+=" edge-pattern-dotted";break;case"dashed":wt+=" edge-pattern-dashed"}var Ft=rt.append("path").attr("d",_t(Bt)).attr("id",ft.id).attr("class"," "+wt+(ft.classes?" "+ft.classes:"")).attr("style",ft.style),yt="";switch(Wt().state.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),g.info("arrowTypeStart",ft.arrowTypeStart),g.info("arrowTypeEnd",ft.arrowTypeEnd),ft.arrowTypeStart){case"arrow_cross":Ft.attr("marker-start","url("+yt+"#"+Nt+"-crossStart)");break;case"arrow_point":Ft.attr("marker-start","url("+yt+"#"+Nt+"-pointStart)");break;case"arrow_barb":Ft.attr("marker-start","url("+yt+"#"+Nt+"-barbStart)");break;case"arrow_circle":Ft.attr("marker-start","url("+yt+"#"+Nt+"-circleStart)");break;case"aggregation":Ft.attr("marker-start","url("+yt+"#"+Nt+"-aggregationStart)");break;case"extension":Ft.attr("marker-start","url("+yt+"#"+Nt+"-extensionStart)");break;case"composition":Ft.attr("marker-start","url("+yt+"#"+Nt+"-compositionStart)");break;case"dependency":Ft.attr("marker-start","url("+yt+"#"+Nt+"-dependencyStart)")}switch(ft.arrowTypeEnd){case"arrow_cross":Ft.attr("marker-end","url("+yt+"#"+Nt+"-crossEnd)");break;case"arrow_point":Ft.attr("marker-end","url("+yt+"#"+Nt+"-pointEnd)");break;case"arrow_barb":Ft.attr("marker-end","url("+yt+"#"+Nt+"-barbEnd)");break;case"arrow_circle":Ft.attr("marker-end","url("+yt+"#"+Nt+"-circleEnd)");break;case"aggregation":Ft.attr("marker-end","url("+yt+"#"+Nt+"-aggregationEnd)");break;case"extension":Ft.attr("marker-end","url("+yt+"#"+Nt+"-extensionEnd)");break;case"composition":Ft.attr("marker-end","url("+yt+"#"+Nt+"-compositionEnd)");break;case"dependency":Ft.attr("marker-end","url("+yt+"#"+Nt+"-dependencyEnd)")}var we={};return Mt&&(we.updatedPath=$t),we.originalPath=ft.points,we}(w,P,$,en,a,r);t6($,ct)}),r.nodes().forEach(function(P){var $=r.node(P);g.info(P,$.type,$.diff),$.type==="group"&&(j=$.diff)}),{elem:d,diff:j}},td=function(t,e,r,a,c){X0(t,r,a,c),dl={},J0={},Yi={},y2={},Ro={},v3={},en={},g.warn("Graph at first:",_i().json.write(e)),V5(e),g.warn("Graph after:",_i().json.write(e)),e6(t,e,a)};Qc.parser.yy=os;var w3={dividerMargin:10,padding:5,textHeight:10};function v2(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 df={},ed=[],b2="",_2="",k3=function(t){return df[t]===void 0&&(df[t]={attributes:[]},g.info("Added new entity :",t)),df[t]};const xa={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){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().er},addEntity:k3,addAttributes:function(t,e){var r,a=k3(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),g.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return df},addRelationship:function(t,e,r,a){var c={entityA:t,roleA:e,entityB:r,relSpec:a};ed.push(c),g.debug("Added new relationship :",c)},getRelationships:function(){return ed},clear:function(){df={},ed=[],b2=""},setTitle:function(t){b2=t},getTitle:function(){return b2},setAccDescription:function(t){_2=t},getAccDescription:function(){return _2}};var n6=f(5890),x2=f.n(n6),Is={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 Rs=Is;function w2(t,e,r){if(e.insert!==void 0){var a=t.getTitle(),c=t.getAccDescription();e.attr("role","img").attr("aria-labelledby","chart-title-"+r+" chart-desc-"+r),e.insert("desc",":first-child").attr("id","chart-desc-"+r).text(c),e.insert("title",":first-child").attr("id","chart-title-"+r).text(a)}}var Ir={},T3=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},k2=0;const C3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ir[e[r]]=t[e[r]]},E3=function(t,e){g.info("Drawing ER diagram"),xa.clear();var r=x2().parser;r.yy=xa;var a,c=Wt().securityLevel;c==="sandbox"&&(a=Ne("#i"+e));var u=Ne(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument;try{r.parse(t)}catch{g.debug("Parsing failed")}var d,y=u.select("[id='".concat(e,"']"));(function(ct,rt){var vt;ct.append("defs").append("marker").attr("id",Is.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),ct.append("defs").append("marker").attr("id",Is.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(vt=ct.append("defs").append("marker").attr("id",Is.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",rt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),vt.append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(vt=ct.append("defs").append("marker").attr("id",Is.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",rt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),vt.append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),ct.append("defs").append("marker").attr("id",Is.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),ct.append("defs").append("marker").attr("id",Is.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(vt=ct.append("defs").append("marker").attr("id",Is.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",rt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),vt.append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(vt=ct.append("defs").append("marker").attr("id",Is.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",rt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),vt.append("path").attr("stroke",rt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(y,Ir),d=new(_i()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Ir.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var w=function(ct,rt,vt){var ft;return Object.keys(rt).forEach(function(Et){var Nt=ct.append("g").attr("id",Et);ft=ft===void 0?Et:ft;var Rt="entity-"+Et,$t=Nt.append("text").attr("class","er entityLabel").attr("id",Rt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Wt().fontFamily+"; font-size: "+Ir.fontSize+"px").text(Et),Mt=function(Bt,wt,_t){var Ft=Ir.entityPadding/3,yt=Ir.entityPadding/3,we=.85*Ir.fontSize,_e=wt.node().getBBox(),zt=[],Ce=!1,Ee=!1,ke=0,ge=0,Re=0,Pe=0,on=_e.height+2*Ft,yn=1;_t.forEach(function(dn){dn.attributeKeyType!==void 0&&(Ce=!0),dn.attributeComment!==void 0&&(Ee=!0)}),_t.forEach(function(dn){var On="".concat(wt.node().id,"-attr-").concat(yn),yr=0,ja=Bt.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: "+Wt().fontFamily+"; font-size: "+we+"px").text(dn.attributeType),ka=Bt.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: "+Wt().fontFamily+"; font-size: "+we+"px").text(dn.attributeName),Kn={};Kn.tn=ja,Kn.nn=ka;var Nn=ja.node().getBBox(),ro=ka.node().getBBox();if(ke=Math.max(ke,Nn.width),ge=Math.max(ge,ro.width),yr=Math.max(Nn.height,ro.height),Ce){var po=Bt.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: "+Wt().fontFamily+"; font-size: "+we+"px").text(dn.attributeKeyType||"");Kn.kn=po;var Po=po.node().getBBox();Re=Math.max(Re,Po.width),yr=Math.max(yr,Po.height)}if(Ee){var bi=Bt.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: "+Wt().fontFamily+"; font-size: "+we+"px").text(dn.attributeComment||"");Kn.cn=bi;var Ff=bi.node().getBBox();Pe=Math.max(Pe,Ff.width),yr=Math.max(yr,Ff.height)}Kn.height=yr,zt.push(Kn),on+=yr+2*Ft,yn+=1});var We=4;Ce&&(We+=2),Ee&&(We+=2);var pr=ke+ge+Re+Pe,Tr={width:Math.max(Ir.minEntityWidth,Math.max(_e.width+2*Ir.entityPadding,pr+yt*We)),height:_t.length>0?on:Math.max(Ir.minEntityHeight,_e.height+2*Ir.entityPadding)};if(_t.length>0){var Rn=Math.max(0,(Tr.width-pr-yt*We)/(We/2));wt.attr("transform","translate("+Tr.width/2+","+(Ft+_e.height/2)+")");var zr=_e.height+2*Ft,dr="attributeBoxOdd";zt.forEach(function(dn){var On=zr+Ft+dn.height/2;dn.tn.attr("transform","translate("+yt+","+On+")");var yr=Bt.insert("rect","#"+dn.tn.node().id).attr("class","er ".concat(dr)).attr("fill",Ir.fill).attr("fill-opacity","100%").attr("stroke",Ir.stroke).attr("x",0).attr("y",zr).attr("width",ke+2*yt+Rn).attr("height",dn.height+2*Ft),ja=parseFloat(yr.attr("x"))+parseFloat(yr.attr("width"));dn.nn.attr("transform","translate("+(ja+yt)+","+On+")");var ka=Bt.insert("rect","#"+dn.nn.node().id).attr("class","er ".concat(dr)).attr("fill",Ir.fill).attr("fill-opacity","100%").attr("stroke",Ir.stroke).attr("x",ja).attr("y",zr).attr("width",ge+2*yt+Rn).attr("height",dn.height+2*Ft),Kn=parseFloat(ka.attr("x"))+parseFloat(ka.attr("width"));if(Ce){dn.kn.attr("transform","translate("+(Kn+yt)+","+On+")");var Nn=Bt.insert("rect","#"+dn.kn.node().id).attr("class","er ".concat(dr)).attr("fill",Ir.fill).attr("fill-opacity","100%").attr("stroke",Ir.stroke).attr("x",Kn).attr("y",zr).attr("width",Re+2*yt+Rn).attr("height",dn.height+2*Ft);Kn=parseFloat(Nn.attr("x"))+parseFloat(Nn.attr("width"))}Ee&&(dn.cn.attr("transform","translate("+(Kn+yt)+","+On+")"),Bt.insert("rect","#"+dn.cn.node().id).attr("class","er ".concat(dr)).attr("fill",Ir.fill).attr("fill-opacity","100%").attr("stroke",Ir.stroke).attr("x",Kn).attr("y",zr).attr("width",Pe+2*yt+Rn).attr("height",dn.height+2*Ft)),zr+=dn.height+2*Ft,dr=dr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Tr.height=Math.max(Ir.minEntityHeight,on),wt.attr("transform","translate("+Tr.width/2+","+Tr.height/2+")");return Tr}(Nt,$t,rt[Et].attributes),Kt=Mt.width,Jt=Mt.height,At=Nt.insert("rect","#"+Rt).attr("class","er entityBox").attr("fill",Ir.fill).attr("fill-opacity","100%").attr("stroke",Ir.stroke).attr("x",0).attr("y",0).attr("width",Kt).attr("height",Jt).node().getBBox();vt.setNode(Et,{width:At.width,height:At.height,shape:"rect",id:Et})}),ft}(y,xa.getEntities(),d),_=function(ct,rt){return ct.forEach(function(vt){rt.setEdge(vt.entityA,vt.entityB,{relationship:vt},T3(vt))}),ct}(xa.getRelationships(),d);Zc().layout(d),function(ct,rt){rt.nodes().forEach(function(vt){vt!==void 0&&rt.node(vt)!==void 0&&ct.select("#"+vt).attr("transform","translate("+(rt.node(vt).x-rt.node(vt).width/2)+","+(rt.node(vt).y-rt.node(vt).height/2)+" )")})}(y,d),_.forEach(function(ct){(function(rt,vt,ft,Et){k2++;var Nt=ft.edge(vt.entityA,vt.entityB,T3(vt)),Rt=ko().x(function(wt){return wt.x}).y(function(wt){return wt.y}).curve(jr),$t=rt.insert("path","#"+Et).attr("class","er relationshipLine").attr("d",Rt(Nt.points)).attr("stroke",Ir.stroke).attr("fill","none");vt.relSpec.relType===xa.Identification.NON_IDENTIFYING&&$t.attr("stroke-dasharray","8,8");var Mt="";switch(Ir.arrowMarkerAbsolute&&(Mt=(Mt=(Mt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),vt.relSpec.cardA){case xa.Cardinality.ZERO_OR_ONE:$t.attr("marker-end","url("+Mt+"#"+Rs.ZERO_OR_ONE_END+")");break;case xa.Cardinality.ZERO_OR_MORE:$t.attr("marker-end","url("+Mt+"#"+Rs.ZERO_OR_MORE_END+")");break;case xa.Cardinality.ONE_OR_MORE:$t.attr("marker-end","url("+Mt+"#"+Rs.ONE_OR_MORE_END+")");break;case xa.Cardinality.ONLY_ONE:$t.attr("marker-end","url("+Mt+"#"+Rs.ONLY_ONE_END+")")}switch(vt.relSpec.cardB){case xa.Cardinality.ZERO_OR_ONE:$t.attr("marker-start","url("+Mt+"#"+Rs.ZERO_OR_ONE_START+")");break;case xa.Cardinality.ZERO_OR_MORE:$t.attr("marker-start","url("+Mt+"#"+Rs.ZERO_OR_MORE_START+")");break;case xa.Cardinality.ONE_OR_MORE:$t.attr("marker-start","url("+Mt+"#"+Rs.ONE_OR_MORE_START+")");break;case xa.Cardinality.ONLY_ONE:$t.attr("marker-start","url("+Mt+"#"+Rs.ONLY_ONE_START+")")}var Kt=$t.node().getTotalLength(),Jt=$t.node().getPointAtLength(.5*Kt),At="rel"+k2,Bt=rt.append("text").attr("class","er relationshipLabel").attr("id",At).attr("x",Jt.x).attr("y",Jt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Wt().fontFamily+"; font-size: "+Ir.fontSize+"px").text(vt.roleA).node().getBBox();rt.insert("rect","#"+At).attr("class","er relationshipLabelBox").attr("x",Jt.x-Bt.width/2).attr("y",Jt.y-Bt.height/2).attr("width",Bt.width).attr("height",Bt.height).attr("fill","white").attr("fill-opacity","85%")})(y,ct,d,w)});var D=Ir.diagramPadding,j=y.node().getBBox(),P=j.width+2*D,$=j.height+2*D;Ia(y,$,P,Ir.useMaxWidth),y.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat($)),w2(r.yy,y,e)};function T2(t){return T2=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},T2(t)}function nd(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 Fs,pf,r6="flowchart-",C2=0,pl=Wt(),ni={},Jc=[],tu=[],cs=[],gf={},E2={},S2=0,A2=!0,rd=[],id=function(t){for(var e=Object.keys(ni),r=0;r<e.length;r++)if(ni[e[r]].id===t)return ni[e[r]].domId;return t},ad=function(t,e,r,a){var c={start:t,end:e,type:void 0,text:""};(a=r.text)!==void 0&&(c.text=jn.sanitizeText(a.trim(),pl),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),Jc.push(c)},M2=function(t,e){t.split(",").forEach(function(r){var a=r;ni[a]!==void 0&&ni[a].classes.push(e),gf[a]!==void 0&&gf[a].classes.push(e)})},yf=function(t){var e=Ne(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ne("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ne(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Ne(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),Ne(this).classed("hover",!1)})};rd.push(yf);var i6=function(t){for(var e=0;e<cs.length;e++)if(cs[e].id===t)return e;return-1},N2=-1,S3=[],a6=function t(e,r){var a=cs[r].nodes;if(!((N2+=1)>2e3)){if(S3[N2]=r,cs[r].id===e)return{result:!0,count:0};for(var c=0,u=1;c<a.length;){var d=i6(a[c]);if(d>=0){var y=t(e,d);if(y.result)return{result:!0,count:u+y.count};u+=y.count}c+=1}return{result:!1,count:u}}},mf=function(t,e){var r=!1;return t.forEach(function(a){a.nodes.indexOf(e)>=0&&(r=!0)}),r},A3=function(t,e){var r=[];return t.nodes.forEach(function(a,c){mf(e,a)||r.push(t.nodes[c])}),{nodes:r}};const nr={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},defaultConfig:function(){return rf.flowchart},addVertex:function(t,e,r,a,c,u){var d,y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},w=t;w!==void 0&&w.trim().length!==0&&(ni[w]===void 0&&(ni[w]={id:w,domId:r6+w+"-"+C2,styles:[],classes:[]}),C2++,e!==void 0?(pl=Wt(),(d=jn.sanitizeText(e.trim(),pl))[0]==='"'&&d[d.length-1]==='"'&&(d=d.substring(1,d.length-1)),ni[w].text=d):ni[w].text===void 0&&(ni[w].text=t),r!==void 0&&(ni[w].type=r),a!=null&&a.forEach(function(_){ni[w].styles.push(_)}),c!=null&&c.forEach(function(_){ni[w].classes.push(_)}),u!==void 0&&(ni[w].dir=u),ni[w].props=y)},lookUpDomId:id,addLink:function(t,e,r,a){var c,u;for(c=0;c<t.length;c++)for(u=0;u<e.length;u++)ad(t[c],e[u],r,a)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?Jc.defaultInterpolate=e:Jc[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?Jc.defaultStyle=e:(Qn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Jc[r].style=e)})},addClass:function(t,e){tu[t]===void 0&&(tu[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var a=r.replace("fill","bgFill").replace("color","fill");tu[t].textStyles.push(a)}tu[t].styles.push(r)})},setDirection:function(t){(Fs=t).match(/.*</)&&(Fs="RL"),Fs.match(/.*\^/)&&(Fs="BT"),Fs.match(/.*>/)&&(Fs="LR"),Fs.match(/.*v/)&&(Fs="TB")},setClass:M2,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(E2[pf==="gen-1"?id(r):r]=jn.sanitizeText(e,pl))})},getTooltip:function(t){return E2[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,d){var y=id(c);if(Wt().securityLevel==="loose"&&u!==void 0){var w=[];if(typeof d=="string"){w=d.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var _=0;_<w.length;_++){var D=w[_].trim();D.charAt(0)==='"'&&D.charAt(D.length-1)==='"'&&(D=D.substr(1,D.length-2)),w[_]=D}}w.length===0&&w.push(c),ni[c]!==void 0&&(ni[c].haveCallback=!0,rd.push(function(){var j=document.querySelector('[id="'.concat(y,'"]'));j!==null&&j.addEventListener("click",function(){var P;Qn.runFunc.apply(Qn,[u].concat(function($){if(Array.isArray($))return nd($)}(P=w)||function($){if(typeof Symbol!="undefined"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(P)||function($,ct){if($){if(typeof $=="string")return nd($,ct);var rt=Object.prototype.toString.call($).slice(8,-1);return rt==="Object"&&$.constructor&&(rt=$.constructor.name),rt==="Map"||rt==="Set"?Array.from($):rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt)?nd($,ct):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)}),M2(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(a){ni[a]!==void 0&&(ni[a].link=Qn.formatUrl(e,pl),ni[a].linkTarget=r)}),M2(t,"clickable")},bindFunctions:function(t){rd.forEach(function(e){e(t)})},getDirection:function(){return Fs.trim()},getVertices:function(){return ni},getEdges:function(){return Jc},getClasses:function(){return tu},clear:function(t){ni={},tu={},Jc=[],(rd=[]).push(yf),cs=[],gf={},S2=0,E2=[],A2=!0,pf=t||"gen-1"},setGen:function(t){pf=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=[],d=function(j){var P,$={boolean:{},number:{},string:{}},ct=[],rt=j.filter(function(vt){var ft=T2(vt);return vt.stmt&&vt.stmt==="dir"?(P=vt.value,!1):vt.trim()!==""&&(ft in $?!$[ft].hasOwnProperty(vt)&&($[ft][vt]=!0):!(ct.indexOf(vt)>=0)&&ct.push(vt))});return{nodeList:rt,dir:P}}(u.concat.apply(u,e)),y=d.nodeList,w=d.dir;if(u=y,pf==="gen-1"){g.warn("LOOKING UP");for(var _=0;_<u.length;_++)u[_]=id(u[_])}a=a||"subGraph"+S2,c=c||"",c=jn.sanitizeText(c,pl),S2+=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=A3(D,cs).nodes,cs.push(D),gf[a]=D,a},getDepthFirstPos:function(t){return S3[t]},indexNodes:function(){N2=-1,cs.length>0&&a6("none",cs.length-1)},getSubGraphs:function(){return cs},destructLink:function(t,e){var r,a=function(c){var u=c.trim(),d=u.slice(0,-1),y="arrow_open";switch(u.slice(-1)){case"x":y="arrow_cross",u[0]==="x"&&(y="double_"+y,d=d.slice(1));break;case">":y="arrow_point",u[0]==="<"&&(y="double_"+y,d=d.slice(1));break;case"o":y="arrow_circle",u[0]==="o"&&(y="double_"+y,d=d.slice(1))}var w="normal",_=d.length-1;d[0]==="="&&(w="thick");var D=function(j,P){for(var $=P.length,ct=0,rt=0;rt<$;++rt)P[rt]==="."&&++ct;return ct}(0,d);return D&&(w="dotted",_=D),{type:y,stroke:w,length:_}}(t);if(e){if(r=function(c){var u=c.trim(),d="arrow_open";switch(u[0]){case"<":d="arrow_point",u=u.slice(1);break;case"x":d="arrow_cross",u=u.slice(1);break;case"o":d="arrow_circle",u=u.slice(1)}var y="normal";return u.indexOf("=")!==-1&&(y="thick"),u.indexOf(".")!==-1&&(y="dotted"),{type:d,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!!A2&&(A2=!1,!0)}},exists:mf,makeUniq:A3};var o6=f(3602),od=f.n(o6),s6=f(4949),Qa=f.n(s6),M3=f(8284),sd=f.n(M3);function c6(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=ta(t,a,a,c);return r.intersect=function(d){return Qa().intersect.polygon(r,c,d)},u}function u6(t,e,r){var a=e.height,c=a/4,u=e.width+2*c,d=[{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=ta(t,u,a,d);return r.intersect=function(w){return Qa().intersect.polygon(r,d,w)},y}function or(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function N3(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function Ki(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function eu(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function l6(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function D2(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function us(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(d){return Qa().intersect.rect(r,d)},u}function gl(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}],d=ta(t,a,c,u);return r.intersect=function(y){return Qa().intersect.polygon(r,u,y)},d}function Ji(t,e,r){var a=e.width,c=a/2,u=c/(2.5+a/50),d=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,"+d+" a "+c+","+u+" 0,0,0 "+a+" 0 l 0,"+-d,w=t.attr("label-offset-y",u).insert("path",":first-child").attr("d",y).attr("transform","translate("+-a/2+","+-(d/2+u)+")");return r.intersect=function(_){var D=Qa().intersect.rect(r,_),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,_.y-r.y>0&&(P=-P),D.y+=P}return D},w}function ta(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 cd=function(t){t.shapes().question=c6,t.shapes().hexagon=u6,t.shapes().stadium=us,t.shapes().subroutine=gl,t.shapes().cylinder=Ji,t.shapes().rect_left_inv_arrow=or,t.shapes().lean_right=N3,t.shapes().lean_left=Ki,t.shapes().trapezoid=eu,t.shapes().inv_trapezoid=l6,t.shapes().rect_right_inv_arrow=D2};var Ps={};const D3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ps[e[r]]=t[e[r]]},L3=function(t,e){g.info("Drawing flowchart"),nr.clear(),nr.setGen("gen-1");var r=od().parser;r.yy=nr;var a,c=Wt().securityLevel;c==="sandbox"&&(a=Ne("#i"+e));var u=Ne(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),d=c==="sandbox"?a.nodes()[0].contentDocument:document;r.parse(t);var y=nr.getDirection();y===void 0&&(y="TD");for(var w,_=Wt().flowchart,D=_.nodeSpacing||50,j=_.rankSpacing||50,P=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:y,nodesep:D,ranksep:j,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),$=nr.getSubGraphs(),ct=$.length-1;ct>=0;ct--)w=$[ct],nr.addVertex(w.id,w.title,"group",void 0,w.classes);var rt=nr.getVertices();g.warn("Get vertices",rt);var vt=nr.getEdges(),ft=0;for(ft=$.length-1;ft>=0;ft--){w=$[ft],Js("cluster").append("text");for(var Et=0;Et<w.nodes.length;Et++)g.warn("Setting subgraph",w.nodes[Et],nr.lookUpDomId(w.nodes[Et]),nr.lookUpDomId(w.id)),P.setParent(nr.lookUpDomId(w.nodes[Et]),nr.lookUpDomId(w.id))}(function(Pe,on,yn,We,pr){Wt().securityLevel;var Tr=We?We.select('[id="'.concat(yn,'"]')):Ne('[id="'.concat(yn,'"]')),Rn=pr||document;Object.keys(Pe).forEach(function(zr){var dr=Pe[zr],dn="default";dr.classes.length>0&&(dn=dr.classes.join(" "));var On,yr=pc(dr.styles),ja=dr.text!==void 0?dr.text:dr.id;if(Gi(Wt().flowchart.htmlLabels)){var ka={label:ja.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Ff){return"<i class='".concat(Ff.replace(":"," "),"'></i>")})};(On=sd()(Tr,ka).node()).parentNode.removeChild(On)}else{var Kn=Rn.createElementNS("http://www.w3.org/2000/svg","text");Kn.setAttribute("style",yr.labelStyle.replace("color:","fill:"));for(var Nn=ja.split(jn.lineBreakRegex),ro=0;ro<Nn.length;ro++){var po=Rn.createElementNS("http://www.w3.org/2000/svg","tspan");po.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),po.setAttribute("dy","1em"),po.setAttribute("x","1"),po.textContent=Nn[ro],Kn.appendChild(po)}On=Kn}var Po=0,bi="";switch(dr.type){case"round":Po=5,bi="rect";break;case"square":case"group":default:bi="rect";break;case"diamond":bi="question";break;case"hexagon":bi="hexagon";break;case"odd":case"odd_right":bi="rect_left_inv_arrow";break;case"lean_right":bi="lean_right";break;case"lean_left":bi="lean_left";break;case"trapezoid":bi="trapezoid";break;case"inv_trapezoid":bi="inv_trapezoid";break;case"circle":bi="circle";break;case"ellipse":bi="ellipse";break;case"stadium":bi="stadium";break;case"subroutine":bi="subroutine";break;case"cylinder":bi="cylinder"}g.warn("Adding node",dr.id,dr.domId),on.setNode(nr.lookUpDomId(dr.id),{labelType:"svg",labelStyle:yr.labelStyle,shape:bi,label:On,rx:Po,ry:Po,class:dn,style:yr.style,id:nr.lookUpDomId(dr.id)})})})(rt,P,e,u,d),function(Pe,on){var yn,We,pr=0;if(Pe.defaultStyle!==void 0){var Tr=pc(Pe.defaultStyle);yn=Tr.style,We=Tr.labelStyle}Pe.forEach(function(Rn){pr++;var zr="L-"+Rn.start+"-"+Rn.end,dr="LS-"+Rn.start,dn="LE-"+Rn.end,On={};Rn.type==="arrow_open"?On.arrowhead="none":On.arrowhead="normal";var yr="",ja="";if(Rn.style!==void 0){var ka=pc(Rn.style);yr=ka.style,ja=ka.labelStyle}else switch(Rn.stroke){case"normal":yr="fill:none",yn!==void 0&&(yr=yn),We!==void 0&&(ja=We);break;case"dotted":yr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":yr=" stroke-width: 3.5px;fill:none"}On.style=yr,On.labelStyle=ja,Rn.interpolate!==void 0?On.curve=Io(Rn.interpolate,so):Pe.defaultInterpolate!==void 0?On.curve=Io(Pe.defaultInterpolate,so):On.curve=Io(Ps.curve,so),Rn.text===void 0?Rn.style!==void 0&&(On.arrowheadStyle="fill: #333"):(On.arrowheadStyle="fill: #333",On.labelpos="c",Gi(Wt().flowchart.htmlLabels)?(On.labelType="html",On.label='<span id="L-'.concat(zr,'" class="edgeLabel L-').concat(dr,"' L-").concat(dn,'">').concat(Rn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Kn){return"<i class='".concat(Kn.replace(":"," "),"'></i>")}),"</span>")):(On.labelType="text",On.label=Rn.text.replace(jn.lineBreakRegex,`
|
|
`),Rn.style===void 0&&(On.style=On.style||"stroke: #333; stroke-width: 1.5px;fill:none"),On.labelStyle=On.labelStyle.replace("color:","fill:"))),On.id=zr,On.class=dr+" "+dn,On.minlen=Rn.length||1,on.setEdge(nr.lookUpDomId(Rn.start),nr.lookUpDomId(Rn.end),On,pr)})}(vt,P);var Nt=new(Qa()).render;cd(Nt),Nt.arrows().none=function(Pe,on,yn,We){var pr=Pe.append("marker").attr("id",on).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");Qa().util.applyStyle(pr,yn[We+"Style"])},Nt.arrows().normal=function(Pe,on){Pe.append("marker").attr("id",on).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 Rt=u.select('[id="'.concat(e,'"]'));Rt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),g.warn(P);var $t=u.select("#"+e+" g");Nt($t,P),$t.selectAll("g.node").attr("title",function(){return nr.getTooltip(this.id)});var Mt=_.diagramPadding,Kt=Rt.node().getBBox(),Jt=Kt.width+2*Mt,At=Kt.height+2*Mt;Ia(Rt,At,Jt,_.useMaxWidth);var Bt="".concat(Kt.x-Mt," ").concat(Kt.y-Mt," ").concat(Jt," ").concat(At);for(g.debug("viewBox ".concat(Bt)),Rt.attr("viewBox",Bt),nr.indexNodes("subGraph"+ft),ft=0;ft<$.length;ft++)if((w=$[ft]).title!=="undefined"){var wt=d.querySelectorAll("#"+e+' [id="'+nr.lookUpDomId(w.id)+'"] rect'),_t=d.querySelectorAll("#"+e+' [id="'+nr.lookUpDomId(w.id)+'"]'),Ft=wt[0].x.baseVal.value,yt=wt[0].y.baseVal.value,we=wt[0].width.baseVal.value,_e=Ne(_t[0]).select(".label");_e.attr("transform","translate(".concat(Ft+we/2,", ").concat(yt+14,")")),_e.attr("id",e+"Text");for(var zt=0;zt<w.classes.length;zt++)_t[0].classList.add(w.classes[zt])}Gi(_.htmlLabels);for(var Ce=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Ee=0;Ee<Ce.length;Ee++){var ke=Ce[Ee],ge=ke.getBBox(),Re=d.createElementNS("http://www.w3.org/2000/svg","rect");Re.setAttribute("rx",0),Re.setAttribute("ry",0),Re.setAttribute("width",ge.width),Re.setAttribute("height",ge.height),ke.insertBefore(Re,ke.firstChild)}Object.keys(rt).forEach(function(Pe){var on=rt[Pe];if(on.link){var yn=u.select("#"+e+' [id="'+nr.lookUpDomId(Pe)+'"]');if(yn){var We=d.createElementNS("http://www.w3.org/2000/svg","a");We.setAttributeNS("http://www.w3.org/2000/svg","class",on.classes.join(" ")),We.setAttributeNS("http://www.w3.org/2000/svg","href",on.link),We.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),c==="sandbox"?We.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):on.linkTarget&&We.setAttributeNS("http://www.w3.org/2000/svg","target",on.linkTarget);var pr=yn.insert(function(){return We},":first-child"),Tr=yn.select(".label-container");Tr&&pr.append(function(){return Tr.node()});var Rn=yn.select(".label");Rn&&pr.append(function(){return Rn.node()})}}})};var B3={};const O3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)B3[e[r]]=t[e[r]]},h6=function(t,e){g.info("Drawing flowchart"),nr.clear(),nr.setGen("gen-2");var r=od().parser;r.yy=nr,r.parse(t);var a=nr.getDirection();a===void 0&&(a="TD");var c,u=Wt().flowchart,d=u.nodeSpacing||50,y=u.rankSpacing||50,w=Wt().securityLevel;w==="sandbox"&&(c=Ne("#i"+e));var _,D=Ne(w==="sandbox"?c.nodes()[0].contentDocument.body:"body"),j=w==="sandbox"?c.nodes()[0].contentDocument:document,P=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:d,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),$=nr.getSubGraphs();g.info("Subgraphs - ",$);for(var ct=$.length-1;ct>=0;ct--)_=$[ct],g.info("Subgraph - ",_),nr.addVertex(_.id,_.title,"group",void 0,_.classes,_.dir);var rt=nr.getVertices(),vt=nr.getEdges();g.info(vt);var ft=0;for(ft=$.length-1;ft>=0;ft--){_=$[ft],Js("cluster").append("text");for(var Et=0;Et<_.nodes.length;Et++)g.info("Setting up subgraphs",_.nodes[Et],_.id),P.setParent(_.nodes[Et],_.id)}(function(yt,we,_e,zt,Ce){var Ee=zt.select('[id="'.concat(_e,'"]'));Object.keys(yt).forEach(function(ke){var ge=yt[ke],Re="default";ge.classes.length>0&&(Re=ge.classes.join(" "));var Pe,on=pc(ge.styles),yn=ge.text!==void 0?ge.text:ge.id;if(Gi(Wt().flowchart.htmlLabels)){var We={label:yn.replace(/fa[lrsb]?:fa-[\w-]+/g,function(On){return"<i class='".concat(On.replace(":"," "),"'></i>")})};(Pe=sd()(Ee,We).node()).parentNode.removeChild(Pe)}else{var pr=Ce.createElementNS("http://www.w3.org/2000/svg","text");pr.setAttribute("style",on.labelStyle.replace("color:","fill:"));for(var Tr=yn.split(jn.lineBreakRegex),Rn=0;Rn<Tr.length;Rn++){var zr=Ce.createElementNS("http://www.w3.org/2000/svg","tspan");zr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),zr.setAttribute("dy","1em"),zr.setAttribute("x","1"),zr.textContent=Tr[Rn],pr.appendChild(zr)}Pe=pr}var dr=0,dn="";switch(ge.type){case"round":dr=5,dn="rect";break;case"square":case"group":default:dn="rect";break;case"diamond":dn="question";break;case"hexagon":dn="hexagon";break;case"odd":case"odd_right":dn="rect_left_inv_arrow";break;case"lean_right":dn="lean_right";break;case"lean_left":dn="lean_left";break;case"trapezoid":dn="trapezoid";break;case"inv_trapezoid":dn="inv_trapezoid";break;case"circle":dn="circle";break;case"ellipse":dn="ellipse";break;case"stadium":dn="stadium";break;case"subroutine":dn="subroutine";break;case"cylinder":dn="cylinder";break;case"doublecircle":dn="doublecircle"}we.setNode(ge.id,{labelStyle:on.labelStyle,shape:dn,labelText:yn,rx:dr,ry:dr,class:Re,style:on.style,id:ge.id,link:ge.link,linkTarget:ge.linkTarget,tooltip:nr.getTooltip(ge.id)||"",domId:nr.lookUpDomId(ge.id),haveCallback:ge.haveCallback,width:ge.type==="group"?500:void 0,dir:ge.dir,type:ge.type,props:ge.props,padding:Wt().flowchart.padding}),g.info("setNode",{labelStyle:on.labelStyle,shape:dn,labelText:yn,rx:dr,ry:dr,class:Re,style:on.style,id:ge.id,domId:nr.lookUpDomId(ge.id),width:ge.type==="group"?500:void 0,type:ge.type,dir:ge.dir,props:ge.props,padding:Wt().flowchart.padding})})})(rt,P,e,D,j),function(yt,we){g.info("abc78 edges = ",yt);var _e,zt,Ce=0,Ee={};if(yt.defaultStyle!==void 0){var ke=pc(yt.defaultStyle);_e=ke.style,zt=ke.labelStyle}yt.forEach(function(ge){Ce++;var Re="L-"+ge.start+"-"+ge.end;Ee[Re]===void 0?(Ee[Re]=0,g.info("abc78 new entry",Re,Ee[Re])):(Ee[Re]++,g.info("abc78 new entry",Re,Ee[Re]));var Pe=Re+"-"+Ee[Re];g.info("abc78 new link id to be used is",Re,Pe,Ee[Re]);var on="LS-"+ge.start,yn="LE-"+ge.end,We={style:"",labelStyle:""};switch(We.minlen=ge.length||1,ge.type==="arrow_open"?We.arrowhead="none":We.arrowhead="normal",We.arrowTypeStart="arrow_open",We.arrowTypeEnd="arrow_open",ge.type){case"double_arrow_cross":We.arrowTypeStart="arrow_cross";case"arrow_cross":We.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":We.arrowTypeStart="arrow_point";case"arrow_point":We.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":We.arrowTypeStart="arrow_circle";case"arrow_circle":We.arrowTypeEnd="arrow_circle"}var pr="",Tr="";switch(ge.stroke){case"normal":pr="fill:none;",_e!==void 0&&(pr=_e),zt!==void 0&&(Tr=zt),We.thickness="normal",We.pattern="solid";break;case"dotted":We.thickness="normal",We.pattern="dotted",We.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":We.thickness="thick",We.pattern="solid",We.style="stroke-width: 3.5px;fill:none;"}if(ge.style!==void 0){var Rn=pc(ge.style);pr=Rn.style,Tr=Rn.labelStyle}We.style=We.style+=pr,We.labelStyle=We.labelStyle+=Tr,ge.interpolate!==void 0?We.curve=Io(ge.interpolate,so):yt.defaultInterpolate!==void 0?We.curve=Io(yt.defaultInterpolate,so):We.curve=Io(B3.curve,so),ge.text===void 0?ge.style!==void 0&&(We.arrowheadStyle="fill: #333"):(We.arrowheadStyle="fill: #333",We.labelpos="c"),We.labelType="text",We.label=ge.text.replace(jn.lineBreakRegex,`
|
|
`),ge.style===void 0&&(We.style=We.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),We.labelStyle=We.labelStyle.replace("color:","fill:"),We.id=Pe,We.classes="flowchart-link "+on+" "+yn,we.setEdge(ge.start,ge.end,We,Ce)})}(vt,P);var Nt=D.select('[id="'.concat(e,'"]'));Nt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var Rt=D.select("#"+e+" g");td(Rt,P,["point","circle","cross"],"flowchart",e);var $t=u.diagramPadding,Mt=Nt.node().getBBox(),Kt=Mt.width+2*$t,Jt=Mt.height+2*$t;if(g.debug("new ViewBox 0 0 ".concat(Kt," ").concat(Jt),"translate(".concat($t-P._label.marginx,", ").concat($t-P._label.marginy,")")),Ia(Nt,Jt,Kt,u.useMaxWidth),Nt.attr("viewBox","0 0 ".concat(Kt," ").concat(Jt)),Nt.select("g").attr("transform","translate(".concat($t-P._label.marginx,", ").concat($t-Mt.y,")")),nr.indexNodes("subGraph"+ft),!u.htmlLabels)for(var At=j.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Bt=0;Bt<At.length;Bt++){var wt=At[Bt],_t=wt.getBBox(),Ft=j.createElementNS("http://www.w3.org/2000/svg","rect");Ft.setAttribute("rx",0),Ft.setAttribute("ry",0),Ft.setAttribute("width",_t.width),Ft.setAttribute("height",_t.height),wt.insertBefore(Ft,wt.firstChild)}Object.keys(rt).forEach(function(yt){var we=rt[yt];if(we.link){var _e=Ne("#"+e+' [id="'+yt+'"]');if(_e){var zt=j.createElementNS("http://www.w3.org/2000/svg","a");zt.setAttributeNS("http://www.w3.org/2000/svg","class",we.classes.join(" ")),zt.setAttributeNS("http://www.w3.org/2000/svg","href",we.link),zt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?zt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):we.linkTarget&&zt.setAttributeNS("http://www.w3.org/2000/svg","target",we.linkTarget);var Ce=_e.insert(function(){return zt},":first-child"),Ee=_e.select(".label-container");Ee&&Ce.append(function(){return Ee.node()});var ke=_e.select(".label");ke&&Ce.append(function(){return ke.node()})}}})};function L2(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 B2,ud,Ka="",O2="",ld="",yc=[],nu=[],vf={},bf="",hd=[],I2=[],yl="",I3=["active","done","crit","milestone"],_f=[],ml=!1,xf=!1,ru=0,R2=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)},F2=function(t,e,r,a){if(r.length&&!t.manualEndTime){var c=h()(t.startTime,e,!0);c.add(1,"d");var u=h()(t.endTime,e,!0),d=wf(c,u,e,r,a);t.endTime=u.toDate(),t.renderEndTime=d}},wf=function(t,e,r,a,c){for(var u=!1,d=null;t<=e;)u||(d=e.toDate()),(u=R2(t,r,a,c))&&e.add(1,"d"),t.add(1,"d");return d},kf=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=bl(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 d=h()(r,e.trim(),!0);return d.isValid()?d.toDate():(g.debug("Invalid date:"+r),g.debug("With date format:"+e.trim()),new Date)},R3=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()},F3=function(t,e,r,a){a=a||!1,r=r.trim();var c=h()(r,e.trim(),!0);return c.isValid()?(a&&c.add(1,"d"),c.toDate()):R3(/^([\d]+)([wdhms])/.exec(r.trim()),h()(t))},fd=0,vl=function(t){return t===void 0?"task"+(fd+=1):t},xi=[],P3={},bl=function(t){var e=P3[t];return xi[e]},j3=function(){for(var t=function(a){var c=xi[a],u="";switch(xi[a].raw.startTime.type){case"prevTaskEnd":var d=bl(c.prevTaskId);c.startTime=d.endTime;break;case"getStartDate":(u=kf(0,Ka,xi[a].raw.startTime.startData))&&(xi[a].startTime=u)}return xi[a].startTime&&(xi[a].endTime=F3(xi[a].startTime,Ka,xi[a].raw.endTime.data,ml),xi[a].endTime&&(xi[a].processed=!0,xi[a].manualEndTime=h()(xi[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),F2(xi[a],Ka,nu,yc))),xi[a].processed},e=!0,r=0;r<xi.length;r++)t(r),e=e&&xi[r].processed;return e},Y3=function(t,e){t.split(",").forEach(function(r){var a=bl(r);a!==void 0&&a.classes.push(e)})},dd=function(t,e){_f.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),_f.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const iu={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().gantt},clear:function(){hd=[],I2=[],yl="",_f=[],bf="",fd=0,B2=void 0,ud=void 0,xi=[],Ka="",O2="",ld="",yc=[],nu=[],ml=!1,xf=!1,ru=0,vf={}},setDateFormat:function(t){Ka=t},getDateFormat:function(){return Ka},enableInclusiveEndDates:function(){ml=!0},endDatesAreInclusive:function(){return ml},enableTopAxis:function(){xf=!0},topAxisEnabled:function(){return xf},setAxisFormat:function(t){O2=t},getAxisFormat:function(){return O2},setTodayMarker:function(t){ld=t},getTodayMarker:function(){return ld},setTitle:function(t){bf=t},getTitle:function(){return bf},addSection:function(t){yl=t,hd.push(t)},getSections:function(){return hd},getTasks:function(){for(var t=j3(),e=0;!t&&e<10;)t=j3(),e++;return I2=xi},addTask:function(t,e){var r={section:yl,type:yl,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},a=function(u,d){var y=(d.substr(0,1)===":"?d.substr(1,d.length):d).split(","),w={};P2(y,w,I3);for(var _=0;_<y.length;_++)y[_]=y[_].trim();switch(y.length){case 1:w.id=vl(),w.startTime={type:"prevTaskEnd",id:u},w.endTime={data:y[0]};break;case 2:w.id=vl(),w.startTime={type:"getStartDate",startData:y[0]},w.endTime={data:y[1]};break;case 3:w.id=vl(y[0]),w.startTime={type:"getStartDate",startData:y[1]},w.endTime={data:y[2]}}return w}(ud,e);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=ud,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.order=ru,ru++;var c=xi.push(r);ud=r.id,P3[r.id]=c-1},findTaskById:bl,addTaskOrg:function(t,e){var r={section:yl,type:yl,description:t,task:t,classes:[]},a=function(c,u){var d=(u.substr(0,1)===":"?u.substr(1,u.length):u).split(","),y={};P2(d,y,I3);for(var w=0;w<d.length;w++)d[w]=d[w].trim();var _="";switch(d.length){case 1:y.id=vl(),y.startTime=c.endTime,_=d[0];break;case 2:y.id=vl(),y.startTime=kf(0,Ka,d[0]),_=d[1];break;case 3:y.id=vl(d[0]),y.startTime=kf(0,Ka,d[1]),_=d[2]}return _&&(y.endTime=F3(y.startTime,Ka,_,ml),y.manualEndTime=h()(_,"YYYY-MM-DD",!0).isValid(),F2(y,Ka,nu,yc)),y}(B2,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,B2=r,I2.push(r)},setIncludes:function(t){yc=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return yc},setExcludes:function(t){nu=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return nu},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,d){if(Wt().securityLevel==="loose"&&u!==void 0){var y=[];if(typeof d=="string"){y=d.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var w=0;w<y.length;w++){var _=y[w].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),y[w]=_}}y.length===0&&y.push(c),bl(c)!==void 0&&dd(c,function(){var D;Qn.runFunc.apply(Qn,[u].concat(function(j){if(Array.isArray(j))return L2(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 L2(j,P);var $=Object.prototype.toString.call(j).slice(8,-1);return $==="Object"&&j.constructor&&($=j.constructor.name),$==="Map"||$==="Set"?Array.from(j):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?L2(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)}),Y3(t,"clickable")},setLink:function(t,e){var r=e;Wt().securityLevel!=="loose"&&(r=(0,Gc.N)(e)),t.split(",").forEach(function(a){bl(a)!==void 0&&(dd(a,function(){window.open(r,"_self")}),vf[a]=r)}),Y3(t,"clickable")},getLinks:function(){return vf},bindFunctions:function(t){_f.forEach(function(e){e(t)})},durationToDate:R3,isInvalidDate:R2};function P2(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 mc,Ja=f(9959),z3=f.n(Ja);Ja.parser.yy=iu;const f6=function(t,e){var r=Wt().gantt;Ja.parser.yy.clear(),Ja.parser.parse(t);var a,c=Wt().securityLevel;c==="sandbox"&&(a=Ne("#i"+e));var u=Ne(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),d=c==="sandbox"?a.nodes()[0].contentDocument:document,y=d.getElementById(e);(mc=y.parentElement.offsetWidth)===void 0&&(mc=1200),r.useWidth!==void 0&&(mc=r.useWidth);var w=Ja.parser.yy.getTasks(),_=w.length*(r.barHeight+r.barGap)+2*r.topPadding;y.setAttribute("viewBox","0 0 "+mc+" "+_);for(var D=u.select('[id="'.concat(e,'"]')),j=function(){return ys.apply(Gy(Ty,Lb,_s,pp,u1,Tu,c1,Jl,ku,Cy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([I(w,function(rt){return rt.startTime}),A(w,function(rt){return rt.endTime})]).rangeRound([0,mc-r.leftPadding-r.rightPadding]),P=[],$=0;$<w.length;$++)P.push(w[$].type);var ct=P;P=function(rt){for(var vt={},ft=[],Et=0,Nt=rt.length;Et<Nt;++Et)Object.prototype.hasOwnProperty.call(vt,rt[Et])||(vt[rt[Et]]=!0,ft.push(rt[Et]));return ft}(P),w.sort(function(rt,vt){var ft=rt.startTime,Et=vt.startTime,Nt=0;return ft>Et?Nt=1:ft<Et&&(Nt=-1),Nt}),function(rt,vt,ft){var Et=r.barHeight,Nt=Et+r.barGap,Rt=r.topPadding,$t=r.leftPadding;vy().domain([0,P.length]).range(["#00B9FA","#F95002"]).interpolate(_b),function(Mt,Kt,Jt,At,Bt,wt,_t,Ft){var yt=wt.reduce(function(ke,ge){var Re=ge.startTime;return ke?Math.min(ke,Re):Re},0),we=wt.reduce(function(ke,ge){var Re=ge.endTime;return ke?Math.max(ke,Re):Re},0),_e=Ja.parser.yy.getDateFormat();if(yt&&we){for(var zt=[],Ce=null,Ee=h()(yt);Ee.valueOf()<=we;)Ja.parser.yy.isInvalidDate(Ee,_e,_t,Ft)?Ce?Ce.end=Ee.clone():Ce={start:Ee.clone(),end:Ee.clone()}:Ce&&(zt.push(Ce),Ce=null),Ee.add(1,"d");D.append("g").selectAll("rect").data(zt).enter().append("rect").attr("id",function(ke){return"exclude-"+ke.start.format("YYYY-MM-DD")}).attr("x",function(ke){return j(ke.start)+Jt}).attr("y",r.gridLineStartPadding).attr("width",function(ke){var ge=ke.end.clone().add(1,"day");return j(ge)-j(ke.start)}).attr("height",Bt-Kt-r.gridLineStartPadding).attr("transform-origin",function(ke,ge){return(j(ke.start)+Jt+.5*(j(ke.end)-j(ke.start))).toString()+"px "+(ge*Mt+.5*Bt).toString()+"px"}).attr("class","exclude-range")}}(Nt,Rt,$t,0,ft,rt,Ja.parser.yy.getExcludes(),Ja.parser.yy.getIncludes()),function(Mt,Kt,Jt,At){var Bt,wt=(Bt=j,gt(3,Bt)).tickSize(-At+Kt+r.gridLineStartPadding).tickFormat(Ga(Ja.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(D.append("g").attr("class","grid").attr("transform","translate("+Mt+", "+(At-50)+")").call(wt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),iu.topAxisEnabled()||r.topAxis){var _t=function(Ft){return gt(1,Ft)}(j).tickSize(-At+Kt+r.gridLineStartPadding).tickFormat(Ga(Ja.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));D.append("g").attr("class","grid").attr("transform","translate("+Mt+", "+Kt+")").call(_t).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}($t,Rt,0,ft),function(Mt,Kt,Jt,At,Bt,wt,_t){D.append("g").selectAll("rect").data(Mt).enter().append("rect").attr("x",0).attr("y",function(zt,Ce){return zt.order*Kt+Jt-2}).attr("width",function(){return _t-r.rightPadding/2}).attr("height",Kt).attr("class",function(zt){for(var Ce=0;Ce<P.length;Ce++)if(zt.type===P[Ce])return"section section"+Ce%r.numberSectionStyles;return"section section0"});var Ft=D.append("g").selectAll("rect").data(Mt).enter(),yt=iu.getLinks();if(Ft.append("rect").attr("id",function(zt){return zt.id}).attr("rx",3).attr("ry",3).attr("x",function(zt){return zt.milestone?j(zt.startTime)+At+.5*(j(zt.endTime)-j(zt.startTime))-.5*Bt:j(zt.startTime)+At}).attr("y",function(zt,Ce){return zt.order*Kt+Jt}).attr("width",function(zt){return zt.milestone?Bt:j(zt.renderEndTime||zt.endTime)-j(zt.startTime)}).attr("height",Bt).attr("transform-origin",function(zt,Ce){return Ce=zt.order,(j(zt.startTime)+At+.5*(j(zt.endTime)-j(zt.startTime))).toString()+"px "+(Ce*Kt+Jt+.5*Bt).toString()+"px"}).attr("class",function(zt){var Ce="";zt.classes.length>0&&(Ce=zt.classes.join(" "));for(var Ee=0,ke=0;ke<P.length;ke++)zt.type===P[ke]&&(Ee=ke%r.numberSectionStyles);var ge="";return zt.active?zt.crit?ge+=" activeCrit":ge=" active":zt.done?ge=zt.crit?" doneCrit":" done":zt.crit&&(ge+=" crit"),ge.length===0&&(ge=" task"),zt.milestone&&(ge=" milestone "+ge),"task"+(ge+=Ee)+" "+Ce}),Ft.append("text").attr("id",function(zt){return zt.id+"-text"}).text(function(zt){return zt.task}).attr("font-size",r.fontSize).attr("x",function(zt){var Ce=j(zt.startTime),Ee=j(zt.renderEndTime||zt.endTime);zt.milestone&&(Ce+=.5*(j(zt.endTime)-j(zt.startTime))-.5*Bt),zt.milestone&&(Ee=Ce+Bt);var ke=this.getBBox().width;return ke>Ee-Ce?Ee+ke+1.5*r.leftPadding>_t?Ce+At-5:Ee+At+5:(Ee-Ce)/2+Ce+At}).attr("y",function(zt,Ce){return zt.order*Kt+r.barHeight/2+(r.fontSize/2-2)+Jt}).attr("text-height",Bt).attr("class",function(zt){var Ce=j(zt.startTime),Ee=j(zt.endTime);zt.milestone&&(Ee=Ce+Bt);var ke=this.getBBox().width,ge="";zt.classes.length>0&&(ge=zt.classes.join(" "));for(var Re=0,Pe=0;Pe<P.length;Pe++)zt.type===P[Pe]&&(Re=Pe%r.numberSectionStyles);var on="";return zt.active&&(on=zt.crit?"activeCritText"+Re:"activeText"+Re),zt.done?on=zt.crit?on+" doneCritText"+Re:on+" doneText"+Re:zt.crit&&(on=on+" critText"+Re),zt.milestone&&(on+=" milestoneText"),ke>Ee-Ce?Ee+ke+1.5*r.leftPadding>_t?ge+" taskTextOutsideLeft taskTextOutside"+Re+" "+on:ge+" taskTextOutsideRight taskTextOutside"+Re+" "+on+" width-"+ke:ge+" taskText taskText"+Re+" "+on+" width-"+ke}),Wt().securityLevel==="sandbox"){var we;we=Ne("#i"+e),Ne(we.nodes()[0].contentDocument.body);var _e=we.nodes()[0].contentDocument;Ft.filter(function(zt){return yt[zt.id]!==void 0}).each(function(zt){var Ce=_e.querySelector("#"+zt.id),Ee=_e.querySelector("#"+zt.id+"-text"),ke=Ce.parentNode,ge=_e.createElement("a");ge.setAttribute("xlink:href",yt[zt.id]),ge.setAttribute("target","_top"),ke.appendChild(ge),ge.appendChild(Ce),ge.appendChild(Ee)})}}(rt,Nt,Rt,$t,Et,0,vt),function(Mt,Kt){for(var Jt=[],At=0,Bt=0;Bt<P.length;Bt++)Jt[Bt]=[P[Bt],(wt=P[Bt],_t=ct,function(Ft){for(var yt=Ft.length,we={};yt;)we[Ft[--yt]]=(we[Ft[yt]]||0)+1;return we}(_t)[wt]||0)];var wt,_t;D.append("g").selectAll("text").data(Jt).enter().append(function(Ft){var yt=Ft[0].split(jn.lineBreakRegex),we=-(yt.length-1)/2,_e=d.createElementNS("http://www.w3.org/2000/svg","text");_e.setAttribute("dy",we+"em");for(var zt=0;zt<yt.length;zt++){var Ce=d.createElementNS("http://www.w3.org/2000/svg","tspan");Ce.setAttribute("alignment-baseline","central"),Ce.setAttribute("x","10"),zt>0&&Ce.setAttribute("dy","1em"),Ce.textContent=yt[zt],_e.appendChild(Ce)}return _e}).attr("x",10).attr("y",function(Ft,yt){if(!(yt>0))return Ft[1]*Mt/2+Kt;for(var we=0;we<yt;we++)return At+=Jt[yt-1][1],Ft[1]*Mt/2+At*Mt+Kt}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(Ft){for(var yt=0;yt<P.length;yt++)if(Ft[0]===P[yt])return"sectionTitle sectionTitle"+yt%r.numberSectionStyles;return"sectionTitle"})}(Nt,Rt),function(Mt,Kt,Jt,At){var Bt=iu.getTodayMarker();if(Bt!=="off"){var wt=D.append("g").attr("class","today"),_t=new Date,Ft=wt.append("line");Ft.attr("x1",j(_t)+Mt).attr("x2",j(_t)+Mt).attr("y1",r.titleTopMargin).attr("y2",At-r.titleTopMargin).attr("class","today"),Bt!==""&&Ft.attr("style",Bt.replace(/,/g,";"))}}($t,0,0,ft)}(w,mc,_),Ia(D,_,mc,r.useMaxWidth),D.append("text").text(Ja.parser.yy.getTitle()).attr("x",mc/2).attr("y",r.titleTopMargin).attr("class","titleText")};var U3=Wt().gitGraph.mainBranchName,Ra={},to=null,Di={};Di[U3]=to;var lo=U3,eo="LR",ea=0;function pd(){return o3({length:7})}var q3={},j2=function(t){if(t=jn.sanitizeText(t,Wt()),Di[t]===void 0){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}var r=Di[lo=t];to=Ra[r]};function H3(t,e,r){var a=t.indexOf(e);a===-1?t.push(r):t.splice(a,1,r)}function $3(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,d=[r,e.id,e.seq];for(var y in Di)Di[y]===e.id&&d.push(y);if(g.debug(d.join(" ")),e.parents&&e.parents.length==2){var w=Ra[e.parents[0]];H3(t,e,w),t.push(Ra[e.parents[1]])}else{if(e.parents.length==0)return;var _=Ra[e.parents];H3(t,e,_)}a=t,c=function(D){return D.id},u=Object.create(null),$3(t=a.reduce(function(D,j){var P=c(j);return u[P]||(u[P]=!0,D.push(j)),D},[]))}var js=function(){var t=Object.keys(Ra).map(function(e){return Ra[e]});return t.forEach(function(e){g.debug(e.id)}),t.sort(function(e,r){return e.seq-r.seq}),t},_l={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3};const vc={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().gitGraph},setDirection:function(t){eo=t},setOptions:function(t){g.debug("options str",t),t=(t=t&&t.trim())||"{}";try{q3=JSON.parse(t)}catch(e){g.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return q3},commit:function(t,e,r,a){g.debug("Entering commit:",t,e,r,a),e=jn.sanitizeText(e,Wt()),t=jn.sanitizeText(t,Wt()),a=jn.sanitizeText(a,Wt());var c={id:e||ea+"-"+pd(),message:t,seq:ea++,type:r||_l.NORMAL,tag:a||"",parents:to==null?[]:[to.id],branch:lo};to=c,Ra[c.id]=c,Di[lo]=c.id,g.debug("in pushCommit "+c.id)},branch:function(t){if(t=jn.sanitizeText(t,Wt()),Di[t]!==void 0){var e=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}Di[t]=to!=null?to.id:null,j2(t),g.debug("in createBranch")},merge:function(t){t=jn.sanitizeText(t,Wt());var e=Ra[Di[lo]],r=Ra[Di[t]];if(lo===t){var a=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw a.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},a}if(e===void 0||!e){var c=new Error('Incorrect usage of "merge". Current branch ('+lo+")has no commits");throw c.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},c}if(Di[t]===void 0){var u=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw u.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},u}if(r===void 0||!r){var d=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw d.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},d}if(e===r){var y=new Error('Incorrect usage of "merge". Both branches have same head');throw y.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},y}var w={id:ea+"-"+pd(),message:"merged branch "+t+" into "+lo,seq:ea++,parents:[to==null?null:to.id,Di[t]],branch:lo,type:_l.MERGE};to=w,Ra[w.id]=w,Di[lo]=w.id,g.debug(Di),g.debug("in mergeBranch")},checkout:j2,prettyPrint:function(){g.debug(Ra),$3([js()[0]])},clear:function(){Ra={},to=null;var t=Wt().gitGraph.mainBranchName;(Di={})[t]=null,lo=t,ea=0},getBranchesAsObjArray:function(){var t=[];for(var e in Di)t.push({name:e});return t},getBranches:function(){return Di},getCommits:function(){return Ra},getCommitsArray:js,getCurrentBranch:function(){return lo},getDirection:function(){return eo},getHead:function(){return to},commitType:_l};var d6=f(2553),Y2=f.n(d6),Tf={},wa={},xl={},wl=[],gd=0,Cf=function(t,e,r){var a=Wt().gitGraph,c=t.append("g").attr("class","commit-bullets"),u=t.append("g").attr("class","commit-labels"),d=0;Object.keys(e).sort(function(y,w){return e[y].seq-e[w].seq}).forEach(function(y,w){var _=e[y],D=wa[_.branch].pos,j=d+10;if(r){var P;switch(_.type){case 0:default:P="commit-normal";break;case 1:P="commit-reverse";break;case 2:P="commit-highlight";break;case 3:P="commit-merge"}if(_.type===2){var $=c.append("rect");$.attr("x",j-10),$.attr("y",D-10),$.attr("height",20),$.attr("width",20),$.attr("class","commit "+_.id+" commit-highlight"+wa[_.branch].index+" "+P+"-outer"),c.append("rect").attr("x",j-6).attr("y",D-6).attr("height",12).attr("width",12).attr("class","commit "+_.id+" commit"+wa[_.branch].index+" "+P+"-inner")}else{var ct=c.append("circle");if(ct.attr("cx",j),ct.attr("cy",D),ct.attr("r",_.type===3?9:10),ct.attr("class","commit "+_.id+" commit"+wa[_.branch].index),_.type===3){var rt=c.append("circle");rt.attr("cx",j),rt.attr("cy",D),rt.attr("r",6),rt.attr("class","commit "+P+" "+_.id+" commit"+wa[_.branch].index)}_.type===1&&c.append("path").attr("d","M ".concat(j-5,",").concat(D-5,"L").concat(j+5,",").concat(D+5,"M").concat(j-5,",").concat(D+5,"L").concat(j+5,",").concat(D-5)).attr("class","commit "+P+" "+_.id+" commit"+wa[_.branch].index)}}if(xl[_.id]={x:d+10,y:D},r){if(_.type!==3&&a.showCommitLabel){var vt=u.insert("rect").attr("class","commit-label-bkg"),ft=u.append("text").attr("x",d).attr("y",D+25).attr("class","commit-label").text(_.id),Et=ft.node().getBBox();vt.attr("x",d+10-Et.width/2-2).attr("y",D+13.5).attr("width",Et.width+4).attr("height",Et.height+4),ft.attr("x",d+10-Et.width/2)}if(_.tag){var Nt=u.insert("polygon"),Rt=u.append("circle"),$t=u.append("text").attr("y",D-16).attr("class","tag-label").text(_.tag),Mt=$t.node().getBBox();$t.attr("x",d+10-Mt.width/2);var Kt=Mt.height/2,Jt=D-19.2;Nt.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(d-Mt.width/2-2,",").concat(Jt+2,`
|
|
`).concat(d-Mt.width/2-2,",").concat(Jt-2,`
|
|
`).concat(d+10-Mt.width/2-4,",").concat(Jt-Kt-2,`
|
|
`).concat(d+10+Mt.width/2+4,",").concat(Jt-Kt-2,`
|
|
`).concat(d+10+Mt.width/2+4,",").concat(Jt+Kt+2,`
|
|
`).concat(d+10-Mt.width/2-4,",").concat(Jt+Kt+2)),Rt.attr("cx",d-Mt.width/2+2).attr("cy",Jt).attr("r",1.5).attr("class","tag-hole")}}(d+=50)>gd&&(gd=d)})},yd=function t(e,r,a){var c=a||0,u=e+Math.abs(e-r)/2;if(c>5)return u;for(var d=!0,y=0;y<wl.length;y++)Math.abs(wl[y]-u)<10&&(d=!1);return d?(wl.push(u),u):t(e,r-Math.abs(e-r)/5,c)};const p6=function(t,e,r){wa={},xl={},Tf={},gd=0,wl=[];var a=Wt(),c=Wt().gitGraph,u=Y2().parser;u.yy=vc,u.yy.clear(),g.debug("in gitgraph renderer",t+`
|
|
`,"id:",e,r),u.parse(t+`
|
|
`),vc.getDirection(),Tf=vc.getCommits();var d=vc.getBranchesAsObjArray(),y=0;d.forEach(function(ct,rt){wa[ct.name]={pos:y,index:rt},y+=50});var w=Ne('[id="'.concat(e,'"]'));Cf(w,Tf,!1),c.showBranches&&function(ct,rt){var vt=Wt().gitGraph,ft=ct.append("g");rt.forEach(function(Et,Nt){var Rt=wa[Et.name].pos,$t=ft.append("line");$t.attr("x1",0),$t.attr("y1",Rt),$t.attr("x2",gd),$t.attr("y2",Rt),$t.attr("class","branch branch"+Nt),wl.push(Rt);var Mt=function(Bt){var wt=document.createElementNS("http://www.w3.org/2000/svg","text"),_t=[];_t=typeof Bt=="string"?Bt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Bt)?Bt:[];for(var Ft=0;Ft<_t.length;Ft++){var yt=document.createElementNS("http://www.w3.org/2000/svg","tspan");yt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),yt.setAttribute("dy","1em"),yt.setAttribute("x","0"),yt.setAttribute("class","row"),yt.textContent=_t[Ft].trim(),wt.appendChild(yt)}return wt}(Nt===0?vt.mainBranchName:Et.name),Kt=ft.insert("rect"),Jt=ft.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Nt);Jt.node().appendChild(Mt);var At=Mt.getBBox();Kt.attr("class","branchLabelBkg label"+Nt).attr("rx",4).attr("ry",4).attr("x",-At.width-4).attr("y",-At.height/2+8).attr("width",At.width+18).attr("height",At.height+4),Jt.attr("transform","translate("+(-At.width-14)+", "+(Rt-At.height/2-1)+")"),Kt.attr("transform","translate(-19, "+(Rt-At.height/2)+")")})}(w,d),function(ct,rt){var vt=ct.append("g").attr("class","commit-arrows");Object.keys(rt).forEach(function(ft,Et){var Nt=rt[ft];Nt.parents&&Nt.parents.length>0&&Nt.parents.forEach(function(Rt){(function($t,Mt,Kt,Jt){var At=Wt(),Bt=xl[Mt.id],wt=xl[Kt.id],_t=function(ke,ge,Re){return xl[ge.id],xl[ke.id],Object.keys(Re).filter(function(Pe){return Re[Pe].branch===ge.branch&&Re[Pe].seq>ke.seq&&Re[Pe].seq<ge.seq}).length>0}(Mt,Kt,Jt);At.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var Ft,yt="",we="",_e=0,zt=0,Ce=wa[Kt.branch].index;if(_t){yt="A 10 10, 0, 0, 0,",we="A 10 10, 0, 0, 1,",_e=10,zt=10,Ce=wa[Kt.branch].index;var Ee=Bt.y<wt.y?yd(Bt.y,wt.y):yd(wt.y,Bt.y);Ft=Bt.y<wt.y?"M ".concat(Bt.x," ").concat(Bt.y," L ").concat(Bt.x," ").concat(Ee-_e," ").concat(yt," ").concat(Bt.x+zt," ").concat(Ee," L ").concat(wt.x-_e," ").concat(Ee," ").concat(we," ").concat(wt.x," ").concat(Ee+zt," L ").concat(wt.x," ").concat(wt.y):"M ".concat(Bt.x," ").concat(Bt.y," L ").concat(Bt.x," ").concat(Ee+_e," ").concat(we," ").concat(Bt.x+zt," ").concat(Ee," L ").concat(wt.x-_e," ").concat(Ee," ").concat(yt," ").concat(wt.x," ").concat(Ee-zt," L ").concat(wt.x," ").concat(wt.y)}else Bt.y<wt.y&&(yt="A 20 20, 0, 0, 0,",_e=20,zt=20,Ce=wa[Kt.branch].index,Ft="M ".concat(Bt.x," ").concat(Bt.y," L ").concat(Bt.x," ").concat(wt.y-_e," ").concat(yt," ").concat(Bt.x+zt," ").concat(wt.y," L ").concat(wt.x," ").concat(wt.y)),Bt.y>wt.y&&(yt="A 20 20, 0, 0, 0,",_e=20,zt=20,Ce=wa[Mt.branch].index,Ft="M ".concat(Bt.x," ").concat(Bt.y," L ").concat(wt.x-_e," ").concat(Bt.y," ").concat(yt," ").concat(wt.x," ").concat(Bt.y-zt," L ").concat(wt.x," ").concat(wt.y)),Bt.y===wt.y&&(Ce=wa[Mt.branch].index,Ft="M ".concat(Bt.x," ").concat(Bt.y," L ").concat(Bt.x," ").concat(wt.y-_e," ").concat(yt," ").concat(Bt.x+zt," ").concat(wt.y," L ").concat(wt.x," ").concat(wt.y));$t.append("path").attr("d",Ft).attr("class","arrow arrow"+Ce)})(vt,rt[Rt],Nt,rt)})})}(w,Tf),Cf(w,Tf,!0);var _=c.diagramPadding,D=w.node().getBBox(),j=D.width+2*_,P=D.height+2*_;Ia(w,P,j,a.useMaxWidth);var $="".concat(D.x-_," ").concat(D.y-_," ").concat(j," ").concat(P);w.attr("viewBox",$)};var md="",W3=!1;const vd={setMessage:function(t){g.debug("Setting message to: "+t),md=t},getMessage:function(){return md},setInfo:function(t){W3=t},getInfo:function(){return W3}};var g6=f(6765),bd=f.n(g6),V3={};const G3=function(t){Object.keys(t).forEach(function(e){V3[e]=t[e]})};var X3=f(7062),Z3=f.n(X3),Ef={},z2="",U2="",q2=!1;const _d={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().pie},addSection:function(t,e){t=jn.sanitizeText(t,Wt()),Ef[t]===void 0&&(Ef[t]=e,g.debug("Added new section :",t))},getSections:function(){return Ef},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){Ef={},z2="",q2=!1},setTitle:function(t){z2=jn.sanitizeText(t,Wt())},getTitle:function(){return z2},setShowData:function(t){q2=t},getShowData:function(){return q2},getAccDescription:function(){return U2},setAccDescription:function(t){U2=jn.sanitizeText(t,Wt())}};var Ys,ls=Wt();const H2=function(t,e){try{ls=Wt();var r=Z3().parser;r.yy=_d,g.debug(`Rendering info diagram
|
|
`+t);var a,c=Wt().securityLevel;c==="sandbox"&&(a=Ne("#i"+e));var u=Ne(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),d=c==="sandbox"?a.nodes()[0].contentDocument:document;r.yy.clear(),r.parse(t),g.debug("Parsed info diagram");var y=d.getElementById(e);(Ys=y.parentElement.offsetWidth)===void 0&&(Ys=1200),ls.useWidth!==void 0&&(Ys=ls.useWidth),ls.pie.useWidth!==void 0&&(Ys=ls.pie.useWidth);var w=u.select("#"+e);Ia(w,450,Ys,ls.pie.useMaxWidth),w2(r.yy,w,e),y.setAttribute("viewBox","0 0 "+Ys+" 450");var _=Math.min(Ys,450)/2-40,D=w.append("g").attr("transform","translate("+Ys/2+",225)"),j=_d.getSections(),P=0;Object.keys(j).forEach(function(Rt){P+=j[Rt]});var $=ls.themeVariables,ct=[$.pie1,$.pie2,$.pie3,$.pie4,$.pie5,$.pie6,$.pie7,$.pie8,$.pie9,$.pie10,$.pie11,$.pie12],rt=Vs().range(ct),vt=function(){var Rt=Ou,$t=T1,Mt=null,Kt=br(0),Jt=br(hh),At=br(0);function Bt(wt){var _t,Ft,yt,we,_e,zt=(wt=pm(wt)).length,Ce=0,Ee=new Array(zt),ke=new Array(zt),ge=+Kt.apply(this,arguments),Re=Math.min(hh,Math.max(-hh,Jt.apply(this,arguments)-ge)),Pe=Math.min(Math.abs(Re)/zt,At.apply(this,arguments)),on=Pe*(Re<0?-1:1);for(_t=0;_t<zt;++_t)(_e=ke[Ee[_t]=_t]=+Rt(wt[_t],_t,wt))>0&&(Ce+=_e);for($t!=null?Ee.sort(function(yn,We){return $t(ke[yn],ke[We])}):Mt!=null&&Ee.sort(function(yn,We){return Mt(wt[yn],wt[We])}),_t=0,yt=Ce?(Re-zt*on)/Ce:0;_t<zt;++_t,ge=we)Ft=Ee[_t],we=ge+((_e=ke[Ft])>0?_e*yt:0)+on,ke[Ft]={data:wt[Ft],index:_t,value:_e,startAngle:ge,endAngle:we,padAngle:Pe};return ke}return Bt.value=function(wt){return arguments.length?(Rt=typeof wt=="function"?wt:br(+wt),Bt):Rt},Bt.sortValues=function(wt){return arguments.length?($t=wt,Mt=null,Bt):$t},Bt.sort=function(wt){return arguments.length?(Mt=wt,$t=null,Bt):Mt},Bt.startAngle=function(wt){return arguments.length?(Kt=typeof wt=="function"?wt:br(+wt),Bt):Kt},Bt.endAngle=function(wt){return arguments.length?(Jt=typeof wt=="function"?wt:br(+wt),Bt):Jt},Bt.padAngle=function(wt){return arguments.length?(At=typeof wt=="function"?wt:br(+wt),Bt):At},Bt}().value(function(Rt){return Rt[1]}),ft=vt(Object.entries(j)),Et=Fp().innerRadius(0).outerRadius(_);D.selectAll("mySlices").data(ft).enter().append("path").attr("d",Et).attr("fill",function(Rt){return rt(Rt.data[0])}).attr("class","pieCircle"),D.selectAll("mySlices").data(ft).enter().append("text").text(function(Rt){return(Rt.data[1]/P*100).toFixed(0)+"%"}).attr("transform",function(Rt){return"translate("+Et.centroid(Rt)+")"}).style("text-anchor","middle").attr("class","slice"),D.append("text").text(r.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Nt=D.selectAll(".legend").data(rt.domain()).enter().append("g").attr("class","legend").attr("transform",function(Rt,$t){return"translate(216,"+(22*$t-22*rt.domain().length/2)+")"});Nt.append("rect").attr("width",18).attr("height",18).style("fill",rt).style("stroke",rt),Nt.data(ft).append("text").attr("x",22).attr("y",14).text(function(Rt){return r.yy.getShowData()||ls.showData||ls.pie.showData?Rt.data[0]+" ["+Rt.data[1]+"]":Rt.data[0]})}catch(Rt){g.error("Error while rendering info diagram"),g.error(Rt)}};var au=f(3176),Q3=f.n(au),xd=[],Fa={},Sf={},zs={},kl={};const Tl={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){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().req},addRequirement:function(t,e){return Sf[t]===void 0&&(Sf[t]={name:t,type:e,id:Fa.id,text:Fa.text,risk:Fa.risk,verifyMethod:Fa.verifyMethod}),Fa={},Sf[t]},getRequirements:function(){return Sf},setNewReqId:function(t){Fa!==void 0&&(Fa.id=t)},setNewReqText:function(t){Fa!==void 0&&(Fa.text=t)},setNewReqRisk:function(t){Fa!==void 0&&(Fa.risk=t)},setNewReqVerifyMethod:function(t){Fa!==void 0&&(Fa.verifyMethod=t)},addElement:function(t){return kl[t]===void 0&&(kl[t]={name:t,type:zs.type,docRef:zs.docRef},g.info("Added new requirement: ",t)),zs={},kl[t]},getElements:function(){return kl},setNewElementType:function(t){zs!==void 0&&(zs.type=t)},setNewElementDocRef:function(t){zs!==void 0&&(zs.docRef=t)},addRelationship:function(t,e,r){xd.push({type:t,src:e,dst:r})},getRelationships:function(){return xd},clear:function(){xd=[],Fa={},Sf={},zs={},kl={}}};var Cl={CONTAINS:"contains",ARROW:"arrow"};const y6=Cl;var wi={},K3=0,ou=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",wi.rect_min_width+"px").attr("height",wi.rect_min_height+"px")},su=function(t,e,r){var a=wi.rect_min_width/2,c=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",a).attr("y",wi.rect_padding).attr("dominant-baseline","hanging"),u=0;r.forEach(function(y){u==0?c.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",0).text(y):c.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",.75*wi.line_height).text(y),u++});var d=1.5*wi.rect_padding+u*wi.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",wi.rect_min_width).attr("y1",d).attr("y2",d),{titleNode:c,y:d}},J3=function(t,e,r,a){var c=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",wi.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),u=0,d=[];return r.forEach(function(y){for(var w=y.length;w>30&&u<3;){var _=y.substring(0,30);w=(y=y.substring(30,y.length)).length,d[d.length]=_,u++}if(u==3){var D=d[d.length-1];d[d.length-1]=D.substring(0,D.length-4)+"..."}else d[d.length]=y;u=0}),d.forEach(function(y){c.append("tspan").attr("x",wi.rect_padding).attr("dy",wi.line_height).text(y)}),c},El=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const tb=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)wi[e[r]]=t[e[r]]},m6=function(t,e){au.parser.yy=Tl,au.parser.yy.clear(),au.parser.parse(t);var r,a=Wt().securityLevel;a==="sandbox"&&(r=Ne("#i"+e));var c=Ne(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=(a==="sandbox"&&r.nodes()[0].contentDocument,c.select("[id='".concat(e,"']")));(function(ct,rt){var vt=ct.append("defs").append("marker").attr("id",Cl.CONTAINS+"_line_ending").attr("refX",0).attr("refY",rt.line_height/2).attr("markerWidth",rt.line_height).attr("markerHeight",rt.line_height).attr("orient","auto").append("g");vt.append("circle").attr("cx",rt.line_height/2).attr("cy",rt.line_height/2).attr("r",rt.line_height/2).attr("fill","none"),vt.append("line").attr("x1",0).attr("x2",rt.line_height).attr("y1",rt.line_height/2).attr("y2",rt.line_height/2).attr("stroke-width",1),vt.append("line").attr("y1",0).attr("y2",rt.line_height).attr("x1",rt.line_height/2).attr("x2",rt.line_height/2).attr("stroke-width",1),ct.append("defs").append("marker").attr("id",Cl.ARROW+"_line_ending").attr("refX",rt.line_height).attr("refY",.5*rt.line_height).attr("markerWidth",rt.line_height).attr("markerHeight",rt.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(rt.line_height,",").concat(rt.line_height/2,`
|
|
M`).concat(rt.line_height,",").concat(rt.line_height/2,`
|
|
L0,`).concat(rt.line_height)).attr("stroke-width",1)})(u,wi);var d=new(_i()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:wi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),y=Tl.getRequirements(),w=Tl.getElements(),_=Tl.getRelationships();(function(ct,rt,vt){Object.keys(ct).forEach(function(ft){var Et=ct[ft];ft=El(ft),g.info("Added new requirement: ",ft);var Nt=vt.append("g").attr("id",ft),Rt=ou(Nt,"req-"+ft),$t=su(Nt,ft+"_title",["<<".concat(Et.type,">>"),"".concat(Et.name)]);J3(Nt,ft+"_body",["Id: ".concat(Et.id),"Text: ".concat(Et.text),"Risk: ".concat(Et.risk),"Verification: ".concat(Et.verifyMethod)],$t.y);var Mt=Rt.node().getBBox();rt.setNode(ft,{width:Mt.width,height:Mt.height,shape:"rect",id:ft})})})(y,d,u),function(ct,rt,vt){Object.keys(ct).forEach(function(ft){var Et=ct[ft],Nt=El(ft),Rt=vt.append("g").attr("id",Nt),$t="element-"+Nt,Mt=ou(Rt,$t),Kt=su(Rt,$t+"_title",["<<Element>>","".concat(ft)]);J3(Rt,$t+"_body",["Type: ".concat(Et.type||"Not Specified"),"Doc Ref: ".concat(Et.docRef||"None")],Kt.y);var Jt=Mt.node().getBBox();rt.setNode(Nt,{width:Jt.width,height:Jt.height,shape:"rect",id:Nt})})}(w,d,u),function(ct,rt){ct.forEach(function(vt){var ft=El(vt.src),Et=El(vt.dst);rt.setEdge(ft,Et,{relationship:vt})})}(_,d),Zc().layout(d),function(ct,rt){rt.nodes().forEach(function(vt){vt!==void 0&&rt.node(vt)!==void 0&&(ct.select("#"+vt),ct.select("#"+vt).attr("transform","translate("+(rt.node(vt).x-rt.node(vt).width/2)+","+(rt.node(vt).y-rt.node(vt).height/2)+" )"))})}(u,d),_.forEach(function(ct){(function(rt,vt,ft,Et){var Nt=ft.edge(El(vt.src),El(vt.dst)),Rt=ko().x(function(Mt){return Mt.x}).y(function(Mt){return Mt.y}),$t=rt.insert("path","#"+Et).attr("class","er relationshipLine").attr("d",Rt(Nt.points)).attr("fill","none");vt.type==Tl.Relationships.CONTAINS?$t.attr("marker-start","url("+jn.getUrl(wi.arrowMarkerAbsolute)+"#"+vt.type+"_line_ending)"):($t.attr("stroke-dasharray","10,7"),$t.attr("marker-end","url("+jn.getUrl(wi.arrowMarkerAbsolute)+"#"+y6.ARROW+"_line_ending)")),function(Mt,Kt,Jt,At){var Bt=Kt.node().getTotalLength(),wt=Kt.node().getPointAtLength(.5*Bt),_t="rel"+K3;K3++;var Ft=Mt.append("text").attr("class","req relationshipLabel").attr("id",_t).attr("x",wt.x).attr("y",wt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(At).node().getBBox();Mt.insert("rect","#"+_t).attr("class","req reqLabelBox").attr("x",wt.x-Ft.width/2).attr("y",wt.y-Ft.height/2).attr("width",Ft.width).attr("height",Ft.height).attr("fill","white").attr("fill-opacity","85%")}(rt,$t,0,"<<".concat(vt.type,">>"))})(u,ct,d,e)});var D=wi.rect_padding,j=u.node().getBBox(),P=j.width+2*D,$=j.height+2*D;Ia(u,$,P,wi.useMaxWidth),u.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat($))};var nn=f(6876),v6=f.n(nn),Sl=void 0,bc={},Fo=[],$2="",eb="",W2=!1,nb=!1,wd=function(t,e,r,a){var c=bc[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}),bc[t]={name:e,description:r.text,wrap:r.wrap===void 0&&Al()||!!r.wrap,prevActor:Sl,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},Sl&&bc[Sl]&&(bc[Sl].nextActor=t),Sl=t)},b6=function(t){var e,r=0;for(e=0;e<Fo.length;e++)Fo[e].type===Mf.ACTIVE_START&&Fo[e].from.actor===t&&r++,Fo[e].type===Mf.ACTIVE_END&&Fo[e].from.actor===t&&r--;return r},Us=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===Mf.ACTIVE_END){var c=b6(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 Fo.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Al()||!!r.wrap,type:a}),!0},Af=function(t){return bc[t]},Al=function(){return nb},Mf={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},V2=function(t,e,r){r.text,r.wrap===void 0&&Al()||r.wrap;var a=[].concat(t,t);Fo.push({from:a[0],to:a[1],message:r.text,wrap:r.wrap===void 0&&Al()||!!r.wrap,type:Mf.NOTE,placement:e})},rb=function(t,e){var r=Af(t);try{var a=Bs(e.text,Wt());a=(a=a.replace(/&/g,"&")).replace(/=/g,"="),G2(r,JSON.parse(a))}catch(c){g.error("error while parsing actor link text",c)}};function G2(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var kd=function(t,e){var r=Af(t);try{var a=Bs(e.text,Wt());Nf(r,JSON.parse(a))}catch(c){g.error("error while parsing actor properties text",c)}};function Nf(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var Ml=function(t,e){var r=Af(t),a=document.getElementById(e.text);try{var c=a.innerHTML,u=JSON.parse(c);u.properties&&Nf(r,u.properties),u.links&&G2(r,u.links)}catch(d){g.error("error while parsing actor details text",d)}},Nl=function(t){var e=Bs(t,Wt());$2=e};const Df={addActor:wd,addMessage:function(t,e,r,a){Fo.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Al()||!!r.wrap,answer:a})},addSignal:Us,addLinks:rb,addDetails:Ml,addProperties:kd,autoWrap:Al,setWrap:function(t){nb=t},enableSequenceNumbers:function(){W2=!0},showSequenceNumbers:function(){return W2},getMessages:function(){return Fo},getActors:function(){return bc},getActor:Af,getActorKeys:function(){return Object.keys(bc)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return $2},parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().sequence},clear:function(){bc={},Fo=[],W2=!1},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:Mf,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:V2,setTitle:Nl,apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"addParticipant":wd(e.actor,e.actor,e.description,"participant");break;case"addActor":wd(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":Us(e.actor,void 0,void 0,e.signalType);break;case"addNote":V2(e.actor,e.placement,e.text);break;case"addLinks":rb(e.actor,e.text);break;case"addALink":(function(r,a){var c=Af(r);try{var u={},d=Bs(a.text,Wt()),y=d.indexOf("@"),w=(d=(d=d.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,y-1).trim(),_=d.slice(y+1).trim();u[w]=_,G2(c,u)}catch(D){g.error("error while parsing actor link text",D)}})(e.actor,e.text);break;case"addProperties":kd(e.actor,e.text);break;case"addDetails":Ml(e.actor,e.text);break;case"addMessage":Us(e.from,e.to,e.msg,e.signalType);break;case"loopStart":Us(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":Us(void 0,void 0,void 0,e.signalType);break;case"rectStart":Us(void 0,void 0,e.color,e.signalType);break;case"optStart":Us(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":Us(void 0,void 0,e.altText,e.signalType);break;case"setTitle":Nl(e.text);break;case"parStart":case"and":Us(void 0,void 0,e.parText,e.signalType)}},setAccDescription:function(t){var e=Bs(t,Wt());eb=e},getAccDescription:function(){return eb}};var Td=[],_c=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},Dl=function(t,e){var r;r=function(){var a=document.querySelectorAll(t);a.length!==0&&(a[0].addEventListener("mouseover",function(){x6("actor"+e+"_popup")}),a[0].addEventListener("mouseout",function(){w6("actor"+e+"_popup")}))},Td.push(r)},Cd=function(t,e,r,a){var c=t.append("image");c.attr("x",e),c.attr("y",r);var u=(0,Gc.N)(a);c.attr("xlink:href",u)},_6=function(t,e,r,a){var c=t.append("use");c.attr("x",e),c.attr("y",r);var u=(0,Gc.N)(a);c.attr("xlink:href","#"+u)},x6=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},w6=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},Ll=function(t,e){var r=0,a=0,c=e.text.split(jn.lineBreakRegex),u=[],d=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 _=c[w];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(d=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):d!==0&&D.attr("dy",d),e.tspan){var j=D.append("tspan");j.attr("x",e.x),e.fill!==void 0&&j.attr("fill",e.fill),j.text(_)}else D.text(_);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},k6=function(t,e){var r=t.append("polygon");return r.attr("points",function(a,c,u,d,y){return a+","+c+" "+(a+u)+","+c+" "+(a+u)+","+(c+d-7)+" "+(a+u-8.4)+","+(c+d)+" "+a+","+(c+d)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,Ll(t,e),r},ho=-1,ib=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},T6=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}},Bl=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},cu=function(){function t(c,u,d,y,w,_,D){a(u.append("text").attr("x",d+w/2).attr("y",y+_/2+5).style("text-anchor","middle").text(c),D)}function e(c,u,d,y,w,_,D,j){for(var P=j.actorFontSize,$=j.actorFontFamily,ct=j.actorFontWeight,rt=c.split(jn.lineBreakRegex),vt=0;vt<rt.length;vt++){var ft=vt*P-P*(rt.length-1)/2,Et=u.append("text").attr("x",d+w/2).attr("y",y).style("text-anchor","middle").style("font-size",P).style("font-weight",ct).style("font-family",$);Et.append("tspan").attr("x",d+w/2).attr("dy",ft).text(rt[vt]),Et.attr("y",y+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(Et,D)}}function r(c,u,d,y,w,_,D,j){var P=u.append("switch"),$=P.append("foreignObject").attr("x",d).attr("y",y).attr("width",w).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,d,y,w,_,D,j),a($,D)}function a(c,u){for(var d in u)u.hasOwnProperty(d)&&c.attr(d,u[d])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}(),ab=function(){function t(c,u,d,y,w,_,D){a(u.append("text").attr("x",d).attr("y",y).style("text-anchor","start").text(c),D)}function e(c,u,d,y,w,_,D,j){for(var P=j.actorFontSize,$=j.actorFontFamily,ct=j.actorFontWeight,rt=c.split(jn.lineBreakRegex),vt=0;vt<rt.length;vt++){var ft=vt*P-P*(rt.length-1)/2,Et=u.append("text").attr("x",d).attr("y",y).style("text-anchor","start").style("font-size",P).style("font-weight",ct).style("font-family",$);Et.append("tspan").attr("x",d).attr("dy",ft).text(rt[vt]),Et.attr("y",y+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(Et,D)}}function r(c,u,d,y,w,_,D,j){var P=u.append("switch"),$=P.append("foreignObject").attr("x",d).attr("y",y).attr("width",w).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,d,y,0,_,D,j),a($,D)}function a(c,u){for(var d in u)u.hasOwnProperty(d)&&c.attr(d,u[d])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const C6=_c,ob=function(t,e,r){switch(e.type){case"actor":return function(a,c,u){var d=c.x+c.width/2;c.y===0&&(ho++,a.append("line").attr("id","actor"+ho).attr("x1",d).attr("y1",80).attr("x2",d).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"+ho).attr("x1",d).attr("y1",c.y+25).attr("x2",d).attr("y2",c.y+45),y.append("line").attr("id","actor-man-arms"+ho).attr("x1",d-18).attr("y1",c.y+33).attr("x2",d+18).attr("y2",c.y+33),y.append("line").attr("x1",d-18).attr("y1",c.y+60).attr("x2",d).attr("y2",c.y+45),y.append("line").attr("x1",d).attr("y1",c.y+45).attr("x2",d+16).attr("y2",c.y+60);var _=y.append("circle");_.attr("cx",c.x+c.width/2),_.attr("cy",c.y+10),_.attr("r",15),_.attr("width",c.width),_.attr("height",c.height);var D=y.node().getBBox();return c.height=D.height,cu(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 d=c.x+c.width/2,y=a.append("g"),w=y;c.y===0&&(ho++,w.append("line").attr("id","actor"+ho).attr("x1",d).attr("y1",5).attr("x2",d).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),w=y.append("g"),c.actorCnt=ho,c.links!=null&&(w.attr("id","root-"+ho),Dl("#root-"+ho,ho)));var _={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:_.fill="#eaeaea",_.x=c.x,_.y=c.y,_.width=c.width,_.height=c.height,_.class=D,_.rx=3,_.ry=3;var j=_c(w,_);if(c.rectData=_,c.properties!=null&&c.properties.icon){var P=c.properties.icon.trim();P.charAt(0)==="@"?_6(w,_.x+_.width-20,_.y+10,P.substr(1)):Cd(w,_.x+_.width-20,_.y+10,P)}cu(u)(c.description,w,_.x,_.y,_.width,_.height,{class:"actor"},u);var $=c.height;if(j.node){var ct=j.node().getBBox();c.height=ct.height,$=ct.height}return $}(t,e,r)}},X2=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,d=e.actorCnt,y=e.rectData,w="none";c&&(w="block !important");var _=t.append("g");_.attr("id","actor"+d+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",w),Dl("#actor"+d+"_popup",d);var D="";y.class!==void 0&&(D=" "+y.class);var j=y.width>r?y.width:r,P=_.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 $=20;for(var ct in u){var rt=_.append("a"),vt=(0,Gc.N)(u[ct]);rt.attr("xlink:href",vt),rt.attr("target","_blank"),ab(a)(ct,rt,y.x+10,y.height+$,j,20,{class:"actor"},a),$+=30}}return P.attr("height",$),{height:y.height+$,width:j}},E6=function(t){return t.append("g")},S6=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},d=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,_c(d,u)},Lf=function(t,e,r,a){var c=a.boxMargin,u=a.boxTextMargin,d=a.labelBoxHeight,y=a.labelBoxWidth,w=a.messageFontFamily,_=a.messageFontSize,D=a.messageFontWeight,j=t.append("g"),P=function(rt,vt,ft,Et){return j.append("line").attr("x1",rt).attr("y1",vt).attr("x2",ft).attr("y2",Et).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(rt){P(e.startx,rt.y,e.stopx,rt.y).style("stroke-dasharray","3, 3")});var $={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=r,$.x=e.startx,$.y=e.starty,$.fontFamily=w,$.fontSize=_,$.fontWeight=D,$.anchor="middle",$.valign="middle",$.tspan=!1,$.width=y||50,$.height=d||20,$.textMargin=u,$.class="labelText",k6(j,$),($={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,$.x=e.startx+y/2+(e.stopx-e.startx)/2,$.y=e.starty+c+u,$.anchor="middle",$.valign="middle",$.textMargin=u,$.class="loopText",$.fontFamily=w,$.fontSize=_,$.fontWeight=D,$.wrap=!0;var ct=Ll(j,$);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(rt,vt){if(rt.message){$.text=rt.message,$.x=e.startx+(e.stopx-e.startx)/2,$.y=e.sections[vt].y+c+u,$.class="loopText",$.anchor="middle",$.valign="middle",$.tspan=!1,$.fontFamily=w,$.fontSize=_,$.fontWeight=D,$.wrap=e.wrap,ct=Ll(j,$);var ft=Math.round(ct.map(function(Et){return(Et._groups||Et)[0][0].getBBox().height}).reduce(function(Et,Nt){return Et+Nt}));e.sections[vt].height+=ft-(c+u)}}),e.height=Math.round(e.stopy-e.starty),j},A6=function(t,e){_c(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},Ol=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")},no=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")},Bf=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)},na=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")},Rr=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")},M6=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")},N6=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")},sb=T6,Z2=Bl;Gc.N,nn.parser.yy=Df;var de={},Xe={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,Rl(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 d(y){return function(w){u++;var _=c.sequenceItems.length-u+1;c.updateVal(w,"starty",e-_*de.boxMargin,Math.min),c.updateVal(w,"stopy",a+_*de.boxMargin,Math.max),c.updateVal(Xe.data,"startx",t-_*de.boxMargin,Math.min),c.updateVal(Xe.data,"stopx",r+_*de.boxMargin,Math.max),y!=="activation"&&(c.updateVal(w,"startx",t-_*de.boxMargin,Math.min),c.updateVal(w,"stopx",r+_*de.boxMargin,Math.max),c.updateVal(Xe.data,"starty",e-_*de.boxMargin,Math.min),c.updateVal(Xe.data,"stopy",a+_*de.boxMargin,Math.max))}}this.sequenceItems.forEach(d()),this.activations.forEach(d("activation"))},insert:function(t,e,r,a){var c=Math.min(t,r),u=Math.max(t,r),d=Math.min(e,a),y=Math.max(e,a);this.updateVal(Xe.data,"startx",c,Math.min),this.updateVal(Xe.data,"starty",d,Math.min),this.updateVal(Xe.data,"stopx",u,Math.max),this.updateVal(Xe.data,"stopy",y,Math.max),this.updateBounds(c,d,u,y)},newActivation:function(t,e,r){var a=r[t.from.actor],c=Ad(t.from.actor).length||0,u=a.x+a.width/2+(c-1)*de.activationWidth/2;this.activations.push({startx:u,starty:this.verticalPos+2,stopx:u+de.activationWidth,stopy:void 0,actor:t.from.actor,anchored:E6(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:Xe.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}}},Of=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Pa=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}},Ed=function(t,e,r,a){for(var c=0,u=0,d=0,y=0;y<r.length;y++){var w=e[r[y]];w.width=w.width||de.width,w.height=Math.max(w.height||de.height,de.height),w.margin=w.margin||de.actorMargin,w.x=c+u,w.y=a;var _=ob(t,w,de);d=Math.max(d,_),Xe.insert(w.x,a,w.x+w.width,w.height),c+=w.width,u+=w.margin,Xe.models.addActor(w)}Xe.bumpVerticalPos(d)},Sd=function(t,e,r,a){for(var c=0,u=0,d=0;d<r.length;d++){var y=e[r[d]],w=D6(y),_=X2(t,y,w,de,de.forceMenus);_.height>c&&(c=_.height),_.width+y.x>u&&(u=_.width+y.x)}return{maxHeight:c,maxWidth:u}},Rl=function(t){ji(de,t),t.fontFamily&&(de.actorFontFamily=de.noteFontFamily=de.messageFontFamily=t.fontFamily),t.fontSize&&(de.actorFontSize=de.noteFontSize=de.messageFontSize=t.fontSize),t.fontWeight&&(de.actorFontWeight=de.noteFontWeight=de.messageFontWeight=t.fontWeight)},Ad=function(t){return Xe.activations.filter(function(e){return e.actor===t})},cb=function(t,e){var r=e[t],a=Ad(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 xc(t,e,r,a,c){Xe.bumpVerticalPos(r);var u=a;if(e.id&&e.message&&t[e.id]){var d=t[e.id].width,y=Of(de);e.message=Qn.wrapLabel("[".concat(e.message,"]"),d-2*de.wrapPadding,y),e.width=d,e.wrap=!0;var w=Qn.calculateTextDimensions(e.message,y),_=Math.max(w.height,de.labelBoxHeight);u=a+_,g.debug("".concat(_," - ").concat(e.message))}c(e),Xe.bumpVerticalPos(u)}var D6=function(t){var e=0,r=Il(de);for(var a in t.links){var c=Qn.calculateTextDimensions(a,r).width+2*de.wrapPadding+2*de.boxMargin;e<c&&(e=c)}return e};const If={bounds:Xe,drawActors:Ed,drawActorsPopup:Sd,setConf:Rl,draw:function(t,e){de=Wt().sequence;var r,a=Wt().securityLevel;a==="sandbox"&&(r=Ne("#i"+e));var c=Ne(a==="sandbox"?r.nodes()[0].contentDocument.body:"body");a==="sandbox"&&r.nodes()[0].contentDocument,nn.parser.yy.clear(),nn.parser.yy.setWrap(de.wrap),nn.parser.parse(t+`
|
|
`),Xe.init(),g.debug("C:".concat(JSON.stringify(de,null,2)));var u=a==="sandbox"?c.select('[id="'.concat(e,'"]')):Ne('[id="'.concat(e,'"]')),d=nn.parser.yy.getActors(),y=nn.parser.yy.getActorKeys(),w=nn.parser.yy.getMessages(),_=nn.parser.yy.getTitle(),D=function(Rt,$t){var Mt={};return $t.forEach(function(Kt){if(Rt[Kt.to]&&Rt[Kt.from]){var Jt=Rt[Kt.to];if(Kt.placement===nn.parser.yy.PLACEMENT.LEFTOF&&!Jt.prevActor||Kt.placement===nn.parser.yy.PLACEMENT.RIGHTOF&&!Jt.nextActor)return;var At=Kt.placement!==void 0,Bt=!At,wt=At?Pa(de):Of(de),_t=Kt.wrap?Qn.wrapLabel(Kt.message,de.width-2*de.wrapPadding,wt):Kt.message,Ft=Qn.calculateTextDimensions(_t,wt).width+2*de.wrapPadding;Bt&&Kt.from===Jt.nextActor?Mt[Kt.to]=Math.max(Mt[Kt.to]||0,Ft):Bt&&Kt.from===Jt.prevActor?Mt[Kt.from]=Math.max(Mt[Kt.from]||0,Ft):Bt&&Kt.from===Kt.to?(Mt[Kt.from]=Math.max(Mt[Kt.from]||0,Ft/2),Mt[Kt.to]=Math.max(Mt[Kt.to]||0,Ft/2)):Kt.placement===nn.parser.yy.PLACEMENT.RIGHTOF?Mt[Kt.from]=Math.max(Mt[Kt.from]||0,Ft):Kt.placement===nn.parser.yy.PLACEMENT.LEFTOF?Mt[Jt.prevActor]=Math.max(Mt[Jt.prevActor]||0,Ft):Kt.placement===nn.parser.yy.PLACEMENT.OVER&&(Jt.prevActor&&(Mt[Jt.prevActor]=Math.max(Mt[Jt.prevActor]||0,Ft/2)),Jt.nextActor&&(Mt[Kt.from]=Math.max(Mt[Kt.from]||0,Ft/2)))}}),g.debug("maxMessageWidthPerActor:",Mt),Mt}(d,w);de.height=function(Rt,$t){var Mt=0;for(var Kt in Object.keys(Rt).forEach(function(wt){var _t=Rt[wt];_t.wrap&&(_t.description=Qn.wrapLabel(_t.description,de.width-2*de.wrapPadding,Il(de)));var Ft=Qn.calculateTextDimensions(_t.description,Il(de));_t.width=_t.wrap?de.width:Math.max(de.width,Ft.width+2*de.wrapPadding),_t.height=_t.wrap?Math.max(Ft.height,de.height):de.height,Mt=Math.max(Mt,_t.height)}),$t){var Jt=Rt[Kt];if(Jt){var At=Rt[Jt.nextActor];if(At){var Bt=$t[Kt]+de.actorMargin-Jt.width/2-At.width/2;Jt.margin=Math.max(Bt,de.actorMargin)}}}return Math.max(Mt,de.height)}(d,D),M6(u),Rr(u),N6(u),Ed(u,d,y,0);var j=function(Rt,$t){var Mt,Kt,Jt,At={},Bt=[];return Rt.forEach(function(wt){switch(wt.id=Qn.random({length:10}),wt.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:Bt.push({id:wt.id,msg:wt.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:wt.message&&(Mt=Bt.pop(),At[Mt.id]=Mt,At[wt.id]=Mt,Bt.push(Mt));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:Mt=Bt.pop(),At[Mt.id]=Mt;break;case nn.parser.yy.LINETYPE.ACTIVE_START:var _t=$t[wt.from?wt.from.actor:wt.to.actor],Ft=Ad(wt.from?wt.from.actor:wt.to.actor).length,yt=_t.x+_t.width/2+(Ft-1)*de.activationWidth/2,we={startx:yt,stopx:yt+de.activationWidth,actor:wt.from.actor,enabled:!0};Xe.activations.push(we);break;case nn.parser.yy.LINETYPE.ACTIVE_END:var _e=Xe.activations.map(function(zt){return zt.actor}).lastIndexOf(wt.from.actor);delete Xe.activations.splice(_e,1)[0]}wt.placement!==void 0?(Kt=function(zt,Ce){var Ee=Ce[zt.from].x,ke=Ce[zt.to].x,ge=zt.wrap&&zt.message,Re=Qn.calculateTextDimensions(ge?Qn.wrapLabel(zt.message,de.width,Pa(de)):zt.message,Pa(de)),Pe={width:ge?de.width:Math.max(de.width,Re.width+2*de.noteMargin),height:0,startx:Ce[zt.from].x,stopx:0,starty:0,stopy:0,message:zt.message};return zt.placement===nn.parser.yy.PLACEMENT.RIGHTOF?(Pe.width=ge?Math.max(de.width,Re.width):Math.max(Ce[zt.from].width/2+Ce[zt.to].width/2,Re.width+2*de.noteMargin),Pe.startx=Ee+(Ce[zt.from].width+de.actorMargin)/2):zt.placement===nn.parser.yy.PLACEMENT.LEFTOF?(Pe.width=Math.max(ge?de.width:Ce[zt.from].width/2+Ce[zt.to].width/2,Re.width+2*de.noteMargin),Pe.startx=Ee-Pe.width+(Ce[zt.from].width-de.actorMargin)/2):zt.to===zt.from?(Re=Qn.calculateTextDimensions(ge?Qn.wrapLabel(zt.message,Math.max(de.width,Ce[zt.from].width),Pa(de)):zt.message,Pa(de)),Pe.width=ge?Math.max(de.width,Ce[zt.from].width):Math.max(Ce[zt.from].width,de.width,Re.width+2*de.noteMargin),Pe.startx=Ee+(Ce[zt.from].width-Pe.width)/2):(Pe.width=Math.abs(Ee+Ce[zt.from].width/2-(ke+Ce[zt.to].width/2))+de.actorMargin,Pe.startx=Ee<ke?Ee+Ce[zt.from].width/2-de.actorMargin/2:ke+Ce[zt.to].width/2-de.actorMargin/2),ge&&(Pe.message=Qn.wrapLabel(zt.message,Pe.width-2*de.wrapPadding,Pa(de))),g.debug("NM:[".concat(Pe.startx,",").concat(Pe.stopx,",").concat(Pe.starty,",").concat(Pe.stopy,":").concat(Pe.width,",").concat(Pe.height,"=").concat(zt.message,"]")),Pe}(wt,$t),wt.noteModel=Kt,Bt.forEach(function(zt){(Mt=zt).from=Math.min(Mt.from,Kt.startx),Mt.to=Math.max(Mt.to,Kt.startx+Kt.width),Mt.width=Math.max(Mt.width,Math.abs(Mt.from-Mt.to))-de.labelBoxWidth})):(Jt=function(zt,Ce){var Ee=!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(zt.type)&&(Ee=!0),!Ee)return{};var ke=cb(zt.from,Ce),ge=cb(zt.to,Ce),Re=ke[0]<=ge[0]?1:0,Pe=ke[0]<ge[0]?0:1,on=ke.concat(ge),yn=Math.abs(ge[Pe]-ke[Re]);zt.wrap&&zt.message&&(zt.message=Qn.wrapLabel(zt.message,Math.max(yn+2*de.wrapPadding,de.width),Of(de)));var We=Qn.calculateTextDimensions(zt.message,Of(de));return{width:Math.max(zt.wrap?0:We.width+2*de.wrapPadding,yn+2*de.wrapPadding,de.width),height:0,startx:ke[Re],stopx:ge[Pe],starty:0,stopy:0,message:zt.message,type:zt.type,wrap:zt.wrap,fromBounds:Math.min.apply(null,on),toBounds:Math.max.apply(null,on)}}(wt,$t),wt.msgModel=Jt,Jt.startx&&Jt.stopx&&Bt.length>0&&Bt.forEach(function(zt){if(Mt=zt,Jt.startx===Jt.stopx){var Ce=$t[wt.from],Ee=$t[wt.to];Mt.from=Math.min(Ce.x-Jt.width/2,Ce.x-Ce.width/2,Mt.from),Mt.to=Math.max(Ee.x+Jt.width/2,Ee.x+Ce.width/2,Mt.to),Mt.width=Math.max(Mt.width,Math.abs(Mt.to-Mt.from))-de.labelBoxWidth}else Mt.from=Math.min(Jt.startx,Mt.from),Mt.to=Math.max(Jt.stopx,Mt.to),Mt.width=Math.max(Mt.width,Jt.width)-de.labelBoxWidth}))}),Xe.activations=[],g.debug("Loop type widths:",At),At}(w,d);Ol(u),na(u),no(u),Bf(u);var P=1;w.forEach(function(Rt){var $t,Mt,Kt;switch(Rt.type){case nn.parser.yy.LINETYPE.NOTE:Mt=Rt.noteModel,function(Jt,At){Xe.bumpVerticalPos(de.boxMargin),At.height=de.boxMargin,At.starty=Xe.getVerticalPos();var Bt=Z2();Bt.x=At.startx,Bt.y=At.starty,Bt.width=At.width||de.width,Bt.class="note";var wt=Jt.append("g"),_t=C6(wt,Bt),Ft=sb();Ft.x=At.startx,Ft.y=At.starty,Ft.width=Bt.width,Ft.dy="1em",Ft.text=At.message,Ft.class="noteText",Ft.fontFamily=de.noteFontFamily,Ft.fontSize=de.noteFontSize,Ft.fontWeight=de.noteFontWeight,Ft.anchor=de.noteAlign,Ft.textMargin=de.noteMargin,Ft.valign=de.noteAlign;var yt=Ll(wt,Ft),we=Math.round(yt.map(function(_e){return(_e._groups||_e)[0][0].getBBox().height}).reduce(function(_e,zt){return _e+zt}));_t.attr("height",we+2*de.noteMargin),At.height+=we+2*de.noteMargin,Xe.bumpVerticalPos(we+2*de.noteMargin),At.stopy=At.starty+we+2*de.noteMargin,At.stopx=At.startx+Bt.width,Xe.insert(At.startx,At.starty,At.stopx,At.stopy),Xe.models.addNote(At)}(u,Mt);break;case nn.parser.yy.LINETYPE.ACTIVE_START:Xe.newActivation(Rt,u,d);break;case nn.parser.yy.LINETYPE.ACTIVE_END:(function(Jt,At){var Bt=Xe.endActivation(Jt);Bt.starty+18>At&&(Bt.starty=At-6,At+=12),S6(u,Bt,At,de,Ad(Jt.from.actor).length),Xe.insert(Bt.startx,At-10,Bt.stopx,At)})(Rt,Xe.getVerticalPos());break;case nn.parser.yy.LINETYPE.LOOP_START:xc(j,Rt,de.boxMargin,de.boxMargin+de.boxTextMargin,function(Jt){return Xe.newLoop(Jt)});break;case nn.parser.yy.LINETYPE.LOOP_END:$t=Xe.endLoop(),Lf(u,$t,"loop",de),Xe.bumpVerticalPos($t.stopy-Xe.getVerticalPos()),Xe.models.addLoop($t);break;case nn.parser.yy.LINETYPE.RECT_START:xc(j,Rt,de.boxMargin,de.boxMargin,function(Jt){return Xe.newLoop(void 0,Jt.message)});break;case nn.parser.yy.LINETYPE.RECT_END:$t=Xe.endLoop(),A6(u,$t),Xe.models.addLoop($t),Xe.bumpVerticalPos($t.stopy-Xe.getVerticalPos());break;case nn.parser.yy.LINETYPE.OPT_START:xc(j,Rt,de.boxMargin,de.boxMargin+de.boxTextMargin,function(Jt){return Xe.newLoop(Jt)});break;case nn.parser.yy.LINETYPE.OPT_END:$t=Xe.endLoop(),Lf(u,$t,"opt",de),Xe.bumpVerticalPos($t.stopy-Xe.getVerticalPos()),Xe.models.addLoop($t);break;case nn.parser.yy.LINETYPE.ALT_START:xc(j,Rt,de.boxMargin,de.boxMargin+de.boxTextMargin,function(Jt){return Xe.newLoop(Jt)});break;case nn.parser.yy.LINETYPE.ALT_ELSE:xc(j,Rt,de.boxMargin+de.boxTextMargin,de.boxMargin,function(Jt){return Xe.addSectionToLoop(Jt)});break;case nn.parser.yy.LINETYPE.ALT_END:$t=Xe.endLoop(),Lf(u,$t,"alt",de),Xe.bumpVerticalPos($t.stopy-Xe.getVerticalPos()),Xe.models.addLoop($t);break;case nn.parser.yy.LINETYPE.PAR_START:xc(j,Rt,de.boxMargin,de.boxMargin+de.boxTextMargin,function(Jt){return Xe.newLoop(Jt)});break;case nn.parser.yy.LINETYPE.PAR_AND:xc(j,Rt,de.boxMargin+de.boxTextMargin,de.boxMargin,function(Jt){return Xe.addSectionToLoop(Jt)});break;case nn.parser.yy.LINETYPE.PAR_END:$t=Xe.endLoop(),Lf(u,$t,"par",de),Xe.bumpVerticalPos($t.stopy-Xe.getVerticalPos()),Xe.models.addLoop($t);break;default:try{(Kt=Rt.msgModel).starty=Xe.getVerticalPos(),Kt.sequenceIndex=P,function(Jt,At){Xe.bumpVerticalPos(10);var Bt=At.startx,wt=At.stopx,_t=At.starty,Ft=At.message,yt=At.type,we=At.sequenceIndex,_e=jn.splitBreaks(Ft).length,zt=Qn.calculateTextDimensions(Ft,Of(de)),Ce=zt.height/_e;At.height+=Ce,Xe.bumpVerticalPos(Ce);var Ee=sb();Ee.x=Bt,Ee.y=_t+10,Ee.width=wt-Bt,Ee.class="messageText",Ee.dy="1em",Ee.text=Ft,Ee.fontFamily=de.messageFontFamily,Ee.fontSize=de.messageFontSize,Ee.fontWeight=de.messageFontWeight,Ee.anchor=de.messageAlign,Ee.valign=de.messageAlign,Ee.textMargin=de.wrapPadding,Ee.tspan=!1,Ll(Jt,Ee);var ke,ge,Re=zt.height-10,Pe=zt.width;if(Bt===wt){ge=Xe.getVerticalPos()+Re,de.rightAngles?ke=Jt.append("path").attr("d","M ".concat(Bt,",").concat(ge," H ").concat(Bt+Math.max(de.width/2,Pe/2)," V ").concat(ge+25," H ").concat(Bt)):(Re+=de.boxMargin,ge=Xe.getVerticalPos()+Re,ke=Jt.append("path").attr("d","M "+Bt+","+ge+" C "+(Bt+60)+","+(ge-10)+" "+(Bt+60)+","+(ge+30)+" "+Bt+","+(ge+20))),Re+=30;var on=Math.max(Pe/2,de.width/2);Xe.insert(Bt-on,Xe.getVerticalPos()-10+Re,wt+on,Xe.getVerticalPos()+30+Re)}else Re+=de.boxMargin,ge=Xe.getVerticalPos()+Re,(ke=Jt.append("line")).attr("x1",Bt),ke.attr("y1",ge),ke.attr("x2",wt),ke.attr("y2",ge),Xe.insert(Bt,ge-10,wt,ge);yt===nn.parser.yy.LINETYPE.DOTTED||yt===nn.parser.yy.LINETYPE.DOTTED_CROSS||yt===nn.parser.yy.LINETYPE.DOTTED_POINT||yt===nn.parser.yy.LINETYPE.DOTTED_OPEN?(ke.style("stroke-dasharray","3, 3"),ke.attr("class","messageLine1")):ke.attr("class","messageLine0");var yn="";de.arrowMarkerAbsolute&&(yn=(yn=(yn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ke.attr("stroke-width",2),ke.attr("stroke","none"),ke.style("fill","none"),yt!==nn.parser.yy.LINETYPE.SOLID&&yt!==nn.parser.yy.LINETYPE.DOTTED||ke.attr("marker-end","url("+yn+"#arrowhead)"),yt!==nn.parser.yy.LINETYPE.SOLID_POINT&&yt!==nn.parser.yy.LINETYPE.DOTTED_POINT||ke.attr("marker-end","url("+yn+"#filled-head)"),yt!==nn.parser.yy.LINETYPE.SOLID_CROSS&&yt!==nn.parser.yy.LINETYPE.DOTTED_CROSS||ke.attr("marker-end","url("+yn+"#crosshead)"),(Df.showSequenceNumbers()||de.showSequenceNumbers)&&(ke.attr("marker-start","url("+yn+"#sequencenumber)"),Jt.append("text").attr("x",Bt).attr("y",ge+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(we)),Xe.bumpVerticalPos(Re),At.height+=Re,At.stopy=At.starty+At.height,Xe.insert(At.fromBounds,At.starty,At.toBounds,At.stopy)}(u,Kt),Xe.models.addMessage(Kt)}catch(Jt){g.error("error while drawing message",Jt)}}[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(Rt.type)&&P++}),de.mirrorActors&&(Xe.bumpVerticalPos(2*de.boxMargin),Ed(u,d,y,Xe.getVerticalPos()),Xe.bumpVerticalPos(de.boxMargin),ib(u,Xe.getVerticalPos()));var $=Sd(u,d,y),ct=Xe.getBounds().bounds;g.debug("For line height fix Querying: #"+e+" .actor-line"),Js("#"+e+" .actor-line").attr("y2",ct.stopy);var rt=ct.stopy-ct.starty;rt<$.maxHeight&&(rt=$.maxHeight);var vt=rt+2*de.diagramMarginY;de.mirrorActors&&(vt=vt-de.boxMargin+de.bottomMarginAdj);var ft=ct.stopx-ct.startx;ft<$.maxWidth&&(ft=$.maxWidth);var Et=ft+2*de.diagramMarginX;_&&u.append("text").text(_).attr("x",(ct.stopx-ct.startx)/2-2*de.diagramMarginX).attr("y",-25),Ia(u,vt,Et,de.useMaxWidth);var Nt=_?40:0;u.attr("viewBox",ct.startx-de.diagramMarginX+" -"+(de.diagramMarginY+Nt)+" "+Et+" "+(vt+Nt)),w2(nn.parser.yy,u,e),g.debug("models:",Xe.models)}};var Md=f(3584),ub=f.n(Md);function n(t){return n=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},n(t)}var i=function(t){return JSON.parse(JSON.stringify(t))},o=[],s=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,d=[];for(u=0;u<r.doc.length;u++)if(r.doc[u].type==="divider"){var y=i(r.doc[u]);y.doc=i(d),c.push(y),d=[]}else d.push(r.doc[u]);if(c.length>0&&d.length>0){var w={stmt:"state",id:a2(),type:"divider",doc:i(d)};c.push(i(w)),r.doc=c}r.doc.forEach(function(_){return t(r,_,!0)})}},l={root:{relations:[],states:{},documents:{}}},p=l.root,b=0,v=function(t,e,r,a,c){p.states[t]===void 0?p.states[t]={id:t,descriptions:[],type:e,doc:r,note:c}:(p.states[t].doc||(p.states[t].doc=r),p.states[t].type||(p.states[t].type=e)),a&&(g.info("Adding state ",t,a),typeof a=="string"&&B(t,a.trim()),n(a)==="object"&&a.forEach(function(u){return B(t,u.trim())})),c&&(p.states[t].note=c,p.states[t].note.text=jn.sanitizeText(p.states[t].note.text,Wt()))},T=function(){p=(l={root:{relations:[],states:{},documents:{}}}).root,p=l.root,b=0,L=[]},N=function(t,e,r){var a=t,c=e,u="default",d="default";t==="[*]"&&(a="start"+ ++b,u="start"),e==="[*]"&&(c="end"+b,d="end"),v(a,u),v(c,d),p.relations.push({id1:a,id2:c,title:jn.sanitizeText(r,Wt())})},B=function(t,e){var r=p.states[t],a=e;a[0]===":"&&(a=a.substr(1).trim()),r.descriptions.push(jn.sanitizeText(a,Wt()))},F=0,L=[],z="TB";const U={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().state},addState:v,clear:T,getState:function(t){return p.states[t]},getStates:function(){return p.states},getRelations:function(){return p.relations},getClasses:function(){return L},getDirection:function(){return z},addRelation:N,getDividerId:function(){return"divider-id-"+ ++F},setDirection:function(t){z=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 = ",l)},getRootDoc:function(){return o},setRootDoc:function(t){g.info("Setting root doc",t),o=t},getRootDocV2:function(){return s({id:"root"},{id:"root",doc:o},!0),{id:"root",doc:o}},extract:function(t){var e;e=t.doc?t.doc:t,g.info(e),T(),g.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&v(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&N(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var J={};function K(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 V,ot=function(t,e,r){var a,c=Wt().state.padding,u=2*Wt().state.padding,d=t.node().getBBox(),y=d.width,w=d.x,_=t.append("text").attr("x",0).attr("y",Wt().state.titleShift).attr("font-size",Wt().state.fontSize).attr("class","state-title").text(e.id),D=_.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 $=1-Wt().state.textHeight;return t.insert("rect",":first-child").attr("x",a).attr("y",$).attr("class",r?"alt-composit":"composit").attr("width",j).attr("height",P.height+Wt().state.textHeight+Wt().state.titleShift+1).attr("rx","0"),_.attr("x",a+c),D<=y&&_.attr("x",w+(j-u)/2-D/2+c),t.insert("rect",":first-child").attr("x",a).attr("y",Wt().state.titleShift-Wt().state.textHeight-Wt().state.padding).attr("width",j).attr("height",3*Wt().state.textHeight).attr("rx",Wt().state.radius),t.insert("rect",":first-child").attr("x",a).attr("y",Wt().state.titleShift-Wt().state.textHeight-Wt().state.padding).attr("width",j).attr("height",P.height+3+2*Wt().state.textHeight).attr("rx",Wt().state.radius),t},it=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",Wt().state.padding),a=function(d,y,w,_){var D=0,j=_.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var P,$=d.replace(/\r\n/g,"<br/>"),ct=($=$.replace(/\n/g,"<br/>")).split(jn.lineBreakRegex),rt=1.25*Wt().state.noteMargin,vt=function(Nt,Rt){var $t=typeof Symbol!="undefined"&&Nt[Symbol.iterator]||Nt["@@iterator"];if(!$t){if(Array.isArray(Nt)||($t=function(wt,_t){if(wt){if(typeof wt=="string")return K(wt,_t);var Ft=Object.prototype.toString.call(wt).slice(8,-1);return Ft==="Object"&&wt.constructor&&(Ft=wt.constructor.name),Ft==="Map"||Ft==="Set"?Array.from(wt):Ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft)?K(wt,_t):void 0}}(Nt))||Rt&&Nt&&typeof Nt.length=="number"){$t&&(Nt=$t);var Mt=0,Kt=function(){};return{s:Kt,n:function(){return Mt>=Nt.length?{done:!0}:{done:!1,value:Nt[Mt++]}},e:function(wt){throw wt},f:Kt}}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 Jt,At=!0,Bt=!1;return{s:function(){$t=$t.call(Nt)},n:function(){var wt=$t.next();return At=wt.done,wt},e:function(wt){Bt=!0,Jt=wt},f:function(){try{At||$t.return==null||$t.return()}finally{if(Bt)throw Jt}}}}(ct);try{for(vt.s();!(P=vt.n()).done;){var ft=P.value.trim();if(ft.length>0){var Et=j.append("tspan");Et.text(ft),rt===0&&(rt+=Et.node().getBBox().height),D+=rt,Et.attr("x",0+Wt().state.noteMargin),Et.attr("y",0+D+1.25*Wt().state.noteMargin)}}}catch(Nt){vt.e(Nt)}finally{vt.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*Wt().state.noteMargin),r.attr("width",c+2*Wt().state.noteMargin),r},dt=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",Wt().state.sizeUnit).attr("cx",Wt().state.padding+Wt().state.sizeUnit).attr("cy",Wt().state.padding+Wt().state.sizeUnit)}(c),e.type==="end"&&function(y){y.append("circle").attr("class","end-state-outer").attr("r",Wt().state.sizeUnit+Wt().state.miniPadding).attr("cx",Wt().state.padding+Wt().state.sizeUnit+Wt().state.miniPadding).attr("cy",Wt().state.padding+Wt().state.sizeUnit+Wt().state.miniPadding),y.append("circle").attr("class","end-state-inner").attr("r",Wt().state.sizeUnit).attr("cx",Wt().state.padding+Wt().state.sizeUnit+2).attr("cy",Wt().state.padding+Wt().state.sizeUnit+2)}(c),e.type!=="fork"&&e.type!=="join"||function(y,w){var _=Wt().state.forkWidth,D=Wt().state.forkHeight;if(w.parentId){var j=_;_=D,D=j}y.append("rect").style("stroke","black").style("fill","black").attr("width",_).attr("height",D).attr("x",Wt().state.padding).attr("y",Wt().state.padding)}(c,e),e.type==="note"&&it(e.note.text,c),e.type==="divider"&&function(y){y.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Wt().state.textHeight).attr("class","divider").attr("x2",2*Wt().state.textHeight).attr("y1",0).attr("y2",0)}(c),e.type==="default"&&e.descriptions.length===0&&function(y,w){var _=y.append("text").attr("x",2*Wt().state.padding).attr("y",Wt().state.textHeight+2*Wt().state.padding).attr("font-size",Wt().state.fontSize).attr("class","state-title").text(w.id).node().getBBox();y.insert("rect",":first-child").attr("x",Wt().state.padding).attr("y",Wt().state.padding).attr("width",_.width+2*Wt().state.padding).attr("height",_.height+2*Wt().state.padding).attr("rx",Wt().state.radius)}(c,e),e.type==="default"&&e.descriptions.length>0&&function(y,w){var _=y.append("text").attr("x",2*Wt().state.padding).attr("y",Wt().state.textHeight+1.3*Wt().state.padding).attr("font-size",Wt().state.fontSize).attr("class","state-title").text(w.descriptions[0]).node().getBBox(),D=_.height,j=y.append("text").attr("x",Wt().state.padding).attr("y",D+.4*Wt().state.padding+Wt().state.dividerMargin+Wt().state.textHeight).attr("class","state-description"),P=!0,$=!0;w.descriptions.forEach(function(ft){P||(function(Et,Nt,Rt){var $t=Et.append("tspan").attr("x",2*Wt().state.padding).text(Nt);Rt||$t.attr("dy",Wt().state.textHeight)}(j,ft,$),$=!1),P=!1});var ct=y.append("line").attr("x1",Wt().state.padding).attr("y1",Wt().state.padding+D+Wt().state.dividerMargin/2).attr("y2",Wt().state.padding+D+Wt().state.dividerMargin/2).attr("class","descr-divider"),rt=j.node().getBBox(),vt=Math.max(rt.width,_.width);ct.attr("x2",vt+3*Wt().state.padding),y.insert("rect",":first-child").attr("x",Wt().state.padding).attr("y",Wt().state.padding).attr("width",vt+2*Wt().state.padding).attr("height",rt.height+D+2*Wt().state.padding).attr("rx",Wt().state.radius)}(c,e);var u,d=c.node().getBBox();return a.width=d.width+2*Wt().state.padding,a.height=d.height+2*Wt().state.padding,u=a,J[r]=u,a},Pt=0;Md.parser.yy=U;var Gt={},re=function t(e,r,a,c,u,d){var y,w=new(_i()).Graph({compound:!0,multigraph:!0}),_=!0;for(y=0;y<e.length;y++)if(e[y].stmt==="relation"){_=!1;break}a?w.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:_?1:V.edgeLengthFactor,nodeSep:_?1:50,isMultiGraph:!0}):w.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:_?1:V.edgeLengthFactor,nodeSep:_?1:50,ranker:"tight-tree",isMultiGraph:!0}),w.setDefaultEdgeLabel(function(){return{}}),U.extract(e);for(var D=U.getStates(),j=U.getRelations(),P=Object.keys(D),$=0;$<P.length;$++){var ct=D[P[$]];a&&(ct.parentId=a);var rt=void 0;if(ct.doc){var vt=r.append("g").attr("id",ct.id).attr("class","stateGroup");rt=t(ct.doc,vt,ct.id,!c,u,d);var ft=(vt=ot(vt,ct,c)).node().getBBox();rt.width=ft.width,rt.height=ft.height+V.padding/2,Gt[ct.id]={y:V.compositTitleSize}}else rt=dt(r,ct);if(ct.note){var Et={descriptions:[],id:ct.id+"-note",note:ct.note,type:"note"},Nt=dt(r,Et);ct.note.position==="left of"?(w.setNode(rt.id+"-note",Nt),w.setNode(rt.id,rt)):(w.setNode(rt.id,rt),w.setNode(rt.id+"-note",Nt)),w.setParent(rt.id,rt.id+"-group"),w.setParent(rt.id+"-note",rt.id+"-group")}else w.setNode(rt.id,rt)}g.debug("Count=",w.nodeCount(),w);var Rt=0;j.forEach(function(Jt){var At;Rt++,g.debug("Setting edge",Jt),w.setEdge(Jt.id1,Jt.id2,{relation:Jt,width:(At=Jt.title,At?At.length*V.fontSizeFactor:1),height:V.labelHeight*jn.getRows(Jt.title).length,labelpos:"c"},"id"+Rt)}),Zc().layout(w),g.debug("Graph after layout",w.nodes());var $t=r.node();w.nodes().forEach(function(Jt){Jt!==void 0&&w.node(Jt)!==void 0?(g.warn("Node "+Jt+": "+JSON.stringify(w.node(Jt))),u.select("#"+$t.id+" #"+Jt).attr("transform","translate("+(w.node(Jt).x-w.node(Jt).width/2)+","+(w.node(Jt).y+(Gt[Jt]?Gt[Jt].y:0)-w.node(Jt).height/2)+" )"),u.select("#"+$t.id+" #"+Jt).attr("data-x-shift",w.node(Jt).x-w.node(Jt).width/2),d.querySelectorAll("#"+$t.id+" #"+Jt+" .divider").forEach(function(At){var Bt=At.parentElement,wt=0,_t=0;Bt&&(Bt.parentElement&&(wt=Bt.parentElement.getBBox().width),_t=parseInt(Bt.getAttribute("data-x-shift"),10),Number.isNaN(_t)&&(_t=0)),At.setAttribute("x1",0-_t+8),At.setAttribute("x2",wt-_t-8)})):g.debug("No Node "+Jt+": "+JSON.stringify(w.node(Jt)))});var Mt=$t.getBBox();w.edges().forEach(function(Jt){Jt!==void 0&&w.edge(Jt)!==void 0&&(g.debug("Edge "+Jt.v+" -> "+Jt.w+": "+JSON.stringify(w.edge(Jt))),function(At,Bt,wt){Bt.points=Bt.points.filter(function(dn){return!Number.isNaN(dn.y)});var _t=Bt.points,Ft=ko().x(function(dn){return dn.x}).y(function(dn){return dn.y}).curve(jr),yt=At.append("path").attr("d",Ft(_t)).attr("id","edge"+Pt).attr("class","transition"),we="";if(Wt().state.arrowMarkerAbsolute&&(we=(we=(we=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),yt.attr("marker-end","url("+we+"#"+function(dn){switch(dn){case U.relationType.AGGREGATION:return"aggregation";case U.relationType.EXTENSION:return"extension";case U.relationType.COMPOSITION:return"composition";case U.relationType.DEPENDENCY:return"dependency"}}(U.relationType.DEPENDENCY)+"End)"),wt.title!==void 0){for(var _e=At.append("g").attr("class","stateLabel"),zt=Qn.calcLabelPosition(Bt.points),Ce=zt.x,Ee=zt.y,ke=jn.getRows(wt.title),ge=0,Re=[],Pe=0,on=0,yn=0;yn<=ke.length;yn++){var We=_e.append("text").attr("text-anchor","middle").text(ke[yn]).attr("x",Ce).attr("y",Ee+ge),pr=We.node().getBBox();if(Pe=Math.max(Pe,pr.width),on=Math.min(on,pr.x),g.info(pr.x,Ce,Ee+ge),ge===0){var Tr=We.node().getBBox();ge=Tr.height,g.info("Title height",ge,Ee)}Re.push(We)}var Rn=ge*ke.length;if(ke.length>1){var zr=(ke.length-1)*ge*.5;Re.forEach(function(dn,On){return dn.attr("y",Ee+On*ge-zr)}),Rn=ge*ke.length}var dr=_e.node().getBBox();_e.insert("rect",":first-child").attr("class","box").attr("x",Ce-Pe/2-Wt().state.padding/2).attr("y",Ee-Rn/2-Wt().state.padding/2-3.5).attr("width",Pe+Wt().state.padding).attr("height",Rn+Wt().state.padding),g.info(dr)}Pt++}(r,w.edge(Jt),w.edge(Jt).relation))}),Mt=$t.getBBox();var Kt={id:a||"root",label:a||"root",width:0,height:0};return Kt.width=Mt.width+2*V.padding,Kt.height=Mt.height+2*V.padding,g.debug("Doc rendered",Kt,w),Kt};const xe=function(t,e){V=Wt().state;var r,a=Wt().securityLevel;a==="sandbox"&&(r=Ne("#i"+e));var c=Ne(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?r.nodes()[0].contentDocument:document;Md.parser.yy.clear(),Md.parser.parse(t),g.debug("Rendering diagram "+t);var d=c.select("[id='".concat(e,"']"));d.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(_i()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var y=U.getRootDoc();re(y,d,void 0,!1,c,u);var w=V.padding,_=d.node().getBBox(),D=_.width+2*w,j=_.height+2*w;Ia(d,j,1.75*D,V.useMaxWidth),d.attr("viewBox","".concat(_.x-V.padding," ").concat(_.y-V.padding," ")+D+" "+j)};var qt={},te={},ut=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),te[r.id]||(te[r.id]={id:r.id,shape:c,description:jn.sanitizeText(r.id,Wt()),classes:"statediagram-state"}),r.description&&(Array.isArray(te[r.id].description)?(te[r.id].shape="rectWithTitle",te[r.id].description.push(r.description)):te[r.id].description.length>0?(te[r.id].shape="rectWithTitle",te[r.id].description===r.id?te[r.id].description=[r.description]:te[r.id].description=[te[r.id].description,r.description]):(te[r.id].shape="rect",te[r.id].description=r.description),te[r.id].description=jn.sanitizeTextOrArray(te[r.id].description,Wt())),te[r.id].description.length===1&&te[r.id].shape==="rectWithTitle"&&(te[r.id].shape="rect"),!te[r.id].type&&r.doc&&(g.info("Setting cluster for ",r.id,ee(r)),te[r.id].type="group",te[r.id].dir=ee(r),te[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",te[r.id].classes=te[r.id].classes+" "+(a?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var u={labelStyle:"",shape:te[r.id].shape,labelText:te[r.id].description,classes:te[r.id].classes,style:"",id:r.id,dir:te[r.id].dir,domId:"state-"+r.id+"-"+Ct,type:te[r.id].type,padding:15};if(r.note){var d={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+Ct,domId:"state-"+r.id+"----note-"+Ct,type:te[r.id].type,padding:15},y={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:te[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+Ct,type:"group",padding:0};Ct++,t.setNode(r.id+"----parent",y),t.setNode(d.id,d),t.setNode(r.id,u),t.setParent(r.id,r.id+"----parent"),t.setParent(d.id,r.id+"----parent");var w=r.id,_=d.id;r.note.position==="left of"&&(w=d.id,_=r.id),t.setEdge(w,_,{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))},Ct=0,ce=function(t,e,r,a){g.trace("items",r),r.forEach(function(c){if(c.stmt==="state"||c.stmt==="default")ut(t,e,c,a);else if(c.stmt==="relation"){ut(t,e,c.state1,a),ut(t,e,c.state2,a);var u={id:"edge"+Ct,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:jn.sanitizeText(c.description,Wt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},d=c.state1.id,y=c.state2.id;t.setEdge(d,y,u,Ct),Ct++}})},ee=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 ue=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)qt[e[r]]=t[e[r]]};function Fe(t){return function(e){if(Array.isArray(e))return Ge(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 Ge(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)?Ge(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 Ge(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 vn="",Wn="",tr=[],tn=[],rr=[],Mn=function(){for(var t=!0,e=0;e<rr.length;e++)rr[e].processed,t=t&&rr[e].processed;return t};const En={parseDirective:function(t,e,r){zi.parseDirective(this,t,e,r)},getConfig:function(){return Wt().journey},clear:function(){tr.length=0,tn.length=0,Wn="",vn="",rr.length=0},setTitle:function(t){vn=t},getTitle:function(){return vn},addSection:function(t){Wn=t,tr.push(t)},getSections:function(){return tr},getTasks:function(){for(var t=Mn(),e=0;!t&&e<100;)t=Mn(),e++;return tn.push.apply(tn,rr),tn},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()}),d={section:Wn,type:Wn,people:u,task:t,score:a};rr.push(d)},addTaskOrg:function(t){var e={section:Wn,type:Wn,description:t,task:t,classes:[]};tn.push(e)},getActors:function(){return t=[],tn.forEach(function(e){e.people&&t.push.apply(t,Fe(e.people))}),Fe(new Set(t)).sort();var t}};var Zn=f(9763),Xi=f.n(Zn),vi=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},hs=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},qs=-1,Fl=function(){function t(c,u,d,y,w,_,D,j){a(u.append("text").attr("x",d+w/2).attr("y",y+_/2+5).style("font-color",j).style("text-anchor","middle").text(c),D)}function e(c,u,d,y,w,_,D,j,P){for(var $=j.taskFontSize,ct=j.taskFontFamily,rt=c.split(/<br\s*\/?>/gi),vt=0;vt<rt.length;vt++){var ft=vt*$-$*(rt.length-1)/2,Et=u.append("text").attr("x",d+w/2).attr("y",y).attr("fill",P).style("text-anchor","middle").style("font-size",$).style("font-family",ct);Et.append("tspan").attr("x",d+w/2).attr("dy",ft).text(rt[vt]),Et.attr("y",y+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(Et,D)}}function r(c,u,d,y,w,_,D,j){var P=u.append("switch"),$=P.append("foreignObject").attr("x",d).attr("y",y).attr("width",w).attr("height",_).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,d,y,w,_,D,j),a($,D)}function a(c,u){for(var d in u)d in u&&c.attr(d,u[d])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const Rf=hs,lb=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,vi(a,c),Fl(r)(e.text,a,c.x,c.y,c.width,c.height,{class:"journey-section section-type-"+e.num},r,e.colour)},hb=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},Pl=function(t,e,r){var a,c,u,d=e.x+r.width/2,y=t.append("g");qs++,y.append("line").attr("id","task"+qs).attr("x1",d).attr("y1",e.y).attr("x2",d).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),a=y,c={cx:d,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=Fp().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=Fp().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,vi(y,w);var _=e.x+14;e.people.forEach(function(D){var j=e.actors[D].color,P={cx:_,cy:e.y,r:7,fill:j,stroke:"#000",title:D,pos:e.actors[D].position};hs(y,P),_+=10}),Fl(r)(e.task,y,w.x,w.y,w.width,w.height,{class:"task"},r,e.colour)};Zn.parser.yy=En;var fs={},Q2=Wt().journey,uu=Wt().journey.leftMargin,ri={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=Wt().journey,u=this,d=0;this.sequenceItems.forEach(function(y){d++;var w=u.sequenceItems.length-d+1;u.updateVal(y,"starty",e-w*c.boxMargin,Math.min),u.updateVal(y,"stopy",a+w*c.boxMargin,Math.max),u.updateVal(ri.data,"startx",t-w*c.boxMargin,Math.min),u.updateVal(ri.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(ri.data,"starty",e-w*c.boxMargin,Math.min),u.updateVal(ri.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),d=Math.min(e,a),y=Math.max(e,a);this.updateVal(ri.data,"startx",c,Math.min),this.updateVal(ri.data,"starty",d,Math.min),this.updateVal(ri.data,"stopx",u,Math.max),this.updateVal(ri.data,"stopy",y,Math.max),this.updateBounds(c,d,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}},L6=Q2.sectionFills,W6=Q2.sectionColours;const V6=function(t){Object.keys(t).forEach(function(e){Q2[e]=t[e]})},v_=function(t,e){var r=Wt().journey;Zn.parser.yy.clear(),Zn.parser.parse(t+`
|
|
`);var a,c=Wt().securityLevel;c==="sandbox"&&(a=Ne("#i"+e));var u=Ne(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument,ri.init();var d=u.select("#"+e);d.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),d.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=Zn.parser.yy.getTasks(),w=Zn.parser.yy.getTitle(),_=Zn.parser.yy.getActors();for(var D in fs)delete fs[D];var j=0;_.forEach(function(vt){fs[vt]={color:r.actorColours[j%r.actorColours.length],position:j},j++}),function(vt){var ft=Wt().journey,Et=60;Object.keys(fs).forEach(function(Nt){var Rt=fs[Nt].color,$t={cx:20,cy:Et,r:7,fill:Rt,stroke:"#000",pos:fs[Nt].position};Rf(vt,$t);var Mt={x:40,y:Et+7,fill:"#666",text:Nt,textMargin:5|ft.boxTextMargin};hb(vt,Mt),Et+=20})}(d),ri.insert(0,0,uu,50*Object.keys(fs).length),function(vt,ft,Et){for(var Nt=Wt().journey,Rt="",$t=Et+(2*Nt.height+Nt.diagramMarginY),Mt=0,Kt="#CCC",Jt="black",At=0,Bt=0;Bt<ft.length;Bt++){var wt=ft[Bt];if(Rt!==wt.section){Kt=L6[Mt%L6.length],At=Mt%L6.length,Jt=W6[Mt%W6.length];var _t={x:Bt*Nt.taskMargin+Bt*Nt.width+uu,y:50,text:wt.section,fill:Kt,num:At,colour:Jt};lb(vt,_t,Nt),Rt=wt.section,Mt++}var Ft=wt.people.reduce(function(yt,we){return fs[we]&&(yt[we]=fs[we]),yt},{});wt.x=Bt*Nt.taskMargin+Bt*Nt.width+uu,wt.y=$t,wt.width=Nt.diagramMarginX,wt.height=Nt.diagramMarginY,wt.colour=Jt,wt.fill=Kt,wt.num=At,wt.actors=Ft,Pl(vt,wt,Nt),ri.insert(wt.x,wt.y,wt.x+wt.width+Nt.taskMargin,450)}}(d,y,0);var P=ri.getBounds();w&&d.append("text").text(w).attr("x",uu).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var $=P.stopy-P.starty+2*r.diagramMarginY,ct=uu+P.stopx+2*r.diagramMarginX;Ia(d,$,ct,r.useMaxWidth),d.append("line").attr("x1",uu).attr("y1",4*r.height).attr("x2",ct-uu-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var rt=w?70:0;d.attr("viewBox","".concat(P.startx," -25 ").concat(ct," ").concat($+rt)),d.attr("preserveAspectRatio","xMinYMin meet"),d.attr("height",$+rt+25)};var b_={};const B6=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;
|
|
}
|
|
|
|
`)},G6=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;
|
|
}
|
|
`)},X6=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 __={flowchart:G6,"flowchart-v2":G6,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:B6,"classDiagram-v2":B6,class:B6,stateDiagram:X6,state:X6,gitGraph:function(t){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);
|
|
}
|
|
`.concat([0,1,2,3,4,5,6,7].map(function(e){return`
|
|
.branch-label`.concat(e," { fill: ").concat(t["gitBranchLabel"+e],`; }
|
|
.commit`).concat(e," { stroke: ").concat(t["git"+e],"; fill: ").concat(t["git"+e],`; }
|
|
.commit-highlight`).concat(e," { stroke: ").concat(t["gitInv"+e],"; fill: ").concat(t["gitInv"+e],`; }
|
|
.label`).concat(e," { fill: ").concat(t["git"+e],`; }
|
|
.arrow`).concat(e," { stroke: ").concat(t["git"+e],`; }
|
|
`)}).join(`
|
|
`),`
|
|
|
|
.branch {
|
|
stroke-width: 1;
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-dasharray: 2;
|
|
}
|
|
.commit-label { font-size: 10px; fill: `).concat(t.commitLabelColor,`;}
|
|
.commit-label-bkg { font-size: 10px; fill: `).concat(t.commitLabelBackground,`; opacity: 0.5; }
|
|
.tag-label { font-size: 10px; fill: `).concat(t.tagLabelColor,`;}
|
|
.tag-label-bkg { fill: `).concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,`; }
|
|
.tag-hole { fill: `).concat(t.textColor,`; }
|
|
|
|
.commit-merge {
|
|
stroke: `).concat(t.primaryColor,`;
|
|
fill: `).concat(t.primaryColor,`;
|
|
}
|
|
.commit-reverse {
|
|
stroke: `).concat(t.primaryColor,`;
|
|
fill: `).concat(t.primaryColor,`;
|
|
stroke-width: 3;
|
|
}
|
|
.commit-highlight-outer {
|
|
}
|
|
.commit-highlight-inner {
|
|
stroke: `).concat(t.primaryColor,`;
|
|
fill: `).concat(t.primaryColor,`;
|
|
}
|
|
|
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
}
|
|
`)},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 O6(t){return O6=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},O6(t)}var Z6=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 Q6(t){var e;D3(t.flowchart),O3(t.flowchart),t.sequenceDiagram!==void 0&&If.setConf(ji(t.sequence,t.sequenceDiagram)),If.setConf(t.sequence),t.gantt,G0(t.class),t.state,ue(t.state),G3(t.class),C3(t.er),V6(t.journey),tb(t.requirement),e=t.class,Object.keys(e).forEach(function(r){b_[r]=e[r]})}var x_=Object.freeze({render:function(t,e,r,a){Y0();var c=e,u=Qn.detectInit(c);u&&(F0(u),l3(u));var d=Wt();g.debug(d),e.length>d.maxTextSize&&(c="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var y=Ne("body");if(a!==void 0){if(d.securityLevel==="sandbox"){var w=Ne("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Ne(w.nodes()[0].contentDocument.body)).node().style.margin=0}if(a.innerHTML="",d.securityLevel==="sandbox"){var _=Ne(a).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Ne(_.nodes()[0].contentDocument.body)).node().style.margin=0}else y=Ne(a);y.append("div").attr("id","d"+t).attr("style","font-family: "+d.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=d.securityLevel!=="sandbox"?document.querySelector("#d"+t):document.querySelector("#i"+t))&&D.remove(),d.securityLevel==="sandbox"){var P=Ne("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(y=Ne(P.nodes()[0].contentDocument.body)).node().style.margin=0}else y=Ne("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(_t){return _t.substring(0,_t.length-1)}).replace(/classDef.*:\S*#.*;/g,function(_t){return _t.substring(0,_t.length-1)}).replace(/#\w+;/g,function(_t){var Ft=_t.substring(1,_t.length-1);return/^\+?\d+$/.test(Ft)?"\uFB02\xB0\xB0"+Ft+"\xB6\xDF":"\uFB02\xB0"+Ft+"\xB6\xDF"});var $=y.select("#d"+t).node(),ct=Qn.detectType(c,d),rt=$.firstChild,vt=rt.firstChild,ft="";if(d.themeCSS!==void 0&&(ft+=`
|
|
`.concat(d.themeCSS)),d.fontFamily!==void 0&&(ft+=`
|
|
:root { --mermaid-font-family: `.concat(d.fontFamily,"}")),d.altFontFamily!==void 0&&(ft+=`
|
|
:root { --mermaid-alt-font-family: `.concat(d.altFontFamily,"}")),ct==="flowchart"||ct==="flowchart-v2"||ct==="graph"){var Et=function(_t){g.info("Extracting classes"),nr.clear();try{var Ft=od().parser;return Ft.yy=nr,Ft.parse(_t),nr.getClasses()}catch{return}}(c),Nt=d.htmlLabels||d.flowchart.htmlLabels;for(var Rt in Et)Nt?(ft+=`
|
|
.`.concat(Rt," > * { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),ft+=`
|
|
.`.concat(Rt," span { ").concat(Et[Rt].styles.join(" !important; ")," !important; }")):(ft+=`
|
|
.`.concat(Rt," path { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),ft+=`
|
|
.`.concat(Rt," rect { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),ft+=`
|
|
.`.concat(Rt," polygon { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),ft+=`
|
|
.`.concat(Rt," ellipse { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),ft+=`
|
|
.`.concat(Rt," circle { ").concat(Et[Rt].styles.join(" !important; ")," !important; }"),Et[Rt].textStyles&&(ft+=`
|
|
.`.concat(Rt," tspan { ").concat(Et[Rt].textStyles.join(" !important; ")," !important; }")))}var $t=function(_t,Ft){return Gg(Kh("".concat(_t,"{").concat(Ft,"}")),A5)}("#".concat(t),function(_t,Ft,yt){return` {
|
|
font-family: `.concat(yt.fontFamily,`;
|
|
font-size: `).concat(yt.fontSize,`;
|
|
fill: `).concat(yt.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(yt.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(yt.errorTextColor,`;
|
|
stroke: `).concat(yt.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(yt.lineColor,`;
|
|
stroke: `).concat(yt.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(yt.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(yt.fontFamily,`;
|
|
font-size: `).concat(yt.fontSize,`;
|
|
}
|
|
|
|
`).concat(__[_t](yt),`
|
|
|
|
`).concat(Ft,`
|
|
`)}(ct,ft,d.themeVariables)),Mt=document.createElement("style");Mt.innerHTML="#".concat(t," ")+$t,rt.insertBefore(Mt,vt);try{switch(ct){case"gitGraph":p6(c,t,!1);break;case"flowchart":d.flowchart.arrowMarkerAbsolute=d.arrowMarkerAbsolute,D3(d.flowchart),L3(c,t);break;case"flowchart-v2":d.flowchart.arrowMarkerAbsolute=d.arrowMarkerAbsolute,O3(d.flowchart),h6(c,t);break;case"sequence":d.sequence.arrowMarkerAbsolute=d.arrowMarkerAbsolute,d.sequenceDiagram?(If.setConf(Object.assign(d.sequence,d.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):If.setConf(d.sequence),If.draw(c,t);break;case"gantt":d.gantt.arrowMarkerAbsolute=d.arrowMarkerAbsolute,d.gantt,f6(c,t);break;case"class":d.class.arrowMarkerAbsolute=d.arrowMarkerAbsolute,G0(d.class),H5(c,t);break;case"classDiagram":d.class.arrowMarkerAbsolute=d.arrowMarkerAbsolute,function(_t){Object.keys(_t).forEach(function(Ft){w3[Ft]=_t[Ft]})}(d.class),function(_t,Ft){g.info("Drawing class - ",Ft),os.clear(),Qc.parser.parse(_t);var yt=Wt().flowchart,we=Wt().securityLevel;g.info("config:",yt);var _e,zt=yt.nodeSpacing||50,Ce=yt.rankSpacing||50,Ee=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:os.getDirection(),nodesep:zt,ranksep:Ce,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),ke=os.getClasses(),ge=os.getRelations();g.info(ge),function(yr,ja){var ka=Object.keys(yr);g.info("keys:",ka),g.info(yr),ka.forEach(function(Kn){var Nn=yr[Kn],ro="";Nn.cssClasses.length>0&&(ro=ro+" "+Nn.cssClasses.join(" "));var po,Po,bi={labelStyle:""},Ff=Nn.text!==void 0?Nn.text:Nn.id;Nn.type,Po="class_box",ja.setNode(Nn.id,{labelStyle:bi.labelStyle,shape:Po,labelText:(po=Ff,jn.sanitizeText(po,Wt())),classData:Nn,rx:0,ry:0,class:ro,style:bi.style,id:Nn.id,domId:Nn.domId,haveCallback:Nn.haveCallback,link:Nn.link,width:Nn.type==="group"?500:void 0,type:Nn.type,padding:Wt().flowchart.padding}),g.info("setNode",{labelStyle:bi.labelStyle,shape:Po,labelText:Ff,rx:0,ry:0,class:ro,style:bi.style,id:Nn.id,width:Nn.type==="group"?500:void 0,type:Nn.type,padding:Wt().flowchart.padding})})}(ke,Ee),function(yr,ja){var ka=0;yr.forEach(function(Kn){ka++;var Nn={classes:"relation"};Nn.pattern=Kn.relation.lineType==1?"dashed":"solid",Nn.id="id"+ka,Kn.type==="arrow_open"?Nn.arrowhead="none":Nn.arrowhead="normal",g.info(Nn,Kn),Nn.startLabelRight=Kn.relationTitle1==="none"?"":Kn.relationTitle1,Nn.endLabelLeft=Kn.relationTitle2==="none"?"":Kn.relationTitle2,Nn.arrowTypeStart=v2(Kn.relation.type1),Nn.arrowTypeEnd=v2(Kn.relation.type2);var ro="",po="";if(Kn.style!==void 0){var Po=pc(Kn.style);ro=Po.style,po=Po.labelStyle}else ro="fill:none";Nn.style=ro,Nn.labelStyle=po,Kn.interpolate!==void 0?Nn.curve=Io(Kn.interpolate,so):yr.defaultInterpolate!==void 0?Nn.curve=Io(yr.defaultInterpolate,so):Nn.curve=Io(w3.curve,so),Kn.text=Kn.title,Kn.text===void 0?Kn.style!==void 0&&(Nn.arrowheadStyle="fill: #333"):(Nn.arrowheadStyle="fill: #333",Nn.labelpos="c",Wt().flowchart.htmlLabels?(Nn.labelType="html",Nn.label='<span class="edgeLabel">'+Kn.text+"</span>"):(Nn.labelType="text",Nn.label=Kn.text.replace(jn.lineBreakRegex,`
|
|
`),Kn.style===void 0&&(Nn.style=Nn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Nn.labelStyle=Nn.labelStyle.replace("color:","fill:"))),ja.setEdge(Kn.id1,Kn.id2,Nn,ka)})}(ge,Ee),we==="sandbox"&&(_e=Ne("#i"+Ft));var Re=Ne(we==="sandbox"?_e.nodes()[0].contentDocument.body:"body"),Pe=Re.select('[id="'.concat(Ft,'"]'));Pe.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var on=Re.select("#"+Ft+" g");td(on,Ee,["aggregation","extension","composition","dependency"],"classDiagram",Ft);var yn=Pe.node().getBBox(),We=yn.width+16,pr=yn.height+16;if(g.debug("new ViewBox 0 0 ".concat(We," ").concat(pr),"translate(".concat(8-Ee._label.marginx,", ").concat(8-Ee._label.marginy,")")),Ia(Pe,pr,We,yt.useMaxWidth),Pe.attr("viewBox","0 0 ".concat(We," ").concat(pr)),Pe.select("g").attr("transform","translate(".concat(8-Ee._label.marginx,", ").concat(8-yn.y,")")),!yt.htmlLabels)for(var Tr=we==="sandbox"?_e.nodes()[0].contentDocument:document,Rn=Tr.querySelectorAll('[id="'+Ft+'"] .edgeLabel .label'),zr=0;zr<Rn.length;zr++){var dr=Rn[zr],dn=dr.getBBox(),On=Tr.createElementNS("http://www.w3.org/2000/svg","rect");On.setAttribute("rx",0),On.setAttribute("ry",0),On.setAttribute("width",dn.width),On.setAttribute("height",dn.height),dr.insertBefore(On,dr.firstChild)}}(c,t);break;case"state":d.class.arrowMarkerAbsolute=d.arrowMarkerAbsolute,d.state,xe(c,t);break;case"stateDiagram":d.class.arrowMarkerAbsolute=d.arrowMarkerAbsolute,ue(d.state),function(_t,Ft){g.info("Drawing state diagram (v2)",Ft),U.clear(),te={};var yt=ub().parser;yt.yy=U,yt.parse(_t);var we=U.getDirection();we===void 0&&(we="LR");var _e=Wt().state,zt=_e.nodeSpacing||50,Ce=_e.rankSpacing||50,Ee=Wt().securityLevel;g.info(U.getRootDocV2()),U.extract(U.getRootDocV2()),g.info(U.getRootDocV2());var ke,ge=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ee(U.getRootDocV2()),nodesep:zt,ranksep:Ce,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ut(ge,void 0,U.getRootDocV2(),!0),Ee==="sandbox"&&(ke=Ne("#i"+Ft));var Re=Ne(Ee==="sandbox"?ke.nodes()[0].contentDocument.body:"body"),Pe=(Ee==="sandbox"&&ke.nodes()[0].contentDocument,Re.select('[id="'.concat(Ft,'"]'))),on=Re.select("#"+Ft+" g");td(on,ge,["barb"],"statediagram",Ft);var yn=Pe.node().getBBox(),We=yn.width+16,pr=yn.height+16;Pe.attr("class","statediagram");var Tr=Pe.node().getBBox();Ia(Pe,pr,1.75*We,_e.useMaxWidth);var Rn="".concat(Tr.x-8," ").concat(Tr.y-8," ").concat(We," ").concat(pr);g.debug("viewBox ".concat(Rn)),Pe.attr("viewBox",Rn);for(var zr=document.querySelectorAll('[id="'+Ft+'"] .edgeLabel .label'),dr=0;dr<zr.length;dr++){var dn=zr[dr],On=dn.getBBox(),yr=document.createElementNS("http://www.w3.org/2000/svg","rect");yr.setAttribute("rx",0),yr.setAttribute("ry",0),yr.setAttribute("width",On.width),yr.setAttribute("height",On.height),dn.insertBefore(yr,dn.firstChild)}}(c,t);break;case"info":d.class.arrowMarkerAbsolute=d.arrowMarkerAbsolute,G3(d.class),function(_t,Ft,yt){try{var we=bd().parser;we.yy=vd,g.debug(`Renering info diagram
|
|
`+_t);var _e,zt=Wt().securityLevel;zt==="sandbox"&&(_e=Ne("#i"+Ft));var Ce=Ne(zt==="sandbox"?_e.nodes()[0].contentDocument.body:"body");zt==="sandbox"&&_e.nodes()[0].contentDocument,we.parse(_t),g.debug("Parsed info diagram");var Ee=Ce.select("#"+Ft);Ee.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+yt),Ee.attr("height",100),Ee.attr("width",400)}catch(ke){g.error("Error while rendering info diagram"),g.error(ke.message)}}(c,t,Zg);break;case"pie":H2(c,t);break;case"er":C3(d.er),E3(c,t);break;case"journey":V6(d.journey),v_(c,t);break;case"requirement":tb(d.requirement),m6(c,t)}}catch(_t){throw function(Ft,yt){try{g.debug(`Renering svg for syntax error
|
|
`);var we=Ne("#"+Ft),_e=we.append("g");_e.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"),_e.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"),_e.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"),_e.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"),_e.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"),_e.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"),_e.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"),_e.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+yt),we.attr("height",100),we.attr("width",400),we.attr("viewBox","768 0 512 512")}catch(zt){g.error("Error while rendering info diagram"),g.error(zt.message)}}(t,Zg),_t}y.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var Kt=y.select("#d"+t).node().innerHTML;if(g.debug("cnf.arrowMarkerAbsolute",d.arrowMarkerAbsolute),d.arrowMarkerAbsolute&&d.arrowMarkerAbsolute!=="false"||d.arrowMarkerAbsolute==="sandbox"||(Kt=Kt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),Kt=(Kt=Z6(Kt)).replace(/<br>/g,"<br/>"),d.securityLevel==="sandbox"){var Jt=y.select("#d"+t+" svg").node(),At="100%";Jt&&(At=Jt.viewBox.baseVal.height+"px"),Kt='<iframe style="width:'.concat("100%",";height:").concat(At,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+Kt+"</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(ct){case"flowchart":case"flowchart-v2":r(Kt,nr.bindFunctions);break;case"gantt":r(Kt,iu.bindFunctions);break;case"class":case"classDiagram":r(Kt,os.bindFunctions);break;default:r(Kt)}else g.debug("CB = undefined!");Td.forEach(function(_t){_t()}),Td=[];var Bt=d.securityLevel==="sandbox"?"#i"+t:"#d"+t,wt=Ne(Bt).node();return wt!==null&&typeof wt.remove=="function"&&Ne(Bt).node().remove(),Kt},parse:function(t){var e=Wt(),r=Qn.detectInit(t,e);r&&g.info("reinit ",r);var a,c=Qn.detectType(t,e);switch(g.debug("Type "+c),c){case"gitGraph":(a=Y2()).parser.yy=vc;break;case"flowchart":case"flowchart-v2":nr.clear(),(a=od()).parser.yy=nr;break;case"sequence":Df.clear(),(a=v6()).parser.yy=Df;break;case"gantt":(a=z3()).parser.yy=iu;break;case"class":case"classDiagram":(a=U5()).parser.yy=os;break;case"state":case"stateDiagram":(a=ub()).parser.yy=U;break;case"info":g.debug("info info info"),(a=bd()).parser.yy=vd;break;case"pie":g.debug("pie"),(a=Z3()).parser.yy=_d;break;case"er":g.debug("er"),(a=x2()).parser.yy=xa;break;case"journey":g.debug("Journey"),(a=Xi()).parser.yy=En;break;case"requirement":case"requirementDiagram":g.debug("RequirementDiagram"),(a=Q3()).parser.yy=Tl}return a.parser.yy.graphType=c,a.parser.yy.parseError=function(u,d){throw{str:u,hash:d}},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,d){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&&(d==="flowchart-v2"&&(d="flowchart"),u.args[d]=u.args[y],delete u.args[y])}),g.debug("sanitize in handleDirective",u.args),F0(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){u3=ji({},r)}(t),t&&t.theme&&as[t.theme]?t.themeVariables=as[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=as.default.getThemeVariables(t.themeVariables));var e=O6(t)==="object"?function(r){return Mi=ji({},rf),Mi=ji(Mi,r),r.theme&&(Mi.themeVariables=as[r.theme].getThemeVariables(r.themeVariables)),P0=j0(Mi,af),Mi}(t):s2();Q6(e),k(e.logLevel)},reinitialize:function(){},getConfig:Wt,setConfig:function(t){return ji(P0,t),Wt()},getSiteConfig:s2,updateSiteConfig:function(t){return Mi=ji(Mi,t),j0(Mi,af),Mi},reset:function(){Y0()},globalReset:function(){Y0(),Q6(Wt())},defaultConfig:rf});k(Wt().logLevel),Y0(Wt());const zi=x_;var K6=function(){fo.startOnLoad?zi.getConfig().startOnLoad&&fo.init():fo.startOnLoad===void 0&&(g.debug("In start, no config"),zi.getConfig().startOnLoad&&fo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){K6()},!1);var fo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:zi,parse:zi.parse,render:zi.render,init:function(){var t,e,r=this,a=zi.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(fo.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: "+fo.startOnLoad),fo.startOnLoad!==void 0&&(g.debug("Start On Load inner: "+fo.startOnLoad),zi.updateSiteConfig({startOnLoad:fo.startOnLoad})),fo.ganttConfig!==void 0&&zi.updateSiteConfig({gantt:fo.ganttConfig});for(var c,u=new Qn.initIdGeneratior(a.deterministicIds,a.deterministicIDSeed),d=function(w){var _=t[w];if(_.getAttribute("data-processed"))return"continue";_.setAttribute("data-processed",!0);var D="mermaid-".concat(u.next());c=_.innerHTML,c=Qn.entityDecode(c).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Qn.detectInit(c);j&&g.debug("Detected early reinit: ",j);try{zi.render(D,c,function(P,$){_.innerHTML=P,e!==void 0&&e(D),$&&$(_)},_)}catch(P){g.warn("Syntax Error rendering"),g.warn(P),r.parseError&&r.parseError(P)}},y=0;y<t.length;y++)d(y)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(fo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(fo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),zi.initialize(t)},contentLoaded:K6};const w_=fo},4949:(S,M,f)=>{S.exports={graphlib:f(6614),dagre:f(1463),intersect:f(8114),render:f(5787),util:f(8355),version:f(5689)}},9144:(S,M,f)=>{var m=f(8355);function h(x,g,k,E){var A=x.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[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])}S.exports={default:h,normal:h,vee:function(x,g,k,E){var A=x.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[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])},undirected:function(x,g,k,E){var A=x.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[E+"Style"]),k[E+"Class"]&&A.attr("class",k[E+"Class"])}}},5632:(S,M,f)=>{var m=f(8355),h=f(4322),x=f(1322);S.exports=function(g,k){var E,A=k.nodes().filter(function(O){return m.isSubgraph(k,O)}),I=g.selectAll("g.cluster").data(A,function(O){return O});return I.selectAll("*").remove(),I.enter().append("g").attr("class","cluster").attr("id",function(O){return k.node(O).id}).style("opacity",0),I=g.selectAll("g.cluster"),m.applyTransition(I,k).style("opacity",1),I.each(function(O){var Y=k.node(O),H=h.select(this);h.select(this).append("rect");var X=H.append("g").attr("class","label");x(X,Y,Y.clusterLabelPos)}),I.selectAll("rect").each(function(O){var Y=k.node(O),H=h.select(this);m.applyStyle(H,Y.style)}),E=I.exit?I.exit():I.selectAll(null),m.applyTransition(E,k).style("opacity",0).remove(),I}},6315:(S,M,f)=>{var m=f(1034),h=f(1322),x=f(8355),g=f(4322);S.exports=function(k,E){var A,I=k.selectAll("g.edgeLabel").data(E.edges(),function(O){return x.edgeToId(O)}).classed("update",!0);return I.exit().remove(),I.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(I=k.selectAll("g.edgeLabel")).each(function(O){var Y=g.select(this);Y.select(".label").remove();var H=E.edge(O),X=h(Y,E.edge(O),0,0).classed("label",!0),Z=X.node().getBBox();H.labelId&&X.attr("id",H.labelId),m.has(H,"width")||(H.width=Z.width),m.has(H,"height")||(H.height=Z.height)}),A=I.exit?I.exit():I.selectAll(null),x.applyTransition(A,E).style("opacity",0).remove(),I}},940:(S,M,f)=>{var m=f(1034),h=f(7584),x=f(8355),g=f(4322);function k(E,A){var I=(g.line||g.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(I.curve||I.interpolate)(E.curve),I(A)}S.exports=function(E,A,I){var O=E.selectAll("g.edgePath").data(A.edges(),function(X){return x.edgeToId(X)}).classed("update",!0),Y=function(X,Z){var et=X.enter().append("g").attr("class","edgePath").style("opacity",0);return et.append("path").attr("class","path").attr("d",function(Q){var gt=Z.edge(Q),ht=Z.node(Q.v).elem;return k(gt,m.range(gt.points.length).map(function(){return Tt=(xt=ht).getBBox(),{x:(ne=xt.ownerSVGElement.getScreenCTM().inverse().multiply(xt.getScreenCTM()).translate(Tt.width/2,Tt.height/2)).e,y:ne.f};var xt,Tt,ne}))}),et.append("defs"),et}(O,A);(function(X,Z){var et=X.exit();x.applyTransition(et,Z).style("opacity",0).remove()})(O,A);var H=O.merge!==void 0?O.merge(Y):O;return x.applyTransition(H,A).style("opacity",1),H.each(function(X){var Z=g.select(this),et=A.edge(X);et.elem=this,et.id&&Z.attr("id",et.id),x.applyClass(Z,et.class,(Z.classed("update")?"update ":"")+"edgePath")}),H.selectAll("path.path").each(function(X){var Z=A.edge(X);Z.arrowheadId=m.uniqueId("arrowhead");var et=g.select(this).attr("marker-end",function(){return"url("+(Q=location.href,gt=Z.arrowheadId,Q.split("#")[0]+"#"+gt+")");var Q,gt}).style("fill","none");x.applyTransition(et,A).attr("d",function(Q){return function(gt,ht){var xt=gt.edge(ht),Tt=gt.node(ht.v),ne=gt.node(ht.w),bt=xt.points.slice(1,xt.points.length-1);return bt.unshift(h(Tt,bt[0])),bt.push(h(ne,bt[bt.length-1])),k(xt,bt)}(A,Q)}),x.applyStyle(et,Z.style)}),H.selectAll("defs *").remove(),H.selectAll("defs").each(function(X){var Z=A.edge(X);(0,I[Z.arrowhead])(g.select(this),Z.arrowheadId,Z,"arrowhead")}),H}},607:(S,M,f)=>{var m=f(1034),h=f(1322),x=f(8355),g=f(4322);S.exports=function(k,E,A){var I,O=E.nodes().filter(function(H){return!x.isSubgraph(E,H)}),Y=k.selectAll("g.node").data(O,function(H){return H}).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").attr("class","node").style("opacity",0),(Y=k.selectAll("g.node")).each(function(H){var X=E.node(H),Z=g.select(this);x.applyClass(Z,X.class,(Z.classed("update")?"update ":"")+"node"),Z.select("g.label").remove();var et=Z.append("g").attr("class","label"),Q=h(et,X),gt=A[X.shape],ht=m.pick(Q.node().getBBox(),"width","height");X.elem=this,X.id&&Z.attr("id",X.id),X.labelId&&et.attr("id",X.labelId),m.has(X,"width")&&(ht.width=X.width),m.has(X,"height")&&(ht.height=X.height),ht.width+=X.paddingLeft+X.paddingRight,ht.height+=X.paddingTop+X.paddingBottom,et.attr("transform","translate("+(X.paddingLeft-X.paddingRight)/2+","+(X.paddingTop-X.paddingBottom)/2+")");var xt=g.select(this);xt.select(".label-container").remove();var Tt=gt(xt,ht,X).classed("label-container",!0);x.applyStyle(Tt,X.style);var ne=Tt.node().getBBox();X.width=ne.width,X.height=ne.height}),I=Y.exit?Y.exit():Y.selectAll(null),x.applyTransition(I,E).style("opacity",0).remove(),Y}},4322:(S,M,f)=>{var m;if(!m)try{m=f(7188)}catch{}m||(m=window.d3),S.exports=m},1463:(S,M,f)=>{var m;try{m=f(681)}catch{}m||(m=window.dagre),S.exports=m},6614:(S,M,f)=>{var m;try{m=f(8282)}catch{}m||(m=window.graphlib),S.exports=m},8114:(S,M,f)=>{S.exports={node:f(7584),circle:f(6587),ellipse:f(3260),polygon:f(5337),rect:f(8049)}},6587:(S,M,f)=>{var m=f(3260);S.exports=function(h,x,g){return m(h,x,x,g)}},3260:S=>{S.exports=function(M,f,m,h){var x=M.x,g=M.y,k=x-h.x,E=g-h.y,A=Math.sqrt(f*f*E*E+m*m*k*k),I=Math.abs(f*m*k/A);h.x<x&&(I=-I);var O=Math.abs(f*m*E/A);return h.y<g&&(O=-O),{x:x+I,y:g+O}}},6808:S=>{function M(f,m){return f*m>0}S.exports=function(f,m,h,x){var g,k,E,A,I,O,Y,H,X,Z,et,Q,gt;if(g=m.y-f.y,E=f.x-m.x,I=m.x*f.y-f.x*m.y,X=g*h.x+E*h.y+I,Z=g*x.x+E*x.y+I,!(X!==0&&Z!==0&&M(X,Z)||(k=x.y-h.y,A=h.x-x.x,O=x.x*h.y-h.x*x.y,Y=k*f.x+A*f.y+O,H=k*m.x+A*m.y+O,Y!==0&&H!==0&&M(Y,H)||(et=g*A-k*E)==0)))return Q=Math.abs(et/2),{x:(gt=E*O-A*I)<0?(gt-Q)/et:(gt+Q)/et,y:(gt=k*I-g*O)<0?(gt-Q)/et:(gt+Q)/et}}},7584:S=>{S.exports=function(M,f){return M.intersect(f)}},5337:(S,M,f)=>{var m=f(6808);S.exports=function(h,x,g){var k=h.x,E=h.y,A=[],I=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;x.forEach(function(gt){I=Math.min(I,gt.x),O=Math.min(O,gt.y)});for(var Y=k-h.width/2-I,H=E-h.height/2-O,X=0;X<x.length;X++){var Z=x[X],et=x[X<x.length-1?X+1:0],Q=m(h,g,{x:Y+Z.x,y:H+Z.y},{x:Y+et.x,y:H+et.y});Q&&A.push(Q)}return A.length?(A.length>1&&A.sort(function(gt,ht){var xt=gt.x-g.x,Tt=gt.y-g.y,ne=Math.sqrt(xt*xt+Tt*Tt),bt=ht.x-g.x,at=ht.y-g.y,nt=Math.sqrt(bt*bt+at*at);return ne<nt?-1:ne===nt?0:1}),A[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",h),h)}},8049:S=>{S.exports=function(M,f){var m,h,x=M.x,g=M.y,k=f.x-x,E=f.y-g,A=M.width/2,I=M.height/2;return Math.abs(E)*A>Math.abs(k)*I?(E<0&&(I=-I),m=E===0?0:I*k/E,h=I):(k<0&&(A=-A),m=A,h=k===0?0:A*E/k),{x:x+m,y:g+h}}},8284:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){var g=h.append("foreignObject").attr("width","100000"),k=g.append("xhtml:div");k.attr("xmlns","http://www.w3.org/1999/xhtml");var E=x.label;switch(typeof E){case"function":k.insert(E);break;case"object":k.insert(function(){return E});break;default:k.html(E)}m.applyStyle(k,x.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,f)=>{var m=f(7318),h=f(8284),x=f(8287);S.exports=function(g,k,E){var A=k.label,I=g.append("g");k.labelType==="svg"?x(I,k):typeof A!="string"||k.labelType==="html"?h(I,k):m(I,k);var O,Y=I.node().getBBox();switch(E){case"top":O=-k.height/2;break;case"bottom":O=k.height/2-Y.height;break;default:O=-Y.height/2}return I.attr("transform","translate("+-Y.width/2+","+O+")"),I}},8287:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){var g=h;return g.node().appendChild(x.label),m.applyStyle(g,x.labelStyle),g}},7318:(S,M,f)=>{var m=f(8355);S.exports=function(h,x){for(var g=h.append("text"),k=function(A){for(var I,O="",Y=!1,H=0;H<A.length;++H)I=A[H],Y?(O+=I==="n"?`
|
|
`:I,Y=!1):I==="\\"?Y=!0:O+=I;return O}(x.label).split(`
|
|
`),E=0;E<k.length;E++)g.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(k[E]);return m.applyStyle(g,x.labelStyle),g}},1034:(S,M,f)=>{var m;try{m={defaults:f(1747),each:f(6073),isFunction:f(3560),isPlainObject:f(8630),pick:f(9722),has:f(8721),range:f(6026),uniqueId:f(3955)}}catch{}m||(m=window._),S.exports=m},6381:(S,M,f)=>{var m=f(8355),h=f(4322);S.exports=function(x,g){var k=x.filter(function(){return!h.select(this).classed("update")});function E(A){var I=g.node(A);return"translate("+I.x+","+I.y+")"}k.attr("transform",E),m.applyTransition(x,g).style("opacity",1).attr("transform",E),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,f)=>{var m=f(8355),h=f(4322),x=f(1034);S.exports=function(g,k){function E(A){var I=k.edge(A);return x.has(I,"x")?"translate("+I.x+","+I.y+")":""}g.filter(function(){return!h.select(this).classed("update")}).attr("transform",E),m.applyTransition(g,k).style("opacity",1).attr("transform",E)}},4849:(S,M,f)=>{var m=f(8355),h=f(4322);S.exports=function(x,g){function k(E){var A=g.node(E);return"translate("+A.x+","+A.y+")"}x.filter(function(){return!h.select(this).classed("update")}).attr("transform",k),m.applyTransition(x,g).style("opacity",1).attr("transform",k)}},5787:(S,M,f)=>{var m=f(1034),h=f(4322),x=f(1463).layout;S.exports=function(){var A=f(607),I=f(5632),O=f(6315),Y=f(940),H=f(4849),X=f(4577),Z=f(6381),et=f(4418),Q=f(9144),gt=function(ht,xt){(function(Lt){Lt.nodes().forEach(function(tt){var lt=Lt.node(tt);m.has(lt,"label")||Lt.children(tt).length||(lt.label=tt),m.has(lt,"paddingX")&&m.defaults(lt,{paddingLeft:lt.paddingX,paddingRight:lt.paddingX}),m.has(lt,"paddingY")&&m.defaults(lt,{paddingTop:lt.paddingY,paddingBottom:lt.paddingY}),m.has(lt,"padding")&&m.defaults(lt,{paddingLeft:lt.padding,paddingRight:lt.padding,paddingTop:lt.padding,paddingBottom:lt.padding}),m.defaults(lt,g),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(q){lt[q]=Number(lt[q])}),m.has(lt,"width")&&(lt._prevWidth=lt.width),m.has(lt,"height")&&(lt._prevHeight=lt.height)}),Lt.edges().forEach(function(tt){var lt=Lt.edge(tt);m.has(lt,"label")||(lt.label=""),m.defaults(lt,k)})})(xt);var Tt=E(ht,"output"),ne=E(Tt,"clusters"),bt=E(Tt,"edgePaths"),at=O(E(Tt,"edgeLabels"),xt),nt=A(E(Tt,"nodes"),xt,et);x(xt),H(nt,xt),X(at,xt),Y(bt,xt,Q);var Dt=I(ne,xt);Z(Dt,xt),function(Lt){m.each(Lt.nodes(),function(tt){var lt=Lt.node(tt);m.has(lt,"_prevWidth")?lt.width=lt._prevWidth:delete lt.width,m.has(lt,"_prevHeight")?lt.height=lt._prevHeight:delete lt.height,delete lt._prevWidth,delete lt._prevHeight})}(xt)};return gt.createNodes=function(ht){return arguments.length?(A=ht,gt):A},gt.createClusters=function(ht){return arguments.length?(I=ht,gt):I},gt.createEdgeLabels=function(ht){return arguments.length?(O=ht,gt):O},gt.createEdgePaths=function(ht){return arguments.length?(Y=ht,gt):Y},gt.shapes=function(ht){return arguments.length?(et=ht,gt):et},gt.arrows=function(ht){return arguments.length?(Q=ht,gt):Q},gt};var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},k={arrowhead:"normal",curve:h.curveLinear};function E(A,I){var O=A.select("g."+I);return O.empty()&&(O=A.append("g").attr("class",I)),O}},4418:(S,M,f)=>{var m=f(8049),h=f(3260),x=f(6587),g=f(5337);S.exports={rect:function(k,E,A){var I=k.insert("rect",":first-child").attr("rx",A.rx).attr("ry",A.ry).attr("x",-E.width/2).attr("y",-E.height/2).attr("width",E.width).attr("height",E.height);return A.intersect=function(O){return m(A,O)},I},ellipse:function(k,E,A){var I=E.width/2,O=E.height/2,Y=k.insert("ellipse",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("rx",I).attr("ry",O);return A.intersect=function(H){return h(A,I,O,H)},Y},circle:function(k,E,A){var I=Math.max(E.width,E.height)/2,O=k.insert("circle",":first-child").attr("x",-E.width/2).attr("y",-E.height/2).attr("r",I);return A.intersect=function(Y){return x(A,I,Y)},O},diamond:function(k,E,A){var I=E.width*Math.SQRT2/2,O=E.height*Math.SQRT2/2,Y=[{x:0,y:-O},{x:-I,y:0},{x:0,y:O},{x:I,y:0}],H=k.insert("polygon",":first-child").attr("points",Y.map(function(X){return X.x+","+X.y}).join(" "));return A.intersect=function(X){return g(A,Y,X)},H}}},8355:(S,M,f)=>{var m=f(1034);S.exports={isSubgraph:function(g,k){return!!g.children(k).length},edgeToId:function(g){return x(g.v)+":"+x(g.w)+":"+x(g.name)},applyStyle:function(g,k){k&&g.attr("style",k)},applyClass:function(g,k,E){k&&g.attr("class",k).attr("class",E+" "+g.attr("class"))},applyTransition:function(g,k){var E=k.graph();if(m.isPlainObject(E)){var A=E.transition;if(m.isFunction(A))return A(g)}return g}};var h=/:/g;function x(g){return g?String(g).replace(h,"\\:"):""}},5689:S=>{S.exports="0.6.4"},7188:(S,M,f)=>{f.r(M),f.d(M,{FormatSpecifier:()=>p1,active:()=>Tb,arc:()=>O2,area:()=>hd,areaRadial:()=>F2,ascending:()=>h,autoType:()=>Vb,axisBottom:()=>Le,axisLeft:()=>Ze,axisRight:()=>Be,axisTop:()=>De,bisect:()=>A,bisectLeft:()=>E,bisectRight:()=>k,bisector:()=>x,blob:()=>s4,brush:()=>ep,brushSelection:()=>Sb,brushX:()=>Kf,brushY:()=>Ab,buffer:()=>Gy,chord:()=>rp,clientPoint:()=>Ec,cluster:()=>a5,color:()=>Sa,contourDensity:()=>ih,contours:()=>Ei,create:()=>s6,creator:()=>fi,cross:()=>Y,csv:()=>Xy,csvFormat:()=>Pb,csvFormatBody:()=>jb,csvFormatRow:()=>zb,csvFormatRows:()=>Yb,csvFormatValue:()=>Dy,csvParse:()=>Ny,csvParseRows:()=>Fb,cubehelix:()=>ha,curveBasis:()=>d6,curveBasisClosed:()=>Tf,curveBasisOpen:()=>xl,curveBundle:()=>gd,curveCardinal:()=>p6,curveCardinalClosed:()=>W3,curveCardinalOpen:()=>g6,curveCatmullRom:()=>G3,curveCatmullRomClosed:()=>Z3,curveCatmullRomOpen:()=>z2,curveLinear:()=>yc,curveLinearClosed:()=>q2,curveMonotoneX:()=>Fa,curveMonotoneY:()=>Sf,curveNatural:()=>Tl,curveStep:()=>y6,curveStepAfter:()=>K3,curveStepBefore:()=>wi,customEvent:()=>Ui,descending:()=>H,deviation:()=>et,dispatch:()=>un,drag:()=>Sy,dragDisable:()=>Zr,dragEnable:()=>Br,dsv:()=>l4,dsvFormat:()=>ah,easeBack:()=>$y,easeBackIn:()=>i4,easeBackInOut:()=>$y,easeBackOut:()=>a4,easeBounce:()=>oh,easeBounceIn:()=>Hy,easeBounceInOut:()=>r4,easeBounceOut:()=>oh,easeCircle:()=>qy,easeCircleIn:()=>e4,easeCircleInOut:()=>qy,easeCircleOut:()=>n4,easeCubic:()=>Ws,easeCubicIn:()=>Hf,easeCubicInOut:()=>Ws,easeCubicOut:()=>$f,easeElastic:()=>Tp,easeElasticIn:()=>o4,easeElasticInOut:()=>Wy,easeElasticOut:()=>Tp,easeExp:()=>Uy,easeExpIn:()=>zy,easeExpInOut:()=>Uy,easeExpOut:()=>t4,easeLinear:()=>Oy,easePoly:()=>Ry,easePolyIn:()=>Qb,easePolyInOut:()=>Ry,easePolyOut:()=>Kb,easeQuad:()=>Iy,easeQuadIn:()=>Xb,easeQuadInOut:()=>Iy,easeQuadOut:()=>Zb,easeSin:()=>Yy,easeSinIn:()=>jy,easeSinInOut:()=>Yy,easeSinOut:()=>Jb,entries:()=>lp,event:()=>pt,extent:()=>Q,forceCenter:()=>p4,forceCollide:()=>v4,forceLink:()=>_4,forceManyBody:()=>T4,forceRadial:()=>C4,forceSimulation:()=>k4,forceX:()=>em,forceY:()=>Mp,format:()=>y1,formatDefaultLocale:()=>cm,formatLocale:()=>sm,formatPrefix:()=>Dp,formatSpecifier:()=>uh,geoAlbers:()=>rv,geoAlbersUsa:()=>Es,geoArea:()=>S4,geoAzimuthalEqualArea:()=>G4,geoAzimuthalEqualAreaRaw:()=>fg,geoAzimuthalEquidistant:()=>pg,geoAzimuthalEquidistantRaw:()=>dg,geoBounds:()=>vh,geoCentroid:()=>N4,geoCircle:()=>D4,geoClipAntimeridian:()=>Gp,geoClipCircle:()=>Dm,geoClipExtent:()=>B4,geoClipRectangle:()=>O1,geoConicConformal:()=>Z4,geoConicConformalRaw:()=>yg,geoConicEqualArea:()=>X1,geoConicEqualAreaRaw:()=>nv,geoConicEquidistant:()=>av,geoConicEquidistantRaw:()=>iv,geoContains:()=>Pm,geoDistance:()=>j1,geoEqualEarth:()=>K4,geoEqualEarthRaw:()=>mg,geoEquirectangular:()=>Q4,geoEquirectangularRaw:()=>Oh,geoGnomonic:()=>ov,geoGnomonicRaw:()=>Ph,geoGraticule:()=>zm,geoGraticule10:()=>j4,geoIdentity:()=>Q1,geoInterpolate:()=>Y4,geoLength:()=>Lm,geoMercator:()=>X4,geoMercatorRaw:()=>Lh,geoNaturalEarth1:()=>J4,geoNaturalEarth1Raw:()=>vg,geoOrthographic:()=>t5,geoOrthographicRaw:()=>bg,geoPath:()=>q4,geoProjection:()=>Mo,geoProjectionMutator:()=>ug,geoRotation:()=>$p,geoStereographic:()=>e5,geoStereographicRaw:()=>_g,geoStream:()=>wo,geoTransform:()=>H4,geoTransverseMercator:()=>n5,geoTransverseMercatorRaw:()=>K1,gray:()=>Db,hcl:()=>Xs,hierarchy:()=>xg,histogram:()=>Ut,hsl:()=>pu,html:()=>Ky,image:()=>Qy,interpolate:()=>Cc,interpolateArray:()=>Nd,interpolateBasis:()=>Ar,interpolateBasisClosed:()=>kc,interpolateBlues:()=>Fs,interpolateBrBG:()=>Z5,interpolateBuGn:()=>t6,interpolateBuPu:()=>e6,interpolateCividis:()=>S2,interpolateCool:()=>id,interpolateCubehelix:()=>h0,interpolateCubehelixDefault:()=>A2,interpolateCubehelixLong:()=>Hh,interpolateDate:()=>Yf,interpolateDiscrete:()=>g5,interpolateGnBu:()=>w3,interpolateGreens:()=>r6,interpolateGreys:()=>pl,interpolateHcl:()=>es,interpolateHclLong:()=>Do,interpolateHsl:()=>y5,interpolateHslLong:()=>m5,interpolateHue:()=>s0,interpolateInferno:()=>o6,interpolateLab:()=>u0,interpolateMagma:()=>nr,interpolateNumber:()=>ca,interpolateNumberArray:()=>zl,interpolateObject:()=>zf,interpolateOrRd:()=>df,interpolateOranges:()=>E2,interpolatePRGn:()=>Q5,interpolatePiYG:()=>lf,interpolatePlasma:()=>od,interpolatePuBu:()=>k3,interpolatePuBuGn:()=>b2,interpolatePuOr:()=>Kc,interpolatePuRd:()=>n6,interpolatePurples:()=>Jc,interpolateRainbow:()=>M2,interpolateRdBu:()=>x3,interpolateRdGy:()=>dl,interpolateRdPu:()=>Is,interpolateRdYlBu:()=>K5,interpolateRdYlGn:()=>J0,interpolateReds:()=>cs,interpolateRgb:()=>$s,interpolateRgbBasis:()=>yu,interpolateRgbBasisClosed:()=>yo,interpolateRound:()=>Sg,interpolateSinebow:()=>S3,interpolateSpectral:()=>J5,interpolateString:()=>mo,interpolateTransformCss:()=>Ld,interpolateTransformSvg:()=>Bd,interpolateTurbo:()=>a6,interpolateViridis:()=>A3,interpolateWarm:()=>rd,interpolateYlGn:()=>T3,interpolateYlGnBu:()=>w2,interpolateYlOrBr:()=>C3,interpolateYlOrRd:()=>T2,interpolateZoom:()=>c0,interrupt:()=>la,interval:()=>Mf,isoFormat:()=>Us,isoParse:()=>Al,json:()=>f4,keys:()=>Kl,lab:()=>Jl,lch:()=>dp,line:()=>bf,lineRadial:()=>R2,linkHorizontal:()=>bl,linkRadial:()=>Y3,linkVertical:()=>j3,local:()=>M3,map:()=>vs,matcher:()=>rn,max:()=>jt,mean:()=>ie,median:()=>he,merge:()=>pe,min:()=>le,mouse:()=>ds,namespace:()=>Ln,namespaces:()=>Cr,nest:()=>Nb,now:()=>W,pack:()=>h5,packEnclose:()=>uv,packSiblings:()=>yv,pairs:()=>I,partition:()=>No,path:()=>ms,permute:()=>oe,pie:()=>I3,piecewise:()=>Mg,pointRadial:()=>wf,polygonArea:()=>Cv,polygonCentroid:()=>v5,polygonContains:()=>Dg,polygonHull:()=>Ng,polygonLength:()=>Sv,precisionFixed:()=>Lp,precisionPrefix:()=>um,precisionRound:()=>lm,quadtree:()=>sh,quantile:()=>G,quantize:()=>Tv,radialArea:()=>F2,radialLine:()=>R2,randomBates:()=>rs,randomExponential:()=>x5,randomIrwinHall:()=>Ju,randomLogNormal:()=>Ku,randomNormal:()=>$h,randomUniform:()=>f0,range:()=>bt,rgb:()=>Ii,ribbon:()=>op,scaleBand:()=>g0,scaleDiverging:()=>Z0,scaleDivergingLog:()=>_a,scaleDivergingPow:()=>ui,scaleDivergingSqrt:()=>Os,scaleDivergingSymlog:()=>Qi,scaleIdentity:()=>Rg,scaleImplicit:()=>Lg,scaleLinear:()=>Ig,scaleLog:()=>Bv,scaleOrdinal:()=>p0,scalePoint:()=>Wh,scalePow:()=>zg,scaleQuantile:()=>Pv,scaleQuantize:()=>jv,scaleSequential:()=>V0,scaleSequentialLog:()=>cf,scaleSequentialPow:()=>G0,scaleSequentialQuantile:()=>m3,scaleSequentialSqrt:()=>H5,scaleSequentialSymlog:()=>uf,scaleSqrt:()=>E5,scaleSymlog:()=>Rv,scaleThreshold:()=>Yv,scaleTime:()=>z5,scaleUtc:()=>ll,scan:()=>wn,schemeAccent:()=>v3,schemeBlues:()=>nd,schemeBrBG:()=>_3,schemeBuGn:()=>ff,schemeBuPu:()=>m2,schemeCategory10:()=>Ro,schemeDark2:()=>Q0,schemeGnBu:()=>td,schemeGreens:()=>pf,schemeGreys:()=>C2,schemeOrRd:()=>v2,schemeOranges:()=>gf,schemePRGn:()=>d2,schemePaired:()=>$5,schemePastel1:()=>W5,schemePastel2:()=>K0,schemePiYG:()=>fl,schemePuBu:()=>_2,schemePuBuGn:()=>ed,schemePuOr:()=>ss,schemePuRd:()=>xa,schemePurples:()=>ni,schemeRdBu:()=>hf,schemeRdGy:()=>p2,schemeRdPu:()=>x2,schemeRdYlBu:()=>g2,schemeRdYlGn:()=>y2,schemeReds:()=>tu,schemeSet1:()=>b3,schemeSet2:()=>V5,schemeSet3:()=>G5,schemeSpectral:()=>Yi,schemeTableau10:()=>X5,schemeYlGn:()=>Ir,schemeYlGnBu:()=>Rs,schemeYlOrBr:()=>k2,schemeYlOrRd:()=>E3,select:()=>$r,selectAll:()=>c6,selection:()=>sa,selector:()=>kr,selectorAll:()=>sr,set:()=>Gs,shuffle:()=>fe,stack:()=>El,stackOffsetDiverging:()=>m6,stackOffsetExpand:()=>tb,stackOffsetNone:()=>ou,stackOffsetSilhouette:()=>nn,stackOffsetWiggle:()=>v6,stackOrderAppearance:()=>Sl,stackOrderAscending:()=>Fo,stackOrderDescending:()=>eb,stackOrderInsideOut:()=>W2,stackOrderNone:()=>su,stackOrderReverse:()=>nb,stratify:()=>r0,style:()=>ir,sum:()=>ae,svg:()=>d1,symbol:()=>$3,symbolCircle:()=>dd,symbolCross:()=>iu,symbolDiamond:()=>Ja,symbolSquare:()=>to,symbolStar:()=>Ra,symbolTriangle:()=>lo,symbolWye:()=>j2,symbols:()=>H3,text:()=>Su,thresholdFreedmanDiaconis:()=>me,thresholdScott:()=>ve,thresholdSturges:()=>q,tickFormat:()=>Bo,tickIncrement:()=>tt,tickStep:()=>lt,ticks:()=>Lt,timeDay:()=>ei,timeDays:()=>rl,timeFormat:()=>Kg,timeFormatDefaultLocale:()=>h2,timeFormatLocale:()=>M0,timeFriday:()=>el,timeFridays:()=>nl,timeHour:()=>qv,timeHours:()=>Oo,timeInterval:()=>Ai,timeMillisecond:()=>al,timeMilliseconds:()=>$v,timeMinute:()=>Qh,timeMinutes:()=>C0,timeMonday:()=>tl,timeMondays:()=>w0,timeMonth:()=>Hg,timeMonths:()=>Ns,timeParse:()=>N0,timeSaturday:()=>Ls,timeSaturdays:()=>Uv,timeSecond:()=>il,timeSeconds:()=>Hv,timeSunday:()=>Wc,timeSundays:()=>Vg,timeThursday:()=>Ds,timeThursdays:()=>k0,timeTuesday:()=>x0,timeTuesdays:()=>Gg,timeWednesday:()=>zv,timeWednesdays:()=>A5,timeWeek:()=>Wc,timeWeeks:()=>Vg,timeYear:()=>qc,timeYears:()=>S5,timeout:()=>Qe,timer:()=>ye,timerFlush:()=>Te,touch:()=>ua,touches:()=>u6,transition:()=>qf,transpose:()=>Zt,tree:()=>Xu,treemap:()=>o0,treemapBinary:()=>qh,treemapDice:()=>Yh,treemapResquarify:()=>Eg,treemapSlice:()=>uc,treemapSliceDice:()=>wv,treemapSquarify:()=>lc,tsv:()=>Zy,tsvFormat:()=>By,tsvFormatBody:()=>qb,tsvFormatRow:()=>$b,tsvFormatRows:()=>Hb,tsvFormatValue:()=>Wb,tsvParse:()=>Ly,tsvParseRows:()=>Ub,utcDay:()=>Jh,utcDays:()=>Gi,utcFormat:()=>D0,utcFriday:()=>Zg,utcFridays:()=>Bs,utcHour:()=>W0,utcHours:()=>q5,utcMillisecond:()=>al,utcMilliseconds:()=>$v,utcMinute:()=>g3,utcMinutes:()=>y3,utcMonday:()=>fc,utcMondays:()=>Gv,utcMonth:()=>Qc,utcMonths:()=>U5,utcParse:()=>Jg,utcSaturday:()=>Gc,utcSaturdays:()=>A0,utcSecond:()=>il,utcSeconds:()=>Hv,utcSunday:()=>Kh,utcSundays:()=>Vv,utcThursday:()=>dc,utcThursdays:()=>Qv,utcTuesday:()=>Xg,utcTuesdays:()=>Xv,utcWednesday:()=>Wv,utcWednesdays:()=>Zv,utcWeek:()=>Kh,utcWeeks:()=>Vv,utcYear:()=>Ot,utcYears:()=>ba,values:()=>up,variance:()=>Z,version:()=>m,voronoi:()=>de,window:()=>In,xml:()=>d4,zip:()=>Qt,zoom:()=>ub,zoomIdentity:()=>Il,zoomTransform:()=>Ed});var m="5.16.0";function h(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}function x(n){var i;return n.length===1&&(i=n,n=function(o,s){return h(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=x(h),k=g.right,E=g.left;const A=k;function I(n,i){i==null&&(i=O);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 O(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=O),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 H(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function X(n){return n===null?NaN:+n}function Z(n,i){var o,s,l=n.length,p=0,b=-1,v=0,T=0;if(i==null)for(;++b<l;)isNaN(o=X(n[b]))||(T+=(s=o-v)*(o-(v+=s/++p)));else for(;++b<l;)isNaN(o=X(i(n[b],b,n)))||(T+=(s=o-v)*(o-(v+=s/++p)));if(p>1)return T/(p-1)}function et(n,i){var o=Z(n,i);return o&&Math.sqrt(o)}function Q(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 gt=Array.prototype,ht=gt.slice,xt=gt.map;function Tt(n){return function(){return n}}function ne(n){return n}function bt(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 at=Math.sqrt(50),nt=Math.sqrt(10),Dt=Math.sqrt(2);function Lt(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=tt(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 tt(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>=at?10:p>=nt?5:p>=Dt?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(p>=at?10:p>=nt?5:p>=Dt?2:1)}function lt(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>=at?l*=10:p>=nt?l*=5:p>=Dt&&(l*=2),i<n?-l:l}function q(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Ut(){var n=ne,i=Q,o=q;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],L=o(T,B,F);Array.isArray(L)||(L=lt(B,F,L),L=bt(Math.ceil(B/L)*L,F,L));for(var z=L.length;L[0]<=B;)L.shift(),--z;for(;L[z-1]>F;)L.pop(),--z;var U,J=new Array(z+1);for(p=0;p<=z;++p)(U=J[p]=[]).x0=p>0?L[p-1]:B,U.x1=p<z?L[p]:F;for(p=0;p<v;++p)B<=(b=T[p])&&b<=F&&J[A(L,b,0,z)].push(l[p]);return J}return s.value=function(l){return arguments.length?(n=typeof l=="function"?l:Tt(l),s):n},s.domain=function(l){return arguments.length?(i=typeof l=="function"?l:Tt([l[0],l[1]]),s):i},s.thresholds=function(l){return arguments.length?(o=typeof l=="function"?l:Array.isArray(l)?Tt(ht.call(l)):Tt(l),s):o},s}function G(n,i,o){if(o==null&&(o=X),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 me(n,i,o){return n=xt.call(n,X).sort(h),Math.ceil((o-i)/(2*(G(n,.75)-G(n,.25))*Math.pow(n.length,-1/3)))}function ve(n,i,o){return Math.ceil((o-i)/(3.5*et(n)*Math.pow(n.length,-1/3)))}function jt(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 ie(n,i){var o,s=n.length,l=s,p=-1,b=0;if(i==null)for(;++p<s;)isNaN(o=X(n[p]))?--l:b+=o;else for(;++p<s;)isNaN(o=X(i(n[p],p,n)))?--l:b+=o;if(l)return b/l}function he(n,i){var o,s=n.length,l=-1,p=[];if(i==null)for(;++l<s;)isNaN(o=X(n[l]))||p.push(o);else for(;++l<s;)isNaN(o=X(i(n[l],l,n)))||p.push(o);return G(p.sort(h),.5)}function pe(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 le(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 oe(n,i){for(var o=i.length,s=new Array(o);o--;)s[o]=n[i[o]];return s}function wn(n,i){if(o=n.length){var o,s,l=0,p=0,b=n[p];for(i==null&&(i=h);++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 fe(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 ae(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 Zt(n){if(!(l=n.length))return[];for(var i=-1,o=le(n,St),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 St(n){return n.length}function Qt(){return Zt(arguments)}var mt=Array.prototype.slice;function Ht(n){return n}var kt=1e-6;function It(n){return"translate("+(n+.5)+",0)"}function se(n){return"translate(0,"+(n+.5)+")"}function Se(n){return function(i){return+n(i)}}function be(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(o){return+n(o)+i}}function Ae(){return!this.__axis}function cn(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?It:se;function F(L){var z=s==null?i.ticks?i.ticks.apply(i,o):i.domain():s,U=l==null?i.tickFormat?i.tickFormat.apply(i,o):Ht:l,J=Math.max(p,0)+v,K=i.range(),V=+K[0]+.5,ot=+K[K.length-1]+.5,it=(i.bandwidth?be:Se)(i.copy()),dt=L.selection?L.selection():L,Pt=dt.selectAll(".domain").data([null]),Gt=dt.selectAll(".tick").data(z,i).order(),re=Gt.exit(),xe=Gt.enter().append("g").attr("class","tick"),qt=Gt.select("line"),te=Gt.select("text");Pt=Pt.merge(Pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Gt=Gt.merge(xe),qt=qt.merge(xe.append("line").attr("stroke","currentColor").attr(N+"2",T*p)),te=te.merge(xe.append("text").attr("fill","currentColor").attr(N,T*J).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),L!==dt&&(Pt=Pt.transition(L),Gt=Gt.transition(L),qt=qt.transition(L),te=te.transition(L),re=re.transition(L).attr("opacity",kt).attr("transform",function(ut){return isFinite(ut=it(ut))?B(ut):this.getAttribute("transform")}),xe.attr("opacity",kt).attr("transform",function(ut){var Ct=this.parentNode.__axis;return B(Ct&&isFinite(Ct=Ct(ut))?Ct:it(ut))})),re.remove(),Pt.attr("d",n===4||n==2?b?"M"+T*b+","+V+"H0.5V"+ot+"H"+T*b:"M0.5,"+V+"V"+ot:b?"M"+V+","+T*b+"V0.5H"+ot+"V"+T*b:"M"+V+",0.5H"+ot),Gt.attr("opacity",1).attr("transform",function(ut){return B(it(ut))}),qt.attr(N+"2",T*p),te.attr(N,T*J).text(U),dt.filter(Ae).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),dt.each(function(){this.__axis=it})}return F.scale=function(L){return arguments.length?(i=L,F):i},F.ticks=function(){return o=mt.call(arguments),F},F.tickArguments=function(L){return arguments.length?(o=L==null?[]:mt.call(L),F):o.slice()},F.tickValues=function(L){return arguments.length?(s=L==null?null:mt.call(L),F):s&&s.slice()},F.tickFormat=function(L){return arguments.length?(l=L,F):l},F.tickSize=function(L){return arguments.length?(p=b=+L,F):p},F.tickSizeInner=function(L){return arguments.length?(p=+L,F):p},F.tickSizeOuter=function(L){return arguments.length?(b=+L,F):b},F.tickPadding=function(L){return arguments.length?(v=+L,F):v},F}function De(n){return cn(1,n)}function Be(n){return cn(2,n)}function Le(n){return cn(3,n)}function Ze(n){return cn(4,n)}var Ke={value:function(){}};function Je(){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 $e(s)}function $e(n){this._=n}function Ue(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]=Ke,n=n.slice(0,s).concat(n.slice(s+1));break}return o!=null&&n.push({name:i,value:o}),n}$e.prototype=Je.prototype={constructor:$e,on:function(n,i){var o,s=this._,l=Ue(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 $e(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 un=Je;function gn(){}function kr(n){return n==null?gn:function(){return this.querySelector(n)}}function kn(){return[]}function sr(n){return n==null?kn:function(){return this.querySelectorAll(n)}}function rn(n){return function(){return this.matches(n)}}function ln(n){return new Array(n.length)}function Ye(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function mn(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 Ye(n,p[v]);for(;v<T;++v)(b=i[v])&&(l[v]=b)}function bn(n,i,o,s,l,p,b){var v,T,N,B={},F=i.length,L=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<L;++v)(T=B[N="$"+b.call(n,p[v],v,p)])?(s[v]=T,T.__data__=p[v],B[N]=null):o[v]=new Ye(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}Ye.prototype={constructor:Ye,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 Ln(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 Sn(n){return function(){this.removeAttribute(n)}}function Fn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function qn(n,i){return function(){this.setAttribute(n,i)}}function Vn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Xn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttribute(n):this.setAttribute(n,o)}}function Tn(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 In(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function An(n){return function(){this.style.removeProperty(n)}}function hn(n,i,o){return function(){this.style.setProperty(n,i,o)}}function Hn(n,i,o){return function(){var s=i.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,o)}}function ir(n,i){return n.style.getPropertyValue(i)||In(n).getComputedStyle(n,null).getPropertyValue(i)}function ra(n){return function(){delete this[n]}}function gr(n,i){return function(){this[n]=i}}function Bn(n,i){return function(){var o=i.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function io(n){return n.trim().split(/^|\s+/)}function Ta(n){return n.classList||new Vr(n)}function Vr(n){this._node=n,this._names=io(n.getAttribute("class")||"")}function Gr(n,i){for(var o=Ta(n),s=-1,l=i.length;++s<l;)o.add(i[s])}function Fr(n,i){for(var o=Ta(n),s=-1,l=i.length;++s<l;)o.remove(i[s])}function Er(n){return function(){Gr(this,n)}}function Xr(n){return function(){Fr(this,n)}}function Ur(n,i){return function(){(i.apply(this,arguments)?Gr:Fr)(this,n)}}function qr(){this.textContent=""}function Dr(n){return function(){this.textContent=n}}function li(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function hi(){this.innerHTML=""}function cr(n){return function(){this.innerHTML=n}}function Hr(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function ia(){this.nextSibling&&this.parentNode.appendChild(this)}function Lr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aa(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 ao(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function fi(n){var i=Ln(n);return(i.local?ao:aa)(i)}function an(){return null}function Jn(){var n=this.parentNode;n&&n.removeChild(this)}function Cn(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function ze(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}Vr.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 $n={},pt=null;function ii(n,i,o){return n=Xt(n,i,o),function(s){var l=s.relatedTarget;l&&(l===this||8&l.compareDocumentPosition(this))||n.call(this,s)}}function Xt(n,i,o){return function(s){var l=pt;pt=s;try{n.call(this,this.__data__,i,o)}finally{pt=l}}}function ki(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 go(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 Ca(n,i,o){var s=$n.hasOwnProperty(n.type)?ii:Xt;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 Ui(n,i,o,s){var l=pt;n.sourceEvent=pt,pt=n;try{return i.apply(o,s)}finally{pt=l}}function Yo(n,i,o){var s=In(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 zo(n,i){return function(){return Yo(this,n,i)}}function Pr(n,i){return function(){return Yo(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||($n={mouseenter:"mouseover",mouseleave:"mouseout"}));var qi=[null];function Dn(n,i){this._groups=n,this._parents=i}function oa(){return new Dn([[document.documentElement]],qi)}Dn.prototype=oa.prototype={constructor:Dn,select:function(n){typeof n!="function"&&(n=kr(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 Dn(s,this._parents)},selectAll:function(n){typeof n!="function"&&(n=sr(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 Dn(s,l)},filter:function(n){typeof n!="function"&&(n=rn(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 Dn(s,this._parents)},data:function(n,i){if(!n)return U=new Array(this.size()),B=-1,this.each(function(Gt){U[++B]=Gt}),U;var o,s=i?bn:mn,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],L=p[B],z=L.length,U=n.call(F,F&&F.__data__,B,l),J=U.length,K=T[B]=new Array(J),V=v[B]=new Array(J);s(F,L,K,V,N[B]=new Array(z),U,i);for(var ot,it,dt=0,Pt=0;dt<J;++dt)if(ot=K[dt]){for(dt>=Pt&&(Pt=dt+1);!(it=V[Pt])&&++Pt<J;);ot._next=it||null}}return(v=new Dn(v,l))._enter=T,v._exit=N,v},enter:function(){return new Dn(this._enter||this._groups.map(ln),this._parents)},exit:function(){return new Dn(this._exit||this._groups.map(ln),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,L=b[v]=new Array(F),z=0;z<F;++z)(T=N[z]||B[z])&&(L[z]=T);for(;v<s;++v)b[v]=i[v];return new Dn(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,L){return F&&L?n(F.__data__,L.__data__):!F-!L}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 Dn(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=Ln(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?Fn:Sn:typeof i=="function"?o.local?Tn:Xn:o.local?Vn:qn)(o,i))},style:function(n,i,o){return arguments.length>1?this.each((i==null?An:typeof i=="function"?Hn:hn)(n,i,o==null?"":o)):ir(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?ra:typeof i=="function"?Bn:gr)(n,i)):this.node()[n]},classed:function(n,i){var o=io(n+"");if(arguments.length<2){for(var s=Ta(this.node()),l=-1,p=o.length;++l<p;)if(!s.contains(o[l]))return!1;return!0}return this.each((typeof i=="function"?Ur:i?Er:Xr)(o,i))},text:function(n){return arguments.length?this.each(n==null?qr:(typeof n=="function"?li:Dr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?hi:(typeof n=="function"?Hr:cr)(n)):this.node().innerHTML},raise:function(){return this.each(ia)},lower:function(){return this.each(Lr)},append:function(n){var i=typeof n=="function"?n:fi(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var o=typeof n=="function"?n:fi(n),s=i==null?an:typeof i=="function"?i:kr(i);return this.select(function(){return this.insertBefore(o.apply(this,arguments),s.apply(this,arguments)||null)})},remove:function(){return this.each(Jn)},clone:function(n){return this.select(n?ze:Cn)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,o){var s,l,p=ki(n+""),b=p.length;if(!(arguments.length<2)){for(v=i?Ca:go,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"?Pr:zo)(n,i))}};const sa=oa;function $r(n){return typeof n=="string"?new Dn([[document.querySelector(n)]],[document.documentElement]):new Dn([[n]],qi)}function ar(){pt.stopImmediatePropagation()}function di(){pt.preventDefault(),pt.stopImmediatePropagation()}function Zr(n){var i=n.document.documentElement,o=$r(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 Br(n,i){var o=n.document.documentElement,s=$r(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 Kr(n,i,o){n.prototype=i.prototype=o,o.constructor=n}function Li(n,i){var o=Object.create(n.prototype);for(var s in i)o[s]=i[s];return o}function mr(){}var Hi=.7,Bi=1/Hi,Ti="\\s*([+-]?\\d+)\\s*",Ya="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yt=/^#([0-9a-f]{3,8})$/,Ve=new RegExp("^rgb\\("+[Ti,Ti,Ti]+"\\)$"),qe=new RegExp("^rgb\\("+[Jr,Jr,Jr]+"\\)$"),lr=new RegExp("^rgba\\("+[Ti,Ti,Ti,Ya]+"\\)$"),Sr=new RegExp("^rgba\\("+[Jr,Jr,Jr,Ya]+"\\)$"),ai=new RegExp("^hsl\\("+[Ya,Jr,Jr]+"\\)$"),pi=new RegExp("^hsla\\("+[Ya,Jr,Jr,Ya]+"\\)$"),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 Wr(){return this.rgb().formatHex()}function Oi(){return this.rgb().formatRgb()}function Sa(n){var i,o;return n=(n+"").trim().toLowerCase(),(i=Yt.exec(n))?(o=i[1].length,i=parseInt(i[1],16),o===6?Hs(i):o===3?new Qr(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):o===8?oo(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):o===4?oo(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=Ve.exec(n))?new Qr(i[1],i[2],i[3],1):(i=qe.exec(n))?new Qr(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=lr.exec(n))?oo(i[1],i[2],i[3],i[4]):(i=Sr.exec(n))?oo(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=ai.exec(n))?za(i[1],i[2]/100,i[3]/100,1):(i=pi.exec(n))?za(i[1],i[2]/100,i[3]/100,i[4]):Ea.hasOwnProperty(n)?Hs(Ea[n]):n==="transparent"?new Qr(NaN,NaN,NaN,0):null}function Hs(n){return new Qr(n>>16&255,n>>8&255,255&n,1)}function oo(n,i,o,s){return s<=0&&(n=i=o=NaN),new Qr(n,i,o,s)}function wc(n){return n instanceof mr||(n=Sa(n)),n?new Qr((n=n.rgb()).r,n.g,n.b,n.opacity):new Qr}function Ii(n,i,o,s){return arguments.length===1?wc(n):new Qr(n,i,o,s==null?1:s)}function Qr(n,i,o,s){this.r=+n,this.g=+i,this.b=+o,this.opacity=+s}function lu(){return"#"+fu(this.r)+fu(this.g)+fu(this.b)}function hu(){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 fu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function za(n,i,o,s){return s<=0?n=i=o=NaN:o<=0||o>=1?n=i=NaN:i<=0&&(n=NaN),new Ua(n,i,o,s)}function du(n){if(n instanceof Ua)return new Ua(n.h,n.s,n.l,n.opacity);if(n instanceof mr||(n=Sa(n)),!n)return new Ua;if(n instanceof Ua)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 Ua(b,v,T,n.opacity)}function pu(n,i,o,s){return arguments.length===1?du(n):new Ua(n,i,o,s==null?1:s)}function Ua(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}function je(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 jl(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 jl((o-s/i)*i,b,l,p,v)}}function kc(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 jl((o-s/i)*i,l,p,b,v)}}function Tc(n){return function(){return n}}function gu(n,i){return function(o){return n+o*i}}function Aa(n,i){var o=i-n;return o?gu(n,o>180||o<-180?o-360*Math.round(o/360):o):Tc(isNaN(n)?i:n)}function gi(n,i){var o=i-n;return o?gu(n,o):Tc(isNaN(n)?i:n)}Kr(mr,Sa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Wr,formatHex:Wr,formatHsl:function(){return du(this).formatHsl()},formatRgb:Oi,toString:Oi}),Kr(Qr,Ii,Li(mr,{brighter:function(n){return n=n==null?Bi:Math.pow(Bi,n),new Qr(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Hi:Math.pow(Hi,n),new Qr(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:lu,formatHex:lu,formatRgb:hu,toString:hu})),Kr(Ua,pu,Li(mr,{brighter:function(n){return n=n==null?Bi:Math.pow(Bi,n),new Ua(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Hi:Math.pow(Hi,n),new Ua(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 Qr(je(n>=240?n-240:n+120,l,s),je(n,l,s),je(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 $s=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):Tc(isNaN(p)?b:p)}}(i);function s(l,p){var b=o((l=Ii(l)).r,(p=Ii(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 Yl(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=Ii(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 yu=Yl(Ar),yo=Yl(kc);function zl(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 Pf(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Nd(n,i){return(Pf(i)?zl:jf)(n,i)}function jf(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]=Cc(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 Yf(n,i){var o=new Date;return n=+n,i=+i,function(s){return o.setTime(n*(1-s)+i*s),o}}function ca(n,i){return n=+n,i=+i,function(o){return n*(1-o)+i*o}}function zf(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]=Cc(n[o],i[o]):l[o]=i[o];return function(p){for(o in s)l[o]=s[o](p);return l}}var Ul=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ql=new RegExp(Ul.source,"g");function mo(n,i){var o,s,l,p=Ul.lastIndex=ql.lastIndex=0,b=-1,v=[],T=[];for(n+="",i+="";(o=Ul.exec(n))&&(s=ql.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:ca(o,s)})),p=ql.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 Cc(n,i){var o,s=typeof i;return i==null||s==="boolean"?Tc(i):(s==="number"?ca:s==="string"?(o=Sa(i))?(i=o,$s):mo:i instanceof Sa?$s:i instanceof Date?Yf:Pf(i)?zl:Array.isArray(i)?jf:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?zf:ca)(n,i)}function qa(){for(var n,i=pt;n=i.sourceEvent;)i=n;return i}function Ec(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 ua(n,i,o){arguments.length<3&&(o=i,i=qa().changedTouches);for(var s,l=0,p=i?i.length:0;l<p;++l)if((s=i[l]).identifier===o)return Ec(n,s);return null}function ds(n){var i=qa();return i.changedTouches&&(i=i.changedTouches[0]),Ec(n,i)}var mu,vo,Ri=0,oi=0,Ha=0,Ma=0,$i=0,Gn=0,C=typeof performance=="object"&&performance.now?performance:Date,R=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function W(){return $i||(R(st),$i=C.now()+Gn)}function st(){$i=0}function Vt(){this._call=this._time=this._next=null}function ye(n,i,o){var s=new Vt;return s.restart(n,i,o),s}function Te(){W(),++Ri;for(var n,i=mu;i;)(n=$i-i._time)>=0&&i._call.call(null,n),i=i._next;--Ri}function Oe(){$i=(Ma=C.now())+Gn,Ri=oi=0;try{Te()}finally{Ri=0,function(){for(var n,i,o=mu,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:mu=i);vo=n,He(s)}(),$i=0}}function Ie(){var n=C.now(),i=n-Ma;i>1e3&&(Gn-=i,Ma=n)}function He(n){Ri||(oi&&(oi=clearTimeout(oi)),n-$i>24?(n<1/0&&(oi=setTimeout(Oe,n-C.now()-Gn)),Ha&&(Ha=clearInterval(Ha))):(Ha||(Ma=C.now(),Ha=setInterval(Ie,1e3)),Ri=1,R(Oe)))}function Qe(n,i,o){var s=new Vt;return i=i==null?0:+i,s.restart(function(l){s.stop(),n(l+i)},i,o),s}Vt.prototype=ye.prototype={constructor:Vt,restart:function(n,i,o){if(typeof n!="function")throw new TypeError("callback is not a function");o=(o==null?W():+o)+(i==null?0:+i),this._next||vo===this||(vo?vo._next=this:mu=this,vo=this),this._call=n,this._time=o,He()},stop:function(){this._call&&(this._call=null,this._time=1/0,He())}};var xn=un("start","end","cancel","interrupt"),pn=[];function hr(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 L(J){var K,V,ot,it;if(N.state!==1)return U();for(K in F)if((it=F[K]).name===N.name){if(it.state===3)return Qe(L);it.state===4?(it.state=6,it.timer.stop(),it.on.call("interrupt",v,v.__data__,it.index,it.group),delete F[K]):+K<T&&(it.state=6,it.timer.stop(),it.on.call("cancel",v,v.__data__,it.index,it.group),delete F[K])}if(Qe(function(){N.state===3&&(N.state=4,N.timer.restart(z,N.delay,N.time),z(J))}),N.state=2,N.on.call("start",v,v.__data__,N.index,N.group),N.state===2){for(N.state=3,B=new Array(ot=N.tween.length),K=0,V=-1;K<ot;++K)(it=N.tween[K].value.call(v,v.__data__,N.index,N.group))&&(B[++V]=it);B.length=V+1}}function z(J){for(var K=J<N.duration?N.ease.call(null,J/N.duration):(N.timer.restart(U),N.state=5,1),V=-1,ot=B.length;++V<ot;)B[V].call(v,K);N.state===5&&(N.on.call("end",v,v.__data__,N.index,N.group),U())}function U(){for(var J in N.state=6,N.timer.stop(),delete F[T],F)return;delete v.__transition}F[T]=N,N.timer=ye(function(J){N.state=1,N.timer.restart(L,N.delay,N.time),N.delay<=J&&L(J-N.delay)},0,N.time)})(n,o,{name:i,index:s,group:l,on:xn,tween:pn,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function fr(n,i){var o=ur(n,i);if(o.state>0)throw new Error("too late; already scheduled");return o}function Mr(n,i){var o=ur(n,i);if(o.state>3)throw new Error("too late; already running");return o}function ur(n,i){var o=n.__transition;if(!o||!(o=o[i]))throw new Error("transition not found");return o}function la(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 ps,Hl,Dd,$l,bo=180/Math.PI,Wl={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)*bo,skewX:Math.atan(T)*bo,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,L,z,U){if(N!==F||B!==L){var J=z.push("translate(",null,i,null,o);U.push({i:J-4,x:ca(N,F)},{i:J-2,x:ca(B,L)})}else(F||L)&&z.push("translate("+F+i+L+o)}(p.translateX,p.translateY,b.translateX,b.translateY,v,T),function(N,B,F,L){N!==B?(N-B>180?B+=360:B-N>180&&(N+=360),L.push({i:F.push(l(F)+"rotate(",null,s)-2,x:ca(N,B)})):B&&F.push(l(F)+"rotate("+B+s)}(p.rotate,b.rotate,v,T),function(N,B,F,L){N!==B?L.push({i:F.push(l(F)+"skewX(",null,s)-2,x:ca(N,B)}):B&&F.push(l(F)+"skewX("+B+s)}(p.skewX,b.skewX,v,T),function(N,B,F,L,z,U){if(N!==F||B!==L){var J=z.push(l(z)+"scale(",null,",",null,")");U.push({i:J-4,x:ca(N,F)},{i:J-2,x:ca(B,L)})}else F===1&&L===1||z.push(l(z)+"scale("+F+","+L+")")}(p.scaleX,p.scaleY,b.scaleX,b.scaleY,v,T),p=b=null,function(N){for(var B,F=-1,L=T.length;++F<L;)v[(B=T[F]).i]=B.x(N);return v.join("")}}}var Ld=ny(function(n){return n==="none"?Wl:(ps||(ps=document.createElement("DIV"),Hl=document.documentElement,Dd=document.defaultView),ps.style.transform=n,n=Dd.getComputedStyle(Hl.appendChild(ps),null).getPropertyValue("transform"),Hl.removeChild(ps),ey(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),Bd=ny(function(n){return n==null?Wl:($l||($l=document.createElementNS("http://www.w3.org/2000/svg","g")),$l.setAttribute("transform",n),(n=$l.transform.baseVal.consolidate())?ey((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Wl)},", ",")",")");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 Od(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 Uf(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 ur(l,s).value[i]}}function Id(n,i){var o;return(typeof i=="number"?ca:i instanceof Sa?$s:(o=Sa(i))?(i=o,$s):mo)(n,i)}function Uo(n){return function(){this.removeAttribute(n)}}function Rd(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Fd(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 Pd(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 jd(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 vb(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 Yd(n,i){return function(o){this.setAttribute(n,i.call(this,o))}}function gs(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)&&gs(n,p)),o}return l._value=i,l}function zd(n,i){var o,s;function l(){var p=i.apply(this,arguments);return p!==s&&(o=(s=p)&&Yd(n,p)),o}return l._value=i,l}function ay(n,i){return function(){fr(this,n).delay=+i.apply(this,arguments)}}function Vl(n,i){return i=+i,function(){fr(this,n).delay=i}}function bb(n,i){return function(){Mr(this,n).duration=+i.apply(this,arguments)}}function _b(n,i){return i=+i,function(){Mr(this,n).duration=i}}function Ud(n,i){if(typeof i!="function")throw new Error;return function(){Mr(this,n).ease=i}}function qd(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)?fr:Mr;return function(){var b=p(this,n),v=b.on;v!==s&&(l=(s=v).copy()).on(i,o),b.on=l}}var Hd=sa.prototype.constructor;function $d(n){return function(){this.style.removeProperty(n)}}function Wd(n,i,o){return function(s){this.style.setProperty(n,i.call(this,s),o)}}function Vd(n,i,o){var s,l;function p(){var b=i.apply(this,arguments);return b!==l&&(s=(l=b)&&Wd(n,b,o)),s}return p._value=i,p}function Gd(n){return function(i){this.textContent=n.call(this,i)}}function xb(n){var i,o;function s(){var l=n.apply(this,arguments);return l!==o&&(i=(o=l)&&Gd(l)),i}return s._value=n,s}var wb=0;function qo(n,i,o,s){this._groups=n,this._parents=i,this._name=o,this._id=s}function qf(n){return sa().transition(n)}function Xd(){return++wb}var Ho=sa.prototype;function Hf(n){return n*n*n}function $f(n){return--n*n*n+1}function Ws(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}qo.prototype=qf.prototype={constructor:qo,select:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=kr(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),L=0;L<B;++L)(v=N[L])&&(T=n.call(v,v.__data__,L,N))&&("__data__"in v&&(T.__data__=v.__data__),F[L]=T,hr(F[L],i,o,L,F,ur(v,o)));return new qo(p,this._parents,i,o)},selectAll:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=sr(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 L,z=n.call(T,T.__data__,F,N),U=ur(T,o),J=0,K=z.length;J<K;++J)(L=z[J])&&hr(L,i,o,J,z,U);p.push(z),b.push(T)}return new qo(p,b,i,o)},filter:function(n){typeof n!="function"&&(n=rn(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 qo(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,L=b[v]=new Array(F),z=0;z<F;++z)(T=N[z]||B[z])&&(L[z]=T);for(;v<s;++v)b[v]=i[v];return new qo(b,this._parents,this._name,this._id)},selection:function(){return new Hd(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,o=Xd(),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=ur(b,i);hr(b,n,o,N,v,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new qo(s,this._parents,n,o)},call:Ho.call,nodes:Ho.nodes,node:Ho.node,size:Ho.size,empty:Ho.empty,each:Ho.each,on:function(n,i){var o=this._id;return arguments.length<2?ur(this.node(),o).on.on(n):this.each(qd(o,n,i))},attr:function(n,i){var o=Ln(n),s=o==="transform"?Bd:Id;return this.attrTween(n,typeof i=="function"?(o.local?vb:jd)(o,s,Uf(this,"attr."+n,i)):i==null?(o.local?Rd:Uo)(o):(o.local?Pd:Fd)(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=Ln(n);return this.tween(o,(s.local?iy:zd)(s,i))},style:function(n,i,o){var s=(n+="")=="transform"?Ld:Id;return i==null?this.styleTween(n,function(l,p){var b,v,T;return function(){var N=ir(this,l),B=(this.style.removeProperty(l),ir(this,l));return N===B?null:N===b&&B===v?T:T=p(b=N,v=B)}}(n,s)).on("end.style."+n,$d(n)):typeof i=="function"?this.styleTween(n,function(l,p,b){var v,T,N;return function(){var B=ir(this,l),F=b(this),L=F+"";return F==null&&(this.style.removeProperty(l),L=F=ir(this,l)),B===L?null:B===v&&L===T?N:(T=L,N=p(v=B,F))}}(n,s,Uf(this,"style."+n,i))).each(function(l,p){var b,v,T,N,B="style."+p,F="end."+B;return function(){var L=Mr(this,l),z=L.on,U=L.value[B]==null?N||(N=$d(p)):void 0;z===b&&T===U||(v=(b=z).copy()).on(F,T=U),L.on=v}}(this._id,n)):this.styleTween(n,function(l,p,b){var v,T,N=b+"";return function(){var B=ir(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,Vd(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}}(Uf(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,xb(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=ur(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:Od)(o,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?ay:Vl)(i,n)):ur(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?bb:_b)(i,n)):ur(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(Ud(i,n)):ur(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 Sc={time:null,delay:0,duration:250,ease:Ws};function $o(n,i){for(var o;!(o=n.__transition)||!(o=o[i]);)if(!(n=n.parentNode))return Sc.time=W(),Sc;return o}sa.prototype.interrupt=function(n){return this.each(function(){la(this,n)})},sa.prototype.transition=function(n){var i,o;n instanceof qo?(i=n._id,n=n._name):(i=Xd(),(o=Sc).time=W(),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])&&hr(b,n,i,N,v,o||$o(b,i));return new qo(s,this._parents,n,i)};var kb=[null];function Tb(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 qo([[n]],kb,i,+s)}return null}function Zd(n){return function(){return n}}function Cb(n,i,o){this.target=n,this.type=i,this.selection=o}function oy(){pt.stopImmediatePropagation()}function Qd(){pt.preventDefault(),pt.stopImmediatePropagation()}var sy={name:"drag"},Wf={name:"space"},Ac={name:"handle"},Mc={name:"center"};function vu(n){return[+n[0],+n[1]]}function Vf(n){return[vu(n[0]),vu(n[1])]}function Gf(n){return function(i){return ua(i,pt.touches,n)}}var Xf={name:"x",handles:["w","e"].map(Na),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]]}},bu={name:"y",handles:["n","s"].map(Na),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]]}},$a={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Na),input:function(n){return n==null?null:Vf(n)},output:function(n){return n}},Wo={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"},Kd={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Zf={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 Na(n){return{type:n}}function Jd(){return!pt.ctrlKey&&!pt.button}function tp(){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 Qf(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function Eb(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Sb(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Kf(){return Gl(Xf)}function Ab(){return Gl(bu)}function ep(){return Gl($a)}function Gl(n){var i,o=tp,s=Jd,l=ly,p=!0,b=un("start","brush","end"),v=6;function T(K){var V=K.property("__brush",J).selectAll(".overlay").data([Na("overlay")]);V.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Wo.overlay).merge(V).each(function(){var it=Qf(this).extent;$r(this).attr("x",it[0][0]).attr("y",it[0][1]).attr("width",it[1][0]-it[0][0]).attr("height",it[1][1]-it[0][1])}),K.selectAll(".selection").data([Na("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Wo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var ot=K.selectAll(".handle").data(n.handles,function(it){return it.type});ot.exit().remove(),ot.enter().append("rect").attr("class",function(it){return"handle handle--"+it.type}).attr("cursor",function(it){return Wo[it.type]}),K.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",L).filter(l).on("touchstart.brush",L).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 K=$r(this),V=Qf(this).selection;V?(K.selectAll(".selection").style("display",null).attr("x",V[0][0]).attr("y",V[0][1]).attr("width",V[1][0]-V[0][0]).attr("height",V[1][1]-V[0][1]),K.selectAll(".handle").style("display",null).attr("x",function(ot){return ot.type[ot.type.length-1]==="e"?V[1][0]-v/2:V[0][0]-v/2}).attr("y",function(ot){return ot.type[0]==="s"?V[1][1]-v/2:V[0][1]-v/2}).attr("width",function(ot){return ot.type==="n"||ot.type==="s"?V[1][0]-V[0][0]+v:v}).attr("height",function(ot){return ot.type==="e"||ot.type==="w"?V[1][1]-V[0][1]+v:v})):K.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(K,V,ot){var it=K.__brush.emitter;return!it||ot&&it.clean?new F(K,V,ot):it}function F(K,V,ot){this.that=K,this.args=V,this.state=K.__brush,this.active=0,this.clean=ot}function L(){if((!i||pt.touches)&&s.apply(this,arguments)){var K,V,ot,it,dt,Pt,Gt,re,xe,qt,te,ut=this,Ct=pt.target.__data__.type,ce=(p&&pt.metaKey?Ct="overlay":Ct)==="selection"?sy:p&&pt.altKey?Mc:Ac,ee=n===bu?null:cy[Ct],ue=n===Xf?null:uy[Ct],Fe=Qf(ut),Ge=Fe.extent,vn=Fe.selection,Wn=Ge[0][0],tr=Ge[0][1],tn=Ge[1][0],rr=Ge[1][1],Mn=0,En=0,Zn=ee&&ue&&p&&pt.shiftKey,Xi=pt.touches?Gf(pt.changedTouches[0].identifier):ds,vi=Xi(ut),hs=vi,qs=B(ut,arguments,!0).beforestart();Ct==="overlay"?(vn&&(xe=!0),Fe.selection=vn=[[K=n===bu?Wn:vi[0],ot=n===Xf?tr:vi[1]],[dt=n===bu?tn:K,Gt=n===Xf?rr:ot]]):(K=vn[0][0],ot=vn[0][1],dt=vn[1][0],Gt=vn[1][1]),V=K,it=ot,Pt=dt,re=Gt;var Fl=$r(ut).attr("pointer-events","none"),Rf=Fl.selectAll(".overlay").attr("cursor",Wo[Ct]);if(pt.touches)qs.moved=hb,qs.ended=fs;else{var lb=$r(pt.view).on("mousemove.brush",hb,!0).on("mouseup.brush",fs,!0);p&&lb.on("keydown.brush",Q2,!0).on("keyup.brush",uu,!0),Zr(pt.view)}oy(),la(ut),N.call(ut),qs.start()}function hb(){var ri=Xi(ut);!Zn||qt||te||(Math.abs(ri[0]-hs[0])>Math.abs(ri[1]-hs[1])?te=!0:qt=!0),hs=ri,xe=!0,Qd(),Pl()}function Pl(){var ri;switch(Mn=hs[0]-vi[0],En=hs[1]-vi[1],ce){case Wf:case sy:ee&&(Mn=Math.max(Wn-K,Math.min(tn-dt,Mn)),V=K+Mn,Pt=dt+Mn),ue&&(En=Math.max(tr-ot,Math.min(rr-Gt,En)),it=ot+En,re=Gt+En);break;case Ac:ee<0?(Mn=Math.max(Wn-K,Math.min(tn-K,Mn)),V=K+Mn,Pt=dt):ee>0&&(Mn=Math.max(Wn-dt,Math.min(tn-dt,Mn)),V=K,Pt=dt+Mn),ue<0?(En=Math.max(tr-ot,Math.min(rr-ot,En)),it=ot+En,re=Gt):ue>0&&(En=Math.max(tr-Gt,Math.min(rr-Gt,En)),it=ot,re=Gt+En);break;case Mc:ee&&(V=Math.max(Wn,Math.min(tn,K-Mn*ee)),Pt=Math.max(Wn,Math.min(tn,dt+Mn*ee))),ue&&(it=Math.max(tr,Math.min(rr,ot-En*ue)),re=Math.max(tr,Math.min(rr,Gt+En*ue)))}Pt<V&&(ee*=-1,ri=K,K=dt,dt=ri,ri=V,V=Pt,Pt=ri,Ct in Kd&&Rf.attr("cursor",Wo[Ct=Kd[Ct]])),re<it&&(ue*=-1,ri=ot,ot=Gt,Gt=ri,ri=it,it=re,re=ri,Ct in Zf&&Rf.attr("cursor",Wo[Ct=Zf[Ct]])),Fe.selection&&(vn=Fe.selection),qt&&(V=vn[0][0],Pt=vn[1][0]),te&&(it=vn[0][1],re=vn[1][1]),vn[0][0]===V&&vn[0][1]===it&&vn[1][0]===Pt&&vn[1][1]===re||(Fe.selection=[[V,it],[Pt,re]],N.call(ut),qs.brush())}function fs(){if(oy(),pt.touches){if(pt.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Br(pt.view,xe),lb.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Fl.attr("pointer-events","all"),Rf.attr("cursor",Wo.overlay),Fe.selection&&(vn=Fe.selection),Eb(vn)&&(Fe.selection=null,N.call(ut)),qs.end()}function Q2(){switch(pt.keyCode){case 16:Zn=ee&&ue;break;case 18:ce===Ac&&(ee&&(dt=Pt-Mn*ee,K=V+Mn*ee),ue&&(Gt=re-En*ue,ot=it+En*ue),ce=Mc,Pl());break;case 32:ce!==Ac&&ce!==Mc||(ee<0?dt=Pt-Mn:ee>0&&(K=V-Mn),ue<0?Gt=re-En:ue>0&&(ot=it-En),ce=Wf,Rf.attr("cursor",Wo.selection),Pl());break;default:return}Qd()}function uu(){switch(pt.keyCode){case 16:Zn&&(qt=te=Zn=!1,Pl());break;case 18:ce===Mc&&(ee<0?dt=Pt:ee>0&&(K=V),ue<0?Gt=re:ue>0&&(ot=it),ce=Ac,Pl());break;case 32:ce===Wf&&(pt.altKey?(ee&&(dt=Pt-Mn*ee,K=V+Mn*ee),ue&&(Gt=re-En*ue,ot=it+En*ue),ce=Mc):(ee<0?dt=Pt:ee>0&&(K=V),ue<0?Gt=re:ue>0&&(ot=it),ce=Ac),Rf.attr("cursor",Wo[Ct]),Pl());break;default:return}Qd()}}function z(){B(this,arguments).moved()}function U(){B(this,arguments).ended()}function J(){var K=this.__brush||{selection:null};return K.extent=Vf(o.apply(this,arguments)),K.dim=n,K}return T.move=function(K,V){K.selection?K.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var ot=this,it=ot.__brush,dt=B(ot,arguments),Pt=it.selection,Gt=n.input(typeof V=="function"?V.apply(this,arguments):V,it.extent),re=Cc(Pt,Gt);function xe(qt){it.selection=qt===1&&Gt===null?null:re(qt),N.call(ot),dt.brush()}return Pt!==null&&Gt!==null?xe:xe(1)}):K.each(function(){var ot=this,it=arguments,dt=ot.__brush,Pt=n.input(typeof V=="function"?V.apply(ot,it):V,dt.extent),Gt=B(ot,it).beforestart();la(ot),dt.selection=Pt===null?null:Pt,N.call(ot),Gt.start().brush().end()})},T.clear=function(K){T.move(K,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(K){Ui(new Cb(T,K,n.output(this.state.selection)),b.apply,b,[K,this.that,this.args])}},T.extent=function(K){return arguments.length?(o=typeof K=="function"?K:Zd(Vf(K)),T):o},T.filter=function(K){return arguments.length?(s=typeof K=="function"?K:Zd(!!K),T):s},T.touchable=function(K){return arguments.length?(l=typeof K=="function"?K:Zd(!!K),T):l},T.handleSize=function(K){return arguments.length?(v=+K,T):v},T.keyModifiers=function(K){return arguments.length?(p=!!K,T):p},T.on=function(){var K=b.on.apply(b,arguments);return K===b?T:K},T}var hy=Math.cos,fy=Math.sin,Jf=Math.PI,t1=Jf/2,dy=2*Jf,np=Math.max;function _u(n){return function(i,o){return n(i.source.value+i.target.value,o.source.value+o.target.value)}}function rp(){var n=0,i=null,o=null,s=null;function l(p){var b,v,T,N,B,F,L=p.length,z=[],U=bt(L),J=[],K=[],V=K.groups=new Array(L),ot=new Array(L*L);for(b=0,B=-1;++B<L;){for(v=0,F=-1;++F<L;)v+=p[B][F];z.push(v),J.push(bt(L)),b+=v}for(i&&U.sort(function(te,ut){return i(z[te],z[ut])}),o&&J.forEach(function(te,ut){te.sort(function(Ct,ce){return o(p[ut][Ct],p[ut][ce])})}),N=(b=np(0,dy-n*L)/b)?n:dy/L,v=0,B=-1;++B<L;){for(T=v,F=-1;++F<L;){var it=U[B],dt=J[it][F],Pt=p[it][dt],Gt=v,re=v+=Pt*b;ot[dt*L+it]={index:it,subindex:dt,startAngle:Gt,endAngle:re,value:Pt}}V[it]={index:it,startAngle:T,endAngle:v,value:z[it]},v+=N}for(B=-1;++B<L;)for(F=B-1;++F<L;){var xe=ot[F*L+B],qt=ot[B*L+F];(xe.value||qt.value)&&K.push(xe.value<qt.value?{source:qt,target:xe}:{source:xe,target:qt})}return s?K.sort(s):K}return l.padAngle=function(p){return arguments.length?(n=np(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=_u(p))._=p,l):s&&s._},l}var Mb=Array.prototype.slice;function ip(n){return function(){return n}}var e1=Math.PI,n1=2*e1,ys=1e-6,py=n1-ys;function ap(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Xl(){return new ap}ap.prototype=Xl.prototype={constructor:ap,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>ys)if(Math.abs(B*v-T*N)>ys&&l){var L=o-p,z=s-b,U=v*v+T*T,J=L*L+z*z,K=Math.sqrt(U),V=Math.sqrt(F),ot=l*Math.tan((e1-Math.acos((U+F-J)/(2*K*V)))/2),it=ot/V,dt=ot/K;Math.abs(it-1)>ys&&(this._+="L"+(n+it*N)+","+(i+it*B)),this._+="A"+l+","+l+",0,0,"+ +(B*L>N*z)+","+(this._x1=n+dt*v)+","+(this._y1=i+dt*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)>ys||Math.abs(this._y1-N)>ys)&&(this._+="L"+T+","+N),o&&(F<0&&(F=F%n1+n1),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>ys&&(this._+="A"+o+","+o+",0,"+ +(F>=e1)+","+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 ms=Xl;function r1(n){return n.source}function xu(n){return n.target}function gy(n){return n.radius}function yy(n){return n.startAngle}function my(n){return n.endAngle}function op(){var n=r1,i=xu,o=gy,s=yy,l=my,p=null;function b(){var v,T=Mb.call(arguments),N=n.apply(this,T),B=i.apply(this,T),F=+o.apply(this,(T[0]=N,T)),L=s.apply(this,T)-t1,z=l.apply(this,T)-t1,U=F*hy(L),J=F*fy(L),K=+o.apply(this,(T[0]=B,T)),V=s.apply(this,T)-t1,ot=l.apply(this,T)-t1;if(p||(p=v=ms()),p.moveTo(U,J),p.arc(0,0,F,L,z),L===V&&z===ot||(p.quadraticCurveTo(0,0,K*hy(V),K*fy(V)),p.arc(0,0,K,V,ot)),p.quadraticCurveTo(0,0,U,J),p.closePath(),v)return p=null,v+""||null}return b.radius=function(v){return arguments.length?(o=typeof v=="function"?v:ip(+v),b):o},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:ip(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:ip(+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 Wa="$";function Zl(){}function sp(n,i){var o=new Zl;if(n instanceof Zl)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}Zl.prototype=sp.prototype={constructor:Zl,has:function(n){return Wa+n in this},get:function(n){return this[Wa+n]},set:function(n,i){return this[Wa+n]=i,this},remove:function(n){var i=Wa+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===Wa&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===Wa&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===Wa&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===Wa&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===Wa&&++n;return n},empty:function(){for(var n in this)if(n[0]===Wa)return!1;return!0},each:function(n){for(var i in this)i[0]===Wa&&n(this[i],i.slice(1),this)}};const vs=sp;function Nb(){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,L,z,U=-1,J=v.length,K=s[T++],V=vs(),ot=N();++U<J;)(z=V.get(F=K(L=v[U])+""))?z.push(L):V.set(F,[L]);return V.each(function(it,dt){B(ot,dt,p(it,T,N,B))}),ot}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,L){N.push({key:L,values:b(F,T)})})),B!=null?N.sort(function(F,L){return B(F.key,L.key)}):N}return o={object:function(v){return p(v,0,vy,by)},map:function(v){return p(v,0,cp,_y)},entries:function(v){return b(p(v,0,cp,_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 cp(){return vs()}function _y(n,i,o){n.set(i,o)}function Ql(){}var Vs=vs.prototype;function wu(n,i){var o=new Ql;if(n instanceof Ql)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}Ql.prototype=wu.prototype={constructor:Ql,has:Vs.has,add:function(n){return this[Wa+(n+="")]=n,this},remove:Vs.remove,clear:Vs.clear,values:Vs.keys,size:Vs.size,empty:Vs.empty,each:Vs.each};const Gs=wu;function Kl(n){var i=[];for(var o in n)i.push(o);return i}function up(n){var i=[];for(var o in n)i.push(n[o]);return i}function lp(n){var i=[];for(var o in n)i.push({key:o,value:n[o]});return i}var i1=Math.PI/180,a1=180/Math.PI,o1=.96422,Ci=.82521,s1=4/29,hp=6/29,xy=3*hp*hp;function ku(n){if(n instanceof _o)return new _o(n.l,n.a,n.b,n.opacity);if(n instanceof Vo)return pp(n);n instanceof Qr||(n=wc(n));var i,o,s=bs(n.r),l=bs(n.g),p=bs(n.b),b=c1((.2225045*s+.7168786*l+.0606169*p)/1);return s===l&&l===p?i=o=b:(i=c1((.4360747*s+.3850649*l+.1430804*p)/o1),o=c1((.0139322*s+.0971045*l+.7141733*p)/Ci)),new _o(116*b-16,500*(i-b),200*(b-o),n.opacity)}function Db(n,i){return new _o(n,0,0,i==null?1:i)}function Jl(n,i,o,s){return arguments.length===1?ku(n):new _o(n,i,o,s==null?1:s)}function _o(n,i,o,s){this.l=+n,this.a=+i,this.b=+o,this.opacity=+s}function c1(n){return n>.008856451679035631?Math.pow(n,1/3):n/xy+s1}function fp(n){return n>hp?n*n*n:xy*(n-s1)}function Tu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function bs(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function u1(n){if(n instanceof Vo)return new Vo(n.h,n.c,n.l,n.opacity);if(n instanceof _o||(n=ku(n)),n.a===0&&n.b===0)return new Vo(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*a1;return new Vo(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function dp(n,i,o,s){return arguments.length===1?u1(n):new Vo(o,i,n,s==null?1:s)}function Xs(n,i,o,s){return arguments.length===1?u1(n):new Vo(n,i,o,s==null?1:s)}function Vo(n,i,o,s){this.h=+n,this.c=+i,this.l=+o,this.opacity=+s}function pp(n){if(isNaN(n.h))return new _o(n.l,0,0,n.opacity);var i=n.h*i1;return new _o(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}Kr(_o,Jl,Li(mr,{brighter:function(n){return new _o(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new _o(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 Qr(Tu(3.1338561*(i=o1*fp(i))-1.6168667*(n=1*fp(n))-.4906146*(o=Ci*fp(o))),Tu(-.9787684*i+1.9161415*n+.033454*o),Tu(.0719453*i-.2289914*n+1.4052427*o),this.opacity)}})),Kr(Vo,Xs,Li(mr,{brighter:function(n){return new Vo(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new Vo(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return pp(this).rgb()}}));var gp=-.14861,_s=1.78277,yp=-.29227,th=-.90649,xo=1.97294,wy=xo*th,l1=xo*_s,Cu=_s*yp-th*gp;function ky(n){if(n instanceof Nc)return new Nc(n.h,n.s,n.l,n.opacity);n instanceof Qr||(n=wc(n));var i=n.r/255,o=n.g/255,s=n.b/255,l=(Cu*s+wy*i-l1*o)/(Cu+wy-l1),p=s-l,b=(xo*(o-l)-yp*p)/th,v=Math.sqrt(b*b+p*p)/(xo*l*(1-l)),T=v?Math.atan2(b,p)*a1-120:NaN;return new Nc(T<0?T+360:T,v,l,n.opacity)}function ha(n,i,o,s){return arguments.length===1?ky(n):new Nc(n,i,o,s==null?1:s)}function Nc(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}Kr(Nc,ha,Li(mr,{brighter:function(n){return n=n==null?Bi:Math.pow(Bi,n),new Nc(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Hi:Math.pow(Hi,n),new Nc(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*i1,i=+this.l,o=isNaN(this.s)?0:this.s*i*(1-i),s=Math.cos(n),l=Math.sin(n);return new Qr(255*(i+o*(gp*s+_s*l)),255*(i+o*(yp*s+th*l)),255*(i+o*(xo*s)),this.opacity)}}));var Ty=Array.prototype.slice;function Lb(n,i){return n-i}function Go(n){return function(){return n}}function mp(n,i){for(var o,s=-1,l=i.length;++s<l;)if(o=eh(n,i[s]))return o;return 0}function eh(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],L=F[0],z=F[1];if(nh(T,F,i))return 0;B>s!=z>s&&o<(L-N)*(s-B)/(z-B)+N&&(l=-l)}return l}function nh(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 Cy(){}var Xo=[[],[[[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 Ei(){var n=1,i=1,o=q,s=v;function l(T){var N=o(T);if(Array.isArray(N))N=N.slice().sort(Lb);else{var B=Q(T),F=B[0],L=B[1];N=lt(F,L,N),N=bt(Math.floor(F/N)*N,Math.floor(L/N)*N,N)}return N.map(function(z){return p(T,z)})}function p(T,N){var B=[],F=[];return function(L,z,U){var J,K,V,ot,it,dt,Pt=new Array,Gt=new Array;for(J=K=-1,ot=L[0]>=z,Xo[ot<<1].forEach(re);++J<n-1;)V=ot,ot=L[J+1]>=z,Xo[V|ot<<1].forEach(re);for(Xo[ot<<0].forEach(re);++K<i-1;){for(J=-1,ot=L[K*n+n]>=z,it=L[K*n]>=z,Xo[ot<<1|it<<2].forEach(re);++J<n-1;)V=ot,ot=L[K*n+n+J+1]>=z,dt=it,it=L[K*n+J+1]>=z,Xo[V|ot<<1|it<<2|dt<<3].forEach(re);Xo[ot|it<<3].forEach(re)}for(J=-1,it=L[K*n]>=z,Xo[it<<2].forEach(re);++J<n-1;)dt=it,it=L[K*n+J+1]>=z,Xo[it<<2|dt<<3].forEach(re);function re(xe){var qt,te,ut=[xe[0][0]+J,xe[0][1]+K],Ct=[xe[1][0]+J,xe[1][1]+K],ce=b(ut),ee=b(Ct);(qt=Gt[ce])?(te=Pt[ee])?(delete Gt[qt.end],delete Pt[te.start],qt===te?(qt.ring.push(Ct),U(qt.ring)):Pt[qt.start]=Gt[te.end]={start:qt.start,end:te.end,ring:qt.ring.concat(te.ring)}):(delete Gt[qt.end],qt.ring.push(Ct),Gt[qt.end=ee]=qt):(qt=Pt[ee])?(te=Gt[ce])?(delete Pt[qt.start],delete Gt[te.end],qt===te?(qt.ring.push(Ct),U(qt.ring)):Pt[te.start]=Gt[qt.end]={start:te.start,end:qt.end,ring:te.ring.concat(qt.ring)}):(delete Pt[qt.start],qt.ring.unshift(ut),Pt[qt.start=ce]=qt):Pt[ce]=Gt[ee]={start:ce,end:ee,ring:[ut,Ct]}}Xo[it<<3].forEach(re)}(T,N,function(L){s(L,T,N),function(z){for(var U=0,J=z.length,K=z[J-1][1]*z[0][0]-z[J-1][0]*z[0][1];++U<J;)K+=z[U-1][1]*z[U][0]-z[U-1][0]*z[U][1];return K}(L)>0?B.push([L]):F.push(L)}),F.forEach(function(L){for(var z,U=0,J=B.length;U<J;++U)if(mp((z=B[U])[0],L)!==-1)return void z.push(L)}),{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 L,z=F[0],U=F[1],J=0|z,K=0|U,V=N[K*n+J];z>0&&z<n&&J===z&&(L=N[K*n+J-1],F[0]=z+(B-L)/(V-L)-.5),U>0&&U<i&&K===U&&(L=N[(K-1)*n+J],F[1]=U+(B-L)/(V-L)-.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)?Go(Ty.call(T)):Go(T),l):o},l.smooth=function(T){return arguments.length?(s=T?v:Cy,l):s===v},l}function vp(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 bp(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 vr(n){return n[0]}function Bb(n){return n[1]}function rh(){return 1}function ih(){var n=vr,i=Bb,o=rh,s=960,l=500,p=20,b=2,v=3*p,T=s+2*v>>b,N=l+2*v>>b,B=Go(20);function F(V){var ot=new Float32Array(T*N),it=new Float32Array(T*N);V.forEach(function(Gt,re,xe){var qt=+n(Gt,re,xe)+v>>b,te=+i(Gt,re,xe)+v>>b,ut=+o(Gt,re,xe);qt>=0&&qt<T&&te>=0&&te<N&&(ot[qt+te*T]+=ut)}),vp({width:T,height:N,data:ot},{width:T,height:N,data:it},p>>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b),vp({width:T,height:N,data:ot},{width:T,height:N,data:it},p>>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b),vp({width:T,height:N,data:ot},{width:T,height:N,data:it},p>>b),bp({width:T,height:N,data:it},{width:T,height:N,data:ot},p>>b);var dt=B(ot);if(!Array.isArray(dt)){var Pt=jt(ot);dt=lt(0,Pt,dt),(dt=bt(0,Math.floor(Pt/dt)*dt,dt)).shift()}return Ei().thresholds(dt).size([T,N])(ot).map(L)}function L(V){return V.value*=Math.pow(2,-2*b),V.coordinates.forEach(z),V}function z(V){V.forEach(U)}function U(V){V.forEach(J)}function J(V){V[0]=V[0]*Math.pow(2,b)-v,V[1]=V[1]*Math.pow(2,b)-v}function K(){return T=s+2*(v=3*p)>>b,N=l+2*v>>b,F}return F.x=function(V){return arguments.length?(n=typeof V=="function"?V:Go(+V),F):n},F.y=function(V){return arguments.length?(i=typeof V=="function"?V:Go(+V),F):i},F.weight=function(V){return arguments.length?(o=typeof V=="function"?V:Go(+V),F):o},F.size=function(V){if(!arguments.length)return[s,l];var ot=Math.ceil(V[0]),it=Math.ceil(V[1]);if(!(ot>=0||ot>=0))throw new Error("invalid size");return s=ot,l=it,K()},F.cellSize=function(V){if(!arguments.length)return 1<<b;if(!((V=+V)>=1))throw new Error("invalid cell size");return b=Math.floor(Math.log(V)/Math.LN2),K()},F.thresholds=function(V){return arguments.length?(B=typeof V=="function"?V:Array.isArray(V)?Go(Ty.call(V)):Go(V),F):B},F.bandwidth=function(V){if(!arguments.length)return Math.sqrt(p*(p+1));if(!((V=+V)>=0))throw new Error("invalid bandwidth");return p=Math.round((Math.sqrt(4*V*V+1)-1)/2),K()},F}function h1(n){return function(){return n}}function _p(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 Ob(){return!pt.ctrlKey&&!pt.button}function Ib(){return this.parentNode}function Rb(n){return n==null?{x:pt.x,y:pt.y}:n}function Ey(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sy(){var n,i,o,s,l=Ob,p=Ib,b=Rb,v=Ey,T={},N=un("start","drag","end"),B=0,F=0;function L(dt){dt.on("mousedown.drag",z).filter(v).on("touchstart.drag",K).on("touchmove.drag",V).on("touchend.drag touchcancel.drag",ot).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!s&&l.apply(this,arguments)){var dt=it("mouse",p.apply(this,arguments),ds,this,arguments);dt&&($r(pt.view).on("mousemove.drag",U,!0).on("mouseup.drag",J,!0),Zr(pt.view),ar(),o=!1,n=pt.clientX,i=pt.clientY,dt("start"))}}function U(){if(di(),!o){var dt=pt.clientX-n,Pt=pt.clientY-i;o=dt*dt+Pt*Pt>F}T.mouse("drag")}function J(){$r(pt.view).on("mousemove.drag mouseup.drag",null),Br(pt.view,o),di(),T.mouse("end")}function K(){if(l.apply(this,arguments)){var dt,Pt,Gt=pt.changedTouches,re=p.apply(this,arguments),xe=Gt.length;for(dt=0;dt<xe;++dt)(Pt=it(Gt[dt].identifier,re,ua,this,arguments))&&(ar(),Pt("start"))}}function V(){var dt,Pt,Gt=pt.changedTouches,re=Gt.length;for(dt=0;dt<re;++dt)(Pt=T[Gt[dt].identifier])&&(di(),Pt("drag"))}function ot(){var dt,Pt,Gt=pt.changedTouches,re=Gt.length;for(s&&clearTimeout(s),s=setTimeout(function(){s=null},500),dt=0;dt<re;++dt)(Pt=T[Gt[dt].identifier])&&(ar(),Pt("end"))}function it(dt,Pt,Gt,re,xe){var qt,te,ut,Ct=Gt(Pt,dt),ce=N.copy();if(Ui(new _p(L,"beforestart",qt,dt,B,Ct[0],Ct[1],0,0,ce),function(){return(pt.subject=qt=b.apply(re,xe))!=null&&(te=qt.x-Ct[0]||0,ut=qt.y-Ct[1]||0,!0)}))return function ee(ue){var Fe,Ge=Ct;switch(ue){case"start":T[dt]=ee,Fe=B++;break;case"end":delete T[dt],--B;case"drag":Ct=Gt(Pt,dt),Fe=B}Ui(new _p(L,ue,qt,dt,Fe,Ct[0]+te,Ct[1]+ut,Ct[0]-Ge[0],Ct[1]-Ge[1],ce),ce.apply,ce,[ue,re,xe])}}return L.filter=function(dt){return arguments.length?(l=typeof dt=="function"?dt:h1(!!dt),L):l},L.container=function(dt){return arguments.length?(p=typeof dt=="function"?dt:h1(dt),L):p},L.subject=function(dt){return arguments.length?(b=typeof dt=="function"?dt:h1(dt),L):b},L.touchable=function(dt){return arguments.length?(v=typeof dt=="function"?dt:h1(!!dt),L):v},L.on=function(){var dt=N.on.apply(N,arguments);return dt===N?L:dt},L.clickDistance=function(dt){return arguments.length?(F=(dt=+dt)*dt,L):Math.sqrt(F)},L}_p.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Ay={},xp={};function My(n){return new Function("d","return {"+n.map(function(i,o){return JSON.stringify(i)+": d["+o+'] || ""'}).join(",")+"}")}function wp(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 Da(n,i){var o=n+"",s=o.length;return s<i?new Array(i-s+1).join(0)+o:o}function ah(n){var i=new RegExp('["'+n+`
|
|
\r]`),o=n.charCodeAt(0);function s(v,T){var N,B=[],F=v.length,L=0,z=0,U=F<=0,J=!1;function K(){if(U)return xp;if(J)return J=!1,Ay;var ot,it,dt=L;if(v.charCodeAt(dt)===34){for(;L++<F&&v.charCodeAt(L)!==34||v.charCodeAt(++L)===34;);return(ot=L)>=F?U=!0:(it=v.charCodeAt(L++))===10?J=!0:it===13&&(J=!0,v.charCodeAt(L)===10&&++L),v.slice(dt+1,ot-1).replace(/""/g,'"')}for(;L<F;){if((it=v.charCodeAt(ot=L++))===10)J=!0;else if(it===13)J=!0,v.charCodeAt(L)===10&&++L;else if(it!==o)continue;return v.slice(dt,ot)}return U=!0,v.slice(dt,F)}for(v.charCodeAt(F-1)===10&&--F,v.charCodeAt(F-1)===13&&--F;(N=K())!==xp;){for(var V=[];N!==Ay&&N!==xp;)V.push(N),N=K();T&&(V=T(V,z++))==null||B.push(V)}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(),L=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":function(z){return z<0?"-"+Da(-z,6):z>9999?"+"+Da(z,6):Da(z,4)}(T.getUTCFullYear())+"-"+Da(T.getUTCMonth()+1,2)+"-"+Da(T.getUTCDate(),2)+(L?"T"+Da(N,2)+":"+Da(B,2)+":"+Da(F,2)+"."+Da(L,3)+"Z":F?"T"+Da(N,2)+":"+Da(B,2)+":"+Da(F,2)+"Z":B||N?"T"+Da(N,2)+":"+Da(B,2)+"Z":"")}(v):i.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:function(v,T){var N,B,F=s(v,function(L,z){if(N)return N(L,z-1);B=L,N=T?function(U,J){var K=My(U);return function(V,ot){return J(K(V),ot,U)}}(L,T):My(L)});return F.columns=B||[],F},parseRows:s,format:function(v,T){return T==null&&(T=wp(v)),[T.map(b).join(n)].concat(l(v,T)).join(`
|
|
`)},formatBody:function(v,T){return T==null&&(T=wp(v)),l(v,T).join(`
|
|
`)},formatRows:function(v){return v.map(p).join(`
|
|
`)},formatRow:p,formatValue:b}}var Dc=ah(","),Ny=Dc.parse,Fb=Dc.parseRows,Pb=Dc.format,jb=Dc.formatBody,Yb=Dc.formatRows,zb=Dc.formatRow,Dy=Dc.formatValue,Lc=ah(" "),Ly=Lc.parse,Ub=Lc.parseRows,By=Lc.format,qb=Lc.formatBody,Hb=Lc.formatRows,$b=Lc.formatRow,Wb=Lc.formatValue;function Vb(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;Gb&&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 Gb=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Oy(n){return+n}function Xb(n){return n*n}function Zb(n){return n*(2-n)}function Iy(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Qb=function n(i){function o(s){return Math.pow(s,i)}return i=+i,o.exponent=n,o}(3),Kb=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 Jb(n){return Math.sin(n*Py)}function Yy(n){return(1-Math.cos(Fy*n))/2}function Zs(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function zy(n){return Zs(1-+n)}function t4(n){return 1-Zs(n)}function Uy(n){return((n*=2)<=1?Zs(1-n):2-Zs(n-1))/2}function e4(n){return 1-Math.sqrt(1-n*n)}function n4(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 f1=7.5625;function Hy(n){return 1-oh(1-n)}function oh(n){return(n=+n)<.36363636363636365?f1*n*n:n<.7272727272727273?f1*(n-=.5454545454545454)*n+.75:n<.9090909090909091?f1*(n-=.8181818181818182)*n+.9375:f1*(n-=.9545454545454546)*n+.984375}function r4(n){return((n*=2)<=1?1-oh(1-n):oh(n-1)+1)/2}var kp=1.70158,i4=function n(i){function o(s){return(s=+s)*s*(i*(s-1)+s)}return i=+i,o.overshoot=n,o}(kp),a4=function n(i){function o(s){return--s*s*((s+1)*i+s)+1}return i=+i,o.overshoot=n,o}(kp),$y=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}(kp),Eu=2*Math.PI,o4=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return i*Zs(- --p)*Math.sin((s-p)/o)}return l.amplitude=function(p){return n(p,o*Eu)},l.period=function(p){return n(i,p)},l}(1,.3),Tp=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return 1-i*Zs(p=+p)*Math.sin((p+s)/o)}return l.amplitude=function(p){return n(p,o*Eu)},l.period=function(p){return n(i,p)},l}(1,.3),Wy=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Eu);function l(p){return((p=2*p-1)<0?i*Zs(-p)*Math.sin((s-p)/o):2-i*Zs(p)*Math.sin((s+p)/o))/2}return l.amplitude=function(p){return n(p,o*Eu)},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 s4(n,i){return fetch(n,i).then(Vy)}function c4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function Gy(n,i){return fetch(n,i).then(c4)}function u4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Su(n,i){return fetch(n,i).then(u4)}function Cp(n){return function(i,o,s){return arguments.length===2&&typeof o=="function"&&(s=o,o=void 0),Su(i,o).then(function(l){return n(l,s)})}}function l4(n,i,o,s){arguments.length===3&&typeof o=="function"&&(s=o,o=void 0);var l=ah(n);return Su(i,o).then(function(p){return l.parse(p,s)})}var Xy=Cp(Ny),Zy=Cp(Ly);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 h4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function f4(n,i){return fetch(n,i).then(h4)}function Ep(n){return function(i,o){return Su(i,o).then(function(s){return new DOMParser().parseFromString(s,n)})}}const d4=Ep("application/xml");var Ky=Ep("text/html"),d1=Ep("image/svg+xml");function p4(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 Si(n){return function(){return n}}function Qs(){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,L,z=n._root,U={data:s},J=n._x0,K=n._y0,V=n._x1,ot=n._y1;if(!z)return n._root=U,n;for(;z.length;)if((N=i>=(p=(J+V)/2))?J=p:V=p,(B=o>=(b=(K+ot)/2))?K=b:ot=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=(J+V)/2))?J=p:V=p,(B=o>=(b=(K+ot)/2))?K=b:ot=b;while((F=B<<1|N)==(L=(T>=b)<<1|v>=p));return l[L]=z,l[F]=U,n}function fa(n,i,o,s,l){this.node=n,this.x0=i,this.y0=o,this.x1=s,this.y1=l}function g4(n){return n[0]}function Sp(n){return n[1]}function sh(n,i,o){var s=new Au(i==null?g4:i,o==null?Sp:o,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function Au(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 da=sh.prototype=Au.prototype;function y4(n){return n.x+n.vx}function m4(n){return n.y+n.vy}function v4(n){var i,o,s=1,l=1;function p(){for(var T,N,B,F,L,z,U,J=i.length,K=0;K<l;++K)for(N=sh(i,y4,m4).visitAfter(b),T=0;T<J;++T)B=i[T],z=o[B.index],U=z*z,F=B.x+B.vx,L=B.y+B.vy,N.visit(V);function V(ot,it,dt,Pt,Gt){var re=ot.data,xe=ot.r,qt=z+xe;if(!re)return it>F+qt||Pt<F-qt||dt>L+qt||Gt<L-qt;if(re.index>B.index){var te=F-re.x-re.vx,ut=L-re.y-re.vy,Ct=te*te+ut*ut;Ct<qt*qt&&(te===0&&(Ct+=(te=Qs())*te),ut===0&&(Ct+=(ut=Qs())*ut),Ct=(qt-(Ct=Math.sqrt(Ct)))/Ct*s,B.vx+=(te*=Ct)*(qt=(xe*=xe)/(U+xe)),B.vy+=(ut*=Ct)*qt,re.vx-=te*(qt=1-qt),re.vy-=ut*qt)}}}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=Si(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:Si(+T),v(),p):n},p}function b4(n){return n.index}function Ap(n,i){var o=n.get(i);if(!o)throw new Error("missing: "+i);return o}function _4(n){var i,o,s,l,p,b=b4,v=function(U){return 1/Math.min(l[U.source.index],l[U.target.index])},T=Si(30),N=1;function B(U){for(var J=0,K=n.length;J<N;++J)for(var V,ot,it,dt,Pt,Gt,re,xe=0;xe<K;++xe)ot=(V=n[xe]).source,dt=(it=V.target).x+it.vx-ot.x-ot.vx||Qs(),Pt=it.y+it.vy-ot.y-ot.vy||Qs(),dt*=Gt=((Gt=Math.sqrt(dt*dt+Pt*Pt))-o[xe])/Gt*U*i[xe],Pt*=Gt,it.vx-=dt*(re=p[xe]),it.vy-=Pt*re,ot.vx+=dt*(re=1-re),ot.vy+=Pt*re}function F(){if(s){var U,J,K=s.length,V=n.length,ot=vs(s,b);for(U=0,l=new Array(K);U<V;++U)(J=n[U]).index=U,typeof J.source!="object"&&(J.source=Ap(ot,J.source)),typeof J.target!="object"&&(J.target=Ap(ot,J.target)),l[J.source.index]=(l[J.source.index]||0)+1,l[J.target.index]=(l[J.target.index]||0)+1;for(U=0,p=new Array(V);U<V;++U)J=n[U],p[U]=l[J.source.index]/(l[J.source.index]+l[J.target.index]);i=new Array(V),L(),o=new Array(V),z()}}function L(){if(s)for(var U=0,J=n.length;U<J;++U)i[U]=+v(n[U],U,n)}function z(){if(s)for(var U=0,J=n.length;U<J;++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:Si(+U),L(),B):v},B.distance=function(U){return arguments.length?(T=typeof U=="function"?U:Si(+U),z(),B):T},B}function x4(n){return n.x}function w4(n){return n.y}da.copy=function(){var n,i,o=new Au(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},da.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)},da.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},da.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},da.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},da.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]]},da.find=function(n,i,o){var s,l,p,b,v,T,N,B=this._x0,F=this._y0,L=this._x1,z=this._y1,U=[],J=this._root;for(J&&U.push(new fa(J,B,F,L,z)),o==null?o=1/0:(B=n-o,F=i-o,L=n+o,z=i+o,o*=o);T=U.pop();)if(!(!(J=T.node)||(l=T.x0)>L||(p=T.y0)>z||(b=T.x1)<B||(v=T.y1)<F))if(J.length){var K=(l+b)/2,V=(p+v)/2;U.push(new fa(J[3],K,V,b,v),new fa(J[2],l,V,K,v),new fa(J[1],K,p,b,V),new fa(J[0],l,p,K,V)),(N=(i>=V)<<1|n>=K)&&(T=U[U.length-1],U[U.length-1]=U[U.length-1-N],U[U.length-1-N]=T)}else{var ot=n-+this._x.call(null,J.data),it=i-+this._y.call(null,J.data),dt=ot*ot+it*it;if(dt<o){var Pt=Math.sqrt(o=dt);B=n-Pt,F=i-Pt,L=n+Pt,z=i+Pt,s=J.data}}return s},da.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,L,z=this._root,U=this._x0,J=this._y0,K=this._x1,V=this._y1;if(!z)return this;if(z.length)for(;;){if((N=p>=(v=(U+K)/2))?U=v:K=v,(B=b>=(T=(J+V)/2))?J=T:V=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,L=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[L]=z:this._root=z),this):(this._root=l,this)},da.removeAll=function(n){for(var i=0,o=n.length;i<o;++i)this.remove(n[i]);return this},da.root=function(){return this._root},da.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},da.visit=function(n){var i,o,s,l,p,b,v=[],T=this._root;for(T&&v.push(new fa(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 fa(o,N,B,p,b)),(o=T[2])&&v.push(new fa(o,s,B,N,b)),(o=T[1])&&v.push(new fa(o,N,l,p,B)),(o=T[0])&&v.push(new fa(o,s,l,N,B))}return this},da.visitAfter=function(n){var i,o=[],s=[];for(this._root&&o.push(new fa(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 fa(p,b,v,B,F)),(p=l[1])&&o.push(new fa(p,B,v,T,F)),(p=l[2])&&o.push(new fa(p,b,F,B,N)),(p=l[3])&&o.push(new fa(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},da.x=function(n){return arguments.length?(this._x=n,this):this._x},da.y=function(n){return arguments.length?(this._y=n,this):this._y};var Mu=Math.PI*(3-Math.sqrt(5));function k4(n){var i,o=1,s=.001,l=1-Math.pow(s,1/300),p=0,b=.6,v=vs(),T=ye(B),N=un("tick","end");function B(){F(),N.call("tick",i),o<s&&(T.stop(),N.call("end",i))}function F(U){var J,K,V=n.length;U===void 0&&(U=1);for(var ot=0;ot<U;++ot)for(o+=(p-o)*l,v.each(function(it){it(o)}),J=0;J<V;++J)(K=n[J]).fx==null?K.x+=K.vx*=b:(K.x=K.fx,K.vx=0),K.fy==null?K.y+=K.vy*=b:(K.y=K.fy,K.vy=0);return i}function L(){for(var U,J=0,K=n.length;J<K;++J){if((U=n[J]).index=J,U.fx!=null&&(U.x=U.fx),U.fy!=null&&(U.y=U.fy),isNaN(U.x)||isNaN(U.y)){var V=10*Math.sqrt(J),ot=J*Mu;U.x=V*Math.cos(ot),U.y=V*Math.sin(ot)}(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=[]),L(),i={tick:F,restart:function(){return T.restart(B),i},stop:function(){return T.stop(),i},nodes:function(U){return arguments.length?(n=U,L(),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,J){return arguments.length>1?(J==null?v.remove(U):v.set(U,z(J)),i):v.get(U)},find:function(U,J,K){var V,ot,it,dt,Pt,Gt=0,re=n.length;for(K==null?K=1/0:K*=K,Gt=0;Gt<re;++Gt)(it=(V=U-(dt=n[Gt]).x)*V+(ot=J-dt.y)*ot)<K&&(Pt=dt,K=it);return Pt},on:function(U,J){return arguments.length>1?(N.on(U,J),i):N.on(U)}}}function T4(){var n,i,o,s,l=Si(-30),p=1,b=1/0,v=.81;function T(L){var z,U=n.length,J=sh(n,x4,w4).visitAfter(B);for(o=L,z=0;z<U;++z)i=n[z],J.visit(F)}function N(){if(n){var L,z,U=n.length;for(s=new Array(U),L=0;L<U;++L)z=n[L],s[z.index]=+l(z,L,n)}}function B(L){var z,U,J,K,V,ot=0,it=0;if(L.length){for(J=K=V=0;V<4;++V)(z=L[V])&&(U=Math.abs(z.value))&&(ot+=z.value,it+=U,J+=U*z.x,K+=U*z.y);L.x=J/it,L.y=K/it}else{(z=L).x=z.data.x,z.y=z.data.y;do ot+=s[z.data.index];while(z=z.next)}L.value=ot}function F(L,z,U,J){if(!L.value)return!0;var K=L.x-i.x,V=L.y-i.y,ot=J-z,it=K*K+V*V;if(ot*ot/v<it)return it<b&&(K===0&&(it+=(K=Qs())*K),V===0&&(it+=(V=Qs())*V),it<p&&(it=Math.sqrt(p*it)),i.vx+=K*L.value*o/it,i.vy+=V*L.value*o/it),!0;if(!(L.length||it>=b)){(L.data!==i||L.next)&&(K===0&&(it+=(K=Qs())*K),V===0&&(it+=(V=Qs())*V),it<p&&(it=Math.sqrt(p*it)));do L.data!==i&&(ot=s[L.data.index]*o/it,i.vx+=K*ot,i.vy+=V*ot);while(L=L.next)}}return T.initialize=function(L){n=L,N()},T.strength=function(L){return arguments.length?(l=typeof L=="function"?L:Si(+L),N(),T):l},T.distanceMin=function(L){return arguments.length?(p=L*L,T):Math.sqrt(p)},T.distanceMax=function(L){return arguments.length?(b=L*L,T):Math.sqrt(b)},T.theta=function(L){return arguments.length?(v=L*L,T):Math.sqrt(v)},T}function C4(n,i,o){var s,l,p,b=Si(.1);function v(N){for(var B=0,F=s.length;B<F;++B){var L=s[B],z=L.x-i||1e-6,U=L.y-o||1e-6,J=Math.sqrt(z*z+U*U),K=(p[B]-J)*l[B]*N/J;L.vx+=z*K,L.vy+=U*K}}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=Si(+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:Si(+N),T(),v):b},v.radius=function(N){return arguments.length?(n=typeof N=="function"?N:Si(+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=Si(.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=Si(n==null?0:+n)),p.initialize=function(v){i=v,b()},p.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Si(+v),b(),p):l},p.x=function(v){return arguments.length?(n=typeof v=="function"?v:Si(+v),b(),p):n},p}function Mp(n){var i,o,s,l=Si(.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=Si(n==null?0:+n)),p.initialize=function(v){i=v,b()},p.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Si(+v),b(),p):l},p.y=function(v){return arguments.length?(n=typeof v=="function"?v:Si(+v),b(),p):n},p}function ch(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 Bc(n){return(n=ch(Math.abs(n)))?n[1]:NaN}var Np,E4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uh(n){if(!(i=E4.exec(n)))throw new Error("invalid format: "+n);var i;return new p1({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 p1(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=ch(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")}uh.prototype=p1.prototype,p1.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=ch(n,i);if(!o)return n+"";var s=o[0],l=o[1],p=l-(Np=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")+ch(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 g1,y1,Dp,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(L,z){for(var U=L.length,J=[],K=0,V=i[0],ot=0;U>0&&V>0&&(ot+V+1>z&&(V=Math.max(1,z-ot)),J.push(L.substring(U-=V,U+V)),!((ot+=V+1)>z));)V=i[K=(K+1)%i.length];return J.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(L){return function(z){return z.replace(/[0-9]/g,function(U){return L[+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(L){var z=(L=uh(L)).fill,U=L.align,J=L.sign,K=L.symbol,V=L.zero,ot=L.width,it=L.comma,dt=L.precision,Pt=L.trim,Gt=L.type;Gt==="n"?(it=!0,Gt="g"):rm[Gt]||(dt===void 0&&(dt=12),Pt=!0,Gt="g"),(V||z==="0"&&U==="=")&&(V=!0,z="0",U="=");var re=K==="$"?l:K==="#"&&/[boxX]/.test(Gt)?"0"+Gt.toLowerCase():"",xe=K==="$"?p:/[%p]/.test(Gt)?T:"",qt=rm[Gt],te=/[defgprs%]/.test(Gt);function ut(Ct){var ce,ee,ue,Fe=re,Ge=xe;if(Gt==="c")Ge=qt(Ct)+Ge,Ct="";else{var vn=(Ct=+Ct)<0||1/Ct<0;if(Ct=isNaN(Ct)?B:qt(Math.abs(Ct),dt),Pt&&(Ct=function(tn){t:for(var rr,Mn=tn.length,En=1,Zn=-1;En<Mn;++En)switch(tn[En]){case".":Zn=rr=En;break;case"0":Zn===0&&(Zn=En),rr=En;break;default:if(!+tn[En])break t;Zn>0&&(Zn=0)}return Zn>0?tn.slice(0,Zn)+tn.slice(rr+1):tn}(Ct)),vn&&+Ct==0&&J!=="+"&&(vn=!1),Fe=(vn?J==="("?J:N:J==="-"||J==="("?"":J)+Fe,Ge=(Gt==="s"?om[8+Np/3]:"")+Ge+(vn&&J==="("?")":""),te){for(ce=-1,ee=Ct.length;++ce<ee;)if(48>(ue=Ct.charCodeAt(ce))||ue>57){Ge=(ue===46?b+Ct.slice(ce+1):Ct.slice(ce))+Ge,Ct=Ct.slice(0,ce);break}}}it&&!V&&(Ct=s(Ct,1/0));var Wn=Fe.length+Ct.length+Ge.length,tr=Wn<ot?new Array(ot-Wn+1).join(z):"";switch(it&&V&&(Ct=s(tr+Ct,tr.length?ot-Ge.length:1/0),tr=""),U){case"<":Ct=Fe+Ct+Ge+tr;break;case"=":Ct=Fe+tr+Ct+Ge;break;case"^":Ct=tr.slice(0,Wn=tr.length>>1)+Fe+Ct+Ge+tr.slice(Wn);break;default:Ct=tr+Fe+Ct+Ge}return v(Ct)}return dt=dt===void 0?6:/[gprs]/.test(Gt)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),ut.toString=function(){return L+""},ut}return{format:F,formatPrefix:function(L,z){var U=F(((L=uh(L)).type="f",L)),J=3*Math.max(-8,Math.min(8,Math.floor(Bc(z)/3))),K=Math.pow(10,-J),V=om[8+J/3];return function(ot){return U(K*ot)+V}}}}function cm(n){return g1=sm(n),y1=g1.format,Dp=g1.formatPrefix,g1}function Lp(n){return Math.max(0,-Bc(Math.abs(n)))}function um(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Bc(i)/3)))-Bc(Math.abs(n)))}function lm(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,Bc(i)-Bc(n))+1}function Ks(){return new m1}function m1(){this.reset()}cm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),m1.prototype={constructor:m1,reset:function(){this.s=this.t=0},add:function(n){hm(v1,n,this.t),hm(this,v1.s,this.s),this.s?this.t+=v1.t:this.s=v1.t},valueOf:function(){return this.s}};var v1=new m1;function hm(n,i,o){var s=n.s=i+o,l=s-i,p=s-l;n.t=i-p+(o-l)}var Pn=1e-6,lh=1e-12,er=Math.PI,si=er/2,Nu=er/4,Nr=2*er,Or=180/er,_n=er/180,Ne=Math.abs,Js=Math.atan,Wi=Math.atan2,fn=Math.cos,Zo=Math.ceil,fm=Math.exp,Du=Math.log,b1=Math.pow,sn=Math.sin,br=Math.sign||function(n){return n>0?1:n<0?-1:0},yi=Math.sqrt,Fi=Math.tan;function tc(n){return n>1?0:n<-1?er:Math.acos(n)}function pa(n){return n>1?si:n<-1?-si:Math.asin(n)}function _1(n){return(n=sn(n/2))*n}function _r(){}function xs(n,i){n&&Lu.hasOwnProperty(n.type)&&Lu[n.type](n,i)}var ga={Feature:function(n,i){xs(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)xs(o[s].geometry,i)}},Lu={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){Bu(n.coordinates,i,0)},MultiLineString:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)Bu(o[s],i,0)},Polygon:function(n,i){hh(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)hh(o[s],i)},GeometryCollection:function(n,i){for(var o=n.geometries,s=-1,l=o.length;++s<l;)xs(o[s],i)}};function Bu(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 hh(n,i){var o=-1,s=n.length;for(i.polygonStart();++o<s;)Bu(n[o],i,1);i.polygonEnd()}function wo(n,i){n&&ga.hasOwnProperty(n.type)?ga[n.type](n,i):xs(n,i)}var Bp,dm,Op,Ip,Rp,x1=Ks(),w1=Ks(),Va={point:_r,lineStart:_r,lineEnd:_r,polygonStart:function(){x1.reset(),Va.lineStart=Fp,Va.lineEnd=pm},polygonEnd:function(){var n=+x1;w1.add(n<0?Nr+n:n),this.lineStart=this.lineEnd=this.point=_r},sphere:function(){w1.add(Nr)}};function Fp(){Va.point=gm}function pm(){so(Bp,dm)}function gm(n,i){Va.point=so,Bp=n,dm=i,Op=n*=_n,Ip=fn(i=(i*=_n)/2+Nu),Rp=sn(i)}function so(n,i){var o=(n*=_n)-Op,s=o>=0?1:-1,l=s*o,p=fn(i=(i*=_n)/2+Nu),b=sn(i),v=Rp*b,T=Ip*p+v*fn(l),N=v*s*sn(l);x1.add(Wi(N,T)),Op=n,Ip=p,Rp=b}function S4(n){return w1.reset(),wo(n,Va),2*w1}function k1(n){return[Wi(n[1],n[0]),pa(n[2])]}function ko(n){var i=n[0],o=n[1],s=fn(o);return[s*fn(i),s*sn(i),sn(o)]}function T1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Ou(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 Iu(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function Oc(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function fh(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 jr,ya,ti,La,ec,Pp,jp,nc,To,Qo,Ru,dh,ph,Ic,Fu,Pu,co,gh,C1,ws,Yp,E1,ju,ma,Zi,mi,yh=Ks(),Co={point:Rc,lineStart:zp,lineEnd:Up,polygonStart:function(){Co.point=Yu,Co.lineStart=mm,Co.lineEnd=mh,yh.reset(),Va.polygonStart()},polygonEnd:function(){Va.polygonEnd(),Co.point=Rc,Co.lineStart=zp,Co.lineEnd=Up,x1<0?(jr=-(ti=180),ya=-(La=90)):yh>Pn?La=90:yh<-1e-6&&(ya=-90),Qo[0]=jr,Qo[1]=ti},sphere:function(){jr=-(ti=180),ya=-(La=90)}};function Rc(n,i){To.push(Qo=[jr=n,ti=n]),i<ya&&(ya=i),i>La&&(La=i)}function ym(n,i){var o=ko([n*_n,i*_n]);if(nc){var s=Ou(nc,o),l=Ou([s[1],-s[0],0],s);fh(l),l=k1(l);var p,b=n-ec,v=b>0?1:-1,T=l[0]*Or*v,N=Ne(b)>180;N^(v*ec<T&&T<v*n)?(p=l[1]*Or)>La&&(La=p):N^(v*ec<(T=(T+360)%360-180)&&T<v*n)?(p=-l[1]*Or)<ya&&(ya=p):(i<ya&&(ya=i),i>La&&(La=i)),N?n<ec?va(jr,n)>va(jr,ti)&&(ti=n):va(n,ti)>va(jr,ti)&&(jr=n):ti>=jr?(n<jr&&(jr=n),n>ti&&(ti=n)):n>ec?va(jr,n)>va(jr,ti)&&(ti=n):va(n,ti)>va(jr,ti)&&(jr=n)}else To.push(Qo=[jr=n,ti=n]);i<ya&&(ya=i),i>La&&(La=i),nc=o,ec=n}function zp(){Co.point=ym}function Up(){Qo[0]=jr,Qo[1]=ti,Co.point=Rc,nc=null}function Yu(n,i){if(nc){var o=n-ec;yh.add(Ne(o)>180?o+(o>0?360:-360):o)}else Pp=n,jp=i;Va.point(n,i),ym(n,i)}function mm(){Va.lineStart()}function mh(){Yu(Pp,jp),Va.lineEnd(),Ne(yh)>Pn&&(jr=-(ti=180)),Qo[0]=jr,Qo[1]=ti,nc=null}function va(n,i){return(i-=n)<0?i+360:i}function qp(n,i){return n[0]-i[0]}function zu(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function vh(n){var i,o,s,l,p,b,v;if(La=ti=-(jr=ya=1/0),To=[],wo(n,Co),o=To.length){for(To.sort(qp),i=1,p=[s=To[0]];i<o;++i)zu(s,(l=To[i])[0])||zu(s,l[1])?(va(s[0],l[1])>va(s[0],s[1])&&(s[1]=l[1]),va(l[0],s[1])>va(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=va(s[1],l[0]))>b&&(b=v,jr=l[0],ti=s[1])}return To=Qo=null,jr===1/0||ya===1/0?[[NaN,NaN],[NaN,NaN]]:[[jr,ya],[ti,La]]}var Ga={sphere:_r,point:S1,lineStart:vm,lineEnd:bm,polygonStart:function(){Ga.lineStart=bh,Ga.lineEnd=_h},polygonEnd:function(){Ga.lineStart=vm,Ga.lineEnd=bm}};function S1(n,i){n*=_n;var o=fn(i*=_n);ci(o*fn(n),o*sn(n),sn(i))}function ci(n,i,o){++Ru,ph+=(n-ph)/Ru,Ic+=(i-Ic)/Ru,Fu+=(o-Fu)/Ru}function vm(){Ga.point=A4}function A4(n,i){n*=_n;var o=fn(i*=_n);ma=o*fn(n),Zi=o*sn(n),mi=sn(i),Ga.point=xr,ci(ma,Zi,mi)}function xr(n,i){n*=_n;var o=fn(i*=_n),s=o*fn(n),l=o*sn(n),p=sn(i),b=Wi(yi((b=Zi*p-mi*l)*b+(b=mi*s-ma*p)*b+(b=ma*l-Zi*s)*b),ma*s+Zi*l+mi*p);dh+=b,Pu+=b*(ma+(ma=s)),co+=b*(Zi+(Zi=l)),gh+=b*(mi+(mi=p)),ci(ma,Zi,mi)}function bm(){Ga.point=S1}function bh(){Ga.point=M4}function _h(){_m(E1,ju),Ga.point=S1}function M4(n,i){E1=n,ju=i,n*=_n,i*=_n,Ga.point=_m;var o=fn(i);ma=o*fn(n),Zi=o*sn(n),mi=sn(i),ci(ma,Zi,mi)}function _m(n,i){n*=_n;var o=fn(i*=_n),s=o*fn(n),l=o*sn(n),p=sn(i),b=Zi*p-mi*l,v=mi*s-ma*p,T=ma*l-Zi*s,N=yi(b*b+v*v+T*T),B=pa(N),F=N&&-B/N;C1+=F*b,ws+=F*v,Yp+=F*T,dh+=B,Pu+=B*(ma+(ma=s)),co+=B*(Zi+(Zi=l)),gh+=B*(mi+(mi=p)),ci(ma,Zi,mi)}function N4(n){Ru=dh=ph=Ic=Fu=Pu=co=gh=C1=ws=Yp=0,wo(n,Ga);var i=C1,o=ws,s=Yp,l=i*i+o*o+s*s;return l<lh&&(i=Pu,o=co,s=gh,dh<Pn&&(i=ph,o=Ic,s=Fu),(l=i*i+o*o+s*s)<lh)?[NaN,NaN]:[Wi(o,i)*Or,pa(s/yi(l))*Or]}function Uu(n){return function(){return n}}function Hp(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 A1(n,i){return[Ne(n)>er?n+Math.round(-n/Nr)*Nr:n,i]}function M1(n,i,o){return(n%=Nr)?i||o?Hp(wm(n),km(i,o)):wm(n):i||o?km(i,o):A1}function xm(n){return function(i,o){return[(i+=n)>er?i-Nr:i<-er?i+Nr:i,o]}}function wm(n){var i=xm(n);return i.invert=xm(-n),i}function km(n,i){var o=fn(n),s=sn(n),l=fn(i),p=sn(i);function b(v,T){var N=fn(T),B=fn(v)*N,F=sn(v)*N,L=sn(T),z=L*o+B*s;return[Wi(F*l-z*p,B*o-L*s),pa(z*l+F*p)]}return b.invert=function(v,T){var N=fn(T),B=fn(v)*N,F=sn(v)*N,L=sn(T),z=L*l-F*p;return[Wi(F*l+L*p,B*o+z*s),pa(z*o-B*s)]},b}function $p(n){function i(o){return(o=n(o[0]*_n,o[1]*_n))[0]*=Or,o[1]*=Or,o}return n=M1(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]*=Or,o[1]*=Or,o},i}function Tm(n,i,o,s,l,p){if(o){var b=fn(i),v=sn(i),T=s*o;l==null?(l=i+s*Nr,p=i-T/2):(l=Wp(b,l),p=Wp(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=k1([b,-v*fn(B),-v*sn(B)]),n.point(N[0],N[1])}}function Wp(n,i){(i=ko(i))[0]-=n,fh(i);var o=tc(-i[1]);return((-i[2]<0?-o:o)+Nr-Pn)%Nr}function D4(){var n,i,o=Uu([0,0]),s=Uu(90),l=Uu(6),p={point:function(v,T){n.push(v=i(v,T)),v[0]*=Or,v[1]*=Or}};function b(){var v=o.apply(this,arguments),T=s.apply(this,arguments)*_n,N=l.apply(this,arguments)*_n;return n=[],i=M1(-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:Uu([+v[0],+v[1]]),b):o},b.radius=function(v){return arguments.length?(s=typeof v=="function"?v:Uu(+v),b):s},b.precision=function(v){return arguments.length?(l=typeof v=="function"?v:Uu(+v),b):l},b}function Cm(){var n,i=[];return{point:function(o,s,l){n.push([o,s,l])},lineStart:function(){i.push(n=[])},lineEnd:_r,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var o=i;return i=[],n=null,o}}}function N1(n,i){return Ne(n[0]-i[0])<Pn&&Ne(n[1]-i[1])<Pn}function D1(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 Em(n,i,o,s,l){var p,b,v=[],T=[];if(n.forEach(function(U){if(!((J=U.length-1)<=0)){var J,K,V=U[0],ot=U[J];if(N1(V,ot)){if(!V[2]&&!ot[2]){for(l.lineStart(),p=0;p<J;++p)l.point((V=U[p])[0],V[1]);return void l.lineEnd()}ot[0]+=2e-6}v.push(K=new D1(V,U,null,!0)),T.push(K.o=new D1(V,null,K,!1)),v.push(K=new D1(ot,U,null,!1)),T.push(K.o=new D1(ot,null,K,!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 L=F,z=!0;L.v;)if((L=L.n)===F)return;N=L.z,l.lineStart();do{if(L.v=L.o.v=!0,L.e){if(z)for(p=0,b=N.length;p<b;++p)l.point((B=N[p])[0],B[1]);else s(L.x,L.n.x,1,l);L=L.n}else{if(z)for(N=L.p.z,p=N.length-1;p>=0;--p)l.point((B=N[p])[0],B[1]);else s(L.x,L.p.x,-1,l);L=L.p}N=(L=L.o).z,z=!z}while(!L.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}}A1.invert=A1;var Vp=Ks();function L1(n){return Ne(n[0])<=er?n[0]:br(n[0])*((Ne(n[0])+er)%Nr-er)}function Am(n,i){var o=L1(i),s=i[1],l=sn(s),p=[sn(o),-fn(o),0],b=0,v=0;Vp.reset(),l===1?s=si+Pn:l===-1&&(s=-si-Pn);for(var T=0,N=n.length;T<N;++T)if(F=(B=n[T]).length)for(var B,F,L=B[F-1],z=L1(L),U=L[1]/2+Nu,J=sn(U),K=fn(U),V=0;V<F;++V,z=it,J=Pt,K=Gt,L=ot){var ot=B[V],it=L1(ot),dt=ot[1]/2+Nu,Pt=sn(dt),Gt=fn(dt),re=it-z,xe=re>=0?1:-1,qt=xe*re,te=qt>er,ut=J*Pt;if(Vp.add(Wi(ut*xe*sn(qt),K*Gt+ut*fn(qt))),b+=te?re+xe*Nr:re,te^z>=o^it>=o){var Ct=Ou(ko(L),ko(ot));fh(Ct);var ce=Ou(p,Ct);fh(ce);var ee=(te^re>=0?-1:1)*pa(ce[2]);(s>ee||s===ee&&(Ct[0]||Ct[1]))&&(v+=te^re>=0?1:-1)}}return(b<-1e-6||b<Pn&&Vp<-1e-6)^1&v}function Mm(n,i,o,s){return function(l){var p,b,v,T=i(l),N=Cm(),B=i(N),F=!1,L={point:z,lineStart:J,lineEnd:K,polygonStart:function(){L.point=V,L.lineStart=ot,L.lineEnd=it,b=[],p=[]},polygonEnd:function(){L.point=z,L.lineStart=J,L.lineEnd=K,b=pe(b);var dt=Am(p,s);b.length?(F||(l.polygonStart(),F=!0),Em(b,Nm,dt,o,l)):dt&&(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(dt,Pt){n(dt,Pt)&&l.point(dt,Pt)}function U(dt,Pt){T.point(dt,Pt)}function J(){L.point=U,T.lineStart()}function K(){L.point=z,T.lineEnd()}function V(dt,Pt){v.push([dt,Pt]),B.point(dt,Pt)}function ot(){B.lineStart(),v=[]}function it(){V(v[0][0],v[0][1]),B.lineEnd();var dt,Pt,Gt,re,xe=B.clean(),qt=N.result(),te=qt.length;if(v.pop(),p.push(v),v=null,te)if(1&xe){if((Pt=(Gt=qt[0]).length-1)>0){for(F||(l.polygonStart(),F=!0),l.lineStart(),dt=0;dt<Pt;++dt)l.point((re=Gt[dt])[0],re[1]);l.lineEnd()}}else te>1&&2&xe&&qt.push(qt.pop().concat(qt.shift())),b.push(qt.filter(L4))}return L}}function L4(n){return n.length>1}function Nm(n,i){return((n=n.x)[0]<0?n[1]-si-Pn:si-n[1])-((i=i.x)[0]<0?i[1]-si-Pn:si-i[1])}const Gp=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?er:-er,T=Ne(p-o);Ne(T-er)<Pn?(n.point(o,s=(s+b)/2>0?si:-si),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),n.point(p,s),i=0):l!==v&&T>=er&&(Ne(o-l)<Pn&&(o-=l*Pn),Ne(p-v)<Pn&&(p-=v*Pn),s=function(N,B,F,L){var z,U,J=sn(N-F);return Ne(J)>Pn?Js((sn(B)*(U=fn(L))*sn(F)-sn(L)*(z=fn(B))*sn(N))/(z*U*J)):(B+L)/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*si,s.point(-er,l),s.point(0,l),s.point(er,l),s.point(er,0),s.point(er,-l),s.point(0,-l),s.point(-er,-l),s.point(-er,0),s.point(-er,l);else if(Ne(n[0]-i[0])>Pn){var p=n[0]<i[0]?er:-er;l=o*p/2,s.point(-p,l),s.point(0,l),s.point(p,l)}else s.point(i[0],i[1])},[-er,-si]);function Dm(n){var i=fn(n),o=6*_n,s=i>0,l=Ne(i)>Pn;function p(T,N){return fn(T)*fn(N)>i}function b(T,N,B){var F=[1,0,0],L=Ou(ko(T),ko(N)),z=T1(L,L),U=L[0],J=z-U*U;if(!J)return!B&&T;var K=i*z/J,V=-i*U/J,ot=Ou(F,L),it=Oc(F,K);Iu(it,Oc(L,V));var dt=ot,Pt=T1(it,dt),Gt=T1(dt,dt),re=Pt*Pt-Gt*(T1(it,it)-1);if(!(re<0)){var xe=yi(re),qt=Oc(dt,(-Pt-xe)/Gt);if(Iu(qt,it),qt=k1(qt),!B)return qt;var te,ut=T[0],Ct=N[0],ce=T[1],ee=N[1];Ct<ut&&(te=ut,ut=Ct,Ct=te);var ue=Ct-ut,Fe=Ne(ue-er)<Pn;if(!Fe&&ee<ce&&(te=ce,ce=ee,ee=te),Fe||ue<Pn?Fe?ce+ee>0^qt[1]<(Ne(qt[0]-ut)<Pn?ce:ee):ce<=qt[1]&&qt[1]<=ee:ue>er^(ut<=qt[0]&&qt[0]<=Ct)){var Ge=Oc(dt,(-Pt+xe)/Gt);return Iu(Ge,it),[qt,k1(Ge)]}}}function v(T,N){var B=s?n:er-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,L,z;return{lineStart:function(){L=F=!1,z=1},point:function(U,J){var K,V=[U,J],ot=p(U,J),it=s?ot?0:v(U,J):ot?v(U+(U<0?er:-er),J):0;if(!N&&(L=F=ot)&&T.lineStart(),ot!==F&&(!(K=b(N,V))||N1(N,K)||N1(V,K))&&(V[2]=1),ot!==F)z=0,ot?(T.lineStart(),K=b(V,N),T.point(K[0],K[1])):(K=b(N,V),T.point(K[0],K[1],2),T.lineEnd()),N=K;else if(l&&N&&s^ot){var dt;it&B||!(dt=b(V,N,!0))||(z=0,s?(T.lineStart(),T.point(dt[0][0],dt[0][1]),T.point(dt[1][0],dt[1][1]),T.lineEnd()):(T.point(dt[1][0],dt[1][1]),T.lineEnd(),T.lineStart(),T.point(dt[0][0],dt[0][1],3)))}!ot||N&&N1(N,V)||T.point(V[0],V[1]),N=V,F=ot,B=it},lineEnd:function(){F&&T.lineEnd(),N=null},clean:function(){return z|(L&&F)<<1}}},function(T,N,B,F){Tm(F,n,o,B,T,N)},s?[0,-n]:[-er,n-er])}var xh=1e9,B1=-xh;function O1(n,i,o,s){function l(N,B){return n<=N&&N<=o&&i<=B&&B<=s}function p(N,B,F,L){var z=0,U=0;if(N==null||(z=b(N,F))!==(U=b(B,F))||T(N,B)<0^F>0)do L.point(z===0||z===3?n:o,z>1?s:i);while((z=(z+F+4)%4)!==U);else L.point(B[0],B[1])}function b(N,B){return Ne(N[0]-n)<Pn?B>0?0:3:Ne(N[0]-o)<Pn?B>0?2:1:Ne(N[1]-i)<Pn?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),L=b(B,1);return F!==L?F-L: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,L,z,U,J,K,V,ot,it,dt,Pt=N,Gt=Cm(),re={point:xe,lineStart:function(){re.point=qt,F&&F.push(L=[]),it=!0,ot=!1,K=V=NaN},lineEnd:function(){B&&(qt(z,U),J&&ot&&Gt.rejoin(),B.push(Gt.result())),re.point=xe,ot&&Pt.lineEnd()},polygonStart:function(){Pt=Gt,B=[],F=[],dt=!0},polygonEnd:function(){var te=function(){for(var ce=0,ee=0,ue=F.length;ee<ue;++ee)for(var Fe,Ge,vn=F[ee],Wn=1,tr=vn.length,tn=vn[0],rr=tn[0],Mn=tn[1];Wn<tr;++Wn)Fe=rr,Ge=Mn,rr=(tn=vn[Wn])[0],Mn=tn[1],Ge<=s?Mn>s&&(rr-Fe)*(s-Ge)>(Mn-Ge)*(n-Fe)&&++ce:Mn<=s&&(rr-Fe)*(s-Ge)<(Mn-Ge)*(n-Fe)&&--ce;return ce}(),ut=dt&&te,Ct=(B=pe(B)).length;(ut||Ct)&&(N.polygonStart(),ut&&(N.lineStart(),p(null,null,1,N),N.lineEnd()),Ct&&Em(B,v,te,p,N),N.polygonEnd()),Pt=N,B=F=L=null}};function xe(te,ut){l(te,ut)&&Pt.point(te,ut)}function qt(te,ut){var Ct=l(te,ut);if(F&&L.push([te,ut]),it)z=te,U=ut,J=Ct,it=!1,Ct&&(Pt.lineStart(),Pt.point(te,ut));else if(Ct&&ot)Pt.point(te,ut);else{var ce=[K=Math.max(B1,Math.min(xh,K)),V=Math.max(B1,Math.min(xh,V))],ee=[te=Math.max(B1,Math.min(xh,te)),ut=Math.max(B1,Math.min(xh,ut))];(function(ue,Fe,Ge,vn,Wn,tr){var tn,rr=ue[0],Mn=ue[1],En=0,Zn=1,Xi=Fe[0]-rr,vi=Fe[1]-Mn;if(tn=Ge-rr,Xi||!(tn>0)){if(tn/=Xi,Xi<0){if(tn<En)return;tn<Zn&&(Zn=tn)}else if(Xi>0){if(tn>Zn)return;tn>En&&(En=tn)}if(tn=Wn-rr,Xi||!(tn<0)){if(tn/=Xi,Xi<0){if(tn>Zn)return;tn>En&&(En=tn)}else if(Xi>0){if(tn<En)return;tn<Zn&&(Zn=tn)}if(tn=vn-Mn,vi||!(tn>0)){if(tn/=vi,vi<0){if(tn<En)return;tn<Zn&&(Zn=tn)}else if(vi>0){if(tn>Zn)return;tn>En&&(En=tn)}if(tn=tr-Mn,vi||!(tn<0)){if(tn/=vi,vi<0){if(tn>Zn)return;tn>En&&(En=tn)}else if(vi>0){if(tn<En)return;tn<Zn&&(Zn=tn)}return En>0&&(ue[0]=rr+En*Xi,ue[1]=Mn+En*vi),Zn<1&&(Fe[0]=rr+Zn*Xi,Fe[1]=Mn+Zn*vi),!0}}}}})(ce,ee,n,i,o,s)?(ot||(Pt.lineStart(),Pt.point(ce[0],ce[1])),Pt.point(ee[0],ee[1]),Ct||Pt.lineEnd(),dt=!1):Ct&&(Pt.lineStart(),Pt.point(te,ut),dt=!1)}K=te,V=ut,ot=Ct}return re}}function B4(){var n,i,o,s=0,l=0,p=960,b=500;return o={stream:function(v){return n&&i===v?n:n=O1(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 I1,R1,F1,Xp=Ks(),qu={sphere:_r,point:_r,lineStart:function(){qu.point=I4,qu.lineEnd=O4},lineEnd:_r,polygonStart:_r,polygonEnd:_r};function O4(){qu.point=qu.lineEnd=_r}function I4(n,i){I1=n*=_n,R1=sn(i*=_n),F1=fn(i),qu.point=R4}function R4(n,i){n*=_n;var o=sn(i*=_n),s=fn(i),l=Ne(n-I1),p=fn(l),b=s*sn(l),v=F1*o-R1*s*p,T=R1*o+F1*s*p;Xp.add(Wi(yi(b*b+v*v),T)),I1=n,R1=o,F1=s}function Lm(n){return Xp.reset(),wo(n,qu),+Xp}var P1=[null,null],F4={type:"LineString",coordinates:P1};function j1(n,i){return P1[0]=n,P1[1]=i,Lm(F4)}var Bm={Feature:function(n,i){return Y1(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)if(Y1(o[s].geometry,i))return!0;return!1}},Zp={Sphere:function(){return!0},Point:function(n,i){return Om(n.coordinates,i)},MultiPoint:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Om(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(Y1(o[s],i))return!0;return!1}};function Y1(n,i){return!(!n||!Zp.hasOwnProperty(n.type))&&Zp[n.type](n,i)}function Om(n,i){return j1(n,i)===0}function Im(n,i){for(var o,s,l,p=0,b=n.length;p<b;p++){if((s=j1(n[p],i))===0||p>0&&(l=j1(n[p],n[p-1]))>0&&o<=l&&s<=l&&(o+s-l)*(1-Math.pow((o-s)/l,2))<lh*l)return!0;o=s}return!1}function Rm(n,i){return!!Am(n.map(P4),Fm(i))}function P4(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]:Y1)(n,i)}function jm(n,i,o){var s=bt(n,i-Pn,o).concat(i);return function(l){return s.map(function(p){return[l,p]})}}function Ym(n,i,o){var s=bt(n,i-Pn,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,L=10,z=L,U=90,J=360,K=2.5;function V(){return{type:"MultiLineString",coordinates:ot()}}function ot(){return bt(Zo(s/U)*U,o,U).map(B).concat(bt(Zo(v/J)*J,b,J).map(F)).concat(bt(Zo(i/L)*L,n,L).filter(function(it){return Ne(it%U)>Pn}).map(T)).concat(bt(Zo(p/z)*z,l,z).filter(function(it){return Ne(it%J)>Pn}).map(N))}return V.lines=function(){return ot().map(function(it){return{type:"LineString",coordinates:it}})},V.outline=function(){return{type:"Polygon",coordinates:[B(s).concat(F(b).slice(1),B(o).reverse().slice(1),F(v).reverse().slice(1))]}},V.extent=function(it){return arguments.length?V.extentMajor(it).extentMinor(it):V.extentMinor()},V.extentMajor=function(it){return arguments.length?(s=+it[0][0],o=+it[1][0],v=+it[0][1],b=+it[1][1],s>o&&(it=s,s=o,o=it),v>b&&(it=v,v=b,b=it),V.precision(K)):[[s,v],[o,b]]},V.extentMinor=function(it){return arguments.length?(i=+it[0][0],n=+it[1][0],p=+it[0][1],l=+it[1][1],i>n&&(it=i,i=n,n=it),p>l&&(it=p,p=l,l=it),V.precision(K)):[[i,p],[n,l]]},V.step=function(it){return arguments.length?V.stepMajor(it).stepMinor(it):V.stepMinor()},V.stepMajor=function(it){return arguments.length?(U=+it[0],J=+it[1],V):[U,J]},V.stepMinor=function(it){return arguments.length?(L=+it[0],z=+it[1],V):[L,z]},V.precision=function(it){return arguments.length?(K=+it,T=jm(p,l,90),N=Ym(i,n,K),B=jm(v,b,90),F=Ym(s,o,K),V):K},V.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function j4(){return zm()()}function Y4(n,i){var o=n[0]*_n,s=n[1]*_n,l=i[0]*_n,p=i[1]*_n,b=fn(s),v=sn(s),T=fn(p),N=sn(p),B=b*fn(o),F=b*sn(o),L=T*fn(l),z=T*sn(l),U=2*pa(yi(_1(p-s)+b*T*_1(l-o))),J=sn(U),K=U?function(V){var ot=sn(V*=U)/J,it=sn(U-V)/J,dt=it*B+ot*L,Pt=it*F+ot*z,Gt=it*v+ot*N;return[Wi(Pt,dt)*Or,Wi(Gt,yi(dt*dt+Pt*Pt))*Or]}:function(){return[o*Or,s*Or]};return K.distance=U,K}function wh(n){return n}var Um,qm,z1,U1,q1=Ks(),Qp=Ks(),ks={point:_r,lineStart:_r,lineEnd:_r,polygonStart:function(){ks.lineStart=H1,ks.lineEnd=$m},polygonEnd:function(){ks.lineStart=ks.lineEnd=ks.point=_r,q1.add(Ne(Qp)),Qp.reset()},result:function(){var n=q1/2;return q1.reset(),n}};function H1(){ks.point=z4}function z4(n,i){ks.point=Hm,Um=z1=n,qm=U1=i}function Hm(n,i){Qp.add(U1*n-z1*i),z1=n,U1=i}function $m(){Hm(Um,qm)}const Wm=ks;var Ts=1/0,rc=Ts,Ko=-Ts,ic=Ko,kh={point:function(n,i){n<Ts&&(Ts=n),n>Ko&&(Ko=n),i<rc&&(rc=i),i>ic&&(ic=i)},lineStart:_r,lineEnd:_r,polygonStart:_r,polygonEnd:_r,result:function(){var n=[[Ts,rc],[Ko,ic]];return Ko=ic=-(rc=Ts=1/0),n}};const Fc=kh;var ac,Th,Ba,Eo,Ch=0,Kp=0,oc=0,Eh=0,Sh=0,Hu=0,Ah=0,$1=0,Mh=0,So={point:Jo,lineStart:W1,lineEnd:Cs,polygonStart:function(){So.lineStart=V1,So.lineEnd=Vm},polygonEnd:function(){So.point=Jo,So.lineStart=W1,So.lineEnd=Cs},result:function(){var n=Mh?[Ah/Mh,$1/Mh]:Hu?[Eh/Hu,Sh/Hu]:oc?[Ch/oc,Kp/oc]:[NaN,NaN];return Ch=Kp=oc=Eh=Sh=Hu=Ah=$1=Mh=0,n}};function Jo(n,i){Ch+=n,Kp+=i,++oc}function W1(){So.point=ts}function ts(n,i){So.point=Ao,Jo(Ba=n,Eo=i)}function Ao(n,i){var o=n-Ba,s=i-Eo,l=yi(o*o+s*s);Eh+=l*(Ba+n)/2,Sh+=l*(Eo+i)/2,Hu+=l,Jo(Ba=n,Eo=i)}function Cs(){So.point=Jo}function V1(){So.point=Jp}function Vm(){tg(ac,Th)}function Jp(n,i){So.point=tg,Jo(ac=Ba=n,Th=Eo=i)}function tg(n,i){var o=n-Ba,s=i-Eo,l=yi(o*o+s*s);Eh+=l*(Ba+n)/2,Sh+=l*(Eo+i)/2,Hu+=l,Ah+=(l=Eo*n-Ba*i)*(Ba+n),$1+=l*(Eo+i),Mh+=3*l,Jo(Ba=n,Eo=i)}const eg=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:_r};var ng,Xm,Zm,Pc,$u,Nh=Ks(),Wu={point:_r,lineStart:function(){Wu.point=U4},lineEnd:function(){ng&&rg(Xm,Zm),Wu.point=_r},polygonStart:function(){ng=!0},polygonEnd:function(){ng=null},result:function(){var n=+Nh;return Nh.reset(),n}};function U4(n,i){Wu.point=rg,Xm=Pc=n,Zm=$u=i}function rg(n,i){Pc-=n,$u-=i,Nh.add(yi(Pc*Pc+$u*$u)),Pc=n,$u=i}const Qm=Wu;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 q4(n,i){var o,s,l=4.5;function p(b){return b&&(typeof l=="function"&&s.pointRadius(+l.apply(this,arguments)),wo(b,o(s))),s.result()}return p.area=function(b){return wo(b,o(Wm)),Wm.result()},p.measure=function(b){return wo(b,o(Qm)),Qm.result()},p.bounds=function(b){return wo(b,o(Fc)),Fc.result()},p.centroid=function(b){return wo(b,o(eg)),eg.result()},p.projection=function(b){return arguments.length?(o=b==null?(n=null,wh):(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 H4(n){return{stream:Dh(n)}}function Dh(n){return function(i){var o=new ig;for(var s in n)o[s]=n[s];return o.stream=i,o}}function ig(){}function ag(n,i,o){var s=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),s!=null&&n.clipExtent(null),wo(o,n.stream(Fc)),i(Fc.result()),s!=null&&n.clipExtent(s),n}function G1(n,i,o){return ag(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 og(n,i,o){return G1(n,[[0,0],i],o)}function sg(n,i,o){return ag(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 cg(n,i,o){return ag(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}},ig.prototype={constructor:ig,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 $4=fn(30*_n);function tv(n,i){return+i?function(o,s){function l(p,b,v,T,N,B,F,L,z,U,J,K,V,ot){var it=F-p,dt=L-b,Pt=it*it+dt*dt;if(Pt>4*s&&V--){var Gt=T+U,re=N+J,xe=B+K,qt=yi(Gt*Gt+re*re+xe*xe),te=pa(xe/=qt),ut=Ne(Ne(xe)-1)<Pn||Ne(v-z)<Pn?(v+z)/2:Wi(re,Gt),Ct=o(ut,te),ce=Ct[0],ee=Ct[1],ue=ce-p,Fe=ee-b,Ge=dt*ue-it*Fe;(Ge*Ge/Pt>s||Ne((it*ue+dt*Fe)/Pt-.5)>.3||T*U+N*J+B*K<$4)&&(l(p,b,v,T,N,B,ce,ee,ut,Gt/=qt,re/=qt,xe,V,ot),ot.point(ce,ee),l(ce,ee,ut,Gt,re,xe,F,L,z,U,J,K,V,ot))}}return function(p){var b,v,T,N,B,F,L,z,U,J,K,V,ot={point:it,lineStart:dt,lineEnd:Gt,polygonStart:function(){p.polygonStart(),ot.lineStart=re},polygonEnd:function(){p.polygonEnd(),ot.lineStart=dt}};function it(te,ut){te=o(te,ut),p.point(te[0],te[1])}function dt(){z=NaN,ot.point=Pt,p.lineStart()}function Pt(te,ut){var Ct=ko([te,ut]),ce=o(te,ut);l(z,U,L,J,K,V,z=ce[0],U=ce[1],L=te,J=Ct[0],K=Ct[1],V=Ct[2],16,p),p.point(z,U)}function Gt(){ot.point=it,p.lineEnd()}function re(){dt(),ot.point=xe,ot.lineEnd=qt}function xe(te,ut){Pt(b=te,ut),v=z,T=U,N=J,B=K,F=V,ot.point=Pt}function qt(){l(z,U,L,J,K,V,v,T,b,N,B,F,16,p),ot.lineEnd=Gt,Gt()}return ot}}(n,i):function(o){return Dh({point:function(s,l){s=o(s,l),this.stream.point(s[0],s[1])}})}(n)}var W4=Dh({point:function(n,i){this.stream.point(n*_n,i*_n)}});function V4(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=fn(p),v=sn(p),T=b*n,N=v*n,B=b/n,F=v/n,L=(v*o-b*i)/n,z=(v*i+b*o)/n;function U(J,K){return[T*(J*=s)-N*(K*=l)+i,o-N*J-T*K]}return U.invert=function(J,K){return[s*(B*J-F*K+L),l*(z-F*J-B*K)]},U}function Mo(n){return ug(function(){return n})()}function ug(n){var i,o,s,l,p,b,v,T,N,B,F=150,L=480,z=250,U=0,J=0,K=0,V=0,ot=0,it=0,dt=1,Pt=1,Gt=null,re=Gp,xe=null,qt=wh,te=.5;function ut(ue){return T(ue[0]*_n,ue[1]*_n)}function Ct(ue){return(ue=T.invert(ue[0],ue[1]))&&[ue[0]*Or,ue[1]*Or]}function ce(){var ue=ev(F,0,0,dt,Pt,it).apply(null,i(U,J)),Fe=(it?ev:V4)(F,L-ue[0],z-ue[1],dt,Pt,it);return o=M1(K,V,ot),v=Hp(i,Fe),T=Hp(o,v),b=tv(v,te),ee()}function ee(){return N=B=null,ut}return ut.stream=function(ue){return N&&B===ue?N:N=W4(function(Fe){return Dh({point:function(Ge,vn){var Wn=Fe(Ge,vn);return this.stream.point(Wn[0],Wn[1])}})}(o)(re(b(qt(B=ue)))))},ut.preclip=function(ue){return arguments.length?(re=ue,Gt=void 0,ee()):re},ut.postclip=function(ue){return arguments.length?(qt=ue,xe=s=l=p=null,ee()):qt},ut.clipAngle=function(ue){return arguments.length?(re=+ue?Dm(Gt=ue*_n):(Gt=null,Gp),ee()):Gt*Or},ut.clipExtent=function(ue){return arguments.length?(qt=ue==null?(xe=s=l=p=null,wh):O1(xe=+ue[0][0],s=+ue[0][1],l=+ue[1][0],p=+ue[1][1]),ee()):xe==null?null:[[xe,s],[l,p]]},ut.scale=function(ue){return arguments.length?(F=+ue,ce()):F},ut.translate=function(ue){return arguments.length?(L=+ue[0],z=+ue[1],ce()):[L,z]},ut.center=function(ue){return arguments.length?(U=ue[0]%360*_n,J=ue[1]%360*_n,ce()):[U*Or,J*Or]},ut.rotate=function(ue){return arguments.length?(K=ue[0]%360*_n,V=ue[1]%360*_n,ot=ue.length>2?ue[2]%360*_n:0,ce()):[K*Or,V*Or,ot*Or]},ut.angle=function(ue){return arguments.length?(it=ue%360*_n,ce()):it*Or},ut.reflectX=function(ue){return arguments.length?(dt=ue?-1:1,ce()):dt<0},ut.reflectY=function(ue){return arguments.length?(Pt=ue?-1:1,ce()):Pt<0},ut.precision=function(ue){return arguments.length?(b=tv(v,te=ue*ue),ee()):yi(te)},ut.fitExtent=function(ue,Fe){return G1(ut,ue,Fe)},ut.fitSize=function(ue,Fe){return og(ut,ue,Fe)},ut.fitWidth=function(ue,Fe){return sg(ut,ue,Fe)},ut.fitHeight=function(ue,Fe){return cg(ut,ue,Fe)},function(){return i=n.apply(this,arguments),ut.invert=i.invert&&Ct,ce()}}function lg(n){var i=0,o=er/3,s=ug(n),l=s(i,o);return l.parallels=function(p){return arguments.length?s(i=p[0]*_n,o=p[1]*_n):[i*Or,o*Or]},l}function nv(n,i){var o=sn(n),s=(o+sn(i))/2;if(Ne(s)<Pn)return function(v){var T=fn(v);function N(B,F){return[B*T,sn(F)/T]}return N.invert=function(B,F){return[B/T,pa(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*fn(v)]}return b.invert=function(v,T){var N=p-T,B=Wi(v,Ne(N))*br(N);return N*s<0&&(B-=er*br(v)*br(N)),[B/s,pa((l-(v*v+N*N)*s*s)/(2*s))]},b}function X1(){return lg(nv).scale(155.424).center([0,33.6442])}function rv(){return X1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Es(){var n,i,o,s,l,p,b=rv(),v=X1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=X1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),N={point:function(L,z){p=[L,z]}};function B(L){var z=L[0],U=L[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(L){var z=b.scale(),U=b.translate(),J=(L[0]-U[0])/z,K=(L[1]-U[1])/z;return(K>=.12&&K<.234&&J>=-.425&&J<-.214?v:K>=.166&&K<.234&&J>=-.214&&J<-.115?T:b).invert(L)},B.stream=function(L){return n&&i===L?n:(z=[b.stream(i=L),v.stream(L),T.stream(L)],U=z.length,n={point:function(J,K){for(var V=-1;++V<U;)z[V].point(J,K)},sphere:function(){for(var J=-1;++J<U;)z[J].sphere()},lineStart:function(){for(var J=-1;++J<U;)z[J].lineStart()},lineEnd:function(){for(var J=-1;++J<U;)z[J].lineEnd()},polygonStart:function(){for(var J=-1;++J<U;)z[J].polygonStart()},polygonEnd:function(){for(var J=-1;++J<U;)z[J].polygonEnd()}});var z,U},B.precision=function(L){return arguments.length?(b.precision(L),v.precision(L),T.precision(L),F()):b.precision()},B.scale=function(L){return arguments.length?(b.scale(L),v.scale(.35*L),T.scale(L),B.translate(b.translate())):b.scale()},B.translate=function(L){if(!arguments.length)return b.translate();var z=b.scale(),U=+L[0],J=+L[1];return o=b.translate(L).clipExtent([[U-.455*z,J-.238*z],[U+.455*z,J+.238*z]]).stream(N),s=v.translate([U-.307*z,J+.201*z]).clipExtent([[U-.425*z+Pn,J+.12*z+Pn],[U-.214*z-Pn,J+.234*z-Pn]]).stream(N),l=T.translate([U-.205*z,J+.212*z]).clipExtent([[U-.214*z+Pn,J+.166*z+Pn],[U-.115*z-Pn,J+.234*z-Pn]]).stream(N),F()},B.fitExtent=function(L,z){return G1(B,L,z)},B.fitSize=function(L,z){return og(B,L,z)},B.fitWidth=function(L,z){return sg(B,L,z)},B.fitHeight=function(L,z){return cg(B,L,z)},B.scale(1070)}function hg(n){return function(i,o){var s=fn(i),l=fn(o),p=n(s*l);return[p*l*sn(i),p*sn(o)]}}function Xa(n){return function(i,o){var s=yi(i*i+o*o),l=n(s),p=sn(l),b=fn(l);return[Wi(i*p,s*b),pa(s&&o*p/s)]}}var fg=hg(function(n){return yi(2/(1+n))});function G4(){return Mo(fg).scale(124.75).clipAngle(179.999)}fg.invert=Xa(function(n){return 2*pa(n/2)});var dg=hg(function(n){return(n=tc(n))&&n/sn(n)});function pg(){return Mo(dg).scale(79.4188).clipAngle(179.999)}function Lh(n,i){return[n,Du(Fi((si+i)/2))]}function X4(){return gg(Lh).scale(961/Nr)}function gg(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=er*b(),L=l($p(l.rotate()).invert([0,0]));return T(N==null?[[L[0]-F,L[1]-F],[L[0]+F,L[1]+F]]:n===Lh?[[Math.max(L[0]-F,N),i],[Math.min(L[0]+F,o),s]]:[[N,Math.max(L[1]-F,i)],[o,Math.min(L[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 Bh(n){return Fi((si+n)/2)}function yg(n,i){var o=fn(n),s=n===i?sn(n):Du(o/fn(i))/Du(Bh(i)/Bh(n)),l=o*b1(Bh(n),s)/s;if(!s)return Lh;function p(b,v){l>0?v<-si+Pn&&(v=-si+Pn):v>si-Pn&&(v=si-Pn);var T=l/b1(Bh(v),s);return[T*sn(s*b),l-T*fn(s*b)]}return p.invert=function(b,v){var T=l-v,N=br(s)*yi(b*b+T*T),B=Wi(b,Ne(T))*br(T);return T*s<0&&(B-=er*br(b)*br(T)),[B/s,2*Js(b1(l/N,1/s))-si]},p}function Z4(){return lg(yg).scale(109.5).parallels([30,30])}function Oh(n,i){return[n,i]}function Q4(){return Mo(Oh).scale(152.63)}function iv(n,i){var o=fn(n),s=n===i?sn(n):(o-fn(i))/(i-n),l=o/s+n;if(Ne(s)<Pn)return Oh;function p(b,v){var T=l-v,N=s*b;return[T*sn(N),l-T*fn(N)]}return p.invert=function(b,v){var T=l-v,N=Wi(b,Ne(T))*br(T);return T*s<0&&(N-=er*br(b)*br(T)),[N/s,l-br(s)*yi(b*b+T*T)]},p}function av(){return lg(iv).scale(131.154).center([0,13.9389])}dg.invert=Xa(function(n){return n}),Lh.invert=function(n,i){return[n,2*Js(fm(i))-si]},Oh.invert=Oh;var sc=1.340264,Ih=-.081106,Rh=893e-6,Fh=.003796,Z1=yi(3)/2;function mg(n,i){var o=pa(Z1*sn(i)),s=o*o,l=s*s*s;return[n*fn(o)/(Z1*(sc+3*Ih*s+l*(7*Rh+9*Fh*s))),o*(sc+Ih*s+l*(Rh+Fh*s))]}function K4(){return Mo(mg).scale(177.158)}function Ph(n,i){var o=fn(i),s=fn(n)*o;return[o*sn(n)/s,sn(i)/s]}function ov(){return Mo(Ph).scale(144.049).clipAngle(60)}function Q1(){var n,i,o,s,l,p,b,v=1,T=0,N=0,B=1,F=1,L=0,z=null,U=1,J=1,K=Dh({point:function(dt,Pt){var Gt=it([dt,Pt]);this.stream.point(Gt[0],Gt[1])}}),V=wh;function ot(){return U=v*B,J=v*F,p=b=null,it}function it(dt){var Pt=dt[0]*U,Gt=dt[1]*J;if(L){var re=Gt*n-Pt*i;Pt=Pt*n+Gt*i,Gt=re}return[Pt+T,Gt+N]}return it.invert=function(dt){var Pt=dt[0]-T,Gt=dt[1]-N;if(L){var re=Gt*n+Pt*i;Pt=Pt*n-Gt*i,Gt=re}return[Pt/U,Gt/J]},it.stream=function(dt){return p&&b===dt?p:p=K(V(b=dt))},it.postclip=function(dt){return arguments.length?(V=dt,z=o=s=l=null,ot()):V},it.clipExtent=function(dt){return arguments.length?(V=dt==null?(z=o=s=l=null,wh):O1(z=+dt[0][0],o=+dt[0][1],s=+dt[1][0],l=+dt[1][1]),ot()):z==null?null:[[z,o],[s,l]]},it.scale=function(dt){return arguments.length?(v=+dt,ot()):v},it.translate=function(dt){return arguments.length?(T=+dt[0],N=+dt[1],ot()):[T,N]},it.angle=function(dt){return arguments.length?(i=sn(L=dt%360*_n),n=fn(L),ot()):L*Or},it.reflectX=function(dt){return arguments.length?(B=dt?-1:1,ot()):B<0},it.reflectY=function(dt){return arguments.length?(F=dt?-1:1,ot()):F<0},it.fitExtent=function(dt,Pt){return G1(it,dt,Pt)},it.fitSize=function(dt,Pt){return og(it,dt,Pt)},it.fitWidth=function(dt,Pt){return sg(it,dt,Pt)},it.fitHeight=function(dt,Pt){return cg(it,dt,Pt)},it}function vg(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 J4(){return Mo(vg).scale(175.295)}function bg(n,i){return[fn(i)*sn(n),sn(i)]}function t5(){return Mo(bg).scale(249.5).clipAngle(90.000001)}function _g(n,i){var o=fn(i),s=1+fn(n)*o;return[o*sn(n)/s,sn(i)/s]}function e5(){return Mo(_g).scale(250).clipAngle(142)}function K1(n,i){return[Du(Fi((si+i)/2)),-n]}function n5(){var n=gg(K1),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 r5(n,i){return n.parent===i.parent?1:2}function i5(n,i){return n+i.x}function Vu(n,i){return Math.max(n,i.y)}function a5(){var n=r5,i=1,o=1,s=!1;function l(p){var b,v=0;p.eachAfter(function(L){var z=L.children;z?(L.x=function(U){return U.reduce(i5,0)/U.length}(z),L.y=function(U){return 1+U.reduce(Vu,0)}(z)):(L.x=b?v+=n(L,b):0,L.y=0,b=L)});var T=function(L){for(var z;z=L.children;)L=z[0];return L}(p),N=function(L){for(var z;z=L.children;)L=z[z.length-1];return L}(p),B=T.x-n(T,N)/2,F=N.x+n(N,T)/2;return p.eachAfter(s?function(L){L.x=(L.x-p.x)*i,L.y=(p.y-L.y)*o}:function(L){L.x=(L.x-B)/(F-B)*i,L.y=(1-(p.y?L.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 o5(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 xg(n,i){var o,s,l,p,b,v=new jc(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 jc(l[p])),s.parent=o,s.depth=o.depth+1;return v.eachBefore(kg)}function sv(n){return n.children}function wg(n){n.data=n.data.data}function kg(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function jc(n){this.data=n,this.depth=this.height=0,this.parent=null}mg.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*(sc+Ih*l+p*(Rh+Fh*l))-i)/(sc+3*Ih*l+p*(7*Rh+9*Fh*l)))*s)*l*l,!(Ne(o)<lh));++b);return[Z1*n*(sc+3*Ih*l+p*(7*Rh+9*Fh*l))/fn(s),pa(sn(s)/Z1)]},Ph.invert=Xa(Js),vg.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(Ne(o)>Pn&&--l>0);return[n/(.8707+(p=s*s)*(p*(p*p*p*(.003971-.001529*p)-.013791)-.131979)),s]},bg.invert=Xa(pa),_g.invert=Xa(function(n){return 2*Js(n)}),K1.invert=function(n,i){return[-i,2*Js(fm(n))-si]},jc.prototype=xg.prototype={constructor:jc,count:function(){return this.eachAfter(o5)},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 xg(this).eachBefore(wg)}};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=c5(p=s5(p,i)),s=0);return o}function s5(n,i){var o,s;if(Tg(i,n))return[i];for(o=0;o<n.length;++o)if(J1(i,n[o])&&Tg(jh(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(J1(jh(n[o],n[s]),i)&&J1(jh(n[o],i),n[s])&&J1(jh(n[s],i),n[o])&&Tg(hv(n[o],n[s],i),n))return[n[o],n[s],i];throw new Error}function J1(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 Tg(n,i){for(var o=0;o<i.length;++o)if(!lv(n,i[o]))return!1;return!0}function c5(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return jh(n[0],n[1]);case 3:return hv(n[0],n[1],n[2])}}function jh(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,L=s-b,z=s-N,U=l-v,J=l-B,K=T-p,V=F-p,ot=s*s+l*l-p*p,it=ot-b*b-v*v+T*T,dt=ot-N*N-B*B+F*F,Pt=z*U-L*J,Gt=(U*dt-J*it)/(2*Pt)-s,re=(J*K-U*V)/Pt,xe=(z*it-L*dt)/(2*Pt)-l,qt=(L*V-z*K)/Pt,te=re*re+qt*qt-1,ut=2*(p+Gt*re+xe*qt),Ct=Gt*Gt+xe*xe-p*p,ce=-(te?(ut+Math.sqrt(ut*ut-4*te*Ct))/(2*te):Ct/ut);return{x:s+Gt+re*ce,y:l+xe+qt*ce,r:ce}}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 t0(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 t0(i),o=new t0(o),s=new t0(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 t0(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 u5(n){return n==null?null:e0(n)}function e0(n){if(typeof n!="function")throw new Error;return n}function Yc(){return 0}function Gu(n){return function(){return n}}function l5(n){return Math.sqrt(n.value)}function h5(){var n=null,i=1,o=1,s=Yc;function l(p){return p.x=i/2,p.y=o/2,n?p.eachBefore(mv(n)).eachAfter(n0(s,.5)).eachBefore(vv(1)):p.eachBefore(mv(l5)).eachAfter(n0(Yc,1)).eachAfter(n0(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=u5(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:Gu(+p),l):s},l}function mv(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function n0(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 Yh(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&&Yh(N,N.x0,v*(N.depth+1)/T,N.x1,v*(N.depth+2)/T);var B=N.x0,F=N.y0,L=N.x1-o,z=N.y1-o;L<B&&(B=L=(B+L)/2),z<F&&(F=z=(F+z)/2),N.x0=B,N.y0=F,N.x1=L,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},zh={};function f5(n){return n.id}function xv(n){return n.parentId}function r0(){var n=f5,i=xv;function o(s){var l,p,b,v,T,N,B,F=s.length,L=new Array(F),z={};for(p=0;p<F;++p)l=s[p],T=L[p]=new jc(l),(N=n(l,p,s))!=null&&(N+="")&&(z[B="$"+(T.id=N)]=B in z?zh:T);for(p=0;p<F;++p)if(T=L[p],(N=i(s[p],p,s))!=null&&(N+="")){if(!(v=z["$"+N]))throw new Error("missing: "+N);if(v===zh)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(kg),b.parent=null,F>0)throw new Error("cycle");return b}return o.id=function(s){return arguments.length?(n=e0(s),o):n},o.parentId=function(s){return arguments.length?(i=e0(s),o):i},o}function d5(n,i){return n.parent===i.parent?1:2}function Cg(n){var i=n.children;return i?i[0]:n.t}function i0(n){var i=n.children;return i?i[i.length-1]:n.t}function p5(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 a0(n,i,o){return n.a.parent===i.parent?n.a:o}function cc(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 Xu(){var n=d5,i=1,o=1,s=null;function l(T){var N=function(V){for(var ot,it,dt,Pt,Gt,re=new cc(V,0),xe=[re];ot=xe.pop();)if(dt=ot._.children)for(ot.children=new Array(Gt=dt.length),Pt=Gt-1;Pt>=0;--Pt)xe.push(it=ot.children[Pt]=new cc(dt[Pt],Pt)),it.parent=ot;return(re.parent=new cc(null,0)).children=[re],re}(T);if(N.eachAfter(p),N.parent.m=-N.z,N.eachBefore(b),s)T.eachBefore(v);else{var B=T,F=T,L=T;T.eachBefore(function(V){V.x<B.x&&(B=V),V.x>F.x&&(F=V),V.depth>L.depth&&(L=V)});var z=B===F?1:n(B,F)/2,U=z-B.x,J=i/(F.x+z+U),K=o/(L.depth||1);T.eachBefore(function(V){V.x=(V.x+U)*J,V.y=V.depth*K})}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,J=0,K=0,V=z.children,ot=V.length;--ot>=0;)(U=V[ot]).z+=J,U.m+=J,J+=U.s+(K+=U.c)})(T);var L=(N[0].z+N[N.length-1].z)/2;F?(T.z=F.z+n(T._,F._),T.m=T.z-L):T.z=L}else F&&(T.z=F.z+n(T._,F._));T.parent.A=function(z,U,J){if(U){for(var K,V=z,ot=z,it=U,dt=V.parent.children[0],Pt=V.m,Gt=ot.m,re=it.m,xe=dt.m;it=i0(it),V=Cg(V),it&&V;)dt=Cg(dt),(ot=i0(ot)).a=z,(K=it.z+re-V.z-Pt+n(it._,V._))>0&&(p5(a0(it,z,J),z,K),Pt+=K,Gt+=K),re+=it.m,Pt+=V.m,xe+=dt.m,Gt+=ot.m;it&&!i0(ot)&&(ot.t=it,ot.m+=re-Gt),V&&!Cg(dt)&&(dt.t=V,dt.m+=Pt-xe,J=z)}return J}(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 uc(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}cc.prototype=Object.create(jc.prototype);var Zu=(1+Math.sqrt(5))/2;function Uh(n,i,o,s,l,p){for(var b,v,T,N,B,F,L,z,U,J,K,V=[],ot=i.children,it=0,dt=0,Pt=ot.length,Gt=i.value;it<Pt;){T=l-o,N=p-s;do B=ot[dt++].value;while(!B&&dt<Pt);for(F=L=B,K=B*B*(J=Math.max(N/T,T/N)/(Gt*n)),U=Math.max(L/K,K/F);dt<Pt;++dt){if(B+=v=ot[dt].value,v<F&&(F=v),v>L&&(L=v),K=B*B*J,(z=Math.max(L/K,K/F))>U){B-=v;break}U=z}V.push(b={value:B,dice:T<N,children:ot.slice(it,dt)}),b.dice?Yh(b,o,s,l,Gt?s+=N*B/Gt:p):uc(b,o,s,Gt?o+=T*B/Gt:l,p),Gt-=B,it=dt}return V}const lc=function n(i){function o(s,l,p,b,v){Uh(i,s,l,p,b,v)}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(Zu);function o0(){var n=lc,i=!1,o=1,s=1,l=[0],p=Yc,b=Yc,v=Yc,T=Yc,N=Yc;function B(L){return L.x0=L.y0=0,L.x1=o,L.y1=s,L.eachBefore(F),l=[0],i&&L.eachBefore(bv),L}function F(L){var z=l[L.depth],U=L.x0+z,J=L.y0+z,K=L.x1-z,V=L.y1-z;K<U&&(U=K=(U+K)/2),V<J&&(J=V=(J+V)/2),L.x0=U,L.y0=J,L.x1=K,L.y1=V,L.children&&(z=l[L.depth+1]=p(L)/2,U+=N(L)-z,J+=b(L)-z,(K-=v(L)-z)<U&&(U=K=(U+K)/2),(V-=T(L)-z)<J&&(J=V=(J+V)/2),n(L,U,J,K,V))}return B.round=function(L){return arguments.length?(i=!!L,B):i},B.size=function(L){return arguments.length?(o=+L[0],s=+L[1],B):[o,s]},B.tile=function(L){return arguments.length?(n=e0(L),B):n},B.padding=function(L){return arguments.length?B.paddingInner(L).paddingOuter(L):B.paddingInner()},B.paddingInner=function(L){return arguments.length?(p=typeof L=="function"?L:Gu(+L),B):p},B.paddingOuter=function(L){return arguments.length?B.paddingTop(L).paddingRight(L).paddingBottom(L).paddingLeft(L):B.paddingTop()},B.paddingTop=function(L){return arguments.length?(b=typeof L=="function"?L:Gu(+L),B):b},B.paddingRight=function(L){return arguments.length?(v=typeof L=="function"?L:Gu(+L),B):v},B.paddingBottom=function(L){return arguments.length?(T=typeof L=="function"?L:Gu(+L),B):T},B.paddingLeft=function(L){return arguments.length?(N=typeof L=="function"?L:Gu(+L),B):N},B}function qh(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,L,z,U,J,K,V){if(F>=L-1){var ot=v[F];return ot.x0=U,ot.y0=J,ot.x1=K,void(ot.y1=V)}for(var it=N[F],dt=z/2+it,Pt=F+1,Gt=L-1;Pt<Gt;){var re=Pt+Gt>>>1;N[re]<dt?Pt=re+1:Gt=re}dt-N[Pt-1]<N[Pt]-dt&&F+1<Pt&&--Pt;var xe=N[Pt]-it,qt=z-xe;if(K-U>V-J){var te=(U*qt+K*xe)/z;B(F,Pt,xe,U,J,te,V),B(Pt,L,qt,te,J,K,V)}else{var ut=(J*qt+V*xe)/z;B(F,Pt,xe,U,J,K,ut),B(Pt,L,qt,U,ut,K,V)}})(0,T,n.value,i,o,s,l)}function wv(n,i,o,s,l){(1&n.depth?uc:Yh)(n,i,o,s,l)}const Eg=function n(i){function o(s,l,p,b,v){if((T=s._squarify)&&T.ratio===i)for(var T,N,B,F,L,z=-1,U=T.length,J=s.value;++z<U;){for(B=(N=T[z]).children,F=N.value=0,L=B.length;F<L;++F)N.value+=B[F].value;N.dice?Yh(N,l,p,b,p+=(v-p)*N.value/J):uc(N,l,p,l+=(b-l)*N.value/J,v),J-=N.value}else s._squarify=T=Uh(i,s,l,p,b,v),T.ratio=i}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(Zu);function g5(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}function s0(n,i){var o=Aa(+n,+i);return function(s){var l=o(s);return l-360*Math.floor(l/360)}}function Sg(n,i){return n=+n,i=+i,function(o){return Math.round(n*(1-o)+i*o)}}var Qu=Math.SQRT2;function kv(n){return((n=Math.exp(n))+1/n)/2}function c0(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,L=B*B+F*F;if(L<1e-12)s=Math.log(N/b)/Qu,o=function(ot){return[l+ot*B,p+ot*F,b*Math.exp(Qu*ot*s)]};else{var z=Math.sqrt(L),U=(N*N-b*b+4*L)/(2*b*2*z),J=(N*N-b*b-4*L)/(2*N*2*z),K=Math.log(Math.sqrt(U*U+1)-U),V=Math.log(Math.sqrt(J*J+1)-J);s=(V-K)/Qu,o=function(ot){var it,dt=ot*s,Pt=kv(K),Gt=b/(2*z)*(Pt*(it=Qu*dt+K,((it=Math.exp(2*it))-1)/(it+1))-function(re){return((re=Math.exp(re))-1/re)/2}(K));return[l+Gt*B,p+Gt*F,b*Pt/kv(Qu*dt+K)]}}return o.duration=1e3*s,o}function Ag(n){return function(i,o){var s=n((i=pu(i)).h,(o=pu(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 y5=Ag(Aa);var m5=Ag(gi);function u0(n,i){var o=gi((n=Jl(n)).l,(i=Jl(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 l0(n){return function(i,o){var s=n((i=Xs(i)).h,(o=Xs(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 es=l0(Aa);var Do=l0(gi);function Ss(n){return function i(o){function s(l,p){var b=n((l=ha(l)).h,(p=ha(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 h0=Ss(Aa);var Hh=Ss(gi);function Mg(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 Cv(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 v5(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 b5(n,i,o){return(i[0]-n[0])*(o[1]-n[1])-(i[1]-n[1])*(o[0]-n[0])}function _5(n,i){return n[0]-i[0]||n[1]-i[1]}function Ev(n){for(var i=n.length,o=[0,1],s=2,l=2;l<i;++l){for(;s>1&&b5(n[o[s-2]],n[o[s-1]],n[l])<=0;)--s;o[s++]=l}return o.slice(0,s)}function Ng(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(_5),i=0;i<o;++i)l[i]=[s[i][0],-s[i][1]];var p=Ev(s),b=Ev(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 Dg(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 ns(){return Math.random()}const f0=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}(ns),$h=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}(ns),Ku=function n(i){function o(){var s=$h.source(i).apply(this,arguments);return function(){return Math.exp(s())}}return o.source=n,o}(ns),Ju=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}(ns),rs=function n(i){function o(s){var l=Ju.source(i)(s);return function(){return l()/s}}return o.source=n,o}(ns),x5=function n(i){function o(s){return function(){return-Math.log(1-i())/s}}return o.source=n,o}(ns);function Lo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function As(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,d0=Av.map,zc=Av.slice,Lg={name:"implicit"};function p0(){var n=vs(),i=[],o=[],s=Lg;function l(p){var b=p+"",v=n.get(b);if(!v){if(s!==Lg)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=vs();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=zc.call(p),l):o.slice()},l.unknown=function(p){return arguments.length?(s=p,l):s},l.copy=function(){return p0(i,o).unknown(s)},Lo.apply(l,arguments),l}function g0(){var n,i,o=p0().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,L=p[1]<p[0],z=p[L-0],U=p[1-L];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 J=bt(F).map(function(K){return z+n*K});return l(L?J.reverse():J)}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 g0(s(),p).round(b).paddingInner(v).paddingOuter(T).align(N)},Lo.apply(B(),arguments)}function Bg(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return Bg(i())},n}function Wh(){return Bg(g0.apply(null,arguments).paddingInner(1))}function y0(n){return+n}var Vh=[0,1];function Vi(n){return n}function Gh(n,i){return(i-=n=+n)?function(s){return(s-n)/i}:(o=isNaN(i)?NaN:.5,function(){return o});var o}function Oa(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=Gh(l,s),p=o(b,p)):(s=Gh(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]=Gh(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 Uc(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xh(){var n,i,o,s,l,p,b=Vh,v=Vh,T=Cc,N=Vi;function B(){return s=Math.min(b.length,v.length)>2?Nv:Mv,l=p=null,F}function F(L){return isNaN(L=+L)?o:(l||(l=s(b.map(n),v,T)))(n(N(L)))}return F.invert=function(L){return N(i((p||(p=s(v,b.map(n),ca)))(L)))},F.domain=function(L){return arguments.length?(b=d0.call(L,y0),N===Vi||(N=Oa(b)),B()):b.slice()},F.range=function(L){return arguments.length?(v=zc.call(L),B()):v.slice()},F.rangeRound=function(L){return v=zc.call(L),T=Sg,B()},F.clamp=function(L){return arguments.length?(N=L?Oa(b):Vi,F):N!==Vi},F.interpolate=function(L){return arguments.length?(T=L,B()):T},F.unknown=function(L){return arguments.length?(o=L,F):o},function(L,z){return n=L,i=z,B()}}function Og(n,i){return Xh()(n,i)}function Bo(n,i,o,s){var l,p=lt(n,i,o);switch((s=uh(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),Dp(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=Lp(p))||(s.precision=l-2*(s.type==="%"))}return y1(s)}function Ms(n){var i=n.domain;return n.ticks=function(o){var s=i();return Lt(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=tt(v,T,o))>0?s=tt(v=Math.floor(v/s)*s,T=Math.ceil(T/s)*s,o):s<0&&(s=tt(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 Ig(){var n=Og(Vi,Vi);return n.copy=function(){return Uc(n,Ig())},Lo.apply(n,arguments),Ms(n)}function Rg(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=d0.call(s,y0),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Rg(n).unknown(i)},n=arguments.length?d0.call(n,y0):[0,1],Ms(o)}function Fg(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 m0(n){return Math.log(n)}function v0(n){return Math.exp(n)}function w5(n){return-Math.log(-n)}function Dv(n){return-Math.exp(-n)}function k5(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Lv(n){return function(i){return-n(-i)}}function Pg(n){var i,o,s=n(m0,v0),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?k5:v===Math.E?Math.exp:function(T){return Math.pow(v,T)}}(p),l()[0]<0?(i=Lv(i),o=Lv(o),n(w5,Dv)):n(m0,v0),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)&&(J=B,B=F,F=J);var L,z,U,J=i(B),K=i(F),V=v==null?10:+v,ot=[];if(!(p%1)&&K-J<V){if(J=Math.round(J)-1,K=Math.round(K)+1,B>0){for(;J<K;++J)for(z=1,L=o(J);z<p;++z)if(!((U=L*z)<B)){if(U>F)break;ot.push(U)}}else for(;J<K;++J)for(z=p-1,L=o(J);z>=1;--z)if(!((U=L*z)<B)){if(U>F)break;ot.push(U)}}else ot=Lt(J,K,Math.min(K-J,V)).map(o);return T?ot.reverse():ot},s.tickFormat=function(v,T){if(T==null&&(T=p===10?".0e":","),typeof T!="function"&&(T=y1(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(Fg(l(),{floor:function(v){return o(Math.floor(i(v)))},ceil:function(v){return o(Math.ceil(i(v)))}}))},s}function Bv(){var n=Pg(Xh()).domain([1,10]);return n.copy=function(){return Uc(n,Bv()).base(n.base())},Lo.apply(n,arguments),n}function Ov(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 jg(n){var i=1,o=n(Ov(i),Iv(i));return o.constant=function(s){return arguments.length?n(Ov(i=+s),Iv(i)):i},Ms(o)}function Rv(){var n=jg(Xh());return n.copy=function(){return Uc(n,Rv()).constant(n.constant())},Lo.apply(n,arguments)}function Fv(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function T5(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function C5(n){return n<0?-n*n:n*n}function Yg(n){var i=n(Vi,Vi),o=1;function s(){return o===1?n(Vi,Vi):o===.5?n(T5,C5):n(Fv(o),Fv(1/o))}return i.exponent=function(l){return arguments.length?(o=+l,s()):o},Ms(i)}function zg(){var n=Yg(Xh());return n.copy=function(){return Uc(n,zg()).exponent(n.exponent())},Lo.apply(n,arguments),n}function E5(){return zg.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]=G(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(h),l()},p.range=function(b){return arguments.length?(o=zc.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)},Lo.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=zc.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)},Lo.apply(Ms(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=zc.call(p),s=Math.min(i.length,o.length-1),l):i.slice()},l.range=function(p){return arguments.length?(o=zc.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)},Lo.apply(l,arguments)}var b0=new Date,Ug=new Date;function Ai(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 Ai(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 b0.setTime(+p),Ug.setTime(+b),n(b0),n(Ug),Math.floor(o(b0,Ug))},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 qg=Ai(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()});qg.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ai(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 qc=qg;var S5=qg.range,is=Ai(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 Hg=is;var Ns=is.range,_0=1e3,Hc=6e4,Zh=36e5,$g=864e5,Wg=6048e5;function $c(n){return Ai(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())*Hc)/Wg})}var Wc=$c(0),tl=$c(1),x0=$c(2),zv=$c(3),Ds=$c(4),el=$c(5),Ls=$c(6),Vg=Wc.range,w0=tl.range,Gg=x0.range,A5=zv.range,k0=Ds.range,nl=el.range,Uv=Ls.range,Za=Ai(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())*Hc)/$g},function(n){return n.getDate()-1});const ei=Za;var rl=Za.range,T0=Ai(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*_0-n.getMinutes()*Hc)},function(n,i){n.setTime(+n+i*Zh)},function(n,i){return(i-n)/Zh},function(n){return n.getHours()});const qv=T0;var Oo=T0.range,hc=Ai(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*_0)},function(n,i){n.setTime(+n+i*Hc)},function(n,i){return(i-n)/Hc},function(n){return n.getMinutes()});const Qh=hc;var C0=hc.range,E0=Ai(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*_0)},function(n,i){return(i-n)/_0},function(n){return n.getUTCSeconds()});const il=E0;var Hv=E0.range,S0=Ai(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});S0.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ai(function(i){i.setTime(Math.floor(i/n)*n)},function(i,o){i.setTime(+i+o*n)},function(i,o){return(o-i)/n}):S0:null};const al=S0;var $v=S0.range;function Vc(n){return Ai(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)/Wg})}var Kh=Vc(0),fc=Vc(1),Xg=Vc(2),Wv=Vc(3),dc=Vc(4),Zg=Vc(5),Gc=Vc(6),Vv=Kh.range,Gv=fc.range,Xv=Xg.range,Zv=Wv.range,Qv=dc.range,Bs=Zg.range,A0=Gc.range,Kv=Ai(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/$g},function(n){return n.getUTCDate()-1});const Jh=Kv;var Gi=Kv.range,jn=Ai(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()});jn.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ai(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 Ot=jn;var ba=jn.range;function tf(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 Qg(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 ef(n,i,o){return{y:n,m:i,d:o,H:0,M:0,S:0,L:0}}function M0(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=as(l),B=Xc(l),F=as(p),L=Xc(p),z=as(b),U=Xc(b),J=as(v),K=Xc(v),V=as(T),ot=Xc(T),it={a:function(qt){return b[qt.getDay()]},A:function(qt){return p[qt.getDay()]},b:function(qt){return T[qt.getMonth()]},B:function(qt){return v[qt.getMonth()]},c:null,d:Io,e:Io,f:o3,g:Qn,G:u3,H:cl,I:pc,j:a3,L:a2,m:ji,M:R5,p:function(qt){return l[+(qt.getHours()>=12)]},q:function(qt){return 1+~~(qt.getMonth()/3)},Q:d3,s:ul,S:F5,u:P5,U:I0,V:s3,w:Ia,W:F0,x:null,X:null,y:c3,Y:o2,Z:rf,"%":H0},dt={a:function(qt){return b[qt.getUTCDay()]},A:function(qt){return p[qt.getUTCDay()]},b:function(qt){return T[qt.getUTCMonth()]},B:function(qt){return v[qt.getUTCMonth()]},c:null,d:Mi,e:Mi,f:Wt,g:sf,G:q0,H:af,I:P0,j:j0,L:s2,m:j5,M:l3,p:function(qt){return l[+(qt.getUTCHours()>=12)]},q:function(qt){return 1+~~(qt.getUTCMonth()/3)},Q:d3,s:ul,S:Y0,u:c2,U:u2,V:Ni,w:h3,W:U0,x:null,X:null,y:of,Y:l2,Z:f3,"%":H0},Pt={a:function(qt,te,ut){var Ct=z.exec(te.slice(ut));return Ct?(qt.w=U[Ct[0].toLowerCase()],ut+Ct[0].length):-1},A:function(qt,te,ut){var Ct=F.exec(te.slice(ut));return Ct?(qt.w=L[Ct[0].toLowerCase()],ut+Ct[0].length):-1},b:function(qt,te,ut){var Ct=V.exec(te.slice(ut));return Ct?(qt.m=ot[Ct[0].toLowerCase()],ut+Ct[0].length):-1},B:function(qt,te,ut){var Ct=J.exec(te.slice(ut));return Ct?(qt.m=K[Ct[0].toLowerCase()],ut+Ct[0].length):-1},c:function(qt,te,ut){return xe(qt,i,te,ut)},d:r2,e:r2,f:I5,g:t3,G:Jv,H:nf,I:nf,j:i2,L:O5,m:n3,M:B5,p:function(qt,te,ut){var Ct=N.exec(te.slice(ut));return Ct?(qt.p=B[Ct[0].toLowerCase()],ut+Ct[0].length):-1},q:uo,Q:i3,s:O0,S:B0,u:n2,U:sl,V:D5,w:e2,W:L5,x:function(qt,te,ut){return xe(qt,o,te,ut)},X:function(qt,te,ut){return xe(qt,s,te,ut)},y:t3,Y:Jv,Z:e3,"%":r3};function Gt(qt,te){return function(ut){var Ct,ce,ee,ue=[],Fe=-1,Ge=0,vn=qt.length;for(ut instanceof Date||(ut=new Date(+ut));++Fe<vn;)qt.charCodeAt(Fe)===37&&(ue.push(qt.slice(Ge,Fe)),(ce=L0[Ct=qt.charAt(++Fe)])!=null?Ct=qt.charAt(++Fe):ce=Ct==="e"?" ":"0",(ee=te[Ct])&&(Ct=ee(ut,ce)),ue.push(Ct),Ge=Fe+1);return ue.push(qt.slice(Ge,Fe)),ue.join("")}}function re(qt,te){return function(ut){var Ct,ce,ee=ef(1900,void 0,1);if(xe(ee,qt,ut+="",0)!=ut.length)return null;if("Q"in ee)return new Date(ee.Q);if("s"in ee)return new Date(1e3*ee.s+("L"in ee?ee.L:0));if(te&&!("Z"in ee)&&(ee.Z=0),"p"in ee&&(ee.H=ee.H%12+12*ee.p),ee.m===void 0&&(ee.m="q"in ee?ee.q:0),"V"in ee){if(ee.V<1||ee.V>53)return null;"w"in ee||(ee.w=1),"Z"in ee?(ce=(Ct=Qg(ef(ee.y,0,1))).getUTCDay(),Ct=ce>4||ce===0?fc.ceil(Ct):fc(Ct),Ct=Jh.offset(Ct,7*(ee.V-1)),ee.y=Ct.getUTCFullYear(),ee.m=Ct.getUTCMonth(),ee.d=Ct.getUTCDate()+(ee.w+6)%7):(ce=(Ct=tf(ef(ee.y,0,1))).getDay(),Ct=ce>4||ce===0?tl.ceil(Ct):tl(Ct),Ct=ei.offset(Ct,7*(ee.V-1)),ee.y=Ct.getFullYear(),ee.m=Ct.getMonth(),ee.d=Ct.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ce="Z"in ee?Qg(ef(ee.y,0,1)).getUTCDay():tf(ef(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+7*ee.W-(ce+5)%7:ee.w+7*ee.U-(ce+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Qg(ee)):tf(ee)}}function xe(qt,te,ut,Ct){for(var ce,ee,ue=0,Fe=te.length,Ge=ut.length;ue<Fe;){if(Ct>=Ge)return-1;if((ce=te.charCodeAt(ue++))===37){if(ce=te.charAt(ue++),!(ee=Pt[ce in L0?te.charAt(ue++):ce])||(Ct=ee(qt,ut,Ct))<0)return-1}else if(ce!=ut.charCodeAt(Ct++))return-1}return Ct}return it.x=Gt(o,it),it.X=Gt(s,it),it.c=Gt(i,it),dt.x=Gt(o,dt),dt.X=Gt(s,dt),dt.c=Gt(i,dt),{format:function(qt){var te=Gt(qt+="",it);return te.toString=function(){return qt},te},parse:function(qt){var te=re(qt+="",!1);return te.toString=function(){return qt},te},utcFormat:function(qt){var te=Gt(qt+="",dt);return te.toString=function(){return qt},te},utcParse:function(qt){var te=re(qt+="",!0);return te.toString=function(){return qt},te}}}var ol,Kg,N0,D0,Jg,L0={"-":"",_:" ",0:"0"},Pi=/^\s*\d+/,M5=/^%/,t2=/[\\^$*+?|[\]().{}]/g;function wr(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 N5(n){return n.replace(t2,"\\$&")}function as(n){return new RegExp("^(?:"+n.map(N5).join("|")+")","i")}function Xc(n){for(var i={},o=-1,s=n.length;++o<s;)i[n[o].toLowerCase()]=o;return i}function e2(n,i,o){var s=Pi.exec(i.slice(o,o+1));return s?(n.w=+s[0],o+s[0].length):-1}function n2(n,i,o){var s=Pi.exec(i.slice(o,o+1));return s?(n.u=+s[0],o+s[0].length):-1}function sl(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.U=+s[0],o+s[0].length):-1}function D5(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.V=+s[0],o+s[0].length):-1}function L5(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.W=+s[0],o+s[0].length):-1}function Jv(n,i,o){var s=Pi.exec(i.slice(o,o+4));return s?(n.y=+s[0],o+s[0].length):-1}function t3(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.y=+s[0]+(+s[0]>68?1900:2e3),o+s[0].length):-1}function e3(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 uo(n,i,o){var s=Pi.exec(i.slice(o,o+1));return s?(n.q=3*s[0]-3,o+s[0].length):-1}function n3(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.m=s[0]-1,o+s[0].length):-1}function r2(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.d=+s[0],o+s[0].length):-1}function i2(n,i,o){var s=Pi.exec(i.slice(o,o+3));return s?(n.m=0,n.d=+s[0],o+s[0].length):-1}function nf(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.H=+s[0],o+s[0].length):-1}function B5(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.M=+s[0],o+s[0].length):-1}function B0(n,i,o){var s=Pi.exec(i.slice(o,o+2));return s?(n.S=+s[0],o+s[0].length):-1}function O5(n,i,o){var s=Pi.exec(i.slice(o,o+3));return s?(n.L=+s[0],o+s[0].length):-1}function I5(n,i,o){var s=Pi.exec(i.slice(o,o+6));return s?(n.L=Math.floor(s[0]/1e3),o+s[0].length):-1}function r3(n,i,o){var s=M5.exec(i.slice(o,o+1));return s?o+s[0].length:-1}function i3(n,i,o){var s=Pi.exec(i.slice(o));return s?(n.Q=+s[0],o+s[0].length):-1}function O0(n,i,o){var s=Pi.exec(i.slice(o));return s?(n.s=+s[0],o+s[0].length):-1}function Io(n,i){return wr(n.getDate(),i,2)}function cl(n,i){return wr(n.getHours(),i,2)}function pc(n,i){return wr(n.getHours()%12||12,i,2)}function a3(n,i){return wr(1+ei.count(qc(n),n),i,3)}function a2(n,i){return wr(n.getMilliseconds(),i,3)}function o3(n,i){return a2(n,i)+"000"}function ji(n,i){return wr(n.getMonth()+1,i,2)}function R5(n,i){return wr(n.getMinutes(),i,2)}function F5(n,i){return wr(n.getSeconds(),i,2)}function P5(n){var i=n.getDay();return i===0?7:i}function I0(n,i){return wr(Wc.count(qc(n)-1,n),i,2)}function R0(n){var i=n.getDay();return i>=4||i===0?Ds(n):Ds.ceil(n)}function s3(n,i){return n=R0(n),wr(Ds.count(qc(n),n)+(qc(n).getDay()===4),i,2)}function Ia(n){return n.getDay()}function F0(n,i){return wr(tl.count(qc(n)-1,n),i,2)}function c3(n,i){return wr(n.getFullYear()%100,i,2)}function Qn(n,i){return wr((n=R0(n)).getFullYear()%100,i,2)}function o2(n,i){return wr(n.getFullYear()%1e4,i,4)}function u3(n,i){var o=n.getDay();return wr((n=o>=4||o===0?Ds(n):Ds.ceil(n)).getFullYear()%1e4,i,4)}function rf(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+wr(i/60|0,"0",2)+wr(i%60,"0",2)}function Mi(n,i){return wr(n.getUTCDate(),i,2)}function af(n,i){return wr(n.getUTCHours(),i,2)}function P0(n,i){return wr(n.getUTCHours()%12||12,i,2)}function j0(n,i){return wr(1+Jh.count(Ot(n),n),i,3)}function s2(n,i){return wr(n.getUTCMilliseconds(),i,3)}function Wt(n,i){return s2(n,i)+"000"}function j5(n,i){return wr(n.getUTCMonth()+1,i,2)}function l3(n,i){return wr(n.getUTCMinutes(),i,2)}function Y0(n,i){return wr(n.getUTCSeconds(),i,2)}function c2(n){var i=n.getUTCDay();return i===0?7:i}function u2(n,i){return wr(Kh.count(Ot(n)-1,n),i,2)}function z0(n){var i=n.getUTCDay();return i>=4||i===0?dc(n):dc.ceil(n)}function Ni(n,i){return n=z0(n),wr(dc.count(Ot(n),n)+(Ot(n).getUTCDay()===4),i,2)}function h3(n){return n.getUTCDay()}function U0(n,i){return wr(fc.count(Ot(n)-1,n),i,2)}function of(n,i){return wr(n.getUTCFullYear()%100,i,2)}function sf(n,i){return wr((n=z0(n)).getUTCFullYear()%100,i,2)}function l2(n,i){return wr(n.getUTCFullYear()%1e4,i,4)}function q0(n,i){var o=n.getUTCDay();return wr((n=o>=4||o===0?dc(n):dc.ceil(n)).getUTCFullYear()%1e4,i,4)}function f3(){return"+0000"}function H0(){return"%"}function d3(n){return+n}function ul(n){return Math.floor(+n/1e3)}function h2(n){return ol=M0(n),Kg=ol.format,N0=ol.parse,D0=ol.utcFormat,Jg=ol.utcParse,ol}h2({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 $0=31536e6;function os(n){return new Date(n)}function Y5(n){return n instanceof Date?+n:+new Date(+n)}function Zc(n,i,o,s,l,p,b,v,T){var N=Og(Vi,Vi),B=N.invert,F=N.domain,L=T(".%L"),z=T(":%S"),U=T("%I:%M"),J=T("%I %p"),K=T("%a %d"),V=T("%b %d"),ot=T("%B"),it=T("%Y"),dt=[[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,$0]];function Pt(re){return(b(re)<re?L:p(re)<re?z:l(re)<re?U:s(re)<re?J:i(re)<re?o(re)<re?K:V:n(re)<re?ot:it)(re)}function Gt(re,xe,qt,te){if(re==null&&(re=10),typeof re=="number"){var ut=Math.abs(qt-xe)/re,Ct=x(function(ce){return ce[2]}).right(dt,ut);Ct===dt.length?(te=lt(xe/$0,qt/$0,re),re=n):Ct?(te=(Ct=dt[ut/dt[Ct-1][2]<dt[Ct][2]/ut?Ct-1:Ct])[1],re=Ct[0]):(te=Math.max(lt(xe,qt,re),1),re=v)}return te==null?re:re.every(te)}return N.invert=function(re){return new Date(B(re))},N.domain=function(re){return arguments.length?F(d0.call(re,Y5)):F().map(os)},N.ticks=function(re,xe){var qt,te=F(),ut=te[0],Ct=te[te.length-1],ce=Ct<ut;return ce&&(qt=ut,ut=Ct,Ct=qt),qt=(qt=Gt(re,ut,Ct,xe))?qt.range(ut,Ct+1):[],ce?qt.reverse():qt},N.tickFormat=function(re,xe){return xe==null?Pt:T(xe)},N.nice=function(re,xe){var qt=F();return(re=Gt(re,qt[0],qt[qt.length-1],xe))?F(Fg(qt,re)):N},N.copy=function(){return Uc(N,Zc(n,i,o,s,l,p,b,v,T))},N}function z5(){return Lo.apply(Zc(qc,Hg,Wc,ei,qv,Qh,il,al,Kg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var _i=Ai(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 Qc=_i;var U5=_i.range,f2=Ai(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*Zh)},function(n,i){return(i-n)/Zh},function(n){return n.getUTCHours()});const W0=f2;var q5=f2.range,p3=Ai(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*Hc)},function(n,i){return(i-n)/Hc},function(n){return n.getUTCMinutes()});const g3=p3;var y3=p3.range;function ll(){return Lo.apply(Zc(Ot,Qc,Kh,Jh,W0,g3,il,al,D0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hl(){var n,i,o,s,l,p=0,b=1,v=Vi,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 gc(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function V0(){var n=Ms(hl()(Vi));return n.copy=function(){return gc(n,V0())},As.apply(n,arguments)}function cf(){var n=Pg(hl()).domain([1,10]);return n.copy=function(){return gc(n,cf()).base(n.base())},As.apply(n,arguments)}function uf(){var n=jg(hl());return n.copy=function(){return gc(n,uf()).constant(n.constant())},As.apply(n,arguments)}function G0(){var n=Yg(hl());return n.copy=function(){return gc(n,G0()).exponent(n.exponent())},As.apply(n,arguments)}function H5(){return G0.apply(null,arguments).exponent(.5)}function m3(){var n=[],i=Vi;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(h),o},o.interpolator=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return m3(i).domain(n)},As.apply(o,arguments)}function X0(){var n,i,o,s,l,p,b,v=0,T=.5,N=1,B=Vi,F=!1;function L(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 L.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),L):[v,T,N]},L.clamp=function(z){return arguments.length?(F=!!z,L):F},L.interpolator=function(z){return arguments.length?(B=z,L):B},L.unknown=function(z){return arguments.length?(b=z,L):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),L}}function Z0(){var n=Ms(X0()(Vi));return n.copy=function(){return gc(n,Z0())},As.apply(n,arguments)}function _a(){var n=Pg(X0()).domain([.1,1,10]);return n.copy=function(){return gc(n,_a()).base(n.base())},As.apply(n,arguments)}function Qi(){var n=jg(X0());return n.copy=function(){return gc(n,Qi()).constant(n.constant())},As.apply(n,arguments)}function ui(){var n=Yg(X0());return n.copy=function(){return gc(n,ui()).exponent(n.exponent())},As.apply(n,arguments)}function Os(){return ui.apply(null,arguments).exponent(.5)}function en(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 Ro=en("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),v3=en("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Q0=en("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),$5=en("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),W5=en("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),K0=en("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),b3=en("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),V5=en("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),G5=en("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),X5=en("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Yr(n){return yu(n[n.length-1])}var _3=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(en);const Z5=Yr(_3);var d2=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(en);const Q5=Yr(d2);var fl=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(en);const lf=Yr(fl);var ss=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(en);const Kc=Yr(ss);var hf=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(en);const x3=Yr(hf);var p2=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(en);const dl=Yr(p2);var g2=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(en);const K5=Yr(g2);var y2=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(en);const J0=Yr(y2);var Yi=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(en);const J5=Yr(Yi);var ff=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(en);const t6=Yr(ff);var m2=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(en);const e6=Yr(m2);var td=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(en);const w3=Yr(td);var v2=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(en);const df=Yr(v2);var ed=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(en);const b2=Yr(ed);var _2=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(en);const k3=Yr(_2);var xa=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(en);const n6=Yr(xa);var x2=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(en);const Is=Yr(x2);var Rs=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(en);const w2=Yr(Rs);var Ir=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(en);const T3=Yr(Ir);var k2=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(en);const C3=Yr(k2);var E3=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(en);const T2=Yr(E3);var nd=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(en);const Fs=Yr(nd);var pf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(en);const r6=Yr(pf);var C2=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(en);const pl=Yr(C2);var ni=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(en);const Jc=Yr(ni);var tu=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(en);const cs=Yr(tu);var gf=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(en);const E2=Yr(gf);function S2(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 A2=Hh(ha(300,.5,0),ha(-240,.5,1));var rd=Hh(ha(-100,.75,.35),ha(80,1.5,.8)),id=Hh(ha(260,.75,.35),ha(80,1.5,.8)),ad=ha();function M2(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return ad.h=360*n-100,ad.s=1.5-1.5*i,ad.l=.8-.9*i,ad+""}var yf=Ii(),i6=Math.PI/3,N2=2*Math.PI/3;function S3(n){var i;return n=(.5-n)*Math.PI,yf.r=255*(i=Math.sin(n))*i,yf.g=255*(i=Math.sin(n+i6))*i,yf.b=255*(i=Math.sin(n+N2))*i,yf+""}function a6(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 mf(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}const A3=mf(en("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var nr=mf(en("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o6=mf(en("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),od=mf(en("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function s6(n){return $r(fi(n).call(document.documentElement))}var Qa=0;function M3(){return new sd}function sd(){this._="@"+(++Qa).toString(36)}function c6(n){return typeof n=="string"?new Dn([document.querySelectorAll(n)],[document.documentElement]):new Dn([n==null?[]:n],qi)}function u6(n,i){i==null&&(i=qa().touches);for(var o=0,s=i?i.length:0,l=new Array(s);o<s;++o)l[o]=Ec(n,i[o]);return l}function or(n){return function(){return n}}sd.prototype=M3.prototype={constructor:sd,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 N3=Math.abs,Ki=Math.atan2,eu=Math.cos,l6=Math.max,D2=Math.min,us=Math.sin,gl=Math.sqrt,Ji=1e-12,ta=Math.PI,cd=ta/2,Ps=2*ta;function D3(n){return n>1?0:n<-1?ta:Math.acos(n)}function L3(n){return n>=1?cd:n<=-1?-cd:Math.asin(n)}function B3(n){return n.innerRadius}function O3(n){return n.outerRadius}function h6(n){return n.startAngle}function L2(n){return n.endAngle}function B2(n){return n&&n.padAngle}function ud(n,i,o,s,l,p,b,v){var T=o-n,N=s-i,B=b-l,F=v-p,L=F*T-B*N;if(!(L*L<Ji))return[n+(L=(B*(i-p)-F*(n-l))/L)*T,i+L*N]}function Ka(n,i,o,s,l,p,b){var v=n-o,T=i-s,N=(b?p:-p)/gl(v*v+T*T),B=N*T,F=-N*v,L=n+B,z=i+F,U=o+B,J=s+F,K=(L+U)/2,V=(z+J)/2,ot=U-L,it=J-z,dt=ot*ot+it*it,Pt=l-p,Gt=L*J-U*z,re=(it<0?-1:1)*gl(l6(0,Pt*Pt*dt-Gt*Gt)),xe=(Gt*it-ot*re)/dt,qt=(-Gt*ot-it*re)/dt,te=(Gt*it+ot*re)/dt,ut=(-Gt*ot+it*re)/dt,Ct=xe-K,ce=qt-V,ee=te-K,ue=ut-V;return Ct*Ct+ce*ce>ee*ee+ue*ue&&(xe=te,qt=ut),{cx:xe,cy:qt,x01:-B,y01:-F,x11:xe*(l/Pt-1),y11:qt*(l/Pt-1)}}function O2(){var n=B3,i=O3,o=or(0),s=null,l=h6,p=L2,b=B2,v=null;function T(){var N,B,F=+n.apply(this,arguments),L=+i.apply(this,arguments),z=l.apply(this,arguments)-cd,U=p.apply(this,arguments)-cd,J=N3(U-z),K=U>z;if(v||(v=N=ms()),L<F&&(B=L,L=F,F=B),L>Ji)if(J>Ps-Ji)v.moveTo(L*eu(z),L*us(z)),v.arc(0,0,L,z,U,!K),F>Ji&&(v.moveTo(F*eu(U),F*us(U)),v.arc(0,0,F,U,z,K));else{var V,ot,it=z,dt=U,Pt=z,Gt=U,re=J,xe=J,qt=b.apply(this,arguments)/2,te=qt>Ji&&(s?+s.apply(this,arguments):gl(F*F+L*L)),ut=D2(N3(L-F)/2,+o.apply(this,arguments)),Ct=ut,ce=ut;if(te>Ji){var ee=L3(te/F*us(qt)),ue=L3(te/L*us(qt));(re-=2*ee)>Ji?(Pt+=ee*=K?1:-1,Gt-=ee):(re=0,Pt=Gt=(z+U)/2),(xe-=2*ue)>Ji?(it+=ue*=K?1:-1,dt-=ue):(xe=0,it=dt=(z+U)/2)}var Fe=L*eu(it),Ge=L*us(it),vn=F*eu(Gt),Wn=F*us(Gt);if(ut>Ji){var tr,tn=L*eu(dt),rr=L*us(dt),Mn=F*eu(Pt),En=F*us(Pt);if(J<ta&&(tr=ud(Fe,Ge,Mn,En,tn,rr,vn,Wn))){var Zn=Fe-tr[0],Xi=Ge-tr[1],vi=tn-tr[0],hs=rr-tr[1],qs=1/us(D3((Zn*vi+Xi*hs)/(gl(Zn*Zn+Xi*Xi)*gl(vi*vi+hs*hs)))/2),Fl=gl(tr[0]*tr[0]+tr[1]*tr[1]);Ct=D2(ut,(F-Fl)/(qs-1)),ce=D2(ut,(L-Fl)/(qs+1))}}xe>Ji?ce>Ji?(V=Ka(Mn,En,Fe,Ge,L,ce,K),ot=Ka(tn,rr,vn,Wn,L,ce,K),v.moveTo(V.cx+V.x01,V.cy+V.y01),ce<ut?v.arc(V.cx,V.cy,ce,Ki(V.y01,V.x01),Ki(ot.y01,ot.x01),!K):(v.arc(V.cx,V.cy,ce,Ki(V.y01,V.x01),Ki(V.y11,V.x11),!K),v.arc(0,0,L,Ki(V.cy+V.y11,V.cx+V.x11),Ki(ot.cy+ot.y11,ot.cx+ot.x11),!K),v.arc(ot.cx,ot.cy,ce,Ki(ot.y11,ot.x11),Ki(ot.y01,ot.x01),!K))):(v.moveTo(Fe,Ge),v.arc(0,0,L,it,dt,!K)):v.moveTo(Fe,Ge),F>Ji&&re>Ji?Ct>Ji?(V=Ka(vn,Wn,tn,rr,F,-Ct,K),ot=Ka(Fe,Ge,Mn,En,F,-Ct,K),v.lineTo(V.cx+V.x01,V.cy+V.y01),Ct<ut?v.arc(V.cx,V.cy,Ct,Ki(V.y01,V.x01),Ki(ot.y01,ot.x01),!K):(v.arc(V.cx,V.cy,Ct,Ki(V.y01,V.x01),Ki(V.y11,V.x11),!K),v.arc(0,0,F,Ki(V.cy+V.y11,V.cx+V.x11),Ki(ot.cy+ot.y11,ot.cx+ot.x11),K),v.arc(ot.cx,ot.cy,Ct,Ki(ot.y11,ot.x11),Ki(ot.y01,ot.x01),!K))):v.arc(0,0,F,Gt,Pt,K):v.lineTo(vn,Wn)}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-ta/2;return[eu(B)*N,us(B)*N]},T.innerRadius=function(N){return arguments.length?(n=typeof N=="function"?N:or(+N),T):n},T.outerRadius=function(N){return arguments.length?(i=typeof N=="function"?N:or(+N),T):i},T.cornerRadius=function(N){return arguments.length?(o=typeof N=="function"?N:or(+N),T):o},T.padRadius=function(N){return arguments.length?(s=N==null?null:typeof N=="function"?N:or(+N),T):s},T.startAngle=function(N){return arguments.length?(l=typeof N=="function"?N:or(+N),T):l},T.endAngle=function(N){return arguments.length?(p=typeof N=="function"?N:or(+N),T):p},T.padAngle=function(N){return arguments.length?(b=typeof N=="function"?N:or(+N),T):b},T.context=function(N){return arguments.length?(v=N==null?null:N,T):v},T}function ld(n){this._context=n}function yc(n){return new ld(n)}function nu(n){return n[0]}function vf(n){return n[1]}function bf(){var n=nu,i=vf,o=or(!0),s=null,l=yc,p=null;function b(v){var T,N,B,F=v.length,L=!1;for(s==null&&(p=l(B=ms())),T=0;T<=F;++T)!(T<F&&o(N=v[T],T,v))===L&&((L=!L)?p.lineStart():p.lineEnd()),L&&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:or(+v),b):n},b.y=function(v){return arguments.length?(i=typeof v=="function"?v:or(+v),b):i},b.defined=function(v){return arguments.length?(o=typeof v=="function"?v:or(!!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 hd(){var n=nu,i=null,o=or(0),s=vf,l=or(!0),p=null,b=yc,v=null;function T(B){var F,L,z,U,J,K=B.length,V=!1,ot=new Array(K),it=new Array(K);for(p==null&&(v=b(J=ms())),F=0;F<=K;++F){if(!(F<K&&l(U=B[F],F,B))===V)if(V=!V)L=F,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),z=F-1;z>=L;--z)v.point(ot[z],it[z]);v.lineEnd(),v.areaEnd()}V&&(ot[F]=+n(U,F,B),it[F]=+o(U,F,B),v.point(i?+i(U,F,B):ot[F],s?+s(U,F,B):it[F]))}if(J)return v=null,J+""||null}function N(){return bf().defined(l).curve(b).context(p)}return T.x=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),i=null,T):n},T.x0=function(B){return arguments.length?(n=typeof B=="function"?B:or(+B),T):n},T.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:or(+B),T):i},T.y=function(B){return arguments.length?(o=typeof B=="function"?B:or(+B),s=null,T):o},T.y0=function(B){return arguments.length?(o=typeof B=="function"?B:or(+B),T):o},T.y1=function(B){return arguments.length?(s=B==null?null:typeof B=="function"?B:or(+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:or(!!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 I2(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function yl(n){return n}function I3(){var n=yl,i=I2,o=null,s=or(0),l=or(Ps),p=or(0);function b(v){var T,N,B,F,L,z=v.length,U=0,J=new Array(z),K=new Array(z),V=+s.apply(this,arguments),ot=Math.min(Ps,Math.max(-Ps,l.apply(this,arguments)-V)),it=Math.min(Math.abs(ot)/z,p.apply(this,arguments)),dt=it*(ot<0?-1:1);for(T=0;T<z;++T)(L=K[J[T]=T]=+n(v[T],T,v))>0&&(U+=L);for(i!=null?J.sort(function(Pt,Gt){return i(K[Pt],K[Gt])}):o!=null&&J.sort(function(Pt,Gt){return o(v[Pt],v[Gt])}),T=0,B=U?(ot-z*dt)/U:0;T<z;++T,V=F)N=J[T],F=V+((L=K[N])>0?L*B:0)+dt,K[N]={data:v[N],index:T,value:L,startAngle:V,endAngle:F,padAngle:it};return K}return b.value=function(v){return arguments.length?(n=typeof v=="function"?v:or(+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:or(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:or(+v),b):l},b.padAngle=function(v){return arguments.length?(p=typeof v=="function"?v:or(+v),b):p},b}ld.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 _f=xf(yc);function ml(n){this._curve=n}function xf(n){function i(o){return new ml(n(o))}return i._curve=n,i}function ru(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(xf(o)):i()._curve},n}function R2(){return ru(bf().curve(_f))}function F2(){var n=hd().curve(_f),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 ru(o())},delete n.lineX0,n.lineEndAngle=function(){return ru(s())},delete n.lineX1,n.lineInnerRadius=function(){return ru(l())},delete n.lineY0,n.lineOuterRadius=function(){return ru(p())},delete n.lineY1,n.curve=function(b){return arguments.length?i(xf(b)):i()._curve},n}function wf(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}ml.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 kf=Array.prototype.slice;function R3(n){return n.source}function F3(n){return n.target}function fd(n){var i=R3,o=F3,s=nu,l=vf,p=null;function b(){var v,T=kf.call(arguments),N=i.apply(this,T),B=o.apply(this,T);if(p||(p=v=ms()),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:or(+v),b):s},b.y=function(v){return arguments.length?(l=typeof v=="function"?v:or(+v),b):l},b.context=function(v){return arguments.length?(p=v==null?null:v,b):p},b}function vl(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i=(i+s)/2,o,i,l,s,l)}function xi(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i,o=(o+l)/2,s,o,s,l)}function P3(n,i,o,s,l){var p=wf(i,o),b=wf(i,o=(o+l)/2),v=wf(s,o),T=wf(s,l);n.moveTo(p[0],p[1]),n.bezierCurveTo(b[0],b[1],v[0],v[1],T[0],T[1])}function bl(){return fd(vl)}function j3(){return fd(xi)}function Y3(){var n=fd(P3);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const dd={draw:function(n,i){var o=Math.sqrt(i/ta);n.moveTo(o,0),n.arc(0,0,o,0,Ps)}},iu={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 P2=Math.sqrt(1/3),mc=2*P2;const Ja={draw:function(n,i){var o=Math.sqrt(i/mc),s=o*P2;n.moveTo(0,-o),n.lineTo(s,0),n.lineTo(0,o),n.lineTo(-s,0),n.closePath()}};var z3=Math.sin(ta/10)/Math.sin(7*ta/10),f6=Math.sin(Ps/10)*z3,U3=-Math.cos(Ps/10)*z3;const Ra={draw:function(n,i){var o=Math.sqrt(.8908130915292852*i),s=f6*o,l=U3*o;n.moveTo(0,-o),n.lineTo(s,l);for(var p=1;p<5;++p){var b=Ps*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()}},to={draw:function(n,i){var o=Math.sqrt(i),s=-o/2;n.rect(s,s,o,o)}};var Di=Math.sqrt(3);const lo={draw:function(n,i){var o=-Math.sqrt(i/(3*Di));n.moveTo(0,2*o),n.lineTo(-Di*o,-o),n.lineTo(Di*o,-o),n.closePath()}};var eo=-.5,ea=Math.sqrt(3)/2,pd=1/Math.sqrt(12),q3=3*(pd/2+1);const j2={draw:function(n,i){var o=Math.sqrt(i/q3),s=o/2,l=o*pd,p=s,b=o*pd+o,v=-p,T=b;n.moveTo(s,l),n.lineTo(p,b),n.lineTo(v,T),n.lineTo(eo*s-ea*l,ea*s+eo*l),n.lineTo(eo*p-ea*b,ea*p+eo*b),n.lineTo(eo*v-ea*T,ea*v+eo*T),n.lineTo(eo*s+ea*l,eo*l-ea*s),n.lineTo(eo*p+ea*b,eo*b-ea*p),n.lineTo(eo*v+ea*T,eo*T-ea*v),n.closePath()}};var H3=[dd,iu,Ja,to,Ra,lo,j2];function $3(){var n=or(dd),i=or(64),o=null;function s(){var l;if(o||(o=l=ms()),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:or(l),s):n},s.size=function(l){return arguments.length?(i=typeof l=="function"?l:or(+l),s):i},s.context=function(l){return arguments.length?(o=l==null?null:l,s):o},s}function js(){}function _l(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 vc(n){this._context=n}function d6(n){return new vc(n)}function Y2(n){this._context=n}function Tf(n){return new Y2(n)}function wa(n){this._context=n}function xl(n){return new wa(n)}function wl(n,i){this._basis=new vc(n),this._beta=i}vc.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:_l(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:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},Y2.prototype={areaStart:js,areaEnd:js,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:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},wa.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:_l(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},wl.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 gd=function n(i){function o(s){return i===1?new vc(s):new wl(s,i)}return o.beta=function(s){return n(+s)},o}(.85);function Cf(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 yd(n,i){this._context=n,this._k=(1-i)/6}yd.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:Cf(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:Cf(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 p6=function n(i){function o(s){return new yd(s,i)}return o.tension=function(s){return n(+s)},o}(0);function md(n,i){this._context=n,this._k=(1-i)/6}md.prototype={areaStart:js,areaEnd:js,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:Cf(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 W3=function n(i){function o(s){return new md(s,i)}return o.tension=function(s){return n(+s)},o}(0);function vd(n,i){this._context=n,this._k=(1-i)/6}vd.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:Cf(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 g6=function n(i){function o(s){return new vd(s,i)}return o.tension=function(s){return n(+s)},o}(0);function bd(n,i,o){var s=n._x1,l=n._y1,p=n._x2,b=n._y2;if(n._l01_a>Ji){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>Ji){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 V3(n,i){this._context=n,this._alpha=i}V3.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:bd(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 G3=function n(i){function o(s){return i?new V3(s,i):new yd(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function X3(n,i){this._context=n,this._alpha=i}X3.prototype={areaStart:js,areaEnd:js,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:bd(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 Z3=function n(i){function o(s){return i?new X3(s,i):new md(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function Ef(n,i){this._context=n,this._alpha=i}Ef.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:bd(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 z2=function n(i){function o(s){return i?new Ef(s,i):new vd(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function U2(n){this._context=n}function q2(n){return new U2(n)}function _d(n){return n<0?-1:1}function Ys(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(_d(p)+_d(b))*Math.min(Math.abs(p),Math.abs(b),.5*Math.abs(v))||0}function ls(n,i){var o=n._x1-n._x0;return o?(3*(n._y1-n._y0)/o-i)/2:i}function H2(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 au(n){this._context=n}function Q3(n){this._context=new xd(n)}function xd(n){this._context=n}function Fa(n){return new au(n)}function Sf(n){return new Q3(n)}function zs(n){this._context=n}function kl(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 Tl(n){return new zs(n)}function Cl(n,i){this._context=n,this._t=i}function y6(n){return new Cl(n,.5)}function wi(n){return new Cl(n,0)}function K3(n){return new Cl(n,1)}function ou(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 su(n){for(var i=n.length,o=new Array(i);--i>=0;)o[i]=i;return o}function J3(n,i){return n[i]}function El(){var n=or([]),i=su,o=ou,s=J3;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 L,z=T[b],U=F[b]=new Array(N),J=0;J<N;++J)U[J]=L=[0,+s(p[J],z,J,p)],L.data=p[J];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:or(kf.call(p)),l):n},l.value=function(p){return arguments.length?(s=typeof p=="function"?p:or(+p),l):s},l.order=function(p){return arguments.length?(i=p==null?su:typeof p=="function"?p:or(kf.call(p)),l):i},l.offset=function(p){return arguments.length?(o=p==null?ou:p,l):o},l}function tb(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}ou(n,i)}}function m6(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 nn(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}ou(n,i)}}function v6(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,L=(F-(B[b-1][1]||0))/2,z=0;z<v;++z){var U=n[i[z]];L+=(U[b][1]||0)-(U[b-1][1]||0)}T+=F,N+=L*F}o[b-1][1]+=o[b-1][0]=p,T&&(p-=N/T)}o[b-1][1]+=o[b-1][0]=p,ou(n,i)}}function Sl(n){var i=n.map(bc);return su(n).sort(function(o,s){return i[o]-i[s]})}function bc(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 Fo(n){var i=n.map($2);return su(n).sort(function(o,s){return i[o]-i[s]})}function $2(n){for(var i,o=0,s=-1,l=n.length;++s<l;)(i=+n[s][1])&&(o+=i);return o}function eb(n){return Fo(n).reverse()}function W2(n){var i,o,s=n.length,l=n.map($2),p=Sl(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 nb(n){return su(n).reverse()}U2.prototype={areaStart:js,areaEnd:js,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))}},au.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:H2(this,this._t0,ls(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,H2(this,ls(this,o=Ys(this,n,i)),o);break;default:H2(this,this._t0,o=Ys(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=o}}},(Q3.prototype=Object.create(au.prototype)).point=function(n,i){au.prototype.point.call(this,i,n)},xd.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)}},zs.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=kl(n),l=kl(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)}},Cl.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 wd="%Y-%m-%dT%H:%M:%S.%LZ",b6=Date.prototype.toISOString?function(n){return n.toISOString()}:D0(wd);const Us=b6;var Af=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Jg(wd);const Al=Af;function Mf(n,i,o){var s=new Vt,l=i;return i==null?(s.restart(n,i,o),s):(i=+i,o=o==null?W():+o,s.restart(function p(b){b+=l,s.restart(p,l+=i,o),n(b)},i,o),s)}function V2(n){return function(){return n}}function rb(n){return n[0]}function G2(n){return n[1]}function kd(){this._=null}function Nf(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Ml(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 Nl(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 Df(n){for(;n.L;)n=n.L;return n}kd.prototype={constructor:kd,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=Df(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&&(Ml(this,o),o=(n=o).U),o.C=!1,s.C=!0,Nl(this,s)):(l=s.L)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.L&&(Nl(this,o),o=(n=o).U),o.C=!1,s.C=!0,Ml(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?Df(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,Ml(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,Nl(this,i),i=l.R),i.C=l.C,l.C=i.R.C=!1,Ml(this,l),n=this._;break}}else if((i=l.L).C&&(i.C=!1,l.C=!0,Nl(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,Ml(this,i),i=l.L),i.C=l.C,l.C=i.L.C=!1,Nl(this,l),n=this._;break}i.C=!0,n=l,l=l.U}while(!n.C);n&&(n.C=!1)}}};const Td=kd;function _c(n,i,o,s){var l=[null,null],p=na.push(l)-1;return l.left=n,l.right=i,o&&Cd(l,n,i,o),s&&Cd(l,i,n,s),no[n.index].halfedges.push(p),no[i.index].halfedges.push(p),l}function Dl(n,i,o){var s=[i,o];return s.left=n,s}function Cd(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 _6(n,i,o,s,l){var p,b=n[0],v=n[1],T=b[0],N=b[1],B=0,F=1,L=v[0]-T,z=v[1]-N;if(p=i-T,L||!(p>0)){if(p/=L,L<0){if(p<B)return;p<F&&(F=p)}else if(L>0){if(p>F)return;p>B&&(B=p)}if(p=s-T,L||!(p<0)){if(p/=L,L<0){if(p>F)return;p>B&&(B=p)}else if(L>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*L,N+B*z]),F<1&&(n[1]=[T+F*L,N+F*z]),!0)}}}}}function x6(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],L=N[1],z=B[0],U=B[1],J=(F+z)/2,K=(L+U)/2;if(U===L){if(J<i||J>=s)return;if(F>z){if(T){if(T[1]>=l)return}else T=[J,o];p=[J,l]}else{if(T){if(T[1]<o)return}else T=[J,l];p=[J,o]}}else if(v=K-(b=(F-z)/(U-L))*J,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(L<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 w6(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 Ll(n,i){return i[+(i.left!==n.site)]}function k6(n,i){return i[+(i.left===n.site)]}var ho,ib=[];function T6(){Nf(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bl(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,L=2*(T*F-N*B);if(!(L>=-M6)){var z=T*T+N*N,U=B*B+F*F,J=(F*z-N*U)/L,K=(T*U-B*z)/L,V=ib.pop()||new T6;V.arc=n,V.site=l,V.x=J+b,V.y=(V.cy=K+v)+Math.sqrt(J*J+K*K),n.circle=V;for(var ot=null,it=Bf._;it;)if(V.y<it.y||V.y===it.y&&V.x<=it.x){if(!it.L){ot=it.P;break}it=it.L}else{if(!it.R){ot=it;break}it=it.R}Bf.insert(ot,V),ot||(ho=V)}}}}function cu(n){var i=n.circle;i&&(i.P||(ho=i.N),Bf.remove(i),ib.push(i),Nf(i),n.circle=null)}var ab=[];function C6(){Nf(this),this.edge=this.site=this.circle=null}function ob(n){var i=ab.pop()||new C6;return i.site=n,i}function X2(n){cu(n),Ol.remove(n),ab.push(n),Nf(n)}function E6(n){var i=n.circle,o=i.x,s=i.cy,l=[o,s],p=n.P,b=n.N,v=[n];X2(n);for(var T=p;T.circle&&Math.abs(o-T.circle.x)<Rr&&Math.abs(s-T.circle.cy)<Rr;)p=T.P,v.unshift(T),X2(T),T=p;v.unshift(T),cu(T);for(var N=b;N.circle&&Math.abs(o-N.circle.x)<Rr&&Math.abs(s-N.circle.cy)<Rr;)b=N.N,v.push(N),X2(N),N=b;v.push(N),cu(N);var B,F=v.length;for(B=1;B<F;++B)N=v[B],T=v[B-1],Cd(N.edge,T.site,N.site,l);T=v[0],(N=v[F-1]).edge=_c(T.site,N.site,null,l),Bl(T),Bl(N)}function S6(n){for(var i,o,s,l,p=n[0],b=n[1],v=Ol._;v;)if((s=Lf(v,b)-p)>Rr)v=v.L;else{if(!((l=p-A6(v,b))>Rr)){s>-Rr?(i=v.P,o=v):l>-Rr?(i=v,o=v.N):i=o=v;break}if(!v.R){i=v;break}v=v.R}(function(Pt){no[Pt.index]={site:Pt,halfedges:[]}})(n);var T=ob(n);if(Ol.insert(i,T),i||o){if(i===o)return cu(i),o=ob(i.site),Ol.insert(T,o),T.edge=o.edge=_c(i.site,T.site),Bl(i),void Bl(o);if(o){cu(i),cu(o);var N=i.site,B=N[0],F=N[1],L=n[0]-B,z=n[1]-F,U=o.site,J=U[0]-B,K=U[1]-F,V=2*(L*K-z*J),ot=L*L+z*z,it=J*J+K*K,dt=[(K*ot-z*it)/V+B,(L*it-J*ot)/V+F];Cd(o.edge,N,U,dt),T.edge=_c(N,n,null,dt),o.edge=_c(n,U,null,dt),Bl(i),Bl(o)}else T.edge=_c(i.site,T.site)}}function Lf(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,L=B/N;return F?(-L+Math.sqrt(L*L-2*F*(B*B/(-2*N)-T+N/2+l-p/2)))/F+s:(s+v)/2}function A6(n,i){var o=n.N;if(o)return Lf(o,i);var s=n.site;return s[1]===i?s[0]:1/0}var Ol,no,Bf,na,Rr=1e-6,M6=1e-12;function N6(n,i,o){return(n[0]-o[0])*(i[1]-n[1])-(n[0]-i[0])*(o[1]-n[1])}function sb(n,i){return i[1]-n[1]||i[0]-n[0]}function Z2(n,i){var o,s,l,p=n.sort(sb).pop();for(na=[],no=new Array(n.length),Ol=new Td,Bf=new Td;;)if(l=ho,p&&(!l||p[1]<l.y||p[1]===l.y&&p[0]<l.x))p[0]===o&&p[1]===s||(S6(p),o=p[0],s=p[1]),p=n.pop();else{if(!l)break;E6(l.arc)}if(function(){for(var B,F,L,z,U=0,J=no.length;U<J;++U)if((B=no[U])&&(z=(F=B.halfedges).length)){var K=new Array(z),V=new Array(z);for(L=0;L<z;++L)K[L]=L,V[L]=w6(B,na[F[L]]);for(K.sort(function(ot,it){return V[it]-V[ot]}),L=0;L<z;++L)V[L]=F[K[L]];for(L=0;L<z;++L)F[L]=V[L]}}(),i){var b=+i[0][0],v=+i[0][1],T=+i[1][0],N=+i[1][1];(function(B,F,L,z){for(var U,J=na.length;J--;)x6(U=na[J],B,F,L,z)&&_6(U,B,F,L,z)&&(Math.abs(U[0][0]-U[1][0])>Rr||Math.abs(U[0][1]-U[1][1])>Rr)||delete na[J]})(b,v,T,N),function(B,F,L,z){var U,J,K,V,ot,it,dt,Pt,Gt,re,xe,qt,te=no.length,ut=!0;for(U=0;U<te;++U)if(J=no[U]){for(K=J.site,V=(ot=J.halfedges).length;V--;)na[ot[V]]||ot.splice(V,1);for(V=0,it=ot.length;V<it;)xe=(re=k6(J,na[ot[V]]))[0],qt=re[1],Pt=(dt=Ll(J,na[ot[++V%it]]))[0],Gt=dt[1],(Math.abs(xe-Pt)>Rr||Math.abs(qt-Gt)>Rr)&&(ot.splice(V,0,na.push(Dl(K,re,Math.abs(xe-B)<Rr&&z-qt>Rr?[B,Math.abs(Pt-B)<Rr?Gt:z]:Math.abs(qt-z)<Rr&&L-xe>Rr?[Math.abs(Gt-z)<Rr?Pt:L,z]:Math.abs(xe-L)<Rr&&qt-F>Rr?[L,Math.abs(Pt-L)<Rr?Gt:F]:Math.abs(qt-F)<Rr&&xe-B>Rr?[Math.abs(Gt-F)<Rr?Pt:B,F]:null))-1),++it);it&&(ut=!1)}if(ut){var Ct,ce,ee,ue=1/0;for(U=0,ut=null;U<te;++U)(J=no[U])&&(ee=(Ct=(K=J.site)[0]-B)*Ct+(ce=K[1]-F)*ce)<ue&&(ue=ee,ut=J);if(ut){var Fe=[B,F],Ge=[B,z],vn=[L,z],Wn=[L,F];ut.halfedges.push(na.push(Dl(K=ut.site,Fe,Ge))-1,na.push(Dl(K,Ge,vn))-1,na.push(Dl(K,vn,Wn))-1,na.push(Dl(K,Wn,Fe))-1)}}for(U=0;U<te;++U)(J=no[U])&&(J.halfedges.length||delete no[U])}(b,v,T,N)}this.edges=na,this.cells=no,Ol=Bf=na=no=null}function de(){var n=rb,i=G2,o=null;function s(l){return new Z2(l.map(function(p,b){var v=[Math.round(n(p,b,l)/Rr)*Rr,Math.round(i(p,b,l)/Rr)*Rr];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:V2(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:V2(+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 Xe(n){return function(){return n}}function Of(n,i,o){this.target=n,this.type=i,this.transform=o}function Pa(n,i,o){this.k=n,this.x=i,this.y=o}Z2.prototype={constructor:Z2,polygons:function(){var n=this.edges;return this.cells.map(function(i){var o=i.halfedges.map(function(s){return Ll(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&&N6(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 L=p.edges[F],z=L.left;if(z!==l.site&&z||(z=L.right)){var U=n-z[0],J=i-z[1],K=U*U+J*J;K<B&&(B=K,b=z.index)}});while(b!==null);return p._found=s,o==null||B<=o*o?l.site:null}},Pa.prototype={constructor:Pa,scale:function(n){return n===1?this:new Pa(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new Pa(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 Il=new Pa(1,0,0);function Ed(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Il;return n.__zoom}function Sd(){pt.stopImmediatePropagation()}function Rl(){pt.preventDefault(),pt.stopImmediatePropagation()}function Ad(){return!pt.ctrlKey&&!pt.button}function cb(){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 xc(){return this.__zoom||Il}function D6(){return-pt.deltaY*(pt.deltaMode===1?.05:pt.deltaMode?1:.002)}function If(){return navigator.maxTouchPoints||"ontouchstart"in this}function Md(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 ub(){var n,i,o=Ad,s=cb,l=Md,p=D6,b=If,v=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],N=250,B=c0,F=un("start","zoom","end"),L=500,z=0;function U(ut){ut.property("__zoom",xc).on("wheel.zoom",Pt).on("mousedown.zoom",Gt).on("dblclick.zoom",re).filter(b).on("touchstart.zoom",xe).on("touchmove.zoom",qt).on("touchend.zoom touchcancel.zoom",te).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function J(ut,Ct){return(Ct=Math.max(v[0],Math.min(v[1],Ct)))===ut.k?ut:new Pa(Ct,ut.x,ut.y)}function K(ut,Ct,ce){var ee=Ct[0]-ce[0]*ut.k,ue=Ct[1]-ce[1]*ut.k;return ee===ut.x&&ue===ut.y?ut:new Pa(ut.k,ee,ue)}function V(ut){return[(+ut[0][0]+ +ut[1][0])/2,(+ut[0][1]+ +ut[1][1])/2]}function ot(ut,Ct,ce){ut.on("start.zoom",function(){it(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){it(this,arguments).end()}).tween("zoom",function(){var ee=this,ue=arguments,Fe=it(ee,ue),Ge=s.apply(ee,ue),vn=ce==null?V(Ge):typeof ce=="function"?ce.apply(ee,ue):ce,Wn=Math.max(Ge[1][0]-Ge[0][0],Ge[1][1]-Ge[0][1]),tr=ee.__zoom,tn=typeof Ct=="function"?Ct.apply(ee,ue):Ct,rr=B(tr.invert(vn).concat(Wn/tr.k),tn.invert(vn).concat(Wn/tn.k));return function(Mn){if(Mn===1)Mn=tn;else{var En=rr(Mn),Zn=Wn/En[2];Mn=new Pa(Zn,vn[0]-En[0]*Zn,vn[1]-En[1]*Zn)}Fe.zoom(null,Mn)}})}function it(ut,Ct,ce){return!ce&&ut.__zooming||new dt(ut,Ct)}function dt(ut,Ct){this.that=ut,this.args=Ct,this.active=0,this.extent=s.apply(ut,Ct),this.taps=0}function Pt(){if(o.apply(this,arguments)){var ut=it(this,arguments),Ct=this.__zoom,ce=Math.max(v[0],Math.min(v[1],Ct.k*Math.pow(2,p.apply(this,arguments)))),ee=ds(this);if(ut.wheel)ut.mouse[0][0]===ee[0]&&ut.mouse[0][1]===ee[1]||(ut.mouse[1]=Ct.invert(ut.mouse[0]=ee)),clearTimeout(ut.wheel);else{if(Ct.k===ce)return;ut.mouse=[ee,Ct.invert(ee)],la(this),ut.start()}Rl(),ut.wheel=setTimeout(ue,150),ut.zoom("mouse",l(K(J(Ct,ce),ut.mouse[0],ut.mouse[1]),ut.extent,T))}function ue(){ut.wheel=null,ut.end()}}function Gt(){if(!i&&o.apply(this,arguments)){var ut=it(this,arguments,!0),Ct=$r(pt.view).on("mousemove.zoom",Fe,!0).on("mouseup.zoom",Ge,!0),ce=ds(this),ee=pt.clientX,ue=pt.clientY;Zr(pt.view),Sd(),ut.mouse=[ce,this.__zoom.invert(ce)],la(this),ut.start()}function Fe(){if(Rl(),!ut.moved){var vn=pt.clientX-ee,Wn=pt.clientY-ue;ut.moved=vn*vn+Wn*Wn>z}ut.zoom("mouse",l(K(ut.that.__zoom,ut.mouse[0]=ds(ut.that),ut.mouse[1]),ut.extent,T))}function Ge(){Ct.on("mousemove.zoom mouseup.zoom",null),Br(pt.view,ut.moved),Rl(),ut.end()}}function re(){if(o.apply(this,arguments)){var ut=this.__zoom,Ct=ds(this),ce=ut.invert(Ct),ee=ut.k*(pt.shiftKey?.5:2),ue=l(K(J(ut,ee),Ct,ce),s.apply(this,arguments),T);Rl(),N>0?$r(this).transition().duration(N).call(ot,ue,Ct):$r(this).call(U.transform,ue)}}function xe(){if(o.apply(this,arguments)){var ut,Ct,ce,ee,ue=pt.touches,Fe=ue.length,Ge=it(this,arguments,pt.changedTouches.length===Fe);for(Sd(),Ct=0;Ct<Fe;++Ct)ee=[ee=ua(this,ue,(ce=ue[Ct]).identifier),this.__zoom.invert(ee),ce.identifier],Ge.touch0?Ge.touch1||Ge.touch0[2]===ee[2]||(Ge.touch1=ee,Ge.taps=0):(Ge.touch0=ee,ut=!0,Ge.taps=1+!!n);n&&(n=clearTimeout(n)),ut&&(Ge.taps<2&&(n=setTimeout(function(){n=null},L)),la(this),Ge.start())}}function qt(){if(this.__zooming){var ut,Ct,ce,ee,ue=it(this,arguments),Fe=pt.changedTouches,Ge=Fe.length;for(Rl(),n&&(n=clearTimeout(n)),ue.taps=0,ut=0;ut<Ge;++ut)ce=ua(this,Fe,(Ct=Fe[ut]).identifier),ue.touch0&&ue.touch0[2]===Ct.identifier?ue.touch0[0]=ce:ue.touch1&&ue.touch1[2]===Ct.identifier&&(ue.touch1[0]=ce);if(Ct=ue.that.__zoom,ue.touch1){var vn=ue.touch0[0],Wn=ue.touch0[1],tr=ue.touch1[0],tn=ue.touch1[1],rr=(rr=tr[0]-vn[0])*rr+(rr=tr[1]-vn[1])*rr,Mn=(Mn=tn[0]-Wn[0])*Mn+(Mn=tn[1]-Wn[1])*Mn;Ct=J(Ct,Math.sqrt(rr/Mn)),ce=[(vn[0]+tr[0])/2,(vn[1]+tr[1])/2],ee=[(Wn[0]+tn[0])/2,(Wn[1]+tn[1])/2]}else{if(!ue.touch0)return;ce=ue.touch0[0],ee=ue.touch0[1]}ue.zoom("touch",l(K(Ct,ce,ee),ue.extent,T))}}function te(){if(this.__zooming){var ut,Ct,ce=it(this,arguments),ee=pt.changedTouches,ue=ee.length;for(Sd(),i&&clearTimeout(i),i=setTimeout(function(){i=null},L),ut=0;ut<ue;++ut)Ct=ee[ut],ce.touch0&&ce.touch0[2]===Ct.identifier?delete ce.touch0:ce.touch1&&ce.touch1[2]===Ct.identifier&&delete ce.touch1;if(ce.touch1&&!ce.touch0&&(ce.touch0=ce.touch1,delete ce.touch1),ce.touch0)ce.touch0[1]=this.__zoom.invert(ce.touch0[0]);else if(ce.end(),ce.taps===2){var Fe=$r(this).on("dblclick.zoom");Fe&&Fe.apply(this,arguments)}}}return U.transform=function(ut,Ct,ce){var ee=ut.selection?ut.selection():ut;ee.property("__zoom",xc),ut!==ee?ot(ut,Ct,ce):ee.interrupt().each(function(){it(this,arguments).start().zoom(null,typeof Ct=="function"?Ct.apply(this,arguments):Ct).end()})},U.scaleBy=function(ut,Ct,ce){U.scaleTo(ut,function(){var ee=this.__zoom.k,ue=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return ee*ue},ce)},U.scaleTo=function(ut,Ct,ce){U.transform(ut,function(){var ee=s.apply(this,arguments),ue=this.__zoom,Fe=ce==null?V(ee):typeof ce=="function"?ce.apply(this,arguments):ce,Ge=ue.invert(Fe),vn=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return l(K(J(ue,vn),Fe,Ge),ee,T)},ce)},U.translateBy=function(ut,Ct,ce){U.transform(ut,function(){return l(this.__zoom.translate(typeof Ct=="function"?Ct.apply(this,arguments):Ct,typeof ce=="function"?ce.apply(this,arguments):ce),s.apply(this,arguments),T)})},U.translateTo=function(ut,Ct,ce,ee){U.transform(ut,function(){var ue=s.apply(this,arguments),Fe=this.__zoom,Ge=ee==null?V(ue):typeof ee=="function"?ee.apply(this,arguments):ee;return l(Il.translate(Ge[0],Ge[1]).scale(Fe.k).translate(typeof Ct=="function"?-Ct.apply(this,arguments):-Ct,typeof ce=="function"?-ce.apply(this,arguments):-ce),ue,T)},ee)},dt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ut,Ct){return this.mouse&&ut!=="mouse"&&(this.mouse[1]=Ct.invert(this.mouse[0])),this.touch0&&ut!=="touch"&&(this.touch0[1]=Ct.invert(this.touch0[0])),this.touch1&&ut!=="touch"&&(this.touch1[1]=Ct.invert(this.touch1[0])),this.that.__zoom=Ct,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ut){Ui(new Of(U,ut,this.that.__zoom),F.apply,F,[ut,this.that,this.args])}},U.wheelDelta=function(ut){return arguments.length?(p=typeof ut=="function"?ut:Xe(+ut),U):p},U.filter=function(ut){return arguments.length?(o=typeof ut=="function"?ut:Xe(!!ut),U):o},U.touchable=function(ut){return arguments.length?(b=typeof ut=="function"?ut:Xe(!!ut),U):b},U.extent=function(ut){return arguments.length?(s=typeof ut=="function"?ut:Xe([[+ut[0][0],+ut[0][1]],[+ut[1][0],+ut[1][1]]]),U):s},U.scaleExtent=function(ut){return arguments.length?(v[0]=+ut[0],v[1]=+ut[1],U):[v[0],v[1]]},U.translateExtent=function(ut){return arguments.length?(T[0][0]=+ut[0][0],T[1][0]=+ut[1][0],T[0][1]=+ut[0][1],T[1][1]=+ut[1][1],U):[[T[0][0],T[0][1]],[T[1][0],T[1][1]]]},U.constrain=function(ut){return arguments.length?(l=ut,U):l},U.duration=function(ut){return arguments.length?(N=+ut,U):N},U.interpolate=function(ut){return arguments.length?(B=ut,U):B},U.on=function(){var ut=F.on.apply(F,arguments);return ut===F?U:ut},U.clickDistance=function(ut){return arguments.length?(z=(ut=+ut)*ut,U):Math.sqrt(z)},U}Ed.prototype=Pa.prototype},681:(S,M,f)=>{S.exports={graphlib:f(574),layout:f(8123),debug:f(7570),util:{time:f(1138).time,notime:f(1138).notime},version:f(8177)}},1207:(S,M,f)=>{var m=f(8436),h=f(4079);S.exports={run:function(x){var g=x.graph().acyclicer==="greedy"?h(x,function(k){return function(E){return k.edge(E).weight}}(x)):function(k){var E=[],A={},I={};return m.forEach(k.nodes(),function O(Y){m.has(I,Y)||(I[Y]=!0,A[Y]=!0,m.forEach(k.outEdges(Y),function(H){m.has(A,H.w)?E.push(H):O(H.w)}),delete A[Y])}),E}(x);m.forEach(g,function(k){var E=x.edge(k);x.removeEdge(k),E.forwardName=k.name,E.reversed=!0,x.setEdge(k.w,k.v,E,m.uniqueId("rev"))})},undo:function(x){m.forEach(x.edges(),function(g){var k=x.edge(g);if(k.reversed){x.removeEdge(g);var E=k.forwardName;delete k.reversed,delete k.forwardName,x.setEdge(g.w,g.v,k,E)}})}}},1133:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E,A,I,O){var Y={width:0,height:0,rank:O,borderType:k},H=I[k][O-1],X=h.addDummyNode(g,"border",Y,E);I[k][O]=X,g.setParent(X,A),H&&g.setEdge(H,X,{weight:1})}S.exports=function(g){m.forEach(g.children(),function k(E){var A=g.children(E),I=g.node(E);if(A.length&&m.forEach(A,k),m.has(I,"minRank")){I.borderLeft=[],I.borderRight=[];for(var O=I.minRank,Y=I.maxRank+1;O<Y;++O)x(g,"borderLeft","_bl",E,I,O),x(g,"borderRight","_br",E,I,O)}})}},3258:(S,M,f)=>{var m=f(8436);function h(E){m.forEach(E.nodes(),function(A){x(E.node(A))}),m.forEach(E.edges(),function(A){x(E.edge(A))})}function x(E){var A=E.width;E.width=E.height,E.height=A}function g(E){E.y=-E.y}function k(E){var A=E.x;E.x=E.y,E.y=A}S.exports={adjust:function(E){var A=E.graph().rankdir.toLowerCase();A!=="lr"&&A!=="rl"||h(E)},undo:function(E){var A=E.graph().rankdir.toLowerCase();A!=="bt"&&A!=="rl"||function(I){m.forEach(I.nodes(),function(O){g(I.node(O))}),m.forEach(I.edges(),function(O){var Y=I.edge(O);m.forEach(Y.points,g),m.has(Y,"y")&&g(Y)})}(E),A!=="lr"&&A!=="rl"||(function(I){m.forEach(I.nodes(),function(O){k(I.node(O))}),m.forEach(I.edges(),function(O){var Y=I.edge(O);m.forEach(Y.points,k),m.has(Y,"x")&&k(Y)})}(E),h(E))}}},7822:S=>{function M(){var h={};h._next=h._prev=h,this._sentinel=h}function f(h){h._prev._next=h._next,h._next._prev=h._prev,delete h._next,delete h._prev}function m(h,x){if(h!=="_next"&&h!=="_prev")return x}S.exports=M,M.prototype.dequeue=function(){var h=this._sentinel,x=h._prev;if(x!==h)return f(x),x},M.prototype.enqueue=function(h){var x=this._sentinel;h._prev&&h._next&&f(h),h._next=x._next,x._next._prev=h,x._next=h,h._prev=x},M.prototype.toString=function(){for(var h=[],x=this._sentinel,g=x._prev;g!==x;)h.push(JSON.stringify(g,m)),g=g._prev;return"["+h.join(", ")+"]"}},7570:(S,M,f)=>{var m=f(8436),h=f(1138),x=f(574).Graph;S.exports={debugOrdering:function(g){var k=h.buildLayerMatrix(g),E=new x({compound:!0,multigraph:!0}).setGraph({});return m.forEach(g.nodes(),function(A){E.setNode(A,{label:A}),E.setParent(A,"layer"+g.node(A).rank)}),m.forEach(g.edges(),function(A){E.setEdge(A.v,A.w,{},A.name)}),m.forEach(k,function(A,I){var O="layer"+I;E.setNode(O,{rank:"same"}),m.reduce(A,function(Y,H){return E.setEdge(Y,H,{style:"invis"}),H})}),E}}},574:(S,M,f)=>{var m;try{m=f(8282)}catch{}m||(m=window.graphlib),S.exports=m},4079:(S,M,f)=>{var m=f(8436),h=f(574).Graph,x=f(7822);S.exports=function(A,I){if(A.nodeCount()<=1)return[];var O=function(H,X){var Z=new h,et=0,Q=0;m.forEach(H.nodes(),function(xt){Z.setNode(xt,{v:xt,in:0,out:0})}),m.forEach(H.edges(),function(xt){var Tt=Z.edge(xt.v,xt.w)||0,ne=X(xt),bt=Tt+ne;Z.setEdge(xt.v,xt.w,bt),Q=Math.max(Q,Z.node(xt.v).out+=ne),et=Math.max(et,Z.node(xt.w).in+=ne)});var gt=m.range(Q+et+3).map(function(){return new x}),ht=et+1;return m.forEach(Z.nodes(),function(xt){E(gt,ht,Z.node(xt))}),{graph:Z,buckets:gt,zeroIdx:ht}}(A,I||g),Y=function(H,X,Z){for(var et,Q=[],gt=X[X.length-1],ht=X[0];H.nodeCount();){for(;et=ht.dequeue();)k(H,X,Z,et);for(;et=gt.dequeue();)k(H,X,Z,et);if(H.nodeCount()){for(var xt=X.length-2;xt>0;--xt)if(et=X[xt].dequeue()){Q=Q.concat(k(H,X,Z,et,!0));break}}}return Q}(O.graph,O.buckets,O.zeroIdx);return m.flatten(m.map(Y,function(H){return A.outEdges(H.v,H.w)}),!0)};var g=m.constant(1);function k(A,I,O,Y,H){var X=H?[]:void 0;return m.forEach(A.inEdges(Y.v),function(Z){var et=A.edge(Z),Q=A.node(Z.v);H&&X.push({v:Z.v,w:Z.w}),Q.out-=et,E(I,O,Q)}),m.forEach(A.outEdges(Y.v),function(Z){var et=A.edge(Z),Q=Z.w,gt=A.node(Q);gt.in-=et,E(I,O,gt)}),A.removeNode(Y.v),X}function E(A,I,O){O.out?O.in?A[O.out-O.in+I].enqueue(O):A[A.length-1].enqueue(O):A[0].enqueue(O)}},8123:(S,M,f)=>{var m=f(8436),h=f(1207),x=f(5995),g=f(8093),k=f(1138).normalizeRanks,E=f(4219),A=f(1138).removeEmptyRanks,I=f(2981),O=f(1133),Y=f(3258),H=f(3408),X=f(7873),Z=f(1138),et=f(574).Graph;S.exports=function(Lt,tt){var lt=tt&&tt.debugTiming?Z.time:Z.notime;lt("layout",function(){var q=lt(" buildLayoutGraph",function(){return function(Ut){var G=new et({multigraph:!0,compound:!0}),me=Dt(Ut.graph());return G.setGraph(m.merge({},gt,nt(me,Q),m.pick(me,ht))),m.forEach(Ut.nodes(),function(ve){var jt=Dt(Ut.node(ve));G.setNode(ve,m.defaults(nt(jt,xt),Tt)),G.setParent(ve,Ut.parent(ve))}),m.forEach(Ut.edges(),function(ve){var jt=Dt(Ut.edge(ve));G.setEdge(ve,m.merge({},bt,nt(jt,ne),m.pick(jt,at)))}),G}(Lt)});lt(" runLayout",function(){(function(Ut,G){G(" makeSpaceForEdgeLabels",function(){(function(me){var ve=me.graph();ve.ranksep/=2,m.forEach(me.edges(),function(jt){var ie=me.edge(jt);ie.minlen*=2,ie.labelpos.toLowerCase()!=="c"&&(ve.rankdir==="TB"||ve.rankdir==="BT"?ie.width+=ie.labeloffset:ie.height+=ie.labeloffset)})})(Ut)}),G(" removeSelfEdges",function(){(function(me){m.forEach(me.edges(),function(ve){if(ve.v===ve.w){var jt=me.node(ve.v);jt.selfEdges||(jt.selfEdges=[]),jt.selfEdges.push({e:ve,label:me.edge(ve)}),me.removeEdge(ve)}})})(Ut)}),G(" acyclic",function(){h.run(Ut)}),G(" nestingGraph.run",function(){I.run(Ut)}),G(" rank",function(){g(Z.asNonCompoundGraph(Ut))}),G(" injectEdgeLabelProxies",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);if(jt.width&&jt.height){var ie=me.node(ve.v),he={rank:(me.node(ve.w).rank-ie.rank)/2+ie.rank,e:ve};Z.addDummyNode(me,"edge-proxy",he,"_ep")}})})(Ut)}),G(" removeEmptyRanks",function(){A(Ut)}),G(" nestingGraph.cleanup",function(){I.cleanup(Ut)}),G(" normalizeRanks",function(){k(Ut)}),G(" assignRankMinMax",function(){(function(me){var ve=0;m.forEach(me.nodes(),function(jt){var ie=me.node(jt);ie.borderTop&&(ie.minRank=me.node(ie.borderTop).rank,ie.maxRank=me.node(ie.borderBottom).rank,ve=m.max(ve,ie.maxRank))}),me.graph().maxRank=ve})(Ut)}),G(" removeEdgeLabelProxies",function(){(function(me){m.forEach(me.nodes(),function(ve){var jt=me.node(ve);jt.dummy==="edge-proxy"&&(me.edge(jt.e).labelRank=jt.rank,me.removeNode(ve))})})(Ut)}),G(" normalize.run",function(){x.run(Ut)}),G(" parentDummyChains",function(){E(Ut)}),G(" addBorderSegments",function(){O(Ut)}),G(" order",function(){H(Ut)}),G(" insertSelfEdges",function(){(function(me){var ve=Z.buildLayerMatrix(me);m.forEach(ve,function(jt){var ie=0;m.forEach(jt,function(he,pe){var le=me.node(he);le.order=pe+ie,m.forEach(le.selfEdges,function(oe){Z.addDummyNode(me,"selfedge",{width:oe.label.width,height:oe.label.height,rank:le.rank,order:pe+ ++ie,e:oe.e,label:oe.label},"_se")}),delete le.selfEdges})})})(Ut)}),G(" adjustCoordinateSystem",function(){Y.adjust(Ut)}),G(" position",function(){X(Ut)}),G(" positionSelfEdges",function(){(function(me){m.forEach(me.nodes(),function(ve){var jt=me.node(ve);if(jt.dummy==="selfedge"){var ie=me.node(jt.e.v),he=ie.x+ie.width/2,pe=ie.y,le=jt.x-he,oe=ie.height/2;me.setEdge(jt.e,jt.label),me.removeNode(ve),jt.label.points=[{x:he+2*le/3,y:pe-oe},{x:he+5*le/6,y:pe-oe},{x:he+le,y:pe},{x:he+5*le/6,y:pe+oe},{x:he+2*le/3,y:pe+oe}],jt.label.x=jt.x,jt.label.y=jt.y}})})(Ut)}),G(" removeBorderNodes",function(){(function(me){m.forEach(me.nodes(),function(ve){if(me.children(ve).length){var jt=me.node(ve),ie=me.node(jt.borderTop),he=me.node(jt.borderBottom),pe=me.node(m.last(jt.borderLeft)),le=me.node(m.last(jt.borderRight));jt.width=Math.abs(le.x-pe.x),jt.height=Math.abs(he.y-ie.y),jt.x=pe.x+jt.width/2,jt.y=ie.y+jt.height/2}}),m.forEach(me.nodes(),function(ve){me.node(ve).dummy==="border"&&me.removeNode(ve)})})(Ut)}),G(" normalize.undo",function(){x.undo(Ut)}),G(" fixupEdgeLabelCoords",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);if(m.has(jt,"x"))switch(jt.labelpos!=="l"&&jt.labelpos!=="r"||(jt.width-=jt.labeloffset),jt.labelpos){case"l":jt.x-=jt.width/2+jt.labeloffset;break;case"r":jt.x+=jt.width/2+jt.labeloffset}})})(Ut)}),G(" undoCoordinateSystem",function(){Y.undo(Ut)}),G(" translateGraph",function(){(function(me){var ve=Number.POSITIVE_INFINITY,jt=0,ie=Number.POSITIVE_INFINITY,he=0,pe=me.graph(),le=pe.marginx||0,oe=pe.marginy||0;function wn(fe){var ae=fe.x,Zt=fe.y,St=fe.width,Qt=fe.height;ve=Math.min(ve,ae-St/2),jt=Math.max(jt,ae+St/2),ie=Math.min(ie,Zt-Qt/2),he=Math.max(he,Zt+Qt/2)}m.forEach(me.nodes(),function(fe){wn(me.node(fe))}),m.forEach(me.edges(),function(fe){var ae=me.edge(fe);m.has(ae,"x")&&wn(ae)}),ve-=le,ie-=oe,m.forEach(me.nodes(),function(fe){var ae=me.node(fe);ae.x-=ve,ae.y-=ie}),m.forEach(me.edges(),function(fe){var ae=me.edge(fe);m.forEach(ae.points,function(Zt){Zt.x-=ve,Zt.y-=ie}),m.has(ae,"x")&&(ae.x-=ve),m.has(ae,"y")&&(ae.y-=ie)}),pe.width=jt-ve+le,pe.height=he-ie+oe})(Ut)}),G(" assignNodeIntersects",function(){(function(me){m.forEach(me.edges(),function(ve){var jt,ie,he=me.edge(ve),pe=me.node(ve.v),le=me.node(ve.w);he.points?(jt=he.points[0],ie=he.points[he.points.length-1]):(he.points=[],jt=le,ie=pe),he.points.unshift(Z.intersectRect(pe,jt)),he.points.push(Z.intersectRect(le,ie))})})(Ut)}),G(" reversePoints",function(){(function(me){m.forEach(me.edges(),function(ve){var jt=me.edge(ve);jt.reversed&&jt.points.reverse()})})(Ut)}),G(" acyclic.undo",function(){h.undo(Ut)})})(q,lt)}),lt(" updateInputGraph",function(){(function(Ut,G){m.forEach(Ut.nodes(),function(me){var ve=Ut.node(me),jt=G.node(me);ve&&(ve.x=jt.x,ve.y=jt.y,G.children(me).length&&(ve.width=jt.width,ve.height=jt.height))}),m.forEach(Ut.edges(),function(me){var ve=Ut.edge(me),jt=G.edge(me);ve.points=jt.points,m.has(jt,"x")&&(ve.x=jt.x,ve.y=jt.y)}),Ut.graph().width=G.graph().width,Ut.graph().height=G.graph().height})(Lt,q)})})};var Q=["nodesep","edgesep","ranksep","marginx","marginy"],gt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ht=["acyclicer","ranker","rankdir","align"],xt=["width","height"],Tt={width:0,height:0},ne=["minlen","weight","width","height","labeloffset"],bt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},at=["labelpos"];function nt(Lt,tt){return m.mapValues(m.pick(Lt,tt),Number)}function Dt(Lt){var tt={};return m.forEach(Lt,function(lt,q){tt[q.toLowerCase()]=lt}),tt}},8436:(S,M,f)=>{var m;try{m={cloneDeep:f(361),constant:f(5703),defaults:f(1747),each:f(6073),filter:f(3105),find:f(3311),flatten:f(5564),forEach:f(4486),forIn:f(2620),has:f(8721),isUndefined:f(2353),last:f(928),map:f(5161),mapValues:f(6604),max:f(6162),merge:f(3857),min:f(3632),minBy:f(2762),now:f(7771),pick:f(9722),range:f(6026),reduce:f(4061),sortBy:f(9734),uniqueId:f(3955),values:f(2628),zipObject:f(7287)}}catch{}m||(m=window._),S.exports=m},2981:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E,A,I,O,Y){var H=g.children(Y);if(H.length){var X=h.addBorderNode(g,"_bt"),Z=h.addBorderNode(g,"_bb"),et=g.node(Y);g.setParent(X,Y),et.borderTop=X,g.setParent(Z,Y),et.borderBottom=Z,m.forEach(H,function(Q){x(g,k,E,A,I,O,Q);var gt=g.node(Q),ht=gt.borderTop?gt.borderTop:Q,xt=gt.borderBottom?gt.borderBottom:Q,Tt=gt.borderTop?A:2*A,ne=ht!==xt?1:I-O[Y]+1;g.setEdge(X,ht,{weight:Tt,minlen:ne,nestingEdge:!0}),g.setEdge(xt,Z,{weight:Tt,minlen:ne,nestingEdge:!0})}),g.parent(Y)||g.setEdge(k,X,{weight:0,minlen:I+O[Y]})}else Y!==k&&g.setEdge(k,Y,{weight:0,minlen:E})}S.exports={run:function(g){var k=h.addDummyNode(g,"root",{},"_root"),E=function(Y){var H={};function X(Z,et){var Q=Y.children(Z);Q&&Q.length&&m.forEach(Q,function(gt){X(gt,et+1)}),H[Z]=et}return m.forEach(Y.children(),function(Z){X(Z,1)}),H}(g),A=m.max(m.values(E))-1,I=2*A+1;g.graph().nestingRoot=k,m.forEach(g.edges(),function(Y){g.edge(Y).minlen*=I});var O=function(Y){return m.reduce(Y.edges(),function(H,X){return H+Y.edge(X).weight},0)}(g)+1;m.forEach(g.children(),function(Y){x(g,k,I,O,A,E,Y)}),g.graph().nodeRankFactor=I},cleanup:function(g){var k=g.graph();g.removeNode(k.nestingRoot),delete k.nestingRoot,m.forEach(g.edges(),function(E){g.edge(E).nestingEdge&&g.removeEdge(E)})}}},5995:(S,M,f)=>{var m=f(8436),h=f(1138);S.exports={run:function(x){x.graph().dummyChains=[],m.forEach(x.edges(),function(g){(function(k,E){var A,I,O,Y=E.v,H=k.node(Y).rank,X=E.w,Z=k.node(X).rank,et=E.name,Q=k.edge(E),gt=Q.labelRank;if(Z!==H+1){for(k.removeEdge(E),O=0,++H;H<Z;++O,++H)Q.points=[],I={width:0,height:0,edgeLabel:Q,edgeObj:E,rank:H},A=h.addDummyNode(k,"edge",I,"_d"),H===gt&&(I.width=Q.width,I.height=Q.height,I.dummy="edge-label",I.labelpos=Q.labelpos),k.setEdge(Y,A,{weight:Q.weight},et),O===0&&k.graph().dummyChains.push(A),Y=A;k.setEdge(Y,X,{weight:Q.weight},et)}})(x,g)})},undo:function(x){m.forEach(x.graph().dummyChains,function(g){var k,E=x.node(g),A=E.edgeLabel;for(x.setEdge(E.edgeObj,A);E.dummy;)k=x.successors(g)[0],x.removeNode(g),A.points.push({x:E.x,y:E.y}),E.dummy==="edge-label"&&(A.x=E.x,A.y=E.y,A.width=E.width,A.height=E.height),g=k,E=x.node(g)})}}},5093:(S,M,f)=>{var m=f(8436);S.exports=function(h,x,g){var k,E={};m.forEach(g,function(A){for(var I,O,Y=h.parent(A);Y;){if((I=h.parent(Y))?(O=E[I],E[I]=Y):(O=k,k=Y),O&&O!==Y)return void x.setEdge(O,Y);Y=I}})}},5439:(S,M,f)=>{var m=f(8436);S.exports=function(h,x){return m.map(x,function(g){var k=h.inEdges(g);if(k.length){var E=m.reduce(k,function(A,I){var O=h.edge(I),Y=h.node(I.v);return{sum:A.sum+O.weight*Y.order,weight:A.weight+O.weight}},{sum:0,weight:0});return{v:g,barycenter:E.sum/E.weight,weight:E.weight}}return{v:g}})}},3128:(S,M,f)=>{var m=f(8436),h=f(574).Graph;S.exports=function(x,g,k){var E=function(I){for(var O;I.hasNode(O=m.uniqueId("_root")););return O}(x),A=new h({compound:!0}).setGraph({root:E}).setDefaultNodeLabel(function(I){return x.node(I)});return m.forEach(x.nodes(),function(I){var O=x.node(I),Y=x.parent(I);(O.rank===g||O.minRank<=g&&g<=O.maxRank)&&(A.setNode(I),A.setParent(I,Y||E),m.forEach(x[k](I),function(H){var X=H.v===I?H.w:H.v,Z=A.edge(X,I),et=m.isUndefined(Z)?0:Z.weight;A.setEdge(X,I,{weight:x.edge(H).weight+et})}),m.has(O,"minRank")&&A.setNode(I,{borderLeft:O.borderLeft[g],borderRight:O.borderRight[g]}))}),A}},6630:(S,M,f)=>{var m=f(8436);function h(x,g,k){for(var E=m.zipObject(k,m.map(k,function(X,Z){return Z})),A=m.flatten(m.map(g,function(X){return m.sortBy(m.map(x.outEdges(X),function(Z){return{pos:E[Z.w],weight:x.edge(Z).weight}}),"pos")}),!0),I=1;I<k.length;)I<<=1;var O=2*I-1;I-=1;var Y=m.map(new Array(O),function(){return 0}),H=0;return m.forEach(A.forEach(function(X){var Z=X.pos+I;Y[Z]+=X.weight;for(var et=0;Z>0;)Z%2&&(et+=Y[Z+1]),Y[Z=Z-1>>1]+=X.weight;H+=X.weight*et})),H}S.exports=function(x,g){for(var k=0,E=1;E<g.length;++E)k+=h(x,g[E-1],g[E]);return k}},3408:(S,M,f)=>{var m=f(8436),h=f(2588),x=f(6630),g=f(1026),k=f(3128),E=f(5093),A=f(574).Graph,I=f(1138);function O(X,Z,et){return m.map(Z,function(Q){return k(X,Q,et)})}function Y(X,Z){var et=new A;m.forEach(X,function(Q){var gt=Q.graph().root,ht=g(Q,gt,et,Z);m.forEach(ht.vs,function(xt,Tt){Q.node(xt).order=Tt}),E(Q,et,ht.vs)})}function H(X,Z){m.forEach(Z,function(et){m.forEach(et,function(Q,gt){X.node(Q).order=gt})})}S.exports=function(X){var Z=I.maxRank(X),et=O(X,m.range(1,Z+1),"inEdges"),Q=O(X,m.range(Z-1,-1,-1),"outEdges"),gt=h(X);H(X,gt);for(var ht,xt=Number.POSITIVE_INFINITY,Tt=0,ne=0;ne<4;++Tt,++ne){Y(Tt%2?et:Q,Tt%4>=2),gt=I.buildLayerMatrix(X);var bt=x(X,gt);bt<xt&&(ne=0,ht=m.cloneDeep(gt),xt=bt)}H(X,ht)}},2588:(S,M,f)=>{var m=f(8436);S.exports=function(h){var x={},g=m.filter(h.nodes(),function(I){return!h.children(I).length}),k=m.max(m.map(g,function(I){return h.node(I).rank})),E=m.map(m.range(k+1),function(){return[]}),A=m.sortBy(g,function(I){return h.node(I).rank});return m.forEach(A,function I(O){if(!m.has(x,O)){x[O]=!0;var Y=h.node(O);E[Y.rank].push(O),m.forEach(h.successors(O),I)}}),E}},9567:(S,M,f)=>{var m=f(8436);S.exports=function(h,x){var g={};return m.forEach(h,function(k,E){var A=g[k.v]={indegree:0,in:[],out:[],vs:[k.v],i:E};m.isUndefined(k.barycenter)||(A.barycenter=k.barycenter,A.weight=k.weight)}),m.forEach(x.edges(),function(k){var E=g[k.v],A=g[k.w];m.isUndefined(E)||m.isUndefined(A)||(A.indegree++,E.out.push(g[k.w]))}),function(k){var E=[];function A(Y){return function(H){var X,Z,et,Q;H.merged||(m.isUndefined(H.barycenter)||m.isUndefined(Y.barycenter)||H.barycenter>=Y.barycenter)&&(Z=H,et=0,Q=0,(X=Y).weight&&(et+=X.barycenter*X.weight,Q+=X.weight),Z.weight&&(et+=Z.barycenter*Z.weight,Q+=Z.weight),X.vs=Z.vs.concat(X.vs),X.barycenter=et/Q,X.weight=Q,X.i=Math.min(Z.i,X.i),Z.merged=!0)}}function I(Y){return function(H){H.in.push(Y),--H.indegree==0&&k.push(H)}}for(;k.length;){var O=k.pop();E.push(O),m.forEach(O.in.reverse(),A(O)),m.forEach(O.out,I(O))}return m.map(m.filter(E,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,f)=>{var m=f(8436),h=f(5439),x=f(9567),g=f(7304);S.exports=function k(E,A,I,O){var Y=E.children(A),H=E.node(A),X=H?H.borderLeft:void 0,Z=H?H.borderRight:void 0,et={};X&&(Y=m.filter(Y,function(ne){return ne!==X&&ne!==Z}));var Q=h(E,Y);m.forEach(Q,function(ne){if(E.children(ne.v).length){var bt=k(E,ne.v,I,O);et[ne.v]=bt,m.has(bt,"barycenter")&&(at=ne,nt=bt,m.isUndefined(at.barycenter)?(at.barycenter=nt.barycenter,at.weight=nt.weight):(at.barycenter=(at.barycenter*at.weight+nt.barycenter*nt.weight)/(at.weight+nt.weight),at.weight+=nt.weight))}var at,nt});var gt=x(Q,I);(function(ne,bt){m.forEach(ne,function(at){at.vs=m.flatten(at.vs.map(function(nt){return bt[nt]?bt[nt].vs:nt}),!0)})})(gt,et);var ht=g(gt,O);if(X&&(ht.vs=m.flatten([X,ht.vs,Z],!0),E.predecessors(X).length)){var xt=E.node(E.predecessors(X)[0]),Tt=E.node(E.predecessors(Z)[0]);m.has(ht,"barycenter")||(ht.barycenter=0,ht.weight=0),ht.barycenter=(ht.barycenter*ht.weight+xt.order+Tt.order)/(ht.weight+2),ht.weight+=2}return ht}},7304:(S,M,f)=>{var m=f(8436),h=f(1138);function x(g,k,E){for(var A;k.length&&(A=m.last(k)).i<=E;)k.pop(),g.push(A.vs),E++;return E}S.exports=function(g,k){var E,A=h.partition(g,function(Q){return m.has(Q,"barycenter")}),I=A.lhs,O=m.sortBy(A.rhs,function(Q){return-Q.i}),Y=[],H=0,X=0,Z=0;I.sort((E=!!k,function(Q,gt){return Q.barycenter<gt.barycenter?-1:Q.barycenter>gt.barycenter?1:E?gt.i-Q.i:Q.i-gt.i})),Z=x(Y,O,Z),m.forEach(I,function(Q){Z+=Q.vs.length,Y.push(Q.vs),H+=Q.barycenter*Q.weight,X+=Q.weight,Z=x(Y,O,Z)});var et={vs:m.flatten(Y,!0)};return X&&(et.barycenter=H/X,et.weight=X),et}},4219:(S,M,f)=>{var m=f(8436);S.exports=function(h){var x=function(g){var k={},E=0;return m.forEach(g.children(),function A(I){var O=E;m.forEach(g.children(I),A),k[I]={low:O,lim:E++}}),k}(h);m.forEach(h.graph().dummyChains,function(g){for(var k=h.node(g),E=k.edgeObj,A=function(Z,et,Q,gt){var ht,xt,Tt=[],ne=[],bt=Math.min(et[Q].low,et[gt].low),at=Math.max(et[Q].lim,et[gt].lim);ht=Q;do ht=Z.parent(ht),Tt.push(ht);while(ht&&(et[ht].low>bt||at>et[ht].lim));for(xt=ht,ht=gt;(ht=Z.parent(ht))!==xt;)ne.push(ht);return{path:Tt.concat(ne.reverse()),lca:xt}}(h,x,E.v,E.w),I=A.path,O=A.lca,Y=0,H=I[Y],X=!0;g!==E.w;){if(k=h.node(g),X){for(;(H=I[Y])!==O&&h.node(H).maxRank<k.rank;)Y++;H===O&&(X=!1)}if(!X){for(;Y<I.length-1&&h.node(H=I[Y+1]).minRank<=k.rank;)Y++;H=I[Y]}h.setParent(g,H),g=h.successors(g)[0]}})}},3573:(S,M,f)=>{var m=f(8436),h=f(574).Graph,x=f(1138);function g(Z,et){var Q={};return m.reduce(et,function(gt,ht){var xt=0,Tt=0,ne=gt.length,bt=m.last(ht);return m.forEach(ht,function(at,nt){var Dt=function(tt,lt){if(tt.node(lt).dummy)return m.find(tt.predecessors(lt),function(q){return tt.node(q).dummy})}(Z,at),Lt=Dt?Z.node(Dt).order:ne;(Dt||at===bt)&&(m.forEach(ht.slice(Tt,nt+1),function(tt){m.forEach(Z.predecessors(tt),function(lt){var q=Z.node(lt),Ut=q.order;!(Ut<xt||Lt<Ut)||q.dummy&&Z.node(tt).dummy||E(Q,lt,tt)})}),Tt=nt+1,xt=Lt)}),ht}),Q}function k(Z,et){var Q={};function gt(ht,xt,Tt,ne,bt){var at;m.forEach(m.range(xt,Tt),function(nt){at=ht[nt],Z.node(at).dummy&&m.forEach(Z.predecessors(at),function(Dt){var Lt=Z.node(Dt);Lt.dummy&&(Lt.order<ne||Lt.order>bt)&&E(Q,Dt,at)})})}return m.reduce(et,function(ht,xt){var Tt,ne=-1,bt=0;return m.forEach(xt,function(at,nt){if(Z.node(at).dummy==="border"){var Dt=Z.predecessors(at);Dt.length&&(Tt=Z.node(Dt[0]).order,gt(xt,bt,nt,ne,Tt),bt=nt,ne=Tt)}gt(xt,bt,xt.length,Tt,ht.length)}),xt}),Q}function E(Z,et,Q){if(et>Q){var gt=et;et=Q,Q=gt}var ht=Z[et];ht||(Z[et]=ht={}),ht[Q]=!0}function A(Z,et,Q){if(et>Q){var gt=et;et=Q,Q=gt}return m.has(Z[et],Q)}function I(Z,et,Q,gt){var ht={},xt={},Tt={};return m.forEach(et,function(ne){m.forEach(ne,function(bt,at){ht[bt]=bt,xt[bt]=bt,Tt[bt]=at})}),m.forEach(et,function(ne){var bt=-1;m.forEach(ne,function(at){var nt=gt(at);if(nt.length){nt=m.sortBy(nt,function(q){return Tt[q]});for(var Dt=(nt.length-1)/2,Lt=Math.floor(Dt),tt=Math.ceil(Dt);Lt<=tt;++Lt){var lt=nt[Lt];xt[at]===at&&bt<Tt[lt]&&!A(Q,at,lt)&&(xt[lt]=at,xt[at]=ht[at]=ht[lt],bt=Tt[lt])}}})}),{root:ht,align:xt}}function O(Z,et,Q,gt,ht){var xt={},Tt=function(at,nt,Dt,Lt){var tt=new h,lt=at.graph(),q=function(Ut,G,me){return function(ve,jt,ie){var he,pe=ve.node(jt),le=ve.node(ie),oe=0;if(oe+=pe.width/2,m.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":he=-pe.width/2;break;case"r":he=pe.width/2}if(he&&(oe+=me?he:-he),he=0,oe+=(pe.dummy?G:Ut)/2,oe+=(le.dummy?G:Ut)/2,oe+=le.width/2,m.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":he=le.width/2;break;case"r":he=-le.width/2}return he&&(oe+=me?he:-he),he=0,oe}}(lt.nodesep,lt.edgesep,Lt);return m.forEach(nt,function(Ut){var G;m.forEach(Ut,function(me){var ve=Dt[me];if(tt.setNode(ve),G){var jt=Dt[G],ie=tt.edge(jt,ve);tt.setEdge(jt,ve,Math.max(q(at,me,G),ie||0))}G=me})}),tt}(Z,et,Q,ht),ne=ht?"borderLeft":"borderRight";function bt(at,nt){for(var Dt=Tt.nodes(),Lt=Dt.pop(),tt={};Lt;)tt[Lt]?at(Lt):(tt[Lt]=!0,Dt.push(Lt),Dt=Dt.concat(nt(Lt))),Lt=Dt.pop()}return bt(function(at){xt[at]=Tt.inEdges(at).reduce(function(nt,Dt){return Math.max(nt,xt[Dt.v]+Tt.edge(Dt))},0)},Tt.predecessors.bind(Tt)),bt(function(at){var nt=Tt.outEdges(at).reduce(function(Lt,tt){return Math.min(Lt,xt[tt.w]-Tt.edge(tt))},Number.POSITIVE_INFINITY),Dt=Z.node(at);nt!==Number.POSITIVE_INFINITY&&Dt.borderType!==ne&&(xt[at]=Math.max(xt[at],nt))},Tt.successors.bind(Tt)),m.forEach(gt,function(at){xt[at]=xt[Q[at]]}),xt}function Y(Z,et){return m.minBy(m.values(et),function(Q){var gt=Number.NEGATIVE_INFINITY,ht=Number.POSITIVE_INFINITY;return m.forIn(Q,function(xt,Tt){var ne=function(bt,at){return bt.node(at).width}(Z,Tt)/2;gt=Math.max(xt+ne,gt),ht=Math.min(xt-ne,ht)}),gt-ht})}function H(Z,et){var Q=m.values(et),gt=m.min(Q),ht=m.max(Q);m.forEach(["u","d"],function(xt){m.forEach(["l","r"],function(Tt){var ne,bt=xt+Tt,at=Z[bt];if(at!==et){var nt=m.values(at);(ne=Tt==="l"?gt-m.min(nt):ht-m.max(nt))&&(Z[bt]=m.mapValues(at,function(Dt){return Dt+ne}))}})})}function X(Z,et){return m.mapValues(Z.ul,function(Q,gt){if(et)return Z[et.toLowerCase()][gt];var ht=m.sortBy(m.map(Z,gt));return(ht[1]+ht[2])/2})}S.exports={positionX:function(Z){var et,Q=x.buildLayerMatrix(Z),gt=m.merge(g(Z,Q),k(Z,Q)),ht={};m.forEach(["u","d"],function(Tt){et=Tt==="u"?Q:m.values(Q).reverse(),m.forEach(["l","r"],function(ne){ne==="r"&&(et=m.map(et,function(Dt){return m.values(Dt).reverse()}));var bt=(Tt==="u"?Z.predecessors:Z.successors).bind(Z),at=I(0,et,gt,bt),nt=O(Z,et,at.root,at.align,ne==="r");ne==="r"&&(nt=m.mapValues(nt,function(Dt){return-Dt})),ht[Tt+ne]=nt})});var xt=Y(Z,ht);return H(ht,xt),X(ht,Z.graph().align)},findType1Conflicts:g,findType2Conflicts:k,addConflict:E,hasConflict:A,verticalAlignment:I,horizontalCompaction:O,alignCoordinates:H,findSmallestWidthAlignment:Y,balance:X}},7873:(S,M,f)=>{var m=f(8436),h=f(1138),x=f(3573).positionX;S.exports=function(g){(function(k){var E=h.buildLayerMatrix(k),A=k.graph().ranksep,I=0;m.forEach(E,function(O){var Y=m.max(m.map(O,function(H){return k.node(H).height}));m.forEach(O,function(H){k.node(H).y=I+Y/2}),I+=Y+A})})(g=h.asNonCompoundGraph(g)),m.forEach(x(g),function(k,E){g.node(E).x=k})}},300:(S,M,f)=>{var m=f(8436),h=f(574).Graph,x=f(6681).slack;function g(A,I){return m.forEach(A.nodes(),function O(Y){m.forEach(I.nodeEdges(Y),function(H){var X=H.v,Z=Y===X?H.w:X;A.hasNode(Z)||x(I,H)||(A.setNode(Z,{}),A.setEdge(Y,Z,{}),O(Z))})}),A.nodeCount()}function k(A,I){return m.minBy(I.edges(),function(O){if(A.hasNode(O.v)!==A.hasNode(O.w))return x(I,O)})}function E(A,I,O){m.forEach(A.nodes(),function(Y){I.node(Y).rank+=O})}S.exports=function(A){var I,O,Y=new h({directed:!1}),H=A.nodes()[0],X=A.nodeCount();for(Y.setNode(H,{});g(Y,A)<X;)I=k(Y,A),O=Y.hasNode(I.v)?x(A,I):-x(A,I),E(Y,A,O);return Y}},8093:(S,M,f)=>{var m=f(6681).longestPath,h=f(300),x=f(2472);S.exports=function(k){switch(k.graph().ranker){case"network-simplex":default:(function(E){x(E)})(k);break;case"tight-tree":(function(E){m(E),h(E)})(k);break;case"longest-path":g(k)}};var g=m},2472:(S,M,f)=>{var m=f(8436),h=f(300),x=f(6681).slack,g=f(6681).longestPath,k=f(574).alg.preorder,E=f(574).alg.postorder,A=f(1138).simplify;function I(ht){ht=A(ht),g(ht);var xt,Tt=h(ht);for(H(Tt),O(Tt,ht);xt=Z(Tt);)Q(Tt,ht,xt,et(Tt,ht,xt))}function O(ht,xt){var Tt=E(ht,ht.nodes());Tt=Tt.slice(0,Tt.length-1),m.forEach(Tt,function(ne){(function(bt,at,nt){var Dt=bt.node(nt).parent;bt.edge(nt,Dt).cutvalue=Y(bt,at,nt)})(ht,xt,ne)})}function Y(ht,xt,Tt){var ne=ht.node(Tt).parent,bt=!0,at=xt.edge(Tt,ne),nt=0;return at||(bt=!1,at=xt.edge(ne,Tt)),nt=at.weight,m.forEach(xt.nodeEdges(Tt),function(Dt){var Lt,tt,lt=Dt.v===Tt,q=lt?Dt.w:Dt.v;if(q!==ne){var Ut=lt===bt,G=xt.edge(Dt).weight;if(nt+=Ut?G:-G,Lt=Tt,tt=q,ht.hasEdge(Lt,tt)){var me=ht.edge(Tt,q).cutvalue;nt+=Ut?-me:me}}}),nt}function H(ht,xt){arguments.length<2&&(xt=ht.nodes()[0]),X(ht,{},1,xt)}function X(ht,xt,Tt,ne,bt){var at=Tt,nt=ht.node(ne);return xt[ne]=!0,m.forEach(ht.neighbors(ne),function(Dt){m.has(xt,Dt)||(Tt=X(ht,xt,Tt,Dt,ne))}),nt.low=at,nt.lim=Tt++,bt?nt.parent=bt:delete nt.parent,Tt}function Z(ht){return m.find(ht.edges(),function(xt){return ht.edge(xt).cutvalue<0})}function et(ht,xt,Tt){var ne=Tt.v,bt=Tt.w;xt.hasEdge(ne,bt)||(ne=Tt.w,bt=Tt.v);var at=ht.node(ne),nt=ht.node(bt),Dt=at,Lt=!1;at.lim>nt.lim&&(Dt=nt,Lt=!0);var tt=m.filter(xt.edges(),function(lt){return Lt===gt(0,ht.node(lt.v),Dt)&&Lt!==gt(0,ht.node(lt.w),Dt)});return m.minBy(tt,function(lt){return x(xt,lt)})}function Q(ht,xt,Tt,ne){var bt=Tt.v,at=Tt.w;ht.removeEdge(bt,at),ht.setEdge(ne.v,ne.w,{}),H(ht),O(ht,xt),function(nt,Dt){var Lt=m.find(nt.nodes(),function(lt){return!Dt.node(lt).parent}),tt=k(nt,Lt);tt=tt.slice(1),m.forEach(tt,function(lt){var q=nt.node(lt).parent,Ut=Dt.edge(lt,q),G=!1;Ut||(Ut=Dt.edge(q,lt),G=!0),Dt.node(lt).rank=Dt.node(q).rank+(G?Ut.minlen:-Ut.minlen)})}(ht,xt)}function gt(ht,xt,Tt){return Tt.low<=xt.lim&&xt.lim<=Tt.lim}S.exports=I,I.initLowLimValues=H,I.initCutValues=O,I.calcCutValue=Y,I.leaveEdge=Z,I.enterEdge=et,I.exchangeEdges=Q},6681:(S,M,f)=>{var m=f(8436);S.exports={longestPath:function(h){var x={};m.forEach(h.sources(),function g(k){var E=h.node(k);if(m.has(x,k))return E.rank;x[k]=!0;var A=m.min(m.map(h.outEdges(k),function(I){return g(I.w)-h.edge(I).minlen}));return A!==Number.POSITIVE_INFINITY&&A!=null||(A=0),E.rank=A})},slack:function(h,x){return h.node(x.w).rank-h.node(x.v).rank-h.edge(x).minlen}}},1138:(S,M,f)=>{var m=f(8436),h=f(574).Graph;function x(k,E,A,I){var O;do O=m.uniqueId(I);while(k.hasNode(O));return A.dummy=E,k.setNode(O,A),O}function g(k){return m.max(m.map(k.nodes(),function(E){var A=k.node(E).rank;if(!m.isUndefined(A))return A}))}S.exports={addDummyNode:x,simplify:function(k){var E=new h().setGraph(k.graph());return m.forEach(k.nodes(),function(A){E.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){var I=E.edge(A.v,A.w)||{weight:0,minlen:1},O=k.edge(A);E.setEdge(A.v,A.w,{weight:I.weight+O.weight,minlen:Math.max(I.minlen,O.minlen)})}),E},asNonCompoundGraph:function(k){var E=new h({multigraph:k.isMultigraph()}).setGraph(k.graph());return m.forEach(k.nodes(),function(A){k.children(A).length||E.setNode(A,k.node(A))}),m.forEach(k.edges(),function(A){E.setEdge(A,k.edge(A))}),E},successorWeights:function(k){var E=m.map(k.nodes(),function(A){var I={};return m.forEach(k.outEdges(A),function(O){I[O.w]=(I[O.w]||0)+k.edge(O).weight}),I});return m.zipObject(k.nodes(),E)},predecessorWeights:function(k){var E=m.map(k.nodes(),function(A){var I={};return m.forEach(k.inEdges(A),function(O){I[O.v]=(I[O.v]||0)+k.edge(O).weight}),I});return m.zipObject(k.nodes(),E)},intersectRect:function(k,E){var A,I,O=k.x,Y=k.y,H=E.x-O,X=E.y-Y,Z=k.width/2,et=k.height/2;if(!H&&!X)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(X)*Z>Math.abs(H)*et?(X<0&&(et=-et),A=et*H/X,I=et):(H<0&&(Z=-Z),A=Z,I=Z*X/H),{x:O+A,y:Y+I}},buildLayerMatrix:function(k){var E=m.map(m.range(g(k)+1),function(){return[]});return m.forEach(k.nodes(),function(A){var I=k.node(A),O=I.rank;m.isUndefined(O)||(E[O][I.order]=A)}),E},normalizeRanks:function(k){var E=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-=E)})},removeEmptyRanks:function(k){var E=m.min(m.map(k.nodes(),function(Y){return k.node(Y).rank})),A=[];m.forEach(k.nodes(),function(Y){var H=k.node(Y).rank-E;A[H]||(A[H]=[]),A[H].push(Y)});var I=0,O=k.graph().nodeRankFactor;m.forEach(A,function(Y,H){m.isUndefined(Y)&&H%O!=0?--I:I&&m.forEach(Y,function(X){k.node(X).rank+=I})})},addBorderNode:function(k,E,A,I){var O={width:0,height:0};return arguments.length>=4&&(O.rank=A,O.order=I),x(k,"border",O,E)},maxRank:g,partition:function(k,E){var A={lhs:[],rhs:[]};return m.forEach(k,function(I){E(I)?A.lhs.push(I):A.rhs.push(I)}),A},time:function(k,E){var A=m.now();try{return E()}finally{console.log(k+" time: "+(m.now()-A)+"ms")}},notime:function(k,E){return E()}}},8177:S=>{S.exports="0.8.5"},7856:function(S){S.exports=function(){var M=Object.hasOwnProperty,f=Object.setPrototypeOf,m=Object.isFrozen,h=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor,g=Object.freeze,k=Object.seal,E=Object.create,A=typeof Reflect!="undefined"&&Reflect,I=A.apply,O=A.construct;I||(I=function(It,se,Se){return It.apply(se,Se)}),g||(g=function(It){return It}),k||(k=function(It){return It}),O||(O=function(It,se){return new(Function.prototype.bind.apply(It,[null].concat(function(Se){if(Array.isArray(Se)){for(var be=0,Ae=Array(Se.length);be<Se.length;be++)Ae[be]=Se[be];return Ae}return Array.from(Se)}(se))))});var Y,H=bt(Array.prototype.forEach),X=bt(Array.prototype.pop),Z=bt(Array.prototype.push),et=bt(String.prototype.toLowerCase),Q=bt(String.prototype.match),gt=bt(String.prototype.replace),ht=bt(String.prototype.indexOf),xt=bt(String.prototype.trim),Tt=bt(RegExp.prototype.test),ne=(Y=TypeError,function(){for(var It=arguments.length,se=Array(It),Se=0;Se<It;Se++)se[Se]=arguments[Se];return O(Y,se)});function bt(It){return function(se){for(var Se=arguments.length,be=Array(Se>1?Se-1:0),Ae=1;Ae<Se;Ae++)be[Ae-1]=arguments[Ae];return I(It,se,be)}}function at(It,se){f&&f(It,null);for(var Se=se.length;Se--;){var be=se[Se];if(typeof be=="string"){var Ae=et(be);Ae!==be&&(m(se)||(se[Se]=Ae),be=Ae)}It[be]=!0}return It}function nt(It){var se=E(null),Se=void 0;for(Se in It)I(M,It,[Se])&&(se[Se]=It[Se]);return se}function Dt(It,se){for(;It!==null;){var Se=x(It,se);if(Se){if(Se.get)return bt(Se.get);if(typeof Se.value=="function")return bt(Se.value)}It=h(It)}return function(be){return console.warn("fallback value for",be),null}}var Lt=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"]),tt=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"]),lt=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"]),q=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"]),Ut=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"]),G=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),me=g(["#text"]),ve=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"]),jt=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"]),ie=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"]),he=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=k(/\{\{[\s\S]*|[\s\S]*\}\}/gm),le=k(/<%[\s\S]*|[\s\S]*%>/gm),oe=k(/^data-[\-\w.\u00B7-\uFFFF]/),wn=k(/^aria-[\-\w]+$/),fe=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=k(/^(?:\w+script|data):/i),Zt=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=k(/^html$/i),Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It};function mt(It){if(Array.isArray(It)){for(var se=0,Se=Array(It.length);se<It.length;se++)Se[se]=It[se];return Se}return Array.from(It)}var Ht=function(){return typeof window=="undefined"?null:window},kt=function(It,se){if((It===void 0?"undefined":Qt(It))!=="object"||typeof It.createPolicy!="function")return null;var Se=null,be="data-tt-policy-suffix";se.currentScript&&se.currentScript.hasAttribute(be)&&(Se=se.currentScript.getAttribute(be));var Ae="dompurify"+(Se?"#"+Se:"");try{return It.createPolicy(Ae,{createHTML:function(cn){return cn}})}catch{return console.warn("TrustedTypes policy "+Ae+" could not be created."),null}};return function It(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ht(),Se=function(Yt){return It(Yt)};if(Se.version="2.3.6",Se.removed=[],!se||!se.document||se.document.nodeType!==9)return Se.isSupported=!1,Se;var be=se.document,Ae=se.document,cn=se.DocumentFragment,De=se.HTMLTemplateElement,Be=se.Node,Le=se.Element,Ze=se.NodeFilter,Ke=se.NamedNodeMap,Je=Ke===void 0?se.NamedNodeMap||se.MozNamedAttrMap:Ke,$e=se.HTMLFormElement,Ue=se.DOMParser,Yn=se.trustedTypes,Me=Le.prototype,un=Dt(Me,"cloneNode"),gn=Dt(Me,"nextSibling"),kr=Dt(Me,"childNodes"),kn=Dt(Me,"parentNode");if(typeof De=="function"){var sr=Ae.createElement("template");sr.content&&sr.content.ownerDocument&&(Ae=sr.content.ownerDocument)}var rn=kt(Yn,be),ln=rn?rn.createHTML(""):"",Ye=Ae,mn=Ye.implementation,bn=Ye.createNodeIterator,zn=Ye.createDocumentFragment,Un=Ye.getElementsByTagName,Cr=be.importNode,Ln={};try{Ln=nt(Ae).documentMode?Ae.documentMode:{}}catch{}var Sn={};Se.isSupported=typeof kn=="function"&&mn&&mn.createHTMLDocument!==void 0&&Ln!==9;var Fn=pe,qn=le,Vn=oe,Xn=wn,Tn=ae,In=Zt,An=fe,hn=null,Hn=at({},[].concat(mt(Lt),mt(tt),mt(lt),mt(Ut),mt(me))),ir=null,ra=at({},[].concat(mt(ve),mt(jt),mt(ie),mt(he))),gr=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}})),Bn=null,io=null,Ta=!0,Vr=!0,Gr=!1,Fr=!1,Er=!1,Xr=!1,Ur=!1,qr=!1,Dr=!1,li=!1,hi=!0,cr=!0,Hr=!1,ia={},Lr=null,aa=at({},["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"]),ao=null,fi=at({},["audio","video","img","source","image","track"]),an=null,Jn=at({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cn="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",$n="http://www.w3.org/1999/xhtml",pt=$n,ii=!1,Xt=void 0,ki=["application/xhtml+xml","text/html"],go="text/html",Ca=void 0,Ui=null,Yo=Ae.createElement("form"),zo=function(Yt){return Yt instanceof RegExp||Yt instanceof Function},Pr=function(Yt){Ui&&Ui===Yt||(Yt&&(Yt===void 0?"undefined":Qt(Yt))==="object"||(Yt={}),Yt=nt(Yt),hn="ALLOWED_TAGS"in Yt?at({},Yt.ALLOWED_TAGS):Hn,ir="ALLOWED_ATTR"in Yt?at({},Yt.ALLOWED_ATTR):ra,an="ADD_URI_SAFE_ATTR"in Yt?at(nt(Jn),Yt.ADD_URI_SAFE_ATTR):Jn,ao="ADD_DATA_URI_TAGS"in Yt?at(nt(fi),Yt.ADD_DATA_URI_TAGS):fi,Lr="FORBID_CONTENTS"in Yt?at({},Yt.FORBID_CONTENTS):aa,Bn="FORBID_TAGS"in Yt?at({},Yt.FORBID_TAGS):{},io="FORBID_ATTR"in Yt?at({},Yt.FORBID_ATTR):{},ia="USE_PROFILES"in Yt&&Yt.USE_PROFILES,Ta=Yt.ALLOW_ARIA_ATTR!==!1,Vr=Yt.ALLOW_DATA_ATTR!==!1,Gr=Yt.ALLOW_UNKNOWN_PROTOCOLS||!1,Fr=Yt.SAFE_FOR_TEMPLATES||!1,Er=Yt.WHOLE_DOCUMENT||!1,qr=Yt.RETURN_DOM||!1,Dr=Yt.RETURN_DOM_FRAGMENT||!1,li=Yt.RETURN_TRUSTED_TYPE||!1,Ur=Yt.FORCE_BODY||!1,hi=Yt.SANITIZE_DOM!==!1,cr=Yt.KEEP_CONTENT!==!1,Hr=Yt.IN_PLACE||!1,An=Yt.ALLOWED_URI_REGEXP||An,pt=Yt.NAMESPACE||$n,Yt.CUSTOM_ELEMENT_HANDLING&&zo(Yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(gr.tagNameCheck=Yt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Yt.CUSTOM_ELEMENT_HANDLING&&zo(Yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(gr.attributeNameCheck=Yt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Yt.CUSTOM_ELEMENT_HANDLING&&typeof Yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(gr.allowCustomizedBuiltInElements=Yt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xt=Xt=ki.indexOf(Yt.PARSER_MEDIA_TYPE)===-1?go:Yt.PARSER_MEDIA_TYPE,Ca=Xt==="application/xhtml+xml"?function(Ve){return Ve}:et,Fr&&(Vr=!1),Dr&&(qr=!0),ia&&(hn=at({},[].concat(mt(me))),ir=[],ia.html===!0&&(at(hn,Lt),at(ir,ve)),ia.svg===!0&&(at(hn,tt),at(ir,jt),at(ir,he)),ia.svgFilters===!0&&(at(hn,lt),at(ir,jt),at(ir,he)),ia.mathMl===!0&&(at(hn,Ut),at(ir,ie),at(ir,he))),Yt.ADD_TAGS&&(hn===Hn&&(hn=nt(hn)),at(hn,Yt.ADD_TAGS)),Yt.ADD_ATTR&&(ir===ra&&(ir=nt(ir)),at(ir,Yt.ADD_ATTR)),Yt.ADD_URI_SAFE_ATTR&&at(an,Yt.ADD_URI_SAFE_ATTR),Yt.FORBID_CONTENTS&&(Lr===aa&&(Lr=nt(Lr)),at(Lr,Yt.FORBID_CONTENTS)),cr&&(hn["#text"]=!0),Er&&at(hn,["html","head","body"]),hn.table&&(at(hn,["tbody"]),delete Bn.tbody),g&&g(Yt),Ui=Yt)},qi=at({},["mi","mo","mn","ms","mtext"]),Dn=at({},["foreignobject","desc","title","annotation-xml"]),oa=at({},tt);at(oa,lt),at(oa,q);var sa=at({},Ut);at(sa,G);var $r=function(Yt){var Ve=kn(Yt);Ve&&Ve.tagName||(Ve={namespaceURI:$n,tagName:"template"});var qe=et(Yt.tagName),lr=et(Ve.tagName);if(Yt.namespaceURI===ze)return Ve.namespaceURI===$n?qe==="svg":Ve.namespaceURI===Cn?qe==="svg"&&(lr==="annotation-xml"||qi[lr]):Boolean(oa[qe]);if(Yt.namespaceURI===Cn)return Ve.namespaceURI===$n?qe==="math":Ve.namespaceURI===ze?qe==="math"&&Dn[lr]:Boolean(sa[qe]);if(Yt.namespaceURI===$n){if(Ve.namespaceURI===ze&&!Dn[lr]||Ve.namespaceURI===Cn&&!qi[lr])return!1;var Sr=at({},["title","style","font","a","script"]);return!sa[qe]&&(Sr[qe]||!oa[qe])}return!1},ar=function(Yt){Z(Se.removed,{element:Yt});try{Yt.parentNode.removeChild(Yt)}catch{try{Yt.outerHTML=ln}catch{Yt.remove()}}},di=function(Yt,Ve){try{Z(Se.removed,{attribute:Ve.getAttributeNode(Yt),from:Ve})}catch{Z(Se.removed,{attribute:null,from:Ve})}if(Ve.removeAttribute(Yt),Yt==="is"&&!ir[Yt])if(qr||Dr)try{ar(Ve)}catch{}else try{Ve.setAttribute(Yt,"")}catch{}},Zr=function(Yt){var Ve=void 0,qe=void 0;if(Ur)Yt="<remove></remove>"+Yt;else{var lr=Q(Yt,/^[\r\n\t ]+/);qe=lr&&lr[0]}Xt==="application/xhtml+xml"&&(Yt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Yt+"</body></html>");var Sr=rn?rn.createHTML(Yt):Yt;if(pt===$n)try{Ve=new Ue().parseFromString(Sr,Xt)}catch{}if(!Ve||!Ve.documentElement){Ve=mn.createDocument(pt,"template",null);try{Ve.documentElement.innerHTML=ii?"":Sr}catch{}}var ai=Ve.body||Ve.documentElement;return Yt&&qe&&ai.insertBefore(Ae.createTextNode(qe),ai.childNodes[0]||null),pt===$n?Un.call(Ve,Er?"html":"body")[0]:Er?Ve.documentElement:ai},Br=function(Yt){return bn.call(Yt.ownerDocument||Yt,Yt,Ze.SHOW_ELEMENT|Ze.SHOW_COMMENT|Ze.SHOW_TEXT,null,!1)},Kr=function(Yt){return Yt instanceof $e&&(typeof Yt.nodeName!="string"||typeof Yt.textContent!="string"||typeof Yt.removeChild!="function"||!(Yt.attributes instanceof Je)||typeof Yt.removeAttribute!="function"||typeof Yt.setAttribute!="function"||typeof Yt.namespaceURI!="string"||typeof Yt.insertBefore!="function")},Li=function(Yt){return(Be===void 0?"undefined":Qt(Be))==="object"?Yt instanceof Be:Yt&&(Yt===void 0?"undefined":Qt(Yt))==="object"&&typeof Yt.nodeType=="number"&&typeof Yt.nodeName=="string"},mr=function(Yt,Ve,qe){Sn[Yt]&&H(Sn[Yt],function(lr){lr.call(Se,Ve,qe,Ui)})},Hi=function(Yt){var Ve=void 0;if(mr("beforeSanitizeElements",Yt,null),Kr(Yt)||Q(Yt.nodeName,/[\u0080-\uFFFF]/))return ar(Yt),!0;var qe=Ca(Yt.nodeName);if(mr("uponSanitizeElement",Yt,{tagName:qe,allowedTags:hn}),!Li(Yt.firstElementChild)&&(!Li(Yt.content)||!Li(Yt.content.firstElementChild))&&Tt(/<[/\w]/g,Yt.innerHTML)&&Tt(/<[/\w]/g,Yt.textContent)||qe==="select"&&Tt(/<template/i,Yt.innerHTML))return ar(Yt),!0;if(!hn[qe]||Bn[qe]){if(!Bn[qe]&&Ti(qe)&&(gr.tagNameCheck instanceof RegExp&&Tt(gr.tagNameCheck,qe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(qe)))return!1;if(cr&&!Lr[qe]){var lr=kn(Yt)||Yt.parentNode,Sr=kr(Yt)||Yt.childNodes;if(Sr&&lr)for(var ai=Sr.length-1;ai>=0;--ai)lr.insertBefore(un(Sr[ai],!0),gn(Yt))}return ar(Yt),!0}return Yt instanceof Le&&!$r(Yt)?(ar(Yt),!0):qe!=="noscript"&&qe!=="noembed"||!Tt(/<\/no(script|embed)/i,Yt.innerHTML)?(Fr&&Yt.nodeType===3&&(Ve=Yt.textContent,Ve=gt(Ve,Fn," "),Ve=gt(Ve,qn," "),Yt.textContent!==Ve&&(Z(Se.removed,{element:Yt.cloneNode()}),Yt.textContent=Ve)),mr("afterSanitizeElements",Yt,null),!1):(ar(Yt),!0)},Bi=function(Yt,Ve,qe){if(hi&&(Ve==="id"||Ve==="name")&&(qe in Ae||qe in Yo))return!1;if(!(Vr&&!io[Ve]&&Tt(Vn,Ve))){if(!(Ta&&Tt(Xn,Ve))){if(!ir[Ve]||io[Ve]){if(!(Ti(Yt)&&(gr.tagNameCheck instanceof RegExp&&Tt(gr.tagNameCheck,Yt)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(Yt))&&(gr.attributeNameCheck instanceof RegExp&&Tt(gr.attributeNameCheck,Ve)||gr.attributeNameCheck instanceof Function&&gr.attributeNameCheck(Ve))||Ve==="is"&&gr.allowCustomizedBuiltInElements&&(gr.tagNameCheck instanceof RegExp&&Tt(gr.tagNameCheck,qe)||gr.tagNameCheck instanceof Function&&gr.tagNameCheck(qe))))return!1}else if(!an[Ve]){if(!Tt(An,gt(qe,In,""))){if((Ve!=="src"&&Ve!=="xlink:href"&&Ve!=="href"||Yt==="script"||ht(qe,"data:")!==0||!ao[Yt])&&!(Gr&&!Tt(Tn,gt(qe,In,"")))){if(qe)return!1}}}}}return!0},Ti=function(Yt){return Yt.indexOf("-")>0},Ya=function(Yt){var Ve=void 0,qe=void 0,lr=void 0,Sr=void 0;mr("beforeSanitizeAttributes",Yt,null);var ai=Yt.attributes;if(ai){var pi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ir};for(Sr=ai.length;Sr--;){var Ea=Ve=ai[Sr],Wr=Ea.name,Oi=Ea.namespaceURI;if(qe=xt(Ve.value),lr=Ca(Wr),pi.attrName=lr,pi.attrValue=qe,pi.keepAttr=!0,pi.forceKeepAttr=void 0,mr("uponSanitizeAttribute",Yt,pi),qe=pi.attrValue,!pi.forceKeepAttr&&(di(Wr,Yt),pi.keepAttr))if(Tt(/\/>/i,qe))di(Wr,Yt);else{Fr&&(qe=gt(qe,Fn," "),qe=gt(qe,qn," "));var Sa=Ca(Yt.nodeName);if(Bi(Sa,lr,qe))try{Oi?Yt.setAttributeNS(Oi,Wr,qe):Yt.setAttribute(Wr,qe),X(Se.removed)}catch{}}}mr("afterSanitizeAttributes",Yt,null)}},Jr=function Yt(Ve){var qe=void 0,lr=Br(Ve);for(mr("beforeSanitizeShadowDOM",Ve,null);qe=lr.nextNode();)mr("uponSanitizeShadowNode",qe,null),Hi(qe)||(qe.content instanceof cn&&Yt(qe.content),Ya(qe));mr("afterSanitizeShadowDOM",Ve,null)};return Se.sanitize=function(Yt,Ve){var qe=void 0,lr=void 0,Sr=void 0,ai=void 0,pi=void 0;if((ii=!Yt)&&(Yt="<!-->"),typeof Yt!="string"&&!Li(Yt)){if(typeof Yt.toString!="function")throw ne("toString is not a function");if(typeof(Yt=Yt.toString())!="string")throw ne("dirty is not a string, aborting")}if(!Se.isSupported){if(Qt(se.toStaticHTML)==="object"||typeof se.toStaticHTML=="function"){if(typeof Yt=="string")return se.toStaticHTML(Yt);if(Li(Yt))return se.toStaticHTML(Yt.outerHTML)}return Yt}if(Xr||Pr(Ve),Se.removed=[],typeof Yt=="string"&&(Hr=!1),Hr){if(Yt.nodeName){var Ea=Ca(Yt.nodeName);if(!hn[Ea]||Bn[Ea])throw ne("root node is forbidden and cannot be sanitized in-place")}}else if(Yt instanceof Be)(lr=(qe=Zr("<!---->")).ownerDocument.importNode(Yt,!0)).nodeType===1&&lr.nodeName==="BODY"||lr.nodeName==="HTML"?qe=lr:qe.appendChild(lr);else{if(!qr&&!Fr&&!Er&&Yt.indexOf("<")===-1)return rn&&li?rn.createHTML(Yt):Yt;if(!(qe=Zr(Yt)))return qr?null:li?ln:""}qe&&Ur&&ar(qe.firstChild);for(var Wr=Br(Hr?Yt:qe);Sr=Wr.nextNode();)Sr.nodeType===3&&Sr===ai||Hi(Sr)||(Sr.content instanceof cn&&Jr(Sr.content),Ya(Sr),ai=Sr);if(ai=null,Hr)return Yt;if(qr){if(Dr)for(pi=zn.call(qe.ownerDocument);qe.firstChild;)pi.appendChild(qe.firstChild);else pi=qe;return ir.shadowroot&&(pi=Cr.call(be,pi,!0)),pi}var Oi=Er?qe.outerHTML:qe.innerHTML;return Er&&hn["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&Tt(St,qe.ownerDocument.doctype.name)&&(Oi="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
|
|
`+Oi),Fr&&(Oi=gt(Oi,Fn," "),Oi=gt(Oi,qn," ")),rn&&li?rn.createHTML(Oi):Oi},Se.setConfig=function(Yt){Pr(Yt),Xr=!0},Se.clearConfig=function(){Ui=null,Xr=!1},Se.isValidAttribute=function(Yt,Ve,qe){Ui||Pr({});var lr=Ca(Yt),Sr=Ca(Ve);return Bi(lr,Sr,qe)},Se.addHook=function(Yt,Ve){typeof Ve=="function"&&(Sn[Yt]=Sn[Yt]||[],Z(Sn[Yt],Ve))},Se.removeHook=function(Yt){Sn[Yt]&&X(Sn[Yt])},Se.removeHooks=function(Yt){Sn[Yt]&&(Sn[Yt]=[])},Se.removeAllHooks=function(){Sn={}},Se}()}()},8282:(S,M,f)=>{var m=f(2354);S.exports={Graph:m.Graph,json:f(8974),alg:f(2440),version:m.version}},2842:(S,M,f)=>{var m=f(9126);S.exports=function(h){var x,g={},k=[];function E(A){m.has(g,A)||(g[A]=!0,x.push(A),m.each(h.successors(A),E),m.each(h.predecessors(A),E))}return m.each(h.nodes(),function(A){x=[],E(A),x.length&&k.push(x)}),k}},3984:(S,M,f)=>{var m=f(9126);function h(x,g,k,E,A,I){m.has(E,g)||(E[g]=!0,k||I.push(g),m.each(A(g),function(O){h(x,O,k,E,A,I)}),k&&I.push(g))}S.exports=function(x,g,k){m.isArray(g)||(g=[g]);var E=(x.isDirected()?x.successors:x.neighbors).bind(x),A=[],I={};return m.each(g,function(O){if(!x.hasNode(O))throw new Error("Graph does not have node: "+O);h(x,O,k==="post",I,E,A)}),A}},4847:(S,M,f)=>{var m=f(3763),h=f(9126);S.exports=function(x,g,k){return h.transform(x.nodes(),function(E,A){E[A]=m(x,A,g,k)},{})}},3763:(S,M,f)=>{var m=f(9126),h=f(9675);S.exports=function(g,k,E,A){return function(I,O,Y,H){var X,Z,et={},Q=new h,gt=function(ht){var xt=ht.v!==X?ht.v:ht.w,Tt=et[xt],ne=Y(ht),bt=Z.distance+ne;if(ne<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+ht+" Weight: "+ne);bt<Tt.distance&&(Tt.distance=bt,Tt.predecessor=X,Q.decrease(xt,bt))};for(I.nodes().forEach(function(ht){var xt=ht===O?0:Number.POSITIVE_INFINITY;et[ht]={distance:xt},Q.add(ht,xt)});Q.size()>0&&(X=Q.removeMin(),(Z=et[X]).distance!==Number.POSITIVE_INFINITY);)H(X).forEach(gt);return et}(g,String(k),E||x,A||function(I){return g.outEdges(I)})};var x=m.constant(1)},9096:(S,M,f)=>{var m=f(9126),h=f(5023);S.exports=function(x){return m.filter(h(x),function(g){return g.length>1||g.length===1&&x.hasEdge(g[0],g[0])})}},8924:(S,M,f)=>{var m=f(9126);S.exports=function(x,g,k){return function(E,A,I){var O={},Y=E.nodes();return Y.forEach(function(H){O[H]={},O[H][H]={distance:0},Y.forEach(function(X){H!==X&&(O[H][X]={distance:Number.POSITIVE_INFINITY})}),I(H).forEach(function(X){var Z=X.v===H?X.w:X.v,et=A(X);O[H][Z]={distance:et,predecessor:H}})}),Y.forEach(function(H){var X=O[H];Y.forEach(function(Z){var et=O[Z];Y.forEach(function(Q){var gt=et[H],ht=X[Q],xt=et[Q],Tt=gt.distance+ht.distance;Tt<xt.distance&&(xt.distance=Tt,xt.predecessor=ht.predecessor)})})}),O}(x,g||h,k||function(E){return x.outEdges(E)})};var h=m.constant(1)},2440:(S,M,f)=>{S.exports={components:f(2842),dijkstra:f(3763),dijkstraAll:f(4847),findCycles:f(9096),floydWarshall:f(8924),isAcyclic:f(2707),postorder:f(8828),preorder:f(2648),prim:f(514),tarjan:f(5023),topsort:f(2166)}},2707:(S,M,f)=>{var m=f(2166);S.exports=function(h){try{m(h)}catch(x){if(x instanceof m.CycleException)return!1;throw x}return!0}},8828:(S,M,f)=>{var m=f(3984);S.exports=function(h,x){return m(h,x,"post")}},2648:(S,M,f)=>{var m=f(3984);S.exports=function(h,x){return m(h,x,"pre")}},514:(S,M,f)=>{var m=f(9126),h=f(771),x=f(9675);S.exports=function(g,k){var E,A=new h,I={},O=new x;function Y(X){var Z=X.v===E?X.w:X.v,et=O.priority(Z);if(et!==void 0){var Q=k(X);Q<et&&(I[Z]=E,O.decrease(Z,Q))}}if(g.nodeCount()===0)return A;m.each(g.nodes(),function(X){O.add(X,Number.POSITIVE_INFINITY),A.setNode(X)}),O.decrease(g.nodes()[0],0);for(var H=!1;O.size()>0;){if(E=O.removeMin(),m.has(I,E))A.setEdge(E,I[E]);else{if(H)throw new Error("Input graph is not connected: "+g);H=!0}g.nodeEdges(E).forEach(Y)}return A}},5023:(S,M,f)=>{var m=f(9126);S.exports=function(h){var x=0,g=[],k={},E=[];function A(I){var O=k[I]={onStack:!0,lowlink:x,index:x++};if(g.push(I),h.successors(I).forEach(function(X){m.has(k,X)?k[X].onStack&&(O.lowlink=Math.min(O.lowlink,k[X].index)):(A(X),O.lowlink=Math.min(O.lowlink,k[X].lowlink))}),O.lowlink===O.index){var Y,H=[];do Y=g.pop(),k[Y].onStack=!1,H.push(Y);while(I!==Y);E.push(H)}}return h.nodes().forEach(function(I){m.has(k,I)||A(I)}),E}},2166:(S,M,f)=>{var m=f(9126);function h(g){var k={},E={},A=[];if(m.each(g.sinks(),function I(O){if(m.has(E,O))throw new x;m.has(k,O)||(E[O]=!0,k[O]=!0,m.each(g.predecessors(O),I),delete E[O],A.push(O))}),m.size(k)!==g.nodeCount())throw new x;return A}function x(){}S.exports=h,h.CycleException=x,x.prototype=new Error},9675:(S,M,f)=>{var m=f(9126);function h(){this._arr=[],this._keyIndices={}}S.exports=h,h.prototype.size=function(){return this._arr.length},h.prototype.keys=function(){return this._arr.map(function(x){return x.key})},h.prototype.has=function(x){return m.has(this._keyIndices,x)},h.prototype.priority=function(x){var g=this._keyIndices[x];if(g!==void 0)return this._arr[g].priority},h.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},h.prototype.add=function(x,g){var k=this._keyIndices;if(x=String(x),!m.has(k,x)){var E=this._arr,A=E.length;return k[x]=A,E.push({key:x,priority:g}),this._decrease(A),!0}return!1},h.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var x=this._arr.pop();return delete this._keyIndices[x.key],this._heapify(0),x.key},h.prototype.decrease=function(x,g){var k=this._keyIndices[x];if(g>this._arr[k].priority)throw new Error("New priority is greater than current priority. Key: "+x+" Old: "+this._arr[k].priority+" New: "+g);this._arr[k].priority=g,this._decrease(k)},h.prototype._heapify=function(x){var g=this._arr,k=2*x,E=k+1,A=x;k<g.length&&(A=g[k].priority<g[A].priority?k:A,E<g.length&&(A=g[E].priority<g[A].priority?E:A),A!==x&&(this._swap(x,A),this._heapify(A)))},h.prototype._decrease=function(x){for(var g,k=this._arr,E=k[x].priority;x!==0&&!(k[g=x>>1].priority<E);)this._swap(x,g),x=g},h.prototype._swap=function(x,g){var k=this._arr,E=this._keyIndices,A=k[x],I=k[g];k[x]=I,k[g]=A,E[I.key]=x,E[A.key]=g}},771:(S,M,f)=>{var m=f(9126);S.exports=x;var h="\0";function x(O){this._isDirected=!m.has(O,"directed")||O.directed,this._isMultigraph=!!m.has(O,"multigraph")&&O.multigraph,this._isCompound=!!m.has(O,"compound")&&O.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(O,Y){O[Y]?O[Y]++:O[Y]=1}function k(O,Y){--O[Y]||delete O[Y]}function E(O,Y,H,X){var Z=""+Y,et=""+H;if(!O&&Z>et){var Q=Z;Z=et,et=Q}return Z+""+et+""+(m.isUndefined(X)?"\0":X)}function A(O,Y,H,X){var Z=""+Y,et=""+H;if(!O&&Z>et){var Q=Z;Z=et,et=Q}var gt={v:Z,w:et};return X&&(gt.name=X),gt}function I(O,Y){return E(O,Y.v,Y.w,Y.name)}x.prototype._nodeCount=0,x.prototype._edgeCount=0,x.prototype.isDirected=function(){return this._isDirected},x.prototype.isMultigraph=function(){return this._isMultigraph},x.prototype.isCompound=function(){return this._isCompound},x.prototype.setGraph=function(O){return this._label=O,this},x.prototype.graph=function(){return this._label},x.prototype.setDefaultNodeLabel=function(O){return m.isFunction(O)||(O=m.constant(O)),this._defaultNodeLabelFn=O,this},x.prototype.nodeCount=function(){return this._nodeCount},x.prototype.nodes=function(){return m.keys(this._nodes)},x.prototype.sources=function(){var O=this;return m.filter(this.nodes(),function(Y){return m.isEmpty(O._in[Y])})},x.prototype.sinks=function(){var O=this;return m.filter(this.nodes(),function(Y){return m.isEmpty(O._out[Y])})},x.prototype.setNodes=function(O,Y){var H=arguments,X=this;return m.each(O,function(Z){H.length>1?X.setNode(Z,Y):X.setNode(Z)}),this},x.prototype.setNode=function(O,Y){return m.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=Y),this):(this._nodes[O]=arguments.length>1?Y:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=h,this._children[O]={},this._children["\0"][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},x.prototype.node=function(O){return this._nodes[O]},x.prototype.hasNode=function(O){return m.has(this._nodes,O)},x.prototype.removeNode=function(O){var Y=this;if(m.has(this._nodes,O)){var H=function(X){Y.removeEdge(Y._edgeObjs[X])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],m.each(this.children(O),function(X){Y.setParent(X)}),delete this._children[O]),m.each(m.keys(this._in[O]),H),delete this._in[O],delete this._preds[O],m.each(m.keys(this._out[O]),H),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},x.prototype.setParent=function(O,Y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(Y))Y=h;else{for(var H=Y+="";!m.isUndefined(H);H=this.parent(H))if(H===O)throw new Error("Setting "+Y+" as parent of "+O+" would create a cycle");this.setNode(Y)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=Y,this._children[Y][O]=!0,this},x.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},x.prototype.parent=function(O){if(this._isCompound){var Y=this._parent[O];if(Y!==h)return Y}},x.prototype.children=function(O){if(m.isUndefined(O)&&(O=h),this._isCompound){var Y=this._children[O];if(Y)return m.keys(Y)}else{if(O===h)return this.nodes();if(this.hasNode(O))return[]}},x.prototype.predecessors=function(O){var Y=this._preds[O];if(Y)return m.keys(Y)},x.prototype.successors=function(O){var Y=this._sucs[O];if(Y)return m.keys(Y)},x.prototype.neighbors=function(O){var Y=this.predecessors(O);if(Y)return m.union(Y,this.successors(O))},x.prototype.isLeaf=function(O){return(this.isDirected()?this.successors(O):this.neighbors(O)).length===0},x.prototype.filterNodes=function(O){var Y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});Y.setGraph(this.graph());var H=this;m.each(this._nodes,function(et,Q){O(Q)&&Y.setNode(Q,et)}),m.each(this._edgeObjs,function(et){Y.hasNode(et.v)&&Y.hasNode(et.w)&&Y.setEdge(et,H.edge(et))});var X={};function Z(et){var Q=H.parent(et);return Q===void 0||Y.hasNode(Q)?(X[et]=Q,Q):Q in X?X[Q]:Z(Q)}return this._isCompound&&m.each(Y.nodes(),function(et){Y.setParent(et,Z(et))}),Y},x.prototype.setDefaultEdgeLabel=function(O){return m.isFunction(O)||(O=m.constant(O)),this._defaultEdgeLabelFn=O,this},x.prototype.edgeCount=function(){return this._edgeCount},x.prototype.edges=function(){return m.values(this._edgeObjs)},x.prototype.setPath=function(O,Y){var H=this,X=arguments;return m.reduce(O,function(Z,et){return X.length>1?H.setEdge(Z,et,Y):H.setEdge(Z,et),et}),this},x.prototype.setEdge=function(){var O,Y,H,X,Z=!1,et=arguments[0];typeof et=="object"&&et!==null&&"v"in et?(O=et.v,Y=et.w,H=et.name,arguments.length===2&&(X=arguments[1],Z=!0)):(O=et,Y=arguments[1],H=arguments[3],arguments.length>2&&(X=arguments[2],Z=!0)),O=""+O,Y=""+Y,m.isUndefined(H)||(H=""+H);var Q=E(this._isDirected,O,Y,H);if(m.has(this._edgeLabels,Q))return Z&&(this._edgeLabels[Q]=X),this;if(!m.isUndefined(H)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(Y),this._edgeLabels[Q]=Z?X:this._defaultEdgeLabelFn(O,Y,H);var gt=A(this._isDirected,O,Y,H);return O=gt.v,Y=gt.w,Object.freeze(gt),this._edgeObjs[Q]=gt,g(this._preds[Y],O),g(this._sucs[O],Y),this._in[Y][Q]=gt,this._out[O][Q]=gt,this._edgeCount++,this},x.prototype.edge=function(O,Y,H){var X=arguments.length===1?I(this._isDirected,arguments[0]):E(this._isDirected,O,Y,H);return this._edgeLabels[X]},x.prototype.hasEdge=function(O,Y,H){var X=arguments.length===1?I(this._isDirected,arguments[0]):E(this._isDirected,O,Y,H);return m.has(this._edgeLabels,X)},x.prototype.removeEdge=function(O,Y,H){var X=arguments.length===1?I(this._isDirected,arguments[0]):E(this._isDirected,O,Y,H),Z=this._edgeObjs[X];return Z&&(O=Z.v,Y=Z.w,delete this._edgeLabels[X],delete this._edgeObjs[X],k(this._preds[Y],O),k(this._sucs[O],Y),delete this._in[Y][X],delete this._out[O][X],this._edgeCount--),this},x.prototype.inEdges=function(O,Y){var H=this._in[O];if(H){var X=m.values(H);return Y?m.filter(X,function(Z){return Z.v===Y}):X}},x.prototype.outEdges=function(O,Y){var H=this._out[O];if(H){var X=m.values(H);return Y?m.filter(X,function(Z){return Z.w===Y}):X}},x.prototype.nodeEdges=function(O,Y){var H=this.inEdges(O,Y);if(H)return H.concat(this.outEdges(O,Y))}},2354:(S,M,f)=>{S.exports={Graph:f(771),version:f(9631)}},8974:(S,M,f)=>{var m=f(9126),h=f(771);function x(k){return m.map(k.nodes(),function(E){var A=k.node(E),I=k.parent(E),O={v:E};return m.isUndefined(A)||(O.value=A),m.isUndefined(I)||(O.parent=I),O})}function g(k){return m.map(k.edges(),function(E){var A=k.edge(E),I={v:E.v,w:E.w};return m.isUndefined(E.name)||(I.name=E.name),m.isUndefined(A)||(I.value=A),I})}S.exports={write:function(k){var E={options:{directed:k.isDirected(),multigraph:k.isMultigraph(),compound:k.isCompound()},nodes:x(k),edges:g(k)};return m.isUndefined(k.graph())||(E.value=m.clone(k.graph())),E},read:function(k){var E=new h(k.options).setGraph(k.value);return m.each(k.nodes,function(A){E.setNode(A.v,A.value),A.parent&&E.setParent(A.v,A.parent)}),m.each(k.edges,function(A){E.setEdge({v:A.v,w:A.w,name:A.name},A.value)}),E}}},9126:(S,M,f)=>{var m;try{m={clone:f(6678),constant:f(5703),each:f(6073),filter:f(3105),has:f(8721),isArray:f(1469),isEmpty:f(1609),isFunction:f(3560),isUndefined:f(2353),keys:f(3674),map:f(5161),reduce:f(4061),size:f(4238),transform:f(8718),union:f(3386),values:f(2628)}}catch{}m||(m=window._),S.exports=m},9631:S=>{S.exports="2.1.8"},1773:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(7628),x=function(){function g(k,E){this.color=E,this.changed=!1,this.data=k,this.type=new h.default}return g.prototype.set=function(k,E){return this.color=E,this.changed=!1,this.data=k,this.type.type=0,this},g.prototype._ensureHSL=function(){var k=this.data,E=k.h,A=k.s,I=k.l;E===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,E=k.r,A=k.g,I=k.b;E===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,E=k.r;return this.type.is(2)||E===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"r")):E},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,E=k.g;return this.type.is(2)||E===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"g")):E},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,E=k.b;return this.type.is(2)||E===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"b")):E},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,E=k.h;return this.type.is(1)||E===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"h")):E},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,E=k.s;return this.type.is(1)||E===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"s")):E},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,E=k.l;return this.type.is(1)||E===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"l")):E},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=x},8167:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=new(f(1773)).default({r:0,g:0,b:0,a:0},"transparent");M.default=m},7628:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var f=function(){function m(){this.type=0}return m.prototype.get=function(){return this.type},m.prototype.set=function(h){if(this.type&&this.type!==h)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=h},m.prototype.reset=function(){this.type=0},m.prototype.is=function(h){return this.type===h},m}();M.default=f},1655:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(8167),h=f(6061),x={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(g){if(g.charCodeAt(0)===35){var k=g.match(x.re);if(k){var E=k[1],A=parseInt(E,16),I=E.length,O=I%4==0,Y=I>4,H=Y?1:17,X=Y?8:4,Z=O?0:-1,et=Y?255:15;return m.default.set({r:(A>>X*(Z+3)&et)*H,g:(A>>X*(Z+2)&et)*H,b:(A>>X*(Z+1)&et)*H,a:O?(A&et)*H/255:1},g)}}},stringify:function(g){var k=g.r,E=g.g,A=g.b,I=g.a;return I<1?"#"+h.DEC2HEX[Math.round(k)]+h.DEC2HEX[Math.round(E)]+h.DEC2HEX[Math.round(A)]+h.DEC2HEX[Math.round(255*I)]:"#"+h.DEC2HEX[Math.round(k)]+h.DEC2HEX[Math.round(E)]+h.DEC2HEX[Math.round(A)]}};M.default=x},8589:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(8167),x={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(x.hueRe);if(k){var E=k[1];switch(k[2]){case"grad":return m.default.channel.clamp.h(.9*parseFloat(E));case"rad":return m.default.channel.clamp.h(180*parseFloat(E)/Math.PI);case"turn":return m.default.channel.clamp.h(360*parseFloat(E))}}return m.default.channel.clamp.h(parseFloat(g))},parse:function(g){var k=g.charCodeAt(0);if(k===104||k===72){var E=g.match(x.re);if(E){var A=E[1],I=E[2],O=E[3],Y=E[4],H=E[5];return h.default.set({h:x._hue2deg(A),s:m.default.channel.clamp.s(parseFloat(I)),l:m.default.channel.clamp.l(parseFloat(O)),a:Y?m.default.channel.clamp.a(H?parseFloat(Y)/100:parseFloat(Y)):1},g)}}},stringify:function(g){var k=g.h,E=g.s,A=g.l,I=g.a;return I<1?"hsla("+m.default.lang.round(k)+", "+m.default.lang.round(E)+"%, "+m.default.lang.round(A)+"%, "+I+")":"hsl("+m.default.lang.round(k)+", "+m.default.lang.round(E)+"%, "+m.default.lang.round(A)+"%)"}};M.default=x},2191:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1655),h=f(7538),x=f(6762),g=f(8589),k={format:{keyword:h.default,hex:m.default,rgb:x.default,rgba:x.default,hsl:g.default,hsla:g.default},parse:function(E){if(typeof E!="string")return E;var A=m.default.parse(E)||x.default.parse(E)||g.default.parse(E)||h.default.parse(E);if(A)return A;throw new Error('Unsupported color format: "'+E+'"')},stringify:function(E){return!E.changed&&E.color?E.color:E.type.is(2)||E.data.r===void 0?g.default.stringify(E):E.a<1||!Number.isInteger(E.r)||!Number.isInteger(E.g)||!Number.isInteger(E.b)?x.default.stringify(E):m.default.stringify(E)}};M.default=k},7538:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1655),h={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(x){x=x.toLowerCase();var g=h.colors[x];if(g)return m.default.parse(g)},stringify:function(x){var g=m.default.stringify(x);for(var k in h.colors)if(h.colors[k]===g)return k}};M.default=h},6762:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(8167),x={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 E=g.match(x.re);if(E){var A=E[1],I=E[2],O=E[3],Y=E[4],H=E[5],X=E[6],Z=E[7],et=E[8];return h.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(O):parseFloat(O)),b:m.default.channel.clamp.b(X?2.55*parseFloat(H):parseFloat(H)),a:Z?m.default.channel.clamp.a(et?parseFloat(Z)/100:parseFloat(Z)):1},g)}}},stringify:function(g){var k=g.r,E=g.g,A=g.b,I=g.a;return I<1?"rgba("+m.default.lang.round(k)+", "+m.default.lang.round(E)+", "+m.default.lang.round(A)+", "+m.default.lang.round(I)+")":"rgb("+m.default.lang.round(k)+", "+m.default.lang.round(E)+", "+m.default.lang.round(A)+")"}};M.default=x},6061:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h={};M.DEC2HEX=h;for(var x=0;x<=255;x++)h[x]=m.default.unit.dec2hex(x)},8613:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0}),function(m){for(var h in m)M.hasOwnProperty(h)||(M[h]=m[h])}(f(1203))},5371:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191),h=f(418);M.default=function(x,g){var k=m.default.parse(x),E={};for(var A in g)g[A]&&(E[A]=k[A]+g[A]);return h.default(x,E)}},1416:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(2191);M.default=function(x,g,k){var E=h.default.parse(x),A=E[g],I=m.default.channel.clamp[g](A+k);return A!==I&&(E[g]=I),h.default.stringify(E)}},9353:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"a")}},3394:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"b")}},418:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(2191);M.default=function(x,g){var k=h.default.parse(x);for(var E in g)k[E]=m.default.channel.clamp[E](g[E]);return h.default.stringify(k)}},6197:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(2191);M.default=function(x,g){return m.default.lang.round(h.default.parse(x)[g])}},7361:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h){return m.default(h,"h",180)}},3042:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(8346);M.default=function(x,g){var k=h.default(x),E=h.default(g),A=Math.max(k,E),I=Math.min(k,E),O=(A+Number.EPSILON)/(I+Number.EPSILON);return m.default.lang.round(m.default.lang.clamp(O,1,10))}},1364:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"l",-x)}},9610:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"s",-x)}},572:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(418);M.default=function(h){return m.default(h,{s:0})}},2299:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"g")}},3116:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(8167),x=f(2191);M.default=function(g,k,E,A){A===void 0&&(A=1);var I=h.default.set({h:m.default.channel.clamp.h(g),s:m.default.channel.clamp.s(k),l:m.default.channel.clamp.l(E),a:m.default.channel.clamp.a(A)});return x.default.stringify(I)}},3008:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"h")}},1203:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6538);M.hex=m.default;var h=f(6538);M.rgb=h.default;var x=f(6538);M.rgba=x.default;var g=f(3116);M.hsl=g.default;var k=f(3116);M.hsla=k.default;var E=f(2619);M.toKeyword=E.default;var A=f(4307);M.toHex=A.default;var I=f(4125);M.toRgba=I.default;var O=f(7329);M.toHsla=O.default;var Y=f(6197);M.channel=Y.default;var H=f(9640);M.red=H.default;var X=f(2299);M.green=X.default;var Z=f(3394);M.blue=Z.default;var et=f(3008);M.hue=et.default;var Q=f(6451);M.saturation=Q.default;var gt=f(9235);M.lightness=gt.default;var ht=f(9353);M.alpha=ht.default;var xt=f(9353);M.opacity=xt.default;var Tt=f(3042);M.contrast=Tt.default;var ne=f(8346);M.luminance=ne.default;var bt=f(4117);M.isDark=bt.default;var at=f(2224);M.isLight=at.default;var nt=f(585);M.isValid=nt.default;var Dt=f(1080);M.saturate=Dt.default;var Lt=f(9610);M.desaturate=Lt.default;var tt=f(3235);M.lighten=tt.default;var lt=f(1364);M.darken=lt.default;var q=f(7189);M.opacify=q.default;var Ut=f(7189);M.fadeIn=Ut.default;var G=f(4989);M.transparentize=G.default;var me=f(4989);M.fadeOut=me.default;var ve=f(7361);M.complement=ve.default;var jt=f(572);M.grayscale=jt.default;var ie=f(5371);M.adjust=ie.default;var he=f(418);M.change=he.default;var pe=f(566);M.invert=pe.default;var le=f(1861);M.mix=le.default;var oe=f(7081);M.scale=oe.default},566:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191),h=f(1861);M.default=function(x,g){g===void 0&&(g=100);var k=m.default.parse(x);return k.r=255-k.r,k.g=255-k.g,k.b=255-k.b,h.default(k,x,g)}},4117:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2224);M.default=function(h){return!m.default(h)}},2224:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(8346);M.default=function(h){return m.default(h)>=.5}},585:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191);M.default=function(h){try{return m.default.parse(h),!0}catch{return!1}}},3235:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"l",x)}},9235:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"l")}},8346:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(2191);M.default=function(x){var g=h.default.parse(x),k=g.r,E=g.g,A=g.b,I=.2126*m.default.channel.toLinear(k)+.7152*m.default.channel.toLinear(E)+.0722*m.default.channel.toLinear(A);return m.default.lang.round(I)}},1861:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191),h=f(6538);M.default=function(x,g,k){k===void 0&&(k=50);var E=m.default.parse(x),A=E.r,I=E.g,O=E.b,Y=E.a,H=m.default.parse(g),X=H.r,Z=H.g,et=H.b,Q=H.a,gt=k/100,ht=2*gt-1,xt=Y-Q,Tt=((ht*xt==-1?ht:(ht+xt)/(1+ht*xt))+1)/2,ne=1-Tt,bt=A*Tt+X*ne,at=I*Tt+Z*ne,nt=O*Tt+et*ne,Dt=Y*gt+Q*(1-gt);return h.default(bt,at,nt,Dt)}},7189:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"a",x)}},9640:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"r")}},6538:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(8167),x=f(2191),g=f(418);M.default=function(k,E,A,I){if(A===void 0&&(A=0),I===void 0&&(I=1),typeof k!="number")return g.default(k,{a:E});var O=h.default.set({r:m.default.channel.clamp.r(k),g:m.default.channel.clamp.g(E),b:m.default.channel.clamp.b(A),a:m.default.channel.clamp.a(I)});return x.default.stringify(O)}},1080:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"s",x)}},6451:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(6197);M.default=function(h){return m.default(h,"s")}},7081:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1083),h=f(2191),x=f(5371);M.default=function(g,k){var E,A,I,O=h.default.parse(g),Y={};for(var H in k)Y[H]=(E=O[H],A=k[H],I=m.default.channel.max[H],A>0?(I-E)*A/100:E*A/100);return x.default(g,Y)}},4307:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191);M.default=function(h){return m.default.format.hex.stringify(m.default.parse(h))}},7329:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191);M.default=function(h){return m.default.format.hsla.stringify(m.default.parse(h))}},2619:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191);M.default=function(h){return m.default.format.keyword.stringify(m.default.parse(h))}},4125:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(2191);M.default=function(h){return m.default.format.rgba.stringify(m.default.parse(h))}},4989:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(1416);M.default=function(h,x){return m.default(h,"a",-x)}},7994:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var f={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 h=m/255;return m>.03928?Math.pow((h+.055)/1.055,2.4):h/12.92},hue2rgb:function(m,h,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?m+6*(h-m)*x:x<.5?h:x<2/3?m+(h-m)*(2/3-x)*6:m},hsl2rgb:function(m,h){var x=m.h,g=m.s,k=m.l;if(!g)return 2.55*k;x/=360,g/=100;var E=(k/=100)<.5?k*(1+g):k+g-k*g,A=2*k-E;switch(h){case"r":return 255*f.hue2rgb(A,E,x+1/3);case"g":return 255*f.hue2rgb(A,E,x);case"b":return 255*f.hue2rgb(A,E,x-1/3)}},rgb2hsl:function(m,h){var x=m.r,g=m.g,k=m.b;x/=255,g/=255,k/=255;var E=Math.max(x,g,k),A=Math.min(x,g,k),I=(E+A)/2;if(h==="l")return 100*I;if(E===A)return 0;var O=E-A;if(h==="s")return 100*(I>.5?O/(2-E-A):O/(E+A));switch(E){case x:return 60*((g-k)/O+(g<k?6:0));case g:return 60*((k-x)/O+2);case k:return 60*((x-g)/O+4);default:return-1}}};M.default=f},1083:(S,M,f)=>{Object.defineProperty(M,"__esModule",{value:!0});var m=f(7994),h=f(4027),x=f(318),g={channel:m.default,lang:h.default,unit:x.default};M.default=g},4027:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var f={clamp:function(m,h,x){return h>x?Math.min(h,Math.max(x,m)):Math.min(x,Math.max(h,m))},round:function(m){return Math.round(1e10*m)/1e10}};M.default=f},318:(S,M)=>{Object.defineProperty(M,"__esModule",{value:!0});var f={dec2hex:function(m){var h=Math.round(m).toString(16);return h.length>1?h:"0"+h}};M.default=f},8552:(S,M,f)=>{var m=f(852)(f(5639),"DataView");S.exports=m},1989:(S,M,f)=>{var m=f(1789),h=f(401),x=f(7667),g=f(1327),k=f(1866);function E(A){var I=-1,O=A==null?0:A.length;for(this.clear();++I<O;){var Y=A[I];this.set(Y[0],Y[1])}}E.prototype.clear=m,E.prototype.delete=h,E.prototype.get=x,E.prototype.has=g,E.prototype.set=k,S.exports=E},8407:(S,M,f)=>{var m=f(7040),h=f(2188),x=f(2117),g=f(7518),k=f(4705);function E(A){var I=-1,O=A==null?0:A.length;for(this.clear();++I<O;){var Y=A[I];this.set(Y[0],Y[1])}}E.prototype.clear=m,E.prototype.delete=h,E.prototype.get=x,E.prototype.has=g,E.prototype.set=k,S.exports=E},7071:(S,M,f)=>{var m=f(852)(f(5639),"Map");S.exports=m},3369:(S,M,f)=>{var m=f(4785),h=f(1285),x=f(6e3),g=f(9916),k=f(5265);function E(A){var I=-1,O=A==null?0:A.length;for(this.clear();++I<O;){var Y=A[I];this.set(Y[0],Y[1])}}E.prototype.clear=m,E.prototype.delete=h,E.prototype.get=x,E.prototype.has=g,E.prototype.set=k,S.exports=E},3818:(S,M,f)=>{var m=f(852)(f(5639),"Promise");S.exports=m},8525:(S,M,f)=>{var m=f(852)(f(5639),"Set");S.exports=m},8668:(S,M,f)=>{var m=f(3369),h=f(619),x=f(2385);function g(k){var E=-1,A=k==null?0:k.length;for(this.__data__=new m;++E<A;)this.add(k[E])}g.prototype.add=g.prototype.push=h,g.prototype.has=x,S.exports=g},6384:(S,M,f)=>{var m=f(8407),h=f(7465),x=f(3779),g=f(7599),k=f(4758),E=f(4309);function A(I){var O=this.__data__=new m(I);this.size=O.size}A.prototype.clear=h,A.prototype.delete=x,A.prototype.get=g,A.prototype.has=k,A.prototype.set=E,S.exports=A},2705:(S,M,f)=>{var m=f(5639).Symbol;S.exports=m},1149:(S,M,f)=>{var m=f(5639).Uint8Array;S.exports=m},577:(S,M,f)=>{var m=f(852)(f(5639),"WeakMap");S.exports=m},6874:S=>{S.exports=function(M,f,m){switch(m.length){case 0:return M.call(f);case 1:return M.call(f,m[0]);case 2:return M.call(f,m[0],m[1]);case 3:return M.call(f,m[0],m[1],m[2])}return M.apply(f,m)}},7412:S=>{S.exports=function(M,f){for(var m=-1,h=M==null?0:M.length;++m<h&&f(M[m],m,M)!==!1;);return M}},4963:S=>{S.exports=function(M,f){for(var m=-1,h=M==null?0:M.length,x=0,g=[];++m<h;){var k=M[m];f(k,m,M)&&(g[x++]=k)}return g}},7443:(S,M,f)=>{var m=f(2118);S.exports=function(h,x){return!(h==null||!h.length)&&m(h,x,0)>-1}},1196:S=>{S.exports=function(M,f,m){for(var h=-1,x=M==null?0:M.length;++h<x;)if(m(f,M[h]))return!0;return!1}},4636:(S,M,f)=>{var m=f(2545),h=f(5694),x=f(1469),g=f(4144),k=f(5776),E=f(6719),A=Object.prototype.hasOwnProperty;S.exports=function(I,O){var Y=x(I),H=!Y&&h(I),X=!Y&&!H&&g(I),Z=!Y&&!H&&!X&&E(I),et=Y||H||X||Z,Q=et?m(I.length,String):[],gt=Q.length;for(var ht in I)!O&&!A.call(I,ht)||et&&(ht=="length"||X&&(ht=="offset"||ht=="parent")||Z&&(ht=="buffer"||ht=="byteLength"||ht=="byteOffset")||k(ht,gt))||Q.push(ht);return Q}},9932:S=>{S.exports=function(M,f){for(var m=-1,h=M==null?0:M.length,x=Array(h);++m<h;)x[m]=f(M[m],m,M);return x}},2488:S=>{S.exports=function(M,f){for(var m=-1,h=f.length,x=M.length;++m<h;)M[x+m]=f[m];return M}},2663:S=>{S.exports=function(M,f,m,h){var x=-1,g=M==null?0:M.length;for(h&&g&&(m=M[++x]);++x<g;)m=f(m,M[x],x,M);return m}},2908:S=>{S.exports=function(M,f){for(var m=-1,h=M==null?0:M.length;++m<h;)if(f(M[m],m,M))return!0;return!1}},8983:(S,M,f)=>{var m=f(371)("length");S.exports=m},6556:(S,M,f)=>{var m=f(9465),h=f(7813);S.exports=function(x,g,k){(k!==void 0&&!h(x[g],k)||k===void 0&&!(g in x))&&m(x,g,k)}},4865:(S,M,f)=>{var m=f(9465),h=f(7813),x=Object.prototype.hasOwnProperty;S.exports=function(g,k,E){var A=g[k];x.call(g,k)&&h(A,E)&&(E!==void 0||k in g)||m(g,k,E)}},8470:(S,M,f)=>{var m=f(7813);S.exports=function(h,x){for(var g=h.length;g--;)if(m(h[g][0],x))return g;return-1}},4037:(S,M,f)=>{var m=f(8363),h=f(3674);S.exports=function(x,g){return x&&m(g,h(g),x)}},3886:(S,M,f)=>{var m=f(8363),h=f(1704);S.exports=function(x,g){return x&&m(g,h(g),x)}},9465:(S,M,f)=>{var m=f(8777);S.exports=function(h,x,g){x=="__proto__"&&m?m(h,x,{configurable:!0,enumerable:!0,value:g,writable:!0}):h[x]=g}},5990:(S,M,f)=>{var m=f(6384),h=f(7412),x=f(4865),g=f(4037),k=f(3886),E=f(4626),A=f(278),I=f(8805),O=f(1911),Y=f(8234),H=f(6904),X=f(4160),Z=f(3824),et=f(9148),Q=f(8517),gt=f(1469),ht=f(4144),xt=f(6688),Tt=f(3218),ne=f(2928),bt=f(3674),at=f(1704),nt="[object Arguments]",Dt="[object Function]",Lt="[object Object]",tt={};tt[nt]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object DataView]"]=tt["[object Boolean]"]=tt["[object Date]"]=tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Map]"]=tt["[object Number]"]=tt[Lt]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object Symbol]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Error]"]=tt[Dt]=tt["[object WeakMap]"]=!1,S.exports=function lt(q,Ut,G,me,ve,jt){var ie,he=1&Ut,pe=2&Ut,le=4&Ut;if(G&&(ie=ve?G(q,me,ve,jt):G(q)),ie!==void 0)return ie;if(!Tt(q))return q;var oe=gt(q);if(oe){if(ie=Z(q),!he)return A(q,ie)}else{var wn=X(q),fe=wn==Dt||wn=="[object GeneratorFunction]";if(ht(q))return E(q,he);if(wn==Lt||wn==nt||fe&&!ve){if(ie=pe||fe?{}:Q(q),!he)return pe?O(q,k(ie,q)):I(q,g(ie,q))}else{if(!tt[wn])return ve?q:{};ie=et(q,wn,he)}}jt||(jt=new m);var ae=jt.get(q);if(ae)return ae;jt.set(q,ie),ne(q)?q.forEach(function(St){ie.add(lt(St,Ut,G,St,q,jt))}):xt(q)&&q.forEach(function(St,Qt){ie.set(Qt,lt(St,Ut,G,Qt,q,jt))});var Zt=oe?void 0:(le?pe?H:Y:pe?at:bt)(q);return h(Zt||q,function(St,Qt){Zt&&(St=q[Qt=St]),x(ie,Qt,lt(St,Ut,G,Qt,q,jt))}),ie}},3118:(S,M,f)=>{var m=f(3218),h=Object.create,x=function(){function g(){}return function(k){if(!m(k))return{};if(h)return h(k);g.prototype=k;var E=new g;return g.prototype=void 0,E}}();S.exports=x},9881:(S,M,f)=>{var m=f(7816),h=f(9291)(m);S.exports=h},6029:(S,M,f)=>{var m=f(3448);S.exports=function(h,x,g){for(var k=-1,E=h.length;++k<E;){var A=h[k],I=x(A);if(I!=null&&(O===void 0?I==I&&!m(I):g(I,O)))var O=I,Y=A}return Y}},760:(S,M,f)=>{var m=f(9881);S.exports=function(h,x){var g=[];return m(h,function(k,E,A){x(k,E,A)&&g.push(k)}),g}},1848:S=>{S.exports=function(M,f,m,h){for(var x=M.length,g=m+(h?1:-1);h?g--:++g<x;)if(f(M[g],g,M))return g;return-1}},1078:(S,M,f)=>{var m=f(2488),h=f(7285);S.exports=function x(g,k,E,A,I){var O=-1,Y=g.length;for(E||(E=h),I||(I=[]);++O<Y;){var H=g[O];k>0&&E(H)?k>1?x(H,k-1,E,A,I):m(I,H):A||(I[I.length]=H)}return I}},8483:(S,M,f)=>{var m=f(5063)();S.exports=m},7816:(S,M,f)=>{var m=f(8483),h=f(3674);S.exports=function(x,g){return x&&m(x,g,h)}},7786:(S,M,f)=>{var m=f(1811),h=f(327);S.exports=function(x,g){for(var k=0,E=(g=m(g,x)).length;x!=null&&k<E;)x=x[h(g[k++])];return k&&k==E?x:void 0}},8866:(S,M,f)=>{var m=f(2488),h=f(1469);S.exports=function(x,g,k){var E=g(x);return h(x)?E:m(E,k(x))}},4239:(S,M,f)=>{var m=f(2705),h=f(9607),x=f(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)?h(k):x(k)}},3325:S=>{S.exports=function(M,f){return M>f}},8565:S=>{var M=Object.prototype.hasOwnProperty;S.exports=function(f,m){return f!=null&&M.call(f,m)}},13:S=>{S.exports=function(M,f){return M!=null&&f in Object(M)}},2118:(S,M,f)=>{var m=f(1848),h=f(2722),x=f(2351);S.exports=function(g,k,E){return k==k?x(g,k,E):m(g,h,E)}},9454:(S,M,f)=>{var m=f(4239),h=f(7005);S.exports=function(x){return h(x)&&m(x)=="[object Arguments]"}},939:(S,M,f)=>{var m=f(2492),h=f(7005);S.exports=function x(g,k,E,A,I){return g===k||(g==null||k==null||!h(g)&&!h(k)?g!=g&&k!=k:m(g,k,E,A,x,I))}},2492:(S,M,f)=>{var m=f(6384),h=f(7114),x=f(8351),g=f(6096),k=f(4160),E=f(1469),A=f(4144),I=f(6719),O="[object Arguments]",Y="[object Array]",H="[object Object]",X=Object.prototype.hasOwnProperty;S.exports=function(Z,et,Q,gt,ht,xt){var Tt=E(Z),ne=E(et),bt=Tt?Y:k(Z),at=ne?Y:k(et),nt=(bt=bt==O?H:bt)==H,Dt=(at=at==O?H:at)==H,Lt=bt==at;if(Lt&&A(Z)){if(!A(et))return!1;Tt=!0,nt=!1}if(Lt&&!nt)return xt||(xt=new m),Tt||I(Z)?h(Z,et,Q,gt,ht,xt):x(Z,et,bt,Q,gt,ht,xt);if(!(1&Q)){var tt=nt&&X.call(Z,"__wrapped__"),lt=Dt&&X.call(et,"__wrapped__");if(tt||lt){var q=tt?Z.value():Z,Ut=lt?et.value():et;return xt||(xt=new m),ht(q,Ut,Q,gt,xt)}}return!!Lt&&(xt||(xt=new m),g(Z,et,Q,gt,ht,xt))}},5588:(S,M,f)=>{var m=f(4160),h=f(7005);S.exports=function(x){return h(x)&&m(x)=="[object Map]"}},2958:(S,M,f)=>{var m=f(6384),h=f(939);S.exports=function(x,g,k,E){var A=k.length,I=A,O=!E;if(x==null)return!I;for(x=Object(x);A--;){var Y=k[A];if(O&&Y[2]?Y[1]!==x[Y[0]]:!(Y[0]in x))return!1}for(;++A<I;){var H=(Y=k[A])[0],X=x[H],Z=Y[1];if(O&&Y[2]){if(X===void 0&&!(H in x))return!1}else{var et=new m;if(E)var Q=E(X,Z,H,x,g,et);if(!(Q===void 0?h(Z,X,3,E,et):Q))return!1}}return!0}},2722:S=>{S.exports=function(M){return M!=M}},8458:(S,M,f)=>{var m=f(3560),h=f(5346),x=f(3218),g=f(346),k=/^\[object .+?Constructor\]$/,E=Function.prototype,A=Object.prototype,I=E.toString,O=A.hasOwnProperty,Y=RegExp("^"+I.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");S.exports=function(H){return!(!x(H)||h(H))&&(m(H)?Y:k).test(g(H))}},9221:(S,M,f)=>{var m=f(4160),h=f(7005);S.exports=function(x){return h(x)&&m(x)=="[object Set]"}},8749:(S,M,f)=>{var m=f(4239),h=f(1780),x=f(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 x(k)&&h(k.length)&&!!g[m(k)]}},7206:(S,M,f)=>{var m=f(1573),h=f(6432),x=f(6557),g=f(1469),k=f(9601);S.exports=function(E){return typeof E=="function"?E:E==null?x:typeof E=="object"?g(E)?h(E[0],E[1]):m(E):k(E)}},280:(S,M,f)=>{var m=f(5726),h=f(6916),x=Object.prototype.hasOwnProperty;S.exports=function(g){if(!m(g))return h(g);var k=[];for(var E in Object(g))x.call(g,E)&&E!="constructor"&&k.push(E);return k}},313:(S,M,f)=>{var m=f(3218),h=f(5726),x=f(3498),g=Object.prototype.hasOwnProperty;S.exports=function(k){if(!m(k))return x(k);var E=h(k),A=[];for(var I in k)(I!="constructor"||!E&&g.call(k,I))&&A.push(I);return A}},433:S=>{S.exports=function(M,f){return M<f}},9199:(S,M,f)=>{var m=f(9881),h=f(8612);S.exports=function(x,g){var k=-1,E=h(x)?Array(x.length):[];return m(x,function(A,I,O){E[++k]=g(A,I,O)}),E}},1573:(S,M,f)=>{var m=f(2958),h=f(1499),x=f(2634);S.exports=function(g){var k=h(g);return k.length==1&&k[0][2]?x(k[0][0],k[0][1]):function(E){return E===g||m(E,g,k)}}},6432:(S,M,f)=>{var m=f(939),h=f(1917),x=f(9095),g=f(5403),k=f(9162),E=f(2634),A=f(327);S.exports=function(I,O){return g(I)&&k(O)?E(A(I),O):function(Y){var H=h(Y,I);return H===void 0&&H===O?x(Y,I):m(O,H,3)}}},2980:(S,M,f)=>{var m=f(6384),h=f(6556),x=f(8483),g=f(9783),k=f(3218),E=f(1704),A=f(6390);S.exports=function I(O,Y,H,X,Z){O!==Y&&x(Y,function(et,Q){if(Z||(Z=new m),k(et))g(O,Y,Q,H,I,X,Z);else{var gt=X?X(A(O,Q),et,Q+"",O,Y,Z):void 0;gt===void 0&&(gt=et),h(O,Q,gt)}},E)}},9783:(S,M,f)=>{var m=f(6556),h=f(4626),x=f(7133),g=f(278),k=f(8517),E=f(5694),A=f(1469),I=f(9246),O=f(4144),Y=f(3560),H=f(3218),X=f(8630),Z=f(6719),et=f(6390),Q=f(3678);S.exports=function(gt,ht,xt,Tt,ne,bt,at){var nt=et(gt,xt),Dt=et(ht,xt),Lt=at.get(Dt);if(Lt)m(gt,xt,Lt);else{var tt=bt?bt(nt,Dt,xt+"",gt,ht,at):void 0,lt=tt===void 0;if(lt){var q=A(Dt),Ut=!q&&O(Dt),G=!q&&!Ut&&Z(Dt);tt=Dt,q||Ut||G?A(nt)?tt=nt:I(nt)?tt=g(nt):Ut?(lt=!1,tt=h(Dt,!0)):G?(lt=!1,tt=x(Dt,!0)):tt=[]:X(Dt)||E(Dt)?(tt=nt,E(nt)?tt=Q(nt):H(nt)&&!Y(nt)||(tt=k(Dt))):lt=!1}lt&&(at.set(Dt,tt),ne(tt,Dt,Tt,bt,at),at.delete(Dt)),m(gt,xt,tt)}}},9556:(S,M,f)=>{var m=f(9932),h=f(7786),x=f(7206),g=f(9199),k=f(1131),E=f(1717),A=f(5022),I=f(6557),O=f(1469);S.exports=function(Y,H,X){H=H.length?m(H,function(Q){return O(Q)?function(gt){return h(gt,Q.length===1?Q[0]:Q)}:Q}):[I];var Z=-1;H=m(H,E(x));var et=g(Y,function(Q,gt,ht){return{criteria:m(H,function(xt){return xt(Q)}),index:++Z,value:Q}});return k(et,function(Q,gt){return A(Q,gt,X)})}},5970:(S,M,f)=>{var m=f(3012),h=f(9095);S.exports=function(x,g){return m(x,g,function(k,E){return h(x,E)})}},3012:(S,M,f)=>{var m=f(7786),h=f(611),x=f(1811);S.exports=function(g,k,E){for(var A=-1,I=k.length,O={};++A<I;){var Y=k[A],H=m(g,Y);E(H,Y)&&h(O,x(Y,g),H)}return O}},371:S=>{S.exports=function(M){return function(f){return f==null?void 0:f[M]}}},9152:(S,M,f)=>{var m=f(7786);S.exports=function(h){return function(x){return m(x,h)}}},98:S=>{var M=Math.ceil,f=Math.max;S.exports=function(m,h,x,g){for(var k=-1,E=f(M((h-m)/(x||1)),0),A=Array(E);E--;)A[g?E:++k]=m,m+=x;return A}},107:S=>{S.exports=function(M,f,m,h,x){return x(M,function(g,k,E){m=h?(h=!1,g):f(m,g,k,E)}),m}},5976:(S,M,f)=>{var m=f(6557),h=f(5357),x=f(61);S.exports=function(g,k){return x(h(g,k,m),g+"")}},611:(S,M,f)=>{var m=f(4865),h=f(1811),x=f(5776),g=f(3218),k=f(327);S.exports=function(E,A,I,O){if(!g(E))return E;for(var Y=-1,H=(A=h(A,E)).length,X=H-1,Z=E;Z!=null&&++Y<H;){var et=k(A[Y]),Q=I;if(et==="__proto__"||et==="constructor"||et==="prototype")return E;if(Y!=X){var gt=Z[et];(Q=O?O(gt,et,Z):void 0)===void 0&&(Q=g(gt)?gt:x(A[Y+1])?[]:{})}m(Z,et,Q),Z=Z[et]}return E}},6560:(S,M,f)=>{var m=f(5703),h=f(8777),x=f(6557),g=h?function(k,E){return h(k,"toString",{configurable:!0,enumerable:!1,value:m(E),writable:!0})}:x;S.exports=g},1131:S=>{S.exports=function(M,f){var m=M.length;for(M.sort(f);m--;)M[m]=M[m].value;return M}},2545:S=>{S.exports=function(M,f){for(var m=-1,h=Array(M);++m<M;)h[m]=f(m);return h}},531:(S,M,f)=>{var m=f(2705),h=f(9932),x=f(1469),g=f(3448),k=m?m.prototype:void 0,E=k?k.toString:void 0;S.exports=function A(I){if(typeof I=="string")return I;if(x(I))return h(I,A)+"";if(g(I))return E?E.call(I):"";var O=I+"";return O=="0"&&1/I==-1/0?"-0":O}},7561:(S,M,f)=>{var m=f(7990),h=/^\s+/;S.exports=function(x){return x&&x.slice(0,m(x)+1).replace(h,"")}},1717:S=>{S.exports=function(M){return function(f){return M(f)}}},5652:(S,M,f)=>{var m=f(8668),h=f(7443),x=f(1196),g=f(4757),k=f(3593),E=f(1814);S.exports=function(A,I,O){var Y=-1,H=h,X=A.length,Z=!0,et=[],Q=et;if(O)Z=!1,H=x;else if(X>=200){var gt=I?null:k(A);if(gt)return E(gt);Z=!1,H=g,Q=new m}else Q=I?[]:et;t:for(;++Y<X;){var ht=A[Y],xt=I?I(ht):ht;if(ht=O||ht!==0?ht:0,Z&&xt==xt){for(var Tt=Q.length;Tt--;)if(Q[Tt]===xt)continue t;I&&Q.push(xt),et.push(ht)}else H(Q,xt,O)||(Q!==et&&Q.push(xt),et.push(ht))}return et}},7415:(S,M,f)=>{var m=f(9932);S.exports=function(h,x){return m(x,function(g){return h[g]})}},1757:S=>{S.exports=function(M,f,m){for(var h=-1,x=M.length,g=f.length,k={};++h<x;){var E=h<g?f[h]:void 0;m(k,M[h],E)}return k}},4757:S=>{S.exports=function(M,f){return M.has(f)}},4290:(S,M,f)=>{var m=f(6557);S.exports=function(h){return typeof h=="function"?h:m}},1811:(S,M,f)=>{var m=f(1469),h=f(5403),x=f(5514),g=f(9833);S.exports=function(k,E){return m(k)?k:h(k,E)?[k]:x(g(k))}},4318:(S,M,f)=>{var m=f(1149);S.exports=function(h){var x=new h.constructor(h.byteLength);return new m(x).set(new m(h)),x}},4626:(S,M,f)=>{S=f.nmd(S);var m=f(5639),h=M&&!M.nodeType&&M,x=h&&S&&!S.nodeType&&S,g=x&&x.exports===h?m.Buffer:void 0,k=g?g.allocUnsafe:void 0;S.exports=function(E,A){if(A)return E.slice();var I=E.length,O=k?k(I):new E.constructor(I);return E.copy(O),O}},7157:(S,M,f)=>{var m=f(4318);S.exports=function(h,x){var g=x?m(h.buffer):h.buffer;return new h.constructor(g,h.byteOffset,h.byteLength)}},3147:S=>{var M=/\w*$/;S.exports=function(f){var m=new f.constructor(f.source,M.exec(f));return m.lastIndex=f.lastIndex,m}},419:(S,M,f)=>{var m=f(2705),h=m?m.prototype:void 0,x=h?h.valueOf:void 0;S.exports=function(g){return x?Object(x.call(g)):{}}},7133:(S,M,f)=>{var m=f(4318);S.exports=function(h,x){var g=x?m(h.buffer):h.buffer;return new h.constructor(g,h.byteOffset,h.length)}},6393:(S,M,f)=>{var m=f(3448);S.exports=function(h,x){if(h!==x){var g=h!==void 0,k=h===null,E=h==h,A=m(h),I=x!==void 0,O=x===null,Y=x==x,H=m(x);if(!O&&!H&&!A&&h>x||A&&I&&Y&&!O&&!H||k&&I&&Y||!g&&Y||!E)return 1;if(!k&&!A&&!H&&h<x||H&&g&&E&&!k&&!A||O&&g&&E||!I&&E||!Y)return-1}return 0}},5022:(S,M,f)=>{var m=f(6393);S.exports=function(h,x,g){for(var k=-1,E=h.criteria,A=x.criteria,I=E.length,O=g.length;++k<I;){var Y=m(E[k],A[k]);if(Y)return k>=O?Y:Y*(g[k]=="desc"?-1:1)}return h.index-x.index}},278:S=>{S.exports=function(M,f){var m=-1,h=M.length;for(f||(f=Array(h));++m<h;)f[m]=M[m];return f}},8363:(S,M,f)=>{var m=f(4865),h=f(9465);S.exports=function(x,g,k,E){var A=!k;k||(k={});for(var I=-1,O=g.length;++I<O;){var Y=g[I],H=E?E(k[Y],x[Y],Y,k,x):void 0;H===void 0&&(H=x[Y]),A?h(k,Y,H):m(k,Y,H)}return k}},8805:(S,M,f)=>{var m=f(8363),h=f(9551);S.exports=function(x,g){return m(x,h(x),g)}},1911:(S,M,f)=>{var m=f(8363),h=f(1442);S.exports=function(x,g){return m(x,h(x),g)}},4429:(S,M,f)=>{var m=f(5639)["__core-js_shared__"];S.exports=m},1750:(S,M,f)=>{var m=f(5976),h=f(6612);S.exports=function(x){return m(function(g,k){var E=-1,A=k.length,I=A>1?k[A-1]:void 0,O=A>2?k[2]:void 0;for(I=x.length>3&&typeof I=="function"?(A--,I):void 0,O&&h(k[0],k[1],O)&&(I=A<3?void 0:I,A=1),g=Object(g);++E<A;){var Y=k[E];Y&&x(g,Y,E,I)}return g})}},9291:(S,M,f)=>{var m=f(8612);S.exports=function(h,x){return function(g,k){if(g==null)return g;if(!m(g))return h(g,k);for(var E=g.length,A=x?E:-1,I=Object(g);(x?A--:++A<E)&&k(I[A],A,I)!==!1;);return g}}},5063:S=>{S.exports=function(M){return function(f,m,h){for(var x=-1,g=Object(f),k=h(f),E=k.length;E--;){var A=k[M?E:++x];if(m(g[A],A,g)===!1)break}return f}}},7740:(S,M,f)=>{var m=f(7206),h=f(8612),x=f(3674);S.exports=function(g){return function(k,E,A){var I=Object(k);if(!h(k)){var O=m(E,3);k=x(k),E=function(H){return O(I[H],H,I)}}var Y=g(k,E,A);return Y>-1?I[O?k[Y]:Y]:void 0}}},7445:(S,M,f)=>{var m=f(98),h=f(6612),x=f(8601);S.exports=function(g){return function(k,E,A){return A&&typeof A!="number"&&h(k,E,A)&&(E=A=void 0),k=x(k),E===void 0?(E=k,k=0):E=x(E),A=A===void 0?k<E?1:-1:x(A),m(k,E,A,g)}}},3593:(S,M,f)=>{var m=f(8525),h=f(308),x=f(1814),g=m&&1/x(new m([,-0]))[1]==1/0?function(k){return new m(k)}:h;S.exports=g},8777:(S,M,f)=>{var m=f(852),h=function(){try{var x=m(Object,"defineProperty");return x({},"",{}),x}catch{}}();S.exports=h},7114:(S,M,f)=>{var m=f(8668),h=f(2908),x=f(4757);S.exports=function(g,k,E,A,I,O){var Y=1&E,H=g.length,X=k.length;if(H!=X&&!(Y&&X>H))return!1;var Z=O.get(g),et=O.get(k);if(Z&&et)return Z==k&&et==g;var Q=-1,gt=!0,ht=2&E?new m:void 0;for(O.set(g,k),O.set(k,g);++Q<H;){var xt=g[Q],Tt=k[Q];if(A)var ne=Y?A(Tt,xt,Q,k,g,O):A(xt,Tt,Q,g,k,O);if(ne!==void 0){if(ne)continue;gt=!1;break}if(ht){if(!h(k,function(bt,at){if(!x(ht,at)&&(xt===bt||I(xt,bt,E,A,O)))return ht.push(at)})){gt=!1;break}}else if(xt!==Tt&&!I(xt,Tt,E,A,O)){gt=!1;break}}return O.delete(g),O.delete(k),gt}},8351:(S,M,f)=>{var m=f(2705),h=f(1149),x=f(7813),g=f(7114),k=f(8776),E=f(1814),A=m?m.prototype:void 0,I=A?A.valueOf:void 0;S.exports=function(O,Y,H,X,Z,et,Q){switch(H){case"[object DataView]":if(O.byteLength!=Y.byteLength||O.byteOffset!=Y.byteOffset)return!1;O=O.buffer,Y=Y.buffer;case"[object ArrayBuffer]":return!(O.byteLength!=Y.byteLength||!et(new h(O),new h(Y)));case"[object Boolean]":case"[object Date]":case"[object Number]":return x(+O,+Y);case"[object Error]":return O.name==Y.name&&O.message==Y.message;case"[object RegExp]":case"[object String]":return O==Y+"";case"[object Map]":var gt=k;case"[object Set]":var ht=1&X;if(gt||(gt=E),O.size!=Y.size&&!ht)return!1;var xt=Q.get(O);if(xt)return xt==Y;X|=2,Q.set(O,Y);var Tt=g(gt(O),gt(Y),X,Z,et,Q);return Q.delete(O),Tt;case"[object Symbol]":if(I)return I.call(O)==I.call(Y)}return!1}},6096:(S,M,f)=>{var m=f(8234),h=Object.prototype.hasOwnProperty;S.exports=function(x,g,k,E,A,I){var O=1&k,Y=m(x),H=Y.length;if(H!=m(g).length&&!O)return!1;for(var X=H;X--;){var Z=Y[X];if(!(O?Z in g:h.call(g,Z)))return!1}var et=I.get(x),Q=I.get(g);if(et&&Q)return et==g&&Q==x;var gt=!0;I.set(x,g),I.set(g,x);for(var ht=O;++X<H;){var xt=x[Z=Y[X]],Tt=g[Z];if(E)var ne=O?E(Tt,xt,Z,g,x,I):E(xt,Tt,Z,x,g,I);if(!(ne===void 0?xt===Tt||A(xt,Tt,k,E,I):ne)){gt=!1;break}ht||(ht=Z=="constructor")}if(gt&&!ht){var bt=x.constructor,at=g.constructor;bt==at||!("constructor"in x)||!("constructor"in g)||typeof bt=="function"&&bt instanceof bt&&typeof at=="function"&&at instanceof at||(gt=!1)}return I.delete(x),I.delete(g),gt}},9021:(S,M,f)=>{var m=f(5564),h=f(5357),x=f(61);S.exports=function(g){return x(h(g,void 0,m),g+"")}},1957:(S,M,f)=>{var m=typeof f.g=="object"&&f.g&&f.g.Object===Object&&f.g;S.exports=m},8234:(S,M,f)=>{var m=f(8866),h=f(9551),x=f(3674);S.exports=function(g){return m(g,x,h)}},6904:(S,M,f)=>{var m=f(8866),h=f(1442),x=f(1704);S.exports=function(g){return m(g,x,h)}},5050:(S,M,f)=>{var m=f(7019);S.exports=function(h,x){var g=h.__data__;return m(x)?g[typeof x=="string"?"string":"hash"]:g.map}},1499:(S,M,f)=>{var m=f(9162),h=f(3674);S.exports=function(x){for(var g=h(x),k=g.length;k--;){var E=g[k],A=x[E];g[k]=[E,A,m(A)]}return g}},852:(S,M,f)=>{var m=f(8458),h=f(7801);S.exports=function(x,g){var k=h(x,g);return m(k)?k:void 0}},5924:(S,M,f)=>{var m=f(5569)(Object.getPrototypeOf,Object);S.exports=m},9607:(S,M,f)=>{var m=f(2705),h=Object.prototype,x=h.hasOwnProperty,g=h.toString,k=m?m.toStringTag:void 0;S.exports=function(E){var A=x.call(E,k),I=E[k];try{E[k]=void 0;var O=!0}catch{}var Y=g.call(E);return O&&(A?E[k]=I:delete E[k]),Y}},9551:(S,M,f)=>{var m=f(4963),h=f(479),x=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols,k=g?function(E){return E==null?[]:(E=Object(E),m(g(E),function(A){return x.call(E,A)}))}:h;S.exports=k},1442:(S,M,f)=>{var m=f(2488),h=f(5924),x=f(9551),g=f(479),k=Object.getOwnPropertySymbols?function(E){for(var A=[];E;)m(A,x(E)),E=h(E);return A}:g;S.exports=k},4160:(S,M,f)=>{var m=f(8552),h=f(7071),x=f(3818),g=f(8525),k=f(577),E=f(4239),A=f(346),I="[object Map]",O="[object Promise]",Y="[object Set]",H="[object WeakMap]",X="[object DataView]",Z=A(m),et=A(h),Q=A(x),gt=A(g),ht=A(k),xt=E;(m&&xt(new m(new ArrayBuffer(1)))!=X||h&&xt(new h)!=I||x&&xt(x.resolve())!=O||g&&xt(new g)!=Y||k&&xt(new k)!=H)&&(xt=function(Tt){var ne=E(Tt),bt=ne=="[object Object]"?Tt.constructor:void 0,at=bt?A(bt):"";if(at)switch(at){case Z:return X;case et:return I;case Q:return O;case gt:return Y;case ht:return H}return ne}),S.exports=xt},7801:S=>{S.exports=function(M,f){return M==null?void 0:M[f]}},222:(S,M,f)=>{var m=f(1811),h=f(5694),x=f(1469),g=f(5776),k=f(1780),E=f(327);S.exports=function(A,I,O){for(var Y=-1,H=(I=m(I,A)).length,X=!1;++Y<H;){var Z=E(I[Y]);if(!(X=A!=null&&O(A,Z)))break;A=A[Z]}return X||++Y!=H?X:!!(H=A==null?0:A.length)&&k(H)&&g(Z,H)&&(x(A)||h(A))}},2689:S=>{var M=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");S.exports=function(f){return M.test(f)}},1789:(S,M,f)=>{var m=f(4536);S.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:S=>{S.exports=function(M){var f=this.has(M)&&delete this.__data__[M];return this.size-=f?1:0,f}},7667:(S,M,f)=>{var m=f(4536),h=Object.prototype.hasOwnProperty;S.exports=function(x){var g=this.__data__;if(m){var k=g[x];return k==="__lodash_hash_undefined__"?void 0:k}return h.call(g,x)?g[x]:void 0}},1327:(S,M,f)=>{var m=f(4536),h=Object.prototype.hasOwnProperty;S.exports=function(x){var g=this.__data__;return m?g[x]!==void 0:h.call(g,x)}},1866:(S,M,f)=>{var m=f(4536);S.exports=function(h,x){var g=this.__data__;return this.size+=this.has(h)?0:1,g[h]=m&&x===void 0?"__lodash_hash_undefined__":x,this}},3824:S=>{var M=Object.prototype.hasOwnProperty;S.exports=function(f){var m=f.length,h=new f.constructor(m);return m&&typeof f[0]=="string"&&M.call(f,"index")&&(h.index=f.index,h.input=f.input),h}},9148:(S,M,f)=>{var m=f(4318),h=f(7157),x=f(3147),g=f(419),k=f(7133);S.exports=function(E,A,I){var O=E.constructor;switch(A){case"[object ArrayBuffer]":return m(E);case"[object Boolean]":case"[object Date]":return new O(+E);case"[object DataView]":return h(E,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(E,I);case"[object Map]":case"[object Set]":return new O;case"[object Number]":case"[object String]":return new O(E);case"[object RegExp]":return x(E);case"[object Symbol]":return g(E)}}},8517:(S,M,f)=>{var m=f(3118),h=f(5924),x=f(5726);S.exports=function(g){return typeof g.constructor!="function"||x(g)?{}:m(h(g))}},7285:(S,M,f)=>{var m=f(2705),h=f(5694),x=f(1469),g=m?m.isConcatSpreadable:void 0;S.exports=function(k){return x(k)||h(k)||!!(g&&k&&k[g])}},5776:S=>{var M=/^(?:0|[1-9]\d*)$/;S.exports=function(f,m){var h=typeof f;return!!(m=m==null?9007199254740991:m)&&(h=="number"||h!="symbol"&&M.test(f))&&f>-1&&f%1==0&&f<m}},6612:(S,M,f)=>{var m=f(7813),h=f(8612),x=f(5776),g=f(3218);S.exports=function(k,E,A){if(!g(A))return!1;var I=typeof E;return!!(I=="number"?h(A)&&x(E,A.length):I=="string"&&E in A)&&m(A[E],k)}},5403:(S,M,f)=>{var m=f(1469),h=f(3448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;S.exports=function(k,E){if(m(k))return!1;var A=typeof k;return!(A!="number"&&A!="symbol"&&A!="boolean"&&k!=null&&!h(k))||g.test(k)||!x.test(k)||E!=null&&k in Object(E)}},7019:S=>{S.exports=function(M){var f=typeof M;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?M!=="__proto__":M===null}},5346:(S,M,f)=>{var m,h=f(4429),x=(m=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";S.exports=function(g){return!!x&&x in g}},5726:S=>{var M=Object.prototype;S.exports=function(f){var m=f&&f.constructor;return f===(typeof m=="function"&&m.prototype||M)}},9162:(S,M,f)=>{var m=f(3218);S.exports=function(h){return h==h&&!m(h)}},7040:S=>{S.exports=function(){this.__data__=[],this.size=0}},2188:(S,M,f)=>{var m=f(8470),h=Array.prototype.splice;S.exports=function(x){var g=this.__data__,k=m(g,x);return!(k<0||(k==g.length-1?g.pop():h.call(g,k,1),--this.size,0))}},2117:(S,M,f)=>{var m=f(8470);S.exports=function(h){var x=this.__data__,g=m(x,h);return g<0?void 0:x[g][1]}},7518:(S,M,f)=>{var m=f(8470);S.exports=function(h){return m(this.__data__,h)>-1}},4705:(S,M,f)=>{var m=f(8470);S.exports=function(h,x){var g=this.__data__,k=m(g,h);return k<0?(++this.size,g.push([h,x])):g[k][1]=x,this}},4785:(S,M,f)=>{var m=f(1989),h=f(8407),x=f(7071);S.exports=function(){this.size=0,this.__data__={hash:new m,map:new(x||h),string:new m}}},1285:(S,M,f)=>{var m=f(5050);S.exports=function(h){var x=m(this,h).delete(h);return this.size-=x?1:0,x}},6e3:(S,M,f)=>{var m=f(5050);S.exports=function(h){return m(this,h).get(h)}},9916:(S,M,f)=>{var m=f(5050);S.exports=function(h){return m(this,h).has(h)}},5265:(S,M,f)=>{var m=f(5050);S.exports=function(h,x){var g=m(this,h),k=g.size;return g.set(h,x),this.size+=g.size==k?0:1,this}},8776:S=>{S.exports=function(M){var f=-1,m=Array(M.size);return M.forEach(function(h,x){m[++f]=[x,h]}),m}},2634:S=>{S.exports=function(M,f){return function(m){return m!=null&&m[M]===f&&(f!==void 0||M in Object(m))}}},4523:(S,M,f)=>{var m=f(8306);S.exports=function(h){var x=m(h,function(k){return g.size===500&&g.clear(),k}),g=x.cache;return x}},4536:(S,M,f)=>{var m=f(852)(Object,"create");S.exports=m},6916:(S,M,f)=>{var m=f(5569)(Object.keys,Object);S.exports=m},3498:S=>{S.exports=function(M){var f=[];if(M!=null)for(var m in Object(M))f.push(m);return f}},1167:(S,M,f)=>{S=f.nmd(S);var m=f(1957),h=M&&!M.nodeType&&M,x=h&&S&&!S.nodeType&&S,g=x&&x.exports===h&&m.process,k=function(){try{return x&&x.require&&x.require("util").types||g&&g.binding&&g.binding("util")}catch{}}();S.exports=k},2333:S=>{var M=Object.prototype.toString;S.exports=function(f){return M.call(f)}},5569:S=>{S.exports=function(M,f){return function(m){return M(f(m))}}},5357:(S,M,f)=>{var m=f(6874),h=Math.max;S.exports=function(x,g,k){return g=h(g===void 0?x.length-1:g,0),function(){for(var E=arguments,A=-1,I=h(E.length-g,0),O=Array(I);++A<I;)O[A]=E[g+A];A=-1;for(var Y=Array(g+1);++A<g;)Y[A]=E[A];return Y[g]=k(O),m(x,this,Y)}}},5639:(S,M,f)=>{var m=f(1957),h=typeof self=="object"&&self&&self.Object===Object&&self,x=m||h||Function("return this")();S.exports=x},6390:S=>{S.exports=function(M,f){if((f!=="constructor"||typeof M[f]!="function")&&f!="__proto__")return M[f]}},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 f=-1,m=Array(M.size);return M.forEach(function(h){m[++f]=h}),m}},61:(S,M,f)=>{var m=f(6560),h=f(1275)(m);S.exports=h},1275:S=>{var M=Date.now;S.exports=function(f){var m=0,h=0;return function(){var x=M(),g=16-(x-h);if(h=x,g>0){if(++m>=800)return arguments[0]}else m=0;return f.apply(void 0,arguments)}}},7465:(S,M,f)=>{var m=f(8407);S.exports=function(){this.__data__=new m,this.size=0}},3779:S=>{S.exports=function(M){var f=this.__data__,m=f.delete(M);return this.size=f.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,f)=>{var m=f(8407),h=f(7071),x=f(3369);S.exports=function(g,k){var E=this.__data__;if(E instanceof m){var A=E.__data__;if(!h||A.length<199)return A.push([g,k]),this.size=++E.size,this;E=this.__data__=new x(A)}return E.set(g,k),this.size=E.size,this}},2351:S=>{S.exports=function(M,f,m){for(var h=m-1,x=M.length;++h<x;)if(M[h]===f)return h;return-1}},8016:(S,M,f)=>{var m=f(8983),h=f(2689),x=f(1903);S.exports=function(g){return h(g)?x(g):m(g)}},5514:(S,M,f)=>{var m=f(4523),h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,g=m(function(k){var E=[];return k.charCodeAt(0)===46&&E.push(""),k.replace(h,function(A,I,O,Y){E.push(O?Y.replace(x,"$1"):I||A)}),E});S.exports=g},327:(S,M,f)=>{var m=f(3448);S.exports=function(h){if(typeof h=="string"||m(h))return h;var x=h+"";return x=="0"&&1/h==-1/0?"-0":x}},346:S=>{var M=Function.prototype.toString;S.exports=function(f){if(f!=null){try{return M.call(f)}catch{}try{return f+""}catch{}}return""}},7990:S=>{var M=/\s/;S.exports=function(f){for(var m=f.length;m--&&M.test(f.charAt(m)););return m}},1903:S=>{var M="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",f="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",g="(?:"+M+"|"+f+")?",k="[\\ufe0e\\ufe0f]?",E=k+g+"(?:\\u200d(?:"+[m,h,x].join("|")+")"+k+g+")*",A="(?:"+[m+M+"?",M,h,x,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(f+"(?="+f+")|"+A+E,"g");S.exports=function(O){for(var Y=I.lastIndex=0;I.test(O);)++Y;return Y}},6678:(S,M,f)=>{var m=f(5990);S.exports=function(h){return m(h,4)}},361:(S,M,f)=>{var m=f(5990);S.exports=function(h){return m(h,5)}},5703:S=>{S.exports=function(M){return function(){return M}}},1747:(S,M,f)=>{var m=f(5976),h=f(7813),x=f(6612),g=f(1704),k=Object.prototype,E=k.hasOwnProperty,A=m(function(I,O){I=Object(I);var Y=-1,H=O.length,X=H>2?O[2]:void 0;for(X&&x(O[0],O[1],X)&&(H=1);++Y<H;)for(var Z=O[Y],et=g(Z),Q=-1,gt=et.length;++Q<gt;){var ht=et[Q],xt=I[ht];(xt===void 0||h(xt,k[ht])&&!E.call(I,ht))&&(I[ht]=Z[ht])}return I});S.exports=A},6073:(S,M,f)=>{S.exports=f(4486)},7813:S=>{S.exports=function(M,f){return M===f||M!=M&&f!=f}},3105:(S,M,f)=>{var m=f(4963),h=f(760),x=f(7206),g=f(1469);S.exports=function(k,E){return(g(k)?m:h)(k,x(E,3))}},3311:(S,M,f)=>{var m=f(7740)(f(998));S.exports=m},998:(S,M,f)=>{var m=f(1848),h=f(7206),x=f(554),g=Math.max;S.exports=function(k,E,A){var I=k==null?0:k.length;if(!I)return-1;var O=A==null?0:x(A);return O<0&&(O=g(I+O,0)),m(k,h(E,3),O)}},5564:(S,M,f)=>{var m=f(1078);S.exports=function(h){return h!=null&&h.length?m(h,1):[]}},4486:(S,M,f)=>{var m=f(7412),h=f(9881),x=f(4290),g=f(1469);S.exports=function(k,E){return(g(k)?m:h)(k,x(E))}},2620:(S,M,f)=>{var m=f(8483),h=f(4290),x=f(1704);S.exports=function(g,k){return g==null?g:m(g,h(k),x)}},1917:(S,M,f)=>{var m=f(7786);S.exports=function(h,x,g){var k=h==null?void 0:m(h,x);return k===void 0?g:k}},8721:(S,M,f)=>{var m=f(8565),h=f(222);S.exports=function(x,g){return x!=null&&h(x,g,m)}},9095:(S,M,f)=>{var m=f(13),h=f(222);S.exports=function(x,g){return x!=null&&h(x,g,m)}},6557:S=>{S.exports=function(M){return M}},5694:(S,M,f)=>{var m=f(9454),h=f(7005),x=Object.prototype,g=x.hasOwnProperty,k=x.propertyIsEnumerable,E=m(function(){return arguments}())?m:function(A){return h(A)&&g.call(A,"callee")&&!k.call(A,"callee")};S.exports=E},1469:S=>{var M=Array.isArray;S.exports=M},8612:(S,M,f)=>{var m=f(3560),h=f(1780);S.exports=function(x){return x!=null&&h(x.length)&&!m(x)}},9246:(S,M,f)=>{var m=f(8612),h=f(7005);S.exports=function(x){return h(x)&&m(x)}},4144:(S,M,f)=>{S=f.nmd(S);var m=f(5639),h=f(5062),x=M&&!M.nodeType&&M,g=x&&S&&!S.nodeType&&S,k=g&&g.exports===x?m.Buffer:void 0,E=(k?k.isBuffer:void 0)||h;S.exports=E},1609:(S,M,f)=>{var m=f(280),h=f(4160),x=f(5694),g=f(1469),k=f(8612),E=f(4144),A=f(5726),I=f(6719),O=Object.prototype.hasOwnProperty;S.exports=function(Y){if(Y==null)return!0;if(k(Y)&&(g(Y)||typeof Y=="string"||typeof Y.splice=="function"||E(Y)||I(Y)||x(Y)))return!Y.length;var H=h(Y);if(H=="[object Map]"||H=="[object Set]")return!Y.size;if(A(Y))return!m(Y).length;for(var X in Y)if(O.call(Y,X))return!1;return!0}},3560:(S,M,f)=>{var m=f(4239),h=f(3218);S.exports=function(x){if(!h(x))return!1;var g=m(x);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,f)=>{var m=f(5588),h=f(1717),x=f(1167),g=x&&x.isMap,k=g?h(g):m;S.exports=k},3218:S=>{S.exports=function(M){var f=typeof M;return M!=null&&(f=="object"||f=="function")}},7005:S=>{S.exports=function(M){return M!=null&&typeof M=="object"}},8630:(S,M,f)=>{var m=f(4239),h=f(5924),x=f(7005),g=Function.prototype,k=Object.prototype,E=g.toString,A=k.hasOwnProperty,I=E.call(Object);S.exports=function(O){if(!x(O)||m(O)!="[object Object]")return!1;var Y=h(O);if(Y===null)return!0;var H=A.call(Y,"constructor")&&Y.constructor;return typeof H=="function"&&H instanceof H&&E.call(H)==I}},2928:(S,M,f)=>{var m=f(9221),h=f(1717),x=f(1167),g=x&&x.isSet,k=g?h(g):m;S.exports=k},7037:(S,M,f)=>{var m=f(4239),h=f(1469),x=f(7005);S.exports=function(g){return typeof g=="string"||!h(g)&&x(g)&&m(g)=="[object String]"}},3448:(S,M,f)=>{var m=f(4239),h=f(7005);S.exports=function(x){return typeof x=="symbol"||h(x)&&m(x)=="[object Symbol]"}},6719:(S,M,f)=>{var m=f(8749),h=f(1717),x=f(1167),g=x&&x.isTypedArray,k=g?h(g):m;S.exports=k},2353:S=>{S.exports=function(M){return M===void 0}},3674:(S,M,f)=>{var m=f(4636),h=f(280),x=f(8612);S.exports=function(g){return x(g)?m(g):h(g)}},1704:(S,M,f)=>{var m=f(4636),h=f(313),x=f(8612);S.exports=function(g){return x(g)?m(g,!0):h(g)}},928:S=>{S.exports=function(M){var f=M==null?0:M.length;return f?M[f-1]:void 0}},5161:(S,M,f)=>{var m=f(9932),h=f(7206),x=f(9199),g=f(1469);S.exports=function(k,E){return(g(k)?m:x)(k,h(E,3))}},6604:(S,M,f)=>{var m=f(9465),h=f(7816),x=f(7206);S.exports=function(g,k){var E={};return k=x(k,3),h(g,function(A,I,O){m(E,I,k(A,I,O))}),E}},6162:(S,M,f)=>{var m=f(6029),h=f(3325),x=f(6557);S.exports=function(g){return g&&g.length?m(g,x,h):void 0}},8306:(S,M,f)=>{var m=f(3369);function h(x,g){if(typeof x!="function"||g!=null&&typeof g!="function")throw new TypeError("Expected a function");var k=function(){var E=arguments,A=g?g.apply(this,E):E[0],I=k.cache;if(I.has(A))return I.get(A);var O=x.apply(this,E);return k.cache=I.set(A,O)||I,O};return k.cache=new(h.Cache||m),k}h.Cache=m,S.exports=h},3857:(S,M,f)=>{var m=f(2980),h=f(1750)(function(x,g,k){m(x,g,k)});S.exports=h},3632:(S,M,f)=>{var m=f(6029),h=f(433),x=f(6557);S.exports=function(g){return g&&g.length?m(g,x,h):void 0}},2762:(S,M,f)=>{var m=f(6029),h=f(7206),x=f(433);S.exports=function(g,k){return g&&g.length?m(g,h(k,2),x):void 0}},308:S=>{S.exports=function(){}},7771:(S,M,f)=>{var m=f(5639);S.exports=function(){return m.Date.now()}},9722:(S,M,f)=>{var m=f(5970),h=f(9021)(function(x,g){return x==null?{}:m(x,g)});S.exports=h},9601:(S,M,f)=>{var m=f(371),h=f(9152),x=f(5403),g=f(327);S.exports=function(k){return x(k)?m(g(k)):h(k)}},6026:(S,M,f)=>{var m=f(7445)();S.exports=m},4061:(S,M,f)=>{var m=f(2663),h=f(9881),x=f(7206),g=f(107),k=f(1469);S.exports=function(E,A,I){var O=k(E)?m:g,Y=arguments.length<3;return O(E,x(A,4),I,Y,h)}},4238:(S,M,f)=>{var m=f(280),h=f(4160),x=f(8612),g=f(7037),k=f(8016);S.exports=function(E){if(E==null)return 0;if(x(E))return g(E)?k(E):E.length;var A=h(E);return A=="[object Map]"||A=="[object Set]"?E.size:m(E).length}},9734:(S,M,f)=>{var m=f(1078),h=f(9556),x=f(5976),g=f(6612),k=x(function(E,A){if(E==null)return[];var I=A.length;return I>1&&g(E,A[0],A[1])?A=[]:I>2&&g(A[0],A[1],A[2])&&(A=[A[0]]),h(E,m(A,1),[])});S.exports=k},479:S=>{S.exports=function(){return[]}},5062:S=>{S.exports=function(){return!1}},8601:(S,M,f)=>{var m=f(4841);S.exports=function(h){return h?(h=m(h))===1/0||h===-1/0?17976931348623157e292*(h<0?-1:1):h==h?h:0:h===0?h:0}},554:(S,M,f)=>{var m=f(8601);S.exports=function(h){var x=m(h),g=x%1;return x==x?g?x-g:x:0}},4841:(S,M,f)=>{var m=f(7561),h=f(3218),x=f(3448),g=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,E=/^0o[0-7]+$/i,A=parseInt;S.exports=function(I){if(typeof I=="number")return I;if(x(I))return NaN;if(h(I)){var O=typeof I.valueOf=="function"?I.valueOf():I;I=h(O)?O+"":O}if(typeof I!="string")return I===0?I:+I;I=m(I);var Y=k.test(I);return Y||E.test(I)?A(I.slice(2),Y?2:8):g.test(I)?NaN:+I}},3678:(S,M,f)=>{var m=f(8363),h=f(1704);S.exports=function(x){return m(x,h(x))}},9833:(S,M,f)=>{var m=f(531);S.exports=function(h){return h==null?"":m(h)}},8718:(S,M,f)=>{var m=f(7412),h=f(3118),x=f(7816),g=f(7206),k=f(5924),E=f(1469),A=f(4144),I=f(3560),O=f(3218),Y=f(6719);S.exports=function(H,X,Z){var et=E(H),Q=et||A(H)||Y(H);if(X=g(X,4),Z==null){var gt=H&&H.constructor;Z=Q?et?new gt:[]:O(H)&&I(gt)?h(k(H)):{}}return(Q?m:x)(H,function(ht,xt,Tt){return X(Z,ht,xt,Tt)}),Z}},3386:(S,M,f)=>{var m=f(1078),h=f(5976),x=f(5652),g=f(9246),k=h(function(E){return x(m(E,1,g,!0))});S.exports=k},3955:(S,M,f)=>{var m=f(9833),h=0;S.exports=function(x){var g=++h;return m(x)+g}},2628:(S,M,f)=>{var m=f(7415),h=f(3674);S.exports=function(x){return x==null?[]:m(x,h(x))}},7287:(S,M,f)=>{var m=f(4865),h=f(1757);S.exports=function(x,g){return h(x||[],g||[],m)}},9234:()=>{},1748:(S,M,f)=>{var m={"./locale":9234,"./locale.js":9234};function h(g){var k=x(g);return f(k)}function x(g){if(!f.o(m,g)){var k=new Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k}return m[g]}h.keys=function(){return Object.keys(m)},h.resolve=x,S.exports=h,h.id=1748},1941:function(S,M,f){(S=f.nmd(S)).exports=function(){var m,h;function x(){return m.apply(null,arguments)}function g(C){return C instanceof Array||Object.prototype.toString.call(C)==="[object Array]"}function k(C){return C!=null&&Object.prototype.toString.call(C)==="[object Object]"}function E(C){return C===void 0}function A(C){return typeof C=="number"||Object.prototype.toString.call(C)==="[object Number]"}function I(C){return C instanceof Date||Object.prototype.toString.call(C)==="[object Date]"}function O(C,R){var W,st=[];for(W=0;W<C.length;++W)st.push(R(C[W],W));return st}function Y(C,R){return Object.prototype.hasOwnProperty.call(C,R)}function H(C,R){for(var W in R)Y(R,W)&&(C[W]=R[W]);return Y(R,"toString")&&(C.toString=R.toString),Y(R,"valueOf")&&(C.valueOf=R.valueOf),C}function X(C,R,W,st){return qi(C,R,W,st,!0).utc()}function Z(C){return C._pf==null&&(C._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}),C._pf}function et(C){if(C._isValid==null){var R=Z(C),W=h.call(R.parsedDateParts,function(Vt){return Vt!=null}),st=!isNaN(C._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&W);if(C._strict&&(st=st&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(C))return st;C._isValid=st}return C._isValid}function Q(C){var R=X(NaN);return C!=null?H(Z(R),C):Z(R).userInvalidated=!0,R}h=Array.prototype.some?Array.prototype.some:function(C){for(var R=Object(this),W=R.length>>>0,st=0;st<W;st++)if(st in R&&C.call(this,R[st],st,R))return!0;return!1};var gt=x.momentProperties=[];function ht(C,R){var W,st,Vt;if(E(R._isAMomentObject)||(C._isAMomentObject=R._isAMomentObject),E(R._i)||(C._i=R._i),E(R._f)||(C._f=R._f),E(R._l)||(C._l=R._l),E(R._strict)||(C._strict=R._strict),E(R._tzm)||(C._tzm=R._tzm),E(R._isUTC)||(C._isUTC=R._isUTC),E(R._offset)||(C._offset=R._offset),E(R._pf)||(C._pf=Z(R)),E(R._locale)||(C._locale=R._locale),0<gt.length)for(W=0;W<gt.length;W++)E(Vt=R[st=gt[W]])||(C[st]=Vt);return C}var xt=!1;function Tt(C){ht(this,C),this._d=new Date(C._d!=null?C._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),xt===!1&&(xt=!0,x.updateOffset(this),xt=!1)}function ne(C){return C instanceof Tt||C!=null&&C._isAMomentObject!=null}function bt(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function at(C){var R=+C,W=0;return R!==0&&isFinite(R)&&(W=bt(R)),W}function nt(C,R,W){var st,Vt=Math.min(C.length,R.length),ye=Math.abs(C.length-R.length),Te=0;for(st=0;st<Vt;st++)(W&&C[st]!==R[st]||!W&&at(C[st])!==at(R[st]))&&Te++;return Te+ye}function Dt(C){x.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+C)}function Lt(C,R){var W=!0;return H(function(){if(x.deprecationHandler!=null&&x.deprecationHandler(null,C),W){for(var st,Vt=[],ye=0;ye<arguments.length;ye++){if(st="",typeof arguments[ye]=="object"){for(var Te in st+=`
|
|
[`+ye+"] ",arguments[0])st+=Te+": "+arguments[0][Te]+", ";st=st.slice(0,-2)}else st=arguments[ye];Vt.push(st)}Dt(C+`
|
|
Arguments: `+Array.prototype.slice.call(Vt).join("")+`
|
|
`+new Error().stack),W=!1}return R.apply(this,arguments)},R)}var tt,lt={};function q(C,R){x.deprecationHandler!=null&&x.deprecationHandler(C,R),lt[C]||(Dt(R),lt[C]=!0)}function Ut(C){return C instanceof Function||Object.prototype.toString.call(C)==="[object Function]"}function G(C,R){var W,st=H({},C);for(W in R)Y(R,W)&&(k(C[W])&&k(R[W])?(st[W]={},H(st[W],C[W]),H(st[W],R[W])):R[W]!=null?st[W]=R[W]:delete st[W]);for(W in C)Y(C,W)&&!Y(R,W)&&k(C[W])&&(st[W]=H({},st[W]));return st}function me(C){C!=null&&this.set(C)}x.suppressDeprecationWarnings=!1,x.deprecationHandler=null,tt=Object.keys?Object.keys:function(C){var R,W=[];for(R in C)Y(C,R)&&W.push(R);return W};var ve={};function jt(C,R){var W=C.toLowerCase();ve[W]=ve[W+"s"]=ve[R]=C}function ie(C){return typeof C=="string"?ve[C]||ve[C.toLowerCase()]:void 0}function he(C){var R,W,st={};for(W in C)Y(C,W)&&(R=ie(W))&&(st[R]=C[W]);return st}var pe={};function le(C,R){pe[C]=R}function oe(C,R,W){var st=""+Math.abs(C),Vt=R-st.length;return(0<=C?W?"+":"":"-")+Math.pow(10,Math.max(0,Vt)).toString().substr(1)+st}var wn=/(\[[^\[]*\])|(\\)?([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,fe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},Zt={};function St(C,R,W,st){var Vt=st;typeof st=="string"&&(Vt=function(){return this[st]()}),C&&(Zt[C]=Vt),R&&(Zt[R[0]]=function(){return oe(Vt.apply(this,arguments),R[1],R[2])}),W&&(Zt[W]=function(){return this.localeData().ordinal(Vt.apply(this,arguments),C)})}function Qt(C,R){return C.isValid()?(R=mt(R,C.localeData()),ae[R]=ae[R]||function(W){var st,Vt,ye,Te=W.match(wn);for(st=0,Vt=Te.length;st<Vt;st++)Zt[Te[st]]?Te[st]=Zt[Te[st]]:Te[st]=(ye=Te[st]).match(/\[[\s\S]/)?ye.replace(/^\[|\]$/g,""):ye.replace(/\\/g,"");return function(Oe){var Ie,He="";for(Ie=0;Ie<Vt;Ie++)He+=Ut(Te[Ie])?Te[Ie].call(Oe,W):Te[Ie];return He}}(R),ae[R](C)):C.localeData().invalidDate()}function mt(C,R){var W=5;function st(Vt){return R.longDateFormat(Vt)||Vt}for(fe.lastIndex=0;0<=W&&fe.test(C);)C=C.replace(fe,st),fe.lastIndex=0,W-=1;return C}var Ht=/\d/,kt=/\d\d/,It=/\d{3}/,se=/\d{4}/,Se=/[+-]?\d{6}/,be=/\d\d?/,Ae=/\d\d\d\d?/,cn=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Be=/\d{1,4}/,Le=/[+-]?\d{1,6}/,Ze=/\d+/,Ke=/[+-]?\d+/,Je=/Z|[+-]\d\d:?\d\d/gi,$e=/Z|[+-]\d\d(?::?\d\d)?/gi,Ue=/[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(C,R,W){Yn[C]=Ut(R)?R:function(st,Vt){return st&&W?W:R}}function un(C,R){return Y(Yn,C)?Yn[C](R._strict,R._locale):new RegExp(gn(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(W,st,Vt,ye,Te){return st||Vt||ye||Te})))}function gn(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kr={};function kn(C,R){var W,st=R;for(typeof C=="string"&&(C=[C]),A(R)&&(st=function(Vt,ye){ye[R]=at(Vt)}),W=0;W<C.length;W++)kr[C[W]]=st}function sr(C,R){kn(C,function(W,st,Vt,ye){Vt._w=Vt._w||{},R(W,Vt._w,Vt,ye)})}function rn(C){return ln(C)?366:365}function ln(C){return C%4==0&&C%100!=0||C%400==0}St("Y",0,0,function(){var C=this.year();return C<=9999?""+C:"+"+C}),St(0,["YY",2],0,function(){return this.year()%100}),St(0,["YYYY",4],0,"year"),St(0,["YYYYY",5],0,"year"),St(0,["YYYYYY",6,!0],0,"year"),jt("year","y"),le("year",1),Me("Y",Ke),Me("YY",be,kt),Me("YYYY",Be,se),Me("YYYYY",Le,Se),Me("YYYYYY",Le,Se),kn(["YYYYY","YYYYYY"],0),kn("YYYY",function(C,R){R[0]=C.length===2?x.parseTwoDigitYear(C):at(C)}),kn("YY",function(C,R){R[0]=x.parseTwoDigitYear(C)}),kn("Y",function(C,R){R[0]=parseInt(C,10)}),x.parseTwoDigitYear=function(C){return at(C)+(68<at(C)?1900:2e3)};var Ye,mn=bn("FullYear",!0);function bn(C,R){return function(W){return W!=null?(Un(this,C,W),x.updateOffset(this,R),this):zn(this,C)}}function zn(C,R){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+R]():NaN}function Un(C,R,W){C.isValid()&&!isNaN(W)&&(R==="FullYear"&&ln(C.year())&&C.month()===1&&C.date()===29?C._d["set"+(C._isUTC?"UTC":"")+R](W,C.month(),Cr(W,C.month())):C._d["set"+(C._isUTC?"UTC":"")+R](W))}function Cr(C,R){if(isNaN(C)||isNaN(R))return NaN;var W=(R%12+12)%12;return C+=(R-W)/12,W===1?ln(C)?29:28:31-W%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(C){var R;for(R=0;R<this.length;++R)if(this[R]===C)return R;return-1},St("M",["MM",2],"Mo",function(){return this.month()+1}),St("MMM",0,0,function(C){return this.localeData().monthsShort(this,C)}),St("MMMM",0,0,function(C){return this.localeData().months(this,C)}),jt("month","M"),le("month",8),Me("M",be),Me("MM",be,kt),Me("MMM",function(C,R){return R.monthsShortRegex(C)}),Me("MMMM",function(C,R){return R.monthsRegex(C)}),kn(["M","MM"],function(C,R){R[1]=at(C)-1}),kn(["MMM","MMMM"],function(C,R,W,st){var Vt=W._locale.monthsParse(C,st,W._strict);Vt!=null?R[1]=Vt:Z(W).invalidMonth=C});var Ln=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Sn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function qn(C,R){var W;if(!C.isValid())return C;if(typeof R=="string"){if(/^\d+$/.test(R))R=at(R);else if(!A(R=C.localeData().monthsParse(R)))return C}return W=Math.min(C.date(),Cr(C.year(),R)),C._d["set"+(C._isUTC?"UTC":"")+"Month"](R,W),C}function Vn(C){return C!=null?(qn(this,C),x.updateOffset(this,!0),this):zn(this,"Month")}var Xn=Ue,Tn=Ue;function In(){function C(Te,Oe){return Oe.length-Te.length}var R,W,st=[],Vt=[],ye=[];for(R=0;R<12;R++)W=X([2e3,R]),st.push(this.monthsShort(W,"")),Vt.push(this.months(W,"")),ye.push(this.months(W,"")),ye.push(this.monthsShort(W,""));for(st.sort(C),Vt.sort(C),ye.sort(C),R=0;R<12;R++)st[R]=gn(st[R]),Vt[R]=gn(Vt[R]);for(R=0;R<24;R++)ye[R]=gn(ye[R]);this._monthsRegex=new RegExp("^("+ye.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Vt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+st.join("|")+")","i")}function An(C){var R;if(C<100&&0<=C){var W=Array.prototype.slice.call(arguments);W[0]=C+400,R=new Date(Date.UTC.apply(null,W)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(C)}else R=new Date(Date.UTC.apply(null,arguments));return R}function hn(C,R,W){var st=7+R-W;return-(7+An(C,0,st).getUTCDay()-R)%7+st-1}function Hn(C,R,W,st,Vt){var ye,Te,Oe=1+7*(R-1)+(7+W-st)%7+hn(C,st,Vt);return Te=Oe<=0?rn(ye=C-1)+Oe:Oe>rn(C)?(ye=C+1,Oe-rn(C)):(ye=C,Oe),{year:ye,dayOfYear:Te}}function ir(C,R,W){var st,Vt,ye=hn(C.year(),R,W),Te=Math.floor((C.dayOfYear()-ye-1)/7)+1;return Te<1?st=Te+ra(Vt=C.year()-1,R,W):Te>ra(C.year(),R,W)?(st=Te-ra(C.year(),R,W),Vt=C.year()+1):(Vt=C.year(),st=Te),{week:st,year:Vt}}function ra(C,R,W){var st=hn(C,R,W),Vt=hn(C+1,R,W);return(rn(C)-st+Vt)/7}function gr(C,R){return C.slice(R,7).concat(C.slice(0,R))}St("w",["ww",2],"wo","week"),St("W",["WW",2],"Wo","isoWeek"),jt("week","w"),jt("isoWeek","W"),le("week",5),le("isoWeek",5),Me("w",be),Me("ww",be,kt),Me("W",be),Me("WW",be,kt),sr(["w","ww","W","WW"],function(C,R,W,st){R[st.substr(0,1)]=at(C)}),St("d",0,"do","day"),St("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),St("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),St("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),St("e",0,0,"weekday"),St("E",0,0,"isoWeekday"),jt("day","d"),jt("weekday","e"),jt("isoWeekday","E"),le("day",11),le("weekday",11),le("isoWeekday",11),Me("d",be),Me("e",be),Me("E",be),Me("dd",function(C,R){return R.weekdaysMinRegex(C)}),Me("ddd",function(C,R){return R.weekdaysShortRegex(C)}),Me("dddd",function(C,R){return R.weekdaysRegex(C)}),sr(["dd","ddd","dddd"],function(C,R,W,st){var Vt=W._locale.weekdaysParse(C,st,W._strict);Vt!=null?R.d=Vt:Z(W).invalidWeekday=C}),sr(["d","e","E"],function(C,R,W,st){R[st]=at(C)});var Bn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),io="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ta="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vr=Ue,Gr=Ue,Fr=Ue;function Er(){function C(Qe,xn){return xn.length-Qe.length}var R,W,st,Vt,ye,Te=[],Oe=[],Ie=[],He=[];for(R=0;R<7;R++)W=X([2e3,1]).day(R),st=this.weekdaysMin(W,""),Vt=this.weekdaysShort(W,""),ye=this.weekdays(W,""),Te.push(st),Oe.push(Vt),Ie.push(ye),He.push(st),He.push(Vt),He.push(ye);for(Te.sort(C),Oe.sort(C),Ie.sort(C),He.sort(C),R=0;R<7;R++)Oe[R]=gn(Oe[R]),Ie[R]=gn(Ie[R]),He[R]=gn(He[R]);this._weekdaysRegex=new RegExp("^("+He.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ie.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Oe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Te.join("|")+")","i")}function Xr(){return this.hours()%12||12}function Ur(C,R){St(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}function qr(C,R){return R._meridiemParse}St("H",["HH",2],0,"hour"),St("h",["hh",2],0,Xr),St("k",["kk",2],0,function(){return this.hours()||24}),St("hmm",0,0,function(){return""+Xr.apply(this)+oe(this.minutes(),2)}),St("hmmss",0,0,function(){return""+Xr.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),St("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),St("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)}),Ur("a",!0),Ur("A",!1),jt("hour","h"),le("hour",13),Me("a",qr),Me("A",qr),Me("H",be),Me("h",be),Me("k",be),Me("HH",be,kt),Me("hh",be,kt),Me("kk",be,kt),Me("hmm",Ae),Me("hmmss",cn),Me("Hmm",Ae),Me("Hmmss",cn),kn(["H","HH"],3),kn(["k","kk"],function(C,R,W){var st=at(C);R[3]=st===24?0:st}),kn(["a","A"],function(C,R,W){W._isPm=W._locale.isPM(C),W._meridiem=C}),kn(["h","hh"],function(C,R,W){R[3]=at(C),Z(W).bigHour=!0}),kn("hmm",function(C,R,W){var st=C.length-2;R[3]=at(C.substr(0,st)),R[4]=at(C.substr(st)),Z(W).bigHour=!0}),kn("hmmss",function(C,R,W){var st=C.length-4,Vt=C.length-2;R[3]=at(C.substr(0,st)),R[4]=at(C.substr(st,2)),R[5]=at(C.substr(Vt)),Z(W).bigHour=!0}),kn("Hmm",function(C,R,W){var st=C.length-2;R[3]=at(C.substr(0,st)),R[4]=at(C.substr(st))}),kn("Hmmss",function(C,R,W){var st=C.length-4,Vt=C.length-2;R[3]=at(C.substr(0,st)),R[4]=at(C.substr(st,2)),R[5]=at(C.substr(Vt))});var Dr,li=bn("Hours",!0),hi={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:Sn,monthsShort:Fn,week:{dow:0,doy:6},weekdays:Bn,weekdaysMin:Ta,weekdaysShort:io,meridiemParse:/[ap]\.?m?\.?/i},cr={},Hr={};function ia(C){return C&&C.toLowerCase().replace("_","-")}function Lr(C){var R=null;if(!cr[C]&&S&&S.exports)try{R=Dr._abbr,f(1748)("./"+C),aa(R)}catch{}return cr[C]}function aa(C,R){var W;return C&&((W=E(R)?fi(C):ao(C,R))?Dr=W:typeof console!="undefined"&&console.warn&&console.warn("Locale "+C+" not found. Did you forget to load it?")),Dr._abbr}function ao(C,R){if(R===null)return delete cr[C],null;var W,st=hi;if(R.abbr=C,cr[C]!=null)q("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."),st=cr[C]._config;else if(R.parentLocale!=null)if(cr[R.parentLocale]!=null)st=cr[R.parentLocale]._config;else{if((W=Lr(R.parentLocale))==null)return Hr[R.parentLocale]||(Hr[R.parentLocale]=[]),Hr[R.parentLocale].push({name:C,config:R}),null;st=W._config}return cr[C]=new me(G(st,R)),Hr[C]&&Hr[C].forEach(function(Vt){ao(Vt.name,Vt.config)}),aa(C),cr[C]}function fi(C){var R;if(C&&C._locale&&C._locale._abbr&&(C=C._locale._abbr),!C)return Dr;if(!g(C)){if(R=Lr(C))return R;C=[C]}return function(W){for(var st,Vt,ye,Te,Oe=0;Oe<W.length;){for(st=(Te=ia(W[Oe]).split("-")).length,Vt=(Vt=ia(W[Oe+1]))?Vt.split("-"):null;0<st;){if(ye=Lr(Te.slice(0,st).join("-")))return ye;if(Vt&&Vt.length>=st&&nt(Te,Vt,!0)>=st-1)break;st--}Oe++}return Dr}(C)}function an(C){var R,W=C._a;return W&&Z(C).overflow===-2&&(R=W[1]<0||11<W[1]?1:W[2]<1||W[2]>Cr(W[0],W[1])?2:W[3]<0||24<W[3]||W[3]===24&&(W[4]!==0||W[5]!==0||W[6]!==0)?3:W[4]<0||59<W[4]?4:W[5]<0||59<W[5]?5:W[6]<0||999<W[6]?6:-1,Z(C)._overflowDayOfYear&&(R<0||2<R)&&(R=2),Z(C)._overflowWeeks&&R===-1&&(R=7),Z(C)._overflowWeekday&&R===-1&&(R=8),Z(C).overflow=R),C}function Jn(C,R,W){return C!=null?C:R!=null?R:W}function Cn(C){var R,W,st,Vt,ye,Te=[];if(!C._d){var Oe,Ie;for(Oe=C,Ie=new Date(x.now()),st=Oe._useUTC?[Ie.getUTCFullYear(),Ie.getUTCMonth(),Ie.getUTCDate()]:[Ie.getFullYear(),Ie.getMonth(),Ie.getDate()],C._w&&C._a[2]==null&&C._a[1]==null&&function(He){var Qe,xn,pn,hr,fr,Mr,ur,la;if((Qe=He._w).GG!=null||Qe.W!=null||Qe.E!=null)fr=1,Mr=4,xn=Jn(Qe.GG,He._a[0],ir(Dn(),1,4).year),pn=Jn(Qe.W,1),((hr=Jn(Qe.E,1))<1||7<hr)&&(la=!0);else{fr=He._locale._week.dow,Mr=He._locale._week.doy;var ps=ir(Dn(),fr,Mr);xn=Jn(Qe.gg,He._a[0],ps.year),pn=Jn(Qe.w,ps.week),Qe.d!=null?((hr=Qe.d)<0||6<hr)&&(la=!0):Qe.e!=null?(hr=Qe.e+fr,(Qe.e<0||6<Qe.e)&&(la=!0)):hr=fr}pn<1||pn>ra(xn,fr,Mr)?Z(He)._overflowWeeks=!0:la!=null?Z(He)._overflowWeekday=!0:(ur=Hn(xn,pn,hr,fr,Mr),He._a[0]=ur.year,He._dayOfYear=ur.dayOfYear)}(C),C._dayOfYear!=null&&(ye=Jn(C._a[0],st[0]),(C._dayOfYear>rn(ye)||C._dayOfYear===0)&&(Z(C)._overflowDayOfYear=!0),W=An(ye,0,C._dayOfYear),C._a[1]=W.getUTCMonth(),C._a[2]=W.getUTCDate()),R=0;R<3&&C._a[R]==null;++R)C._a[R]=Te[R]=st[R];for(;R<7;R++)C._a[R]=Te[R]=C._a[R]==null?R===2?1:0:C._a[R];C._a[3]===24&&C._a[4]===0&&C._a[5]===0&&C._a[6]===0&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?An:function(He,Qe,xn,pn,hr,fr,Mr){var ur;return He<100&&0<=He?(ur=new Date(He+400,Qe,xn,pn,hr,fr,Mr),isFinite(ur.getFullYear())&&ur.setFullYear(He)):ur=new Date(He,Qe,xn,pn,hr,fr,Mr),ur}).apply(null,Te),Vt=C._useUTC?C._d.getUTCDay():C._d.getDay(),C._tzm!=null&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&C._w.d!==void 0&&C._w.d!==Vt&&(Z(C).weekdayMismatch=!0)}}var ze=/^\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)?)?$/,$n=/^\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)?/,ii=[["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}/]],Xt=[["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/]],ki=/^\/?Date\((\-?\d+)/i;function go(C){var R,W,st,Vt,ye,Te,Oe=C._i,Ie=ze.exec(Oe)||$n.exec(Oe);if(Ie){for(Z(C).iso=!0,R=0,W=ii.length;R<W;R++)if(ii[R][1].exec(Ie[1])){Vt=ii[R][0],st=ii[R][2]!==!1;break}if(Vt==null)return void(C._isValid=!1);if(Ie[3]){for(R=0,W=Xt.length;R<W;R++)if(Xt[R][1].exec(Ie[3])){ye=(Ie[2]||" ")+Xt[R][0];break}if(ye==null)return void(C._isValid=!1)}if(!st&&ye!=null)return void(C._isValid=!1);if(Ie[4]){if(!pt.exec(Ie[4]))return void(C._isValid=!1);Te="Z"}C._f=Vt+(ye||"")+(Te||""),zo(C)}else C._isValid=!1}var Ca=/^(?:(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}))$/,Ui={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yo(C){var R,W,st,Vt=Ca.exec(C._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Vt){var ye=function(Te,Oe,Ie,He,Qe,xn){var pn=[function(hr){var fr=parseInt(hr,10);return fr<=49?2e3+fr:fr<=999?1900+fr:fr}(Te),Fn.indexOf(Oe),parseInt(Ie,10),parseInt(He,10),parseInt(Qe,10)];return xn&&pn.push(parseInt(xn,10)),pn}(Vt[4],Vt[3],Vt[2],Vt[5],Vt[6],Vt[7]);if(W=ye,st=C,(R=Vt[1])&&io.indexOf(R)!==new Date(W[0],W[1],W[2]).getDay()&&(Z(st).weekdayMismatch=!0,!(st._isValid=!1)))return;C._a=ye,C._tzm=function(Te,Oe,Ie){if(Te)return Ui[Te];if(Oe)return 0;var He=parseInt(Ie,10),Qe=He%100;return(He-Qe)/100*60+Qe}(Vt[8],Vt[9],Vt[10]),C._d=An.apply(null,C._a),C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),Z(C).rfc2822=!0}else C._isValid=!1}function zo(C){if(C._f!==x.ISO_8601)if(C._f!==x.RFC_2822){C._a=[],Z(C).empty=!0;var R,W,st,Vt,ye,Te,Oe,Ie,He=""+C._i,Qe=He.length,xn=0;for(st=mt(C._f,C._locale).match(wn)||[],R=0;R<st.length;R++)Vt=st[R],(W=(He.match(un(Vt,C))||[])[0])&&(0<(ye=He.substr(0,He.indexOf(W))).length&&Z(C).unusedInput.push(ye),He=He.slice(He.indexOf(W)+W.length),xn+=W.length),Zt[Vt]?(W?Z(C).empty=!1:Z(C).unusedTokens.push(Vt),Te=Vt,Ie=C,(Oe=W)!=null&&Y(kr,Te)&&kr[Te](Oe,Ie._a,Ie,Te)):C._strict&&!W&&Z(C).unusedTokens.push(Vt);Z(C).charsLeftOver=Qe-xn,0<He.length&&Z(C).unusedInput.push(He),C._a[3]<=12&&Z(C).bigHour===!0&&0<C._a[3]&&(Z(C).bigHour=void 0),Z(C).parsedDateParts=C._a.slice(0),Z(C).meridiem=C._meridiem,C._a[3]=function(pn,hr,fr){var Mr;return fr==null?hr:pn.meridiemHour!=null?pn.meridiemHour(hr,fr):(pn.isPM!=null&&((Mr=pn.isPM(fr))&&hr<12&&(hr+=12),Mr||hr!==12||(hr=0)),hr)}(C._locale,C._a[3],C._meridiem),Cn(C),an(C)}else Yo(C);else go(C)}function Pr(C){var R,W,st,Vt,ye=C._i,Te=C._f;return C._locale=C._locale||fi(C._l),ye===null||Te===void 0&&ye===""?Q({nullInput:!0}):(typeof ye=="string"&&(C._i=ye=C._locale.preparse(ye)),ne(ye)?new Tt(an(ye)):(I(ye)?C._d=ye:g(Te)?function(Oe){var Ie,He,Qe,xn,pn;if(Oe._f.length===0)return Z(Oe).invalidFormat=!0,Oe._d=new Date(NaN);for(xn=0;xn<Oe._f.length;xn++)pn=0,Ie=ht({},Oe),Oe._useUTC!=null&&(Ie._useUTC=Oe._useUTC),Ie._f=Oe._f[xn],zo(Ie),et(Ie)&&(pn+=Z(Ie).charsLeftOver,pn+=10*Z(Ie).unusedTokens.length,Z(Ie).score=pn,(Qe==null||pn<Qe)&&(Qe=pn,He=Ie));H(Oe,He||Ie)}(C):Te?zo(C):E(W=(R=C)._i)?R._d=new Date(x.now()):I(W)?R._d=new Date(W.valueOf()):typeof W=="string"?(st=R,(Vt=ki.exec(st._i))===null?(go(st),st._isValid===!1&&(delete st._isValid,Yo(st),st._isValid===!1&&(delete st._isValid,x.createFromInputFallback(st)))):st._d=new Date(+Vt[1])):g(W)?(R._a=O(W.slice(0),function(Oe){return parseInt(Oe,10)}),Cn(R)):k(W)?function(Oe){if(!Oe._d){var Ie=he(Oe._i);Oe._a=O([Ie.year,Ie.month,Ie.day||Ie.date,Ie.hour,Ie.minute,Ie.second,Ie.millisecond],function(He){return He&&parseInt(He,10)}),Cn(Oe)}}(R):A(W)?R._d=new Date(W):x.createFromInputFallback(R),et(C)||(C._d=null),C))}function qi(C,R,W,st,Vt){var ye,Te={};return W!==!0&&W!==!1||(st=W,W=void 0),(k(C)&&function(Oe){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Oe).length===0;var Ie;for(Ie in Oe)if(Oe.hasOwnProperty(Ie))return!1;return!0}(C)||g(C)&&C.length===0)&&(C=void 0),Te._isAMomentObject=!0,Te._useUTC=Te._isUTC=Vt,Te._l=W,Te._i=C,Te._f=R,Te._strict=st,(ye=new Tt(an(Pr(Te))))._nextDay&&(ye.add(1,"d"),ye._nextDay=void 0),ye}function Dn(C,R,W,st){return qi(C,R,W,st,!1)}x.createFromInputFallback=Lt("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(C){C._d=new Date(C._i+(C._useUTC?" UTC":""))}),x.ISO_8601=function(){},x.RFC_2822=function(){};var oa=Lt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=Dn.apply(null,arguments);return this.isValid()&&C.isValid()?C<this?this:C:Q()}),sa=Lt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=Dn.apply(null,arguments);return this.isValid()&&C.isValid()?this<C?this:C:Q()});function $r(C,R){var W,st;if(R.length===1&&g(R[0])&&(R=R[0]),!R.length)return Dn();for(W=R[0],st=1;st<R.length;++st)R[st].isValid()&&!R[st][C](W)||(W=R[st]);return W}var ar=["year","quarter","month","week","day","hour","minute","second","millisecond"];function di(C){var R=he(C),W=R.year||0,st=R.quarter||0,Vt=R.month||0,ye=R.week||R.isoWeek||0,Te=R.day||0,Oe=R.hour||0,Ie=R.minute||0,He=R.second||0,Qe=R.millisecond||0;this._isValid=function(xn){for(var pn in xn)if(Ye.call(ar,pn)===-1||xn[pn]!=null&&isNaN(xn[pn]))return!1;for(var hr=!1,fr=0;fr<ar.length;++fr)if(xn[ar[fr]]){if(hr)return!1;parseFloat(xn[ar[fr]])!==at(xn[ar[fr]])&&(hr=!0)}return!0}(R),this._milliseconds=+Qe+1e3*He+6e4*Ie+1e3*Oe*60*60,this._days=+Te+7*ye,this._months=+Vt+3*st+12*W,this._data={},this._locale=fi(),this._bubble()}function Zr(C){return C instanceof di}function Br(C){return C<0?-1*Math.round(-1*C):Math.round(C)}function Kr(C,R){St(C,0,0,function(){var W=this.utcOffset(),st="+";return W<0&&(W=-W,st="-"),st+oe(~~(W/60),2)+R+oe(~~W%60,2)})}Kr("Z",":"),Kr("ZZ",""),Me("Z",$e),Me("ZZ",$e),kn(["Z","ZZ"],function(C,R,W){W._useUTC=!0,W._tzm=mr($e,C)});var Li=/([\+\-]|\d\d)/gi;function mr(C,R){var W=(R||"").match(C);if(W===null)return null;var st=((W[W.length-1]||[])+"").match(Li)||["-",0,0],Vt=60*st[1]+at(st[2]);return Vt===0?0:st[0]==="+"?Vt:-Vt}function Hi(C,R){var W,st;return R._isUTC?(W=R.clone(),st=(ne(C)||I(C)?C.valueOf():Dn(C).valueOf())-W.valueOf(),W._d.setTime(W._d.valueOf()+st),x.updateOffset(W,!1),W):Dn(C).local()}function Bi(C){return 15*-Math.round(C._d.getTimezoneOffset()/15)}function Ti(){return!!this.isValid()&&this._isUTC&&this._offset===0}x.updateOffset=function(){};var Ya=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(C,R){var W,st,Vt,ye=C,Te=null;return Zr(C)?ye={ms:C._milliseconds,d:C._days,M:C._months}:A(C)?(ye={},R?ye[R]=C:ye.milliseconds=C):(Te=Ya.exec(C))?(W=Te[1]==="-"?-1:1,ye={y:0,d:at(Te[2])*W,h:at(Te[3])*W,m:at(Te[4])*W,s:at(Te[5])*W,ms:at(Br(1e3*Te[6]))*W}):(Te=Jr.exec(C))?(W=Te[1]==="-"?-1:1,ye={y:Ve(Te[2],W),M:Ve(Te[3],W),w:Ve(Te[4],W),d:Ve(Te[5],W),h:Ve(Te[6],W),m:Ve(Te[7],W),s:Ve(Te[8],W)}):ye==null?ye={}:typeof ye=="object"&&("from"in ye||"to"in ye)&&(Vt=function(Oe,Ie){var He;return Oe.isValid()&&Ie.isValid()?(Ie=Hi(Ie,Oe),Oe.isBefore(Ie)?He=qe(Oe,Ie):((He=qe(Ie,Oe)).milliseconds=-He.milliseconds,He.months=-He.months),He):{milliseconds:0,months:0}}(Dn(ye.from),Dn(ye.to)),(ye={}).ms=Vt.milliseconds,ye.M=Vt.months),st=new di(ye),Zr(C)&&Y(C,"_locale")&&(st._locale=C._locale),st}function Ve(C,R){var W=C&&parseFloat(C.replace(",","."));return(isNaN(W)?0:W)*R}function qe(C,R){var W={};return W.months=R.month()-C.month()+12*(R.year()-C.year()),C.clone().add(W.months,"M").isAfter(R)&&--W.months,W.milliseconds=+R-+C.clone().add(W.months,"M"),W}function lr(C,R){return function(W,st){var Vt;return st===null||isNaN(+st)||(q(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."),Vt=W,W=st,st=Vt),Sr(this,Yt(W=typeof W=="string"?+W:W,st),C),this}}function Sr(C,R,W,st){var Vt=R._milliseconds,ye=Br(R._days),Te=Br(R._months);C.isValid()&&(st=st==null||st,Te&&qn(C,zn(C,"Month")+Te*W),ye&&Un(C,"Date",zn(C,"Date")+ye*W),Vt&&C._d.setTime(C._d.valueOf()+Vt*W),st&&x.updateOffset(C,ye||Te))}Yt.fn=di.prototype,Yt.invalid=function(){return Yt(NaN)};var ai=lr(1,"add"),pi=lr(-1,"subtract");function Ea(C,R){var W=12*(R.year()-C.year())+(R.month()-C.month()),st=C.clone().add(W,"months");return-(W+(R-st<0?(R-st)/(st-C.clone().add(W-1,"months")):(R-st)/(C.clone().add(W+1,"months")-st)))||0}function Wr(C){var R;return C===void 0?this._locale._abbr:((R=fi(C))!=null&&(this._locale=R),this)}x.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",x.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Oi=Lt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(C){return C===void 0?this.localeData():this.locale(C)});function Sa(){return this._locale}var Hs=126227808e5;function oo(C,R){return(C%R+R)%R}function wc(C,R,W){return C<100&&0<=C?new Date(C+400,R,W)-Hs:new Date(C,R,W).valueOf()}function Ii(C,R,W){return C<100&&0<=C?Date.UTC(C+400,R,W)-Hs:Date.UTC(C,R,W)}function Qr(C,R){St(0,[C,C.length],0,R)}function lu(C,R,W,st,Vt){var ye;return C==null?ir(this,st,Vt).year:((ye=ra(C,st,Vt))<R&&(R=ye),function(Te,Oe,Ie,He,Qe){var xn=Hn(Te,Oe,Ie,He,Qe),pn=An(xn.year,0,xn.dayOfYear);return this.year(pn.getUTCFullYear()),this.month(pn.getUTCMonth()),this.date(pn.getUTCDate()),this}.call(this,C,R,W,st,Vt))}St(0,["gg",2],0,function(){return this.weekYear()%100}),St(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Qr("gggg","weekYear"),Qr("ggggg","weekYear"),Qr("GGGG","isoWeekYear"),Qr("GGGGG","isoWeekYear"),jt("weekYear","gg"),jt("isoWeekYear","GG"),le("weekYear",1),le("isoWeekYear",1),Me("G",Ke),Me("g",Ke),Me("GG",be,kt),Me("gg",be,kt),Me("GGGG",Be,se),Me("gggg",Be,se),Me("GGGGG",Le,Se),Me("ggggg",Le,Se),sr(["gggg","ggggg","GGGG","GGGGG"],function(C,R,W,st){R[st.substr(0,2)]=at(C)}),sr(["gg","GG"],function(C,R,W,st){R[st]=x.parseTwoDigitYear(C)}),St("Q",0,"Qo","quarter"),jt("quarter","Q"),le("quarter",7),Me("Q",Ht),kn("Q",function(C,R){R[1]=3*(at(C)-1)}),St("D",["DD",2],"Do","date"),jt("date","D"),le("date",9),Me("D",be),Me("DD",be,kt),Me("Do",function(C,R){return C?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),kn(["D","DD"],2),kn("Do",function(C,R){R[2]=at(C.match(be)[0])});var hu=bn("Date",!0);St("DDD",["DDDD",3],"DDDo","dayOfYear"),jt("dayOfYear","DDD"),le("dayOfYear",4),Me("DDD",De),Me("DDDD",It),kn(["DDD","DDDD"],function(C,R,W){W._dayOfYear=at(C)}),St("m",["mm",2],0,"minute"),jt("minute","m"),le("minute",14),Me("m",be),Me("mm",be,kt),kn(["m","mm"],4);var fu=bn("Minutes",!1);St("s",["ss",2],0,"second"),jt("second","s"),le("second",15),Me("s",be),Me("ss",be,kt),kn(["s","ss"],5);var za,du=bn("Seconds",!1);for(St("S",0,0,function(){return~~(this.millisecond()/100)}),St(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),St(0,["SSS",3],0,"millisecond"),St(0,["SSSS",4],0,function(){return 10*this.millisecond()}),St(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),St(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),St(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),St(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),St(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),jt("millisecond","ms"),le("millisecond",16),Me("S",De,Ht),Me("SS",De,kt),Me("SSS",De,It),za="SSSS";za.length<=9;za+="S")Me(za,Ze);function pu(C,R){R[6]=at(1e3*("0."+C))}for(za="S";za.length<=9;za+="S")kn(za,pu);var Ua=bn("Milliseconds",!1);St("z",0,0,"zoneAbbr"),St("zz",0,0,"zoneName");var je=Tt.prototype;function jl(C){return C}je.add=ai,je.calendar=function(C,R){var W=C||Dn(),st=Hi(W,this).startOf("day"),Vt=x.calendarFormat(this,st)||"sameElse",ye=R&&(Ut(R[Vt])?R[Vt].call(this,W):R[Vt]);return this.format(ye||this.localeData().calendar(Vt,this,Dn(W)))},je.clone=function(){return new Tt(this)},je.diff=function(C,R,W){var st,Vt,ye;if(!this.isValid())return NaN;if(!(st=Hi(C,this)).isValid())return NaN;switch(Vt=6e4*(st.utcOffset()-this.utcOffset()),R=ie(R)){case"year":ye=Ea(this,st)/12;break;case"month":ye=Ea(this,st);break;case"quarter":ye=Ea(this,st)/3;break;case"second":ye=(this-st)/1e3;break;case"minute":ye=(this-st)/6e4;break;case"hour":ye=(this-st)/36e5;break;case"day":ye=(this-st-Vt)/864e5;break;case"week":ye=(this-st-Vt)/6048e5;break;default:ye=this-st}return W?ye:bt(ye)},je.endOf=function(C){var R;if((C=ie(C))===void 0||C==="millisecond"||!this.isValid())return this;var W=this._isUTC?Ii:wc;switch(C){case"year":R=W(this.year()+1,0,1)-1;break;case"quarter":R=W(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=W(this.year(),this.month()+1,1)-1;break;case"week":R=W(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=W(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=W(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=36e5-oo(R+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":R=this._d.valueOf(),R+=6e4-oo(R,6e4)-1;break;case"second":R=this._d.valueOf(),R+=1e3-oo(R,1e3)-1}return this._d.setTime(R),x.updateOffset(this,!0),this},je.format=function(C){C||(C=this.isUtc()?x.defaultFormatUtc:x.defaultFormat);var R=Qt(this,C);return this.localeData().postformat(R)},je.from=function(C,R){return this.isValid()&&(ne(C)&&C.isValid()||Dn(C).isValid())?Yt({to:this,from:C}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},je.fromNow=function(C){return this.from(Dn(),C)},je.to=function(C,R){return this.isValid()&&(ne(C)&&C.isValid()||Dn(C).isValid())?Yt({from:this,to:C}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},je.toNow=function(C){return this.to(Dn(),C)},je.get=function(C){return Ut(this[C=ie(C)])?this[C]():this},je.invalidAt=function(){return Z(this).overflow},je.isAfter=function(C,R){var W=ne(C)?C:Dn(C);return!(!this.isValid()||!W.isValid())&&((R=ie(R)||"millisecond")==="millisecond"?this.valueOf()>W.valueOf():W.valueOf()<this.clone().startOf(R).valueOf())},je.isBefore=function(C,R){var W=ne(C)?C:Dn(C);return!(!this.isValid()||!W.isValid())&&((R=ie(R)||"millisecond")==="millisecond"?this.valueOf()<W.valueOf():this.clone().endOf(R).valueOf()<W.valueOf())},je.isBetween=function(C,R,W,st){var Vt=ne(C)?C:Dn(C),ye=ne(R)?R:Dn(R);return!!(this.isValid()&&Vt.isValid()&&ye.isValid())&&((st=st||"()")[0]==="("?this.isAfter(Vt,W):!this.isBefore(Vt,W))&&(st[1]===")"?this.isBefore(ye,W):!this.isAfter(ye,W))},je.isSame=function(C,R){var W,st=ne(C)?C:Dn(C);return!(!this.isValid()||!st.isValid())&&((R=ie(R)||"millisecond")==="millisecond"?this.valueOf()===st.valueOf():(W=st.valueOf(),this.clone().startOf(R).valueOf()<=W&&W<=this.clone().endOf(R).valueOf()))},je.isSameOrAfter=function(C,R){return this.isSame(C,R)||this.isAfter(C,R)},je.isSameOrBefore=function(C,R){return this.isSame(C,R)||this.isBefore(C,R)},je.isValid=function(){return et(this)},je.lang=Oi,je.locale=Wr,je.localeData=Sa,je.max=sa,je.min=oa,je.parsingFlags=function(){return H({},Z(this))},je.set=function(C,R){if(typeof C=="object")for(var W=function(Vt){var ye=[];for(var Te in Vt)ye.push({unit:Te,priority:pe[Te]});return ye.sort(function(Oe,Ie){return Oe.priority-Ie.priority}),ye}(C=he(C)),st=0;st<W.length;st++)this[W[st].unit](C[W[st].unit]);else if(Ut(this[C=ie(C)]))return this[C](R);return this},je.startOf=function(C){var R;if((C=ie(C))===void 0||C==="millisecond"||!this.isValid())return this;var W=this._isUTC?Ii:wc;switch(C){case"year":R=W(this.year(),0,1);break;case"quarter":R=W(this.year(),this.month()-this.month()%3,1);break;case"month":R=W(this.year(),this.month(),1);break;case"week":R=W(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=W(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=W(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=oo(R+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":R=this._d.valueOf(),R-=oo(R,6e4);break;case"second":R=this._d.valueOf(),R-=oo(R,1e3)}return this._d.setTime(R),x.updateOffset(this,!0),this},je.subtract=pi,je.toArray=function(){var C=this;return[C.year(),C.month(),C.date(),C.hour(),C.minute(),C.second(),C.millisecond()]},je.toObject=function(){var C=this;return{years:C.year(),months:C.month(),date:C.date(),hours:C.hours(),minutes:C.minutes(),seconds:C.seconds(),milliseconds:C.milliseconds()}},je.toDate=function(){return new Date(this.valueOf())},je.toISOString=function(C){if(!this.isValid())return null;var R=C!==!0,W=R?this.clone().utc():this;return W.year()<0||9999<W.year()?Qt(W,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ut(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Qt(W,"Z")):Qt(W,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},je.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var C="moment",R="";this.isLocal()||(C=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z");var W="["+C+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Vt=R+'[")]';return this.format(W+st+"-MM-DD[T]HH:mm:ss.SSS"+Vt)},je.toJSON=function(){return this.isValid()?this.toISOString():null},je.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},je.unix=function(){return Math.floor(this.valueOf()/1e3)},je.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},je.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},je.year=mn,je.isLeapYear=function(){return ln(this.year())},je.weekYear=function(C){return lu.call(this,C,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},je.isoWeekYear=function(C){return lu.call(this,C,this.isoWeek(),this.isoWeekday(),1,4)},je.quarter=je.quarters=function(C){return C==null?Math.ceil((this.month()+1)/3):this.month(3*(C-1)+this.month()%3)},je.month=Vn,je.daysInMonth=function(){return Cr(this.year(),this.month())},je.week=je.weeks=function(C){var R=this.localeData().week(this);return C==null?R:this.add(7*(C-R),"d")},je.isoWeek=je.isoWeeks=function(C){var R=ir(this,1,4).week;return C==null?R:this.add(7*(C-R),"d")},je.weeksInYear=function(){var C=this.localeData()._week;return ra(this.year(),C.dow,C.doy)},je.isoWeeksInYear=function(){return ra(this.year(),1,4)},je.date=hu,je.day=je.days=function(C){if(!this.isValid())return C!=null?this:NaN;var R,W,st=this._isUTC?this._d.getUTCDay():this._d.getDay();return C!=null?(R=C,W=this.localeData(),C=typeof R!="string"?R:isNaN(R)?typeof(R=W.weekdaysParse(R))=="number"?R:null:parseInt(R,10),this.add(C-st,"d")):st},je.weekday=function(C){if(!this.isValid())return C!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return C==null?R:this.add(C-R,"d")},je.isoWeekday=function(C){if(!this.isValid())return C!=null?this:NaN;if(C==null)return this.day()||7;var R,W,st=(R=C,W=this.localeData(),typeof R=="string"?W.weekdaysParse(R)%7||7:isNaN(R)?null:R);return this.day(this.day()%7?st:st-7)},je.dayOfYear=function(C){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return C==null?R:this.add(C-R,"d")},je.hour=je.hours=li,je.minute=je.minutes=fu,je.second=je.seconds=du,je.millisecond=je.milliseconds=Ua,je.utcOffset=function(C,R,W){var st,Vt=this._offset||0;if(!this.isValid())return C!=null?this:NaN;if(C==null)return this._isUTC?Vt:Bi(this);if(typeof C=="string"){if((C=mr($e,C))===null)return this}else Math.abs(C)<16&&!W&&(C*=60);return!this._isUTC&&R&&(st=Bi(this)),this._offset=C,this._isUTC=!0,st!=null&&this.add(st,"m"),Vt!==C&&(!R||this._changeInProgress?Sr(this,Yt(C-Vt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,x.updateOffset(this,!0),this._changeInProgress=null)),this},je.utc=function(C){return this.utcOffset(0,C)},je.local=function(C){return this._isUTC&&(this.utcOffset(0,C),this._isUTC=!1,C&&this.subtract(Bi(this),"m")),this},je.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var C=mr(Je,this._i);C!=null?this.utcOffset(C):this.utcOffset(0,!0)}return this},je.hasAlignedHourOffset=function(C){return!!this.isValid()&&(C=C?Dn(C).utcOffset():0,(this.utcOffset()-C)%60==0)},je.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},je.isLocal=function(){return!!this.isValid()&&!this._isUTC},je.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},je.isUtc=Ti,je.isUTC=Ti,je.zoneAbbr=function(){return this._isUTC?"UTC":""},je.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},je.dates=Lt("dates accessor is deprecated. Use date instead.",hu),je.months=Lt("months accessor is deprecated. Use month instead",Vn),je.years=Lt("years accessor is deprecated. Use year instead",mn),je.zone=Lt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(C,R){return C!=null?(typeof C!="string"&&(C=-C),this.utcOffset(C,R),this):-this.utcOffset()}),je.isDSTShifted=Lt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!E(this._isDSTShifted))return this._isDSTShifted;var C={};if(ht(C,this),(C=Pr(C))._a){var R=C._isUTC?X(C._a):Dn(C._a);this._isDSTShifted=this.isValid()&&0<nt(C._a,R.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Ar=me.prototype;function kc(C,R,W,st){var Vt=fi(),ye=X().set(st,R);return Vt[W](ye,C)}function Tc(C,R,W){if(A(C)&&(R=C,C=void 0),C=C||"",R!=null)return kc(C,R,W,"month");var st,Vt=[];for(st=0;st<12;st++)Vt[st]=kc(C,st,W,"month");return Vt}function gu(C,R,W,st){typeof C=="boolean"?A(R)&&(W=R,R=void 0):(R=C,C=!1,A(W=R)&&(W=R,R=void 0)),R=R||"";var Vt,ye=fi(),Te=C?ye._week.dow:0;if(W!=null)return kc(R,(W+Te)%7,st,"day");var Oe=[];for(Vt=0;Vt<7;Vt++)Oe[Vt]=kc(R,(Vt+Te)%7,st,"day");return Oe}Ar.calendar=function(C,R,W){var st=this._calendar[C]||this._calendar.sameElse;return Ut(st)?st.call(R,W):st},Ar.longDateFormat=function(C){var R=this._longDateFormat[C],W=this._longDateFormat[C.toUpperCase()];return R||!W?R:(this._longDateFormat[C]=W.replace(/MMMM|MM|DD|dddd/g,function(st){return st.slice(1)}),this._longDateFormat[C])},Ar.invalidDate=function(){return this._invalidDate},Ar.ordinal=function(C){return this._ordinal.replace("%d",C)},Ar.preparse=jl,Ar.postformat=jl,Ar.relativeTime=function(C,R,W,st){var Vt=this._relativeTime[W];return Ut(Vt)?Vt(C,R,W,st):Vt.replace(/%d/i,C)},Ar.pastFuture=function(C,R){var W=this._relativeTime[0<C?"future":"past"];return Ut(W)?W(R):W.replace(/%s/i,R)},Ar.set=function(C){var R,W;for(W in C)Ut(R=C[W])?this[W]=R:this["_"+W]=R;this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ar.months=function(C,R){return C?g(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||Ln).test(R)?"format":"standalone"][C.month()]:g(this._months)?this._months:this._months.standalone},Ar.monthsShort=function(C,R){return C?g(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[Ln.test(R)?"format":"standalone"][C.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ar.monthsParse=function(C,R,W){var st,Vt,ye;if(this._monthsParseExact)return function(Te,Oe,Ie){var He,Qe,xn,pn=Te.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],He=0;He<12;++He)xn=X([2e3,He]),this._shortMonthsParse[He]=this.monthsShort(xn,"").toLocaleLowerCase(),this._longMonthsParse[He]=this.months(xn,"").toLocaleLowerCase();return Ie?Oe==="MMM"?(Qe=Ye.call(this._shortMonthsParse,pn))!==-1?Qe:null:(Qe=Ye.call(this._longMonthsParse,pn))!==-1?Qe:null:Oe==="MMM"?(Qe=Ye.call(this._shortMonthsParse,pn))!==-1||(Qe=Ye.call(this._longMonthsParse,pn))!==-1?Qe:null:(Qe=Ye.call(this._longMonthsParse,pn))!==-1||(Qe=Ye.call(this._shortMonthsParse,pn))!==-1?Qe:null}.call(this,C,R,W);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),st=0;st<12;st++)if(Vt=X([2e3,st]),W&&!this._longMonthsParse[st]&&(this._longMonthsParse[st]=new RegExp("^"+this.months(Vt,"").replace(".","")+"$","i"),this._shortMonthsParse[st]=new RegExp("^"+this.monthsShort(Vt,"").replace(".","")+"$","i")),W||this._monthsParse[st]||(ye="^"+this.months(Vt,"")+"|^"+this.monthsShort(Vt,""),this._monthsParse[st]=new RegExp(ye.replace(".",""),"i")),W&&R==="MMMM"&&this._longMonthsParse[st].test(C)||W&&R==="MMM"&&this._shortMonthsParse[st].test(C)||!W&&this._monthsParse[st].test(C))return st},Ar.monthsRegex=function(C){return this._monthsParseExact?(Y(this,"_monthsRegex")||In.call(this),C?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=Tn),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Ar.monthsShortRegex=function(C){return this._monthsParseExact?(Y(this,"_monthsRegex")||In.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Xn),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Ar.week=function(C){return ir(C,this._week.dow,this._week.doy).week},Ar.firstDayOfYear=function(){return this._week.doy},Ar.firstDayOfWeek=function(){return this._week.dow},Ar.weekdays=function(C,R){var W=g(this._weekdays)?this._weekdays:this._weekdays[C&&C!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return C===!0?gr(W,this._week.dow):C?W[C.day()]:W},Ar.weekdaysMin=function(C){return C===!0?gr(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Ar.weekdaysShort=function(C){return C===!0?gr(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Ar.weekdaysParse=function(C,R,W){var st,Vt,ye;if(this._weekdaysParseExact)return function(Te,Oe,Ie){var He,Qe,xn,pn=Te.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],He=0;He<7;++He)xn=X([2e3,1]).day(He),this._minWeekdaysParse[He]=this.weekdaysMin(xn,"").toLocaleLowerCase(),this._shortWeekdaysParse[He]=this.weekdaysShort(xn,"").toLocaleLowerCase(),this._weekdaysParse[He]=this.weekdays(xn,"").toLocaleLowerCase();return Ie?Oe==="dddd"?(Qe=Ye.call(this._weekdaysParse,pn))!==-1?Qe:null:Oe==="ddd"?(Qe=Ye.call(this._shortWeekdaysParse,pn))!==-1?Qe:null:(Qe=Ye.call(this._minWeekdaysParse,pn))!==-1?Qe:null:Oe==="dddd"?(Qe=Ye.call(this._weekdaysParse,pn))!==-1||(Qe=Ye.call(this._shortWeekdaysParse,pn))!==-1||(Qe=Ye.call(this._minWeekdaysParse,pn))!==-1?Qe:null:Oe==="ddd"?(Qe=Ye.call(this._shortWeekdaysParse,pn))!==-1||(Qe=Ye.call(this._weekdaysParse,pn))!==-1||(Qe=Ye.call(this._minWeekdaysParse,pn))!==-1?Qe:null:(Qe=Ye.call(this._minWeekdaysParse,pn))!==-1||(Qe=Ye.call(this._weekdaysParse,pn))!==-1||(Qe=Ye.call(this._shortWeekdaysParse,pn))!==-1?Qe:null}.call(this,C,R,W);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++)if(Vt=X([2e3,1]).day(st),W&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(Vt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(Vt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(Vt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(ye="^"+this.weekdays(Vt,"")+"|^"+this.weekdaysShort(Vt,"")+"|^"+this.weekdaysMin(Vt,""),this._weekdaysParse[st]=new RegExp(ye.replace(".",""),"i")),W&&R==="dddd"&&this._fullWeekdaysParse[st].test(C)||W&&R==="ddd"&&this._shortWeekdaysParse[st].test(C)||W&&R==="dd"&&this._minWeekdaysParse[st].test(C)||!W&&this._weekdaysParse[st].test(C))return st},Ar.weekdaysRegex=function(C){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Er.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=Vr),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Ar.weekdaysShortRegex=function(C){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Er.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gr),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ar.weekdaysMinRegex=function(C){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Er.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fr),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ar.isPM=function(C){return(C+"").toLowerCase().charAt(0)==="p"},Ar.meridiem=function(C,R,W){return 11<C?W?"pm":"PM":W?"am":"AM"},aa("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var R=C%10;return C+(at(C%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th")}}),x.lang=Lt("moment.lang is deprecated. Use moment.locale instead.",aa),x.langData=Lt("moment.langData is deprecated. Use moment.localeData instead.",fi);var Aa=Math.abs;function gi(C,R,W,st){var Vt=Yt(R,W);return C._milliseconds+=st*Vt._milliseconds,C._days+=st*Vt._days,C._months+=st*Vt._months,C._bubble()}function $s(C){return C<0?Math.floor(C):Math.ceil(C)}function Yl(C){return 4800*C/146097}function yu(C){return 146097*C/4800}function yo(C){return function(){return this.as(C)}}var zl=yo("ms"),Pf=yo("s"),Nd=yo("m"),jf=yo("h"),Yf=yo("d"),ca=yo("w"),zf=yo("M"),Ul=yo("Q"),ql=yo("y");function mo(C){return function(){return this.isValid()?this._data[C]:NaN}}var Cc=mo("milliseconds"),qa=mo("seconds"),Ec=mo("minutes"),ua=mo("hours"),ds=mo("days"),mu=mo("months"),vo=mo("years"),Ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,M:11},Ha=Math.abs;function Ma(C){return(0<C)-(C<0)||+C}function $i(){if(!this.isValid())return this.localeData().invalidDate();var C,R,W=Ha(this._milliseconds)/1e3,st=Ha(this._days),Vt=Ha(this._months);R=bt((C=bt(W/60))/60),W%=60,C%=60;var ye=bt(Vt/12),Te=Vt%=12,Oe=st,Ie=R,He=C,Qe=W?W.toFixed(3).replace(/\.?0+$/,""):"",xn=this.asSeconds();if(!xn)return"P0D";var pn=xn<0?"-":"",hr=Ma(this._months)!==Ma(xn)?"-":"",fr=Ma(this._days)!==Ma(xn)?"-":"",Mr=Ma(this._milliseconds)!==Ma(xn)?"-":"";return pn+"P"+(ye?hr+ye+"Y":"")+(Te?hr+Te+"M":"")+(Oe?fr+Oe+"D":"")+(Ie||He||Qe?"T":"")+(Ie?Mr+Ie+"H":"")+(He?Mr+He+"M":"")+(Qe?Mr+Qe+"S":"")}var Gn=di.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var C=this._data;return this._milliseconds=Aa(this._milliseconds),this._days=Aa(this._days),this._months=Aa(this._months),C.milliseconds=Aa(C.milliseconds),C.seconds=Aa(C.seconds),C.minutes=Aa(C.minutes),C.hours=Aa(C.hours),C.months=Aa(C.months),C.years=Aa(C.years),this},Gn.add=function(C,R){return gi(this,C,R,1)},Gn.subtract=function(C,R){return gi(this,C,R,-1)},Gn.as=function(C){if(!this.isValid())return NaN;var R,W,st=this._milliseconds;if((C=ie(C))==="month"||C==="quarter"||C==="year")switch(R=this._days+st/864e5,W=this._months+Yl(R),C){case"month":return W;case"quarter":return W/3;case"year":return W/12}else switch(R=this._days+Math.round(yu(this._months)),C){case"week":return R/7+st/6048e5;case"day":return R+st/864e5;case"hour":return 24*R+st/36e5;case"minute":return 1440*R+st/6e4;case"second":return 86400*R+st/1e3;case"millisecond":return Math.floor(864e5*R)+st;default:throw new Error("Unknown unit "+C)}},Gn.asMilliseconds=zl,Gn.asSeconds=Pf,Gn.asMinutes=Nd,Gn.asHours=jf,Gn.asDays=Yf,Gn.asWeeks=ca,Gn.asMonths=zf,Gn.asQuarters=Ul,Gn.asYears=ql,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*at(this._months/12):NaN},Gn._bubble=function(){var C,R,W,st,Vt,ye=this._milliseconds,Te=this._days,Oe=this._months,Ie=this._data;return 0<=ye&&0<=Te&&0<=Oe||ye<=0&&Te<=0&&Oe<=0||(ye+=864e5*$s(yu(Oe)+Te),Oe=Te=0),Ie.milliseconds=ye%1e3,C=bt(ye/1e3),Ie.seconds=C%60,R=bt(C/60),Ie.minutes=R%60,W=bt(R/60),Ie.hours=W%24,Oe+=Vt=bt(Yl(Te+=bt(W/24))),Te-=$s(yu(Vt)),st=bt(Oe/12),Oe%=12,Ie.days=Te,Ie.months=Oe,Ie.years=st,this},Gn.clone=function(){return Yt(this)},Gn.get=function(C){return C=ie(C),this.isValid()?this[C+"s"]():NaN},Gn.milliseconds=Cc,Gn.seconds=qa,Gn.minutes=Ec,Gn.hours=ua,Gn.days=ds,Gn.weeks=function(){return bt(this.days()/7)},Gn.months=mu,Gn.years=vo,Gn.humanize=function(C){if(!this.isValid())return this.localeData().invalidDate();var R,W,st,Vt,ye,Te,Oe,Ie,He,Qe,xn=this.localeData(),pn=(R=!C,W=xn,st=Yt(this).abs(),Vt=Ri(st.as("s")),ye=Ri(st.as("m")),Te=Ri(st.as("h")),Oe=Ri(st.as("d")),Ie=Ri(st.as("M")),He=Ri(st.as("y")),(Qe=Vt<=oi.ss&&["s",Vt]||Vt<oi.s&&["ss",Vt]||ye<=1&&["m"]||ye<oi.m&&["mm",ye]||Te<=1&&["h"]||Te<oi.h&&["hh",Te]||Oe<=1&&["d"]||Oe<oi.d&&["dd",Oe]||Ie<=1&&["M"]||Ie<oi.M&&["MM",Ie]||He<=1&&["y"]||["yy",He])[2]=R,Qe[3]=0<+this,Qe[4]=W,function(hr,fr,Mr,ur,la){return la.relativeTime(fr||1,!!Mr,hr,ur)}.apply(null,Qe));return C&&(pn=xn.pastFuture(+this,pn)),xn.postformat(pn)},Gn.toISOString=$i,Gn.toString=$i,Gn.toJSON=$i,Gn.locale=Wr,Gn.localeData=Sa,Gn.toIsoString=Lt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$i),Gn.lang=Oi,St("X",0,0,"unix"),St("x",0,0,"valueOf"),Me("x",Ke),Me("X",/[+-]?\d+(\.\d{1,3})?/),kn("X",function(C,R,W){W._d=new Date(1e3*parseFloat(C,10))}),kn("x",function(C,R,W){W._d=new Date(at(C))}),x.version="2.24.0",m=Dn,x.fn=je,x.min=function(){return $r("isBefore",[].slice.call(arguments,0))},x.max=function(){return $r("isAfter",[].slice.call(arguments,0))},x.now=function(){return Date.now?Date.now():+new Date},x.utc=X,x.unix=function(C){return Dn(1e3*C)},x.months=function(C,R){return Tc(C,R,"months")},x.isDate=I,x.locale=aa,x.invalid=Q,x.duration=Yt,x.isMoment=ne,x.weekdays=function(C,R,W){return gu(C,R,W,"weekdays")},x.parseZone=function(){return Dn.apply(null,arguments).parseZone()},x.localeData=fi,x.isDuration=Zr,x.monthsShort=function(C,R){return Tc(C,R,"monthsShort")},x.weekdaysMin=function(C,R,W){return gu(C,R,W,"weekdaysMin")},x.defineLocale=ao,x.updateLocale=function(C,R){if(R!=null){var W,st,Vt=hi;(st=Lr(C))!=null&&(Vt=st._config),(W=new me(R=G(Vt,R))).parentLocale=cr[C],cr[C]=W,aa(C)}else cr[C]!=null&&(cr[C].parentLocale!=null?cr[C]=cr[C].parentLocale:cr[C]!=null&&delete cr[C]);return cr[C]},x.locales=function(){return tt(cr)},x.weekdaysShort=function(C,R,W){return gu(C,R,W,"weekdaysShort")},x.normalizeUnits=ie,x.relativeTimeRounding=function(C){return C===void 0?Ri:typeof C=="function"&&(Ri=C,!0)},x.relativeTimeThreshold=function(C,R){return oi[C]!==void 0&&(R===void 0?oi[C]:(oi[C]=R,C==="s"&&(oi.ss=R-1),!0))},x.calendarFormat=function(C,R){var W=C.diff(R,"days",!0);return W<-6?"sameElse":W<-1?"lastWeek":W<0?"lastDay":W<1?"sameDay":W<2?"nextDay":W<7?"nextWeek":"sameElse"},x.prototype=je,x.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"},x}()},6470:S=>{function M(h){if(typeof h!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(h))}function f(h,x){for(var g,k="",E=0,A=-1,I=0,O=0;O<=h.length;++O){if(O<h.length)g=h.charCodeAt(O);else{if(g===47)break;g=47}if(g===47){if(!(A===O-1||I===1))if(A!==O-1&&I===2){if(k.length<2||E!==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="",E=0):E=(k=k.slice(0,Y)).length-1-k.lastIndexOf("/"),A=O,I=0;continue}}else if(k.length===2||k.length===1){k="",E=0,A=O,I=0;continue}}x&&(k.length>0?k+="/..":k="..",E=2)}else k.length>0?k+="/"+h.slice(A+1,O):k=h.slice(A+1,O),E=O-A-1;A=O,I=0}else g===46&&I!==-1?++I:I=-1}return k}var m={resolve:function(){for(var h,x="",g=!1,k=arguments.length-1;k>=-1&&!g;k--){var E;k>=0?E=arguments[k]:(h===void 0&&(h=process.cwd()),E=h),M(E),E.length!==0&&(x=E+"/"+x,g=E.charCodeAt(0)===47)}return x=f(x,!g),g?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(h){if(M(h),h.length===0)return".";var x=h.charCodeAt(0)===47,g=h.charCodeAt(h.length-1)===47;return(h=f(h,!x)).length!==0||x||(h="."),h.length>0&&g&&(h+="/"),x?"/"+h:h},isAbsolute:function(h){return M(h),h.length>0&&h.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var h,x=0;x<arguments.length;++x){var g=arguments[x];M(g),g.length>0&&(h===void 0?h=g:h+="/"+g)}return h===void 0?".":m.normalize(h)},relative:function(h,x){if(M(h),M(x),h===x||(h=m.resolve(h))===(x=m.resolve(x)))return"";for(var g=1;g<h.length&&h.charCodeAt(g)===47;++g);for(var k=h.length,E=k-g,A=1;A<x.length&&x.charCodeAt(A)===47;++A);for(var I=x.length-A,O=E<I?E:I,Y=-1,H=0;H<=O;++H){if(H===O){if(I>O){if(x.charCodeAt(A+H)===47)return x.slice(A+H+1);if(H===0)return x.slice(A+H)}else E>O&&(h.charCodeAt(g+H)===47?Y=H:H===0&&(Y=0));break}var X=h.charCodeAt(g+H);if(X!==x.charCodeAt(A+H))break;X===47&&(Y=H)}var Z="";for(H=g+Y+1;H<=k;++H)H!==k&&h.charCodeAt(H)!==47||(Z.length===0?Z+="..":Z+="/..");return Z.length>0?Z+x.slice(A+Y):(A+=Y,x.charCodeAt(A)===47&&++A,x.slice(A))},_makeLong:function(h){return h},dirname:function(h){if(M(h),h.length===0)return".";for(var x=h.charCodeAt(0),g=x===47,k=-1,E=!0,A=h.length-1;A>=1;--A)if((x=h.charCodeAt(A))===47){if(!E){k=A;break}}else E=!1;return k===-1?g?"/":".":g&&k===1?"//":h.slice(0,k)},basename:function(h,x){if(x!==void 0&&typeof x!="string")throw new TypeError('"ext" argument must be a string');M(h);var g,k=0,E=-1,A=!0;if(x!==void 0&&x.length>0&&x.length<=h.length){if(x.length===h.length&&x===h)return"";var I=x.length-1,O=-1;for(g=h.length-1;g>=0;--g){var Y=h.charCodeAt(g);if(Y===47){if(!A){k=g+1;break}}else O===-1&&(A=!1,O=g+1),I>=0&&(Y===x.charCodeAt(I)?--I==-1&&(E=g):(I=-1,E=O))}return k===E?E=O:E===-1&&(E=h.length),h.slice(k,E)}for(g=h.length-1;g>=0;--g)if(h.charCodeAt(g)===47){if(!A){k=g+1;break}}else E===-1&&(A=!1,E=g+1);return E===-1?"":h.slice(k,E)},extname:function(h){M(h);for(var x=-1,g=0,k=-1,E=!0,A=0,I=h.length-1;I>=0;--I){var O=h.charCodeAt(I);if(O!==47)k===-1&&(E=!1,k=I+1),O===46?x===-1?x=I:A!==1&&(A=1):x!==-1&&(A=-1);else if(!E){g=I+1;break}}return x===-1||k===-1||A===0||A===1&&x===k-1&&x===g+1?"":h.slice(x,k)},format:function(h){if(h===null||typeof h!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof h);return function(x,g){var k=g.dir||g.root,E=g.base||(g.name||"")+(g.ext||"");return k?k===g.root?k+E:k+"/"+E:E}(0,h)},parse:function(h){M(h);var x={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return x;var g,k=h.charCodeAt(0),E=k===47;E?(x.root="/",g=1):g=0;for(var A=-1,I=0,O=-1,Y=!0,H=h.length-1,X=0;H>=g;--H)if((k=h.charCodeAt(H))!==47)O===-1&&(Y=!1,O=H+1),k===46?A===-1?A=H:X!==1&&(X=1):A!==-1&&(X=-1);else if(!Y){I=H+1;break}return A===-1||O===-1||X===0||X===1&&A===O-1&&A===I+1?O!==-1&&(x.base=x.name=I===0&&E?h.slice(1,O):h.slice(I,O)):(I===0&&E?(x.name=h.slice(1,A),x.base=h.slice(1,O)):(x.name=h.slice(I,A),x.base=h.slice(I,O)),x.ext=h.slice(A,O)),I>0?x.dir=h.slice(0,I-1):E&&(x.dir="/"),x},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,S.exports=m},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},z6={};function jo(S){var M=z6[S];if(M!==void 0)return M.exports;var f=z6[S]={id:S,loaded:!1,exports:{}};return q_[S].call(f.exports,f,f.exports,jo),f.loaded=!0,f.exports}jo.c=z6,jo.n=S=>{var M=S&&S.__esModule?()=>S.default:()=>S;return jo.d(M,{a:M}),M},jo.d=(S,M)=>{for(var f in M)jo.o(M,f)&&!jo.o(S,f)&&Object.defineProperty(S,f,{enumerable:!0,get:M[f]})},jo.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),jo.o=(S,M)=>Object.prototype.hasOwnProperty.call(S,M),jo.r=S=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},jo.nmd=S=>(S.paths=[],S.children||(S.children=[]),S);var o_=jo(jo.s=3850).Z;function H_(S){let M,f;return{c(){M=e_("div"),f=e_("div"),this.h()},l(m){M=n_(m,"DIV",{id:!0,class:!0});var h=r_(M);f=n_(h,"DIV",{id:!0,class:!0}),r_(f).forEach(F6),h.forEach(F6),this.h()},h(){fb(f,"id","container"),fb(f,"class","flex-1 overflow-auto"),fb(M,"id","view"),fb(M,"class","p-2 svelte-5ndy2s"),db(M,"error",S[2]),db(M,"outOfSync",S[3])},m(m,h){D_(m,M,h),L_(M,f),S[4](f),S[5](M)},p(m,[h]){h&4&&db(M,"error",m[2]),h&8&&db(M,"outOfSync",m[3])},i:i_,o:i_,d(m){m&&F6(M),S[4](null),S[5](null)}}}function $_(S,M,f){let m;B_(S,P6,H=>f(9,m=H));let h="",x="",g,k,E=!1,A=!1,I=!0;O_(()=>{P6.subscribe(H=>{try{if(g&&H&&(H.updateDiagram||H.autoSync)){if(H.autoSync||I_(P6,m.updateDiagram=!1,m),f(3,A=!1),I=!0,h===H.code&&x===H.mermaid)return;h=H.code,x=H.mermaid;const X=k.parentElement.scrollTop;delete g.dataset.processed,o_.initialize(Object.assign({},JSON.parse(H.mermaid))),o_.render("graph-div",h,Z=>{f(0,g.innerHTML=Z,g)}),f(1,k.parentElement.scrollTop=X,k),f(2,E=!1)}else I?I=!1:f(3,A=!0)}catch(X){console.log("view fail",X),f(2,E=!0)}}),U_.subscribe(H=>{typeof H=="undefined"?f(2,E=!1):(f(2,E=!0),console.log("Error: ",H))})});function O(H){a_[H?"unshift":"push"](()=>{g=H,f(0,g)})}function Y(H){a_[H?"unshift":"push"](()=>{k=H,f(1,k)})}return[g,k,E,A,O,Y]}class sx extends A_{constructor(M){super();M_(this,M,$_,H_,N_,{})}}var pb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},J2={},f_={};(function(S){var M=pb&&pb.__values||function(m){var h=typeof Symbol=="function"&&Symbol.iterator,x=h&&m[h],g=0;if(x)return x.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(h?"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 f(m,h){var x,g;h===void 0&&(h=[]);var k=new Set(h),E=[];try{for(var A=M(S.wordList[m]),I=A.next();!I.done;I=A.next()){var O=I.value;(h.length===0||O.categories.some(function(Y){return k.has(Y)}))&&E.push(O.word)}}catch(Y){x={error:Y}}finally{try{I&&!I.done&&(g=A.return)&&g.call(A)}finally{if(x)throw x.error}}return E}S.getWordsByCategory=f})(f_);var gb=pb&&pb.__assign||function(){return gb=Object.assign||function(S){for(var M,f=1,m=arguments.length;f<m;f++){M=arguments[f];for(var h in M)Object.prototype.hasOwnProperty.call(M,h)&&(S[h]=M[h])}return S},gb.apply(this,arguments)};Object.defineProperty(J2,"__esModule",{value:!0});J2.totalUniqueSlugs=p_=J2.generateSlug=void 0;var U6=f_,d_=3;function W_(S,M){for(var f=S||d_,m={partsOfSpeech:g_(f),categories:{},format:"kebab"},h=gb(gb({},m),M),x=[],g=0;g<f;g++){var k=h.partsOfSpeech[g],E=U6.getWordsByCategory(h.partsOfSpeech[g],h.categories[k]),A=E[Math.floor(Math.random()*E.length)];x.push(A)}return V_(x,h.format)}var p_=J2.generateSlug=W_;function g_(S){for(var M=[],f=0;f<S-1;f++)M.push("adjective");return M.push("noun"),M}function V_(S,M){return M==="kebab"?S.join("-").toLowerCase():M==="camel"?S.map(function(f,m){return m===0?f.toLowerCase():f[0].toUpperCase()+f.slice(1).toLowerCase()}).join(""):M==="lower"?S.join(" ").toLowerCase():M==="sentence"?S.map(function(f,m){return m===0?f[0].toUpperCase()+f.slice(1).toLowerCase():f}).join(" "):S.map(function(f){return f[0].toUpperCase()+f.slice(1).toLowerCase()}).join(" ")}function G_(S,M){for(var f,m,h=U6.getWordsByCategory("adjective",(f=M==null?void 0:M.categories)===null||f===void 0?void 0:f.adjective).length,x=U6.getWordsByCategory("noun",(m=M==null?void 0:M.categories)===null||m===void 0?void 0:m.noun).length,g={adjective:h,noun:x},k=S||d_,E=(M==null?void 0:M.partsOfSpeech)||g_(k),A=1,I=0;I<k;I++)A*=g[E[I]];return A}J2.totalUniqueSlugs=G_;const X_=30,q6=H6(ty("manual"),$6(),"autoHistoryMode"),yb=H6(ty([]),$6(),"autoHistoryStore"),mb=H6(ty([]),$6(),"manualHistoryStore"),y_=ty([]),cx=R_([q6,yb,mb,y_],([S,M,f,m],h)=>{h(S==="auto"?M:S==="manual"?f:S==="loader"?m:M)}),Z_=S=>{if(S.type==="loader"){y_.update(M=>[S,...M]);return}if(S.name=p_(2),S.type!=="auto"){mb.update(M=>[S,...M]);return}yb.update(M=>(M.length===X_&&M.pop(),[S,...M]))},ux=S=>{(j6(q6)==="auto"?yb:mb).update(M=>(j6(q6)!=="loader"&&(M=M.filter(f=>S&&f.time!=S)),M))},lx=S=>{const M=j6(S?yb:mb);return M.length>0?JSON.stringify(M[0].state):""},m_="code.mmd",s_="config.json",Q_=S=>m_ in S,c_=async S=>S.truncated?await(await fetch(S.raw_url)).text():S.content,K_=async S=>{const[M,f,m,h]=S.split("github.com").pop().split("/"),{html_url:x,files:g,history:k}=await(await fetch(`https://api.github.com/gists/${m}${h?"/"+h:""}`)).json();if(Q_(g)){const E=await c_(g[m_]);let A;s_ in g&&(A=await c_(g[s_]));const I=k[0];return{url:`${x}/${I.version}`,code:E,config:A,author:I.user.login,time:new Date(I.committed_at).getTime(),version:I.version.slice(-7)}}else throw"Invalid gist provided"},u_=(S,M=S.url)=>{const f=R6(I6({},Y6),{code:S.code,loader:{type:"gist",config:{url:M}}});return S.config&&(f.mermaid=S.config),f},J_=async S=>{try{const[M,f,m,h]=S.split("github.com").pop().split("/"),{history:x}=await(await fetch(`https://api.github.com/gists/${m}${h?"/"+h:""}`)).json(),g=[];for(const E of x){const A=await K_(E.url).catch(()=>{});A&&g.push(A)}if(g.length===0)throw"Invalid gist provided";g.reverse();const k=u_(g.slice(-1).pop(),S);for(const E of g)Z_({state:u_(E),time:E.time,type:"loader",url:E.url,name:`${E.author} v${E.version}`});return k}catch(M){console.error(M)}},l_={gist:J_},tx=async()=>{const S=new URLSearchParams(window.location.search);let M=Y6,f,m,h=!1;const x=S.get("code"),g=S.get("config");if(x&&(f=await(await fetch(x)).text(),h=!0),g?m=await(await fetch(g)).text():m=Y6.mermaid,f)M={code:f,mermaid:m,loader:{type:"files",config:{codeURL:x,configURL:g}}};else for(const[k,E]of S.entries())if(k in l_)try{M=await l_[k](E),h=!0;break}catch(A){console.error(A)}h&&h_(R6(I6({},M),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},ex=()=>{z_(window.location.hash.slice(1))},nx=()=>{h_({updateDiagram:!0})},hx=async()=>{var S;ex(),await F_("Loading Gist...",tx().catch(console.error)),nx(),P_(),await j_(),(S=Y_)==null||S.page()};export{sx as V,cx as a,Z_ as b,ux as c,U_ as e,lx as g,q6 as h,hx as i,y_ as l,o_ as r,nx as s};
|