@vuebro/runtime 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +1 -1
- package/dist/assets/index-BtArdxd1.js +421 -0
- package/dist/assets/{loader-sfc.esm-browser.prod-2.3.33.js → loader-sfc.esm-browser.prod-2.4.1.js} +19284 -19284
- package/dist/assets/markdown-CKwXX3x9.js +63 -0
- package/dist/assets/mermaid-BQWZaxT1.js +1183 -0
- package/dist/assets/shared-YQYTrUrb.js +17 -0
- package/dist/index.html +4 -3
- package/package.json +22 -6
- package/dist/assets/index-DeF6OznI.js +0 -16
- package/dist/assets/shared-DOpc0w84.js +0 -17
- package/dist/assets/unocss-BKXTr99u.js +0 -415
|
@@ -0,0 +1,1183 @@
|
|
|
1
|
+
var t6={1362:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(Yt,te,at,re){for(at=at||{},re=Yt.length;re--;at[Yt[re]]=te);return at},x=[1,6],y=[1,7],k=[1,8],C=[1,9],S=[1,12],I=[1,11],L=[1,15,24],Y=[1,19],W=[1,31],H=[1,34],V=[1,32],X=[1,33],J=[1,35],lt=[1,36],nt=[1,37],_t=[1,38],dt=[1,41],At=[1,42],st=[1,43],K=[1,44],mt=[15,24],St=[1,56],Rt=[1,57],ft=[1,58],vt=[1,59],$t=[1,60],jt=[1,61],ye=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],pe=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],de=[7,8,9,10,15,18,22,24],Dt=[47,77,78,79,80],Xt=[47,54,55,77,78,79,80],se=[47,50,51,52,53,77,78,79,80],ce=[15,24,31],ge=[1,93],Ot={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(Yt,te,at,re,Mt,Vt,Ht){var Nt=Vt.length-1;switch(Mt){case 4:re.setDirection("TB");break;case 5:re.setDirection("BT");break;case 6:re.setDirection("RL");break;case 7:re.setDirection("LR");break;case 11:re.parseDirective("%%{","open_directive");break;case 12:re.parseDirective(Vt[Nt],"type_directive");break;case 13:Vt[Nt]=Vt[Nt].trim().replace(/'/g,'"'),re.parseDirective(Vt[Nt],"arg_directive");break;case 14:re.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Vt[Nt];break;case 21:this.$=Vt[Nt-1]+Vt[Nt];break;case 22:case 23:this.$=Vt[Nt-1]+"~"+Vt[Nt];break;case 24:re.addRelation(Vt[Nt]);break;case 25:Vt[Nt-1].title=re.cleanupLabel(Vt[Nt]),re.addRelation(Vt[Nt-1]);break;case 33:re.addClass(Vt[Nt]);break;case 34:re.addClass(Vt[Nt-2]),re.setCssClass(Vt[Nt-2],Vt[Nt]);break;case 35:re.addClass(Vt[Nt-3]),re.addMembers(Vt[Nt-3],Vt[Nt-1]);break;case 36:re.addClass(Vt[Nt-5]),re.setCssClass(Vt[Nt-5],Vt[Nt-3]),re.addMembers(Vt[Nt-5],Vt[Nt-1]);break;case 37:re.addAnnotation(Vt[Nt],Vt[Nt-2]);break;case 38:this.$=[Vt[Nt]];break;case 39:Vt[Nt].push(Vt[Nt-1]),this.$=Vt[Nt];break;case 40:case 42:case 43:break;case 41:re.addMember(Vt[Nt-1],re.cleanupLabel(Vt[Nt]));break;case 44:this.$={id1:Vt[Nt-2],id2:Vt[Nt],relation:Vt[Nt-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Vt[Nt-3],id2:Vt[Nt],relation:Vt[Nt-1],relationTitle1:Vt[Nt-2],relationTitle2:"none"};break;case 46:this.$={id1:Vt[Nt-3],id2:Vt[Nt],relation:Vt[Nt-2],relationTitle1:"none",relationTitle2:Vt[Nt-1]};break;case 47:this.$={id1:Vt[Nt-4],id2:Vt[Nt],relation:Vt[Nt-2],relationTitle1:Vt[Nt-3],relationTitle2:Vt[Nt-1]};break;case 48:this.$={type1:Vt[Nt-2],type2:Vt[Nt],lineType:Vt[Nt-1]};break;case 49:this.$={type1:"none",type2:Vt[Nt],lineType:Vt[Nt-1]};break;case 50:this.$={type1:Vt[Nt-1],type2:"none",lineType:Vt[Nt]};break;case 51:this.$={type1:"none",type2:"none",lineType:Vt[Nt]};break;case 52:this.$=re.relationType.AGGREGATION;break;case 53:this.$=re.relationType.EXTENSION;break;case 54:this.$=re.relationType.COMPOSITION;break;case 55:this.$=re.relationType.DEPENDENCY;break;case 56:this.$=re.lineType.LINE;break;case 57:this.$=re.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Vt[Nt-2],re.setClickEvent(Vt[Nt-1],Vt[Nt]);break;case 59:case 65:this.$=Vt[Nt-3],re.setClickEvent(Vt[Nt-2],Vt[Nt-1]),re.setTooltip(Vt[Nt-2],Vt[Nt]);break;case 60:case 68:this.$=Vt[Nt-2],re.setLink(Vt[Nt-1],Vt[Nt]);break;case 61:case 69:this.$=Vt[Nt-3],re.setLink(Vt[Nt-2],Vt[Nt-1],Vt[Nt]);break;case 62:case 70:this.$=Vt[Nt-3],re.setLink(Vt[Nt-2],Vt[Nt-1]),re.setTooltip(Vt[Nt-2],Vt[Nt]);break;case 63:case 71:this.$=Vt[Nt-4],re.setLink(Vt[Nt-3],Vt[Nt-2],Vt[Nt]),re.setTooltip(Vt[Nt-3],Vt[Nt-1]);break;case 66:this.$=Vt[Nt-3],re.setClickEvent(Vt[Nt-2],Vt[Nt-1],Vt[Nt]);break;case 67:this.$=Vt[Nt-4],re.setClickEvent(Vt[Nt-3],Vt[Nt-2],Vt[Nt-1]),re.setTooltip(Vt[Nt-3],Vt[Nt]);break;case 72:re.setCssClass(Vt[Nt-1],Vt[Nt])}},table:[{3:1,4:2,5:3,6:4,7:x,8:y,9:k,10:C,11:5,12:10,18:S,22:I},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:x,8:y,9:k,10:C,11:5,12:10,18:S,22:I},{1:[2,8]},d(L,[2,4]),d(L,[2,5]),d(L,[2,6]),d(L,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:Y},d([16,21],[2,12]),{5:29,6:28,7:x,8:y,9:k,10:C,12:10,18:S,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:W,42:H,44:V,45:X,56:J,57:lt,59:nt,63:_t,77:dt,78:At,79:st,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},d(mt,[2,24],{31:[1,50]}),d(mt,[2,26]),d(mt,[2,27]),d(mt,[2,28]),d(mt,[2,29]),d(mt,[2,30]),d(mt,[2,31]),d(mt,[2,32]),d(mt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:St,51:Rt,52:ft,53:vt,54:$t,55:jt}),{26:62,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,42]),d(mt,[2,43]),{27:63,77:dt,78:At,79:st},{26:64,27:39,28:40,77:dt,78:At,79:st,80:K},{26:65,27:39,28:40,77:dt,78:At,79:st,80:K},{26:66,27:39,28:40,77:dt,78:At,79:st,80:K},{47:[1,67]},d(ye,[2,19],{27:39,28:40,26:68,29:[1,69],77:dt,78:At,79:st,80:K}),d(ye,[2,20],{29:[1,70]}),d(pe,[2,86]),d(pe,[2,87]),d(pe,[2,88]),d([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),d(de,[2,9]),{14:71,21:Y},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:x,8:y,9:k,10:C,12:10,18:S,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:W,42:H,44:V,45:X,56:J,57:lt,59:nt,63:_t,77:dt,78:At,79:st,80:K},d(mt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:dt,78:At,79:st,80:K},{46:75,48:54,49:55,50:St,51:Rt,52:ft,53:vt,54:$t,55:jt},d(mt,[2,41]),{49:76,54:$t,55:jt},d(Dt,[2,51],{48:77,50:St,51:Rt,52:ft,53:vt}),d(Xt,[2,52]),d(Xt,[2,53]),d(Xt,[2,54]),d(Xt,[2,55]),d(se,[2,56]),d(se,[2,57]),d(mt,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:dt,78:At,79:st},d(ye,[2,21]),d(ye,[2,22]),d(ye,[2,23]),{15:[1,86]},{24:[2,18]},d(ce,[2,44]),{26:87,27:39,28:40,77:dt,78:At,79:st,80:K},{26:88,27:39,28:40,47:[1,89],77:dt,78:At,79:st,80:K},d(Dt,[2,50],{48:90,50:St,51:Rt,52:ft,53:vt}),d(Dt,[2,49]),{27:91,77:dt,78:At,79:st},{40:92,44:ge},{26:94,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,58],{47:[1,95]}),d(mt,[2,60],{47:[1,97],58:[1,96]}),d(mt,[2,64],{47:[1,98],61:[1,99]}),d(mt,[2,68],{47:[1,101],58:[1,100]}),d(mt,[2,72]),d(de,[2,10]),d(ce,[2,46]),d(ce,[2,45]),{26:102,27:39,28:40,77:dt,78:At,79:st,80:K},d(Dt,[2,48]),d(mt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ge},d(mt,[2,37]),d(mt,[2,59]),d(mt,[2,61]),d(mt,[2,62],{58:[1,106]}),d(mt,[2,65]),d(mt,[2,66],{47:[1,107]}),d(mt,[2,69]),d(mt,[2,70],{58:[1,108]}),d(ce,[2,47]),{40:109,44:ge},d(mt,[2,35]),{41:[2,39]},d(mt,[2,63]),d(mt,[2,67]),d(mt,[2,71]),{41:[1,110]},d(mt,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(Yt,te){if(!te.recoverable){var at=new Error(Yt);throw at.hash=te,at}this.trace(Yt)},parse:function(Yt){var te=this,at=[0],re=[],Mt=[null],Vt=[],Ht=this.table,Nt="",oe=0,Je=0,me=0,Me=2,un=1,Ge=Vt.slice.call(arguments,1),Oe=Object.create(this.lexer),Ce={yy:{}};for(var tn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tn)&&(Ce.yy[tn]=this.yy[tn]);Oe.setInput(Yt,Ce.yy),Ce.yy.lexer=Oe,Ce.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var ze=Oe.yylloc;Vt.push(ze);var Xe=Oe.options&&Oe.options.ranges;function Ze(){var wn;return typeof(wn=re.pop()||Oe.lex()||un)!="number"&&(wn instanceof Array&&(wn=(re=wn).pop()),wn=te.symbols_[wn]||wn),wn}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var De,Pn,Se,rn,gn,Dr,yn,Zn,on,fn={};;){if(Se=at[at.length-1],this.defaultActions[Se]?rn=this.defaultActions[Se]:(De==null&&(De=Ze()),rn=Ht[Se]&&Ht[Se][De]),rn===void 0||!rn.length||!rn[0]){var Qe="";for(Dr in on=[],Ht[Se])this.terminals_[Dr]&&Dr>Me&&on.push("'"+this.terminals_[Dr]+"'");Qe=Oe.showPosition?"Parse error on line "+(oe+1)+`:
|
|
2
|
+
`+Oe.showPosition()+`
|
|
3
|
+
Expecting `+on.join(", ")+", got '"+(this.terminals_[De]||De)+"'":"Parse error on line "+(oe+1)+": Unexpected "+(De==un?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Qe,{text:Oe.match,token:this.terminals_[De]||De,line:Oe.yylineno,loc:ze,expected:on})}if(rn[0]instanceof Array&&rn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Se+", token: "+De);switch(rn[0]){case 1:at.push(De),Mt.push(Oe.yytext),Vt.push(Oe.yylloc),at.push(rn[1]),De=null,Pn?(De=Pn,Pn=null):(Je=Oe.yyleng,Nt=Oe.yytext,oe=Oe.yylineno,ze=Oe.yylloc,me>0);break;case 2:if(yn=this.productions_[rn[1]][1],fn.$=Mt[Mt.length-yn],fn._$={first_line:Vt[Vt.length-(yn||1)].first_line,last_line:Vt[Vt.length-1].last_line,first_column:Vt[Vt.length-(yn||1)].first_column,last_column:Vt[Vt.length-1].last_column},Xe&&(fn._$.range=[Vt[Vt.length-(yn||1)].range[0],Vt[Vt.length-1].range[1]]),(gn=this.performAction.apply(fn,[Nt,Je,oe,Ce.yy,rn[1],Mt,Vt].concat(Ge)))!==void 0)return gn;yn&&(at=at.slice(0,-1*yn*2),Mt=Mt.slice(0,-1*yn),Vt=Vt.slice(0,-1*yn)),at.push(this.productions_[rn[1]][0]),Mt.push(fn.$),Vt.push(fn._$),Zn=Ht[at[at.length-2]][at[at.length-1]],at.push(Zn);break;case 3:return!0}}return!0}},$e={EOF:1,parseError:function(Yt,te){if(!this.yy.parser)throw new Error(Yt);this.yy.parser.parseError(Yt,te)},setInput:function(Yt,te){return this.yy=te||this.yy||{},this._input=Yt,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 Yt=this._input[0];return this.yytext+=Yt,this.yyleng++,this.offset++,this.match+=Yt,this.matched+=Yt,Yt.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),Yt},unput:function(Yt){var te=Yt.length,at=Yt.split(/(?:\r\n?|\n)/g);this._input=Yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),at.length-1&&(this.yylineno-=at.length-1);var Mt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:at?(at.length===re.length?this.yylloc.first_column:0)+re[re.length-at.length].length-at[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-te]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Yt){this.unput(this.match.slice(Yt))},pastInput:function(){var Yt=this.matched.substr(0,this.matched.length-this.match.length);return(Yt.length>20?"...":"")+Yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Yt=this.match;return Yt.length<20&&(Yt+=this._input.substr(0,20-Yt.length)),(Yt.substr(0,20)+(Yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Yt=this.pastInput(),te=new Array(Yt.length+1).join("-");return Yt+this.upcomingInput()+`
|
|
5
|
+
`+te+"^"},test_match:function(Yt,te){var at,re,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))),(re=Yt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:re?re[re.length-1].length-re[re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Yt[0].length},this.yytext+=Yt[0],this.match+=Yt[0],this.matches=Yt,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(Yt[0].length),this.matched+=Yt[0],at=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),at)return at;if(this._backtrack){for(var Vt in Mt)this[Vt]=Mt[Vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Yt,te,at,re;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),Vt=0;Vt<Mt.length;Vt++)if((at=this._input.match(this.rules[Mt[Vt]]))&&(!te||at[0].length>te[0].length)){if(te=at,re=Vt,this.options.backtrack_lexer){if((Yt=this.test_match(at,Mt[Vt]))!==!1)return Yt;if(this._backtrack){te=!1;continue}return!1}if(!this.options.flex)break}return te?(Yt=this.test_match(te,Mt[re]))!==!1&&Yt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},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(Yt){return(Yt=this.conditionStack.length-1-Math.abs(Yt||0))>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Yt,te,at,re){switch(at){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function le(){this.yy={}}return Ot.lexer=$e,le.prototype=Ot,Ot.Parser=le,new le})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(8218).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},5890:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(st,K,mt,St){for(mt=mt||{},St=st.length;St--;mt[st[St]]=K);return mt},x=[1,2],y=[1,5],k=[6,9,11,23,41],C=[1,17],S=[1,20],I=[1,25],L=[1,26],Y=[1,27],W=[1,28],H=[1,37],V=[23,38,39],X=[4,6,9,11,23,41],J=[34,35,36,37],lt=[22,29],nt=[1,55],_t={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(st,K,mt,St,Rt,ft,vt){var $t=ft.length-1;switch(Rt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:ft[$t-1].push(ft[$t]),this.$=ft[$t-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=ft[$t];break;case 12:St.addEntity(ft[$t-4]),St.addEntity(ft[$t-2]),St.addRelationship(ft[$t-4],ft[$t],ft[$t-2],ft[$t-3]);break;case 13:St.addEntity(ft[$t-3]),St.addAttributes(ft[$t-3],ft[$t-1]);break;case 14:St.addEntity(ft[$t-2]);break;case 15:St.addEntity(ft[$t]);break;case 17:this.$=[ft[$t]];break;case 18:ft[$t].push(ft[$t-1]),this.$=ft[$t];break;case 19:this.$={attributeType:ft[$t-1],attributeName:ft[$t]};break;case 20:this.$={attributeType:ft[$t-2],attributeName:ft[$t-1],attributeKeyType:ft[$t]};break;case 21:this.$={attributeType:ft[$t-2],attributeName:ft[$t-1],attributeComment:ft[$t]};break;case 22:this.$={attributeType:ft[$t-3],attributeName:ft[$t-2],attributeKeyType:ft[$t-1],attributeComment:ft[$t]};break;case 26:case 34:this.$=ft[$t].replace(/"/g,"");break;case 27:this.$={cardA:ft[$t],relType:ft[$t-1],cardB:ft[$t-2]};break;case 28:this.$=St.Cardinality.ZERO_OR_ONE;break;case 29:this.$=St.Cardinality.ZERO_OR_MORE;break;case 30:this.$=St.Cardinality.ONE_OR_MORE;break;case 31:this.$=St.Cardinality.ONLY_ONE;break;case 32:this.$=St.Identification.NON_IDENTIFYING;break;case 33:this.$=St.Identification.IDENTIFYING;break;case 36:St.parseDirective("%%{","open_directive");break;case 37:St.parseDirective(ft[$t],"type_directive");break;case 38:ft[$t]=ft[$t].trim().replace(/'/g,'"'),St.parseDirective(ft[$t],"arg_directive");break;case 39:St.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:x,7:3,12:4,41:y},{1:[3]},d(k,[2,3],{5:6}),{3:7,4:x,7:3,12:4,41:y},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:C,41:y},{1:[2,2]},{14:18,15:[1,19],44:S},d([15,44],[2,37]),d(k,[2,8],{1:[2,1]}),d(k,[2,4]),{7:15,10:21,12:4,17:16,23:C,41:y},d(k,[2,6]),d(k,[2,7]),d(k,[2,11]),d(k,[2,15],{18:22,32:24,20:[1,23],34:I,35:L,36:Y,37:W}),d([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},d(k,[2,5]),{17:32,23:C},{21:33,22:[1,34],24:35,25:36,29:H},{33:38,38:[1,39],39:[1,40]},d(V,[2,28]),d(V,[2,29]),d(V,[2,30]),d(V,[2,31]),d(X,[2,9]),{14:41,44:S},{44:[2,38]},{15:[1,42]},{22:[1,43]},d(k,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:I,35:L,36:Y,37:W},d(J,[2,32]),d(J,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},d(k,[2,13]),{22:[2,18]},d(lt,[2,19],{27:52,28:53,30:[1,54],31:nt}),d([22,29,30,31],[2,24]),{23:[2,27]},d(X,[2,10]),d(k,[2,12]),d(k,[2,34]),d(k,[2,35]),d(lt,[2,20],{28:56,31:nt}),d(lt,[2,21]),d([22,29,31],[2,25]),d(lt,[2,26]),d(lt,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(st,K){if(!K.recoverable){var mt=new Error(st);throw mt.hash=K,mt}this.trace(st)},parse:function(st){var K=this,mt=[0],St=[],Rt=[null],ft=[],vt=this.table,$t="",jt=0,ye=0,pe=0,de=2,Dt=1,Xt=ft.slice.call(arguments,1),se=Object.create(this.lexer),ce={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(ce.yy[ge]=this.yy[ge]);se.setInput(st,ce.yy),ce.yy.lexer=se,ce.yy.parser=this,se.yylloc===void 0&&(se.yylloc={});var Ot=se.yylloc;ft.push(Ot);var $e=se.options&&se.options.ranges;function le(){var Me;return typeof(Me=St.pop()||se.lex()||Dt)!="number"&&(Me instanceof Array&&(Me=(St=Me).pop()),Me=K.symbols_[Me]||Me),Me}typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yt,te,at,re,Mt,Vt,Ht,Nt,oe,Je={};;){if(at=mt[mt.length-1],this.defaultActions[at]?re=this.defaultActions[at]:(Yt==null&&(Yt=le()),re=vt[at]&&vt[at][Yt]),re===void 0||!re.length||!re[0]){var me="";for(Vt in oe=[],vt[at])this.terminals_[Vt]&&Vt>de&&oe.push("'"+this.terminals_[Vt]+"'");me=se.showPosition?"Parse error on line "+(jt+1)+`:
|
|
7
|
+
`+se.showPosition()+`
|
|
8
|
+
Expecting `+oe.join(", ")+", got '"+(this.terminals_[Yt]||Yt)+"'":"Parse error on line "+(jt+1)+": Unexpected "+(Yt==Dt?"end of input":"'"+(this.terminals_[Yt]||Yt)+"'"),this.parseError(me,{text:se.match,token:this.terminals_[Yt]||Yt,line:se.yylineno,loc:Ot,expected:oe})}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+at+", token: "+Yt);switch(re[0]){case 1:mt.push(Yt),Rt.push(se.yytext),ft.push(se.yylloc),mt.push(re[1]),Yt=null,te?(Yt=te,te=null):(ye=se.yyleng,$t=se.yytext,jt=se.yylineno,Ot=se.yylloc,pe>0);break;case 2:if(Ht=this.productions_[re[1]][1],Je.$=Rt[Rt.length-Ht],Je._$={first_line:ft[ft.length-(Ht||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(Ht||1)].first_column,last_column:ft[ft.length-1].last_column},$e&&(Je._$.range=[ft[ft.length-(Ht||1)].range[0],ft[ft.length-1].range[1]]),(Mt=this.performAction.apply(Je,[$t,ye,jt,ce.yy,re[1],Rt,ft].concat(Xt)))!==void 0)return Mt;Ht&&(mt=mt.slice(0,-1*Ht*2),Rt=Rt.slice(0,-1*Ht),ft=ft.slice(0,-1*Ht)),mt.push(this.productions_[re[1]][0]),Rt.push(Je.$),ft.push(Je._$),Nt=vt[mt[mt.length-2]][mt[mt.length-1]],mt.push(Nt);break;case 3:return!0}}return!0}},dt={EOF:1,parseError:function(st,K){if(!this.yy.parser)throw new Error(st);this.yy.parser.parseError(st,K)},setInput:function(st,K){return this.yy=K||this.yy||{},this._input=st,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var st=this._input[0];return this.yytext+=st,this.yyleng++,this.offset++,this.match+=st,this.matched+=st,st.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),st},unput:function(st){var K=st.length,mt=st.split(/(?:\r\n?|\n)/g);this._input=st+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var St=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mt.length-1&&(this.yylineno-=mt.length-1);var Rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mt?(mt.length===St.length?this.yylloc.first_column:0)+St[St.length-mt.length].length-mt[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[Rt[0],Rt[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
9
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(st){this.unput(this.match.slice(st))},pastInput:function(){var st=this.matched.substr(0,this.matched.length-this.match.length);return(st.length>20?"...":"")+st.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var st=this.match;return st.length<20&&(st+=this._input.substr(0,20-st.length)),(st.substr(0,20)+(st.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var st=this.pastInput(),K=new Array(st.length+1).join("-");return st+this.upcomingInput()+`
|
|
10
|
+
`+K+"^"},test_match:function(st,K){var mt,St,Rt;if(this.options.backtrack_lexer&&(Rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Rt.yylloc.range=this.yylloc.range.slice(0))),(St=st[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+st[0].length},this.yytext+=st[0],this.match+=st[0],this.matches=st,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(st[0].length),this.matched+=st[0],mt=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var ft in Rt)this[ft]=Rt[ft];return!1}return!1},next:function(){if(this.done)return this.EOF;var st,K,mt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Rt=this._currentRules(),ft=0;ft<Rt.length;ft++)if((mt=this._input.match(this.rules[Rt[ft]]))&&(!K||mt[0].length>K[0].length)){if(K=mt,St=ft,this.options.backtrack_lexer){if((st=this.test_match(mt,Rt[ft]))!==!1)return st;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(st=this.test_match(K,Rt[St]))!==!1&&st:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
11
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return(st=this.conditionStack.length-1-Math.abs(st||0))>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,K,mt,St){switch(mt){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return K.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function At(){this.yy={}}return _t.lexer=dt,At.prototype=_t,_t.Parser=At,new At})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(8009).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},3602:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(an,$n,Tn,Be){for(Tn=Tn||{},Be=an.length;Be--;Tn[an[Be]]=$n);return Tn},x=[1,9],y=[1,7],k=[1,6],C=[1,8],S=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],I=[2,10],L=[1,20],Y=[1,21],W=[1,22],H=[1,23],V=[1,30],X=[1,59],J=[1,45],lt=[1,49],nt=[1,33],_t=[1,34],dt=[1,35],At=[1,36],st=[1,37],K=[1,53],mt=[1,60],St=[1,48],Rt=[1,50],ft=[1,52],vt=[1,56],$t=[1,57],jt=[1,38],ye=[1,39],pe=[1,40],de=[1,41],Dt=[1,58],Xt=[1,47],se=[1,51],ce=[1,54],ge=[1,55],Ot=[1,46],$e=[1,63],le=[1,68],Yt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],te=[1,72],at=[1,71],re=[1,73],Mt=[20,21,23,74,75],Vt=[1,94],Ht=[1,99],Nt=[1,102],oe=[1,103],Je=[1,96],me=[1,101],Me=[1,104],un=[1,97],Ge=[1,109],Oe=[1,108],Ce=[1,98],tn=[1,100],ze=[1,105],Xe=[1,106],Ze=[1,107],De=[1,110],Pn=[20,21,22,23,74,75],Se=[20,21,22,23,48,74,75],rn=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],gn=[20,21,23],Dr=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],yn=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Zn=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],on=[1,143],fn=[1,151],Qe=[1,152],wn=[1,153],bn=[1,154],jn=[1,138],Yn=[1,139],Cr=[1,135],_n=[1,146],Un=[1,147],Rn=[1,148],qn=[1,149],Hn=[1,150],Qn=[1,155],Cn=[1,156],Bn=[1,141],sn=[1,144],Fn=[1,140],pn=[1,137],ri=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],pr=[1,159],Li=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],Ln=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],wo=[12,21,22,24],ha=[22,99],ii=[1,242],Or=[1,237],Ir=[1,238],$r=[1,246],Zr=[1,243],Sr=[1,240],Qr=[1,239],Br=[1,241],ki=[1,244],si=[1,245],er=[1,247],qr=[1,265],fa=[20,21,23,99],Kr=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],da={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(an,$n,Tn,Be,Wn,pt,Wr){var Zt=pt.length-1;switch(Wn){case 5:Be.parseDirective("%%{","open_directive");break;case 6:Be.parseDirective(pt[Zt],"type_directive");break;case 7:pt[Zt]=pt[Zt].trim().replace(/'/g,'"'),Be.parseDirective(pt[Zt],"arg_directive");break;case 8:Be.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:pt[Zt]!==[]&&pt[Zt-1].push(pt[Zt]),this.$=pt[Zt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=pt[Zt];break;case 19:Be.setDirection("TB"),this.$="TB";break;case 20:Be.setDirection(pt[Zt-1]),this.$=pt[Zt-1];break;case 35:this.$=pt[Zt-1].nodes;break;case 41:this.$=Be.addSubGraph(pt[Zt-6],pt[Zt-1],pt[Zt-4]);break;case 42:this.$=Be.addSubGraph(pt[Zt-3],pt[Zt-1],pt[Zt-3]);break;case 43:this.$=Be.addSubGraph(void 0,pt[Zt-1],void 0);break;case 48:Be.addLink(pt[Zt-2].stmt,pt[Zt],pt[Zt-1]),this.$={stmt:pt[Zt],nodes:pt[Zt].concat(pt[Zt-2].nodes)};break;case 49:Be.addLink(pt[Zt-3].stmt,pt[Zt-1],pt[Zt-2]),this.$={stmt:pt[Zt-1],nodes:pt[Zt-1].concat(pt[Zt-3].nodes)};break;case 50:this.$={stmt:pt[Zt-1],nodes:pt[Zt-1]};break;case 51:this.$={stmt:pt[Zt],nodes:pt[Zt]};break;case 52:case 119:case 121:this.$=[pt[Zt]];break;case 53:this.$=pt[Zt-4].concat(pt[Zt]);break;case 54:this.$=[pt[Zt-2]],Be.setClass(pt[Zt-2],pt[Zt]);break;case 55:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"square");break;case 56:this.$=pt[Zt-5],Be.addVertex(pt[Zt-5],pt[Zt-2],"circle");break;case 57:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"ellipse");break;case 58:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"stadium");break;case 59:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"subroutine");break;case 60:this.$=pt[Zt-7],Be.addVertex(pt[Zt-7],pt[Zt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pt[Zt-5],pt[Zt-3]]]));break;case 61:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"cylinder");break;case 62:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"round");break;case 63:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"diamond");break;case 64:this.$=pt[Zt-5],Be.addVertex(pt[Zt-5],pt[Zt-2],"hexagon");break;case 65:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"odd");break;case 66:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"trapezoid");break;case 67:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"inv_trapezoid");break;case 68:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"lean_right");break;case 69:this.$=pt[Zt-3],Be.addVertex(pt[Zt-3],pt[Zt-1],"lean_left");break;case 70:this.$=pt[Zt],Be.addVertex(pt[Zt]);break;case 71:pt[Zt-1].text=pt[Zt],this.$=pt[Zt-1];break;case 72:case 73:pt[Zt-2].text=pt[Zt-1],this.$=pt[Zt-2];break;case 75:var Ti=Be.destructLink(pt[Zt],pt[Zt-2]);this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length,text:pt[Zt-1]};break;case 76:Ti=Be.destructLink(pt[Zt]),this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length};break;case 77:this.$=pt[Zt-1];break;case 79:case 93:case 149:case 147:this.$=pt[Zt-1]+""+pt[Zt];break;case 94:case 95:this.$=pt[Zt-4],Be.addClass(pt[Zt-2],pt[Zt]);break;case 96:this.$=pt[Zt-4],Be.setClass(pt[Zt-2],pt[Zt]);break;case 97:case 105:this.$=pt[Zt-1],Be.setClickEvent(pt[Zt-1],pt[Zt]);break;case 98:case 106:this.$=pt[Zt-3],Be.setClickEvent(pt[Zt-3],pt[Zt-2]),Be.setTooltip(pt[Zt-3],pt[Zt]);break;case 99:this.$=pt[Zt-2],Be.setClickEvent(pt[Zt-2],pt[Zt-1],pt[Zt]);break;case 100:this.$=pt[Zt-4],Be.setClickEvent(pt[Zt-4],pt[Zt-3],pt[Zt-2]),Be.setTooltip(pt[Zt-4],pt[Zt]);break;case 101:case 107:this.$=pt[Zt-1],Be.setLink(pt[Zt-1],pt[Zt]);break;case 102:case 108:this.$=pt[Zt-3],Be.setLink(pt[Zt-3],pt[Zt-2]),Be.setTooltip(pt[Zt-3],pt[Zt]);break;case 103:case 109:this.$=pt[Zt-3],Be.setLink(pt[Zt-3],pt[Zt-2],pt[Zt]);break;case 104:case 110:this.$=pt[Zt-5],Be.setLink(pt[Zt-5],pt[Zt-4],pt[Zt]),Be.setTooltip(pt[Zt-5],pt[Zt-2]);break;case 111:this.$=pt[Zt-4],Be.addVertex(pt[Zt-2],void 0,void 0,pt[Zt]);break;case 112:case 114:this.$=pt[Zt-4],Be.updateLink(pt[Zt-2],pt[Zt]);break;case 113:this.$=pt[Zt-4],Be.updateLink([pt[Zt-2]],pt[Zt]);break;case 115:this.$=pt[Zt-8],Be.updateLinkInterpolate([pt[Zt-6]],pt[Zt-2]),Be.updateLink([pt[Zt-6]],pt[Zt]);break;case 116:this.$=pt[Zt-8],Be.updateLinkInterpolate(pt[Zt-6],pt[Zt-2]),Be.updateLink(pt[Zt-6],pt[Zt]);break;case 117:this.$=pt[Zt-6],Be.updateLinkInterpolate([pt[Zt-4]],pt[Zt]);break;case 118:this.$=pt[Zt-6],Be.updateLinkInterpolate(pt[Zt-4],pt[Zt]);break;case 120:case 122:pt[Zt-2].push(pt[Zt]),this.$=pt[Zt-2];break;case 124:this.$=pt[Zt-1]+pt[Zt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:x,16:4,21:y,22:k,24:C},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:x,16:4,21:y,22:k,24:C},d(S,I,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:k,24:C},{16:15,21:y,22:k,24:C},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:L,21:Y,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,111:jt,112:ye,113:pe,114:de,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},{8:61,10:[1,62],15:$e},d([10,15],[2,6]),d(S,[2,17]),d(S,[2,18]),d(S,[2,19]),{20:[1,65],21:[1,66],22:le,27:64,30:67},d(Yt,[2,11]),d(Yt,[2,12]),d(Yt,[2,13]),d(Yt,[2,14]),d(Yt,[2,15]),d(Yt,[2,16]),{9:69,20:te,21:at,23:re,44:70,71:74,74:[1,75],75:[1,76]},{9:77,20:te,21:at,23:re},{9:78,20:te,21:at,23:re},{9:79,20:te,21:at,23:re},{9:80,20:te,21:at,23:re},{9:81,20:te,21:at,23:re},{9:83,20:te,21:at,22:[1,82],23:re},d(Yt,[2,44]),d(Mt,[2,51],{30:84,22:le}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:Vt,47:Ht,59:Nt,60:oe,77:[1,92],84:Je,90:91,91:[1,89],93:[1,90],98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Yt,[2,154]),d(Yt,[2,155]),d(Yt,[2,156]),d(Yt,[2,157]),d(Pn,[2,52],{48:[1,111]}),d(Se,[2,70],{109:123,40:[1,112],47:X,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],59:J,60:lt,62:[1,118],64:[1,119],66:[1,120],67:[1,121],69:[1,122],84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot}),d(rn,[2,146]),d(rn,[2,171]),d(rn,[2,172]),d(rn,[2,173]),d(rn,[2,174]),d(rn,[2,175]),d(rn,[2,176]),d(rn,[2,177]),d(rn,[2,178]),d(rn,[2,179]),d(rn,[2,180]),d(rn,[2,181]),d(rn,[2,182]),d(rn,[2,183]),d(rn,[2,184]),d(rn,[2,185]),d(rn,[2,186]),{9:124,20:te,21:at,23:re},{11:125,14:[1,126]},d(gn,[2,8]),d(S,[2,20]),d(S,[2,26]),d(S,[2,27]),{21:[1,127]},d(Dr,[2,34],{30:128,22:le}),d(Yt,[2,35]),{45:129,46:42,47:X,49:43,59:J,60:lt,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},d(yn,[2,45]),d(yn,[2,46]),d(yn,[2,47]),d(Zn,[2,74],{72:130,61:[1,132],73:[1,131]}),{22:on,24:fn,26:Qe,38:wn,39:133,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d([47,59,60,61,73,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,76]),d(Yt,[2,36]),d(Yt,[2,37]),d(Yt,[2,38]),d(Yt,[2,39]),d(Yt,[2,40]),{22:on,24:fn,26:Qe,38:wn,39:157,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(ri,I,{17:158}),d(Mt,[2,50],{47:pr}),{26:Vt,47:Ht,59:Nt,60:oe,84:Je,90:160,95:[1,161],98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{88:[1,162],96:163,98:[1,164]},{26:Vt,47:Ht,59:Nt,60:oe,84:Je,88:[1,165],90:166,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{26:Vt,47:Ht,59:Nt,60:oe,84:Je,90:167,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(gn,[2,97],{22:[1,168],92:[1,169]}),d(gn,[2,101],{22:[1,170]}),d(gn,[2,105],{108:95,110:172,22:[1,171],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De}),d(gn,[2,107],{22:[1,173]}),d(Li,[2,148]),d(Li,[2,150]),d(Li,[2,151]),d(Li,[2,152]),d(Li,[2,153]),d(Ln,[2,158]),d(Ln,[2,159]),d(Ln,[2,160]),d(Ln,[2,161]),d(Ln,[2,162]),d(Ln,[2,163]),d(Ln,[2,164]),d(Ln,[2,165]),d(Ln,[2,166]),d(Ln,[2,167]),d(Ln,[2,168]),d(Ln,[2,169]),d(Ln,[2,170]),{47:X,49:174,59:J,60:lt,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},{22:on,24:fn,26:Qe,38:wn,39:175,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:177,42:bn,47:Ht,50:[1,176],59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:178,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:179,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:180,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{59:[1,181]},{22:on,24:fn,26:Qe,38:wn,39:182,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:183,42:bn,47:Ht,59:Nt,60:oe,64:[1,184],66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:185,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:186,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:187,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(rn,[2,147]),d(wo,[2,3]),{8:188,15:$e},{15:[2,7]},d(S,[2,28]),d(Dr,[2,33]),d(Mt,[2,48],{30:189,22:le}),d(Zn,[2,71],{22:[1,190]}),{22:[1,191]},{22:on,24:fn,26:Qe,38:wn,39:192,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,75:[1,193],76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Ln,[2,78]),d(Ln,[2,80]),d(Ln,[2,136]),d(Ln,[2,137]),d(Ln,[2,138]),d(Ln,[2,139]),d(Ln,[2,140]),d(Ln,[2,141]),d(Ln,[2,142]),d(Ln,[2,143]),d(Ln,[2,144]),d(Ln,[2,145]),d(Ln,[2,81]),d(Ln,[2,82]),d(Ln,[2,83]),d(Ln,[2,84]),d(Ln,[2,85]),d(Ln,[2,86]),d(Ln,[2,87]),d(Ln,[2,88]),d(Ln,[2,89]),d(Ln,[2,90]),d(Ln,[2,91]),{9:196,20:te,21:at,22:on,23:re,24:fn,26:Qe,38:wn,40:[1,195],42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{18:18,19:19,20:L,21:Y,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,197],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,111:jt,112:ye,113:pe,114:de,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},{22:le,30:198},{22:[1,199],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:172,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:[1,200]},{22:[1,201]},{22:[1,202],99:[1,203]},d(ha,[2,119]),{22:[1,204]},{22:[1,205],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:172,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:[1,206],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:172,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{77:[1,207]},d(gn,[2,99],{22:[1,208]}),{77:[1,209],94:[1,210]},{77:[1,211]},d(Li,[2,149]),{77:[1,212],94:[1,213]},d(Pn,[2,54],{109:123,47:X,59:J,60:lt,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot}),{22:on,24:fn,26:Qe,38:wn,41:[1,214],42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:215,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,51:[1,216],59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,53:[1,217],59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,55:[1,218],59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,57:[1,219],59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{60:[1,220]},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,63:[1,221],66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,65:[1,222],66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,39:223,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,41:[1,224],42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,66:jn,68:[1,225],70:[1,226],74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,66:jn,68:[1,228],70:[1,227],74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{9:229,20:te,21:at,23:re},d(Mt,[2,49],{47:pr}),d(Zn,[2,73]),d(Zn,[2,72]),{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,61:[1,230],66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Zn,[2,75]),d(Ln,[2,79]),{22:on,24:fn,26:Qe,38:wn,39:231,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(ri,I,{17:232}),d(Yt,[2,43]),{46:233,47:X,49:43,59:J,60:lt,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},{22:ii,59:Or,60:Ir,79:$r,89:234,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{22:ii,59:Or,60:Ir,79:$r,89:248,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{22:ii,59:Or,60:Ir,79:$r,89:249,95:Zr,97:[1,250],98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{22:ii,59:Or,60:Ir,79:$r,89:251,95:Zr,97:[1,252],98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{98:[1,253]},{22:ii,59:Or,60:Ir,79:$r,89:254,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{22:ii,59:Or,60:Ir,79:$r,89:255,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{26:Vt,47:Ht,59:Nt,60:oe,84:Je,90:256,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(gn,[2,98]),{77:[1,257]},d(gn,[2,102],{22:[1,258]}),d(gn,[2,103]),d(gn,[2,106]),d(gn,[2,108],{22:[1,259]}),d(gn,[2,109]),d(Se,[2,55]),{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,51:[1,260],59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Se,[2,62]),d(Se,[2,57]),d(Se,[2,58]),d(Se,[2,59]),{59:[1,261]},d(Se,[2,61]),d(Se,[2,63]),{22:on,24:fn,26:Qe,38:wn,42:bn,47:Ht,59:Nt,60:oe,65:[1,262],66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Se,[2,65]),d(Se,[2,66]),d(Se,[2,68]),d(Se,[2,67]),d(Se,[2,69]),d(wo,[2,4]),d([22,47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],[2,77]),{22:on,24:fn,26:Qe,38:wn,41:[1,263],42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{18:18,19:19,20:L,21:Y,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,264],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,111:jt,112:ye,113:pe,114:de,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},d(Pn,[2,53]),d(gn,[2,111],{99:qr}),d(fa,[2,121],{101:266,22:ii,59:Or,60:Ir,79:$r,95:Zr,98:Sr,102:Qr,103:Br,104:ki,105:si,106:er}),d(Kr,[2,123]),d(Kr,[2,125]),d(Kr,[2,126]),d(Kr,[2,127]),d(Kr,[2,128]),d(Kr,[2,129]),d(Kr,[2,130]),d(Kr,[2,131]),d(Kr,[2,132]),d(Kr,[2,133]),d(Kr,[2,134]),d(Kr,[2,135]),d(gn,[2,112],{99:qr}),d(gn,[2,113],{99:qr}),{22:[1,267]},d(gn,[2,114],{99:qr}),{22:[1,268]},d(ha,[2,120]),d(gn,[2,94],{99:qr}),d(gn,[2,95],{99:qr}),d(gn,[2,96],{108:95,110:172,26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De}),d(gn,[2,100]),{94:[1,269]},{94:[1,270]},{51:[1,271]},{61:[1,272]},{65:[1,273]},{9:274,20:te,21:at,23:re},d(Yt,[2,42]),{22:ii,59:Or,60:Ir,79:$r,95:Zr,98:Sr,100:275,101:236,102:Qr,103:Br,104:ki,105:si,106:er},d(Kr,[2,124]),{26:Vt,47:Ht,59:Nt,60:oe,84:Je,90:276,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{26:Vt,47:Ht,59:Nt,60:oe,84:Je,90:277,98:me,99:Me,102:un,104:Ge,105:Oe,108:95,110:93,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(gn,[2,104]),d(gn,[2,110]),d(Se,[2,56]),{22:on,24:fn,26:Qe,38:wn,39:278,42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:134,77:Cr,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},d(Se,[2,64]),d(ri,I,{17:279}),d(fa,[2,122],{101:266,22:ii,59:Or,60:Ir,79:$r,95:Zr,98:Sr,102:Qr,103:Br,104:ki,105:si,106:er}),d(gn,[2,117],{108:95,110:172,22:[1,280],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De}),d(gn,[2,118],{108:95,110:172,22:[1,281],26:Vt,47:Ht,59:Nt,60:oe,84:Je,98:me,99:Me,102:un,104:Ge,105:Oe,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De}),{22:on,24:fn,26:Qe,38:wn,41:[1,282],42:bn,47:Ht,59:Nt,60:oe,66:jn,74:Yn,76:194,78:145,79:_n,80:Un,81:Rn,82:qn,83:Hn,84:Qn,85:Cn,87:136,88:Bn,98:me,99:Me,102:sn,104:Ge,105:Oe,106:Fn,107:pn,108:142,115:Ce,116:tn,117:ze,118:Xe,119:Ze,120:De},{18:18,19:19,20:L,21:Y,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,283],43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:nt,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,111:jt,112:ye,113:pe,114:de,115:Dt,116:Xt,117:se,118:ce,119:ge,120:Ot},{22:ii,59:Or,60:Ir,79:$r,89:284,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},{22:ii,59:Or,60:Ir,79:$r,89:285,95:Zr,98:Sr,100:235,101:236,102:Qr,103:Br,104:ki,105:si,106:er},d(Se,[2,60]),d(Yt,[2,41]),d(gn,[2,115],{99:qr}),d(gn,[2,116],{99:qr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],126:[2,7]},parseError:function(an,$n){if(!$n.recoverable){var Tn=new Error(an);throw Tn.hash=$n,Tn}this.trace(an)},parse:function(an){var $n=this,Tn=[0],Be=[],Wn=[null],pt=[],Wr=this.table,Zt="",Ti=0,$i=0,ja=0,io=2,ko=1,To=pt.slice.call(arguments,1),Hr=Object.create(this.lexer),Wi={yy:{}};for(var En in this.yy)Object.prototype.hasOwnProperty.call(this.yy,En)&&(Wi.yy[En]=this.yy[En]);Hr.setInput(an,Wi.yy),Wi.yy.lexer=Hr,Wi.yy.parser=this,Hr.yylloc===void 0&&(Hr.yylloc={});var Ta=Hr.yylloc;pt.push(Ta);var Ya=Hr.options&&Hr.options.ranges;function gr(){var Bt;return typeof(Bt=Be.pop()||Hr.lex()||ko)!="number"&&(Bt instanceof Array&&(Bt=(Be=Bt).pop()),Bt=$n.symbols_[Bt]||Bt),Bt}typeof Wi.yy.parseError=="function"?this.parseError=Wi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var kr,di,Jr,Rr,Fr,ci,Vr,Vi,Ii,Ei={};;){if(Jr=Tn[Tn.length-1],this.defaultActions[Jr]?Rr=this.defaultActions[Jr]:(kr==null&&(kr=gr()),Rr=Wr[Jr]&&Wr[Jr][kr]),Rr===void 0||!Rr.length||!Rr[0]){var ao="";for(ci in Ii=[],Wr[Jr])this.terminals_[ci]&&ci>io&&Ii.push("'"+this.terminals_[ci]+"'");ao=Hr.showPosition?"Parse error on line "+(Ti+1)+`:
|
|
12
|
+
`+Hr.showPosition()+`
|
|
13
|
+
Expecting `+Ii.join(", ")+", got '"+(this.terminals_[kr]||kr)+"'":"Parse error on line "+(Ti+1)+": Unexpected "+(kr==ko?"end of input":"'"+(this.terminals_[kr]||kr)+"'"),this.parseError(ao,{text:Hr.match,token:this.terminals_[kr]||kr,line:Hr.yylineno,loc:Ta,expected:Ii})}if(Rr[0]instanceof Array&&Rr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Jr+", token: "+kr);switch(Rr[0]){case 1:Tn.push(kr),Wn.push(Hr.yytext),pt.push(Hr.yylloc),Tn.push(Rr[1]),kr=null,di?(kr=di,di=null):($i=Hr.yyleng,Zt=Hr.yytext,Ti=Hr.yylineno,Ta=Hr.yylloc,ja>0);break;case 2:if(Vr=this.productions_[Rr[1]][1],Ei.$=Wn[Wn.length-Vr],Ei._$={first_line:pt[pt.length-(Vr||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(Vr||1)].first_column,last_column:pt[pt.length-1].last_column},Ya&&(Ei._$.range=[pt[pt.length-(Vr||1)].range[0],pt[pt.length-1].range[1]]),(Fr=this.performAction.apply(Ei,[Zt,$i,Ti,Wi.yy,Rr[1],Wn,pt].concat(To)))!==void 0)return Fr;Vr&&(Tn=Tn.slice(0,-1*Vr*2),Wn=Wn.slice(0,-1*Vr),pt=pt.slice(0,-1*Vr)),Tn.push(this.productions_[Rr[1]][0]),Wn.push(Ei.$),pt.push(Ei._$),Vi=Wr[Tn[Tn.length-2]][Tn[Tn.length-1]],Tn.push(Vi);break;case 3:return!0}}return!0}},ro={EOF:1,parseError:function(an,$n){if(!this.yy.parser)throw new Error(an);this.yy.parser.parseError(an,$n)},setInput:function(an,$n){return this.yy=$n||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 $n=an.length,Tn=an.split(/(?:\r\n?|\n)/g);this._input=an+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$n),this.offset-=$n;var Be=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),Tn.length-1&&(this.yylineno-=Tn.length-1);var Wn=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:Tn?(Tn.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-Tn.length].length-Tn[0].length:this.yylloc.first_column-$n},this.options.ranges&&(this.yylloc.range=[Wn[0],Wn[0]+this.yyleng-$n]),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).
|
|
14
|
+
`+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(),$n=new Array(an.length+1).join("-");return an+this.upcomingInput()+`
|
|
15
|
+
`+$n+"^"},test_match:function(an,$n){var Tn,Be,Wn;if(this.options.backtrack_lexer&&(Wn={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&&(Wn.yylloc.range=this.yylloc.range.slice(0))),(Be=an[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.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],Tn=this.performAction.call(this,this.yy,this,$n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Tn)return Tn;if(this._backtrack){for(var pt in Wn)this[pt]=Wn[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var an,$n,Tn,Be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Wn=this._currentRules(),pt=0;pt<Wn.length;pt++)if((Tn=this._input.match(this.rules[Wn[pt]]))&&(!$n||Tn[0].length>$n[0].length)){if($n=Tn,Be=pt,this.options.backtrack_lexer){if((an=this.test_match(Tn,Wn[pt]))!==!1)return an;if(this._backtrack){$n=!1;continue}return!1}if(!this.options.flex)break}return $n?(an=this.test_match($n,Wn[Be]))!==!1&&an:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
16
|
+
`+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,$n,Tn,Be){switch(Tn){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 79;case 11:return 88;case 12:return 80;case 13:return 97;case 14:return 81;case 15:return 82;case 16:this.begin("href");break;case 18:return 93;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 91;case 24:return 92;case 25:this.begin("click");break;case 27:return 83;case 28:case 29:return an.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 94;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 111;case 48:return 112;case 49:return 113;case 50:return 114;case 51:return 98;case 52:return 104;case 53:return 48;case 54:return 60;case 55:return 47;case 56:return 20;case 57:return 99;case 58:return 119;case 59:case 60:case 61:return 75;case 62:case 63:case 64:return 74;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 102;case 75:return 105;case 76:return 120;case 77:return 117;case 78:return 106;case 79:case 80:return 118;case 81:return 107;case 82:return 66;case 83:return 85;case 84:return"SEP";case 85:return 84;case 86:return 59;case 87:return 68;case 88:return 67;case 89:return 70;case 90:return 69;case 91:return 115;case 92:return 116;case 93:return 61;case 94:return 50;case 95:return 51;case 96:return 40;case 97:return 41;case 98:return 64;case 99:return 65;case 100:return 126;case 101:return 21;case 102:return 22;case 103:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],inclusive:!0}}};function ui(){this.yy={}}return da.lexer=ro,ui.prototype=da,da.Parser=ui,new ui})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(5354).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},9959:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(K,mt,St,Rt){for(St=St||{},Rt=K.length;Rt--;St[K[Rt]]=mt);return St},x=[1,3],y=[1,5],k=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],C=[1,15],S=[1,16],I=[1,17],L=[1,18],Y=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,23],J=[1,25],lt=[1,27],nt=[1,30],_t=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(K,mt,St,Rt,ft,vt,$t){var jt=vt.length-1;switch(ft){case 2:return vt[jt-1];case 3:case 7:case 8:this.$=[];break;case 4:vt[jt-1].push(vt[jt]),this.$=vt[jt-1];break;case 5:case 6:this.$=vt[jt];break;case 9:Rt.setDateFormat(vt[jt].substr(11)),this.$=vt[jt].substr(11);break;case 10:Rt.enableInclusiveEndDates(),this.$=vt[jt].substr(18);break;case 11:Rt.TopAxis(),this.$=vt[jt].substr(8);break;case 12:Rt.setAxisFormat(vt[jt].substr(11)),this.$=vt[jt].substr(11);break;case 13:Rt.setExcludes(vt[jt].substr(9)),this.$=vt[jt].substr(9);break;case 14:Rt.setIncludes(vt[jt].substr(9)),this.$=vt[jt].substr(9);break;case 15:Rt.setTodayMarker(vt[jt].substr(12)),this.$=vt[jt].substr(12);break;case 16:Rt.setTitle(vt[jt].substr(6)),this.$=vt[jt].substr(6);break;case 17:Rt.addSection(vt[jt].substr(8)),this.$=vt[jt].substr(8);break;case 19:Rt.addTask(vt[jt-1],vt[jt]),this.$="task";break;case 23:this.$=vt[jt-1],Rt.setClickEvent(vt[jt-1],vt[jt],null);break;case 24:this.$=vt[jt-2],Rt.setClickEvent(vt[jt-2],vt[jt-1],vt[jt]);break;case 25:this.$=vt[jt-2],Rt.setClickEvent(vt[jt-2],vt[jt-1],null),Rt.setLink(vt[jt-2],vt[jt]);break;case 26:this.$=vt[jt-3],Rt.setClickEvent(vt[jt-3],vt[jt-2],vt[jt-1]),Rt.setLink(vt[jt-3],vt[jt]);break;case 27:this.$=vt[jt-2],Rt.setClickEvent(vt[jt-2],vt[jt],null),Rt.setLink(vt[jt-2],vt[jt-1]);break;case 28:this.$=vt[jt-3],Rt.setClickEvent(vt[jt-3],vt[jt-1],vt[jt]),Rt.setLink(vt[jt-3],vt[jt-2]);break;case 29:this.$=vt[jt-1],Rt.setLink(vt[jt-1],vt[jt]);break;case 30:case 36:this.$=vt[jt-1]+" "+vt[jt];break;case 31:case 32:case 34:this.$=vt[jt-2]+" "+vt[jt-1]+" "+vt[jt];break;case 33:case 35:this.$=vt[jt-3]+" "+vt[jt-2]+" "+vt[jt-1]+" "+vt[jt];break;case 37:Rt.parseDirective("%%{","open_directive");break;case 38:Rt.parseDirective(vt[jt],"type_directive");break;case 39:vt[jt]=vt[jt].trim().replace(/'/g,'"'),Rt.parseDirective(vt[jt],"arg_directive");break;case 40:Rt.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:x,24:4,34:y},{1:[3]},{3:6,4:2,5:x,24:4,34:y},d(k,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:C,13:S,14:I,15:L,16:Y,17:W,18:H,19:V,20:X,21:24,22:J,24:4,29:lt,34:y},{26:28,27:[1,29],37:nt},d([27,37],[2,38]),d(k,[2,8],{1:[2,2]}),d(k,[2,4]),{4:26,10:31,12:C,13:S,14:I,15:L,16:Y,17:W,18:H,19:V,20:X,21:24,22:J,24:4,29:lt,34:y},d(k,[2,6]),d(k,[2,7]),d(k,[2,9]),d(k,[2,10]),d(k,[2,11]),d(k,[2,12]),d(k,[2,13]),d(k,[2,14]),d(k,[2,15]),d(k,[2,16]),d(k,[2,17]),d(k,[2,18]),{23:[1,32]},d(k,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},d(k,[2,5]),d(k,[2,19]),d(k,[2,23],{31:[1,38],32:[1,39]}),d(k,[2,29],{30:[1,40]}),d(_t,[2,21]),{26:41,37:nt},{37:[2,39]},d(k,[2,24],{32:[1,42]}),d(k,[2,25]),d(k,[2,27],{31:[1,43]}),{11:[1,44]},d(k,[2,26]),d(k,[2,28]),d(_t,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(K,mt){if(!mt.recoverable){var St=new Error(K);throw St.hash=mt,St}this.trace(K)},parse:function(K){var mt=this,St=[0],Rt=[],ft=[null],vt=[],$t=this.table,jt="",ye=0,pe=0,de=0,Dt=2,Xt=1,se=vt.slice.call(arguments,1),ce=Object.create(this.lexer),ge={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ge.yy[Ot]=this.yy[Ot]);ce.setInput(K,ge.yy),ge.yy.lexer=ce,ge.yy.parser=this,ce.yylloc===void 0&&(ce.yylloc={});var $e=ce.yylloc;vt.push($e);var le=ce.options&&ce.options.ranges;function Yt(){var un;return typeof(un=Rt.pop()||ce.lex()||Xt)!="number"&&(un instanceof Array&&(un=(Rt=un).pop()),un=mt.symbols_[un]||un),un}typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var te,at,re,Mt,Vt,Ht,Nt,oe,Je,me={};;){if(re=St[St.length-1],this.defaultActions[re]?Mt=this.defaultActions[re]:(te==null&&(te=Yt()),Mt=$t[re]&&$t[re][te]),Mt===void 0||!Mt.length||!Mt[0]){var Me="";for(Ht in Je=[],$t[re])this.terminals_[Ht]&&Ht>Dt&&Je.push("'"+this.terminals_[Ht]+"'");Me=ce.showPosition?"Parse error on line "+(ye+1)+`:
|
|
17
|
+
`+ce.showPosition()+`
|
|
18
|
+
Expecting `+Je.join(", ")+", got '"+(this.terminals_[te]||te)+"'":"Parse error on line "+(ye+1)+": Unexpected "+(te==Xt?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(Me,{text:ce.match,token:this.terminals_[te]||te,line:ce.yylineno,loc:$e,expected:Je})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+te);switch(Mt[0]){case 1:St.push(te),ft.push(ce.yytext),vt.push(ce.yylloc),St.push(Mt[1]),te=null,at?(te=at,at=null):(pe=ce.yyleng,jt=ce.yytext,ye=ce.yylineno,$e=ce.yylloc,de>0);break;case 2:if(Nt=this.productions_[Mt[1]][1],me.$=ft[ft.length-Nt],me._$={first_line:vt[vt.length-(Nt||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(Nt||1)].first_column,last_column:vt[vt.length-1].last_column},le&&(me._$.range=[vt[vt.length-(Nt||1)].range[0],vt[vt.length-1].range[1]]),(Vt=this.performAction.apply(me,[jt,pe,ye,ge.yy,Mt[1],ft,vt].concat(se)))!==void 0)return Vt;Nt&&(St=St.slice(0,-1*Nt*2),ft=ft.slice(0,-1*Nt),vt=vt.slice(0,-1*Nt)),St.push(this.productions_[Mt[1]][0]),ft.push(me.$),vt.push(me._$),oe=$t[St[St.length-2]][St[St.length-1]],St.push(oe);break;case 3:return!0}}return!0}},At={EOF:1,parseError:function(K,mt){if(!this.yy.parser)throw new Error(K);this.yy.parser.parseError(K,mt)},setInput:function(K,mt){return this.yy=mt||this.yy||{},this._input=K,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var K=this._input[0];return this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K,K.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),K},unput:function(K){var mt=K.length,St=K.split(/(?:\r\n?|\n)/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var Rt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),St.length-1&&(this.yylineno-=St.length-1);var ft=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:St?(St.length===Rt.length?this.yylloc.first_column:0)+Rt[Rt.length-St.length].length-St[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
19
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(K){this.unput(this.match.slice(K))},pastInput:function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var K=this.pastInput(),mt=new Array(K.length+1).join("-");return K+this.upcomingInput()+`
|
|
20
|
+
`+mt+"^"},test_match:function(K,mt){var St,Rt,ft;if(this.options.backtrack_lexer&&(ft={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ft.yylloc.range=this.yylloc.range.slice(0))),(Rt=K[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Rt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Rt?Rt[Rt.length-1].length-Rt[Rt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(K[0].length),this.matched+=K[0],St=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var vt in ft)this[vt]=ft[vt];return!1}return!1},next:function(){if(this.done)return this.EOF;var K,mt,St,Rt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),vt=0;vt<ft.length;vt++)if((St=this._input.match(this.rules[ft[vt]]))&&(!mt||St[0].length>mt[0].length)){if(mt=St,Rt=vt,this.options.backtrack_lexer){if((K=this.test_match(St,ft[vt]))!==!1)return K;if(this._backtrack){mt=!1;continue}return!1}if(!this.options.flex)break}return mt?(K=this.test_match(mt,ft[Rt]))!==!1&&K:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
21
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(K){this.conditionStack.push(K)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(K){return(K=this.conditionStack.length-1-Math.abs(K||0))>=0?this.conditionStack[K]:"INITIAL"},pushState:function(K){this.begin(K)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(K,mt,St,Rt){switch(St){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function st(){this.yy={}}return dt.lexer=At,st.prototype=dt,dt.Parser=st,new st})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(6878).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},2553:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(H,V,X,J){for(X=X||{},J=H.length;J--;X[H[J]]=V);return X},x=[2,3],y=[1,7],k=[7,12,15,17,19,20,21],C=[7,11,12,15,17,19,20,21],S=[2,20],I=[1,32],L={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(H,V,X,J,lt,nt,_t){var dt=nt.length-1;switch(lt){case 1:return nt[dt-1];case 2:return J.setDirection(nt[dt-3]),nt[dt-1];case 4:J.setOptions(nt[dt-1]),this.$=nt[dt];break;case 5:nt[dt-1]+=nt[dt],this.$=nt[dt-1];break;case 7:this.$=[];break;case 8:nt[dt-1].push(nt[dt]),this.$=nt[dt-1];break;case 9:this.$=nt[dt-1];break;case 11:J.commit(nt[dt]);break;case 12:J.branch(nt[dt]);break;case 13:J.checkout(nt[dt]);break;case 14:J.merge(nt[dt]);break;case 15:J.reset(nt[dt]);break;case 16:this.$="";break;case 17:this.$=nt[dt];break;case 18:this.$=nt[dt-1]+":"+nt[dt];break;case 19:this.$=nt[dt-1]+":"+J.count,J.count=0;break;case 20:J.count=0;break;case 21:J.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:x,9:6,12:y},{5:[1,8]},{7:[1,9]},d(k,[2,7],{10:10,11:[1,11]}),d(C,[2,6]),{6:12,7:x,9:6,12:y},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},d(C,[2,5]),{7:[1,21]},d(k,[2,8]),{12:[1,22]},d(k,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},d(k,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:S,25:31,26:I},{12:S,25:33,26:I},{12:[2,18]},{12:S,25:34,26:I},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(H,V){if(!V.recoverable){var X=new Error(H);throw X.hash=V,X}this.trace(H)},parse:function(H){var V=this,X=[0],J=[],lt=[null],nt=[],_t=this.table,dt="",At=0,st=0,K=0,mt=2,St=1,Rt=nt.slice.call(arguments,1),ft=Object.create(this.lexer),vt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(vt.yy[$t]=this.yy[$t]);ft.setInput(H,vt.yy),vt.yy.lexer=ft,vt.yy.parser=this,ft.yylloc===void 0&&(ft.yylloc={});var jt=ft.yylloc;nt.push(jt);var ye=ft.options&&ft.options.ranges;function pe(){var at;return typeof(at=J.pop()||ft.lex()||St)!="number"&&(at instanceof Array&&(at=(J=at).pop()),at=V.symbols_[at]||at),at}typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,Dt,Xt,se,ce,ge,Ot,$e,le,Yt={};;){if(Xt=X[X.length-1],this.defaultActions[Xt]?se=this.defaultActions[Xt]:(de==null&&(de=pe()),se=_t[Xt]&&_t[Xt][de]),se===void 0||!se.length||!se[0]){var te="";for(ge in le=[],_t[Xt])this.terminals_[ge]&&ge>mt&&le.push("'"+this.terminals_[ge]+"'");te=ft.showPosition?"Parse error on line "+(At+1)+`:
|
|
22
|
+
`+ft.showPosition()+`
|
|
23
|
+
Expecting `+le.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(At+1)+": Unexpected "+(de==St?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(te,{text:ft.match,token:this.terminals_[de]||de,line:ft.yylineno,loc:jt,expected:le})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xt+", token: "+de);switch(se[0]){case 1:X.push(de),lt.push(ft.yytext),nt.push(ft.yylloc),X.push(se[1]),de=null,Dt?(de=Dt,Dt=null):(st=ft.yyleng,dt=ft.yytext,At=ft.yylineno,jt=ft.yylloc,K>0);break;case 2:if(Ot=this.productions_[se[1]][1],Yt.$=lt[lt.length-Ot],Yt._$={first_line:nt[nt.length-(Ot||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(Ot||1)].first_column,last_column:nt[nt.length-1].last_column},ye&&(Yt._$.range=[nt[nt.length-(Ot||1)].range[0],nt[nt.length-1].range[1]]),(ce=this.performAction.apply(Yt,[dt,st,At,vt.yy,se[1],lt,nt].concat(Rt)))!==void 0)return ce;Ot&&(X=X.slice(0,-1*Ot*2),lt=lt.slice(0,-1*Ot),nt=nt.slice(0,-1*Ot)),X.push(this.productions_[se[1]][0]),lt.push(Yt.$),nt.push(Yt._$),$e=_t[X[X.length-2]][X[X.length-1]],X.push($e);break;case 3:return!0}}return!0}},Y={EOF:1,parseError:function(H,V){if(!this.yy.parser)throw new Error(H);this.yy.parser.parseError(H,V)},setInput:function(H,V){return this.yy=V||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var H=this._input[0];return this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H,H.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var V=H.length,X=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var J=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var lt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===J.length?this.yylloc.first_column:0)+J[J.length-X.length].length-X[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
24
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),V=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
|
|
25
|
+
`+V+"^"},test_match:function(H,V){var X,J,lt;if(this.options.backtrack_lexer&&(lt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(lt.yylloc.range=this.yylloc.range.slice(0))),(J=H[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=J.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:J?J[J.length-1].length-J[J.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],X=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var nt in lt)this[nt]=lt[nt];return!1}return!1},next:function(){if(this.done)return this.EOF;var H,V,X,J;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),nt=0;nt<lt.length;nt++)if((X=this._input.match(this.rules[lt[nt]]))&&(!V||X[0].length>V[0].length)){if(V=X,J=nt,this.options.backtrack_lexer){if((H=this.test_match(X,lt[nt]))!==!1)return H;if(this._backtrack){V=!1;continue}return!1}if(!this.options.flex)break}return V?(H=this.test_match(V,lt[J]))!==!1&&H:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
26
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(H){this.conditionStack.push(H)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(H){return(H=this.conditionStack.length-1-Math.abs(H||0))>=0?this.conditionStack[H]:"INITIAL"},pushState:function(H){this.begin(H)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(H,V,X,J){switch(X){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:case 18:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function W(){this.yy={}}return L.lexer=Y,W.prototype=L,L.Parser=W,new W})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(8183).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},6765:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(S,I,L,Y){for(L=L||{},Y=S.length;Y--;L[S[Y]]=I);return L},x=[6,9,10],y={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(S,I,L,Y,W,H,V){switch(H.length,W){case 1:return Y;case 4:break;case 6:Y.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},d(x,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},d(x,[2,3]),d(x,[2,4]),d(x,[2,5]),d(x,[2,6])],defaultActions:{4:[2,1]},parseError:function(S,I){if(!I.recoverable){var L=new Error(S);throw L.hash=I,L}this.trace(S)},parse:function(S){var I=this,L=[0],Y=[],W=[null],H=[],V=this.table,X="",J=0,lt=0,nt=0,_t=2,dt=1,At=H.slice.call(arguments,1),st=Object.create(this.lexer),K={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(K.yy[mt]=this.yy[mt]);st.setInput(S,K.yy),K.yy.lexer=st,K.yy.parser=this,st.yylloc===void 0&&(st.yylloc={});var St=st.yylloc;H.push(St);var Rt=st.options&&st.options.ranges;function ft(){var Ot;return typeof(Ot=Y.pop()||st.lex()||dt)!="number"&&(Ot instanceof Array&&(Ot=(Y=Ot).pop()),Ot=I.symbols_[Ot]||Ot),Ot}typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vt,$t,jt,ye,pe,de,Dt,Xt,se,ce={};;){if(jt=L[L.length-1],this.defaultActions[jt]?ye=this.defaultActions[jt]:(vt==null&&(vt=ft()),ye=V[jt]&&V[jt][vt]),ye===void 0||!ye.length||!ye[0]){var ge="";for(de in se=[],V[jt])this.terminals_[de]&&de>_t&&se.push("'"+this.terminals_[de]+"'");ge=st.showPosition?"Parse error on line "+(J+1)+`:
|
|
27
|
+
`+st.showPosition()+`
|
|
28
|
+
Expecting `+se.join(", ")+", got '"+(this.terminals_[vt]||vt)+"'":"Parse error on line "+(J+1)+": Unexpected "+(vt==dt?"end of input":"'"+(this.terminals_[vt]||vt)+"'"),this.parseError(ge,{text:st.match,token:this.terminals_[vt]||vt,line:st.yylineno,loc:St,expected:se})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+jt+", token: "+vt);switch(ye[0]){case 1:L.push(vt),W.push(st.yytext),H.push(st.yylloc),L.push(ye[1]),vt=null,$t?(vt=$t,$t=null):(lt=st.yyleng,X=st.yytext,J=st.yylineno,St=st.yylloc,nt>0);break;case 2:if(Dt=this.productions_[ye[1]][1],ce.$=W[W.length-Dt],ce._$={first_line:H[H.length-(Dt||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Dt||1)].first_column,last_column:H[H.length-1].last_column},Rt&&(ce._$.range=[H[H.length-(Dt||1)].range[0],H[H.length-1].range[1]]),(pe=this.performAction.apply(ce,[X,lt,J,K.yy,ye[1],W,H].concat(At)))!==void 0)return pe;Dt&&(L=L.slice(0,-1*Dt*2),W=W.slice(0,-1*Dt),H=H.slice(0,-1*Dt)),L.push(this.productions_[ye[1]][0]),W.push(ce.$),H.push(ce._$),Xt=V[L[L.length-2]][L[L.length-1]],L.push(Xt);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(S,I){if(!this.yy.parser)throw new Error(S);this.yy.parser.parseError(S,I)},setInput:function(S,I){return this.yy=I||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.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),S},unput:function(S){var I=S.length,L=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var Y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var W=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-L.length].length-L[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[W[0],W[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).
|
|
29
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var S=this.pastInput(),I=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
30
|
+
`+I+"^"},test_match:function(S,I){var L,Y,W;if(this.options.backtrack_lexer&&(W={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&&(W.yylloc.range=this.yylloc.range.slice(0))),(Y=S[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+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],L=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var H in W)this[H]=W[H];return!1}return!1},next:function(){if(this.done)return this.EOF;var S,I,L,Y;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),H=0;H<W.length;H++)if((L=this._input.match(this.rules[W[H]]))&&(!I||L[0].length>I[0].length)){if(I=L,Y=H,this.options.backtrack_lexer){if((S=this.test_match(L,W[H]))!==!1)return S;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(S=this.test_match(I,W[Y]))!==!1&&S:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
31
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(S){this.conditionStack.push(S)},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(S){return(S=this.conditionStack.length-1-Math.abs(S||0))>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(S,I,L,Y){switch(L){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function C(){this.yy={}}return y.lexer=k,C.prototype=y,y.Parser=C,new C})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(1428).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},7062:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(At,st,K,mt){for(K=K||{},mt=At.length;mt--;K[At[mt]]=st);return K},x=[1,4],y=[1,5],k=[1,6],C=[1,7],S=[1,9],I=[1,11,13,20,21,22,23],L=[2,5],Y=[1,6,11,13,20,21,22,23],W=[20,21,22],H=[2,8],V=[1,18],X=[1,19],J=[1,24],lt=[6,20,21,22,23],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(At,st,K,mt,St,Rt,ft){var vt=Rt.length-1;switch(St){case 4:mt.setShowData(!0);break;case 7:this.$=Rt[vt-1];break;case 9:mt.addSection(Rt[vt-1],mt.cleanupValue(Rt[vt]));break;case 10:this.$=Rt[vt].trim(),mt.setTitle(this.$);break;case 17:mt.parseDirective("%%{","open_directive");break;case 18:mt.parseDirective(Rt[vt],"type_directive");break;case 19:Rt[vt]=Rt[vt].trim().replace(/'/g,'"'),mt.parseDirective(Rt[vt],"arg_directive");break;case 20:mt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:x,15:8,20:y,21:k,22:C,23:S},{1:[3]},{3:10,4:2,5:3,6:x,15:8,20:y,21:k,22:C,23:S},{3:11,4:2,5:3,6:x,15:8,20:y,21:k,22:C,23:S},d(I,L,{7:12,8:[1,13]}),d(Y,[2,14]),d(Y,[2,15]),d(Y,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},d(W,H,{15:8,9:16,10:17,5:20,1:[2,3],11:V,13:X,23:S}),d(I,L,{7:21}),{17:22,18:[1,23],26:J},d([18,26],[2,18]),d(I,[2,6]),{4:25,20:y,21:k,22:C},{12:[1,26]},{14:[1,27]},d(W,[2,11]),d(W,H,{15:8,9:16,10:17,5:20,1:[2,4],11:V,13:X,23:S}),d(lt,[2,12]),{19:28,25:[1,29]},d(lt,[2,20]),d(I,[2,7]),d(W,[2,9]),d(W,[2,10]),{17:30,26:J},{26:[2,19]},d(lt,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(At,st){if(!st.recoverable){var K=new Error(At);throw K.hash=st,K}this.trace(At)},parse:function(At){var st=this,K=[0],mt=[],St=[null],Rt=[],ft=this.table,vt="",$t=0,jt=0,ye=0,pe=2,de=1,Dt=Rt.slice.call(arguments,1),Xt=Object.create(this.lexer),se={yy:{}};for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ce)&&(se.yy[ce]=this.yy[ce]);Xt.setInput(At,se.yy),se.yy.lexer=Xt,se.yy.parser=this,Xt.yylloc===void 0&&(Xt.yylloc={});var ge=Xt.yylloc;Rt.push(ge);var Ot=Xt.options&&Xt.options.ranges;function $e(){var me;return typeof(me=mt.pop()||Xt.lex()||de)!="number"&&(me instanceof Array&&(me=(mt=me).pop()),me=st.symbols_[me]||me),me}typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var le,Yt,te,at,re,Mt,Vt,Ht,Nt,oe={};;){if(te=K[K.length-1],this.defaultActions[te]?at=this.defaultActions[te]:(le==null&&(le=$e()),at=ft[te]&&ft[te][le]),at===void 0||!at.length||!at[0]){var Je="";for(Mt in Nt=[],ft[te])this.terminals_[Mt]&&Mt>pe&&Nt.push("'"+this.terminals_[Mt]+"'");Je=Xt.showPosition?"Parse error on line "+($t+1)+`:
|
|
32
|
+
`+Xt.showPosition()+`
|
|
33
|
+
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[le]||le)+"'":"Parse error on line "+($t+1)+": Unexpected "+(le==de?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Je,{text:Xt.match,token:this.terminals_[le]||le,line:Xt.yylineno,loc:ge,expected:Nt})}if(at[0]instanceof Array&&at.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+le);switch(at[0]){case 1:K.push(le),St.push(Xt.yytext),Rt.push(Xt.yylloc),K.push(at[1]),le=null,Yt?(le=Yt,Yt=null):(jt=Xt.yyleng,vt=Xt.yytext,$t=Xt.yylineno,ge=Xt.yylloc,ye>0);break;case 2:if(Vt=this.productions_[at[1]][1],oe.$=St[St.length-Vt],oe._$={first_line:Rt[Rt.length-(Vt||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(Vt||1)].first_column,last_column:Rt[Rt.length-1].last_column},Ot&&(oe._$.range=[Rt[Rt.length-(Vt||1)].range[0],Rt[Rt.length-1].range[1]]),(re=this.performAction.apply(oe,[vt,jt,$t,se.yy,at[1],St,Rt].concat(Dt)))!==void 0)return re;Vt&&(K=K.slice(0,-1*Vt*2),St=St.slice(0,-1*Vt),Rt=Rt.slice(0,-1*Vt)),K.push(this.productions_[at[1]][0]),St.push(oe.$),Rt.push(oe._$),Ht=ft[K[K.length-2]][K[K.length-1]],K.push(Ht);break;case 3:return!0}}return!0}},_t={EOF:1,parseError:function(At,st){if(!this.yy.parser)throw new Error(At);this.yy.parser.parseError(At,st)},setInput:function(At,st){return this.yy=st||this.yy||{},this._input=At,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var At=this._input[0];return this.yytext+=At,this.yyleng++,this.offset++,this.match+=At,this.matched+=At,At.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),At},unput:function(At){var st=At.length,K=At.split(/(?:\r\n?|\n)/g);this._input=At+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var St=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:K?(K.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-K.length].length-K[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[St[0],St[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
34
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(At){this.unput(this.match.slice(At))},pastInput:function(){var At=this.matched.substr(0,this.matched.length-this.match.length);return(At.length>20?"...":"")+At.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var At=this.match;return At.length<20&&(At+=this._input.substr(0,20-At.length)),(At.substr(0,20)+(At.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var At=this.pastInput(),st=new Array(At.length+1).join("-");return At+this.upcomingInput()+`
|
|
35
|
+
`+st+"^"},test_match:function(At,st){var K,mt,St;if(this.options.backtrack_lexer&&(St={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(St.yylloc.range=this.yylloc.range.slice(0))),(mt=At[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+At[0].length},this.yytext+=At[0],this.match+=At[0],this.matches=At,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(At[0].length),this.matched+=At[0],K=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var Rt in St)this[Rt]=St[Rt];return!1}return!1},next:function(){if(this.done)return this.EOF;var At,st,K,mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),Rt=0;Rt<St.length;Rt++)if((K=this._input.match(this.rules[St[Rt]]))&&(!st||K[0].length>st[0].length)){if(st=K,mt=Rt,this.options.backtrack_lexer){if((At=this.test_match(K,St[Rt]))!==!1)return At;if(this._backtrack){st=!1;continue}return!1}if(!this.options.flex)break}return st?(At=this.test_match(st,St[mt]))!==!1&&At:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
36
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(At){this.conditionStack.push(At)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(At){return(At=this.conditionStack.length-1-Math.abs(At||0))>=0?this.conditionStack[At]:"INITIAL"},pushState:function(At){this.begin(At)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(At,st,K,mt){switch(K){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:case 8:case 9:break;case 7:return 20;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function dt(){this.yy={}}return nt.lexer=_t,dt.prototype=nt,nt.Parser=dt,new dt})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(4551).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},3176:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(te,at,re,Mt){for(re=re||{},Mt=te.length;Mt--;re[te[Mt]]=at);return re},x=[1,3],y=[1,5],k=[1,17],C=[2,10],S=[1,21],I=[1,22],L=[1,23],Y=[1,24],W=[1,25],H=[1,26],V=[1,19],X=[1,27],J=[1,28],lt=[1,31],nt=[66,67],_t=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],dt=[5,6,8,14,35,36,37,38,39,40,48,66,67],At=[1,51],st=[1,52],K=[1,53],mt=[1,54],St=[1,55],Rt=[1,56],ft=[1,57],vt=[57,58],$t=[1,69],jt=[1,65],ye=[1,66],pe=[1,67],de=[1,68],Dt=[1,70],Xt=[1,74],se=[1,75],ce=[1,72],ge=[1,73],Ot=[5,8,14,35,36,37,38,39,40,48,66,67],$e={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(te,at,re,Mt,Vt,Ht,Nt){var oe=Ht.length-1;switch(Vt){case 6:Mt.parseDirective("%%{","open_directive");break;case 7:Mt.parseDirective(Ht[oe],"type_directive");break;case 8:Ht[oe]=Ht[oe].trim().replace(/'/g,'"'),Mt.parseDirective(Ht[oe],"arg_directive");break;case 9:Mt.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Mt.addRequirement(Ht[oe-3],Ht[oe-4]);break;case 17:Mt.setNewReqId(Ht[oe-2]);break;case 18:Mt.setNewReqText(Ht[oe-2]);break;case 19:Mt.setNewReqRisk(Ht[oe-2]);break;case 20:Mt.setNewReqVerifyMethod(Ht[oe-2]);break;case 23:this.$=Mt.RequirementType.REQUIREMENT;break;case 24:this.$=Mt.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Mt.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Mt.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Mt.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Mt.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Mt.RiskLevel.LOW_RISK;break;case 30:this.$=Mt.RiskLevel.MED_RISK;break;case 31:this.$=Mt.RiskLevel.HIGH_RISK;break;case 32:this.$=Mt.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Mt.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Mt.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Mt.VerifyType.VERIFY_TEST;break;case 36:Mt.addElement(Ht[oe-3]);break;case 37:Mt.setNewElementType(Ht[oe-2]);break;case 38:Mt.setNewElementDocRef(Ht[oe-2]);break;case 41:Mt.addRelationship(Ht[oe-2],Ht[oe],Ht[oe-4]);break;case 42:Mt.addRelationship(Ht[oe-2],Ht[oe-4],Ht[oe]);break;case 43:this.$=Mt.Relationships.CONTAINS;break;case 44:this.$=Mt.Relationships.COPIES;break;case 45:this.$=Mt.Relationships.DERIVES;break;case 46:this.$=Mt.Relationships.SATISFIES;break;case 47:this.$=Mt.Relationships.VERIFIES;break;case 48:this.$=Mt.Relationships.REFINES;break;case 49:this.$=Mt.Relationships.TRACES}},table:[{3:1,4:2,6:x,9:4,14:y},{1:[3]},{3:7,4:2,5:[1,6],6:x,9:4,14:y},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:x,9:4,14:y},{1:[2,2]},{4:16,5:k,7:12,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{11:29,12:[1,30],17:lt},d([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:k,7:33,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{4:16,5:k,7:34,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{4:16,5:k,7:35,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{4:16,5:k,7:36,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{4:16,5:k,7:37,8:C,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:S,36:I,37:L,38:Y,39:W,40:H,48:V,66:X,67:J},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},d(nt,[2,23]),d(nt,[2,24]),d(nt,[2,25]),d(nt,[2,26]),d(nt,[2,27]),d(nt,[2,28]),d(_t,[2,52]),d(_t,[2,53]),d(dt,[2,4]),{13:46,16:[1,47]},d(dt,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:At,60:st,61:K,62:mt,63:St,64:Rt,65:ft},{56:58,59:At,60:st,61:K,62:mt,63:St,64:Rt,65:ft},{11:59,17:lt},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},d(vt,[2,43]),d(vt,[2,44]),d(vt,[2,45]),d(vt,[2,46]),d(vt,[2,47]),d(vt,[2,48]),d(vt,[2,49]),{58:[1,63]},d(dt,[2,5]),{5:$t,24:64,25:jt,28:ye,30:pe,32:de,34:Dt},{5:Xt,34:se,50:71,51:ce,53:ge},{27:76,66:X,67:J},{27:77,66:X,67:J},d(Ot,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:$t,24:82,25:jt,28:ye,30:pe,32:de,34:Dt},d(Ot,[2,22]),d(Ot,[2,36]),{26:[1,83]},{26:[1,84]},{5:Xt,34:se,50:85,51:ce,53:ge},d(Ot,[2,40]),d(Ot,[2,41]),d(Ot,[2,42]),{27:86,66:X,67:J},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},d(Ot,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},d(Ot,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:$t,24:111,25:jt,28:ye,30:pe,32:de,34:Dt},{5:$t,24:112,25:jt,28:ye,30:pe,32:de,34:Dt},{5:$t,24:113,25:jt,28:ye,30:pe,32:de,34:Dt},{5:$t,24:114,25:jt,28:ye,30:pe,32:de,34:Dt},{5:Xt,34:se,50:115,51:ce,53:ge},{5:Xt,34:se,50:116,51:ce,53:ge},d(Ot,[2,17]),d(Ot,[2,18]),d(Ot,[2,19]),d(Ot,[2,20]),d(Ot,[2,37]),d(Ot,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(te,at){if(!at.recoverable){var re=new Error(te);throw re.hash=at,re}this.trace(te)},parse:function(te){var at=this,re=[0],Mt=[],Vt=[null],Ht=[],Nt=this.table,oe="",Je=0,me=0,Me=0,un=2,Ge=1,Oe=Ht.slice.call(arguments,1),Ce=Object.create(this.lexer),tn={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(tn.yy[ze]=this.yy[ze]);Ce.setInput(te,tn.yy),tn.yy.lexer=Ce,tn.yy.parser=this,Ce.yylloc===void 0&&(Ce.yylloc={});var Xe=Ce.yylloc;Ht.push(Xe);var Ze=Ce.options&&Ce.options.ranges;function De(){var bn;return typeof(bn=Mt.pop()||Ce.lex()||Ge)!="number"&&(bn instanceof Array&&(bn=(Mt=bn).pop()),bn=at.symbols_[bn]||bn),bn}typeof tn.yy.parseError=="function"?this.parseError=tn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Pn,Se,rn,gn,Dr,yn,Zn,on,fn,Qe={};;){if(rn=re[re.length-1],this.defaultActions[rn]?gn=this.defaultActions[rn]:(Pn==null&&(Pn=De()),gn=Nt[rn]&&Nt[rn][Pn]),gn===void 0||!gn.length||!gn[0]){var wn="";for(yn in fn=[],Nt[rn])this.terminals_[yn]&&yn>un&&fn.push("'"+this.terminals_[yn]+"'");wn=Ce.showPosition?"Parse error on line "+(Je+1)+`:
|
|
37
|
+
`+Ce.showPosition()+`
|
|
38
|
+
Expecting `+fn.join(", ")+", got '"+(this.terminals_[Pn]||Pn)+"'":"Parse error on line "+(Je+1)+": Unexpected "+(Pn==Ge?"end of input":"'"+(this.terminals_[Pn]||Pn)+"'"),this.parseError(wn,{text:Ce.match,token:this.terminals_[Pn]||Pn,line:Ce.yylineno,loc:Xe,expected:fn})}if(gn[0]instanceof Array&&gn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rn+", token: "+Pn);switch(gn[0]){case 1:re.push(Pn),Vt.push(Ce.yytext),Ht.push(Ce.yylloc),re.push(gn[1]),Pn=null,Se?(Pn=Se,Se=null):(me=Ce.yyleng,oe=Ce.yytext,Je=Ce.yylineno,Xe=Ce.yylloc,Me>0);break;case 2:if(Zn=this.productions_[gn[1]][1],Qe.$=Vt[Vt.length-Zn],Qe._$={first_line:Ht[Ht.length-(Zn||1)].first_line,last_line:Ht[Ht.length-1].last_line,first_column:Ht[Ht.length-(Zn||1)].first_column,last_column:Ht[Ht.length-1].last_column},Ze&&(Qe._$.range=[Ht[Ht.length-(Zn||1)].range[0],Ht[Ht.length-1].range[1]]),(Dr=this.performAction.apply(Qe,[oe,me,Je,tn.yy,gn[1],Vt,Ht].concat(Oe)))!==void 0)return Dr;Zn&&(re=re.slice(0,-1*Zn*2),Vt=Vt.slice(0,-1*Zn),Ht=Ht.slice(0,-1*Zn)),re.push(this.productions_[gn[1]][0]),Vt.push(Qe.$),Ht.push(Qe._$),on=Nt[re[re.length-2]][re[re.length-1]],re.push(on);break;case 3:return!0}}return!0}},le={EOF:1,parseError:function(te,at){if(!this.yy.parser)throw new Error(te);this.yy.parser.parseError(te,at)},setInput:function(te,at){return this.yy=at||this.yy||{},this._input=te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var te=this._input[0];return this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te,te.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),te},unput:function(te){var at=te.length,re=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var Mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),re.length-1&&(this.yylineno-=re.length-1);var Vt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:re?(re.length===Mt.length?this.yylloc.first_column:0)+Mt[Mt.length-re.length].length-re[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[Vt[0],Vt[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).
|
|
39
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(te){this.unput(this.match.slice(te))},pastInput:function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var te=this.match;return te.length<20&&(te+=this._input.substr(0,20-te.length)),(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var te=this.pastInput(),at=new Array(te.length+1).join("-");return te+this.upcomingInput()+`
|
|
40
|
+
`+at+"^"},test_match:function(te,at){var re,Mt,Vt;if(this.options.backtrack_lexer&&(Vt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Vt.yylloc.range=this.yylloc.range.slice(0))),(Mt=te[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Mt?Mt[Mt.length-1].length-Mt[Mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(te[0].length),this.matched+=te[0],re=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Ht in Vt)this[Ht]=Vt[Ht];return!1}return!1},next:function(){if(this.done)return this.EOF;var te,at,re,Mt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Vt=this._currentRules(),Ht=0;Ht<Vt.length;Ht++)if((re=this._input.match(this.rules[Vt[Ht]]))&&(!at||re[0].length>at[0].length)){if(at=re,Mt=Ht,this.options.backtrack_lexer){if((te=this.test_match(re,Vt[Ht]))!==!1)return te;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(te=this.test_match(at,Vt[Mt]))!==!1&&te:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
41
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(te){return(te=this.conditionStack.length-1-Math.abs(te||0))>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,at,re,Mt){switch(re){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return at.yytext=at.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function Yt(){this.yy={}}return $e.lexer=le,Yt.prototype=$e,$e.Parser=Yt,new Yt})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(8800).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},6876:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(Ot,$e,le,Yt){for(le=le||{},Yt=Ot.length;Yt--;le[Ot[Yt]]=$e);return le},x=[1,2],y=[1,3],k=[1,5],C=[1,7],S=[2,5],I=[1,15],L=[1,17],Y=[1,18],W=[1,19],H=[1,21],V=[1,22],X=[1,23],J=[1,29],lt=[1,30],nt=[1,31],_t=[1,32],dt=[1,33],At=[1,34],st=[1,37],K=[1,38],mt=[1,39],St=[1,40],Rt=[1,41],ft=[1,42],vt=[1,45],$t=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],jt=[1,58],ye=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],pe=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],de=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Dt=[55,56,57],Xt=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],se={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Ot,$e,le,Yt,te,at,re){var Mt=at.length-1;switch(te){case 4:return Yt.apply(at[Mt]),at[Mt];case 5:case 9:this.$=[];break;case 6:at[Mt-1].push(at[Mt]),this.$=at[Mt-1];break;case 7:case 8:case 45:this.$=at[Mt];break;case 12:at[Mt-3].type="addParticipant",at[Mt-3].description=Yt.parseMessage(at[Mt-1]),this.$=at[Mt-3];break;case 13:at[Mt-1].type="addParticipant",this.$=at[Mt-1];break;case 14:at[Mt-3].type="addActor",at[Mt-3].description=Yt.parseMessage(at[Mt-1]),this.$=at[Mt-3];break;case 15:at[Mt-1].type="addActor",this.$=at[Mt-1];break;case 17:Yt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:Yt.LINETYPE.ACTIVE_START,actor:at[Mt-1]};break;case 19:this.$={type:"activeEnd",signalType:Yt.LINETYPE.ACTIVE_END,actor:at[Mt-1]};break;case 25:this.$=[{type:"setTitle",text:at[Mt-1]}];break;case 26:at[Mt-1].unshift({type:"loopStart",loopText:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.LOOP_START}),at[Mt-1].push({type:"loopEnd",loopText:at[Mt-2],signalType:Yt.LINETYPE.LOOP_END}),this.$=at[Mt-1];break;case 27:at[Mt-1].unshift({type:"rectStart",color:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.RECT_START}),at[Mt-1].push({type:"rectEnd",color:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.RECT_END}),this.$=at[Mt-1];break;case 28:at[Mt-1].unshift({type:"optStart",optText:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.OPT_START}),at[Mt-1].push({type:"optEnd",optText:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.OPT_END}),this.$=at[Mt-1];break;case 29:at[Mt-1].unshift({type:"altStart",altText:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.ALT_START}),at[Mt-1].push({type:"altEnd",signalType:Yt.LINETYPE.ALT_END}),this.$=at[Mt-1];break;case 30:at[Mt-1].unshift({type:"parStart",parText:Yt.parseMessage(at[Mt-2]),signalType:Yt.LINETYPE.PAR_START}),at[Mt-1].push({type:"parEnd",signalType:Yt.LINETYPE.PAR_END}),this.$=at[Mt-1];break;case 33:this.$=at[Mt-3].concat([{type:"and",parText:Yt.parseMessage(at[Mt-1]),signalType:Yt.LINETYPE.PAR_AND},at[Mt]]);break;case 35:this.$=at[Mt-3].concat([{type:"else",altText:Yt.parseMessage(at[Mt-1]),signalType:Yt.LINETYPE.ALT_ELSE},at[Mt]]);break;case 36:this.$=[at[Mt-1],{type:"addNote",placement:at[Mt-2],actor:at[Mt-1].actor,text:at[Mt]}];break;case 37:at[Mt-2]=[].concat(at[Mt-1],at[Mt-1]).slice(0,2),at[Mt-2][0]=at[Mt-2][0].actor,at[Mt-2][1]=at[Mt-2][1].actor,this.$=[at[Mt-1],{type:"addNote",placement:Yt.PLACEMENT.OVER,actor:at[Mt-2].slice(0,2),text:at[Mt]}];break;case 38:this.$=[at[Mt-1],{type:"addLinks",actor:at[Mt-1].actor,text:at[Mt]}];break;case 39:this.$=[at[Mt-1],{type:"addALink",actor:at[Mt-1].actor,text:at[Mt]}];break;case 40:this.$=[at[Mt-1],{type:"addProperties",actor:at[Mt-1].actor,text:at[Mt]}];break;case 41:this.$=[at[Mt-1],{type:"addDetails",actor:at[Mt-1].actor,text:at[Mt]}];break;case 44:this.$=[at[Mt-2],at[Mt]];break;case 46:this.$=Yt.PLACEMENT.LEFTOF;break;case 47:this.$=Yt.PLACEMENT.RIGHTOF;break;case 48:this.$=[at[Mt-4],at[Mt-1],{type:"addMessage",from:at[Mt-4].actor,to:at[Mt-1].actor,signalType:at[Mt-3],msg:at[Mt]},{type:"activeStart",signalType:Yt.LINETYPE.ACTIVE_START,actor:at[Mt-1]}];break;case 49:this.$=[at[Mt-4],at[Mt-1],{type:"addMessage",from:at[Mt-4].actor,to:at[Mt-1].actor,signalType:at[Mt-3],msg:at[Mt]},{type:"activeEnd",signalType:Yt.LINETYPE.ACTIVE_END,actor:at[Mt-4]}];break;case 50:this.$=[at[Mt-3],at[Mt-1],{type:"addMessage",from:at[Mt-3].actor,to:at[Mt-1].actor,signalType:at[Mt-2],msg:at[Mt]}];break;case 51:this.$={type:"addParticipant",actor:at[Mt]};break;case 52:this.$=Yt.LINETYPE.SOLID_OPEN;break;case 53:this.$=Yt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=Yt.LINETYPE.SOLID;break;case 55:this.$=Yt.LINETYPE.DOTTED;break;case 56:this.$=Yt.LINETYPE.SOLID_CROSS;break;case 57:this.$=Yt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=Yt.LINETYPE.SOLID_POINT;break;case 59:this.$=Yt.LINETYPE.DOTTED_POINT;break;case 60:this.$=Yt.parseMessage(at[Mt].trim().substring(1));break;case 61:Yt.parseDirective("%%{","open_directive");break;case 62:Yt.parseDirective(at[Mt],"type_directive");break;case 63:at[Mt]=at[Mt].trim().replace(/'/g,'"'),Yt.parseDirective(at[Mt],"arg_directive");break;case 64:Yt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:x,5:y,6:4,7:k,11:6,67:C},{1:[3]},{3:8,4:x,5:y,6:4,7:k,11:6,67:C},{3:9,4:x,5:y,6:4,7:k,11:6,67:C},{3:10,4:x,5:y,6:4,7:k,11:6,67:C},d([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],S,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{13:43,14:[1,44],70:vt},d([14,70],[2,62]),d($t,[2,6]),{6:35,10:46,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},d($t,[2,8]),d($t,[2,9]),{17:47,57:ft},{17:48,57:ft},{5:[1,49]},d($t,[2,17]),{17:50,57:ft},{17:51,57:ft},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:jt},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},d($t,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:ft},{17:78,57:ft},{17:79,57:ft},{17:80,57:ft},d([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},d($t,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},d($t,[2,16]),{5:[1,88]},{5:[1,89]},d($t,[2,20]),d($t,[2,21]),d($t,[2,22]),d($t,[2,23]),d($t,[2,24]),{5:[1,90]},{5:[2,60]},d(ye,S,{8:91}),d(ye,S,{8:92}),d(ye,S,{8:93}),d(pe,S,{37:94,8:95}),d(de,S,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:ft},d(Dt,[2,52]),d(Dt,[2,53]),d(Dt,[2,54]),d(Dt,[2,55]),d(Dt,[2,56]),d(Dt,[2,57]),d(Dt,[2,58]),d(Dt,[2,59]),{17:101,57:ft},{17:103,45:102,57:ft},{57:[2,46]},{57:[2,47]},{31:104,66:jt},{31:105,66:jt},{31:106,66:jt},{31:107,66:jt},d(Xt,[2,10]),{13:108,70:vt},{70:[2,63]},{19:[1,109]},d($t,[2,13]),{19:[1,110]},d($t,[2,15]),d($t,[2,18]),d($t,[2,19]),d($t,[2,25]),{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,111],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,112],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[1,113],34:nt,35:_t,36:dt,38:At,42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{33:[1,114]},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[2,34],34:nt,35:_t,36:dt,38:At,41:[1,115],42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{33:[1,116]},{4:I,5:L,6:35,9:14,10:16,11:6,16:Y,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:lt,33:[2,32],34:nt,35:_t,36:dt,38:At,40:[1,117],42:st,46:K,47:mt,48:St,49:Rt,57:ft,67:C},{17:118,57:ft},{17:119,57:ft},{31:120,66:jt},{31:121,66:jt},{31:122,66:jt},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},d($t,[2,26]),d($t,[2,27]),d($t,[2,28]),d($t,[2,29]),{19:[1,127]},d($t,[2,30]),{19:[1,128]},{31:129,66:jt},{31:130,66:jt},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:ft},d(Xt,[2,11]),d($t,[2,12]),d($t,[2,14]),d(pe,S,{8:95,37:132}),d(de,S,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(Ot,$e){if(!$e.recoverable){var le=new Error(Ot);throw le.hash=$e,le}this.trace(Ot)},parse:function(Ot){var $e=this,le=[0],Yt=[],te=[null],at=[],re=this.table,Mt="",Vt=0,Ht=0,Nt=0,oe=2,Je=1,me=at.slice.call(arguments,1),Me=Object.create(this.lexer),un={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(un.yy[Ge]=this.yy[Ge]);Me.setInput(Ot,un.yy),un.yy.lexer=Me,un.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var Oe=Me.yylloc;at.push(Oe);var Ce=Me.options&&Me.options.ranges;function tn(){var on;return typeof(on=Yt.pop()||Me.lex()||Je)!="number"&&(on instanceof Array&&(on=(Yt=on).pop()),on=$e.symbols_[on]||on),on}typeof un.yy.parseError=="function"?this.parseError=un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ze,Xe,Ze,De,Pn,Se,rn,gn,Dr,yn={};;){if(Ze=le[le.length-1],this.defaultActions[Ze]?De=this.defaultActions[Ze]:(ze==null&&(ze=tn()),De=re[Ze]&&re[Ze][ze]),De===void 0||!De.length||!De[0]){var Zn="";for(Se in Dr=[],re[Ze])this.terminals_[Se]&&Se>oe&&Dr.push("'"+this.terminals_[Se]+"'");Zn=Me.showPosition?"Parse error on line "+(Vt+1)+`:
|
|
42
|
+
`+Me.showPosition()+`
|
|
43
|
+
Expecting `+Dr.join(", ")+", got '"+(this.terminals_[ze]||ze)+"'":"Parse error on line "+(Vt+1)+": Unexpected "+(ze==Je?"end of input":"'"+(this.terminals_[ze]||ze)+"'"),this.parseError(Zn,{text:Me.match,token:this.terminals_[ze]||ze,line:Me.yylineno,loc:Oe,expected:Dr})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ze+", token: "+ze);switch(De[0]){case 1:le.push(ze),te.push(Me.yytext),at.push(Me.yylloc),le.push(De[1]),ze=null,Xe?(ze=Xe,Xe=null):(Ht=Me.yyleng,Mt=Me.yytext,Vt=Me.yylineno,Oe=Me.yylloc,Nt>0);break;case 2:if(rn=this.productions_[De[1]][1],yn.$=te[te.length-rn],yn._$={first_line:at[at.length-(rn||1)].first_line,last_line:at[at.length-1].last_line,first_column:at[at.length-(rn||1)].first_column,last_column:at[at.length-1].last_column},Ce&&(yn._$.range=[at[at.length-(rn||1)].range[0],at[at.length-1].range[1]]),(Pn=this.performAction.apply(yn,[Mt,Ht,Vt,un.yy,De[1],te,at].concat(me)))!==void 0)return Pn;rn&&(le=le.slice(0,-1*rn*2),te=te.slice(0,-1*rn),at=at.slice(0,-1*rn)),le.push(this.productions_[De[1]][0]),te.push(yn.$),at.push(yn._$),gn=re[le[le.length-2]][le[le.length-1]],le.push(gn);break;case 3:return!0}}return!0}},ce={EOF:1,parseError:function(Ot,$e){if(!this.yy.parser)throw new Error(Ot);this.yy.parser.parseError(Ot,$e)},setInput:function(Ot,$e){return this.yy=$e||this.yy||{},this._input=Ot,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ot=this._input[0];return this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot,Ot.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ot},unput:function(Ot){var $e=Ot.length,le=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$e),this.offset-=$e;var Yt=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),le.length-1&&(this.yylineno-=le.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:le?(le.length===Yt.length?this.yylloc.first_column:0)+Yt[Yt.length-le.length].length-le[0].length:this.yylloc.first_column-$e},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-$e]),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).
|
|
44
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),$e=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
|
|
45
|
+
`+$e+"^"},test_match:function(Ot,$e){var le,Yt,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),(Yt=Ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yt?Yt[Yt.length-1].length-Yt[Yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ot[0].length),this.matched+=Ot[0],le=this.performAction.call(this,this.yy,this,$e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),le)return le;if(this._backtrack){for(var at in te)this[at]=te[at];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ot,$e,le,Yt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),at=0;at<te.length;at++)if((le=this._input.match(this.rules[te[at]]))&&(!$e||le[0].length>$e[0].length)){if($e=le,Yt=at,this.options.backtrack_lexer){if((Ot=this.test_match(le,te[at]))!==!1)return Ot;if(this._backtrack){$e=!1;continue}return!1}if(!this.options.flex)break}return $e?(Ot=this.test_match($e,te[Yt]))!==!1&&Ot:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
46
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ot){return(Ot=this.conditionStack.length-1-Math.abs(Ot||0))>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ot,$e,le,Yt){switch(le){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:case 39:case 52:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return $e.yytext=$e.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 40:return $e.yytext=$e.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function ge(){this.yy={}}return se.lexer=ce,ge.prototype=se,se.Parser=ge,new ge})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(1993).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},3584:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(Dt,Xt,se,ce){for(se=se||{},ce=Dt.length;ce--;se[Dt[ce]]=Xt);return se},x=[1,2],y=[1,3],k=[1,5],C=[1,7],S=[2,5],I=[1,15],L=[1,17],Y=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,30],J=[1,23],lt=[1,24],nt=[1,25],_t=[1,26],dt=[1,27],At=[1,32],st=[1,33],K=[1,34],mt=[1,35],St=[1,31],Rt=[1,38],ft=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],vt=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],$t=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],jt=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ye={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(Dt,Xt,se,ce,ge,Ot,$e){var le=Ot.length-1;switch(ge){case 4:return ce.setRootDoc(Ot[le]),Ot[le];case 5:this.$=[];break;case 6:Ot[le]!="nl"&&(Ot[le-1].push(Ot[le]),this.$=Ot[le-1]);break;case 7:case 8:case 36:case 37:this.$=Ot[le];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:Ot[le],type:"default",description:""};break;case 11:this.$={stmt:"state",id:Ot[le-1],type:"default",description:ce.trimColon(Ot[le])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:Ot[le-2],type:"default",description:""},state2:{stmt:"state",id:Ot[le],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:Ot[le-3],type:"default",description:""},state2:{stmt:"state",id:Ot[le-1],type:"default",description:""},description:Ot[le].substr(1).trim()};break;case 17:this.$={stmt:"state",id:Ot[le-3],type:"default",description:"",doc:Ot[le-1]};break;case 18:var Yt=Ot[le],te=Ot[le-2].trim();if(Ot[le].match(":")){var at=Ot[le].split(":");Yt=at[0],te=[te,at[1]]}this.$={stmt:"state",id:Yt,type:"default",description:te};break;case 19:this.$={stmt:"state",id:Ot[le-3],type:"default",description:Ot[le-5],doc:Ot[le-1]};break;case 20:this.$={stmt:"state",id:Ot[le],type:"fork"};break;case 21:this.$={stmt:"state",id:Ot[le],type:"join"};break;case 22:this.$={stmt:"state",id:Ot[le],type:"choice"};break;case 23:this.$={stmt:"state",id:ce.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:Ot[le-1].trim(),note:{position:Ot[le-2].trim(),text:Ot[le].trim()}};break;case 30:ce.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:ce.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:ce.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:ce.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:ce.parseDirective("%%{","open_directive");break;case 41:ce.parseDirective(Ot[le],"type_directive");break;case 42:Ot[le]=Ot[le].trim().replace(/'/g,'"'),ce.parseDirective(Ot[le],"arg_directive");break;case 43:ce.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:x,5:y,6:4,7:k,31:6,45:C},{1:[3]},{3:8,4:x,5:y,6:4,7:k,31:6,45:C},{3:9,4:x,5:y,6:4,7:k,31:6,45:C},{3:10,4:x,5:y,6:4,7:k,31:6,45:C},d([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],S,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:W,17:H,20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},{33:36,34:[1,37],48:Rt},d([34,48],[2,41]),d(ft,[2,6]),{6:28,10:39,11:18,14:Y,15:W,17:H,20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,8]),d(ft,[2,9]),d(ft,[2,10],{12:[1,40],13:[1,41]}),d(ft,[2,14]),{16:[1,42]},d(ft,[2,16],{18:[1,43]}),{21:[1,44]},d(ft,[2,20]),d(ft,[2,21]),d(ft,[2,22]),d(ft,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},d(ft,[2,26]),d(ft,[2,27]),d(vt,[2,36]),d(vt,[2,37]),d(ft,[2,30]),d(ft,[2,31]),d(ft,[2,32]),d(ft,[2,33]),d($t,[2,28]),{35:49,47:[1,50]},d($t,[2,43]),d(ft,[2,7]),d(ft,[2,11]),{11:51,22:X,42:St},d(ft,[2,15]),d(jt,S,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:Rt},{48:[2,42]},d(ft,[2,12],{12:[1,57]}),{4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:W,17:H,19:[1,58],20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},d($t,[2,29]),d(ft,[2,13]),d(ft,[2,17]),d(jt,S,{8:62}),d(ft,[2,24]),d(ft,[2,25]),{4:I,5:L,6:28,9:14,10:16,11:18,14:Y,15:W,17:H,19:[1,63],20:V,22:X,23:J,24:lt,25:nt,26:_t,27:dt,30:29,31:6,36:At,37:st,38:K,39:mt,42:St,45:C},d(ft,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(Dt,Xt){if(!Xt.recoverable){var se=new Error(Dt);throw se.hash=Xt,se}this.trace(Dt)},parse:function(Dt){var Xt=this,se=[0],ce=[],ge=[null],Ot=[],$e=this.table,le="",Yt=0,te=0,at=0,re=2,Mt=1,Vt=Ot.slice.call(arguments,1),Ht=Object.create(this.lexer),Nt={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(Nt.yy[oe]=this.yy[oe]);Ht.setInput(Dt,Nt.yy),Nt.yy.lexer=Ht,Nt.yy.parser=this,Ht.yylloc===void 0&&(Ht.yylloc={});var Je=Ht.yylloc;Ot.push(Je);var me=Ht.options&&Ht.options.ranges;function Me(){var rn;return typeof(rn=ce.pop()||Ht.lex()||Mt)!="number"&&(rn instanceof Array&&(rn=(ce=rn).pop()),rn=Xt.symbols_[rn]||rn),rn}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var un,Ge,Oe,Ce,tn,ze,Xe,Ze,De,Pn={};;){if(Oe=se[se.length-1],this.defaultActions[Oe]?Ce=this.defaultActions[Oe]:(un==null&&(un=Me()),Ce=$e[Oe]&&$e[Oe][un]),Ce===void 0||!Ce.length||!Ce[0]){var Se="";for(ze in De=[],$e[Oe])this.terminals_[ze]&&ze>re&&De.push("'"+this.terminals_[ze]+"'");Se=Ht.showPosition?"Parse error on line "+(Yt+1)+`:
|
|
47
|
+
`+Ht.showPosition()+`
|
|
48
|
+
Expecting `+De.join(", ")+", got '"+(this.terminals_[un]||un)+"'":"Parse error on line "+(Yt+1)+": Unexpected "+(un==Mt?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(Se,{text:Ht.match,token:this.terminals_[un]||un,line:Ht.yylineno,loc:Je,expected:De})}if(Ce[0]instanceof Array&&Ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+un);switch(Ce[0]){case 1:se.push(un),ge.push(Ht.yytext),Ot.push(Ht.yylloc),se.push(Ce[1]),un=null,Ge?(un=Ge,Ge=null):(te=Ht.yyleng,le=Ht.yytext,Yt=Ht.yylineno,Je=Ht.yylloc,at>0);break;case 2:if(Xe=this.productions_[Ce[1]][1],Pn.$=ge[ge.length-Xe],Pn._$={first_line:Ot[Ot.length-(Xe||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(Xe||1)].first_column,last_column:Ot[Ot.length-1].last_column},me&&(Pn._$.range=[Ot[Ot.length-(Xe||1)].range[0],Ot[Ot.length-1].range[1]]),(tn=this.performAction.apply(Pn,[le,te,Yt,Nt.yy,Ce[1],ge,Ot].concat(Vt)))!==void 0)return tn;Xe&&(se=se.slice(0,-1*Xe*2),ge=ge.slice(0,-1*Xe),Ot=Ot.slice(0,-1*Xe)),se.push(this.productions_[Ce[1]][0]),ge.push(Pn.$),Ot.push(Pn._$),Ze=$e[se[se.length-2]][se[se.length-1]],se.push(Ze);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(Dt,Xt){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,Xt)},setInput:function(Dt,Xt){return this.yy=Xt||this.yy||{},this._input=Dt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Dt},unput:function(Dt){var Xt=Dt.length,se=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Xt),this.offset-=Xt;var ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),se.length-1&&(this.yylineno-=se.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:se?(se.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-se.length].length-se[0].length:this.yylloc.first_column-Xt},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-Xt]),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).
|
|
49
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),Xt=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
|
|
50
|
+
`+Xt+"^"},test_match:function(Dt,Xt){var se,ce,ge;if(this.options.backtrack_lexer&&(ge={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&&(ge.yylloc.range=this.yylloc.range.slice(0))),(ce=Dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ce?ce[ce.length-1].length-ce[ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Dt[0].length),this.matched+=Dt[0],se=this.performAction.call(this,this.yy,this,Xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var Ot in ge)this[Ot]=ge[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,Xt,se,ce;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),Ot=0;Ot<ge.length;Ot++)if((se=this._input.match(this.rules[ge[Ot]]))&&(!Xt||se[0].length>Xt[0].length)){if(Xt=se,ce=Ot,this.options.backtrack_lexer){if((Dt=this.test_match(se,ge[Ot]))!==!1)return Dt;if(this._backtrack){Xt=!1;continue}return!1}if(!this.options.flex)break}return Xt?(Dt=this.test_match(Xt,ge[ce]))!==!1&&Dt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
51
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Dt){this.conditionStack.push(Dt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,Xt,se,ce){switch(se){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),Xt.yytext=Xt.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),Xt.yytext=Xt.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),Xt.yytext=Xt.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(),Xt.yytext=Xt.yytext.substr(2).trim(),29;case 50:return this.popState(),Xt.yytext=Xt.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 Xt.yytext=Xt.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 de(){this.yy={}}return ye.lexer=pe,de.prototype=ye,ye.Parser=de,new de})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(3069).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},9763:(M,N,p)=>{M=p.nmd(M);var m=(function(){var d=function(X,J,lt,nt){for(lt=lt||{},nt=X.length;nt--;lt[X[nt]]=J);return lt},x=[1,2],y=[1,5],k=[6,9,11,17,18,19,21],C=[1,15],S=[1,16],I=[1,17],L=[1,21],Y=[4,6,9,11,17,18,19,21],W={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(X,J,lt,nt,_t,dt,At){var st=dt.length-1;switch(_t){case 1:return dt[st-1];case 3:case 7:case 8:this.$=[];break;case 4:dt[st-1].push(dt[st]),this.$=dt[st-1];break;case 5:case 6:this.$=dt[st];break;case 11:nt.setTitle(dt[st].substr(6)),this.$=dt[st].substr(6);break;case 12:nt.addSection(dt[st].substr(8)),this.$=dt[st].substr(8);break;case 13:nt.addTask(dt[st-1],dt[st]),this.$="task";break;case 15:nt.parseDirective("%%{","open_directive");break;case 16:nt.parseDirective(dt[st],"type_directive");break;case 17:dt[st]=dt[st].trim().replace(/'/g,'"'),nt.parseDirective(dt[st],"arg_directive");break;case 18:nt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:x,7:3,12:4,21:y},{1:[3]},d(k,[2,3],{5:6}),{3:7,4:x,7:3,12:4,21:y},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:C,18:S,19:I,21:y},{1:[2,2]},{14:19,15:[1,20],24:L},d([15,24],[2,16]),d(k,[2,8],{1:[2,1]}),d(k,[2,4]),{7:18,10:22,12:4,17:C,18:S,19:I,21:y},d(k,[2,6]),d(k,[2,7]),d(k,[2,11]),d(k,[2,12]),{20:[1,23]},d(k,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},d(k,[2,5]),d(k,[2,13]),d(Y,[2,9]),{14:27,24:L},{24:[2,17]},{11:[1,28]},d(Y,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(X,J){if(!J.recoverable){var lt=new Error(X);throw lt.hash=J,lt}this.trace(X)},parse:function(X){var J=this,lt=[0],nt=[],_t=[null],dt=[],At=this.table,st="",K=0,mt=0,St=0,Rt=2,ft=1,vt=dt.slice.call(arguments,1),$t=Object.create(this.lexer),jt={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(jt.yy[ye]=this.yy[ye]);$t.setInput(X,jt.yy),jt.yy.lexer=$t,jt.yy.parser=this,$t.yylloc===void 0&&($t.yylloc={});var pe=$t.yylloc;dt.push(pe);var de=$t.options&&$t.options.ranges;function Dt(){var Mt;return typeof(Mt=nt.pop()||$t.lex()||ft)!="number"&&(Mt instanceof Array&&(Mt=(nt=Mt).pop()),Mt=J.symbols_[Mt]||Mt),Mt}typeof jt.yy.parseError=="function"?this.parseError=jt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Xt,se,ce,ge,Ot,$e,le,Yt,te,at={};;){if(ce=lt[lt.length-1],this.defaultActions[ce]?ge=this.defaultActions[ce]:(Xt==null&&(Xt=Dt()),ge=At[ce]&&At[ce][Xt]),ge===void 0||!ge.length||!ge[0]){var re="";for($e in te=[],At[ce])this.terminals_[$e]&&$e>Rt&&te.push("'"+this.terminals_[$e]+"'");re=$t.showPosition?"Parse error on line "+(K+1)+`:
|
|
52
|
+
`+$t.showPosition()+`
|
|
53
|
+
Expecting `+te.join(", ")+", got '"+(this.terminals_[Xt]||Xt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(Xt==ft?"end of input":"'"+(this.terminals_[Xt]||Xt)+"'"),this.parseError(re,{text:$t.match,token:this.terminals_[Xt]||Xt,line:$t.yylineno,loc:pe,expected:te})}if(ge[0]instanceof Array&&ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+Xt);switch(ge[0]){case 1:lt.push(Xt),_t.push($t.yytext),dt.push($t.yylloc),lt.push(ge[1]),Xt=null,se?(Xt=se,se=null):(mt=$t.yyleng,st=$t.yytext,K=$t.yylineno,pe=$t.yylloc,St>0);break;case 2:if(le=this.productions_[ge[1]][1],at.$=_t[_t.length-le],at._$={first_line:dt[dt.length-(le||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(le||1)].first_column,last_column:dt[dt.length-1].last_column},de&&(at._$.range=[dt[dt.length-(le||1)].range[0],dt[dt.length-1].range[1]]),(Ot=this.performAction.apply(at,[st,mt,K,jt.yy,ge[1],_t,dt].concat(vt)))!==void 0)return Ot;le&&(lt=lt.slice(0,-1*le*2),_t=_t.slice(0,-1*le),dt=dt.slice(0,-1*le)),lt.push(this.productions_[ge[1]][0]),_t.push(at.$),dt.push(at._$),Yt=At[lt[lt.length-2]][lt[lt.length-1]],lt.push(Yt);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(X,J){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,J)},setInput:function(X,J){return this.yy=J||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var X=this._input[0];return this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X,X.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var J=X.length,lt=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-J),this.offset-=J;var nt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lt.length-1&&(this.yylineno-=lt.length-1);var _t=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lt?(lt.length===nt.length?this.yylloc.first_column:0)+nt[nt.length-lt.length].length-lt[0].length:this.yylloc.first_column-J},this.options.ranges&&(this.yylloc.range=[_t[0],_t[0]+this.yyleng-J]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
54
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),J=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
|
|
55
|
+
`+J+"^"},test_match:function(X,J){var lt,nt,_t;if(this.options.backtrack_lexer&&(_t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_t.yylloc.range=this.yylloc.range.slice(0))),(nt=X[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nt?nt[nt.length-1].length-nt[nt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],lt=this.performAction.call(this,this.yy,this,J,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var dt in _t)this[dt]=_t[dt];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,J,lt,nt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _t=this._currentRules(),dt=0;dt<_t.length;dt++)if((lt=this._input.match(this.rules[_t[dt]]))&&(!J||lt[0].length>J[0].length)){if(J=lt,nt=dt,this.options.backtrack_lexer){if((X=this.test_match(lt,_t[dt]))!==!1)return X;if(this._backtrack){J=!1;continue}return!1}if(!this.options.flex)break}return J?(X=this.test_match(J,_t[nt]))!==!1&&X:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
56
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(X){return(X=this.conditionStack.length-1-Math.abs(X||0))>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,J,lt,nt){switch(lt){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function V(){this.yy={}}return W.lexer=H,V.prototype=W,W.Parser=V,new V})();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var x=p(9143).readFileSync(p(6470).normalize(d[1]),"utf8");return N.parser.parse(x)},p.c[p.s]===M&&N.main(process.argv.slice(1))},9609:M=>{var N=/^(%20|\s)*(javascript|data)/im,p=/[^\x20-\x7E]/gim,m=/^([^:]+):/gm,d=[".","/"];M.exports={sanitizeUrl:function(x){if(!x)return"about:blank";var y,k,C=x.replace(p,"").trim();return(function(S){return d.indexOf(S[0])>-1})(C)?C:(k=C.match(m))?(y=k[0],N.test(y)?"about:blank":C):"about:blank"}}},3841:M=>{M.exports=function(N,p){return N.intersect(p)}},7458:(M,N,p)=>{p.d(N,{Z:()=>J_});var m=p(1941),d=p.n(m),x={debug:1,info:2,warn:3,error:4,fatal:5},y={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])),y.trace=function(){},y.debug=function(){},y.info=function(){},y.warn=function(){},y.error=function(){},y.fatal=function(){},t<=x.fatal&&(y.fatal=console.error?console.error.bind(console,C("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",C("FATAL"))),t<=x.error&&(y.error=console.error?console.error.bind(console,C("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",C("ERROR"))),t<=x.warn&&(y.warn=console.warn?console.warn.bind(console,C("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",C("WARN"))),t<=x.info&&(y.info=console.info?console.info.bind(console,C("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",C("INFO"))),t<=x.debug&&(y.debug=console.debug?console.debug.bind(console,C("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",C("DEBUG")))},C=function(t){var e=d()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function S(t,e){let r;if(e===void 0)for(const o of t)o!=null&&(r<o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let u of t)(u=e(u,++o,t))!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}return r}function I(t,e){let r;if(e===void 0)for(const o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let u of t)(u=e(u,++o,t))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function L(t){return t}var Y=1e-6;function W(t){return"translate("+t+",0)"}function H(t){return"translate(0,"+t+")"}function V(t){return e=>+t(e)}function X(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function J(){return!this.__axis}function lt(t,e){var r=[],o=null,u=null,c=6,h=6,g=3,w=typeof window<"u"&&window.devicePixelRatio>1?0:.5,_=t===1||t===4?-1:1,D=t===4||t===2?"x":"y",j=t===1||t===3?W:H;function P(q){var ot=o??(e.ticks?e.ticks.apply(e,r):e.domain()),tt=u??(e.tickFormat?e.tickFormat.apply(e,r):L),gt=Math.max(c,0)+g,ht=e.range(),wt=+ht[0]+w,Tt=+ht[ht.length-1]+w,Pt=(e.bandwidth?X:V)(e.copy(),w),Gt=q.selection?q.selection():q,Et=Gt.selectAll(".domain").data([null]),ee=Gt.selectAll(".tick").data(ot,e).order(),ie=ee.exit(),kt=ee.enter().append("g").attr("class","tick"),It=ee.select("line"),Ct=ee.select("text");Et=Et.merge(Et.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ee=ee.merge(kt),It=It.merge(kt.append("line").attr("stroke","currentColor").attr(D+"2",_*c)),Ct=Ct.merge(kt.append("text").attr("fill","currentColor").attr(D,_*gt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),q!==Gt&&(Et=Et.transition(q),ee=ee.transition(q),It=It.transition(q),Ct=Ct.transition(q),ie=ie.transition(q).attr("opacity",Y).attr("transform",(function(yt){return isFinite(yt=Pt(yt))?j(yt+w):this.getAttribute("transform")})),kt.attr("opacity",Y).attr("transform",(function(yt){var Ft=this.parentNode.__axis;return j((Ft&&isFinite(Ft=Ft(yt))?Ft:Pt(yt))+w)}))),ie.remove(),Et.attr("d",t===4||t===2?h?"M"+_*h+","+wt+"H"+w+"V"+Tt+"H"+_*h:"M"+w+","+wt+"V"+Tt:h?"M"+wt+","+_*h+"V"+w+"H"+Tt+"V"+_*h:"M"+wt+","+w+"H"+Tt),ee.attr("opacity",1).attr("transform",(function(yt){return j(Pt(yt)+w)})),It.attr(D+"2",_*c),Ct.attr(D,_*gt).text(tt),Gt.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),Gt.each((function(){this.__axis=Pt}))}return P.scale=function(q){return arguments.length?(e=q,P):e},P.ticks=function(){return r=Array.from(arguments),P},P.tickArguments=function(q){return arguments.length?(r=q==null?[]:Array.from(q),P):r.slice()},P.tickValues=function(q){return arguments.length?(o=q==null?null:Array.from(q),P):o&&o.slice()},P.tickFormat=function(q){return arguments.length?(u=q,P):u},P.tickSize=function(q){return arguments.length?(c=h=+q,P):c},P.tickSizeInner=function(q){return arguments.length?(c=+q,P):c},P.tickSizeOuter=function(q){return arguments.length?(h=+q,P):h},P.tickPadding=function(q){return arguments.length?(g=+q,P):g},P.offset=function(q){return arguments.length?(w=+q,P):w},P}function nt(){}function _t(t){return t==null?nt:function(){return this.querySelector(t)}}function dt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function At(){return[]}function st(t){return t==null?At:function(){return this.querySelectorAll(t)}}function K(t){return function(){return this.matches(t)}}function mt(t){return function(e){return e.matches(t)}}var St=Array.prototype.find;function Rt(){return this.firstElementChild}var ft=Array.prototype.filter;function vt(){return Array.from(this.children)}function $t(t){return new Array(t.length)}function jt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ye(t){return function(){return t}}function pe(t,e,r,o,u,c){for(var h,g=0,w=e.length,_=c.length;g<_;++g)(h=e[g])?(h.__data__=c[g],o[g]=h):r[g]=new jt(t,c[g]);for(;g<w;++g)(h=e[g])&&(u[g]=h)}function de(t,e,r,o,u,c,h){var g,w,_,D=new Map,j=e.length,P=c.length,q=new Array(j);for(g=0;g<j;++g)(w=e[g])&&(q[g]=_=h.call(w,w.__data__,g,e)+"",D.has(_)?u[g]=w:D.set(_,w));for(g=0;g<P;++g)_=h.call(t,c[g],g,c)+"",(w=D.get(_))?(o[g]=w,w.__data__=c[g],D.delete(_)):r[g]=new jt(t,c[g]);for(g=0;g<j;++g)(w=e[g])&&D.get(q[g])===w&&(u[g]=w)}function Dt(t){return t.__data__}function Xt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function se(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}jt.prototype={constructor:jt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ce="http://www.w3.org/1999/xhtml";const ge={svg:"http://www.w3.org/2000/svg",xhtml:ce,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ge.hasOwnProperty(e)?{space:ge[e],local:t}:t}function $e(t){return function(){this.removeAttribute(t)}}function le(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yt(t,e){return function(){this.setAttribute(t,e)}}function te(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function at(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function re(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 Vt(t){return function(){this.style.removeProperty(t)}}function Ht(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Nt(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function oe(t,e){return t.style.getPropertyValue(e)||Mt(t).getComputedStyle(t,null).getPropertyValue(e)}function Je(t){return function(){delete this[t]}}function me(t,e){return function(){this[t]=e}}function Me(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function un(t){return t.trim().split(/^|\s+/)}function Ge(t){return t.classList||new Oe(t)}function Oe(t){this._node=t,this._names=un(t.getAttribute("class")||"")}function Ce(t,e){for(var r=Ge(t),o=-1,u=e.length;++o<u;)r.add(e[o])}function tn(t,e){for(var r=Ge(t),o=-1,u=e.length;++o<u;)r.remove(e[o])}function ze(t){return function(){Ce(this,t)}}function Xe(t){return function(){tn(this,t)}}function Ze(t,e){return function(){(e.apply(this,arguments)?Ce:tn)(this,t)}}function De(){this.textContent=""}function Pn(t){return function(){this.textContent=t}}function Se(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function rn(){this.innerHTML=""}function gn(t){return function(){this.innerHTML=t}}function Dr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function yn(){this.nextSibling&&this.parentNode.appendChild(this)}function Zn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function on(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===ce&&e.documentElement.namespaceURI===ce?e.createElement(t):e.createElementNS(r,t)}}function fn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Qe(t){var e=Ot(t);return(e.local?fn:on)(e)}function wn(){return null}function bn(){var t=this.parentNode;t&&t.removeChild(this)}function jn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Yn(){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="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}}))}function _n(t){return function(){var e=this.__on;if(e){for(var r,o=0,u=-1,c=e.length;o<c;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++u]=r:this.removeEventListener(r.type,r.listener,r.options);++u?e.length=u:delete this.__on}}}function Un(t,e,r){return function(){var o,u=this.__on,c=(function(w){return function(_){w.call(this,_,this.__data__)}})(e);if(u){for(var h=0,g=u.length;h<g;++h)if((o=u[h]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=c,o.options=r),void(o.value=e)}this.addEventListener(t.type,c,r),o={type:t.type,name:t.name,value:e,listener:c,options:r},u?u.push(o):this.__on=[o]}}function Rn(t,e,r){var o=Mt(t),u=o.CustomEvent;typeof u=="function"?u=new u(e,r):(u=o.document.createEvent("Event"),r?(u.initEvent(e,r.bubbles,r.cancelable),u.detail=r.detail):u.initEvent(e,!1,!1)),t.dispatchEvent(u)}function qn(t,e){return function(){return Rn(this,t,e)}}function Hn(t,e){return function(){return Rn(this,t,e.apply(this,arguments))}}Oe.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 Qn=[null];function Cn(t,e){this._groups=t,this._parents=e}function Bn(){return new Cn([[document.documentElement]],Qn)}Cn.prototype=Bn.prototype={constructor:Cn,select:function(t){typeof t!="function"&&(t=_t(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h,g=e[u],w=g.length,_=o[u]=new Array(w),D=0;D<w;++D)(c=g[D])&&(h=t.call(c,c.__data__,D,g))&&("__data__"in c&&(h.__data__=c.__data__),_[D]=h);return new Cn(o,this._parents)},selectAll:function(t){t=typeof t=="function"?(function(D){return function(){return dt(D.apply(this,arguments))}})(t):st(t);for(var e=this._groups,r=e.length,o=[],u=[],c=0;c<r;++c)for(var h,g=e[c],w=g.length,_=0;_<w;++_)(h=g[_])&&(o.push(t.call(h,h.__data__,_,g)),u.push(h));return new Cn(o,u)},selectChild:function(t){return this.select(t==null?Rt:(function(e){return function(){return St.call(this.children,e)}})(typeof t=="function"?t:mt(t)))},selectChildren:function(t){return this.selectAll(t==null?vt:(function(e){return function(){return ft.call(this.children,e)}})(typeof t=="function"?t:mt(t)))},filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new Cn(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Dt);var r=e?de:pe,o=this._parents,u=this._groups;typeof t!="function"&&(t=ye(t));for(var c=u.length,h=new Array(c),g=new Array(c),w=new Array(c),_=0;_<c;++_){var D=o[_],j=u[_],P=j.length,q=Xt(t.call(D,D&&D.__data__,_,o)),ot=q.length,tt=g[_]=new Array(ot),gt=h[_]=new Array(ot),ht=w[_]=new Array(P);r(D,j,tt,gt,ht,q,e);for(var wt,Tt,Pt=0,Gt=0;Pt<ot;++Pt)if(wt=tt[Pt]){for(Pt>=Gt&&(Gt=Pt+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(h=new Cn(h,o))._enter=g,h._exit=w,h},enter:function(){return new Cn(this._enter||this._groups.map($t),this._parents)},exit:function(){return new Cn(this._exit||this._groups.map($t),this._parents)},join:function(t,e,r){var o=this.enter(),u=this,c=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(u=e(u))&&(u=u.selection()),r==null?c.remove():r(c),o&&u?o.merge(u).order():u},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,u=r.length,c=o.length,h=Math.min(u,c),g=new Array(u),w=0;w<h;++w)for(var _,D=r[w],j=o[w],P=D.length,q=g[w]=new Array(P),ot=0;ot<P;++ot)(_=D[ot]||j[ot])&&(q[ot]=_);for(;w<u;++w)g[w]=r[w];return new Cn(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,u=t[e],c=u.length-1,h=u[c];--c>=0;)(o=u[c])&&(h&&4^o.compareDocumentPosition(h)&&h.parentNode.insertBefore(o,h),h=o);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=se);for(var r=this._groups,o=r.length,u=new Array(o),c=0;c<o;++c){for(var h,g=r[c],w=g.length,_=u[c]=new Array(w),D=0;D<w;++D)(h=g[D])&&(_[D]=h);_.sort(e)}return new Cn(u,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 o=t[e],u=0,c=o.length;u<c;++u){var h=o[u];if(h)return h}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,o=e.length;r<o;++r)for(var u,c=e[r],h=0,g=c.length;h<g;++h)(u=c[h])&&t.call(u,u.__data__,h,c);return this},attr:function(t,e){var r=Ot(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?le:$e:typeof e=="function"?r.local?re:at:r.local?te:Yt)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?Vt:typeof e=="function"?Nt:Ht)(t,e,r??"")):oe(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Je:typeof e=="function"?Me:me)(t,e)):this.node()[t]},classed:function(t,e){var r=un(t+"");if(arguments.length<2){for(var o=Ge(this.node()),u=-1,c=r.length;++u<c;)if(!o.contains(r[u]))return!1;return!0}return this.each((typeof e=="function"?Ze:e?ze:Xe)(r,e))},text:function(t){return arguments.length?this.each(t==null?De:(typeof t=="function"?Se:Pn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?rn:(typeof t=="function"?Dr:gn)(t)):this.node().innerHTML},raise:function(){return this.each(yn)},lower:function(){return this.each(Zn)},append:function(t){var e=typeof t=="function"?t:Qe(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var r=typeof t=="function"?t:Qe(t),o=e==null?wn:typeof e=="function"?e:_t(e);return this.select((function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(bn)},clone:function(t){return this.select(t?Yn:jn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,u,c=Cr(t+""),h=c.length;if(!(arguments.length<2)){for(g=e?Un:_n,o=0;o<h;++o)this.each(g(c[o],e,r));return this}var g=this.node().__on;if(g){for(var w,_=0,D=g.length;_<D;++_)for(o=0,w=g[_];o<h;++o)if((u=c[o]).type===w.type&&u.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Hn:qn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,u=t[e],c=0,h=u.length;c<h;++c)(o=u[c])&&(yield o)}};const sn=Bn;var Fn={value:()=>{}};function pn(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new ri(o)}function ri(t){this._=t}function pr(t,e){return t.trim().split(/^|\s+/).map((function(r){var o="",u=r.indexOf(".");if(u>=0&&(o=r.slice(u+1),r=r.slice(0,u)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}}))}function Li(t,e){for(var r,o=0,u=t.length;o<u;++o)if((r=t[o]).name===e)return r.value}function Ln(t,e,r){for(var o=0,u=t.length;o<u;++o)if(t[o].name===e){t[o]=Fn,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}ri.prototype=pn.prototype={constructor:ri,on:function(t,e){var r,o=this._,u=pr(t+"",o),c=-1,h=u.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++c<h;)if(r=(t=u[c]).type)o[r]=Ln(o[r],t.name,e);else if(e==null)for(r in o)o[r]=Ln(o[r],t.name,null);return this}for(;++c<h;)if((r=(t=u[c]).type)&&(r=Li(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ri(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,u=new Array(r),c=0;c<r;++c)u[c]=arguments[c+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=0,r=(o=this._[t]).length;c<r;++c)o[c].value.apply(e,u)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],u=0,c=o.length;u<c;++u)o[u].value.apply(e,r)}};const wo=pn;var ha,ii,Or=0,Ir=0,$r=0,Zr=0,Sr=0,Qr=0,Br=typeof performance=="object"&&performance.now?performance:Date,ki=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function si(){return Sr||(ki(er),Sr=Br.now()+Qr)}function er(){Sr=0}function qr(){this._call=this._time=this._next=null}function fa(t,e,r){var o=new qr;return o.restart(t,e,r),o}function Kr(){Sr=(Zr=Br.now())+Qr,Or=Ir=0;try{(function(){si(),++Or;for(var t,e=ha;e;)(t=Sr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Or})()}finally{Or=0,(function(){for(var t,e,r=ha,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ha=e);ii=t,ro(o)})(),Sr=0}}function da(){var t=Br.now(),e=t-Zr;e>1e3&&(Qr-=e,Zr=t)}function ro(t){Or||(Ir&&(Ir=clearTimeout(Ir)),t-Sr>24?(t<1/0&&(Ir=setTimeout(Kr,t-Br.now()-Qr)),$r&&($r=clearInterval($r))):($r||(Zr=Br.now(),$r=setInterval(da,1e3)),Or=1,ki(Kr)))}function ui(t,e,r){var o=new qr;return e=e==null?0:+e,o.restart((u=>{o.stop(),t(u+e)}),e,r),o}qr.prototype=fa.prototype={constructor:qr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?si():+r)+(e==null?0:+e),this._next||ii===this||(ii?ii._next=this:ha=this,ii=this),this._call=t,this._time=r,ro()},stop:function(){this._call&&(this._call=null,this._time=1/0,ro())}};var an=wo("start","end","cancel","interrupt"),$n=[];function Tn(t,e,r,o,u,c){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,w,_){var D,j=g.__transition;function P(tt){var gt,ht,wt,Tt;if(_.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===_.name){if(Tt.state===3)return ui(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete j[gt])}if(ui((function(){_.state===3&&(_.state=4,_.timer.restart(q,_.delay,_.time),q(tt))})),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(wt=_.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=_.tween[gt].value.call(g,g.__data__,_.index,_.group))&&(D[++ht]=Tt);D.length=ht+1}}function q(tt){for(var gt=tt<_.duration?_.ease.call(null,tt/_.duration):(_.timer.restart(ot),_.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(g,gt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ot())}function ot(){for(var tt in _.state=6,_.timer.stop(),delete j[w],j)return;delete g.__transition}j[w]=_,_.timer=fa((function(tt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=tt&&P(tt-_.delay)}),0,_.time)})(t,r,{name:e,index:o,group:u,on:an,tween:$n,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:0})}function Be(t,e){var r=pt(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Wn(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 Wr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Zt,Ti=180/Math.PI,$i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ja(t,e,r,o,u,c){var h,g,w;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(w=t*r+e*o)&&(r-=t*w,o-=e*w),(g=Math.sqrt(r*r+o*o))&&(r/=g,o/=g,w/=g),t*o<e*r&&(t=-t,e=-e,w=-w,h=-h),{translateX:u,translateY:c,rotate:Math.atan2(e,t)*Ti,skewX:Math.atan(w)*Ti,scaleX:h,scaleY:g}}function io(t,e,r,o){function u(c){return c.length?c.pop()+" ":""}return function(c,h){var g=[],w=[];return c=t(c),h=t(h),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push("translate(",null,e,null,r);ot.push({i:tt-4,x:Wr(_,j)},{i:tt-2,x:Wr(D,P)})}else(j||P)&&q.push("translate("+j+e+P+r)})(c.translateX,c.translateY,h.translateX,h.translateY,g,w),(function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(u(j)+"rotate(",null,o)-2,x:Wr(_,D)})):D&&j.push(u(j)+"rotate("+D+o)})(c.rotate,h.rotate,g,w),(function(_,D,j,P){_!==D?P.push({i:j.push(u(j)+"skewX(",null,o)-2,x:Wr(_,D)}):D&&j.push(u(j)+"skewX("+D+o)})(c.skewX,h.skewX,g,w),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push(u(q)+"scale(",null,",",null,")");ot.push({i:tt-4,x:Wr(_,j)},{i:tt-2,x:Wr(D,P)})}else j===1&&P===1||q.push(u(q)+"scale("+j+","+P+")")})(c.scaleX,c.scaleY,h.scaleX,h.scaleY,g,w),c=h=null,function(_){for(var D,j=-1,P=w.length;++j<P;)g[(D=w[j]).i]=D.x(_);return g.join("")}}}var ko=io((function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?$i:ja(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),To=io((function(t){return t==null?$i:(Zt||(Zt=document.createElementNS("http://www.w3.org/2000/svg","g")),Zt.setAttribute("transform",t),(t=Zt.transform.baseVal.consolidate())?ja((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):$i)}),", ",")",")");function Hr(t,e){var r,o;return function(){var u=Wn(this,t),c=u.tween;if(c!==r){for(var h=0,g=(o=r=c).length;h<g;++h)if(o[h].name===e){(o=o.slice()).splice(h,1);break}}u.tween=o}}function Wi(t,e,r){var o,u;if(typeof r!="function")throw new Error;return function(){var c=Wn(this,t),h=c.tween;if(h!==o){u=(o=h).slice();for(var g={name:e,value:r},w=0,_=u.length;w<_;++w)if(u[w].name===e){u[w]=g;break}w===_&&u.push(g)}c.tween=u}}function En(t,e,r){var o=t._id;return t.each((function(){var u=Wn(this,o);(u.value||(u.value={}))[e]=r.apply(this,arguments)})),function(u){return pt(u,o).value[e]}}function Ta(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ya(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function gr(){}var kr=.7,di=1/kr,Jr="\\s*([+-]?\\d+)\\s*",Rr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ci=/^#([0-9a-f]{3,8})$/,Vr=new RegExp("^rgb\\("+[Jr,Jr,Jr]+"\\)$"),Vi=new RegExp("^rgb\\("+[Fr,Fr,Fr]+"\\)$"),Ii=new RegExp("^rgba\\("+[Jr,Jr,Jr,Rr]+"\\)$"),Ei=new RegExp("^rgba\\("+[Fr,Fr,Fr,Rr]+"\\)$"),ao=new RegExp("^hsl\\("+[Rr,Fr,Fr]+"\\)$"),Bt=new RegExp("^hsla\\("+[Rr,Fr,Fr,Rr]+"\\)$"),Ue={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 je(){return this.rgb().formatHex()}function yr(){return this.rgb().formatRgb()}function _r(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ci.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?pi(e):r===3?new Pr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ti(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ti(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=Vr.exec(t))?new Pr(e[1],e[2],e[3],1):(e=Vi.exec(t))?new Pr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ii.exec(t))?ti(e[1],e[2],e[3],e[4]):(e=Ei.exec(t))?ti(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ao.exec(t))?oo(e[1],e[2]/100,e[3]/100,1):(e=Bt.exec(t))?oo(e[1],e[2]/100,e[3]/100,e[4]):Ue.hasOwnProperty(t)?pi(Ue[t]):t==="transparent"?new Pr(NaN,NaN,NaN,0):null}function pi(t){return new Pr(t>>16&255,t>>8&255,255&t,1)}function ti(t,e,r,o){return o<=0&&(t=e=r=NaN),new Pr(t,e,r,o)}function os(t){return t instanceof gr||(t=_r(t)),t?new Pr((t=t.rgb()).r,t.g,t.b,t.opacity):new Pr}function ia(t,e,r,o){return arguments.length===1?os(t):new Pr(t,e,r,o??1)}function Pr(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function Ds(){return"#"+hu(this.r)+hu(this.g)+hu(this.b)}function za(){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 hu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oo(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ri(t,e,r,o)}function fu(t){if(t instanceof Ri)return new Ri(t.h,t.s,t.l,t.opacity);if(t instanceof gr||(t=_r(t)),!t)return new Ri;if(t instanceof Ri)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,u=Math.min(e,r,o),c=Math.max(e,r,o),h=NaN,g=c-u,w=(c+u)/2;return g?(h=e===c?(r-o)/g+6*(r<o):r===c?(o-e)/g+2:(e-r)/g+4,g/=w<.5?c+u:2-c-u,h*=60):g=w>0&&w<1?0:h,new Ri(h,g,w,t.opacity)}function Ri(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function ei(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ta(gr,_r,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:je,formatHex:je,formatHsl:function(){return fu(this).formatHsl()},formatRgb:yr,toString:yr}),Ta(Pr,ia,Ya(gr,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Pr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?kr:Math.pow(kr,t),new Pr(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:Ds,formatHex:Ds,formatRgb:za,toString:za})),Ta(Ri,(function(t,e,r,o){return arguments.length===1?fu(t):new Ri(t,e,r,o??1)}),Ya(gr,{brighter:function(t){return t=t==null?di:Math.pow(di,t),new Ri(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?kr:Math.pow(kr,t),new Ri(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,o=r+(r<.5?r:1-r)*e,u=2*r-o;return new Pr(ei(t>=240?t-240:t+120,u,o),ei(t,u,o),ei(t<120?t+240:t-120,u,o),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 xc=t=>()=>t;function wc(t,e){var r=e-t;return r?(function(o,u){return function(c){return o+c*u}})(t,r):xc(isNaN(t)?e:t)}const kc=(function t(e){var r=(function(u){return(u=+u)==1?wc:function(c,h){return h-c?(function(g,w,_){return g=Math.pow(g,_),w=Math.pow(w,_)-g,_=1/_,function(D){return Math.pow(g+D*w,_)}})(c,h,u):xc(isNaN(c)?h:c)}})(e);function o(u,c){var h=r((u=ia(u)).r,(c=ia(c)).r),g=r(u.g,c.g),w=r(u.b,c.b),_=wc(u.opacity,c.opacity);return function(D){return u.r=h(D),u.g=g(D),u.b=w(D),u.opacity=_(D),u+""}}return o.gamma=t,o})(1);var Ua=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tc=new RegExp(Ua.source,"g");function Ec(t,e){var r,o,u,c=Ua.lastIndex=Tc.lastIndex=0,h=-1,g=[],w=[];for(t+="",e+="";(r=Ua.exec(t))&&(o=Tc.exec(e));)(u=o.index)>c&&(u=e.slice(c,u),g[h]?g[h]+=u:g[++h]=u),(r=r[0])===(o=o[0])?g[h]?g[h]+=o:g[++h]=o:(g[++h]=null,w.push({i:h,x:Wr(r,o)})),c=Tc.lastIndex;return c<e.length&&(u=e.slice(c),g[h]?g[h]+=u:g[++h]=u),g.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)g[(D=w[j]).i]=D.x(_);return g.join("")})}function qa(t,e){var r;return(typeof e=="number"?Wr:e instanceof _r?kc:(r=_r(e))?(e=r,kc):Ec)(t,e)}function Fe(t){return function(){this.removeAttribute(t)}}function ql(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ar(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttribute(t);return h===c?null:h===o?u:u=e(o=h,r)}}function du(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===c?null:h===o?u:u=e(o=h,r)}}function pu(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttribute(t))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttribute(t)}}function Cc(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttributeNS(t.space,t.local)}}function Ea(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function gi(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Os(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&gi(t,c)),r}return u._value=e,u}function Hl(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&Ea(t,c)),r}return u._value=e,u}function Sc(t,e){return function(){Be(this,t).delay=+e.apply(this,arguments)}}function Eo(t,e){return e=+e,function(){Be(this,t).delay=e}}function $l(t,e){return function(){Wn(this,t).duration=+e.apply(this,arguments)}}function Of(t,e){return e=+e,function(){Wn(this,t).duration=e}}function Ad(t,e){if(typeof e!="function")throw new Error;return function(){Wn(this,t).ease=e}}function Bf(t,e,r){var o,u,c=(function(h){return(h+"").trim().split(/^|\s+/).every((function(g){var w=g.indexOf(".");return w>=0&&(g=g.slice(0,w)),!g||g==="start"}))})(e)?Be:Wn;return function(){var h=c(this,t),g=h.on;g!==o&&(u=(o=g).copy()).on(e,r),h.on=u}}var Lf=sn.prototype.constructor;function pa(t){return function(){this.style.removeProperty(t)}}function If(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Wl(t,e,r){var o,u;function c(){var h=e.apply(this,arguments);return h!==u&&(o=(u=h)&&If(t,h,r)),o}return c._value=e,c}function Vl(t){return function(e){this.textContent=t.call(this,e)}}function Co(t){var e,r;function o(){var u=t.apply(this,arguments);return u!==r&&(e=(r=u)&&Vl(u)),e}return o._value=t,o}var gu=0;function Ha(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function yu(){return++gu}var ga=sn.prototype;Ha.prototype={constructor:Ha,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=_t(t));for(var o=this._groups,u=o.length,c=new Array(u),h=0;h<u;++h)for(var g,w,_=o[h],D=_.length,j=c[h]=new Array(D),P=0;P<D;++P)(g=_[P])&&(w=t.call(g,g.__data__,P,_))&&("__data__"in g&&(w.__data__=g.__data__),j[P]=w,Tn(j[P],e,r,P,j,pt(g,r)));return new Ha(c,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=st(t));for(var o=this._groups,u=o.length,c=[],h=[],g=0;g<u;++g)for(var w,_=o[g],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,q=t.call(w,w.__data__,j,_),ot=pt(w,r),tt=0,gt=q.length;tt<gt;++tt)(P=q[tt])&&Tn(P,e,r,tt,q,ot);c.push(q),h.push(w)}return new Ha(c,h,e,r)},selectChild:ga.selectChild,selectChildren:ga.selectChildren,filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new Ha(o,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,o=e.length,u=r.length,c=Math.min(o,u),h=new Array(o),g=0;g<c;++g)for(var w,_=e[g],D=r[g],j=_.length,P=h[g]=new Array(j),q=0;q<j;++q)(w=_[q]||D[q])&&(P[q]=w);for(;g<o;++g)h[g]=e[g];return new Ha(h,this._parents,this._name,this._id)},selection:function(){return new Lf(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=yu(),o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)if(h=g[_]){var D=pt(h,e);Tn(h,t,r,_,g,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new Ha(o,this._parents,t,r)},call:ga.call,nodes:ga.nodes,node:ga.node,size:ga.size,empty:ga.empty,each:ga.each,on:function(t,e){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(t):this.each(Bf(r,t,e))},attr:function(t,e){var r=Ot(t),o=r==="transform"?To:qa;return this.attrTween(t,typeof e=="function"?(r.local?Cc:pu)(r,o,En(this,"attr."+t,e)):e==null?(r.local?ql:Fe)(r):(r.local?du:Ar)(r,o,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 o=Ot(t);return this.tween(r,(o.local?Os:Hl)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?ko:qa;return e==null?this.styleTween(t,(function(u,c){var h,g,w;return function(){var _=oe(this,u),D=(this.style.removeProperty(u),oe(this,u));return _===D?null:_===h&&D===g?w:w=c(h=_,g=D)}})(t,o)).on("end.style."+t,pa(t)):typeof e=="function"?this.styleTween(t,(function(u,c,h){var g,w,_;return function(){var D=oe(this,u),j=h(this),P=j+"";return j==null&&(this.style.removeProperty(u),P=j=oe(this,u)),D===P?null:D===g&&P===w?_:(w=P,_=c(g=D,j))}})(t,o,En(this,"style."+t,e))).each((function(u,c){var h,g,w,_,D="style."+c,j="end."+D;return function(){var P=Wn(this,u),q=P.on,ot=P.value[D]==null?_||(_=pa(c)):void 0;q===h&&w===ot||(g=(h=q).copy()).on(j,w=ot),P.on=g}})(this._id,t)):this.styleTween(t,(function(u,c,h){var g,w,_=h+"";return function(){var D=oe(this,u);return D===_?null:D===g?w:w=c(g=D,h)}})(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Wl(t,e,r??""))},text:function(t){return this.tween("text",typeof t=="function"?(function(e){return function(){var r=e(this);this.textContent=r??""}})(En(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,Co(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 o,u=pt(this.node(),r).tween,c=0,h=u.length;c<h;++c)if((o=u[c]).name===t)return o.value;return null}return this.each((e==null?Hr:Wi)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Sc:Eo)(e,t)):pt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?$l:Of)(e,t)):pt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Ad(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 o=r.apply(this,arguments);if(typeof o!="function")throw new Error;Wn(this,e).ease=o}})(this._id,t))},end:function(){var t,e,r=this,o=r._id,u=r.size();return new Promise((function(c,h){var g={value:h},w={value:function(){--u==0&&c()}};r.each((function(){var _=Wn(this,o),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(w)),_.on=e})),u===0&&c()}))},[Symbol.iterator]:ga[Symbol.iterator]};var ss={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ac(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}sn.prototype.interrupt=function(t){return this.each((function(){(function(e,r){var o,u,c,h=e.__transition,g=!0;if(h){for(c in r=r==null?null:r+"",h)(o=h[c]).name===r?(u=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(u?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete h[c]):g=!1;g&&delete e.__transition}})(this,t)}))},sn.prototype.transition=function(t){var e,r;t instanceof Ha?(e=t._id,t=t._name):(e=yu(),(r=ss).time=si(),t=t==null?null:t+"");for(var o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)(h=g[_])&&Tn(h,t,e,_,g,r||Ac(h,e));return new Ha(o,this._parents,t,e)};function So(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Fi(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function li(){}var $a=.7,Ca=1/$a,Gi="\\s*([+-]?\\d+)\\s*",zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",E="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,$=new RegExp("^rgb\\("+[Gi,Gi,Gi]+"\\)$"),it=new RegExp("^rgb\\("+[E,E,E]+"\\)$"),Wt=new RegExp("^rgba\\("+[Gi,Gi,Gi,zn]+"\\)$"),fe=new RegExp("^rgba\\("+[E,E,E,zn]+"\\)$"),xe=new RegExp("^hsl\\("+[zn,E,E]+"\\)$"),Ae=new RegExp("^hsla\\("+[zn,E,E,zn]+"\\)$"),Ne={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ye(){return this.rgb().formatHex()}function We(){return this.rgb().formatRgb()}function mn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=R.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?cn(e):r===3?new ar(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?or(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?or(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=$.exec(t))?new ar(e[1],e[2],e[3],1):(e=it.exec(t))?new ar(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Wt.exec(t))?or(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?or(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xe.exec(t))?Md(e[1],e[2]/100,e[3]/100,1):(e=Ae.exec(t))?Md(e[1],e[2]/100,e[3]/100,e[4]):Ne.hasOwnProperty(t)?cn(Ne[t]):t==="transparent"?new ar(NaN,NaN,NaN,0):null}function cn(t){return new ar(t>>16&255,t>>8&255,255&t,1)}function or(t,e,r,o){return o<=0&&(t=e=r=NaN),new ar(t,e,r,o)}function cr(t){return t instanceof li||(t=mn(t)),t?new ar((t=t.rgb()).r,t.g,t.b,t.opacity):new ar}function Mr(t,e,r,o){return arguments.length===1?cr(t):new ar(t,e,r,o??1)}function ar(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function ya(){return"#"+Gl(this.r)+Gl(this.g)+Gl(this.b)}function us(){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 Gl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Md(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ao(t,e,r,o)}function Xl(t){if(t instanceof Ao)return new Ao(t.h,t.s,t.l,t.opacity);if(t instanceof li||(t=mn(t)),!t)return new Ao;if(t instanceof Ao)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,u=Math.min(e,r,o),c=Math.max(e,r,o),h=NaN,g=c-u,w=(c+u)/2;return g?(h=e===c?(r-o)/g+6*(r<o):r===c?(o-e)/g+2:(e-r)/g+4,g/=w<.5?c+u:2-c-u,h*=60):g=w>0&&w<1?0:h,new Ao(h,g,w,t.opacity)}function Ao(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Zl(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}So(li,mn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ye,formatHex:Ye,formatHsl:function(){return Xl(this).formatHsl()},formatRgb:We,toString:We}),So(ar,Mr,Fi(li,{brighter:function(t){return t=t==null?Ca:Math.pow(Ca,t),new ar(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?$a:Math.pow($a,t),new ar(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:ya,formatHex:ya,formatRgb:us,toString:us})),So(Ao,(function(t,e,r,o){return arguments.length===1?Xl(t):new Ao(t,e,r,o??1)}),Fi(li,{brighter:function(t){return t=t==null?Ca:Math.pow(Ca,t),new Ao(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?$a:Math.pow($a,t),new Ao(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,o=r+(r<.5?r:1-r)*e,u=2*r-o;return new ar(Zl(t>=240?t-240:t+120,u,o),Zl(t,u,o),Zl(t<120?t+240:t-120,u,o),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,Nd=.96422,Dd=.82521,ry=4/29,Od=6/29,Rf=3*Od*Od;function Bd(t){if(t instanceof Wo)return new Wo(t.l,t.a,t.b,t.opacity);if(t instanceof cs)return iy(t);t instanceof ar||(t=cr(t));var e,r,o=Fd(t.r),u=Fd(t.g),c=Fd(t.b),h=Ld((.2225045*o+.7168786*u+.0606169*c)/1);return o===u&&u===c?e=r=h:(e=Ld((.4360747*o+.3850649*u+.1430804*c)/Nd),r=Ld((.0139322*o+.0971045*u+.7141733*c)/Dd)),new Wo(116*h-16,500*(e-h),200*(h-r),t.opacity)}function Wo(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}function Ld(t){return t>.008856451679035631?Math.pow(t,.3333333333333333):t/Rf+ry}function Id(t){return t>Od?t*t*t:Rf*(t-ry)}function Rd(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,.4166666666666667)-.055)}function Fd(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function X3(t){if(t instanceof cs)return new cs(t.h,t.c,t.l,t.opacity);if(t instanceof Wo||(t=Bd(t)),t.a===0&&t.b===0)return new cs(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ny;return new cs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Pd(t,e,r,o){return arguments.length===1?X3(t):new cs(t,e,r,o??1)}function cs(t,e,r,o){this.h=+t,this.c=+e,this.l=+r,this.opacity=+o}function iy(t){if(isNaN(t.h))return new Wo(t.l,0,0,t.opacity);var e=t.h*ey;return new Wo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}So(Wo,(function(t,e,r,o){return arguments.length===1?Bd(t):new Wo(t,e,r,o??1)}),Fi(li,{brighter:function(t){return new Wo(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Wo(this.l-18*(t??1),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 ar(Rd(3.1338561*(e=Nd*Id(e))-1.6168667*(t=1*Id(t))-.4906146*(r=Dd*Id(r))),Rd(-.9787684*e+1.9161415*t+.033454*r),Rd(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),So(cs,Pd,Fi(li,{brighter:function(t){return new cs(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new cs(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return iy(this).rgb()}}));const jd=t=>()=>t;function ay(t,e){return function(r){return t+r*e}}function Ql(t,e){var r=e-t;return r?ay(t,r):jd(isNaN(t)?e:t)}function Z3(t){return function(e,r){var o=t((e=Pd(e)).h,(r=Pd(r)).h),u=Ql(e.c,r.c),c=Ql(e.l,r.l),h=Ql(e.opacity,r.opacity);return function(g){return e.h=o(g),e.c=u(g),e.l=c(g),e.opacity=h(g),e+""}}}const Q3=Z3((function(t,e){var r=e-t;return r?ay(t,r>180||r<-180?r-360*Math.round(r/360):r):jd(isNaN(t)?e:t)}));var Yd=Math.sqrt(50),zd=Math.sqrt(10),Ud=Math.sqrt(2);function qd(t,e,r){var o=(e-t)/Math.max(0,r),u=Math.floor(Math.log(o)/Math.LN10),c=o/Math.pow(10,u);return u>=0?(c>=Yd?10:c>=zd?5:c>=Ud?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(c>=Yd?10:c>=zd?5:c>=Ud?2:1)}function Hd(t,e,r){var o=Math.abs(e-t)/Math.max(0,r),u=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),c=o/u;return c>=Yd?u*=10:c>=zd?u*=5:c>=Ud&&(u*=2),e<t?-u:u}function $d(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wd(t){let e=t,r=t,o=t;function u(c,h,g=0,w=c.length){if(g<w){if(r(h,h)!==0)return w;do{const _=g+w>>>1;o(c[_],h)<0?g=_+1:w=_}while(g<w)}return g}return t.length!==2&&(e=(c,h)=>t(c)-h,r=$d,o=(c,h)=>$d(t(c),h)),{left:u,center:function(c,h,g=0,w=c.length){const _=u(c,h,g,w-1);return _>g&&e(c[_-1],h)>-e(c[_],h)?_-1:_},right:function(c,h,g=0,w=c.length){if(g<w){if(r(h,h)!==0)return w;do{const _=g+w>>>1;o(c[_],h)<=0?g=_+1:w=_}while(g<w)}return g}}}const K3=Wd($d),J3=K3.right,Vo=(Wd((function(t){return t===null?NaN:+t})).center,J3);function Ff(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Vd(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function Go(){}var Pf=.7,jf=1.4285714285714286,Bs="\\s*([+-]?\\d+)\\s*",mu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tb=/^#([0-9a-f]{3,8})$/,eb=new RegExp("^rgb\\("+[Bs,Bs,Bs]+"\\)$"),Gd=new RegExp("^rgb\\("+[Xo,Xo,Xo]+"\\)$"),nb=new RegExp("^rgba\\("+[Bs,Bs,Bs,mu]+"\\)$"),oy=new RegExp("^rgba\\("+[Xo,Xo,Xo,mu]+"\\)$"),Xd=new RegExp("^hsl\\("+[mu,Xo,Xo]+"\\)$"),sy=new RegExp("^hsla\\("+[mu,Xo,Xo,mu]+"\\)$"),Yf={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 vu(){return this.rgb().formatHex()}function bu(){return this.rgb().formatRgb()}function Mc(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tb.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?zf(e):r===3?new Wa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Uf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Uf(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=eb.exec(t))?new Wa(e[1],e[2],e[3],1):(e=Gd.exec(t))?new Wa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=nb.exec(t))?Uf(e[1],e[2],e[3],e[4]):(e=oy.exec(t))?Uf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Xd.exec(t))?uy(e[1],e[2]/100,e[3]/100,1):(e=sy.exec(t))?uy(e[1],e[2]/100,e[3]/100,e[4]):Yf.hasOwnProperty(t)?zf(Yf[t]):t==="transparent"?new Wa(NaN,NaN,NaN,0):null}function zf(t){return new Wa(t>>16&255,t>>8&255,255&t,1)}function Uf(t,e,r,o){return o<=0&&(t=e=r=NaN),new Wa(t,e,r,o)}function qf(t){return t instanceof Go||(t=Mc(t)),t?new Wa((t=t.rgb()).r,t.g,t.b,t.opacity):new Wa}function Nc(t,e,r,o){return arguments.length===1?qf(t):new Wa(t,e,r,o??1)}function Wa(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function Zo(){return"#"+Hf(this.r)+Hf(this.g)+Hf(this.b)}function Zd(){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 Hf(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function uy(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Sa(t,e,r,o)}function cy(t){if(t instanceof Sa)return new Sa(t.h,t.s,t.l,t.opacity);if(t instanceof Go||(t=Mc(t)),!t)return new Sa;if(t instanceof Sa)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,u=Math.min(e,r,o),c=Math.max(e,r,o),h=NaN,g=c-u,w=(c+u)/2;return g?(h=e===c?(r-o)/g+6*(r<o):r===c?(o-e)/g+2:(e-r)/g+4,g/=w<.5?c+u:2-c-u,h*=60):g=w>0&&w<1?0:h,new Sa(h,g,w,t.opacity)}function Sa(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Qd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ff(Go,Mc,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:vu,formatHex:vu,formatHsl:function(){return cy(this).formatHsl()},formatRgb:bu,toString:bu}),Ff(Wa,Nc,Vd(Go,{brighter:function(t){return t=t==null?jf:Math.pow(jf,t),new Wa(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Pf:Math.pow(Pf,t),new Wa(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:Zo,formatHex:Zo,formatRgb:Zd,toString:Zd})),Ff(Sa,(function(t,e,r,o){return arguments.length===1?cy(t):new Sa(t,e,r,o??1)}),Vd(Go,{brighter:function(t){return t=t==null?jf:Math.pow(jf,t),new Sa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Pf:Math.pow(Pf,t),new Sa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,u=2*r-o;return new Wa(Qd(t>=240?t-240:t+120,u,o),Qd(t,u,o),Qd(t<120?t+240:t-120,u,o),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 Kd=t=>()=>t;function ly(t,e){var r=e-t;return r?(function(o,u){return function(c){return o+c*u}})(t,r):Kd(isNaN(t)?e:t)}const $f=(function t(e){var r=(function(u){return(u=+u)==1?ly:function(c,h){return h-c?(function(g,w,_){return g=Math.pow(g,_),w=Math.pow(w,_)-g,_=1/_,function(D){return Math.pow(g+D*w,_)}})(c,h,u):Kd(isNaN(c)?h:c)}})(e);function o(u,c){var h=r((u=Nc(u)).r,(c=Nc(c)).r),g=r(u.g,c.g),w=r(u.b,c.b),_=ly(u.opacity,c.opacity);return function(D){return u.r=h(D),u.g=g(D),u.b=w(D),u.opacity=_(D),u+""}}return o.gamma=t,o})(1);function rb(t,e){var r,o=e?e.length:0,u=t?Math.min(o,t.length):0,c=new Array(u),h=new Array(o);for(r=0;r<u;++r)c[r]=Vf(t[r],e[r]);for(;r<o;++r)h[r]=e[r];return function(g){for(r=0;r<u;++r)h[r]=c[r](g);return h}}function ib(t,e){var r=new Date;return t=+t,e=+e,function(o){return r.setTime(t*(1-o)+e*o),r}}function Wf(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ab(t,e){var r,o={},u={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?o[r]=Vf(t[r],e[r]):u[r]=e[r];return function(c){for(r in o)u[r]=o[r](c);return u}}var Jd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kl=new RegExp(Jd.source,"g");function hy(t,e){var r,o,u,c=Jd.lastIndex=Kl.lastIndex=0,h=-1,g=[],w=[];for(t+="",e+="";(r=Jd.exec(t))&&(o=Kl.exec(e));)(u=o.index)>c&&(u=e.slice(c,u),g[h]?g[h]+=u:g[++h]=u),(r=r[0])===(o=o[0])?g[h]?g[h]+=o:g[++h]=o:(g[++h]=null,w.push({i:h,x:Wf(r,o)})),c=Kl.lastIndex;return c<e.length&&(u=e.slice(c),g[h]?g[h]+=u:g[++h]=u),g.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)g[(D=w[j]).i]=D.x(_);return g.join("")})}function fy(t,e){e||(e=[]);var r,o=t?Math.min(e.length,t.length):0,u=e.slice();return function(c){for(r=0;r<o;++r)u[r]=t[r]*(1-c)+e[r]*c;return u}}function Vf(t,e){var r,o,u=typeof e;return e==null||u==="boolean"?Kd(e):(u==="number"?Wf:u==="string"?(r=Mc(e))?(e=r,$f):hy:e instanceof Mc?$f:e instanceof Date?ib:(o=e,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(e)?rb:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?ab:Wf:fy))(t,e)}function Gf(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function dy(t){return+t}var tp=[0,1];function Dc(t){return t}function ep(t,e){return(e-=t=+t)?function(o){return(o-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function ob(t,e,r){var o=t[0],u=t[1],c=e[0],h=e[1];return u<o?(o=ep(u,o),c=r(h,c)):(o=ep(o,u),c=r(c,h)),function(g){return c(o(g))}}function np(t,e,r){var o=Math.min(t.length,e.length)-1,u=new Array(o),c=new Array(o),h=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++h<o;)u[h]=ep(t[h],t[h+1]),c[h]=r(e[h],e[h+1]);return function(g){var w=Vo(t,g,1,o)-1;return c[w](u[w](g))}}function Xf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zf(){return(function(){var t,e,r,o,u,c,h=tp,g=tp,w=Vf,_=Dc;function D(){var P,q,ot,tt=Math.min(h.length,g.length);return _!==Dc&&(P=h[0],q=h[tt-1],P>q&&(ot=P,P=q,q=ot),_=function(gt){return Math.max(P,Math.min(q,gt))}),o=tt>2?np:ob,u=c=null,j}function j(P){return P==null||isNaN(P=+P)?r:(u||(u=o(h.map(t),g,w)))(t(_(P)))}return j.invert=function(P){return _(e((c||(c=o(g,h.map(t),Wf)))(P)))},j.domain=function(P){return arguments.length?(h=Array.from(P,dy),D()):h.slice()},j.range=function(P){return arguments.length?(g=Array.from(P),D()):g.slice()},j.rangeRound=function(P){return g=Array.from(P),w=Gf,D()},j.clamp=function(P){return arguments.length?(_=!!P||Dc,D()):_!==Dc},j.interpolate=function(P){return arguments.length?(w=P,D()):w},j.unknown=function(P){return arguments.length?(r=P,j):r},function(P,q){return t=P,e=q,D()}})()(Dc,Dc)}function ls(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var py,rp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jl(t){if(!(e=rp.exec(t)))throw new Error("invalid format: "+t);var e;return new hs({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 hs(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 Qf(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}function Oc(t){return(t=Qf(Math.abs(t)))?t[1]:NaN}function gy(t,e){var r=Qf(t,e);if(!r)return t+"";var o=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+o:o.length>u+1?o.slice(0,u+1)+"."+o.slice(u+1):o+new Array(u-o.length+2).join("0")}Jl.prototype=hs.prototype,hs.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=Qf(t,e);if(!r)return t+"";var o=r[0],u=r[1],c=u-(py=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,h=o.length;return c===h?o:c>h?o+new Array(c-h+1).join("0"):c>0?o.slice(0,c)+"."+o.slice(c):"0."+new Array(1-c).join("0")+Qf(t,Math.max(0,e+c-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function my(t){return t}var ip,Va,th,ap=Array.prototype.map,fs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sb(t){var e=t.domain;return t.ticks=function(r){var o=e();return(function(u,c,h){var g,w,_,D,j=-1;if(h=+h,(u=+u)==(c=+c)&&h>0)return[u];if((g=c<u)&&(w=u,u=c,c=w),(D=qd(u,c,h))===0||!isFinite(D))return[];if(D>0){let P=Math.round(u/D),q=Math.round(c/D);for(P*D<u&&++P,q*D>c&&--q,_=new Array(w=q-P+1);++j<w;)_[j]=(P+j)*D}else{D=-D;let P=Math.round(u*D),q=Math.round(c*D);for(P/D<u&&++P,q/D>c&&--q,_=new Array(w=q-P+1);++j<w;)_[j]=(P+j)/D}return g&&_.reverse(),_})(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var u=e();return(function(c,h,g,w){var _,D=Hd(c,h,g);switch((w=Jl(w??",f")).type){case"s":var j=Math.max(Math.abs(c),Math.abs(h));return w.precision!=null||isNaN(_=(function(P,q){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Oc(q)/3)))-Oc(Math.abs(P)))})(D,j))||(w.precision=_),th(w,j);case"":case"e":case"g":case"p":case"r":w.precision!=null||isNaN(_=(function(P,q){return P=Math.abs(P),q=Math.abs(q)-P,Math.max(0,Oc(q)-Oc(P))+1})(D,Math.max(Math.abs(c),Math.abs(h))))||(w.precision=_-(w.type==="e"));break;case"f":case"%":w.precision!=null||isNaN(_=(function(P){return Math.max(0,-Oc(Math.abs(P)))})(D))||(w.precision=_-2*(w.type==="%"))}return Va(w)})(u[0],u[u.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o,u,c=e(),h=0,g=c.length-1,w=c[h],_=c[g],D=10;for(_<w&&(u=w,w=_,_=u,u=h,h=g,g=u);D-- >0;){if((u=qd(w,_,r))===o)return c[h]=w,c[g]=_,e(c);if(u>0)w=Math.floor(w/u)*u,_=Math.ceil(_/u)*u;else{if(!(u<0))break;w=Math.ceil(w*u)/u,_=Math.floor(_*u)/u}o=u}return t},t}function vy(){var t=Zf();return t.copy=function(){return Xf(t,vy())},ls.apply(t,arguments),sb(t)}ip=(function(t){var e,r,o=t.grouping===void 0||t.thousands===void 0?my:(e=ap.call(t.grouping,Number),r=t.thousands+"",function(P,q){for(var ot=P.length,tt=[],gt=0,ht=e[0],wt=0;ot>0&&ht>0&&(wt+ht+1>q&&(ht=Math.max(1,q-wt)),tt.push(P.substring(ot-=ht,ot+ht)),!((wt+=ht+1)>q));)ht=e[gt=(gt+1)%e.length];return tt.reverse().join(r)}),u=t.currency===void 0?"":t.currency[0]+"",c=t.currency===void 0?"":t.currency[1]+"",h=t.decimal===void 0?".":t.decimal+"",g=t.numerals===void 0?my:(function(P){return function(q){return q.replace(/[0-9]/g,(function(ot){return P[+ot]}))}})(ap.call(t.numerals,String)),w=t.percent===void 0?"%":t.percent+"",_=t.minus===void 0?"−":t.minus+"",D=t.nan===void 0?"NaN":t.nan+"";function j(P){var q=(P=Jl(P)).fill,ot=P.align,tt=P.sign,gt=P.symbol,ht=P.zero,wt=P.width,Tt=P.comma,Pt=P.precision,Gt=P.trim,Et=P.type;Et==="n"?(Tt=!0,Et="g"):yy[Et]||(Pt===void 0&&(Pt=12),Gt=!0,Et="g"),(ht||q==="0"&&ot==="=")&&(ht=!0,q="0",ot="=");var ee=gt==="$"?u:gt==="#"&&/[boxX]/.test(Et)?"0"+Et.toLowerCase():"",ie=gt==="$"?c:/[%p]/.test(Et)?w:"",kt=yy[Et],It=/[defgprs%]/.test(Et);function Ct(yt){var Ft,bt,_e,we=ee,Ut=ie;if(Et==="c")Ut=kt(yt)+Ut,yt="";else{var Te=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?D:kt(Math.abs(yt),Pt),Gt&&(yt=(function(he){t:for(var Pe,Re=he.length,Ke=1,dn=-1;Ke<Re;++Ke)switch(he[Ke]){case".":dn=Pe=Ke;break;case"0":dn===0&&(dn=Ke),Pe=Ke;break;default:if(!+he[Ke])break t;dn>0&&(dn=0)}return dn>0?he.slice(0,dn)+he.slice(Pe+1):he})(yt)),Te&&+yt==0&&tt!=="+"&&(Te=!1),we=(Te?tt==="("?tt:_:tt==="-"||tt==="("?"":tt)+we,Ut=(Et==="s"?fs[8+py/3]:"")+Ut+(Te&&tt==="("?")":""),It){for(Ft=-1,bt=yt.length;++Ft<bt;)if(48>(_e=yt.charCodeAt(Ft))||_e>57){Ut=(_e===46?h+yt.slice(Ft+1):yt.slice(Ft))+Ut,yt=yt.slice(0,Ft);break}}}Tt&&!ht&&(yt=o(yt,1/0));var Ee=we.length+yt.length+Ut.length,be=Ee<wt?new Array(wt-Ee+1).join(q):"";switch(Tt&&ht&&(yt=o(be+yt,be.length?wt-Ut.length:1/0),be=""),ot){case"<":yt=we+yt+Ut+be;break;case"=":yt=we+be+yt+Ut;break;case"^":yt=be.slice(0,Ee=be.length>>1)+we+yt+Ut+be.slice(Ee);break;default:yt=be+we+yt+Ut}return g(yt)}return Pt=Pt===void 0?6:/[gprs]/.test(Et)?Math.max(1,Math.min(21,Pt)):Math.max(0,Math.min(20,Pt)),Ct.toString=function(){return P+""},Ct}return{format:j,formatPrefix:function(P,q){var ot=j(((P=Jl(P)).type="f",P)),tt=3*Math.max(-8,Math.min(8,Math.floor(Oc(q)/3))),gt=Math.pow(10,-tt),ht=fs[8+tt/3];return function(wt){return ot(gt*wt)+ht}}}})({thousands:",",grouping:[3],currency:["$",""]}),Va=ip.format,th=ip.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[o,u]of e)this.set(o,u)}get(e){return super.get(op(this,e))}has(e){return super.has(op(this,e))}set(e,r){return super.set((function({_intern:o,_key:u},c){const h=u(c);return o.has(h)?o.get(h):(o.set(h,c),c)})(this,e),r)}delete(e){return super.delete((function({_intern:r,_key:o},u){const c=o(u);return r.has(c)&&(u=r.get(c),r.delete(c)),u})(this,e))}}function op({_intern:t,_key:e},r){const o=e(r);return t.has(o)?t.get(o):r}function _y(t){return t!==null&&typeof t=="object"?t.valueOf():t}const eh=Symbol("implicit");function Ls(){var t=new by,e=[],r=[],o=eh;function u(c){let h=t.get(c);if(h===void 0){if(o!==eh)return o;t.set(c,h=e.push(c)-1)}return r[h%r.length]}return u.domain=function(c){if(!arguments.length)return e.slice();e=[],t=new by;for(const h of c)t.has(h)||t.set(h,e.push(h)-1);return u},u.range=function(c){return arguments.length?(r=Array.from(c),u):r.slice()},u.unknown=function(c){return arguments.length?(o=c,u):o},u.copy=function(){return Ls(e,r).unknown(o)},ls.apply(u,arguments),u}const Bc=1e3,Is=6e4,nh=36e5,sp=864e5,up=6048e5,Kf=31536e6;var Jf=new Date,t1=new Date;function Ci(t,e,r,o){function u(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}return u.floor=function(c){return t(c=new Date(+c)),c},u.ceil=function(c){return t(c=new Date(c-1)),e(c,1),t(c),c},u.round=function(c){var h=u(c),g=u.ceil(c);return c-h<g-c?h:g},u.offset=function(c,h){return e(c=new Date(+c),h==null?1:Math.floor(h)),c},u.range=function(c,h,g){var w,_=[];if(c=u.ceil(c),g=g==null?1:Math.floor(g),!(c<h&&g>0))return _;do _.push(w=new Date(+c)),e(c,g),t(c);while(w<c&&c<h);return _},u.filter=function(c){return Ci((function(h){if(h>=h)for(;t(h),!c(h);)h.setTime(h-1)}),(function(h,g){if(h>=h)if(g<0)for(;++g<=0;)for(;e(h,-1),!c(h););else for(;--g>=0;)for(;e(h,1),!c(h););}))},r&&(u.count=function(c,h){return Jf.setTime(+c),t1.setTime(+h),t(Jf),t(t1),Math.floor(r(Jf,t1))},u.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?u.filter(o?function(h){return o(h)%c==0}:function(h){return u.count(0,h)%c==0}):u:null}),u}var rh=Ci((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));rh.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})):rh:null};const cp=rh;rh.range;var lp=Ci((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Bc)}),(function(t,e){return(e-t)/Bc}),(function(t){return t.getUTCSeconds()}));const Lc=lp;lp.range;var xy=Ci((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bc)}),(function(t,e){t.setTime(+t+e*Is)}),(function(t,e){return(e-t)/Is}),(function(t){return t.getMinutes()}));const ih=xy;xy.range;var so=Ci((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bc-t.getMinutes()*Is)}),(function(t,e){t.setTime(+t+e*nh)}),(function(t,e){return(e-t)/nh}),(function(t){return t.getHours()}));const e1=so;so.range;var n1=Ci((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Is)/sp),(t=>t.getDate()-1));const Ic=n1;function ds(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())*Is)/up}))}n1.range;var ah=ds(0),r1=ds(1),i1=ds(2),Qo=ds(3),_u=ds(4),wy=ds(5),hp=ds(6),a1=(ah.range,r1.range,i1.range,Qo.range,_u.range,wy.range,hp.range,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 oh=a1;a1.range;var xu=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()}));xu.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 Rs=xu;xu.range;var ky=Ci((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Is)}),(function(t,e){return(e-t)/Is}),(function(t){return t.getUTCMinutes()}));ky.range;var Ty=Ci((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*nh)}),(function(t,e){return(e-t)/nh}),(function(t){return t.getUTCHours()}));Ty.range;var Ey=Ci((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/sp}),(function(t){return t.getUTCDate()-1}));const uo=Ey;function Ga(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)/up}))}Ey.range;var fp=Ga(0),o1=Ga(1),Fs=Ga(2),ub=Ga(3),Rc=Ga(4),cb=Ga(5),lb=Ga(6),ps=(fp.range,o1.range,Fs.range,ub.range,Rc.range,cb.range,lb.range,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()})));ps.range;var s1=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()}));s1.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 wu=s1;function dp(t,e,r,o,u,c){const h=[[Lc,1,Bc],[Lc,5,5e3],[Lc,15,15e3],[Lc,30,3e4],[c,1,Is],[c,5,3e5],[c,15,9e5],[c,30,18e5],[u,1,nh],[u,3,108e5],[u,6,216e5],[u,12,432e5],[o,1,sp],[o,2,1728e5],[r,1,up],[e,1,2592e6],[e,3,7776e6],[t,1,Kf]];function g(w,_,D){const j=Math.abs(_-w)/D,P=Wd((([,,tt])=>tt)).right(h,j);if(P===h.length)return t.every(Hd(w/Kf,_/Kf,D));if(P===0)return cp.every(Math.max(Hd(w,_,D),1));const[q,ot]=h[j/h[P-1][2]<h[P][2]/j?P-1:P];return q.every(ot)}return[function(w,_,D){const j=_<w;j&&([w,_]=[_,w]);const P=D&&typeof D.range=="function"?D:g(w,_,D),q=P?P.range(w,+_+1):[];return j?q.reverse():q},g]}s1.range;const[hb,fb]=dp(Rs,oh,ah,Ic,e1,ih);function pp(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 gp(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 Ps(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ku,Cy,Sy={"-":"",_:" ",0:"0"},Pi=/^\s*\d+/,db=/^%/,pb=/[\\^$*+?|[\]().{}]/g;function mr(t,e,r){var o=t<0?"-":"",u=(o?-t:t)+"",c=u.length;return o+(c<r?new Array(r-c+1).join(e)+u:u)}function yp(t){return t.replace(pb,"\\$&")}function Fc(t){return new RegExp("^(?:"+t.map(yp).join("|")+")","i")}function Pc(t){return new Map(t.map(((e,r)=>[e.toLowerCase(),r])))}function Aa(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function u1(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function Tu(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function Ay(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function gb(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function My(t,e,r){var o=Pi.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function Ny(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function yb(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function mb(t,e,r){var o=Pi.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function vb(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function js(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function Dy(t,e,r){var o=Pi.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function Oy(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function bb(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function _b(t,e,r){var o=Pi.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function xb(t,e,r){var o=Pi.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function wb(t,e,r){var o=Pi.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function kb(t,e,r){var o=db.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function Tb(t,e,r){var o=Pi.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function Eb(t,e,r){var o=Pi.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function By(t,e){return mr(t.getDate(),e,2)}function Cb(t,e){return mr(t.getHours(),e,2)}function Sb(t,e){return mr(t.getHours()%12||12,e,2)}function Ly(t,e){return mr(1+Ic.count(Rs(t),t),e,3)}function Iy(t,e){return mr(t.getMilliseconds(),e,3)}function Ab(t,e){return Iy(t,e)+"000"}function Ry(t,e){return mr(t.getMonth()+1,e,2)}function Fy(t,e){return mr(t.getMinutes(),e,2)}function Py(t,e){return mr(t.getSeconds(),e,2)}function Mb(t){var e=t.getDay();return e===0?7:e}function Nb(t,e){return mr(ah.count(Rs(t)-1,t),e,2)}function mp(t){var e=t.getDay();return e>=4||e===0?_u(t):_u.ceil(t)}function Ys(t,e){return t=mp(t),mr(_u.count(Rs(t),t)+(Rs(t).getDay()===4),e,2)}function Db(t){return t.getDay()}function Ob(t,e){return mr(r1.count(Rs(t)-1,t),e,2)}function jy(t,e){return mr(t.getFullYear()%100,e,2)}function Bb(t,e){return mr((t=mp(t)).getFullYear()%100,e,2)}function Lb(t,e){return mr(t.getFullYear()%1e4,e,4)}function Yy(t,e){var r=t.getDay();return mr((t=r>=4||r===0?_u(t):_u.ceil(t)).getFullYear()%1e4,e,4)}function c1(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+mr(e/60|0,"0",2)+mr(e%60,"0",2)}function zy(t,e){return mr(t.getUTCDate(),e,2)}function sh(t,e){return mr(t.getUTCHours(),e,2)}function Ib(t,e){return mr(t.getUTCHours()%12||12,e,2)}function vp(t,e){return mr(1+uo.count(wu(t),t),e,3)}function Uy(t,e){return mr(t.getUTCMilliseconds(),e,3)}function Rb(t,e){return Uy(t,e)+"000"}function qy(t,e){return mr(t.getUTCMonth()+1,e,2)}function jc(t,e){return mr(t.getUTCMinutes(),e,2)}function Fb(t,e){return mr(t.getUTCSeconds(),e,2)}function Hy(t){var e=t.getUTCDay();return e===0?7:e}function Pb(t,e){return mr(fp.count(wu(t)-1,t),e,2)}function $y(t){var e=t.getUTCDay();return e>=4||e===0?Rc(t):Rc.ceil(t)}function jb(t,e){return t=$y(t),mr(Rc.count(wu(t),t)+(wu(t).getUTCDay()===4),e,2)}function Yb(t){return t.getUTCDay()}function zb(t,e){return mr(o1.count(wu(t)-1,t),e,2)}function Ub(t,e){return mr(t.getUTCFullYear()%100,e,2)}function l1(t,e){return mr((t=$y(t)).getUTCFullYear()%100,e,2)}function Wy(t,e){return mr(t.getUTCFullYear()%1e4,e,4)}function qb(t,e){var r=t.getUTCDay();return mr((t=r>=4||r===0?Rc(t):Rc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Hb(){return"+0000"}function Vy(){return"%"}function Gy(t){return+t}function Xy(t){return Math.floor(+t/1e3)}function $b(t){return new Date(t)}function bp(t){return t instanceof Date?+t:+new Date(+t)}function Zy(t,e,r,o,u,c,h,g,w,_){var D=Zf(),j=D.invert,P=D.domain,q=_(".%L"),ot=_(":%S"),tt=_("%I:%M"),gt=_("%I %p"),ht=_("%a %d"),wt=_("%b %d"),Tt=_("%B"),Pt=_("%Y");function Gt(Et){return(w(Et)<Et?q:g(Et)<Et?ot:h(Et)<Et?tt:c(Et)<Et?gt:o(Et)<Et?u(Et)<Et?ht:wt:r(Et)<Et?Tt:Pt)(Et)}return D.invert=function(Et){return new Date(j(Et))},D.domain=function(Et){return arguments.length?P(Array.from(Et,bp)):P().map($b)},D.ticks=function(Et){var ee=P();return t(ee[0],ee[ee.length-1],Et??10)},D.tickFormat=function(Et,ee){return ee==null?Gt:_(ee)},D.nice=function(Et){var ee=P();return Et&&typeof Et.range=="function"||(Et=e(ee[0],ee[ee.length-1],Et??10)),Et?P((function(ie,kt){var It,Ct=0,yt=(ie=ie.slice()).length-1,Ft=ie[Ct],bt=ie[yt];return bt<Ft&&(It=Ct,Ct=yt,yt=It,It=Ft,Ft=bt,bt=It),ie[Ct]=kt.floor(Ft),ie[yt]=kt.ceil(bt),ie})(ee,Et)):D},D.copy=function(){return Xf(D,Zy(t,e,r,o,u,c,h,g,w,_))},D}function Wb(){}function _p(t){return t==null?Wb:function(){return this.querySelector(t)}}function Qy(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Si(){return[]}function gs(t){return t==null?Si:function(){return this.querySelectorAll(t)}}function xp(t){return function(){return this.matches(t)}}function aa(t){return function(e){return e.matches(t)}}ku=(function(t){var e=t.dateTime,r=t.date,o=t.time,u=t.periods,c=t.days,h=t.shortDays,g=t.months,w=t.shortMonths,_=Fc(u),D=Pc(u),j=Fc(c),P=Pc(c),q=Fc(h),ot=Pc(h),tt=Fc(g),gt=Pc(g),ht=Fc(w),wt=Pc(w),Tt={a:function(kt){return h[kt.getDay()]},A:function(kt){return c[kt.getDay()]},b:function(kt){return w[kt.getMonth()]},B:function(kt){return g[kt.getMonth()]},c:null,d:By,e:By,f:Ab,g:Bb,G:Yy,H:Cb,I:Sb,j:Ly,L:Iy,m:Ry,M:Fy,p:function(kt){return u[+(kt.getHours()>=12)]},q:function(kt){return 1+~~(kt.getMonth()/3)},Q:Gy,s:Xy,S:Py,u:Mb,U:Nb,V:Ys,w:Db,W:Ob,x:null,X:null,y:jy,Y:Lb,Z:c1,"%":Vy},Pt={a:function(kt){return h[kt.getUTCDay()]},A:function(kt){return c[kt.getUTCDay()]},b:function(kt){return w[kt.getUTCMonth()]},B:function(kt){return g[kt.getUTCMonth()]},c:null,d:zy,e:zy,f:Rb,g:l1,G:qb,H:sh,I:Ib,j:vp,L:Uy,m:qy,M:jc,p:function(kt){return u[+(kt.getUTCHours()>=12)]},q:function(kt){return 1+~~(kt.getUTCMonth()/3)},Q:Gy,s:Xy,S:Fb,u:Hy,U:Pb,V:jb,w:Yb,W:zb,x:null,X:null,y:Ub,Y:Wy,Z:Hb,"%":Vy},Gt={a:function(kt,It,Ct){var yt=q.exec(It.slice(Ct));return yt?(kt.w=ot.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},A:function(kt,It,Ct){var yt=j.exec(It.slice(Ct));return yt?(kt.w=P.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},b:function(kt,It,Ct){var yt=ht.exec(It.slice(Ct));return yt?(kt.m=wt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},B:function(kt,It,Ct){var yt=tt.exec(It.slice(Ct));return yt?(kt.m=gt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},c:function(kt,It,Ct){return ie(kt,e,It,Ct)},d:js,e:js,f:wb,g:Ny,G:My,H:Oy,I:Oy,j:Dy,L:xb,m:vb,M:bb,p:function(kt,It,Ct){var yt=_.exec(It.slice(Ct));return yt?(kt.p=D.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},q:mb,Q:Tb,s:Eb,S:_b,u:u1,U:Tu,V:Ay,w:Aa,W:gb,x:function(kt,It,Ct){return ie(kt,r,It,Ct)},X:function(kt,It,Ct){return ie(kt,o,It,Ct)},y:Ny,Y:My,Z:yb,"%":kb};function Et(kt,It){return function(Ct){var yt,Ft,bt,_e=[],we=-1,Ut=0,Te=kt.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++we<Te;)kt.charCodeAt(we)===37&&(_e.push(kt.slice(Ut,we)),(Ft=Sy[yt=kt.charAt(++we)])!=null?yt=kt.charAt(++we):Ft=yt==="e"?" ":"0",(bt=It[yt])&&(yt=bt(Ct,Ft)),_e.push(yt),Ut=we+1);return _e.push(kt.slice(Ut,we)),_e.join("")}}function ee(kt,It){return function(Ct){var yt,Ft,bt=Ps(1900,void 0,1);if(ie(bt,kt,Ct+="",0)!=Ct.length)return null;if("Q"in bt)return new Date(bt.Q);if("s"in bt)return new Date(1e3*bt.s+("L"in bt?bt.L:0));if(It&&!("Z"in bt)&&(bt.Z=0),"p"in bt&&(bt.H=bt.H%12+12*bt.p),bt.m===void 0&&(bt.m="q"in bt?bt.q:0),"V"in bt){if(bt.V<1||bt.V>53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Ft=(yt=gp(Ps(bt.y,0,1))).getUTCDay(),yt=Ft>4||Ft===0?o1.ceil(yt):o1(yt),yt=uo.offset(yt,7*(bt.V-1)),bt.y=yt.getUTCFullYear(),bt.m=yt.getUTCMonth(),bt.d=yt.getUTCDate()+(bt.w+6)%7):(Ft=(yt=pp(Ps(bt.y,0,1))).getDay(),yt=Ft>4||Ft===0?r1.ceil(yt):r1(yt),yt=Ic.offset(yt,7*(bt.V-1)),bt.y=yt.getFullYear(),bt.m=yt.getMonth(),bt.d=yt.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),Ft="Z"in bt?gp(Ps(bt.y,0,1)).getUTCDay():pp(Ps(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+7*bt.W-(Ft+5)%7:bt.w+7*bt.U-(Ft+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,gp(bt)):pp(bt)}}function ie(kt,It,Ct,yt){for(var Ft,bt,_e=0,we=It.length,Ut=Ct.length;_e<we;){if(yt>=Ut)return-1;if((Ft=It.charCodeAt(_e++))===37){if(Ft=It.charAt(_e++),!(bt=Gt[Ft in Sy?It.charAt(_e++):Ft])||(yt=bt(kt,Ct,yt))<0)return-1}else if(Ft!=Ct.charCodeAt(yt++))return-1}return yt}return Tt.x=Et(r,Tt),Tt.X=Et(o,Tt),Tt.c=Et(e,Tt),Pt.x=Et(r,Pt),Pt.X=Et(o,Pt),Pt.c=Et(e,Pt),{format:function(kt){var It=Et(kt+="",Tt);return It.toString=function(){return kt},It},parse:function(kt){var It=ee(kt+="",!1);return It.toString=function(){return kt},It},utcFormat:function(kt){var It=Et(kt+="",Pt);return It.toString=function(){return kt},It},utcParse:function(kt){var It=ee(kt+="",!0);return It.toString=function(){return kt},It}}})({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=ku.format,ku.parse,ku.utcFormat,ku.utcParse;var Vb=Array.prototype.find;function Gb(){return this.firstElementChild}var h1=Array.prototype.filter;function wp(){return Array.from(this.children)}function kp(t){return new Array(t.length)}function ji(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Xb(t){return function(){return t}}function Zb(t,e,r,o,u,c){for(var h,g=0,w=e.length,_=c.length;g<_;++g)(h=e[g])?(h.__data__=c[g],o[g]=h):r[g]=new ji(t,c[g]);for(;g<w;++g)(h=e[g])&&(u[g]=h)}function Qb(t,e,r,o,u,c,h){var g,w,_,D=new Map,j=e.length,P=c.length,q=new Array(j);for(g=0;g<j;++g)(w=e[g])&&(q[g]=_=h.call(w,w.__data__,g,e)+"",D.has(_)?u[g]=w:D.set(_,w));for(g=0;g<P;++g)_=h.call(t,c[g],g,c)+"",(w=D.get(_))?(o[g]=w,w.__data__=c[g],D.delete(_)):r[g]=new ji(t,c[g]);for(g=0;g<j;++g)(w=e[g])&&D.get(q[g])===w&&(u[g]=w)}function Kb(t){return t.__data__}function Ky(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Jb(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ji.prototype={constructor:ji,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 Tp="http://www.w3.org/1999/xhtml";const Jy={svg:"http://www.w3.org/2000/svg",xhtml:Tp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f1(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Jy.hasOwnProperty(e)?{space:Jy[e],local:t}:t}function t4(t){return function(){this.removeAttribute(t)}}function e4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function n4(t,e){return function(){this.setAttribute(t,e)}}function r4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function i4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function d1(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 Eu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function tm(t){return function(){this.style.removeProperty(t)}}function a4(t,e,r){return function(){this.style.setProperty(t,e,r)}}function uh(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function ys(t,e){return t.style.getPropertyValue(e)||Eu(t).getComputedStyle(t,null).getPropertyValue(e)}function em(t){return function(){delete this[t]}}function nm(t,e){return function(){this[t]=e}}function rm(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function ch(t){return t.trim().split(/^|\s+/)}function Yc(t){return t.classList||new p1(t)}function p1(t){this._node=t,this._names=ch(t.getAttribute("class")||"")}function Ep(t,e){for(var r=Yc(t),o=-1,u=e.length;++o<u;)r.add(e[o])}function Cp(t,e){for(var r=Yc(t),o=-1,u=e.length;++o<u;)r.remove(e[o])}function im(t){return function(){Ep(this,t)}}function am(t){return function(){Cp(this,t)}}function om(t,e){return function(){(e.apply(this,arguments)?Ep:Cp)(this,t)}}function sm(){this.textContent=""}function um(t){return function(){this.textContent=t}}function zs(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function g1(){this.innerHTML=""}function y1(t){return function(){this.innerHTML=t}}function cm(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function In(){this.nextSibling&&this.parentNode.appendChild(this)}function m1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nr(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Tp&&e.documentElement.namespaceURI===Tp?e.createElement(t):e.createElementNS(r,t)}}function hi(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function lh(t){var e=f1(t);return(e.local?hi:nr)(e)}function ma(){return null}function jr(){var t=this.parentNode;t&&t.removeChild(this)}function kn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function lr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zc(t){return t.trim().split(/^|\s+/).map((function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}}))}function va(t){return function(){var e=this.__on;if(e){for(var r,o=0,u=-1,c=e.length;o<c;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++u]=r:this.removeEventListener(r.type,r.listener,r.options);++u?e.length=u:delete this.__on}}}function ln(t,e,r){return function(){var o,u=this.__on,c=(function(w){return function(_){w.call(this,_,this.__data__)}})(e);if(u){for(var h=0,g=u.length;h<g;++h)if((o=u[h]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=c,o.options=r),void(o.value=e)}this.addEventListener(t.type,c,r),o={type:t.type,name:t.name,value:e,listener:c,options:r},u?u.push(o):this.__on=[o]}}function hh(t,e,r){var o=Eu(t),u=o.CustomEvent;typeof u=="function"?u=new u(e,r):(u=o.document.createEvent("Event"),r?(u.initEvent(e,r.bubbles,r.cancelable),u.detail=r.detail):u.initEvent(e,!1,!1)),t.dispatchEvent(u)}function lm(t,e){return function(){return hh(this,t,e)}}function v1(t,e){return function(){return hh(this,t,e.apply(this,arguments))}}p1.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fh=[null];function qe(t,e){this._groups=t,this._parents=e}function Xa(){return new qe([[document.documentElement]],fh)}qe.prototype=Xa.prototype={constructor:qe,select:function(t){typeof t!="function"&&(t=_p(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h,g=e[u],w=g.length,_=o[u]=new Array(w),D=0;D<w;++D)(c=g[D])&&(h=t.call(c,c.__data__,D,g))&&("__data__"in c&&(h.__data__=c.__data__),_[D]=h);return new qe(o,this._parents)},selectAll:function(t){t=typeof t=="function"?(function(D){return function(){return Qy(D.apply(this,arguments))}})(t):gs(t);for(var e=this._groups,r=e.length,o=[],u=[],c=0;c<r;++c)for(var h,g=e[c],w=g.length,_=0;_<w;++_)(h=g[_])&&(o.push(t.call(h,h.__data__,_,g)),u.push(h));return new qe(o,u)},selectChild:function(t){return this.select(t==null?Gb:(function(e){return function(){return Vb.call(this.children,e)}})(typeof t=="function"?t:aa(t)))},selectChildren:function(t){return this.selectAll(t==null?wp:(function(e){return function(){return h1.call(this.children,e)}})(typeof t=="function"?t:aa(t)))},filter:function(t){typeof t!="function"&&(t=xp(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new qe(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Kb);var r=e?Qb:Zb,o=this._parents,u=this._groups;typeof t!="function"&&(t=Xb(t));for(var c=u.length,h=new Array(c),g=new Array(c),w=new Array(c),_=0;_<c;++_){var D=o[_],j=u[_],P=j.length,q=Ky(t.call(D,D&&D.__data__,_,o)),ot=q.length,tt=g[_]=new Array(ot),gt=h[_]=new Array(ot),ht=w[_]=new Array(P);r(D,j,tt,gt,ht,q,e);for(var wt,Tt,Pt=0,Gt=0;Pt<ot;++Pt)if(wt=tt[Pt]){for(Pt>=Gt&&(Gt=Pt+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(h=new qe(h,o))._enter=g,h._exit=w,h},enter:function(){return new qe(this._enter||this._groups.map(kp),this._parents)},exit:function(){return new qe(this._exit||this._groups.map(kp),this._parents)},join:function(t,e,r){var o=this.enter(),u=this,c=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(u=e(u))&&(u=u.selection()),r==null?c.remove():r(c),o&&u?o.merge(u).order():u},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,u=r.length,c=o.length,h=Math.min(u,c),g=new Array(u),w=0;w<h;++w)for(var _,D=r[w],j=o[w],P=D.length,q=g[w]=new Array(P),ot=0;ot<P;++ot)(_=D[ot]||j[ot])&&(q[ot]=_);for(;w<u;++w)g[w]=r[w];return new qe(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,u=t[e],c=u.length-1,h=u[c];--c>=0;)(o=u[c])&&(h&&4^o.compareDocumentPosition(h)&&h.parentNode.insertBefore(o,h),h=o);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=Jb);for(var r=this._groups,o=r.length,u=new Array(o),c=0;c<o;++c){for(var h,g=r[c],w=g.length,_=u[c]=new Array(w),D=0;D<w;++D)(h=g[D])&&(_[D]=h);_.sort(e)}return new qe(u,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 o=t[e],u=0,c=o.length;u<c;++u){var h=o[u];if(h)return h}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,o=e.length;r<o;++r)for(var u,c=e[r],h=0,g=c.length;h<g;++h)(u=c[h])&&t.call(u,u.__data__,h,c);return this},attr:function(t,e){var r=f1(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?e4:t4:typeof e=="function"?r.local?d1:i4:r.local?r4:n4)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?tm:typeof e=="function"?uh:a4)(t,e,r??"")):ys(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?em:typeof e=="function"?rm:nm)(t,e)):this.node()[t]},classed:function(t,e){var r=ch(t+"");if(arguments.length<2){for(var o=Yc(this.node()),u=-1,c=r.length;++u<c;)if(!o.contains(r[u]))return!1;return!0}return this.each((typeof e=="function"?om:e?im:am)(r,e))},text:function(t){return arguments.length?this.each(t==null?sm:(typeof t=="function"?zs:um)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?g1:(typeof t=="function"?cm:y1)(t)):this.node().innerHTML},raise:function(){return this.each(In)},lower:function(){return this.each(m1)},append:function(t){var e=typeof t=="function"?t:lh(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var r=typeof t=="function"?t:lh(t),o=e==null?ma:typeof e=="function"?e:_p(e);return this.select((function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(jr)},clone:function(t){return this.select(t?lr:kn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,u,c=zc(t+""),h=c.length;if(!(arguments.length<2)){for(g=e?ln:va,o=0;o<h;++o)this.each(g(c[o],e,r));return this}var g=this.node().__on;if(g){for(var w,_=0,D=g.length;_<D;++_)for(o=0,w=g[_];o<h;++o)if((u=c[o]).type===w.type&&u.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?v1:lm)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,u=t[e],c=0,h=u.length;c<h;++c)(o=u[c])&&(yield o)}};const ai=Xa;function Ve(t){return typeof t=="string"?new qe([[document.querySelector(t)]],[document.documentElement]):new qe([[t]],fh)}function b1(t){return typeof t=="string"?new qe([document.querySelectorAll(t)],[document.documentElement]):new qe([Qy(t)],fh)}const Xi=Math.PI,_1=2*Xi,Nr=1e-6,x1=_1-Nr;function w1(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Sp(){return new w1}w1.prototype=Sp.prototype={constructor:w1,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,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+o)},bezierCurveTo:function(t,e,r,o,u,c){this._+="C"+ +t+","+ +e+","+ +r+","+ +o+","+(this._x1=+u)+","+(this._y1=+c)},arcTo:function(t,e,r,o,u){t=+t,e=+e,r=+r,o=+o,u=+u;var c=this._x1,h=this._y1,g=r-t,w=o-e,_=c-t,D=h-e,j=_*_+D*D;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>Nr)if(Math.abs(D*g-w*_)>Nr&&u){var P=r-c,q=o-h,ot=g*g+w*w,tt=P*P+q*q,gt=Math.sqrt(ot),ht=Math.sqrt(j),wt=u*Math.tan((Xi-Math.acos((ot+j-tt)/(2*gt*ht)))/2),Tt=wt/ht,Pt=wt/gt;Math.abs(Tt-1)>Nr&&(this._+="L"+(t+Tt*_)+","+(e+Tt*D)),this._+="A"+u+","+u+",0,0,"+ +(D*P>_*q)+","+(this._x1=t+Pt*g)+","+(this._y1=e+Pt*w)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,o,u,c){t=+t,e=+e,c=!!c;var h=(r=+r)*Math.cos(o),g=r*Math.sin(o),w=t+h,_=e+g,D=1^c,j=c?o-u:u-o;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+w+","+_:(Math.abs(this._x1-w)>Nr||Math.abs(this._y1-_)>Nr)&&(this._+="L"+w+","+_),r&&(j<0&&(j=j%_1+_1),j>x1?this._+="A"+r+","+r+",0,1,"+D+","+(t-h)+","+(e-g)+"A"+r+","+r+",0,1,"+D+","+(this._x1=w)+","+(this._y1=_):j>Nr&&(this._+="A"+r+","+r+",0,"+ +(j>=Xi)+","+D+","+(this._x1=t+r*Math.cos(u))+","+(this._y1=e+r*Math.sin(u))))},rect:function(t,e,r,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +o+"h"+-r+"Z"},toString:function(){return this._}};const k1=Sp;function fi(t){return function(){return t}}var co=Math.abs,Zi=Math.atan2,Us=Math.cos,Ap=Math.max,dh=Math.min,lo=Math.sin,ms=Math.sqrt,Qi=1e-12,Ma=Math.PI,T1=Ma/2,E1=2*Ma;function o4(t){return t>1?0:t<-1?Ma:Math.acos(t)}function Mp(t){return t>=1?T1:t<=-1?-T1:Math.asin(t)}function s4(t){return t.innerRadius}function C1(t){return t.outerRadius}function Cu(t){return t.startAngle}function S1(t){return t.endAngle}function Uc(t){return t&&t.padAngle}function Np(t,e,r,o,u,c,h,g){var w=r-t,_=o-e,D=h-u,j=g-c,P=j*w-D*_;if(!(P*P<Qi))return[t+(P=(D*(e-c)-j*(t-u))/P)*w,e+P*_]}function Su(t,e,r,o,u,c,h){var g=t-r,w=e-o,_=(h?c:-c)/ms(g*g+w*w),D=_*w,j=-_*g,P=t+D,q=e+j,ot=r+D,tt=o+j,gt=(P+ot)/2,ht=(q+tt)/2,wt=ot-P,Tt=tt-q,Pt=wt*wt+Tt*Tt,Gt=u-c,Et=P*tt-ot*q,ee=(Tt<0?-1:1)*ms(Ap(0,Gt*Gt*Pt-Et*Et)),ie=(Et*Tt-wt*ee)/Pt,kt=(-Et*wt-Tt*ee)/Pt,It=(Et*Tt+wt*ee)/Pt,Ct=(-Et*wt+Tt*ee)/Pt,yt=ie-gt,Ft=kt-ht,bt=It-gt,_e=Ct-ht;return yt*yt+Ft*Ft>bt*bt+_e*_e&&(ie=It,kt=Ct),{cx:ie,cy:kt,x01:-D,y01:-j,x11:ie*(u/Gt-1),y11:kt*(u/Gt-1)}}function qc(){var t=s4,e=C1,r=fi(0),o=null,u=Cu,c=S1,h=Uc,g=null;function w(){var _,D,j=+t.apply(this,arguments),P=+e.apply(this,arguments),q=u.apply(this,arguments)-T1,ot=c.apply(this,arguments)-T1,tt=co(ot-q),gt=ot>q;if(g||(g=_=k1()),P<j&&(D=P,P=j,j=D),P>Qi)if(tt>E1-Qi)g.moveTo(P*Us(q),P*lo(q)),g.arc(0,0,P,q,ot,!gt),j>Qi&&(g.moveTo(j*Us(ot),j*lo(ot)),g.arc(0,0,j,ot,q,gt));else{var ht,wt,Tt=q,Pt=ot,Gt=q,Et=ot,ee=tt,ie=tt,kt=h.apply(this,arguments)/2,It=kt>Qi&&(o?+o.apply(this,arguments):ms(j*j+P*P)),Ct=dh(co(P-j)/2,+r.apply(this,arguments)),yt=Ct,Ft=Ct;if(It>Qi){var bt=Mp(It/j*lo(kt)),_e=Mp(It/P*lo(kt));(ee-=2*bt)>Qi?(Gt+=bt*=gt?1:-1,Et-=bt):(ee=0,Gt=Et=(q+ot)/2),(ie-=2*_e)>Qi?(Tt+=_e*=gt?1:-1,Pt-=_e):(ie=0,Tt=Pt=(q+ot)/2)}var we=P*Us(Tt),Ut=P*lo(Tt),Te=j*Us(Et),Ee=j*lo(Et);if(Ct>Qi){var be,he=P*Us(Pt),Pe=P*lo(Pt),Re=j*Us(Gt),Ke=j*lo(Gt);if(tt<Ma&&(be=Np(we,Ut,Re,Ke,he,Pe,Te,Ee))){var dn=we-be[0],He=Ut-be[1],dr=he-be[0],Er=Pe-be[1],On=1/lo(o4((dn*dr+He*Er)/(ms(dn*dn+He*He)*ms(dr*dr+Er*Er)))/2),Ur=ms(be[0]*be[0]+be[1]*be[1]);yt=dh(Ct,(j-Ur)/(On-1)),Ft=dh(Ct,(P-Ur)/(On+1))}}ie>Qi?Ft>Qi?(ht=Su(Re,Ke,we,Ut,P,Ft,gt),wt=Su(he,Pe,Te,Ee,P,Ft,gt),g.moveTo(ht.cx+ht.x01,ht.cy+ht.y01),Ft<Ct?g.arc(ht.cx,ht.cy,Ft,Zi(ht.y01,ht.x01),Zi(wt.y01,wt.x01),!gt):(g.arc(ht.cx,ht.cy,Ft,Zi(ht.y01,ht.x01),Zi(ht.y11,ht.x11),!gt),g.arc(0,0,P,Zi(ht.cy+ht.y11,ht.cx+ht.x11),Zi(wt.cy+wt.y11,wt.cx+wt.x11),!gt),g.arc(wt.cx,wt.cy,Ft,Zi(wt.y11,wt.x11),Zi(wt.y01,wt.x01),!gt))):(g.moveTo(we,Ut),g.arc(0,0,P,Tt,Pt,!gt)):g.moveTo(we,Ut),j>Qi&&ee>Qi?yt>Qi?(ht=Su(Te,Ee,he,Pe,j,-yt,gt),wt=Su(we,Ut,Re,Ke,j,-yt,gt),g.lineTo(ht.cx+ht.x01,ht.cy+ht.y01),yt<Ct?g.arc(ht.cx,ht.cy,yt,Zi(ht.y01,ht.x01),Zi(wt.y01,wt.x01),!gt):(g.arc(ht.cx,ht.cy,yt,Zi(ht.y01,ht.x01),Zi(ht.y11,ht.x11),!gt),g.arc(0,0,j,Zi(ht.cy+ht.y11,ht.cx+ht.x11),Zi(wt.cy+wt.y11,wt.cx+wt.x11),gt),g.arc(wt.cx,wt.cy,yt,Zi(wt.y11,wt.x11),Zi(wt.y01,wt.x01),!gt))):g.arc(0,0,j,Et,Gt,gt):g.lineTo(Te,Ee)}else g.moveTo(0,0);if(g.closePath(),_)return g=null,_+""||null}return w.centroid=function(){var _=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,D=(+u.apply(this,arguments)+ +c.apply(this,arguments))/2-Ma/2;return[Us(D)*_,lo(D)*_]},w.innerRadius=function(_){return arguments.length?(t=typeof _=="function"?_:fi(+_),w):t},w.outerRadius=function(_){return arguments.length?(e=typeof _=="function"?_:fi(+_),w):e},w.cornerRadius=function(_){return arguments.length?(r=typeof _=="function"?_:fi(+_),w):r},w.padRadius=function(_){return arguments.length?(o=_==null?null:typeof _=="function"?_:fi(+_),w):o},w.startAngle=function(_){return arguments.length?(u=typeof _=="function"?_:fi(+_),w):u},w.endAngle=function(_){return arguments.length?(c=typeof _=="function"?_:fi(+_),w):c},w.padAngle=function(_){return arguments.length?(h=typeof _=="function"?_:fi(+_),w):h},w.context=function(_){return arguments.length?(g=_??null,w):g},w}function ni(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ba(t){this._context=t}function xr(t){return new ba(t)}function Za(t){return t[0]}function Au(t){return t[1]}function Mu(t,e){var r=fi(!0),o=null,u=xr,c=null;function h(g){var w,_,D,j=(g=ni(g)).length,P=!1;for(o==null&&(c=u(D=k1())),w=0;w<=j;++w)!(w<j&&r(_=g[w],w,g))===P&&((P=!P)?c.lineStart():c.lineEnd()),P&&c.point(+t(_,w,g),+e(_,w,g));if(D)return c=null,D+""||null}return t=typeof t=="function"?t:t===void 0?Za:fi(t),e=typeof e=="function"?e:e===void 0?Au:fi(e),h.x=function(g){return arguments.length?(t=typeof g=="function"?g:fi(+g),h):t},h.y=function(g){return arguments.length?(e=typeof g=="function"?g:fi(+g),h):e},h.defined=function(g){return arguments.length?(r=typeof g=="function"?g:fi(!!g),h):r},h.curve=function(g){return arguments.length?(u=g,o!=null&&(c=u(o)),h):u},h.context=function(g){return arguments.length?(g==null?o=c=null:c=u(o=g),h):o},h}function hm(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Hc(t){return t}function Mo(){}function ho(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 $c(t){this._context=t}function vs(t){return new $c(t)}function ph(t){this._context=t}function gh(t){this._context=t}function yh(t){this._context=t}function mh(t){return t<0?-1:1}function vh(t,e,r){var o=t._x1-t._x0,u=e-t._x1,c=(t._y1-t._y0)/(o||u<0&&-0),h=(r-t._y1)/(u||o<0&&-0),g=(c*u+h*o)/(o+u);return(mh(c)+mh(h))*Math.min(Math.abs(c),Math.abs(h),.5*Math.abs(g))||0}function bh(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function _h(t,e,r){var o=t._x0,u=t._y0,c=t._x1,h=t._y1,g=(c-o)/3;t._context.bezierCurveTo(o+g,u+g*e,c-g,h-g*r,c,h)}function Wc(t){this._context=t}function A1(t){this._context=new Dp(t)}function Dp(t){this._context=t}function Op(t){this._context=t}function oa(t){var e,r,o=t.length-1,u=new Array(o),c=new Array(o),h=new Array(o);for(u[0]=0,c[0]=2,h[0]=t[0]+2*t[1],e=1;e<o-1;++e)u[e]=1,c[e]=4,h[e]=4*t[e]+2*t[e+1];for(u[o-1]=2,c[o-1]=7,h[o-1]=8*t[o-1]+t[o],e=1;e<o;++e)r=u[e]/c[e-1],c[e]-=r,h[e]-=r*h[e-1];for(u[o-1]=h[o-1]/c[o-1],e=o-2;e>=0;--e)u[e]=(h[e]-u[e+1])/c[e];for(c[o-1]=(t[o]+u[o-1])/2,e=0;e<o-1;++e)c[e]=2*t[e+1]-u[e+1];return[u,c]}function Yi(t,e){this._context=t,this._t=e}ba.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)}}},$c.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:ho(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:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ph.prototype={areaStart:Mo,areaEnd:Mo,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:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gh.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,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},yh.prototype={areaStart:Mo,areaEnd:Mo,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))}},Wc.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:_h(this,this._t0,bh(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,_h(this,bh(this,r=vh(this,t,e)),r);break;default:_h(this,this._t0,r=vh(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(A1.prototype=Object.create(Wc.prototype)).point=function(t,e){Wc.prototype.point.call(this,e,t)},Dp.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,o,u,c){this._context.bezierCurveTo(e,t,o,r,c,u)}},Op.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 o=oa(t),u=oa(e),c=0,h=1;h<r;++c,++h)this._context.bezierCurveTo(o[0][c],u[0][c],o[1][c],u[1][c],t[h],e[h]);(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)}},Yi.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 Ki=new Date,Nu=new Date;function Ji(t,e,r,o){function u(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}return u.floor=function(c){return t(c=new Date(+c)),c},u.ceil=function(c){return t(c=new Date(c-1)),e(c,1),t(c),c},u.round=function(c){var h=u(c),g=u.ceil(c);return c-h<g-c?h:g},u.offset=function(c,h){return e(c=new Date(+c),h==null?1:Math.floor(h)),c},u.range=function(c,h,g){var w,_=[];if(c=u.ceil(c),g=g==null?1:Math.floor(g),!(c<h&&g>0))return _;do _.push(w=new Date(+c)),e(c,g),t(c);while(w<c&&c<h);return _},u.filter=function(c){return Ji((function(h){if(h>=h)for(;t(h),!c(h);)h.setTime(h-1)}),(function(h,g){if(h>=h)if(g<0)for(;++g<=0;)for(;e(h,-1),!c(h););else for(;--g>=0;)for(;e(h,1),!c(h););}))},r&&(u.count=function(c,h){return Ki.setTime(+c),Nu.setTime(+h),t(Ki),t(Nu),Math.floor(r(Ki,Nu))},u.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?u.filter(o?function(h){return o(h)%c==0}:function(h){return u.count(0,h)%c==0}):u:null}),u}const M1=864e5,Bp=6048e5;function qs(t){return Ji((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)/Bp}))}var Lp=qs(0),xh=qs(1),u4=qs(2),c4=qs(3),zi=qs(4),l4=qs(5),fm=qs(6),dm=(Lp.range,xh.range,u4.range,c4.range,zi.range,l4.range,fm.range,Ji((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/M1}),(function(t){return t.getUTCDate()-1})));const fo=dm;function bs(t){return Ji((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()))/Bp}))}dm.range;var Vc=bs(0),wh=bs(1),h4=bs(2),f4=bs(3),Du=bs(4),d4=bs(5),p4=bs(6),pm=(Vc.range,wh.range,h4.range,f4.range,Du.range,d4.range,p4.range,Ji((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/M1),(t=>t.getDate()-1)));const Ip=pm;pm.range;var Rp=Ji((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()}));Rp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ji((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 Ko=Rp;Rp.range;var kh=Ji((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()}));kh.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ji((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 Ou=kh;function Th(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 N1(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 Gc(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}kh.range;var Xc,D1,Fp={"-":"",_:" ",0:"0"},Ai=/^\s*\d+/,g4=/^%/,gm=/[\\^$*+?|[\]().{}]/g;function hr(t,e,r){var o=t<0?"-":"",u=(o?-t:t)+"",c=u.length;return o+(c<r?new Array(r-c+1).join(e)+u:u)}function O1(t){return t.replace(gm,"\\$&")}function Zc(t){return new RegExp("^(?:"+t.map(O1).join("|")+")","i")}function Qc(t){return new Map(t.map(((e,r)=>[e.toLowerCase(),r])))}function Pp(t,e,r){var o=Ai.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function jp(t,e,r){var o=Ai.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function ym(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function mm(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function y4(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function vm(t,e,r){var o=Ai.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function B1(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function bm(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function Eh(t,e,r){var o=Ai.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function L1(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function Ch(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function m4(t,e,r){var o=Ai.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function I1(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function R1(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function F1(t,e,r){var o=Ai.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function Yp(t,e,r){var o=Ai.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function Kc(t,e,r){var o=Ai.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function v4(t,e,r){var o=g4.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function b4(t,e,r){var o=Ai.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function _4(t,e,r){var o=Ai.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function zp(t,e){return hr(t.getDate(),e,2)}function Up(t,e){return hr(t.getHours(),e,2)}function x4(t,e){return hr(t.getHours()%12||12,e,2)}function P1(t,e){return hr(1+Ip.count(Ko(t),t),e,3)}function qp(t,e){return hr(t.getMilliseconds(),e,3)}function _m(t,e){return qp(t,e)+"000"}function j1(t,e){return hr(t.getMonth()+1,e,2)}function xm(t,e){return hr(t.getMinutes(),e,2)}function wm(t,e){return hr(t.getSeconds(),e,2)}function km(t){var e=t.getDay();return e===0?7:e}function w4(t,e){return hr(Vc.count(Ko(t)-1,t),e,2)}function Hp(t){var e=t.getDay();return e>=4||e===0?Du(t):Du.ceil(t)}function k4(t,e){return t=Hp(t),hr(Du.count(Ko(t),t)+(Ko(t).getDay()===4),e,2)}function Tm(t){return t.getDay()}function Em(t,e){return hr(wh.count(Ko(t)-1,t),e,2)}function Cm(t,e){return hr(t.getFullYear()%100,e,2)}function T4(t,e){return hr((t=Hp(t)).getFullYear()%100,e,2)}function E4(t,e){return hr(t.getFullYear()%1e4,e,4)}function Sh(t,e){var r=t.getDay();return hr((t=r>=4||r===0?Du(t):Du.ceil(t)).getFullYear()%1e4,e,4)}function Sm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hr(e/60|0,"0",2)+hr(e%60,"0",2)}function $p(t,e){return hr(t.getUTCDate(),e,2)}function Wp(t,e){return hr(t.getUTCHours(),e,2)}function Vp(t,e){return hr(t.getUTCHours()%12||12,e,2)}function Gp(t,e){return hr(1+fo.count(Ou(t),t),e,3)}function Y1(t,e){return hr(t.getUTCMilliseconds(),e,3)}function Hs(t,e){return Y1(t,e)+"000"}function C4(t,e){return hr(t.getUTCMonth()+1,e,2)}function S4(t,e){return hr(t.getUTCMinutes(),e,2)}function Am(t,e){return hr(t.getUTCSeconds(),e,2)}function A4(t){var e=t.getUTCDay();return e===0?7:e}function Mm(t,e){return hr(Lp.count(Ou(t)-1,t),e,2)}function Bu(t){var e=t.getUTCDay();return e>=4||e===0?zi(t):zi.ceil(t)}function z1(t,e){return t=Bu(t),hr(zi.count(Ou(t),t)+(Ou(t).getUTCDay()===4),e,2)}function Ah(t){return t.getUTCDay()}function U1(t,e){return hr(xh.count(Ou(t)-1,t),e,2)}function M4(t,e){return hr(t.getUTCFullYear()%100,e,2)}function q1(t,e){return hr((t=Bu(t)).getUTCFullYear()%100,e,2)}function Nm(t,e){return hr(t.getUTCFullYear()%1e4,e,4)}function Dm(t,e){var r=t.getUTCDay();return hr((t=r>=4||r===0?zi(t):zi.ceil(t)).getUTCFullYear()%1e4,e,4)}function Jo(){return"+0000"}function No(){return"%"}function H1(t){return+t}function $1(t){return Math.floor(+t/1e3)}Xc=(function(t){var e=t.dateTime,r=t.date,o=t.time,u=t.periods,c=t.days,h=t.shortDays,g=t.months,w=t.shortMonths,_=Zc(u),D=Qc(u),j=Zc(c),P=Qc(c),q=Zc(h),ot=Qc(h),tt=Zc(g),gt=Qc(g),ht=Zc(w),wt=Qc(w),Tt={a:function(kt){return h[kt.getDay()]},A:function(kt){return c[kt.getDay()]},b:function(kt){return w[kt.getMonth()]},B:function(kt){return g[kt.getMonth()]},c:null,d:zp,e:zp,f:_m,g:T4,G:Sh,H:Up,I:x4,j:P1,L:qp,m:j1,M:xm,p:function(kt){return u[+(kt.getHours()>=12)]},q:function(kt){return 1+~~(kt.getMonth()/3)},Q:H1,s:$1,S:wm,u:km,U:w4,V:k4,w:Tm,W:Em,x:null,X:null,y:Cm,Y:E4,Z:Sm,"%":No},Pt={a:function(kt){return h[kt.getUTCDay()]},A:function(kt){return c[kt.getUTCDay()]},b:function(kt){return w[kt.getUTCMonth()]},B:function(kt){return g[kt.getUTCMonth()]},c:null,d:$p,e:$p,f:Hs,g:q1,G:Dm,H:Wp,I:Vp,j:Gp,L:Y1,m:C4,M:S4,p:function(kt){return u[+(kt.getUTCHours()>=12)]},q:function(kt){return 1+~~(kt.getUTCMonth()/3)},Q:H1,s:$1,S:Am,u:A4,U:Mm,V:z1,w:Ah,W:U1,x:null,X:null,y:M4,Y:Nm,Z:Jo,"%":No},Gt={a:function(kt,It,Ct){var yt=q.exec(It.slice(Ct));return yt?(kt.w=ot.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},A:function(kt,It,Ct){var yt=j.exec(It.slice(Ct));return yt?(kt.w=P.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},b:function(kt,It,Ct){var yt=ht.exec(It.slice(Ct));return yt?(kt.m=wt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},B:function(kt,It,Ct){var yt=tt.exec(It.slice(Ct));return yt?(kt.m=gt.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},c:function(kt,It,Ct){return ie(kt,e,It,Ct)},d:Ch,e:Ch,f:Kc,g:B1,G:vm,H:I1,I:I1,j:m4,L:Yp,m:L1,M:R1,p:function(kt,It,Ct){var yt=_.exec(It.slice(Ct));return yt?(kt.p=D.get(yt[0].toLowerCase()),Ct+yt[0].length):-1},q:Eh,Q:b4,s:_4,S:F1,u:jp,U:ym,V:mm,w:Pp,W:y4,x:function(kt,It,Ct){return ie(kt,r,It,Ct)},X:function(kt,It,Ct){return ie(kt,o,It,Ct)},y:B1,Y:vm,Z:bm,"%":v4};function Et(kt,It){return function(Ct){var yt,Ft,bt,_e=[],we=-1,Ut=0,Te=kt.length;for(Ct instanceof Date||(Ct=new Date(+Ct));++we<Te;)kt.charCodeAt(we)===37&&(_e.push(kt.slice(Ut,we)),(Ft=Fp[yt=kt.charAt(++we)])!=null?yt=kt.charAt(++we):Ft=yt==="e"?" ":"0",(bt=It[yt])&&(yt=bt(Ct,Ft)),_e.push(yt),Ut=we+1);return _e.push(kt.slice(Ut,we)),_e.join("")}}function ee(kt,It){return function(Ct){var yt,Ft,bt=Gc(1900,void 0,1);if(ie(bt,kt,Ct+="",0)!=Ct.length)return null;if("Q"in bt)return new Date(bt.Q);if("s"in bt)return new Date(1e3*bt.s+("L"in bt?bt.L:0));if(It&&!("Z"in bt)&&(bt.Z=0),"p"in bt&&(bt.H=bt.H%12+12*bt.p),bt.m===void 0&&(bt.m="q"in bt?bt.q:0),"V"in bt){if(bt.V<1||bt.V>53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Ft=(yt=N1(Gc(bt.y,0,1))).getUTCDay(),yt=Ft>4||Ft===0?xh.ceil(yt):xh(yt),yt=fo.offset(yt,7*(bt.V-1)),bt.y=yt.getUTCFullYear(),bt.m=yt.getUTCMonth(),bt.d=yt.getUTCDate()+(bt.w+6)%7):(Ft=(yt=Th(Gc(bt.y,0,1))).getDay(),yt=Ft>4||Ft===0?wh.ceil(yt):wh(yt),yt=Ip.offset(yt,7*(bt.V-1)),bt.y=yt.getFullYear(),bt.m=yt.getMonth(),bt.d=yt.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),Ft="Z"in bt?N1(Gc(bt.y,0,1)).getUTCDay():Th(Gc(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+7*bt.W-(Ft+5)%7:bt.w+7*bt.U-(Ft+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,N1(bt)):Th(bt)}}function ie(kt,It,Ct,yt){for(var Ft,bt,_e=0,we=It.length,Ut=Ct.length;_e<we;){if(yt>=Ut)return-1;if((Ft=It.charCodeAt(_e++))===37){if(Ft=It.charAt(_e++),!(bt=Gt[Ft in Fp?It.charAt(_e++):Ft])||(yt=bt(kt,Ct,yt))<0)return-1}else if(Ft!=Ct.charCodeAt(yt++))return-1}return yt}return Tt.x=Et(r,Tt),Tt.X=Et(o,Tt),Tt.c=Et(e,Tt),Pt.x=Et(r,Pt),Pt.X=Et(o,Pt),Pt.c=Et(e,Pt),{format:function(kt){var It=Et(kt+="",Tt);return It.toString=function(){return kt},It},parse:function(kt){var It=ee(kt+="",!1);return It.toString=function(){return kt},It},utcFormat:function(kt){var It=Et(kt+="",Pt);return It.toString=function(){return kt},It},utcParse:function(kt){var It=ee(kt+="",!0);return It.toString=function(){return kt},It}}})({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"]}),D1=Xc.format,Xc.parse,Xc.utcFormat,Xc.utcParse;var Mh={value:()=>{}};function Nh(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new Lu(o)}function Lu(t){this._=t}function Jc(t,e){return t.trim().split(/^|\s+/).map((function(r){var o="",u=r.indexOf(".");if(u>=0&&(o=r.slice(u+1),r=r.slice(0,u)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}}))}function Xp(t,e){for(var r,o=0,u=t.length;o<u;++o)if((r=t[o]).name===e)return r.value}function W1(t,e,r){for(var o=0,u=t.length;o<u;++o)if(t[o].name===e){t[o]=Mh,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}Lu.prototype=Nh.prototype={constructor:Lu,on:function(t,e){var r,o=this._,u=Jc(t+"",o),c=-1,h=u.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++c<h;)if(r=(t=u[c]).type)o[r]=W1(o[r],t.name,e);else if(e==null)for(r in o)o[r]=W1(o[r],t.name,null);return this}for(;++c<h;)if((r=(t=u[c]).type)&&(r=Xp(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Lu(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,u=new Array(r),c=0;c<r;++c)u[c]=arguments[c+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=0,r=(o=this._[t]).length;c<r;++c)o[c].value.apply(e,u)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],u=0,c=o.length;u<c;++u)o[u].value.apply(e,r)}};const Dh=Nh;var Na,Do,Iu=0,Oh=0,Bh=0,Lh=0,Ru=0,V1=0,Ih=typeof performance=="object"&&performance.now?performance:Date,Zp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function G1(){return Ru||(Zp(Om),Ru=Ih.now()+V1)}function Om(){Ru=0}function tl(){this._call=this._time=this._next=null}function Qp(t,e,r){var o=new tl;return o.restart(t,e,r),o}function Kp(){Ru=(Lh=Ih.now())+V1,Iu=Oh=0;try{(function(){G1(),++Iu;for(var t,e=Na;e;)(t=Ru-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Iu})()}finally{Iu=0,(function(){for(var t,e,r=Na,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Na=e);Do=t,Fu(o)})(),Ru=0}}function Rh(){var t=Ih.now(),e=t-Lh;e>1e3&&(V1-=e,Lh=t)}function Fu(t){Iu||(Oh&&(Oh=clearTimeout(Oh)),t-Ru>24?(t<1/0&&(Oh=setTimeout(Kp,t-Ih.now()-V1)),Bh&&(Bh=clearInterval(Bh))):(Bh||(Lh=Ih.now(),Bh=setInterval(Rh,1e3)),Iu=1,Zp(Kp)))}function X1(t,e,r){var o=new tl;return e=e==null?0:+e,o.restart((u=>{o.stop(),t(u+e)}),e,r),o}tl.prototype=Qp.prototype={constructor:tl,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?G1():+r)+(e==null?0:+e),this._next||Do===this||(Do?Do._next=this:Na=this,Do=this),this._call=t,this._time=r,Fu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fu())}};var Z1=Dh("start","end","cancel","interrupt"),N4=[];function Fh(t,e,r,o,u,c){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,w,_){var D,j=g.__transition;function P(tt){var gt,ht,wt,Tt;if(_.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===_.name){if(Tt.state===3)return X1(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete j[gt])}if(X1((function(){_.state===3&&(_.state=4,_.timer.restart(q,_.delay,_.time),q(tt))})),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(wt=_.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=_.tween[gt].value.call(g,g.__data__,_.index,_.group))&&(D[++ht]=Tt);D.length=ht+1}}function q(tt){for(var gt=tt<_.duration?_.ease.call(null,tt/_.duration):(_.timer.restart(ot),_.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(g,gt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ot())}function ot(){for(var tt in _.state=6,_.timer.stop(),delete j[w],j)return;delete g.__transition}j[w]=_,_.timer=Qp((function(tt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=tt&&P(tt-_.delay)}),0,_.time)})(t,r,{name:e,index:o,group:u,on:Z1,tween:N4,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:0})}function Q1(t,e){var r=po(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Oo(t,e){var r=po(t,e);if(r.state>3)throw new Error("too late; already running");return r}function po(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function $s(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var K1,el=180/Math.PI,Ph={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function J1(t,e,r,o,u,c){var h,g,w;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(w=t*r+e*o)&&(r-=t*w,o-=e*w),(g=Math.sqrt(r*r+o*o))&&(r/=g,o/=g,w/=g),t*o<e*r&&(t=-t,e=-e,w=-w,h=-h),{translateX:u,translateY:c,rotate:Math.atan2(e,t)*el,skewX:Math.atan(w)*el,scaleX:h,scaleY:g}}function jh(t,e,r,o){function u(c){return c.length?c.pop()+" ":""}return function(c,h){var g=[],w=[];return c=t(c),h=t(h),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push("translate(",null,e,null,r);ot.push({i:tt-4,x:$s(_,j)},{i:tt-2,x:$s(D,P)})}else(j||P)&&q.push("translate("+j+e+P+r)})(c.translateX,c.translateY,h.translateX,h.translateY,g,w),(function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(u(j)+"rotate(",null,o)-2,x:$s(_,D)})):D&&j.push(u(j)+"rotate("+D+o)})(c.rotate,h.rotate,g,w),(function(_,D,j,P){_!==D?P.push({i:j.push(u(j)+"skewX(",null,o)-2,x:$s(_,D)}):D&&j.push(u(j)+"skewX("+D+o)})(c.skewX,h.skewX,g,w),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push(u(q)+"scale(",null,",",null,")");ot.push({i:tt-4,x:$s(_,j)},{i:tt-2,x:$s(D,P)})}else j===1&&P===1||q.push(u(q)+"scale("+j+","+P+")")})(c.scaleX,c.scaleY,h.scaleX,h.scaleY,g,w),c=h=null,function(_){for(var D,j=-1,P=w.length;++j<P;)g[(D=w[j]).i]=D.x(_);return g.join("")}}}var Jp=jh((function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ph:J1(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),tg=jh((function(t){return t==null?Ph:(K1||(K1=document.createElementNS("http://www.w3.org/2000/svg","g")),K1.setAttribute("transform",t),(t=K1.transform.baseVal.consolidate())?J1((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ph)}),", ",")",")");function eg(t,e){var r,o;return function(){var u=Oo(this,t),c=u.tween;if(c!==r){for(var h=0,g=(o=r=c).length;h<g;++h)if(o[h].name===e){(o=o.slice()).splice(h,1);break}}u.tween=o}}function D4(t,e,r){var o,u;if(typeof r!="function")throw new Error;return function(){var c=Oo(this,t),h=c.tween;if(h!==o){u=(o=h).slice();for(var g={name:e,value:r},w=0,_=u.length;w<_;++w)if(u[w].name===e){u[w]=g;break}w===_&&u.push(g)}c.tween=u}}function t0(t,e,r){var o=t._id;return t.each((function(){var u=Oo(this,o);(u.value||(u.value={}))[e]=r.apply(this,arguments)})),function(u){return po(u,o).value[e]}}const Bm=(function t(e){var r=(function(u){return(u=+u)==1?Ql:function(c,h){return h-c?(function(g,w,_){return g=Math.pow(g,_),w=Math.pow(w,_)-g,_=1/_,function(D){return Math.pow(g+D*w,_)}})(c,h,u):jd(isNaN(c)?h:c)}})(e);function o(u,c){var h=r((u=Mr(u)).r,(c=Mr(c)).r),g=r(u.g,c.g),w=r(u.b,c.b),_=Ql(u.opacity,c.opacity);return function(D){return u.r=h(D),u.g=g(D),u.b=w(D),u.opacity=_(D),u+""}}return o.gamma=t,o})(1);var ng=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,e0=new RegExp(ng.source,"g");function ts(t,e){var r,o,u,c=ng.lastIndex=e0.lastIndex=0,h=-1,g=[],w=[];for(t+="",e+="";(r=ng.exec(t))&&(o=e0.exec(e));)(u=o.index)>c&&(u=e.slice(c,u),g[h]?g[h]+=u:g[++h]=u),(r=r[0])===(o=o[0])?g[h]?g[h]+=o:g[++h]=o:(g[++h]=null,w.push({i:h,x:$s(r,o)})),c=e0.lastIndex;return c<e.length&&(u=e.slice(c),g[h]?g[h]+=u:g[++h]=u),g.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)g[(D=w[j]).i]=D.x(_);return g.join("")})}function n0(t,e){var r;return(typeof e=="number"?$s:e instanceof mn?Bm:(r=mn(e))?(e=r,Bm):ts)(t,e)}function rg(t){return function(){this.removeAttribute(t)}}function Lm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function r0(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttribute(t);return h===c?null:h===o?u:u=e(o=h,r)}}function Im(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===c?null:h===o?u:u=e(o=h,r)}}function O4(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttribute(t))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttribute(t)}}function Rm(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttributeNS(t.space,t.local)}}function Yh(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ig(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function B4(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&ig(t,c)),r}return u._value=e,u}function ag(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&Yh(t,c)),r}return u._value=e,u}function L4(t,e){return function(){Q1(this,t).delay=+e.apply(this,arguments)}}function zh(t,e){return e=+e,function(){Q1(this,t).delay=e}}function I4(t,e){return function(){Oo(this,t).duration=+e.apply(this,arguments)}}function Fm(t,e){return e=+e,function(){Oo(this,t).duration=e}}function i0(t,e){if(typeof e!="function")throw new Error;return function(){Oo(this,t).ease=e}}function Pm(t,e,r){var o,u,c=(function(h){return(h+"").trim().split(/^|\s+/).every((function(g){var w=g.indexOf(".");return w>=0&&(g=g.slice(0,w)),!g||g==="start"}))})(e)?Q1:Oo;return function(){var h=c(this,t),g=h.on;g!==o&&(u=(o=g).copy()).on(e,r),h.on=u}}var R4=ai.prototype.constructor;function nl(t){return function(){this.style.removeProperty(t)}}function F4(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function jm(t,e,r){var o,u;function c(){var h=e.apply(this,arguments);return h!==u&&(o=(u=h)&&F4(t,h,r)),o}return c._value=e,c}function P4(t){return function(e){this.textContent=t.call(this,e)}}function Uh(t){var e,r;function o(){var u=t.apply(this,arguments);return u!==r&&(e=(r=u)&&P4(u)),e}return o._value=t,o}var qh=0;function Qa(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function rl(){return++qh}var go=ai.prototype;Qa.prototype={constructor:Qa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=_p(t));for(var o=this._groups,u=o.length,c=new Array(u),h=0;h<u;++h)for(var g,w,_=o[h],D=_.length,j=c[h]=new Array(D),P=0;P<D;++P)(g=_[P])&&(w=t.call(g,g.__data__,P,_))&&("__data__"in g&&(w.__data__=g.__data__),j[P]=w,Fh(j[P],e,r,P,j,po(g,r)));return new Qa(c,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=gs(t));for(var o=this._groups,u=o.length,c=[],h=[],g=0;g<u;++g)for(var w,_=o[g],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,q=t.call(w,w.__data__,j,_),ot=po(w,r),tt=0,gt=q.length;tt<gt;++tt)(P=q[tt])&&Fh(P,e,r,tt,q,ot);c.push(q),h.push(w)}return new Qa(c,h,e,r)},selectChild:go.selectChild,selectChildren:go.selectChildren,filter:function(t){typeof t!="function"&&(t=xp(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new Qa(o,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,o=e.length,u=r.length,c=Math.min(o,u),h=new Array(o),g=0;g<c;++g)for(var w,_=e[g],D=r[g],j=_.length,P=h[g]=new Array(j),q=0;q<j;++q)(w=_[q]||D[q])&&(P[q]=w);for(;g<o;++g)h[g]=e[g];return new Qa(h,this._parents,this._name,this._id)},selection:function(){return new R4(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=rl(),o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)if(h=g[_]){var D=po(h,e);Fh(h,t,r,_,g,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new Qa(o,this._parents,t,r)},call:go.call,nodes:go.nodes,node:go.node,size:go.size,empty:go.empty,each:go.each,on:function(t,e){var r=this._id;return arguments.length<2?po(this.node(),r).on.on(t):this.each(Pm(r,t,e))},attr:function(t,e){var r=f1(t),o=r==="transform"?tg:n0;return this.attrTween(t,typeof e=="function"?(r.local?Rm:O4)(r,o,t0(this,"attr."+t,e)):e==null?(r.local?Lm:rg)(r):(r.local?Im:r0)(r,o,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 o=f1(t);return this.tween(r,(o.local?B4:ag)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?Jp:n0;return e==null?this.styleTween(t,(function(u,c){var h,g,w;return function(){var _=ys(this,u),D=(this.style.removeProperty(u),ys(this,u));return _===D?null:_===h&&D===g?w:w=c(h=_,g=D)}})(t,o)).on("end.style."+t,nl(t)):typeof e=="function"?this.styleTween(t,(function(u,c,h){var g,w,_;return function(){var D=ys(this,u),j=h(this),P=j+"";return j==null&&(this.style.removeProperty(u),P=j=ys(this,u)),D===P?null:D===g&&P===w?_:(w=P,_=c(g=D,j))}})(t,o,t0(this,"style."+t,e))).each((function(u,c){var h,g,w,_,D="style."+c,j="end."+D;return function(){var P=Oo(this,u),q=P.on,ot=P.value[D]==null?_||(_=nl(c)):void 0;q===h&&w===ot||(g=(h=q).copy()).on(j,w=ot),P.on=g}})(this._id,t)):this.styleTween(t,(function(u,c,h){var g,w,_=h+"";return function(){var D=ys(this,u);return D===_?null:D===g?w:w=c(g=D,h)}})(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,jm(t,e,r??""))},text:function(t){return this.tween("text",typeof t=="function"?(function(e){return function(){var r=e(this);this.textContent=r??""}})(t0(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,Uh(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 o,u=po(this.node(),r).tween,c=0,h=u.length;c<h;++c)if((o=u[c]).name===t)return o.value;return null}return this.each((e==null?eg:D4)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?L4:zh)(e,t)):po(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?I4:Fm)(e,t)):po(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(i0(e,t)):po(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each((function(e,r){return function(){var o=r.apply(this,arguments);if(typeof o!="function")throw new Error;Oo(this,e).ease=o}})(this._id,t))},end:function(){var t,e,r=this,o=r._id,u=r.size();return new Promise((function(c,h){var g={value:h},w={value:function(){--u==0&&c()}};r.each((function(){var _=Oo(this,o),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(w)),_.on=e})),u===0&&c()}))},[Symbol.iterator]:go[Symbol.iterator]};var og={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function j4(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 sg(){}function ug(t){return t==null?sg:function(){return this.querySelector(t)}}function Y4(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function cg(){return[]}function Ym(t){return t==null?cg:function(){return this.querySelectorAll(t)}}function a0(t){return function(){return this.matches(t)}}function zm(t){return function(e){return e.matches(t)}}ai.prototype.interrupt=function(t){return this.each((function(){(function(e,r){var o,u,c,h=e.__transition,g=!0;if(h){for(c in r=r==null?null:r+"",h)(o=h[c]).name===r?(u=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(u?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete h[c]):g=!1;g&&delete e.__transition}})(this,t)}))},ai.prototype.transition=function(t){var e,r;t instanceof Qa?(e=t._id,t=t._name):(e=rl(),(r=og).time=G1(),t=t==null?null:t+"");for(var o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)(h=g[_])&&Fh(h,t,e,_,g,r||j4(h,e));return new Qa(o,this._parents,t,e)};var lg=Array.prototype.find;function z4(){return this.firstElementChild}var hg=Array.prototype.filter;function U4(){return Array.from(this.children)}function Um(t){return new Array(t.length)}function o0(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function q4(t){return function(){return t}}function H4(t,e,r,o,u,c){for(var h,g=0,w=e.length,_=c.length;g<_;++g)(h=e[g])?(h.__data__=c[g],o[g]=h):r[g]=new o0(t,c[g]);for(;g<w;++g)(h=e[g])&&(u[g]=h)}function $4(t,e,r,o,u,c,h){var g,w,_,D=new Map,j=e.length,P=c.length,q=new Array(j);for(g=0;g<j;++g)(w=e[g])&&(q[g]=_=h.call(w,w.__data__,g,e)+"",D.has(_)?u[g]=w:D.set(_,w));for(g=0;g<P;++g)_=h.call(t,c[g],g,c)+"",(w=D.get(_))?(o[g]=w,w.__data__=c[g],D.delete(_)):r[g]=new o0(t,c[g]);for(g=0;g<j;++g)(w=e[g])&&D.get(q[g])===w&&(u[g]=w)}function fg(t){return t.__data__}function W4(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function V4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}o0.prototype={constructor:o0,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 s0="http://www.w3.org/1999/xhtml";const Pu={svg:"http://www.w3.org/2000/svg",xhtml:s0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function u0(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Pu.hasOwnProperty(e)?{space:Pu[e],local:t}:t}function qm(t){return function(){this.removeAttribute(t)}}function G4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function c0(t,e){return function(){this.setAttribute(t,e)}}function Hm(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function dg(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function X4(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 il(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $m(t){return function(){this.style.removeProperty(t)}}function Wm(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Vm(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function ju(t,e){return t.style.getPropertyValue(e)||il(t).getComputedStyle(t,null).getPropertyValue(e)}function l0(t){return function(){delete this[t]}}function Gm(t,e){return function(){this[t]=e}}function Z4(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Xm(t){return t.trim().split(/^|\s+/)}function al(t){return t.classList||new Ws(t)}function Ws(t){this._node=t,this._names=Xm(t.getAttribute("class")||"")}function Yu(t,e){for(var r=al(t),o=-1,u=e.length;++o<u;)r.add(e[o])}function Zm(t,e){for(var r=al(t),o=-1,u=e.length;++o<u;)r.remove(e[o])}function Q4(t){return function(){Yu(this,t)}}function Qm(t){return function(){Zm(this,t)}}function pg(t,e){return function(){(e.apply(this,arguments)?Yu:Zm)(this,t)}}function Km(){this.textContent=""}function Jm(t){return function(){this.textContent=t}}function Hh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function K4(){this.innerHTML=""}function J4(t){return function(){this.innerHTML=t}}function tv(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function t5(){this.nextSibling&&this.parentNode.appendChild(this)}function e5(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function n5(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===s0&&e.documentElement.namespaceURI===s0?e.createElement(t):e.createElementNS(r,t)}}function r5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function h0(t){var e=u0(t);return(e.local?r5:n5)(e)}function gg(){return null}function i5(){var t=this.parentNode;t&&t.removeChild(this)}function a5(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function f0(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function o5(t){return t.trim().split(/^|\s+/).map((function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}}))}function d0(t){return function(){var e=this.__on;if(e){for(var r,o=0,u=-1,c=e.length;o<c;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++u]=r:this.removeEventListener(r.type,r.listener,r.options);++u?e.length=u:delete this.__on}}}function ev(t,e,r){return function(){var o,u=this.__on,c=(function(w){return function(_){w.call(this,_,this.__data__)}})(e);if(u){for(var h=0,g=u.length;h<g;++h)if((o=u[h]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=c,o.options=r),void(o.value=e)}this.addEventListener(t.type,c,r),o={type:t.type,name:t.name,value:e,listener:c,options:r},u?u.push(o):this.__on=[o]}}function yg(t,e,r){var o=il(t),u=o.CustomEvent;typeof u=="function"?u=new u(e,r):(u=o.document.createEvent("Event"),r?(u.initEvent(e,r.bubbles,r.cancelable),u.detail=r.detail):u.initEvent(e,!1,!1)),t.dispatchEvent(u)}function nv(t,e){return function(){return yg(this,t,e)}}function s5(t,e){return function(){return yg(this,t,e.apply(this,arguments))}}Ws.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 u5=[null];function Bo(t,e){this._groups=t,this._parents=e}function rv(){return new Bo([[document.documentElement]],u5)}Bo.prototype=rv.prototype={constructor:Bo,select:function(t){typeof t!="function"&&(t=ug(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h,g=e[u],w=g.length,_=o[u]=new Array(w),D=0;D<w;++D)(c=g[D])&&(h=t.call(c,c.__data__,D,g))&&("__data__"in c&&(h.__data__=c.__data__),_[D]=h);return new Bo(o,this._parents)},selectAll:function(t){t=typeof t=="function"?(function(D){return function(){return Y4(D.apply(this,arguments))}})(t):Ym(t);for(var e=this._groups,r=e.length,o=[],u=[],c=0;c<r;++c)for(var h,g=e[c],w=g.length,_=0;_<w;++_)(h=g[_])&&(o.push(t.call(h,h.__data__,_,g)),u.push(h));return new Bo(o,u)},selectChild:function(t){return this.select(t==null?z4:(function(e){return function(){return lg.call(this.children,e)}})(typeof t=="function"?t:zm(t)))},selectChildren:function(t){return this.selectAll(t==null?U4:(function(e){return function(){return hg.call(this.children,e)}})(typeof t=="function"?t:zm(t)))},filter:function(t){typeof t!="function"&&(t=a0(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new Bo(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,fg);var r=e?$4:H4,o=this._parents,u=this._groups;typeof t!="function"&&(t=q4(t));for(var c=u.length,h=new Array(c),g=new Array(c),w=new Array(c),_=0;_<c;++_){var D=o[_],j=u[_],P=j.length,q=W4(t.call(D,D&&D.__data__,_,o)),ot=q.length,tt=g[_]=new Array(ot),gt=h[_]=new Array(ot),ht=w[_]=new Array(P);r(D,j,tt,gt,ht,q,e);for(var wt,Tt,Pt=0,Gt=0;Pt<ot;++Pt)if(wt=tt[Pt]){for(Pt>=Gt&&(Gt=Pt+1);!(Tt=gt[Gt])&&++Gt<ot;);wt._next=Tt||null}}return(h=new Bo(h,o))._enter=g,h._exit=w,h},enter:function(){return new Bo(this._enter||this._groups.map(Um),this._parents)},exit:function(){return new Bo(this._exit||this._groups.map(Um),this._parents)},join:function(t,e,r){var o=this.enter(),u=this,c=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(u=e(u))&&(u=u.selection()),r==null?c.remove():r(c),o&&u?o.merge(u).order():u},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,u=r.length,c=o.length,h=Math.min(u,c),g=new Array(u),w=0;w<h;++w)for(var _,D=r[w],j=o[w],P=D.length,q=g[w]=new Array(P),ot=0;ot<P;++ot)(_=D[ot]||j[ot])&&(q[ot]=_);for(;w<u;++w)g[w]=r[w];return new Bo(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,u=t[e],c=u.length-1,h=u[c];--c>=0;)(o=u[c])&&(h&&4^o.compareDocumentPosition(h)&&h.parentNode.insertBefore(o,h),h=o);return this},sort:function(t){function e(j,P){return j&&P?t(j.__data__,P.__data__):!j-!P}t||(t=V4);for(var r=this._groups,o=r.length,u=new Array(o),c=0;c<o;++c){for(var h,g=r[c],w=g.length,_=u[c]=new Array(w),D=0;D<w;++D)(h=g[D])&&(_[D]=h);_.sort(e)}return new Bo(u,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 o=t[e],u=0,c=o.length;u<c;++u){var h=o[u];if(h)return h}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,o=e.length;r<o;++r)for(var u,c=e[r],h=0,g=c.length;h<g;++h)(u=c[h])&&t.call(u,u.__data__,h,c);return this},attr:function(t,e){var r=u0(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?G4:qm:typeof e=="function"?r.local?X4:dg:r.local?Hm:c0)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?$m:typeof e=="function"?Vm:Wm)(t,e,r??"")):ju(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?l0:typeof e=="function"?Z4:Gm)(t,e)):this.node()[t]},classed:function(t,e){var r=Xm(t+"");if(arguments.length<2){for(var o=al(this.node()),u=-1,c=r.length;++u<c;)if(!o.contains(r[u]))return!1;return!0}return this.each((typeof e=="function"?pg:e?Q4:Qm)(r,e))},text:function(t){return arguments.length?this.each(t==null?Km:(typeof t=="function"?Hh:Jm)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?K4:(typeof t=="function"?tv:J4)(t)):this.node().innerHTML},raise:function(){return this.each(t5)},lower:function(){return this.each(e5)},append:function(t){var e=typeof t=="function"?t:h0(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var r=typeof t=="function"?t:h0(t),o=e==null?gg:typeof e=="function"?e:ug(e);return this.select((function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(i5)},clone:function(t){return this.select(t?f0:a5)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,u,c=o5(t+""),h=c.length;if(!(arguments.length<2)){for(g=e?ev:d0,o=0;o<h;++o)this.each(g(c[o],e,r));return this}var g=this.node().__on;if(g){for(var w,_=0,D=g.length;_<D;++_)for(o=0,w=g[_];o<h;++o)if((u=c[o]).type===w.type&&u.name===w.name)return w.value}},dispatch:function(t,e){return this.each((typeof e=="function"?s5:nv)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,u=t[e],c=0,h=u.length;c<h;++c)(o=u[c])&&(yield o)}};const p0=rv;var c5={value:()=>{}};function mg(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new Vs(o)}function Vs(t){this._=t}function iv(t,e){return t.trim().split(/^|\s+/).map((function(r){var o="",u=r.indexOf(".");if(u>=0&&(o=r.slice(u+1),r=r.slice(0,u)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}}))}function av(t,e){for(var r,o=0,u=t.length;o<u;++o)if((r=t[o]).name===e)return r.value}function vg(t,e,r){for(var o=0,u=t.length;o<u;++o)if(t[o].name===e){t[o]=c5,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}Vs.prototype=mg.prototype={constructor:Vs,on:function(t,e){var r,o=this._,u=iv(t+"",o),c=-1,h=u.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++c<h;)if(r=(t=u[c]).type)o[r]=vg(o[r],t.name,e);else if(e==null)for(r in o)o[r]=vg(o[r],t.name,null);return this}for(;++c<h;)if((r=(t=u[c]).type)&&(r=av(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Vs(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,u=new Array(r),c=0;c<r;++c)u[c]=arguments[c+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=0,r=(o=this._[t]).length;c<r;++c)o[c].value.apply(e,u)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],u=0,c=o.length;u<c;++u)o[u].value.apply(e,r)}};const l5=mg;var g0,$h,zu=0,Wh=0,Vh=0,Gh=0,Uu=0,qu=0,Xh=typeof performance=="object"&&performance.now?performance:Date,ov=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function bg(){return Uu||(ov(h5),Uu=Xh.now()+qu)}function h5(){Uu=0}function y0(){this._call=this._time=this._next=null}function sv(t,e,r){var o=new y0;return o.restart(t,e,r),o}function _g(){Uu=(Gh=Xh.now())+qu,zu=Wh=0;try{(function(){bg(),++zu;for(var t,e=g0;e;)(t=Uu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zu})()}finally{zu=0,(function(){for(var t,e,r=g0,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:g0=e);$h=t,xg(o)})(),Uu=0}}function f5(){var t=Xh.now(),e=t-Gh;e>1e3&&(qu-=e,Gh=t)}function xg(t){zu||(Wh&&(Wh=clearTimeout(Wh)),t-Uu>24?(t<1/0&&(Wh=setTimeout(_g,t-Xh.now()-qu)),Vh&&(Vh=clearInterval(Vh))):(Vh||(Gh=Xh.now(),Vh=setInterval(f5,1e3)),zu=1,ov(_g)))}function uv(t,e,r){var o=new y0;return e=e==null?0:+e,o.restart((u=>{o.stop(),t(u+e)}),e,r),o}y0.prototype=sv.prototype={constructor:y0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?bg():+r)+(e==null?0:+e),this._next||$h===this||($h?$h._next=this:g0=this,$h=this),this._call=t,this._time=r,xg()},stop:function(){this._call&&(this._call=null,this._time=1/0,xg())}};var ol=l5("start","end","cancel","interrupt"),d5=[];function Zh(t,e,r,o,u,c){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,w,_){var D,j=g.__transition;function P(tt){var gt,ht,wt,Tt;if(_.state!==1)return ot();for(gt in j)if((Tt=j[gt]).name===_.name){if(Tt.state===3)return uv(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete j[gt]):+gt<w&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete j[gt])}if(uv((function(){_.state===3&&(_.state=4,_.timer.restart(q,_.delay,_.time),q(tt))})),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,D=new Array(wt=_.tween.length),gt=0,ht=-1;gt<wt;++gt)(Tt=_.tween[gt].value.call(g,g.__data__,_.index,_.group))&&(D[++ht]=Tt);D.length=ht+1}}function q(tt){for(var gt=tt<_.duration?_.ease.call(null,tt/_.duration):(_.timer.restart(ot),_.state=5,1),ht=-1,wt=D.length;++ht<wt;)D[ht].call(g,gt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ot())}function ot(){for(var tt in _.state=6,_.timer.stop(),delete j[w],j)return;delete g.__transition}j[w]=_,_.timer=sv((function(tt){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=tt&&P(tt-_.delay)}),0,_.time)})(t,r,{name:e,index:o,group:u,on:ol,tween:d5,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:0})}function wg(t,e){var r=Io(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Lo(t,e){var r=Io(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Io(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Gs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Da,es=180/Math.PI,m0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qh(t,e,r,o,u,c){var h,g,w;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(w=t*r+e*o)&&(r-=t*w,o-=e*w),(g=Math.sqrt(r*r+o*o))&&(r/=g,o/=g,w/=g),t*o<e*r&&(t=-t,e=-e,w=-w,h=-h),{translateX:u,translateY:c,rotate:Math.atan2(e,t)*es,skewX:Math.atan(w)*es,scaleX:h,scaleY:g}}function Xs(t,e,r,o){function u(c){return c.length?c.pop()+" ":""}return function(c,h){var g=[],w=[];return c=t(c),h=t(h),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push("translate(",null,e,null,r);ot.push({i:tt-4,x:Gs(_,j)},{i:tt-2,x:Gs(D,P)})}else(j||P)&&q.push("translate("+j+e+P+r)})(c.translateX,c.translateY,h.translateX,h.translateY,g,w),(function(_,D,j,P){_!==D?(_-D>180?D+=360:D-_>180&&(_+=360),P.push({i:j.push(u(j)+"rotate(",null,o)-2,x:Gs(_,D)})):D&&j.push(u(j)+"rotate("+D+o)})(c.rotate,h.rotate,g,w),(function(_,D,j,P){_!==D?P.push({i:j.push(u(j)+"skewX(",null,o)-2,x:Gs(_,D)}):D&&j.push(u(j)+"skewX("+D+o)})(c.skewX,h.skewX,g,w),(function(_,D,j,P,q,ot){if(_!==j||D!==P){var tt=q.push(u(q)+"scale(",null,",",null,")");ot.push({i:tt-4,x:Gs(_,j)},{i:tt-2,x:Gs(D,P)})}else j===1&&P===1||q.push(u(q)+"scale("+j+","+P+")")})(c.scaleX,c.scaleY,h.scaleX,h.scaleY,g,w),c=h=null,function(_){for(var D,j=-1,P=w.length;++j<P;)g[(D=w[j]).i]=D.x(_);return g.join("")}}}var kg=Xs((function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?m0:Qh(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Tg=Xs((function(t){return t==null?m0:(Da||(Da=document.createElementNS("http://www.w3.org/2000/svg","g")),Da.setAttribute("transform",t),(t=Da.transform.baseVal.consolidate())?Qh((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):m0)}),", ",")",")");function Eg(t,e){var r,o;return function(){var u=Lo(this,t),c=u.tween;if(c!==r){for(var h=0,g=(o=r=c).length;h<g;++h)if(o[h].name===e){(o=o.slice()).splice(h,1);break}}u.tween=o}}function cv(t,e,r){var o,u;if(typeof r!="function")throw new Error;return function(){var c=Lo(this,t),h=c.tween;if(h!==o){u=(o=h).slice();for(var g={name:e,value:r},w=0,_=u.length;w<_;++w)if(u[w].name===e){u[w]=g;break}w===_&&u.push(g)}c.tween=u}}function Cg(t,e,r){var o=t._id;return t.each((function(){var u=Lo(this,o);(u.value||(u.value={}))[e]=r.apply(this,arguments)})),function(u){return Io(u,o).value[e]}}function Kh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Sg(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function yi(){}var sl=.7,Jh=1.4285714285714286,ul="\\s*([+-]?\\d+)\\s*",tf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",v0=/^#([0-9a-f]{3,8})$/,lv=new RegExp("^rgb\\("+[ul,ul,ul]+"\\)$"),hv=new RegExp("^rgb\\("+[Oa,Oa,Oa]+"\\)$"),Hu=new RegExp("^rgba\\("+[ul,ul,ul,tf]+"\\)$"),fv=new RegExp("^rgba\\("+[Oa,Oa,Oa,tf]+"\\)$"),dv=new RegExp("^hsl\\("+[tf,Oa,Oa]+"\\)$"),pv=new RegExp("^hsla\\("+[tf,Oa,Oa,tf]+"\\)$"),Ag={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 Mg(){return this.rgb().formatHex()}function gv(){return this.rgb().formatRgb()}function ef(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=v0.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?yv(e):r===3?new Ba(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?nf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?nf(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=lv.exec(t))?new Ba(e[1],e[2],e[3],1):(e=hv.exec(t))?new Ba(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Hu.exec(t))?nf(e[1],e[2],e[3],e[4]):(e=fv.exec(t))?nf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dv.exec(t))?Og(e[1],e[2]/100,e[3]/100,1):(e=pv.exec(t))?Og(e[1],e[2]/100,e[3]/100,e[4]):Ag.hasOwnProperty(t)?yv(Ag[t]):t==="transparent"?new Ba(NaN,NaN,NaN,0):null}function yv(t){return new Ba(t>>16&255,t>>8&255,255&t,1)}function nf(t,e,r,o){return o<=0&&(t=e=r=NaN),new Ba(t,e,r,o)}function Ng(t){return t instanceof yi||(t=ef(t)),t?new Ba((t=t.rgb()).r,t.g,t.b,t.opacity):new Ba}function b0(t,e,r,o){return arguments.length===1?Ng(t):new Ba(t,e,r,o??1)}function Ba(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function Dg(){return"#"+x0(this.r)+x0(this.g)+x0(this.b)}function _0(){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 x0(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Og(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ns(t,e,r,o)}function mv(t){if(t instanceof ns)return new ns(t.h,t.s,t.l,t.opacity);if(t instanceof yi||(t=ef(t)),!t)return new ns;if(t instanceof ns)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,u=Math.min(e,r,o),c=Math.max(e,r,o),h=NaN,g=c-u,w=(c+u)/2;return g?(h=e===c?(r-o)/g+6*(r<o):r===c?(o-e)/g+2:(e-r)/g+4,g/=w<.5?c+u:2-c-u,h*=60):g=w>0&&w<1?0:h,new ns(h,g,w,t.opacity)}function ns(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function rf(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Kh(yi,ef,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Mg,formatHex:Mg,formatHsl:function(){return mv(this).formatHsl()},formatRgb:gv,toString:gv}),Kh(Ba,b0,Sg(yi,{brighter:function(t){return t=t==null?Jh:Math.pow(Jh,t),new Ba(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?sl:Math.pow(sl,t),new Ba(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:Dg,formatHex:Dg,formatRgb:_0,toString:_0})),Kh(ns,(function(t,e,r,o){return arguments.length===1?mv(t):new ns(t,e,r,o??1)}),Sg(yi,{brighter:function(t){return t=t==null?Jh:Math.pow(Jh,t),new ns(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?sl:Math.pow(sl,t),new ns(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,o=r+(r<.5?r:1-r)*e,u=2*r-o;return new Ba(rf(t>=240?t-240:t+120,u,o),rf(t,u,o),rf(t<120?t+240:t-120,u,o),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 w0=t=>()=>t;function vv(t,e){var r=e-t;return r?(function(o,u){return function(c){return o+c*u}})(t,r):w0(isNaN(t)?e:t)}const Bg=(function t(e){var r=(function(u){return(u=+u)==1?vv:function(c,h){return h-c?(function(g,w,_){return g=Math.pow(g,_),w=Math.pow(w,_)-g,_=1/_,function(D){return Math.pow(g+D*w,_)}})(c,h,u):w0(isNaN(c)?h:c)}})(e);function o(u,c){var h=r((u=b0(u)).r,(c=b0(c)).r),g=r(u.g,c.g),w=r(u.b,c.b),_=vv(u.opacity,c.opacity);return function(D){return u.r=h(D),u.g=g(D),u.b=w(D),u.opacity=_(D),u+""}}return o.gamma=t,o})(1);var k0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T0=new RegExp(k0.source,"g");function Lg(t,e){var r,o,u,c=k0.lastIndex=T0.lastIndex=0,h=-1,g=[],w=[];for(t+="",e+="";(r=k0.exec(t))&&(o=T0.exec(e));)(u=o.index)>c&&(u=e.slice(c,u),g[h]?g[h]+=u:g[++h]=u),(r=r[0])===(o=o[0])?g[h]?g[h]+=o:g[++h]=o:(g[++h]=null,w.push({i:h,x:Gs(r,o)})),c=T0.lastIndex;return c<e.length&&(u=e.slice(c),g[h]?g[h]+=u:g[++h]=u),g.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)g[(D=w[j]).i]=D.x(_);return g.join("")})}function E0(t,e){var r;return(typeof e=="number"?Gs:e instanceof ef?Bg:(r=ef(e))?(e=r,Bg):Lg)(t,e)}function Mi(t){return function(){this.removeAttribute(t)}}function Ig(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $u(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttribute(t);return h===c?null:h===o?u:u=e(o=h,r)}}function p5(t,e,r){var o,u,c=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===c?null:h===o?u:u=e(o=h,r)}}function bv(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttribute(t))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttribute(t)}}function _v(t,e,r){var o,u,c;return function(){var h,g,w=r(this);if(w!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=w+"")?null:h===o&&g===u?c:(u=g,c=e(o=h,w));this.removeAttributeNS(t.space,t.local)}}function g5(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function C0(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Wu(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&C0(t,c)),r}return u._value=e,u}function S0(t,e){var r,o;function u(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&g5(t,c)),r}return u._value=e,u}function xv(t,e){return function(){wg(this,t).delay=+e.apply(this,arguments)}}function wv(t,e){return e=+e,function(){wg(this,t).delay=e}}function Vu(t,e){return function(){Lo(this,t).duration=+e.apply(this,arguments)}}function af(t,e){return e=+e,function(){Lo(this,t).duration=e}}function of(t,e){if(typeof e!="function")throw new Error;return function(){Lo(this,t).ease=e}}function kv(t,e,r){var o,u,c=(function(h){return(h+"").trim().split(/^|\s+/).every((function(g){var w=g.indexOf(".");return w>=0&&(g=g.slice(0,w)),!g||g==="start"}))})(e)?wg:Lo;return function(){var h=c(this,t),g=h.on;g!==o&&(u=(o=g).copy()).on(e,r),h.on=u}}var Tv=p0.prototype.constructor;function Zs(t){return function(){this.style.removeProperty(t)}}function Ev(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Cv(t,e,r){var o,u;function c(){var h=e.apply(this,arguments);return h!==u&&(o=(u=h)&&Ev(t,h,r)),o}return c._value=e,c}function Sv(t){return function(e){this.textContent=t.call(this,e)}}function y5(t){var e,r;function o(){var u=t.apply(this,arguments);return u!==r&&(e=(r=u)&&Sv(u)),e}return o._value=t,o}var m5=0;function _s(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Av(){return++m5}var xs=p0.prototype;_s.prototype={constructor:_s,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=ug(t));for(var o=this._groups,u=o.length,c=new Array(u),h=0;h<u;++h)for(var g,w,_=o[h],D=_.length,j=c[h]=new Array(D),P=0;P<D;++P)(g=_[P])&&(w=t.call(g,g.__data__,P,_))&&("__data__"in g&&(w.__data__=g.__data__),j[P]=w,Zh(j[P],e,r,P,j,Io(g,r)));return new _s(c,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ym(t));for(var o=this._groups,u=o.length,c=[],h=[],g=0;g<u;++g)for(var w,_=o[g],D=_.length,j=0;j<D;++j)if(w=_[j]){for(var P,q=t.call(w,w.__data__,j,_),ot=Io(w,r),tt=0,gt=q.length;tt<gt;++tt)(P=q[tt])&&Zh(P,e,r,tt,q,ot);c.push(q),h.push(w)}return new _s(c,h,e,r)},selectChild:xs.selectChild,selectChildren:xs.selectChildren,filter:function(t){typeof t!="function"&&(t=a0(t));for(var e=this._groups,r=e.length,o=new Array(r),u=0;u<r;++u)for(var c,h=e[u],g=h.length,w=o[u]=[],_=0;_<g;++_)(c=h[_])&&t.call(c,c.__data__,_,h)&&w.push(c);return new _s(o,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,o=e.length,u=r.length,c=Math.min(o,u),h=new Array(o),g=0;g<c;++g)for(var w,_=e[g],D=r[g],j=_.length,P=h[g]=new Array(j),q=0;q<j;++q)(w=_[q]||D[q])&&(P[q]=w);for(;g<o;++g)h[g]=e[g];return new _s(h,this._parents,this._name,this._id)},selection:function(){return new Tv(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Av(),o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)if(h=g[_]){var D=Io(h,e);Zh(h,t,r,_,g,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new _s(o,this._parents,t,r)},call:xs.call,nodes:xs.nodes,node:xs.node,size:xs.size,empty:xs.empty,each:xs.each,on:function(t,e){var r=this._id;return arguments.length<2?Io(this.node(),r).on.on(t):this.each(kv(r,t,e))},attr:function(t,e){var r=u0(t),o=r==="transform"?Tg:E0;return this.attrTween(t,typeof e=="function"?(r.local?_v:bv)(r,o,Cg(this,"attr."+t,e)):e==null?(r.local?Ig:Mi)(r):(r.local?p5:$u)(r,o,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 o=u0(t);return this.tween(r,(o.local?Wu:S0)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?kg:E0;return e==null?this.styleTween(t,(function(u,c){var h,g,w;return function(){var _=ju(this,u),D=(this.style.removeProperty(u),ju(this,u));return _===D?null:_===h&&D===g?w:w=c(h=_,g=D)}})(t,o)).on("end.style."+t,Zs(t)):typeof e=="function"?this.styleTween(t,(function(u,c,h){var g,w,_;return function(){var D=ju(this,u),j=h(this),P=j+"";return j==null&&(this.style.removeProperty(u),P=j=ju(this,u)),D===P?null:D===g&&P===w?_:(w=P,_=c(g=D,j))}})(t,o,Cg(this,"style."+t,e))).each((function(u,c){var h,g,w,_,D="style."+c,j="end."+D;return function(){var P=Lo(this,u),q=P.on,ot=P.value[D]==null?_||(_=Zs(c)):void 0;q===h&&w===ot||(g=(h=q).copy()).on(j,w=ot),P.on=g}})(this._id,t)):this.styleTween(t,(function(u,c,h){var g,w,_=h+"";return function(){var D=ju(this,u);return D===_?null:D===g?w:w=c(g=D,h)}})(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Cv(t,e,r??""))},text:function(t){return this.tween("text",typeof t=="function"?(function(e){return function(){var r=e(this);this.textContent=r??""}})(Cg(this,"text",t)):(function(e){return function(){this.textContent=e}})(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,y5(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 o,u=Io(this.node(),r).tween,c=0,h=u.length;c<h;++c)if((o=u[c]).name===t)return o.value;return null}return this.each((e==null?Eg:cv)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?xv:wv)(e,t)):Io(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Vu:af)(e,t)):Io(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(of(e,t)):Io(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each((function(e,r){return function(){var o=r.apply(this,arguments);if(typeof o!="function")throw new Error;Lo(this,e).ease=o}})(this._id,t))},end:function(){var t,e,r=this,o=r._id,u=r.size();return new Promise((function(c,h){var g={value:h},w={value:function(){--u==0&&c()}};r.each((function(){var _=Lo(this,o),D=_.on;D!==t&&((e=(t=D).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(w)),_.on=e})),u===0&&c()}))},[Symbol.iterator]:xs[Symbol.iterator]};var v5={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Mv(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 Qs(t,e,r){this.k=t,this.x=e,this.y=r}p0.prototype.interrupt=function(t){return this.each((function(){(function(e,r){var o,u,c,h=e.__transition,g=!0;if(h){for(c in r=r==null?null:r+"",h)(o=h[c]).name===r?(u=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(u?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete h[c]):g=!1;g&&delete e.__transition}})(this,t)}))},p0.prototype.transition=function(t){var e,r;t instanceof _s?(e=t._id,t=t._name):(e=Av(),(r=v5).time=bg(),t=t==null?null:t+"");for(var o=this._groups,u=o.length,c=0;c<u;++c)for(var h,g=o[c],w=g.length,_=0;_<w;++_)(h=g[_])&&Zh(h,t,e,_,g,r||Mv(h,e));return new _s(o,this._parents,t,e)},Qs.prototype={constructor:Qs,scale:function(t){return t===1?this:new Qs(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Qs(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Qs.prototype;var Nv="comm",Rg="rule",Fg="decl",b5=Math.abs,A0=String.fromCharCode;function Pg(t){return t.trim()}function jg(t,e,r){return t.replace(e,r)}function Dv(t,e){return t.indexOf(e)}function cl(t,e){return 0|t.charCodeAt(e)}function ll(t,e,r){return t.slice(e,r)}function Ro(t){return t.length}function sf(t){return t.length}function uf(t,e){return e.push(t),t}function ws(t,e){for(var r="",o=sf(t),u=0;u<o;u++)r+=e(t[u],u,t,e)||"";return r}function cf(t,e,r,o){switch(t.type){case"@import":case Fg:return t.return=t.return||t.value;case Nv:return"";case"@keyframes":return t.return=t.value+"{"+ws(t.children,o)+"}";case Rg:t.value=t.props.join(",")}return Ro(r=ws(t.children,o))?t.return=t.value+"{"+r+"}":""}var Ks=1,Gu=1,Yg=0,Ui=0,mi=0,Xu="";function M0(t,e,r,o,u,c,h){return{value:t,root:e,parent:r,type:o,props:u,children:c,line:Ks,column:Gu,length:h,return:""}}function _5(){return mi=Ui>0?cl(Xu,--Ui):0,Gu--,mi===10&&(Gu=1,Ks--),mi}function Fo(){return mi=Ui<Yg?cl(Xu,Ui++):0,Gu++,mi===10&&(Gu=1,Ks++),mi}function Zu(){return cl(Xu,Ui)}function N0(){return Ui}function D0(t,e){return ll(Xu,t,e)}function zg(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 O0(t){return Pg(D0(Ui-1,lf(t===91?t+2:t===40?t+1:t)))}function B0(t){for(;(mi=Zu())&&mi<33;)Fo();return zg(t)>2||zg(mi)>3?"":" "}function x5(t,e){for(;--e&&Fo()&&!(mi<48||mi>102||mi>57&&mi<65||mi>70&&mi<97););return D0(t,N0()+(e<6&&Zu()==32&&Fo()==32))}function lf(t){for(;Fo();)switch(mi){case t:return Ui;case 34:case 39:t!==34&&t!==39&&lf(mi);break;case 40:t===41&&lf(t);break;case 92:Fo()}return Ui}function Qu(t,e){for(;Fo()&&t+mi!==57&&(t+mi!==84||Zu()!==47););return"/*"+D0(e,Ui-1)+"*"+A0(t===47?t:Fo())}function w5(t){for(;!zg(Zu());)Fo();return D0(t,Ui)}function Ug(t){return(function(e){return Xu="",e})(hl("",null,null,null,[""],t=(function(e){return Ks=Gu=1,Yg=Ro(Xu=e),Ui=0,[]})(t),0,[0],t))}function hl(t,e,r,o,u,c,h,g,w){for(var _=0,D=0,j=h,P=0,q=0,ot=0,tt=1,gt=1,ht=1,wt=0,Tt="",Pt=u,Gt=c,Et=o,ee=Tt;gt;)switch(ot=wt,wt=Fo()){case 40:if(ot!=108&&ee.charCodeAt(j-1)==58){Dv(ee+=jg(O0(wt),"&","&\f"),"&\f")!=-1&&(ht=-1);break}case 34:case 39:case 91:ee+=O0(wt);break;case 9:case 10:case 13:case 32:ee+=B0(ot);break;case 92:ee+=x5(N0()-1,7);continue;case 47:switch(Zu()){case 42:case 47:uf(Ov(Qu(Fo(),N0()),e,r),w);break;default:ee+="/"}break;case 123*tt:g[_++]=Ro(ee)*ht;case 125*tt:case 59:case 0:switch(wt){case 0:case 125:gt=0;case 59+D:q>0&&Ro(ee)-j&&uf(q>32?Ku(ee+";",o,r,j-1):Ku(jg(ee," ","")+";",o,r,j-2),w);break;case 59:ee+=";";default:if(uf(Et=fl(ee,e,r,_,D,u,g,Tt,Pt=[],Gt=[],j),c),wt===123)if(D===0)hl(ee,e,Et,Et,Pt,c,j,g,Gt);else switch(P){case 100:case 109:case 115:hl(t,Et,Et,o&&uf(fl(t,Et,Et,0,0,u,g,Tt,u,Pt=[],j),Gt),u,Gt,j,g,o?Pt:Gt);break;default:hl(ee,Et,Et,Et,[""],Gt,0,g,Gt)}}_=D=q=0,tt=ht=1,Tt=ee="",j=h;break;case 58:j=1+Ro(ee),q=ot;default:if(tt<1){if(wt==123)--tt;else if(wt==125&&tt++==0&&_5()==125)continue}switch(ee+=A0(wt),wt*tt){case 38:ht=D>0?1:(ee+="\f",-1);break;case 44:g[_++]=(Ro(ee)-1)*ht,ht=1;break;case 64:Zu()===45&&(ee+=O0(Fo())),P=Zu(),D=j=Ro(Tt=ee+=w5(N0())),wt++;break;case 45:ot===45&&Ro(ee)==2&&(tt=0)}}return c}function fl(t,e,r,o,u,c,h,g,w,_,D){for(var j=u-1,P=u===0?c:[""],q=sf(P),ot=0,tt=0,gt=0;ot<o;++ot)for(var ht=0,wt=ll(t,j+1,j=b5(tt=h[ot])),Tt=t;ht<q;++ht)(Tt=Pg(tt>0?P[ht]+" "+wt:jg(wt,/&\f/g,P[ht])))&&(w[gt++]=Tt);return M0(t,e,r,u===0?Rg:g,w,_,D)}function Ov(t,e,r){return M0(t,e,r,Nv,A0(mi),ll(t,2,-2),0)}function Ku(t,e,r,o){return M0(t,e,r,Fg,ll(t,0,o),ll(t,o+1,-1),o)}const L0="8.14.0";var Ju=p(9609),I0=p(7856),qg=p.n(I0),Hg=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,o){return String.fromCharCode(parseInt(o,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))}))},Ni=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 o=Hg(e);return(o=(o=(o=o.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},tc=function(t,e){if(!t)return t;var r=qg().sanitize((function(o,u){var c=o,h=!0;if(!u.flowchart||u.flowchart.htmlLabels!==!1&&u.flowchart.htmlLabels!=="false"||(h=!1),h){var g=u.securityLevel;g==="antiscript"||g==="strict"?c=Ni(c):g!=="loose"&&(c=(c=(c=Bv(c)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),c=wr(c))}return c})(t,e));return r},R0=/<br\s*\/?>/gi,wr=function(t){return t.replace(/#br#/g,"<br/>")},Bv=function(t){return t.replace(R0,"#br#")},vi=function(t){return t!=="false"&&t!==!1};const rr={getRows:function(t){if(!t)return 1;var e=Bv(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:tc,sanitizeTextOrArray:function(t,e){return typeof t=="string"?tc(t,e):t.flat().map((function(r){return tc(r,e)}))},hasBreaks:function(t){return R0.test(t)},splitBreaks:function(t){return t.split(R0)},lineBreakRegex:R0,removeScript:Ni,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:vi,removeEscapes:Hg};var ke=p(8613),sa=function(t,e){return e?(0,ke.adjust)(t,{s:-40,l:10}):(0,ke.adjust)(t,{s:-40,l:-10})};function $g(t){return $g=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},$g(t)}function k5(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var T5=(function(){function t(){(function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,ke.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,ke.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||sa(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||sa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||sa(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||sa(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,ke.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,ke.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,ke.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,ke.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,ke.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,ke.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,ke.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,ke.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var u=this;if($g(o)==="object"){var c=Object.keys(o);c.forEach((function(h){u[h]=o[h]})),this.updateColors(),c.forEach((function(h){u[h]=o[h]}))}else this.updateColors()}}],r&&k5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})();function F0(t){return F0=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},F0(t)}function Lv(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var E5=(function(){function t(){(function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,ke.lighten)(this.primaryColor,16),this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sa(this.primaryColor,this.darkMode),this.secondaryBorderColor=sa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sa(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,ke.lighten)((0,ke.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,ke.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,ke.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,ke.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,ke.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,ke.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,ke.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,ke.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,ke.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var u=this;if(F0(o)==="object"){var c=Object.keys(o);c.forEach((function(h){u[h]=o[h]})),this.updateColors(),c.forEach((function(h){u[h]=o[h]}))}else this.updateColors()}}],r&&Lv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})();function Wg(t){return Wg=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},Wg(t)}function C5(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var Iv=(function(){function t(){(function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,ke.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sa(this.primaryColor,this.darkMode),this.secondaryBorderColor=sa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sa(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,ke.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,ke.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,ke.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,ke.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var u=this;if(Wg(o)==="object"){var c=Object.keys(o);c.forEach((function(h){u[h]=o[h]})),this.updateColors(),c.forEach((function(h){u[h]=o[h]}))}else this.updateColors()}}],r&&C5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})();function Vg(t){return Vg=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},Vg(t)}function Rv(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var S5=(function(){function t(){(function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,ke.lighten)("#cde498",10),this.primaryBorderColor=sa(this.primaryColor,this.darkMode),this.secondaryBorderColor=sa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sa(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.primaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,ke.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,ke.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,ke.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,ke.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,ke.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,ke.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,ke.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,ke.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,ke.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,ke.adjust)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var u=this;if(Vg(o)==="object"){var c=Object.keys(o);c.forEach((function(h){u[h]=o[h]})),this.updateColors(),c.forEach((function(h){u[h]=o[h]}))}else this.updateColors()}}],r&&Rv(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})();function Gg(t){return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gg(t)}function A5(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var M5=(function(){function t(){(function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,ke.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,ke.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=sa(this.primaryColor,this.darkMode),this.secondaryBorderColor=sa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=sa(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,ke.invert)(this.primaryColor),this.secondaryTextColor=(0,ke.invert)(this.secondaryColor),this.tertiaryTextColor=(0,ke.invert)(this.tertiaryColor),this.lineColor=(0,ke.invert)(this.background),this.textColor=(0,ke.invert)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,ke.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,ke.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,ke.lighten)(this.contrast,30),this.sectionBkgColor2=(0,ke.lighten)(this.contrast,30),this.taskBorderColor=(0,ke.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,ke.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,ke.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,ke.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,ke.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,ke.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,ke.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,ke.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,ke.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var u=this;if(Gg(o)==="object"){var c=Object.keys(o);c.forEach((function(h){u[h]=o[h]})),this.updateColors(),c.forEach((function(h){u[h]=o[h]}))}else this.updateColors()}}],r&&A5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})();const dl={base:{getThemeVariables:function(t){var e=new T5;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new E5;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new Iv;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new S5;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new M5;return e.calculate(t),e}}};function Xg(t){return(function(e){if(Array.isArray(e))return Zg(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,r){if(e){if(typeof e=="string")return Zg(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zg(e,r):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Zg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function P0(t){return P0=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},P0(t)}var pl={theme:"default",themeVariables:dl.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20}};pl.class.arrowMarkerAbsolute=pl.arrowMarkerAbsolute,pl.git.arrowMarkerAbsolute=pl.arrowMarkerAbsolute;var N5=(function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce((function(o,u){return Array.isArray(e[u])?o:P0(e[u])==="object"&&e[u]!==null?[].concat(Xg(o),[r+u],Xg(t(e[u],""))):[].concat(Xg(o),[r+u])}),[])})(pl,"");const D5=pl;var Fv=void 0;function O5(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Pv(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Yv(t))||e){r&&(t=r);var o=0,u=function(){};return{s:u,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,h=!0,g=!1;return{s:function(){r=r.call(t)},n:function(){var w=r.next();return h=w.done,w},e:function(w){g=!0,c=w},f:function(){try{h||r.return==null||r.return()}finally{if(g)throw c}}}}function yo(t){return yo=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},yo(t)}function jv(t){return(function(e){if(Array.isArray(e))return Qg(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||Yv(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Yv(t,e){if(t){if(typeof t=="string")return Qg(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)?Qg(t,e):void 0}}function Qg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var hf,B5={curveBasis:vs,curveBasisClosed:function(t){return new ph(t)},curveBasisOpen:function(t){return new gh(t)},curveLinear:xr,curveLinearClosed:function(t){return new yh(t)},curveMonotoneX:function(t){return new Wc(t)},curveMonotoneY:function(t){return new A1(t)},curveNatural:function(t){return new Op(t)},curveStep:function(t){return new Yi(t,.5)},curveStepAfter:function(t){return new Yi(t,1)},curveStepBefore:function(t){return new Yi(t,0)}},j0=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,L5=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,I5=/\s*%%.*\n/gm,zv=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(L5.source,`)(?=[}][%]{2}).*
|
|
60
|
+
`),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),y.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var o,u=[];(o=j0.exec(t))!==null;)if(o.index===j0.lastIndex&&j0.lastIndex++,o&&!e||e&&o[1]&&o[1].match(e)||e&&o[2]&&o[2].match(e)){var c=o[1]?o[1]:o[2],h=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;u.push({type:c,args:h})}return u.length===0&&u.push({type:t,args:null}),u.length===1?u[0]:u}catch(g){return y.error("ERROR: ".concat(g.message,` - Unable to parse directive
|
|
61
|
+
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},Uv=function(t,e){return(t=t.replace(j0,"").replace(I5,`
|
|
62
|
+
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},Y0=function(t,e){var r={};return function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var h=e?e.apply(Fv,u):u[0];if(h in r)return r[h];var g=t.apply(void 0,u);return r[h]=g,g}},Po=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return B5[r]||e},ec=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Js=function(t){for(var e="",r="",o=0;o<t.length;o++)t[o]!==void 0&&(t[o].startsWith("color:")||t[o].startsWith("text-align:")?r=r+t[o]+";":e=e+t[o]+";");return{style:e,labelStyle:r}},qv=0,Hv=function(){return qv++,"id-"+Math.random().toString(36).substr(2,12)+"-"+qv},Kg=function(t){return(function(e){for(var r="",o="0123456789abcdef",u=o.length,c=0;c<e;c++)r+=o.charAt(Math.floor(Math.random()*u));return r})(t.length)},qi=function t(e,r,o){var u=Object.assign({depth:2,clobber:!1},o),c=u.depth,h=u.clobber;return Array.isArray(r)&&!Array.isArray(e)?(r.forEach((function(g){return t(e,g,o)})),e):Array.isArray(r)&&Array.isArray(e)?(r.forEach((function(g){e.indexOf(g)===-1&&e.push(g)})),e):e===void 0||c<=0?e!=null&&yo(e)==="object"&&yo(r)==="object"?Object.assign(e,r):r:(r!==void 0&&yo(e)==="object"&&yo(r)==="object"&&Object.keys(r).forEach((function(g){yo(r[g])!=="object"||e[g]!==void 0&&yo(e[g])!=="object"?(h||yo(e[g])!=="object"&&yo(r[g])!=="object")&&(e[g]=r[g]):(e[g]===void 0&&(e[g]=Array.isArray(r[g])?[]:{}),e[g]=t(e[g],r[g],{depth:c-1,clobber:h}))})),e)},R5=function(t,e){var r=e.text.replace(rr.lineBreakRegex," "),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",e.fontSize),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);var u=o.append("tspan");return u.attr("x",e.x+2*e.textMargin),u.attr("fill",e.fill),u.text(r),o},F5=Y0((function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),rr.lineBreakRegex.test(t)))return t;var o=t.split(" "),u=[],c="";return o.forEach((function(h,g){var w=z0("".concat(h," "),r),_=z0(c,r);if(w>e){var D=P5(h,e,"-",r),j=D.hyphenatedStrings,P=D.remainingWord;u.push.apply(u,[c].concat(jv(j))),c=P}else _+w>=e?(u.push(c),c=h):c=[c,h].filter(Boolean).join(" ");g+1===o.length&&u.push(c)})),u.filter((function(h){return h!==""})).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=Y0((function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",o=arguments.length>3?arguments[3]:void 0;o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},o);var u=t.split(""),c=[],h="";return u.forEach((function(g,w){var _="".concat(h).concat(g);if(z0(_,o)>=e){var D=w+1,j=u.length===D,P="".concat(_).concat(r);c.push(j?_:P),h=""}else h=_})),{hyphenatedStrings:c,remainingWord:h}}),(function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",o=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(r,"-").concat(o.fontSize,"-").concat(o.fontWeight,"-").concat(o.fontFamily)})),z0=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),Jg(t,e).width},Jg=Y0((function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),o=r.fontSize,u=r.fontFamily,c=r.fontWeight;if(!t)return{width:0,height:0};var h=["sans-serif",u],g=t.split(rr.lineBreakRegex),w=[],_=Ve("body");if(!_.remove)return{width:0,height:0,lineHeight:0};for(var D=_.append("svg"),j=0,P=h;j<P.length;j++){var q,ot=P[j],tt=0,gt={width:0,height:0,lineHeight:0},ht=Pv(g);try{for(ht.s();!(q=ht.n()).done;){var wt=q.value,Tt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Tt.text=wt;var Pt=R5(D,Tt).style("font-size",o).style("font-weight",c).style("font-family",ot),Gt=(Pt._groups||Pt)[0][0].getBBox();gt.width=Math.round(Math.max(gt.width,Gt.width)),tt=Math.round(Gt.height),gt.height+=tt,gt.lineHeight=Math.round(Math.max(gt.lineHeight,tt))}}catch(Et){ht.e(Et)}finally{ht.f()}w.push(gt)}return D.remove(),w[isNaN(w[1].height)||isNaN(w[1].width)||isNaN(w[1].lineHeight)||w[0].height>w[1].height&&w[0].width>w[1].width&&w[0].lineHeight>w[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),t2=function(t,e,r){var o=new Map;return o.set("height",t),r?(o.set("width","100%"),o.set("style","max-width: ".concat(e,"px;"))):o.set("width",e),o},Ka=function(t,e,r,o){(function(u,c){var h,g=Pv(c);try{for(g.s();!(h=g.n()).done;){var w=h.value;u.attr(w[0],w[1])}}catch(_){g.e(_)}finally{g.f()}})(t,t2(e,r,o))},U0=function t(e){y.debug("directiveSanitizer called with",e),yo(e)==="object"&&(e.length?e.forEach((function(r){return t(r)})):Object.keys(e).forEach((function(r){y.debug("Checking key",r),r.indexOf("__")===0&&(y.debug("sanitize deleting __ option",r),delete e[r]),r.indexOf("proto")>=0&&(y.debug("sanitize deleting proto option",r),delete e[r]),r.indexOf("constr")>=0&&(y.debug("sanitize deleting constr option",r),delete e[r]),r.indexOf("themeCSS")>=0&&(y.debug("sanitizing themeCss option"),e[r]=$v(e[r])),N5.indexOf(r)<0?(y.debug("sanitize deleting option",r),delete e[r]):yo(e[r])==="object"&&(y.debug("sanitize deleting object",r),t(e[r]))})))},$v=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const Vn={assignWithDepth:qi,wrapLabel:F5,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),Jg(t,e).height},calculateTextWidth:z0,calculateTextDimensions:Jg,calculateSvgSizeAttrs:t2,configureSvgSize:Ka,detectInit:function(t,e){var r=zv(t,/(?:init\b)|(?:initialize\b)/),o={};if(Array.isArray(r)){var u=r.map((function(h){return h.args}));U0(u),o=qi(o,jv(u))}else o=r.args;if(o){var c=Uv(t,e);["config"].forEach((function(h){o[h]!==void 0&&(c==="flowchart-v2"&&(c="flowchart"),o[c]=o[h],delete o[h])}))}return o},detectDirective:zv,detectType:Uv,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:Po,calcLabelPosition:function(t){return(function(e){var r,o=0;e.forEach((function(h){o+=ec(h,r),r=h}));var u=o/2,c=void 0;return r=void 0,e.forEach((function(h){if(r&&!c){var g=ec(h,r);if(g<u)u-=g;else{var w=u/g;w<=0&&(c=r),w>=1&&(c={x:h.x,y:h.y}),w>0&&w<1&&(c={x:(1-w)*r.x+w*h.x,y:(1-w)*r.y+w*h.y})}}r=h})),c})(t)},calcCardinalityPosition:function(t,e,r){var o;y.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach((function(_){ec(_,o),o=_}));var u,c=25;o=void 0,e.forEach((function(_){if(o&&!u){var D=ec(_,o);if(D<c)c-=D;else{var j=c/D;j<=0&&(u=o),j>=1&&(u={x:_.x,y:_.y}),j>0&&j<1&&(u={x:(1-j)*o.x+j*_.x,y:(1-j)*o.y+j*_.y})}}o=_}));var h=t?10:5,g=Math.atan2(e[0].y-u.y,e[0].x-u.x),w={x:0,y:0};return w.x=Math.sin(g)*h+(e[0].x+u.x)/2,w.y=-Math.cos(g)*h+(e[0].y+u.y)/2,w},calcTerminalLabelPosition:function(t,e,r){var o,u=JSON.parse(JSON.stringify(r));y.info("our points",u),e!=="start_left"&&e!=="start_right"&&(u=u.reverse()),u.forEach((function(D){ec(D,o),o=D}));var c,h=25+t;o=void 0,u.forEach((function(D){if(o&&!c){var j=ec(D,o);if(j<h)h-=j;else{var P=h/j;P<=0&&(c=o),P>=1&&(c={x:D.x,y:D.y}),P>0&&P<1&&(c={x:(1-P)*o.x+P*D.x,y:(1-P)*o.y+P*D.y})}}o=D}));var g=10+.5*t,w=Math.atan2(u[0].y-c.y,u[0].x-c.x),_={x:0,y:0};return _.x=Math.sin(w)*g+(u[0].x+c.x)/2,_.y=-Math.cos(w)*g+(u[0].y+c.y)/2,e==="start_left"&&(_.x=Math.sin(w+Math.PI)*g+(u[0].x+c.x)/2,_.y=-Math.cos(w+Math.PI)*g+(u[0].y+c.y)/2),e==="end_right"&&(_.x=Math.sin(w-Math.PI)*g+(u[0].x+c.x)/2-5,_.y=-Math.cos(w-Math.PI)*g+(u[0].y+c.y)/2-5),e==="end_left"&&(_.x=Math.sin(w)*g+(u[0].x+c.x)/2-5,_.y=-Math.cos(w)*g+(u[0].y+c.y)/2-5),_},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Ju.sanitizeUrl)(r):r},getStylesFromArray:Js,generateId:Hv,random:Kg,memoize:Y0,runFunc:function(t){for(var e,r=t.split("."),o=r.length-1,u=r[o],c=window,h=0;h<o;h++)if(!(c=c[r[h]]))return;for(var g=arguments.length,w=new Array(g>1?g-1:0),_=1;_<g;_++)w[_-1]=arguments[_];(e=c)[u].apply(e,w)},entityDecode:function(t){return hf=hf||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),hf.innerHTML=t,unescape(hf.textContent)},initIdGeneratior:(function(){function t(o,u){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=o,this.seed=u,this.count=u?u.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&O5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t})(),directiveSanitizer:U0,sanitizeCss:$v};function e2(t){return e2=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},e2(t)}var Wv,ff=Object.freeze(D5),Hi=qi({},ff),gl=[],df=qi({},ff),pf=function(t,e){for(var r=qi({},t),o={},u=0;u<e.length;u++){var c=e[u];j5(c),o=qi(o,c)}if(r=qi(r,o),o.theme){var h=qi({},Wv),g=qi(h.themeVariables||{},o.themeVariables);r.themeVariables=dl[r.theme].getThemeVariables(g)}return df=r,r},n2=function(){return qi({},Hi)},Qt=function(){return qi({},df)},j5=function t(e){Object.keys(Hi.secure).forEach((function(r){e[Hi.secure[r]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Hi.secure[r]),e[Hi.secure[r]]),delete e[Hi.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],e2(e[r])==="object"&&t(e[r])}))},Vv=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),gl.push(t),pf(Hi,gl)},yl=function(){pf(Hi,gl=[])};function r2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var q0="classid-",H0=[],Di={},i2=0,gf=[],yf=function(t){return rr.sanitizeText(t,Qt())},ml=function(t){var e="",r=t;if(t.indexOf("~")>0){var o=t.split("~");r=o[0],e=rr.sanitizeText(o[1],Qt())}return{className:r,type:e}},$0=function(t){var e=ml(t);Di[e.className]===void 0&&(Di[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:q0+e.className+"-"+i2},i2++)},W0=function(t){for(var e=Object.keys(Di),r=0;r<e.length;r++)if(Di[e[r]].id===t)return Di[e[r]].domId},Gv=function(t,e){var r=ml(t).className,o=Di[r];if(typeof e=="string"){var u=e.trim();u.startsWith("<<")&&u.endsWith(">>")?o.annotations.push(yf(u.substring(2,u.length-2))):u.indexOf(")")>0?o.methods.push(yf(u)):u&&o.members.push(yf(u))}},vl=function(t,e){t.split(",").forEach((function(r){var o=r;r[0].match(/\d/)&&(o=q0+o),Di[o]!==void 0&&Di[o].cssClasses.push(e)}))},tu=function(t,e,r){var o=Qt(),u=t,c=W0(u);if(o.securityLevel==="loose"&&e!==void 0&&Di[u]!==void 0){var h=[];if(typeof r=="string"){h=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var g=0;g<h.length;g++){var w=h[g].trim();w.charAt(0)==='"'&&w.charAt(w.length-1)==='"'&&(w=w.substr(1,w.length-2)),h[g]=w}}h.length===0&&h.push(c),gf.push((function(){var _=document.querySelector('[id="'.concat(c,'"]'));_!==null&&_.addEventListener("click",(function(){var D;Vn.runFunc.apply(Vn,[e].concat((function(j){if(Array.isArray(j))return r2(j)})(D=h)||(function(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)})(D)||(function(j,P){if(j){if(typeof j=="string")return r2(j,P);var q=Object.prototype.toString.call(j).slice(8,-1);return q==="Object"&&j.constructor&&(q=j.constructor.name),q==="Map"||q==="Set"?Array.from(j):q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q)?r2(j,P):void 0}})(D)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()))}),!1)}))}},bl={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},a2=function(t){var e=Ve(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ve("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ve(t).select("svg").selectAll("g.node").on("mouseover",(function(){var r=Ve(this);if(r.attr("title")!==null){var o=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Ve(this).classed("hover",!1)}))};gf.push(a2);var o2="TB";const mo={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().class},addClass:$0,bindFunctions:function(t){gf.forEach((function(e){e(t)}))},clear:function(){H0=[],Di={},(gf=[]).push(a2)},getClass:function(t){return Di[t]},getClasses:function(){return Di},addAnnotation:function(t,e){var r=ml(t).className;Di[r].annotations.push(e)},getRelations:function(){return H0},addRelation:function(t){y.debug("Adding relation: "+JSON.stringify(t)),$0(t.id1),$0(t.id2),t.id1=ml(t.id1).className,t.id2=ml(t.id2).className,t.relationTitle1=rr.sanitizeText(t.relationTitle1.trim(),Qt()),t.relationTitle2=rr.sanitizeText(t.relationTitle2.trim(),Qt()),H0.push(t)},getDirection:function(){return o2},setDirection:function(t){o2=t},addMember:Gv,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(r){return Gv(t,r)})))},cleanupLabel:function(t){return t.substring(0,1)===":"?rr.sanitizeText(t.substr(1).trim(),Qt()):yf(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:bl,setClickEvent:function(t,e,r){t.split(",").forEach((function(o){tu(o,e,r),Di[o].haveCallback=!0})),vl(t,"clickable")},setCssClass:vl,setLink:function(t,e,r){var o=Qt();t.split(",").forEach((function(u){var c=u;u[0].match(/\d/)&&(c=q0+c),Di[c]!==void 0&&(Di[c].link=Vn.formatUrl(e,o),o.securityLevel==="sandbox"?Di[c].linkTarget="_top":Di[c].linkTarget=typeof r=="string"?yf(r):"_blank")})),vl(t,"clickable")},setTooltip:function(t,e){var r=Qt();t.split(",").forEach((function(o){e!==void 0&&(Di[o].tooltip=rr.sanitizeText(e,r))}))},lookUpDomId:W0};var Y5=p(681),_l=p.n(Y5),V0=p(8282),_i=p.n(V0),nc=p(1362),Xv=p.n(nc),G0=0,s2=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?Gn(e):r?z5(r):U5(t)},Gn=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",u=t[2]?t[2].trim():"",c=t[3]?xl(t[3].trim()):"",h=t[4]?t[4].trim():"",g=t[5]?t[5].trim():"";r=o+u+c+" "+h,e=u2(g)}catch{r=t}return{displayText:r,cssStyle:e}},z5=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",u=t[2]?t[2].trim():"",c=t[3]?xl(t[3].trim()):"",h=t[4]?t[4].trim():"";r=o+u+"("+c+")"+(t[5]?" : "+xl(t[5]).trim():""),e=u2(h)}catch{r=t}return{displayText:r,cssStyle:e}},U5=function(t){var e="",r="",o="",u=t.indexOf("("),c=t.indexOf(")");if(u>1&&c>u&&c<=t.length){var h="",g="",w=t.substring(0,1);w.match(/\w/)?g=t.substring(0,u).trim():(w.match(/\+|-|~|#/)&&(h=w),g=t.substring(1,u).trim());var _=t.substring(u+1,c),D=t.substring(c+1,1);r=u2(D),e=h+g+"("+xl(_.trim())+")",c<0&&(o=t.substring(c+2).trim())!==""&&(o=" : "+xl(o))}else e=xl(t);return{displayText:e,cssStyle:r}},Zv=function(t,e,r,o){var u=s2(e),c=t.append("tspan").attr("x",o.padding).text(u.displayText);u.cssStyle!==""&&c.attr("style",u.cssStyle),r||c.attr("dy",o.textHeight)},xl=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},u2=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const q5=function(t,e,r){y.info("Rendering class "+e);var o,u=e.id,c={id:u,label:e.id,width:0,height:0},h=t.append("g").attr("id",W0(u)).attr("class","classGroup");o=e.link?h.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):h.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var g=!0;e.annotations.forEach((function(Tt){var Pt=o.append("tspan").text("«"+Tt+"»");g||Pt.attr("dy",r.textHeight),g=!1}));var w=e.id;e.type!==void 0&&e.type!==""&&(w+="<"+e.type+">");var _=o.append("tspan").text(w).attr("class","title");g||_.attr("dy",r.textHeight);var D=o.node().getBBox().height,j=h.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin/2).attr("y2",r.padding+D+r.dividerMargin/2),P=h.append("text").attr("x",r.padding).attr("y",D+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");g=!0,e.members.forEach((function(Tt){Zv(P,Tt,g,r),g=!1}));var q=P.node().getBBox(),ot=h.append("line").attr("x1",0).attr("y1",r.padding+D+r.dividerMargin+q.height).attr("y2",r.padding+D+r.dividerMargin+q.height),tt=h.append("text").attr("x",r.padding).attr("y",D+2*r.dividerMargin+q.height+r.textHeight).attr("fill","white").attr("class","classText");g=!0,e.methods.forEach((function(Tt){Zv(tt,Tt,g,r),g=!1}));var gt=h.node().getBBox(),ht=" ";e.cssClasses.length>0&&(ht+=e.cssClasses.join(" "));var wt=h.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",gt.width+2*r.padding).attr("height",gt.height+r.padding+.5*r.dividerMargin).attr("class",ht).node().getBBox().width;return o.node().childNodes.forEach((function(Tt){Tt.setAttribute("x",(wt-Tt.getBBox().width)/2)})),e.tooltip&&o.insert("title").text(e.tooltip),j.attr("x2",wt),ot.attr("x2",wt),c.width=wt,c.height=gt.height+r.padding+.5*r.dividerMargin,c};nc.parser.yy=mo;var c2={},X0={dividerMargin:10,padding:5,textHeight:10},Z0=function(t){var e=Object.entries(c2).find((function(r){return r[1].label===t}));if(e)return e[0]};const Qv=function(t){Object.keys(t).forEach((function(e){X0[e]=t[e]}))},Yr=function(t,e){c2={},nc.parser.yy.clear(),nc.parser.parse(t),y.info("Rendering diagram "+t);var r,o=Qt().securityLevel;o==="sandbox"&&(r=Ve("#i"+e));var u,c=Ve(o==="sandbox"?r.nodes()[0].contentDocument.body:"body"),h=(o==="sandbox"&&r.nodes()[0].contentDocument,c.select("[id='".concat(e,"']")));h.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(u=h).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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.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 g=new(_i()).Graph({multigraph:!0});g.setGraph({isMultiGraph:!0}),g.setDefaultEdgeLabel((function(){return{}}));for(var w=mo.getClasses(),_=Object.keys(w),D=0;D<_.length;D++){var j=w[_[D]],P=q5(h,j,X0);c2[P.id]=P,g.setNode(P.id,P),y.info("Org height: "+P.height)}mo.getRelations().forEach((function(ht){y.info("tjoho"+Z0(ht.id1)+Z0(ht.id2)+JSON.stringify(ht)),g.setEdge(Z0(ht.id1),Z0(ht.id2),{relation:ht},ht.title||"DEFAULT")})),_l().layout(g),g.nodes().forEach((function(ht){ht!==void 0&&g.node(ht)!==void 0&&(y.debug("Node "+ht+": "+JSON.stringify(g.node(ht))),c.select("#"+W0(ht)).attr("transform","translate("+(g.node(ht).x-g.node(ht).width/2)+","+(g.node(ht).y-g.node(ht).height/2)+" )"))})),g.edges().forEach((function(ht){ht!==void 0&&g.edge(ht)!==void 0&&(y.debug("Edge "+ht.v+" -> "+ht.w+": "+JSON.stringify(g.edge(ht))),(function(wt,Tt,Pt,Gt){var Et=function(Ke){switch(Ke){case bl.AGGREGATION:return"aggregation";case bl.EXTENSION:return"extension";case bl.COMPOSITION:return"composition";case bl.DEPENDENCY:return"dependency"}};Tt.points=Tt.points.filter((function(Ke){return!Number.isNaN(Ke.y)}));var ee,ie,kt=Tt.points,It=Mu().x((function(Ke){return Ke.x})).y((function(Ke){return Ke.y})).curve(vs),Ct=wt.append("path").attr("d",It(kt)).attr("id","edge"+G0).attr("class","relation"),yt="";Gt.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Pt.relation.lineType==1&&Ct.attr("class","relation dashed-line"),Pt.relation.type1!=="none"&&Ct.attr("marker-start","url("+yt+"#"+Et(Pt.relation.type1)+"Start)"),Pt.relation.type2!=="none"&&Ct.attr("marker-end","url("+yt+"#"+Et(Pt.relation.type2)+"End)");var Ft,bt,_e,we,Ut=Tt.points.length,Te=Vn.calcLabelPosition(Tt.points);if(ee=Te.x,ie=Te.y,Ut%2!=0&&Ut>1){var Ee=Vn.calcCardinalityPosition(Pt.relation.type1!=="none",Tt.points,Tt.points[0]),be=Vn.calcCardinalityPosition(Pt.relation.type2!=="none",Tt.points,Tt.points[Ut-1]);y.debug("cardinality_1_point "+JSON.stringify(Ee)),y.debug("cardinality_2_point "+JSON.stringify(be)),Ft=Ee.x,bt=Ee.y,_e=be.x,we=be.y}if(Pt.title!==void 0){var he=wt.append("g").attr("class","classLabel"),Pe=he.append("text").attr("class","label").attr("x",ee).attr("y",ie).attr("fill","red").attr("text-anchor","middle").text(Pt.title);window.label=Pe;var Re=Pe.node().getBBox();he.insert("rect",":first-child").attr("class","box").attr("x",Re.x-Gt.padding/2).attr("y",Re.y-Gt.padding/2).attr("width",Re.width+Gt.padding).attr("height",Re.height+Gt.padding)}y.info("Rendering relation "+JSON.stringify(Pt)),Pt.relationTitle1!==void 0&&Pt.relationTitle1!=="none"&&wt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ft).attr("y",bt).attr("fill","black").attr("font-size","6").text(Pt.relationTitle1),Pt.relationTitle2!==void 0&&Pt.relationTitle2!=="none"&&wt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",_e).attr("y",we).attr("fill","black").attr("font-size","6").text(Pt.relationTitle2),G0++})(h,g.edge(ht),g.edge(ht).relation,X0))}));var q=h.node().getBBox(),ot=q.width+40,tt=q.height+40;Ka(h,tt,ot,X0.useMaxWidth);var gt="".concat(q.x-20," ").concat(q.y-20," ").concat(ot," ").concat(tt);y.debug("viewBox ".concat(gt)),h.attr("viewBox",gt)};var Kv={extension:function(t,e,r){y.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 H5=function(t,e,r,o){e.forEach((function(u){Kv[u](t,r,o)}))};function Q0(t){return Q0=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},Q0(t)}const La=function(t,e,r,o){var u,c,h,g,w,_,D=t||"";if(Q0(D)==="object"&&(D=D[0]),vi(Qt().flowchart.htmlLabels))return D=D.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+D),u={isNode:o,label:D.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(tt){return"<i class='".concat(tt.replace(":"," "),"'></i>")})),labelStyle:e.replace("fill:","color:")},h=Ve(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),g=h.append("xhtml:div"),w=u.label,_=u.isNode?"nodeLabel":"edgeLabel",g.html('<span class="'+_+'" '+(u.labelStyle?'style="'+u.labelStyle+'"':"")+">"+w+"</span>"),(c=u.labelStyle)&&g.attr("style",c),g.style("display","inline-block"),g.style("white-space","nowrap"),g.attr("xmlns","http://www.w3.org/1999/xhtml"),h.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 q=0;q<P.length;q++){var ot=document.createElementNS("http://www.w3.org/2000/svg","tspan");ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ot.setAttribute("dy","1em"),ot.setAttribute("x","0"),r?ot.setAttribute("class","title-row"):ot.setAttribute("class","row"),ot.textContent=P[q].trim(),j.appendChild(ot)}return j};var _a=function(t,e,r,o){var u;u=r||"node default";var c=t.insert("g").attr("class",u).attr("id",e.domId||e.id),h=c.insert("g").attr("class","label").attr("style",e.labelStyle),g=typeof e.labelText=="string"?e.labelText:e.labelText[0],w=h.node().appendChild(La(tc(U_(g),Qt()),e.labelStyle,!1,o)),_=w.getBBox();if(vi(Qt().flowchart.htmlLabels)){var D=w.children[0],j=Ve(w);_=D.getBoundingClientRect(),j.attr("width",_.width),j.attr("height",_.height)}var P=e.padding/2;return h.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),{shapeSvg:c,bbox:_,halfPadding:P,label:h}},Oi=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function rs(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map((function(u){return u.x+","+u.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var vr={},vo={},Jv={},mf=function(t,e){return y.trace("In isDecendant",e," ",t," = ",vo[e].indexOf(t)>=0),vo[e].indexOf(t)>=0},$5=function t(e,r,o,u){y.warn("Copying children of ",e,"root",u,"data",r.node(e),u);var c=r.children(e)||[];e!==u&&c.push(e),y.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach((function(h){if(r.children(h).length>0)t(h,r,o,u);else{var g=r.node(h);y.info("cp ",h," to ",u," with parent ",e),o.setNode(h,g),u!==r.parent(h)&&(y.warn("Setting parent",h,r.parent(h)),o.setParent(h,r.parent(h))),e!==u&&h!==e?(y.debug("Setting parent",h,e),o.setParent(h,e)):(y.info("In copy ",e,"root",u,"data",r.node(e),u),y.debug("Not Setting parent for node=",h,"cluster!==rootId",e!==u,"node!==clusterId",h!==e));var w=r.edges(h);y.debug("Copying Edges",w),w.forEach((function(_){y.info("Edge",_);var D=r.edge(_.v,_.w,_.name);y.info("Edge data",D,u);try{(function(j,P){return y.info("Decendants of ",P," is ",vo[P]),y.info("Edge is ",j),j.v!==P&&j.w!==P&&(vo[P]?(y.info("Here "),vo[P].indexOf(j.v)>=0||!!mf(j.v,P)||!!mf(j.w,P)||vo[P].indexOf(j.w)>=0):(y.debug("Tilt, ",P,",not in decendants"),!1))})(_,u)?(y.info("Copying as ",_.v,_.w,D,_.name),o.setEdge(_.v,_.w,D,_.name),y.info("newGraph edges ",o.edges(),o.edge(o.edges()[0]))):y.info("Skipping copy of edge ",_.v,"-->",_.w," rootId: ",u," clusterId:",e)}catch(j){y.error(j)}}))}y.debug("Removing node",h),r.removeNode(h)}))},t3=function t(e,r){for(var o=r.children(e),u=[].concat(o),c=0;c<o.length;c++)Jv[o[c]]=e,u=u.concat(t(o[c],r));return u},K0=function t(e,r){y.trace("Searching",e);var o=r.children(e);if(y.trace("Searching children of id ",e,o),o.length<1)return y.trace("This is a valid node",e),e;for(var u=0;u<o.length;u++){var c=t(o[u],r);if(c)return y.trace("Found replacement for",e," => ",c),c}},l2=function(t){return vr[t]&&vr[t].externalConnections&&vr[t]?vr[t].id:t},W5=function(t,e){!t||e>10?y.debug("Opting out, no graph "):(y.debug("Opting in, graph "),t.nodes().forEach((function(r){t.children(r).length>0&&(y.warn("Cluster identified",r," Replacement id in edges: ",K0(r,t)),vo[r]=t3(r,t),vr[r]={id:K0(r,t),clusterData:t.node(r)})})),t.nodes().forEach((function(r){var o=t.children(r),u=t.edges();o.length>0?(y.debug("Cluster identified",r,vo),u.forEach((function(c){c.v!==r&&c.w!==r&&mf(c.v,r)^mf(c.w,r)&&(y.warn("Edge: ",c," leaves cluster ",r),y.warn("Decendants of XXX ",r,": ",vo[r]),vr[r].externalConnections=!0)}))):y.debug("Not a cluster ",r,vo)})),t.edges().forEach((function(r){var o=t.edge(r);y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));var u=r.v,c=r.w;y.warn("Fix XXX",vr,"ids:",r.v,r.w,"Translateing: ",vr[r.v]," --- ",vr[r.w]),(vr[r.v]||vr[r.w])&&(y.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),u=l2(r.v),c=l2(r.w),t.removeEdge(r.v,r.w,r.name),u!==r.v&&(o.fromCluster=r.v),c!==r.w&&(o.toCluster=r.w),y.warn("Fix Replacing with XXX",u,c,r.name),t.setEdge(u,c,o,r.name))})),y.warn("Adjusted Graph",_i().json.write(t)),e3(t,0),y.trace(vr))},e3=function t(e,r){if(y.warn("extractor - ",r,_i().json.write(e),e.children("D")),r>10)y.error("Bailing out");else{for(var o=e.nodes(),u=!1,c=0;c<o.length;c++){var h=o[c],g=e.children(h);u=u||g.length>0}if(u){y.debug("Nodes = ",o,r);for(var w=0;w<o.length;w++){var _=o[w];if(y.debug("Extracting node",_,vr,vr[_]&&!vr[_].externalConnections,!e.parent(_),e.node(_),e.children("D")," Depth ",r),vr[_])if(!vr[_].externalConnections&&e.children(_)&&e.children(_).length>0){y.warn("Cluster without external connections, without a parent and with children",_,r);var D=e.graph().rankdir==="TB"?"LR":"TB";vr[_]&&vr[_].clusterData&&vr[_].clusterData.dir&&(D=vr[_].clusterData.dir,y.warn("Fixing dir",vr[_].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{}}));y.warn("Old graph before copy",_i().json.write(e)),$5(_,e,j,_),e.setNode(_,{clusterNode:!0,id:_,clusterData:vr[_].clusterData,labelText:vr[_].labelText,graph:j}),y.warn("New graph after copy node: (",_,")",_i().json.write(j)),y.debug("Old graph after copy",_i().json.write(e))}else y.warn("Cluster ** ",_," **not meeting the criteria !externalConnections:",!vr[_].externalConnections," no parent: ",!e.parent(_)," children ",e.children(_)&&e.children(_).length>0,e.children("D"),r),y.debug(vr);else y.debug("Not a cluster",_,r)}o=e.nodes(),y.warn("New list of nodes",o);for(var P=0;P<o.length;P++){var q=o[P],ot=e.node(q);y.warn(" Now next level",q,ot),ot.clusterNode&&t(ot.graph,r+1)}}else y.debug("Done, no node has children",e.nodes())}},V5=function t(e,r){if(r.length===0)return[];var o=Object.assign(r);return r.forEach((function(u){var c=e.children(u),h=t(e,c);o=o.concat(h)})),o},n3=function(t){return V5(t,t.children())},G5=p(3841);const r3=function(t,e,r,o){var u=t.x,c=t.y,h=u-o.x,g=c-o.y,w=Math.sqrt(e*e*g*g+r*r*h*h),_=Math.abs(e*r*h/w);o.x<u&&(_=-_);var D=Math.abs(e*r*g/w);return o.y<c&&(D=-D),{x:u+_,y:c+D}};function i3(t,e){return t*e>0}const a3=function(t,e,r,o){var u,c,h,g,w,_,D,j,P,q,ot,tt,gt;if(u=e.y-t.y,h=t.x-e.x,w=e.x*t.y-t.x*e.y,P=u*r.x+h*r.y+w,q=u*o.x+h*o.y+w,!(P!==0&&q!==0&&i3(P,q)||(c=o.y-r.y,g=r.x-o.x,_=o.x*r.y-r.x*o.y,D=c*t.x+g*t.y+_,j=c*e.x+g*e.y+_,D!==0&&j!==0&&i3(D,j)||(ot=u*g-c*h)==0)))return tt=Math.abs(ot/2),{x:(gt=h*_-g*w)<0?(gt-tt)/ot:(gt+tt)/ot,y:(gt=c*w-u*_)<0?(gt-tt)/ot:(gt+tt)/ot}},vf=function(t,e){var r,o,u=t.x,c=t.y,h=e.x-u,g=e.y-c,w=t.width/2,_=t.height/2;return Math.abs(g)*w>Math.abs(h)*_?(g<0&&(_=-_),r=g===0?0:_*h/g,o=_):(h<0&&(w=-w),r=w,o=h===0?0:w*g/h),{x:u+r,y:c+o}},bf=(p.n(G5)(),function(t,e,r){return r3(t,e,e,r)}),ks=function(t,e,r){var o=t.x,u=t.y,c=[],h=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach((function(ot){h=Math.min(h,ot.x),g=Math.min(g,ot.y)})):(h=Math.min(h,e.x),g=Math.min(g,e.y));for(var w=o-t.width/2-h,_=u-t.height/2-g,D=0;D<e.length;D++){var j=e[D],P=e[D<e.length-1?D+1:0],q=a3(t,r,{x:w+j.x,y:_+j.y},{x:w+P.x,y:_+P.y});q&&c.push(q)}return c.length?(c.length>1&&c.sort((function(ot,tt){var gt=ot.x-r.x,ht=ot.y-r.y,wt=Math.sqrt(gt*gt+ht*ht),Tt=tt.x-r.x,Pt=tt.y-r.y,Gt=Math.sqrt(Tt*Tt+Pt*Pt);return wt<Gt?-1:wt===Gt?0:1})),c[0]):t},eu=vf;function J0(t){return J0=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},J0(t)}var h2=function(t,e,r){var o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=70,c=10;r==="LR"&&(u=10,c=70);var h=o.append("rect").attr("x",-1*u/2).attr("y",-1*c/2).attr("width",u).attr("height",c).attr("class","fork-join");return Oi(e,h),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(g){return eu(e,g)},o},o3={question:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding+(u.height+e.padding),h=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}];y.info("Question main (Circle)");var g=rs(o,c,c,h);return g.attr("style",e.style),Oi(e,g),e.intersect=function(w){return y.warn("Intersect called"),ks(e,h,w)},o},rect:function(t,e){var r=_a(t,e,"node "+e.classes,!0),o=r.shapeSvg,u=r.bbox,c=r.halfPadding;y.trace("Classes = ",e.classes);var h=o.insert("rect",":first-child"),g=u.width+e.padding,w=u.height+e.padding;if(h.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-u.width/2-c).attr("y",-u.height/2-c).attr("width",g).attr("height",w),e.props){var _=new Set(Object.keys(e.props));e.props.borders&&((function(D,j,P,q){var ot=[],tt=function(ht){ot.push(ht),ot.push(0)},gt=function(ht){ot.push(0),ot.push(ht)};j.includes("t")?(y.debug("add top border"),tt(P)):gt(P),j.includes("r")?(y.debug("add right border"),tt(q)):gt(q),j.includes("b")?(y.debug("add bottom border"),tt(P)):gt(P),j.includes("l")?(y.debug("add left border"),tt(q)):gt(q),D.attr("stroke-dasharray",ot.join(" "))})(h,e.props.borders,g,w),_.delete("borders")),_.forEach((function(D){y.warn("Unknown node property ".concat(D))}))}return Oi(e,h),e.intersect=function(D){return eu(e,D)},o},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var o,u=t.insert("g").attr("class",r).attr("id",e.domId||e.id),c=u.insert("rect",":first-child"),h=u.insert("line"),g=u.insert("g").attr("class","label"),w=e.labelText.flat?e.labelText.flat():e.labelText;o=J0(w)==="object"?w[0]:w,y.info("Label text abc79",o,w,J0(w)==="object");var _=g.node().appendChild(La(o,e.labelStyle,!0,!0)),D={width:0,height:0};if(vi(Qt().flowchart.htmlLabels)){var j=_.children[0],P=Ve(_);D=j.getBoundingClientRect(),P.attr("width",D.width),P.attr("height",D.height)}y.info("Text 2",w);var q=w.slice(1,w.length),ot=_.getBBox(),tt=g.node().appendChild(La(q.join?q.join("<br/>"):q,e.labelStyle,!0,!0));if(vi(Qt().flowchart.htmlLabels)){var gt=tt.children[0],ht=Ve(tt);D=gt.getBoundingClientRect(),ht.attr("width",D.width),ht.attr("height",D.height)}var wt=e.padding/2;return Ve(tt).attr("transform","translate( "+(D.width>ot.width?0:(ot.width-D.width)/2)+", "+(ot.height+wt+5)+")"),Ve(_).attr("transform","translate( "+(D.width<ot.width?0:-(ot.width-D.width)/2)+", 0)"),D=g.node().getBBox(),g.attr("transform","translate("+-D.width/2+", "+(-D.height/2-wt+3)+")"),c.attr("class","outer title-state").attr("x",-D.width/2-wt).attr("y",-D.height/2-wt).attr("width",D.width+e.padding).attr("height",D.height+e.padding),h.attr("class","divider").attr("x1",-D.width/2-wt).attr("x2",D.width/2+wt).attr("y1",-D.height/2-wt+ot.height+wt).attr("y2",-D.height/2-wt+ot.height+wt),Oi(e,c),e.intersect=function(Tt){return eu(e,Tt)},u},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(o){return o.x+","+o.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(o){return bf(e,14,o)},r},circle:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=r.halfPadding,h=o.insert("circle",":first-child");return h.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",u.width/2+c).attr("width",u.width+e.padding).attr("height",u.height+e.padding),y.info("Circle main"),Oi(e,h),e.intersect=function(g){return y.info("Circle intersect",e,u.width/2+c,g),bf(e,u.width/2+c,g)},o},stadium:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.height+e.padding,h=u.width+c/4+e.padding,g=o.insert("rect",":first-child").attr("style",e.style).attr("rx",c/2).attr("ry",c/2).attr("x",-h/2).attr("y",-c/2).attr("width",h).attr("height",c);return Oi(e,g),e.intersect=function(w){return eu(e,w)},o},hexagon:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.height+e.padding,h=c/4,g=u.width+2*h+e.padding,w=[{x:h,y:0},{x:g-h,y:0},{x:g,y:-c/2},{x:g-h,y:-c},{x:h,y:-c},{x:0,y:-c/2}],_=rs(o,g,c,w);return _.attr("style",e.style),Oi(e,_),e.intersect=function(D){return ks(e,w,D)},o},rect_left_inv_arrow:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:-h/2,y:0},{x:c,y:0},{x:c,y:-h},{x:-h/2,y:-h},{x:0,y:-h/2}];return rs(o,c,h,g).attr("style",e.style),e.width=c+h,e.height=h,e.intersect=function(w){return ks(e,g,w)},o},lean_right:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:-2*h/6,y:0},{x:c-h/6,y:0},{x:c+2*h/6,y:-h},{x:h/6,y:-h}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},lean_left:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:2*h/6,y:0},{x:c+h/6,y:0},{x:c-2*h/6,y:-h},{x:-h/6,y:-h}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},trapezoid:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:-2*h/6,y:0},{x:c+2*h/6,y:0},{x:c-h/6,y:-h},{x:h/6,y:-h}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},inv_trapezoid:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:h/6,y:0},{x:c-h/6,y:0},{x:c+2*h/6,y:-h},{x:-2*h/6,y:-h}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},rect_right_inv_arrow:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:0,y:0},{x:c+h/2,y:0},{x:c,y:-h/2},{x:c+h/2,y:-h},{x:0,y:-h}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},cylinder:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=c/2,g=h/(2.5+c/50),w=u.height+g+e.padding,_="M 0,"+g+" a "+h+","+g+" 0,0,0 "+c+" 0 a "+h+","+g+" 0,0,0 "+-c+" 0 l 0,"+w+" a "+h+","+g+" 0,0,0 "+c+" 0 l 0,"+-w,D=o.attr("label-offset-y",g).insert("path",":first-child").attr("style",e.style).attr("d",_).attr("transform","translate("+-c/2+","+-(w/2+g)+")");return Oi(e,D),e.intersect=function(j){var P=eu(e,j),q=P.x-e.x;if(h!=0&&(Math.abs(q)<e.width/2||Math.abs(q)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-g)){var ot=g*g*(1-q*q/(h*h));ot!=0&&(ot=Math.sqrt(ot)),ot=g-ot,j.y-e.y>0&&(ot=-ot),P.y+=ot}return P},o},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),o=r.insert("circle",":first-child");return o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Oi(e,o),e.intersect=function(u){return bf(e,7,u)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),o=r.insert("circle",":first-child"),u=r.insert("circle",":first-child");return u.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),o.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Oi(e,u),e.intersect=function(c){return bf(e,7,c)},r},note:function(t,e){var r=_a(t,e,"node "+e.classes,!0),o=r.shapeSvg,u=r.bbox,c=r.halfPadding;y.info("Classes = ",e.classes);var h=o.insert("rect",":first-child");return h.attr("rx",e.rx).attr("ry",e.ry).attr("x",-u.width/2-c).attr("y",-u.height/2-c).attr("width",u.width+e.padding).attr("height",u.height+e.padding),Oi(e,h),e.intersect=function(g){return eu(e,g)},o},subroutine:function(t,e){var r=_a(t,e,void 0,!0),o=r.shapeSvg,u=r.bbox,c=u.width+e.padding,h=u.height+e.padding,g=[{x:0,y:0},{x:c,y:0},{x:c,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-h},{x:-8,y:-h},{x:-8,y:0}],w=rs(o,c,h,g);return w.attr("style",e.style),Oi(e,w),e.intersect=function(_){return ks(e,g,_)},o},fork:h2,join:h2,class_box:function(t,e){var r,o=e.padding/2;r=e.classes?"node "+e.classes:"node default";var u=t.insert("g").attr("class",r).attr("id",e.domId||e.id),c=u.insert("rect",":first-child"),h=u.insert("line"),g=u.insert("line"),w=0,_=4,D=u.insert("g").attr("class","label"),j=0,P=e.classData.annotations&&e.classData.annotations[0],q=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",ot=D.node().appendChild(La(q,e.labelStyle,!0,!0)),tt=ot.getBBox();if(vi(Qt().flowchart.htmlLabels)){var gt=ot.children[0],ht=Ve(ot);tt=gt.getBoundingClientRect(),ht.attr("width",tt.width),ht.attr("height",tt.height)}e.classData.annotations[0]&&(_+=tt.height+4,w+=tt.width);var wt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(Qt().flowchart.htmlLabels?wt+="<"+e.classData.type+">":wt+="<"+e.classData.type+">");var Tt=D.node().appendChild(La(wt,e.labelStyle,!0,!0));Ve(Tt).attr("class","classTitle");var Pt=Tt.getBBox();if(vi(Qt().flowchart.htmlLabels)){var Gt=Tt.children[0],Et=Ve(Tt);Pt=Gt.getBoundingClientRect(),Et.attr("width",Pt.width),Et.attr("height",Pt.height)}_+=Pt.height+4,Pt.width>w&&(w=Pt.width);var ee=[];e.classData.members.forEach((function(Ct){var yt=s2(Ct),Ft=yt.displayText;Qt().flowchart.htmlLabels&&(Ft=Ft.replace(/</g,"<").replace(/>/g,">"));var bt=D.node().appendChild(La(Ft,yt.cssStyle?yt.cssStyle:e.labelStyle,!0,!0)),_e=bt.getBBox();if(vi(Qt().flowchart.htmlLabels)){var we=bt.children[0],Ut=Ve(bt);_e=we.getBoundingClientRect(),Ut.attr("width",_e.width),Ut.attr("height",_e.height)}_e.width>w&&(w=_e.width),_+=_e.height+4,ee.push(bt)})),_+=8;var ie=[];if(e.classData.methods.forEach((function(Ct){var yt=s2(Ct),Ft=yt.displayText;Qt().flowchart.htmlLabels&&(Ft=Ft.replace(/</g,"<").replace(/>/g,">"));var bt=D.node().appendChild(La(Ft,yt.cssStyle?yt.cssStyle:e.labelStyle,!0,!0)),_e=bt.getBBox();if(vi(Qt().flowchart.htmlLabels)){var we=bt.children[0],Ut=Ve(bt);_e=we.getBoundingClientRect(),Ut.attr("width",_e.width),Ut.attr("height",_e.height)}_e.width>w&&(w=_e.width),_+=_e.height+4,ie.push(bt)})),_+=8,P){var kt=(w-tt.width)/2;Ve(ot).attr("transform","translate( "+(-1*w/2+kt)+", "+-1*_/2+")"),j=tt.height+4}var It=(w-Pt.width)/2;return Ve(Tt).attr("transform","translate( "+(-1*w/2+It)+", "+(-1*_/2+j)+")"),j+=Pt.height+4,h.attr("class","divider").attr("x1",-w/2-o).attr("x2",w/2+o).attr("y1",-_/2-o+8+j).attr("y2",-_/2-o+8+j),j+=8,ee.forEach((function(Ct){Ve(Ct).attr("transform","translate( "+-w/2+", "+(-1*_/2+j+4)+")"),j+=Pt.height+4})),j+=8,g.attr("class","divider").attr("x1",-w/2-o).attr("x2",w/2+o).attr("y1",-_/2-o+8+j).attr("y2",-_/2-o+8+j),j+=8,ie.forEach((function(Ct){Ve(Ct).attr("transform","translate( "+-w/2+", "+(-1*_/2+j)+")"),j+=Pt.height+4})),c.attr("class","outer title-state").attr("x",-w/2-o).attr("y",-_/2-o).attr("width",w+e.padding).attr("height",_+e.padding),Oi(e,c),e.intersect=function(Ct){return eu(e,Ct)},u}},rc={},s3=function(t){var e=rc[t.id];y.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},u3={rect:function(t,e){y.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),o=r.insert("rect",":first-child"),u=r.insert("g").attr("class","cluster-label"),c=u.node().appendChild(La(e.labelText,e.labelStyle,void 0,!0)),h=c.getBBox();if(vi(Qt().flowchart.htmlLabels)){var g=c.children[0],w=Ve(c);h=g.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}var _=0*e.padding,D=_/2,j=e.width<=h.width+_?h.width+_:e.width;e.width<=h.width+_?e.diff=(h.width-e.width)/2:e.diff=-e.padding/2,y.trace("Data ",e,JSON.stringify(e)),o.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+_),u.attr("transform","translate("+(e.x-h.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var P=o.node().getBBox();return e.width=P.width,e.height=P.height,e.intersect=function(q){return vf(e,q)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),o=r.insert("rect",":first-child"),u=r.insert("g").attr("class","cluster-label"),c=r.append("rect"),h=u.node().appendChild(La(e.labelText,e.labelStyle,void 0,!0)),g=h.getBBox();if(vi(Qt().flowchart.htmlLabels)){var w=h.children[0],_=Ve(h);g=w.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}g=h.getBBox();var D=0*e.padding,j=D/2,P=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(g.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,o.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),c.attr("class","inner").attr("x",e.x-P/2-j).attr("y",e.y-e.height/2-j+g.height-1).attr("width",P+D).attr("height",e.height+D-g.height-3),u.attr("transform","translate("+(e.x-g.width/2)+", "+(e.y-e.height/2-e.padding/3+(vi(Qt().flowchart.htmlLabels)?5:3))+")");var q=o.node().getBBox();return e.height=q.height,e.intersect=function(ot){return vf(e,ot)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),o=r.insert("rect",":first-child"),u=0*e.padding,c=u/2;o.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-c).attr("y",e.y-e.height/2-c).attr("width",e.width+u).attr("height",e.height+u).attr("fill","none");var h=o.node().getBBox();return e.width=h.width,e.height=h.height,e.intersect=function(g){return vf(e,g)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),o=r.insert("rect",":first-child"),u=0*e.padding,c=u/2;o.attr("class","divider").attr("x",e.x-e.width/2-c).attr("y",e.y-e.height/2).attr("width",e.width+u).attr("height",e.height+u);var h=o.node().getBBox();return e.width=h.width,e.height=h.height,e.diff=-e.padding/2,e.intersect=function(g){return vf(e,g)},r}},c3={},_f={},ta={},l3=function(t,e){var r=La(e.label,e.labelStyle),o=t.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label");u.node().appendChild(r);var c,h=r.getBBox();if(vi(Qt().flowchart.htmlLabels)){var g=r.children[0],w=Ve(r);h=g.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}if(u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),_f[e.id]=o,e.width=h.width,e.height=h.height,e.startLabelLeft){var _=La(e.startLabelLeft,e.labelStyle),D=t.insert("g").attr("class","edgeTerminals"),j=D.insert("g").attr("class","inner");c=j.node().appendChild(_);var P=_.getBBox();j.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startLeft=D,td(c,e.startLabelLeft)}if(e.startLabelRight){var q=La(e.startLabelRight,e.labelStyle),ot=t.insert("g").attr("class","edgeTerminals"),tt=ot.insert("g").attr("class","inner");c=ot.node().appendChild(q),tt.node().appendChild(q);var gt=q.getBBox();tt.attr("transform","translate("+-gt.width/2+", "+-gt.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startRight=ot,td(c,e.startLabelRight)}if(e.endLabelLeft){var ht=La(e.endLabelLeft,e.labelStyle),wt=t.insert("g").attr("class","edgeTerminals"),Tt=wt.insert("g").attr("class","inner");c=Tt.node().appendChild(ht);var Pt=ht.getBBox();Tt.attr("transform","translate("+-Pt.width/2+", "+-Pt.height/2+")"),wt.node().appendChild(ht),ta[e.id]||(ta[e.id]={}),ta[e.id].endLeft=wt,td(c,e.endLabelLeft)}if(e.endLabelRight){var Gt=La(e.endLabelRight,e.labelStyle),Et=t.insert("g").attr("class","edgeTerminals"),ee=Et.insert("g").attr("class","inner");c=ee.node().appendChild(Gt);var ie=Gt.getBBox();ee.attr("transform","translate("+-ie.width/2+", "+-ie.height/2+")"),Et.node().appendChild(Gt),ta[e.id]||(ta[e.id]={}),ta[e.id].endRight=Et,td(c,e.endLabelRight)}};function td(t,e){Qt().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var h3=function(t,e){y.info("Moving label abc78 ",t.id,t.label,_f[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var o=_f[t.id],u=t.x,c=t.y;if(r){var h=Vn.calcLabelPosition(r);y.info("Moving label from (",u,",",c,") to (",h.x,",",h.y,") abc78")}o.attr("transform","translate("+u+", "+c+")")}if(t.startLabelLeft){var g=ta[t.id].startLeft,w=t.x,_=t.y;if(r){var D=Vn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);w=D.x,_=D.y}g.attr("transform","translate("+w+", "+_+")")}if(t.startLabelRight){var j=ta[t.id].startRight,P=t.x,q=t.y;if(r){var ot=Vn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);P=ot.x,q=ot.y}j.attr("transform","translate("+P+", "+q+")")}if(t.endLabelLeft){var tt=ta[t.id].endLeft,gt=t.x,ht=t.y;if(r){var wt=Vn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);gt=wt.x,ht=wt.y}tt.attr("transform","translate("+gt+", "+ht+")")}if(t.endLabelRight){var Tt=ta[t.id].endRight,Pt=t.x,Gt=t.y;if(r){var Et=Vn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);Pt=Et.x,Gt=Et.y}Tt.attr("transform","translate("+Pt+", "+Gt+")")}},f3=function(t,e){y.warn("abc88 cutPathAtIntersect",t,e);var r=[],o=t[0],u=!1;return t.forEach((function(c){if(y.info("abc88 checking point",c,e),(function(w,_){var D=w.x,j=w.y,P=Math.abs(_.x-D),q=Math.abs(_.y-j),ot=w.width/2,tt=w.height/2;return P>=ot||q>=tt})(e,c)||u)y.warn("abc88 outside",c,o),o=c,u||r.push(c);else{var h=(function(w,_,D){y.warn(`intersection calc abc89:
|
|
64
|
+
outsidePoint: `.concat(JSON.stringify(_),`
|
|
65
|
+
insidePoint : `).concat(JSON.stringify(D),`
|
|
66
|
+
node : x:`).concat(w.x," y:").concat(w.y," w:").concat(w.width," h:").concat(w.height));var j=w.x,P=w.y,q=Math.abs(j-D.x),ot=w.width/2,tt=D.x<_.x?ot-q:ot+q,gt=w.height/2,ht=Math.abs(_.y-D.y),wt=Math.abs(_.x-D.x);if(Math.abs(P-_.y)*ot>Math.abs(j-_.x)*gt){var Tt=D.y<_.y?_.y-gt-P:P-gt-_.y;tt=wt*Tt/ht;var Pt={x:D.x<_.x?D.x+tt:D.x-wt+tt,y:D.y<_.y?D.y+ht-Tt:D.y-ht+Tt};return tt===0&&(Pt.x=_.x,Pt.y=_.y),wt===0&&(Pt.x=_.x),ht===0&&(Pt.y=_.y),y.warn("abc89 topp/bott calc, Q ".concat(ht,", q ").concat(Tt,", R ").concat(wt,", r ").concat(tt),Pt),Pt}var Gt=ht*(tt=D.x<_.x?_.x-ot-j:j-ot-_.x)/wt,Et=D.x<_.x?D.x+wt-tt:D.x-wt+tt,ee=D.y<_.y?D.y+Gt:D.y-Gt;return y.warn("sides calc abc89, Q ".concat(ht,", q ").concat(Gt,", R ").concat(wt,", r ").concat(tt),{_x:Et,_y:ee}),tt===0&&(Et=_.x,ee=_.y),wt===0&&(Et=_.x),ht===0&&(ee=_.y),{x:Et,y:ee}})(e,o,c);y.warn("abc88 inside",c,o,h),y.warn("abc88 intersection",h);var g=!1;r.forEach((function(w){g=g||w.x===h.x&&w.y===h.y})),r.find((function(w){return w.x===h.x&&w.y===h.y}))?y.warn("abc88 no intersect",h,r):r.push(h),u=!0}})),y.warn("abc88 returning points",r),r},d3=function t(e,r,o,u){y.info("Graph in recursive render: XXX",_i().json.write(r),u);var c=r.graph().rankdir;y.trace("Dir in recursive render - dir:",c);var h=e.insert("g").attr("class","root");r.nodes()?y.info("Recursive render XXX",r.nodes()):y.info("No nodes found for",r),r.edges().length>0&&y.trace("Recursive edges",r.edge(r.edges()[0]));var g=h.insert("g").attr("class","clusters"),w=h.insert("g").attr("class","edgePaths"),_=h.insert("g").attr("class","edgeLabels"),D=h.insert("g").attr("class","nodes");r.nodes().forEach((function(P){var q=r.node(P);if(u!==void 0){var ot=JSON.parse(JSON.stringify(u.clusterData));y.info("Setting data for cluster XXX (",P,") ",ot,u),r.setNode(u.id,ot),r.parent(P)||(y.trace("Setting parent",P,u.id),r.setParent(P,u.id,ot))}if(y.info("(Insert) Node XXX"+P+": "+JSON.stringify(r.node(P))),q&&q.clusterNode){y.info("Cluster identified",P,q.width,r.node(P));var tt=t(D,q.graph,o,r.node(P)),gt=tt.elem;Oi(q,gt),q.diff=tt.diff||0,y.info("Node bounds (abc123)",P,q,q.width,q.x,q.y),(function(ht,wt){rc[wt.id]=ht})(gt,q),y.warn("Recursive render complete ",gt,q)}else r.children(P).length>0?(y.info("Cluster - the non recursive path XXX",P,q.id,q,r),y.info(K0(q.id,r)),vr[q.id]={id:K0(q.id,r),node:q}):(y.info("Node - the non recursive path",P,q.id,q),(function(ht,wt,Tt){var Pt,Gt,Et;wt.link?(Qt().securityLevel==="sandbox"?Et="_top":wt.linkTarget&&(Et=wt.linkTarget||"_blank"),Pt=ht.insert("svg:a").attr("xlink:href",wt.link).attr("target",Et),Gt=o3[wt.shape](Pt,wt,Tt)):Pt=Gt=o3[wt.shape](ht,wt,Tt),wt.tooltip&&Gt.attr("title",wt.tooltip),wt.class&&Gt.attr("class","node default "+wt.class),rc[wt.id]=Pt,wt.haveCallback&&rc[wt.id].attr("class",rc[wt.id].attr("class")+" clickable")})(D,r.node(P),c))})),r.edges().forEach((function(P){var q=r.edge(P.v,P.w,P.name);y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P)),y.info("Edge "+P.v+" -> "+P.w+": ",P," ",JSON.stringify(r.edge(P))),y.info("Fix",vr,"ids:",P.v,P.w,"Translateing: ",vr[P.v],vr[P.w]),l3(_,q)})),r.edges().forEach((function(P){y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P))})),y.info("#############################################"),y.info("### Layout ###"),y.info("#############################################"),y.info(r),_l().layout(r),y.info("Graph after layout:",_i().json.write(r));var j=0;return n3(r).forEach((function(P){var q=r.node(P);y.info("Position "+P+": "+JSON.stringify(r.node(P))),y.info("Position "+P+": ("+q.x,","+q.y,") width: ",q.width," height: ",q.height),q&&q.clusterNode?s3(q):r.children(P).length>0?((function(ot,tt){y.trace("Inserting cluster");var gt=tt.shape||"rect";c3[tt.id]=u3[gt](ot,tt)})(g,q),vr[q.id].node=q):s3(q)})),r.edges().forEach((function(P){var q=r.edge(P);y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(q),q);var ot=(function(tt,gt,ht,wt,Tt,Pt){var Gt=ht.points,Et=!1,ee=Pt.node(gt.v),ie=Pt.node(gt.w);y.info("abc88 InsertEdge: ",ht),ie.intersect&&ee.intersect&&((Gt=Gt.slice(1,ht.points.length-1)).unshift(ee.intersect(Gt[0])),y.info("Last point",Gt[Gt.length-1],ie,ie.intersect(Gt[Gt.length-1])),Gt.push(ie.intersect(Gt[Gt.length-1]))),ht.toCluster&&(y.info("to cluster abc88",wt[ht.toCluster]),Gt=f3(ht.points,wt[ht.toCluster].node),Et=!0),ht.fromCluster&&(y.info("from cluster abc88",wt[ht.fromCluster]),Gt=f3(Gt.reverse(),wt[ht.fromCluster].node).reverse(),Et=!0);var kt,It=Gt.filter((function(we){return!Number.isNaN(we.y)}));kt=(Tt==="graph"||Tt==="flowchart")&&ht.curve||vs;var Ct,yt=Mu().x((function(we){return we.x})).y((function(we){return we.y})).curve(kt);switch(ht.thickness){case"normal":Ct="edge-thickness-normal";break;case"thick":Ct="edge-thickness-thick";break;default:Ct=""}switch(ht.pattern){case"solid":Ct+=" edge-pattern-solid";break;case"dotted":Ct+=" edge-pattern-dotted";break;case"dashed":Ct+=" edge-pattern-dashed"}var Ft=tt.append("path").attr("d",yt(It)).attr("id",ht.id).attr("class"," "+Ct+(ht.classes?" "+ht.classes:"")).attr("style",ht.style),bt="";switch(Qt().state.arrowMarkerAbsolute&&(bt=(bt=(bt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),y.info("arrowTypeStart",ht.arrowTypeStart),y.info("arrowTypeEnd",ht.arrowTypeEnd),ht.arrowTypeStart){case"arrow_cross":Ft.attr("marker-start","url("+bt+"#"+Tt+"-crossStart)");break;case"arrow_point":Ft.attr("marker-start","url("+bt+"#"+Tt+"-pointStart)");break;case"arrow_barb":Ft.attr("marker-start","url("+bt+"#"+Tt+"-barbStart)");break;case"arrow_circle":Ft.attr("marker-start","url("+bt+"#"+Tt+"-circleStart)");break;case"aggregation":Ft.attr("marker-start","url("+bt+"#"+Tt+"-aggregationStart)");break;case"extension":Ft.attr("marker-start","url("+bt+"#"+Tt+"-extensionStart)");break;case"composition":Ft.attr("marker-start","url("+bt+"#"+Tt+"-compositionStart)");break;case"dependency":Ft.attr("marker-start","url("+bt+"#"+Tt+"-dependencyStart)")}switch(ht.arrowTypeEnd){case"arrow_cross":Ft.attr("marker-end","url("+bt+"#"+Tt+"-crossEnd)");break;case"arrow_point":Ft.attr("marker-end","url("+bt+"#"+Tt+"-pointEnd)");break;case"arrow_barb":Ft.attr("marker-end","url("+bt+"#"+Tt+"-barbEnd)");break;case"arrow_circle":Ft.attr("marker-end","url("+bt+"#"+Tt+"-circleEnd)");break;case"aggregation":Ft.attr("marker-end","url("+bt+"#"+Tt+"-aggregationEnd)");break;case"extension":Ft.attr("marker-end","url("+bt+"#"+Tt+"-extensionEnd)");break;case"composition":Ft.attr("marker-end","url("+bt+"#"+Tt+"-compositionEnd)");break;case"dependency":Ft.attr("marker-end","url("+bt+"#"+Tt+"-dependencyEnd)")}var _e={};return Et&&(_e.updatedPath=Gt),_e.originalPath=ht.points,_e})(w,P,q,vr,o,r);h3(q,ot)})),r.nodes().forEach((function(P){var q=r.node(P);y.info(P,q.type,q.diff),q.type==="group"&&(j=q.diff)})),{elem:h,diff:j}},f2=function(t,e,r,o,u){H5(t,r,o,u),rc={},_f={},ta={},c3={},vo={},Jv={},vr={},y.warn("Graph at first:",_i().json.write(e)),W5(e),y.warn("Graph after:",_i().json.write(e)),d3(t,e,o)};nc.parser.yy=mo;var d2={dividerMargin:10,padding:5,textHeight:10};function p3(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 wl={},p2=[],ed="",g3=function(t){return wl[t]===void 0&&(wl[t]={attributes:[]},y.info("Added new entity :",t)),wl[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){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().er},addEntity:g3,addAttributes:function(t,e){var r,o=g3(t);for(r=e.length-1;r>=0;r--)o.attributes.push(e[r]),y.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return wl},addRelationship:function(t,e,r,o){var u={entityA:t,roleA:e,entityB:r,relSpec:o};p2.push(u),y.debug("Added new relationship :",u)},getRelationships:function(){return p2},clear:function(){wl={},p2=[],ed=""},setTitle:function(t){ed=t},getTitle:function(){return ed}};var X5=p(5890),g2=p.n(X5),Ts={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 Es=Ts;var zr={},y3=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},m3=0;const v3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)zr[e[r]]=t[e[r]]},Z5=function(t,e){y.info("Drawing ER diagram"),xa.clear();var r=g2().parser;r.yy=xa;var o,u=Qt().securityLevel;u==="sandbox"&&(o=Ve("#i"+e));var c=Ve(u==="sandbox"?o.nodes()[0].contentDocument.body:"body");u==="sandbox"&&o.nodes()[0].contentDocument;try{r.parse(t)}catch{y.debug("Parsing failed")}var h,g=c.select("[id='".concat(e,"']"));(function(ot,tt){var gt;ot.append("defs").append("marker").attr("id",Ts.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),ot.append("defs").append("marker").attr("id",Ts.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(gt=ot.append("defs").append("marker").attr("id",Ts.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(gt=ot.append("defs").append("marker").attr("id",Ts.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),ot.append("defs").append("marker").attr("id",Ts.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),ot.append("defs").append("marker").attr("id",Ts.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(gt=ot.append("defs").append("marker").attr("id",Ts.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(gt=ot.append("defs").append("marker").attr("id",Ts.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",tt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),gt.append("path").attr("stroke",tt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(g,zr),h=new(_i()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:zr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var w=(function(ot,tt,gt){var ht;return Object.keys(tt).forEach((function(wt){var Tt=ot.append("g").attr("id",wt);ht=ht===void 0?wt:ht;var Pt="entity-"+wt,Gt=Tt.append("text").attr("class","er entityLabel").attr("id",Pt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+zr.fontSize+"px").text(wt),Et=(function(It,Ct,yt){var Ft=zr.entityPadding/3,bt=zr.entityPadding/3,_e=.85*zr.fontSize,we=Ct.node().getBBox(),Ut=[],Te=!1,Ee=!1,be=0,he=0,Pe=0,Re=0,Ke=we.height+2*Ft,dn=1;yt.forEach((function(hn){hn.attributeKeyType!==void 0&&(Te=!0),hn.attributeComment!==void 0&&(Ee=!0)})),yt.forEach((function(hn){var Dn="".concat(Ct.node().id,"-attr-").concat(dn),br=0,Pa=It.append("text").attr("class","er entityLabel").attr("id","".concat(Dn,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+_e+"px").text(hn.attributeType),ka=It.append("text").attr("class","er entityLabel").attr("id","".concat(Dn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+_e+"px").text(hn.attributeName),Xn={};Xn.tn=Pa,Xn.nn=ka;var An=Pa.node().getBBox(),no=ka.node().getBBox();if(be=Math.max(be,An.width),he=Math.max(he,no.width),br=Math.max(An.height,no.height),Te){var xo=It.append("text").attr("class","er entityLabel").attr("id","".concat(Dn,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+_e+"px").text(hn.attributeKeyType||"");Xn.kn=xo;var Ho=xo.node().getBBox();Pe=Math.max(Pe,Ho.width),br=Math.max(br,Ho.height)}if(Ee){var bi=It.append("text").attr("class","er entityLabel").attr("id","".concat(Dn,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+_e+"px").text(hn.attributeComment||"");Xn.cn=bi;var Df=bi.node().getBBox();Re=Math.max(Re,Df.width),br=Math.max(br,Df.height)}Xn.height=br,Ut.push(Xn),Ke+=br+2*Ft,dn+=1}));var He=4;Te&&(He+=2),Ee&&(He+=2);var dr=be+he+Pe+Re,Er={width:Math.max(zr.minEntityWidth,Math.max(we.width+2*zr.entityPadding,dr+bt*He)),height:yt.length>0?Ke:Math.max(zr.minEntityHeight,we.height+2*zr.entityPadding)};if(yt.length>0){var On=Math.max(0,(Er.width-dr-bt*He)/(He/2));Ct.attr("transform","translate("+Er.width/2+","+(Ft+we.height/2)+")");var Ur=we.height+2*Ft,fr="attributeBoxOdd";Ut.forEach((function(hn){var Dn=Ur+Ft+hn.height/2;hn.tn.attr("transform","translate("+bt+","+Dn+")");var br=It.insert("rect","#"+hn.tn.node().id).attr("class","er ".concat(fr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",0).attr("y",Ur).attr("width",be+2*bt+On).attr("height",hn.height+2*Ft),Pa=parseFloat(br.attr("x"))+parseFloat(br.attr("width"));hn.nn.attr("transform","translate("+(Pa+bt)+","+Dn+")");var ka=It.insert("rect","#"+hn.nn.node().id).attr("class","er ".concat(fr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",Pa).attr("y",Ur).attr("width",he+2*bt+On).attr("height",hn.height+2*Ft),Xn=parseFloat(ka.attr("x"))+parseFloat(ka.attr("width"));if(Te){hn.kn.attr("transform","translate("+(Xn+bt)+","+Dn+")");var An=It.insert("rect","#"+hn.kn.node().id).attr("class","er ".concat(fr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",Xn).attr("y",Ur).attr("width",Pe+2*bt+On).attr("height",hn.height+2*Ft);Xn=parseFloat(An.attr("x"))+parseFloat(An.attr("width"))}Ee&&(hn.cn.attr("transform","translate("+(Xn+bt)+","+Dn+")"),It.insert("rect","#"+hn.cn.node().id).attr("class","er ".concat(fr)).attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",Xn).attr("y",Ur).attr("width",Re+2*bt+On).attr("height",hn.height+2*Ft)),Ur+=hn.height+2*Ft,fr=fr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"}))}else Er.height=Math.max(zr.minEntityHeight,Ke),Ct.attr("transform","translate("+Er.width/2+","+Er.height/2+")");return Er})(Tt,Gt,tt[wt].attributes),ee=Et.width,ie=Et.height,kt=Tt.insert("rect","#"+Pt).attr("class","er entityBox").attr("fill",zr.fill).attr("fill-opacity","100%").attr("stroke",zr.stroke).attr("x",0).attr("y",0).attr("width",ee).attr("height",ie).node().getBBox();gt.setNode(wt,{width:kt.width,height:kt.height,shape:"rect",id:wt})})),ht})(g,xa.getEntities(),h),_=(function(ot,tt){return ot.forEach((function(gt){tt.setEdge(gt.entityA,gt.entityB,{relationship:gt},y3(gt))})),ot})(xa.getRelationships(),h);_l().layout(h),(function(ot,tt){tt.nodes().forEach((function(gt){gt!==void 0&&tt.node(gt)!==void 0&&ot.select("#"+gt).attr("transform","translate("+(tt.node(gt).x-tt.node(gt).width/2)+","+(tt.node(gt).y-tt.node(gt).height/2)+" )")}))})(g,h),_.forEach((function(ot){(function(tt,gt,ht,wt){m3++;var Tt=ht.edge(gt.entityA,gt.entityB,y3(gt)),Pt=Mu().x((function(Ct){return Ct.x})).y((function(Ct){return Ct.y})).curve(vs),Gt=tt.insert("path","#"+wt).attr("class","er relationshipLine").attr("d",Pt(Tt.points)).attr("stroke",zr.stroke).attr("fill","none");gt.relSpec.relType===xa.Identification.NON_IDENTIFYING&&Gt.attr("stroke-dasharray","8,8");var Et="";switch(zr.arrowMarkerAbsolute&&(Et=(Et=(Et=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),gt.relSpec.cardA){case xa.Cardinality.ZERO_OR_ONE:Gt.attr("marker-end","url("+Et+"#"+Es.ZERO_OR_ONE_END+")");break;case xa.Cardinality.ZERO_OR_MORE:Gt.attr("marker-end","url("+Et+"#"+Es.ZERO_OR_MORE_END+")");break;case xa.Cardinality.ONE_OR_MORE:Gt.attr("marker-end","url("+Et+"#"+Es.ONE_OR_MORE_END+")");break;case xa.Cardinality.ONLY_ONE:Gt.attr("marker-end","url("+Et+"#"+Es.ONLY_ONE_END+")")}switch(gt.relSpec.cardB){case xa.Cardinality.ZERO_OR_ONE:Gt.attr("marker-start","url("+Et+"#"+Es.ZERO_OR_ONE_START+")");break;case xa.Cardinality.ZERO_OR_MORE:Gt.attr("marker-start","url("+Et+"#"+Es.ZERO_OR_MORE_START+")");break;case xa.Cardinality.ONE_OR_MORE:Gt.attr("marker-start","url("+Et+"#"+Es.ONE_OR_MORE_START+")");break;case xa.Cardinality.ONLY_ONE:Gt.attr("marker-start","url("+Et+"#"+Es.ONLY_ONE_START+")")}var ee=Gt.node().getTotalLength(),ie=Gt.node().getPointAtLength(.5*ee),kt="rel"+m3,It=tt.append("text").attr("class","er relationshipLabel").attr("id",kt).attr("x",ie.x).attr("y",ie.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Qt().fontFamily+"; font-size: "+zr.fontSize+"px").text(gt.roleA).node().getBBox();tt.insert("rect","#"+kt).attr("class","er relationshipLabelBox").attr("x",ie.x-It.width/2).attr("y",ie.y-It.height/2).attr("width",It.width).attr("height",It.height).attr("fill","white").attr("fill-opacity","85%")})(g,ot,h,w)}));var D=zr.diagramPadding,j=g.node().getBBox(),P=j.width+2*D,q=j.height+2*D;Ka(g,q,P,zr.useMaxWidth),g.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat(q))};function kl(t){return kl=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},kl(t)}function y2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var bo,nd,Q5="flowchart-",b3=0,Tl=Qt(),Gr={},ic=[],El=[],is=[],rd={},m2={},v2=0,id=!0,Cl=[],ad=function(t){for(var e=Object.keys(Gr),r=0;r<e.length;r++)if(Gr[e[r]].id===t)return Gr[e[r]].domId;return t},K5=function(t,e,r,o){var u={start:t,end:e,type:void 0,text:""};(o=r.text)!==void 0&&(u.text=rr.sanitizeText(o.trim(),Tl),u.text[0]==='"'&&u.text[u.text.length-1]==='"'&&(u.text=u.text.substring(1,u.text.length-1))),r!==void 0&&(u.type=r.type,u.stroke=r.stroke,u.length=r.length),ic.push(u)},Kn=function(t,e){t.split(",").forEach((function(r){var o=r;Gr[o]!==void 0&&Gr[o].classes.push(e),rd[o]!==void 0&&rd[o].classes.push(e)}))},b2=function(t){var e=Ve(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ve("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ve(t).select("svg").selectAll("g.node").on("mouseover",(function(){var r=Ve(this);if(r.attr("title")!==null){var o=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Ve(this).classed("hover",!1)}))};Cl.push(b2);var ua=function(t){for(var e=0;e<is.length;e++)if(is[e].id===t)return e;return-1},Cs=-1,_3=[],_2=function t(e,r){var o=is[r].nodes;if(!((Cs+=1)>2e3)){if(_3[Cs]=r,is[r].id===e)return{result:!0,count:0};for(var u=0,c=1;u<o.length;){var h=ua(o[u]);if(h>=0){var g=t(e,h);if(g.result)return{result:!0,count:c+g.count};c+=g.count}u+=1}return{result:!1,count:c}}},jo=function(t,e){var r=!1;return t.forEach((function(o){o.nodes.indexOf(e)>=0&&(r=!0)})),r},ac=function(t,e){var r=[];return t.nodes.forEach((function(o,u){jo(e,o)||r.push(t.nodes[u])})),{nodes:r}};const xn={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},defaultConfig:function(){return ff.flowchart},addVertex:function(t,e,r,o,u,c){var h,g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},w=t;w!==void 0&&w.trim().length!==0&&(Gr[w]===void 0&&(Gr[w]={id:w,domId:Q5+w+"-"+b3,styles:[],classes:[]}),b3++,e!==void 0?(Tl=Qt(),(h=rr.sanitizeText(e.trim(),Tl))[0]==='"'&&h[h.length-1]==='"'&&(h=h.substring(1,h.length-1)),Gr[w].text=h):Gr[w].text===void 0&&(Gr[w].text=t),r!==void 0&&(Gr[w].type=r),o?.forEach((function(_){Gr[w].styles.push(_)})),u?.forEach((function(_){Gr[w].classes.push(_)})),c!==void 0&&(Gr[w].dir=c),Gr[w].props=g)},lookUpDomId:ad,addLink:function(t,e,r,o){var u,c;for(u=0;u<t.length;u++)for(c=0;c<e.length;c++)K5(t[u],e[c],r,o)},updateLinkInterpolate:function(t,e){t.forEach((function(r){r==="default"?ic.defaultInterpolate=e:ic[r].interpolate=e}))},updateLink:function(t,e){t.forEach((function(r){r==="default"?ic.defaultStyle=e:(Vn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),ic[r].style=e)}))},addClass:function(t,e){El[t]===void 0&&(El[t]={id:t,styles:[],textStyles:[]}),e?.forEach((function(r){if(r.match("color")){var o=r.replace("fill","bgFill").replace("color","fill");El[t].textStyles.push(o)}El[t].styles.push(r)}))},setDirection:function(t){(bo=t).match(/.*</)&&(bo="RL"),bo.match(/.*\^/)&&(bo="BT"),bo.match(/.*>/)&&(bo="LR"),bo.match(/.*v/)&&(bo="TB")},setClass:Kn,setTooltip:function(t,e){t.split(",").forEach((function(r){e!==void 0&&(m2[nd==="gen-1"?ad(r):r]=rr.sanitizeText(e,Tl))}))},getTooltip:function(t){return m2[t]},setClickEvent:function(t,e,r){t.split(",").forEach((function(o){(function(u,c,h){var g=ad(u);if(Qt().securityLevel==="loose"&&c!==void 0){var w=[];if(typeof h=="string"){w=h.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(u),Gr[u]!==void 0&&(Gr[u].haveCallback=!0,Cl.push((function(){var j=document.querySelector('[id="'.concat(g,'"]'));j!==null&&j.addEventListener("click",(function(){var P;Vn.runFunc.apply(Vn,[c].concat((function(q){if(Array.isArray(q))return y2(q)})(P=w)||(function(q){if(typeof Symbol<"u"&&q[Symbol.iterator]!=null||q["@@iterator"]!=null)return Array.from(q)})(P)||(function(q,ot){if(q){if(typeof q=="string")return y2(q,ot);var tt=Object.prototype.toString.call(q).slice(8,-1);return tt==="Object"&&q.constructor&&(tt=q.constructor.name),tt==="Map"||tt==="Set"?Array.from(q):tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt)?y2(q,ot):void 0}})(P)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()))}),!1)})))}})(o,e,r)})),Kn(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach((function(o){Gr[o]!==void 0&&(Gr[o].link=Vn.formatUrl(e,Tl),Gr[o].linkTarget=r)})),Kn(t,"clickable")},bindFunctions:function(t){Cl.forEach((function(e){e(t)}))},getDirection:function(){return bo.trim()},getVertices:function(){return Gr},getEdges:function(){return ic},getClasses:function(){return El},clear:function(t){Gr={},El={},ic=[],(Cl=[]).push(b2),is=[],rd={},v2=0,m2=[],id=!0,nd=t||"gen-1"},setGen:function(t){nd=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 o=t.trim(),u=r;t===r&&r.match(/\s/)&&(o=void 0);var c=[],h=(function(j){var P,q={boolean:{},number:{},string:{}},ot=[],tt=j.filter((function(gt){var ht=kl(gt);return gt.stmt&>.stmt==="dir"?(P=gt.value,!1):gt.trim()!==""&&(ht in q?!q[ht].hasOwnProperty(gt)&&(q[ht][gt]=!0):!(ot.indexOf(gt)>=0)&&ot.push(gt))}));return{nodeList:tt,dir:P}})(c.concat.apply(c,e)),g=h.nodeList,w=h.dir;if(c=g,nd==="gen-1"){y.warn("LOOKING UP");for(var _=0;_<c.length;_++)c[_]=ad(c[_])}o=o||"subGraph"+v2,u=u||"",u=rr.sanitizeText(u,Tl),v2+=1;var D={id:o,nodes:c,title:u.trim(),classes:[],dir:w};return y.info("Adding",D.id,D.nodes,D.dir),D.nodes=ac(D,is).nodes,is.push(D),rd[o]=D,o},getDepthFirstPos:function(t){return _3[t]},indexNodes:function(){Cs=-1,is.length>0&&_2("none",is.length-1)},getSubGraphs:function(){return is},destructLink:function(t,e){var r,o=(function(u){var c=u.trim(),h=c.slice(0,-1),g="arrow_open";switch(c.slice(-1)){case"x":g="arrow_cross",c[0]==="x"&&(g="double_"+g,h=h.slice(1));break;case">":g="arrow_point",c[0]==="<"&&(g="double_"+g,h=h.slice(1));break;case"o":g="arrow_circle",c[0]==="o"&&(g="double_"+g,h=h.slice(1))}var w="normal",_=h.length-1;h[0]==="="&&(w="thick");var D=(function(j,P){for(var q=P.length,ot=0,tt=0;tt<q;++tt)P[tt]==="."&&++ot;return ot})(0,h);return D&&(w="dotted",_=D),{type:g,stroke:w,length:_}})(t);if(e){if(r=(function(u){var c=u.trim(),h="arrow_open";switch(c[0]){case"<":h="arrow_point",c=c.slice(1);break;case"x":h="arrow_cross",c=c.slice(1);break;case"o":h="arrow_circle",c=c.slice(1)}var g="normal";return c.indexOf("=")!==-1&&(g="thick"),c.indexOf(".")!==-1&&(g="dotted"),{type:h,stroke:g}})(e),r.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=o.type;else{if(r.type!==o.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=o.length,r}return o},lex:{firstGraph:function(){return!!id&&(id=!1,!0)}},exists:jo,makeUniq:ac};var nu=p(3602),oc=p.n(nu),ru=p(4949),Ja=p.n(ru),x3=p(8284),w3=p.n(x3);function J5(t,e,r){var o=.9*(e.width+e.height),u=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],c=Yo(t,o,o,u);return r.intersect=function(h){return Ja().intersect.polygon(r,u,h)},c}function t_(t,e,r){var o=e.height,u=o/4,c=e.width+2*u,h=[{x:u,y:0},{x:c-u,y:0},{x:c,y:-o/2},{x:c-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}],g=Yo(t,c,o,h);return r.intersect=function(w){return Ja().intersect.polygon(r,h,w)},g}function e_(t,e,r){var o=e.width,u=e.height,c=[{x:-u/2,y:0},{x:o,y:0},{x:o,y:-u},{x:-u/2,y:-u},{x:0,y:-u/2}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function n_(t,e,r){var o=e.width,u=e.height,c=[{x:-2*u/6,y:0},{x:o-u/6,y:0},{x:o+2*u/6,y:-u},{x:u/6,y:-u}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function r_(t,e,r){var o=e.width,u=e.height,c=[{x:2*u/6,y:0},{x:o+u/6,y:0},{x:o-2*u/6,y:-u},{x:-u/6,y:-u}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function od(t,e,r){var o=e.width,u=e.height,c=[{x:-2*u/6,y:0},{x:o+2*u/6,y:0},{x:o-u/6,y:-u},{x:u/6,y:-u}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function i_(t,e,r){var o=e.width,u=e.height,c=[{x:u/6,y:0},{x:o-u/6,y:0},{x:o+2*u/6,y:-u},{x:-2*u/6,y:-u}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function k3(t,e,r){var o=e.width,u=e.height,c=[{x:0,y:0},{x:o+u/2,y:0},{x:o,y:-u/2},{x:o+u/2,y:-u},{x:0,y:-u}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function sd(t,e,r){var o=e.height,u=e.width+o/4,c=t.insert("rect",":first-child").attr("rx",o/2).attr("ry",o/2).attr("x",-u/2).attr("y",-o/2).attr("width",u).attr("height",o);return r.intersect=function(h){return Ja().intersect.rect(r,h)},c}function x2(t,e,r){var o=e.width,u=e.height,c=[{x:0,y:0},{x:o,y:0},{x:o,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-u},{x:-8,y:-u},{x:-8,y:0}],h=Yo(t,o,u,c);return r.intersect=function(g){return Ja().intersect.polygon(r,c,g)},h}function w2(t,e,r){var o=e.width,u=o/2,c=u/(2.5+o/50),h=e.height+c,g="M 0,"+c+" a "+u+","+c+" 0,0,0 "+o+" 0 a "+u+","+c+" 0,0,0 "+-o+" 0 l 0,"+h+" a "+u+","+c+" 0,0,0 "+o+" 0 l 0,"+-h,w=t.attr("label-offset-y",c).insert("path",":first-child").attr("d",g).attr("transform","translate("+-o/2+","+-(h/2+c)+")");return r.intersect=function(_){var D=Ja().intersect.rect(r,_),j=D.x-r.x;if(u!=0&&(Math.abs(j)<r.width/2||Math.abs(j)==r.width/2&&Math.abs(D.y-r.y)>r.height/2-c)){var P=c*c*(1-j*j/(u*u));P!=0&&(P=Math.sqrt(P)),P=c-P,_.y-r.y>0&&(P=-P),D.y+=P}return D},w}function Yo(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map((function(u){return u.x+","+u.y})).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const T3=function(t){t.shapes().question=J5,t.shapes().hexagon=t_,t.shapes().stadium=sd,t.shapes().subroutine=x2,t.shapes().cylinder=w2,t.shapes().rect_left_inv_arrow=e_,t.shapes().lean_right=n_,t.shapes().lean_left=r_,t.shapes().trapezoid=od,t.shapes().inv_trapezoid=i_,t.shapes().rect_right_inv_arrow=k3};var E3={};const C3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)E3[e[r]]=t[e[r]]},a_=function(t,e){y.info("Drawing flowchart"),xn.clear(),xn.setGen("gen-1");var r=oc().parser;r.yy=xn;var o,u=Qt().securityLevel;u==="sandbox"&&(o=Ve("#i"+e));var c=Ve(u==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=u==="sandbox"?o.nodes()[0].contentDocument:document;r.parse(t);var g=xn.getDirection();g===void 0&&(g="TD");for(var w,_=Qt().flowchart,D=_.nodeSpacing||50,j=_.rankSpacing||50,P=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:g,nodesep:D,ranksep:j,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),q=xn.getSubGraphs(),ot=q.length-1;ot>=0;ot--)w=q[ot],xn.addVertex(w.id,w.title,"group",void 0,w.classes);var tt=xn.getVertices();y.warn("Get vertices",tt);var gt=xn.getEdges(),ht=0;for(ht=q.length-1;ht>=0;ht--){w=q[ht],b1("cluster").append("text");for(var wt=0;wt<w.nodes.length;wt++)y.warn("Setting subgraph",w.nodes[wt],xn.lookUpDomId(w.nodes[wt]),xn.lookUpDomId(w.id)),P.setParent(xn.lookUpDomId(w.nodes[wt]),xn.lookUpDomId(w.id))}(function(Re,Ke,dn,He,dr){Qt().securityLevel;var Er=He?He.select('[id="'.concat(dn,'"]')):Ve('[id="'.concat(dn,'"]')),On=dr||document;Object.keys(Re).forEach((function(Ur){var fr=Re[Ur],hn="default";fr.classes.length>0&&(hn=fr.classes.join(" "));var Dn,br=Js(fr.styles),Pa=fr.text!==void 0?fr.text:fr.id;if(vi(Qt().flowchart.htmlLabels)){var ka={label:Pa.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(Df){return"<i class='".concat(Df.replace(":"," "),"'></i>")}))};(Dn=w3()(Er,ka).node()).parentNode.removeChild(Dn)}else{var Xn=On.createElementNS("http://www.w3.org/2000/svg","text");Xn.setAttribute("style",br.labelStyle.replace("color:","fill:"));for(var An=Pa.split(rr.lineBreakRegex),no=0;no<An.length;no++){var xo=On.createElementNS("http://www.w3.org/2000/svg","tspan");xo.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),xo.setAttribute("dy","1em"),xo.setAttribute("x","1"),xo.textContent=An[no],Xn.appendChild(xo)}Dn=Xn}var Ho=0,bi="";switch(fr.type){case"round":Ho=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"}y.warn("Adding node",fr.id,fr.domId),Ke.setNode(xn.lookUpDomId(fr.id),{labelType:"svg",labelStyle:br.labelStyle,shape:bi,label:Dn,rx:Ho,ry:Ho,class:hn,style:br.style,id:xn.lookUpDomId(fr.id)})}))})(tt,P,e,c,h),(function(Re,Ke){var dn,He,dr=0;if(Re.defaultStyle!==void 0){var Er=Js(Re.defaultStyle);dn=Er.style,He=Er.labelStyle}Re.forEach((function(On){dr++;var Ur="L-"+On.start+"-"+On.end,fr="LS-"+On.start,hn="LE-"+On.end,Dn={};On.type==="arrow_open"?Dn.arrowhead="none":Dn.arrowhead="normal";var br="",Pa="";if(On.style!==void 0){var ka=Js(On.style);br=ka.style,Pa=ka.labelStyle}else switch(On.stroke){case"normal":br="fill:none",dn!==void 0&&(br=dn),He!==void 0&&(Pa=He);break;case"dotted":br="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":br=" stroke-width: 3.5px;fill:none"}Dn.style=br,Dn.labelStyle=Pa,On.interpolate!==void 0?Dn.curve=Po(On.interpolate,xr):Re.defaultInterpolate!==void 0?Dn.curve=Po(Re.defaultInterpolate,xr):Dn.curve=Po(E3.curve,xr),On.text===void 0?On.style!==void 0&&(Dn.arrowheadStyle="fill: #333"):(Dn.arrowheadStyle="fill: #333",Dn.labelpos="c",vi(Qt().flowchart.htmlLabels)?(Dn.labelType="html",Dn.label='<span id="L-'.concat(Ur,'" class="edgeLabel L-').concat(fr,"' L-").concat(hn,'">').concat(On.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(Xn){return"<i class='".concat(Xn.replace(":"," "),"'></i>")})),"</span>")):(Dn.labelType="text",Dn.label=On.text.replace(rr.lineBreakRegex,`
|
|
68
|
+
`),On.style===void 0&&(Dn.style=Dn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Dn.labelStyle=Dn.labelStyle.replace("color:","fill:"))),Dn.id=Ur,Dn.class=fr+" "+hn,Dn.minlen=On.length||1,Ke.setEdge(xn.lookUpDomId(On.start),xn.lookUpDomId(On.end),Dn,dr)}))})(gt,P);var Tt=new(Ja()).render;T3(Tt),Tt.arrows().none=function(Re,Ke,dn,He){var dr=Re.append("marker").attr("id",Ke).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");Ja().util.applyStyle(dr,dn[He+"Style"])},Tt.arrows().normal=function(Re,Ke){Re.append("marker").attr("id",Ke).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 Pt=c.select('[id="'.concat(e,'"]'));Pt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),y.warn(P);var Gt=c.select("#"+e+" g");Tt(Gt,P),Gt.selectAll("g.node").attr("title",(function(){return xn.getTooltip(this.id)}));var Et=_.diagramPadding,ee=Pt.node().getBBox(),ie=ee.width+2*Et,kt=ee.height+2*Et;Ka(Pt,kt,ie,_.useMaxWidth);var It="".concat(ee.x-Et," ").concat(ee.y-Et," ").concat(ie," ").concat(kt);for(y.debug("viewBox ".concat(It)),Pt.attr("viewBox",It),xn.indexNodes("subGraph"+ht),ht=0;ht<q.length;ht++)if((w=q[ht]).title!=="undefined"){var Ct=h.querySelectorAll("#"+e+' [id="'+xn.lookUpDomId(w.id)+'"] rect'),yt=h.querySelectorAll("#"+e+' [id="'+xn.lookUpDomId(w.id)+'"]'),Ft=Ct[0].x.baseVal.value,bt=Ct[0].y.baseVal.value,_e=Ct[0].width.baseVal.value,we=Ve(yt[0]).select(".label");we.attr("transform","translate(".concat(Ft+_e/2,", ").concat(bt+14,")")),we.attr("id",e+"Text");for(var Ut=0;Ut<w.classes.length;Ut++)yt[0].classList.add(w.classes[Ut])}vi(_.htmlLabels);for(var Te=h.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Ee=0;Ee<Te.length;Ee++){var be=Te[Ee],he=be.getBBox(),Pe=h.createElementNS("http://www.w3.org/2000/svg","rect");Pe.setAttribute("rx",0),Pe.setAttribute("ry",0),Pe.setAttribute("width",he.width),Pe.setAttribute("height",he.height),be.insertBefore(Pe,be.firstChild)}Object.keys(tt).forEach((function(Re){var Ke=tt[Re];if(Ke.link){var dn=c.select("#"+e+' [id="'+xn.lookUpDomId(Re)+'"]');if(dn){var He=h.createElementNS("http://www.w3.org/2000/svg","a");He.setAttributeNS("http://www.w3.org/2000/svg","class",Ke.classes.join(" ")),He.setAttributeNS("http://www.w3.org/2000/svg","href",Ke.link),He.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),u==="sandbox"?He.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Ke.linkTarget&&He.setAttributeNS("http://www.w3.org/2000/svg","target",Ke.linkTarget);var dr=dn.insert((function(){return He}),":first-child"),Er=dn.select(".label-container");Er&&dr.append((function(){return Er.node()}));var On=dn.select(".label");On&&dr.append((function(){return On.node()}))}}}))};var k2={};const T2=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)k2[e[r]]=t[e[r]]},E2=function(t,e){y.info("Drawing flowchart"),xn.clear(),xn.setGen("gen-2");var r=oc().parser;r.yy=xn,r.parse(t);var o=xn.getDirection();o===void 0&&(o="TD");var u,c=Qt().flowchart,h=c.nodeSpacing||50,g=c.rankSpacing||50,w=Qt().securityLevel;w==="sandbox"&&(u=Ve("#i"+e));var _,D=Ve(w==="sandbox"?u.nodes()[0].contentDocument.body:"body"),j=w==="sandbox"?u.nodes()[0].contentDocument:document,P=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:h,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),q=xn.getSubGraphs();y.info("Subgraphs - ",q);for(var ot=q.length-1;ot>=0;ot--)_=q[ot],y.info("Subgraph - ",_),xn.addVertex(_.id,_.title,"group",void 0,_.classes,_.dir);var tt=xn.getVertices(),gt=xn.getEdges();y.info(gt);var ht=0;for(ht=q.length-1;ht>=0;ht--){_=q[ht],b1("cluster").append("text");for(var wt=0;wt<_.nodes.length;wt++)y.info("Setting up subgraphs",_.nodes[wt],_.id),P.setParent(_.nodes[wt],_.id)}(function(bt,_e,we,Ut,Te){var Ee=Ut.select('[id="'.concat(we,'"]'));Object.keys(bt).forEach((function(be){var he=bt[be],Pe="default";he.classes.length>0&&(Pe=he.classes.join(" "));var Re,Ke=Js(he.styles),dn=he.text!==void 0?he.text:he.id;if(vi(Qt().flowchart.htmlLabels)){var He={label:dn.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(Dn){return"<i class='".concat(Dn.replace(":"," "),"'></i>")}))};(Re=w3()(Ee,He).node()).parentNode.removeChild(Re)}else{var dr=Te.createElementNS("http://www.w3.org/2000/svg","text");dr.setAttribute("style",Ke.labelStyle.replace("color:","fill:"));for(var Er=dn.split(rr.lineBreakRegex),On=0;On<Er.length;On++){var Ur=Te.createElementNS("http://www.w3.org/2000/svg","tspan");Ur.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ur.setAttribute("dy","1em"),Ur.setAttribute("x","1"),Ur.textContent=Er[On],dr.appendChild(Ur)}Re=dr}var fr=0,hn="";switch(he.type){case"round":fr=5,hn="rect";break;case"square":case"group":default:hn="rect";break;case"diamond":hn="question";break;case"hexagon":hn="hexagon";break;case"odd":case"odd_right":hn="rect_left_inv_arrow";break;case"lean_right":hn="lean_right";break;case"lean_left":hn="lean_left";break;case"trapezoid":hn="trapezoid";break;case"inv_trapezoid":hn="inv_trapezoid";break;case"circle":hn="circle";break;case"ellipse":hn="ellipse";break;case"stadium":hn="stadium";break;case"subroutine":hn="subroutine";break;case"cylinder":hn="cylinder"}_e.setNode(he.id,{labelStyle:Ke.labelStyle,shape:hn,labelText:dn,rx:fr,ry:fr,class:Pe,style:Ke.style,id:he.id,link:he.link,linkTarget:he.linkTarget,tooltip:xn.getTooltip(he.id)||"",domId:xn.lookUpDomId(he.id),haveCallback:he.haveCallback,width:he.type==="group"?500:void 0,dir:he.dir,type:he.type,props:he.props,padding:Qt().flowchart.padding}),y.info("setNode",{labelStyle:Ke.labelStyle,shape:hn,labelText:dn,rx:fr,ry:fr,class:Pe,style:Ke.style,id:he.id,domId:xn.lookUpDomId(he.id),width:he.type==="group"?500:void 0,type:he.type,dir:he.dir,props:he.props,padding:Qt().flowchart.padding})}))})(tt,P,e,D,j),(function(bt,_e){y.info("abc78 edges = ",bt);var we,Ut,Te=0,Ee={};if(bt.defaultStyle!==void 0){var be=Js(bt.defaultStyle);we=be.style,Ut=be.labelStyle}bt.forEach((function(he){Te++;var Pe="L-"+he.start+"-"+he.end;Ee[Pe]===void 0?(Ee[Pe]=0,y.info("abc78 new entry",Pe,Ee[Pe])):(Ee[Pe]++,y.info("abc78 new entry",Pe,Ee[Pe]));var Re=Pe+"-"+Ee[Pe];y.info("abc78 new link id to be used is",Pe,Re,Ee[Pe]);var Ke="LS-"+he.start,dn="LE-"+he.end,He={style:"",labelStyle:""};switch(He.minlen=he.length||1,he.type==="arrow_open"?He.arrowhead="none":He.arrowhead="normal",He.arrowTypeStart="arrow_open",He.arrowTypeEnd="arrow_open",he.type){case"double_arrow_cross":He.arrowTypeStart="arrow_cross";case"arrow_cross":He.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":He.arrowTypeStart="arrow_point";case"arrow_point":He.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":He.arrowTypeStart="arrow_circle";case"arrow_circle":He.arrowTypeEnd="arrow_circle"}var dr="",Er="";switch(he.stroke){case"normal":dr="fill:none;",we!==void 0&&(dr=we),Ut!==void 0&&(Er=Ut),He.thickness="normal",He.pattern="solid";break;case"dotted":He.thickness="normal",He.pattern="dotted",He.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":He.thickness="thick",He.pattern="solid",He.style="stroke-width: 3.5px;fill:none;"}if(he.style!==void 0){var On=Js(he.style);dr=On.style,Er=On.labelStyle}He.style=He.style+=dr,He.labelStyle=He.labelStyle+=Er,he.interpolate!==void 0?He.curve=Po(he.interpolate,xr):bt.defaultInterpolate!==void 0?He.curve=Po(bt.defaultInterpolate,xr):He.curve=Po(k2.curve,xr),he.text===void 0?he.style!==void 0&&(He.arrowheadStyle="fill: #333"):(He.arrowheadStyle="fill: #333",He.labelpos="c"),He.labelType="text",He.label=he.text.replace(rr.lineBreakRegex,`
|
|
69
|
+
`),he.style===void 0&&(He.style=He.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),He.labelStyle=He.labelStyle.replace("color:","fill:"),He.id=Re,He.classes="flowchart-link "+Ke+" "+dn,_e.setEdge(he.start,he.end,He,Te)}))})(gt,P);var Tt=D.select('[id="'.concat(e,'"]'));Tt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var Pt=D.select("#"+e+" g");f2(Pt,P,["point","circle","cross"],"flowchart",e);var Gt=c.diagramPadding,Et=Tt.node().getBBox(),ee=Et.width+2*Gt,ie=Et.height+2*Gt;if(y.debug("new ViewBox 0 0 ".concat(ee," ").concat(ie),"translate(".concat(Gt-P._label.marginx,", ").concat(Gt-P._label.marginy,")")),Ka(Tt,ie,ee,c.useMaxWidth),Tt.attr("viewBox","0 0 ".concat(ee," ").concat(ie)),Tt.select("g").attr("transform","translate(".concat(Gt-P._label.marginx,", ").concat(Gt-Et.y,")")),xn.indexNodes("subGraph"+ht),!c.htmlLabels)for(var kt=j.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),It=0;It<kt.length;It++){var Ct=kt[It],yt=Ct.getBBox(),Ft=j.createElementNS("http://www.w3.org/2000/svg","rect");Ft.setAttribute("rx",0),Ft.setAttribute("ry",0),Ft.setAttribute("width",yt.width),Ft.setAttribute("height",yt.height),Ct.insertBefore(Ft,Ct.firstChild)}Object.keys(tt).forEach((function(bt){var _e=tt[bt];if(_e.link){var we=Ve("#"+e+' [id="'+bt+'"]');if(we){var Ut=j.createElementNS("http://www.w3.org/2000/svg","a");Ut.setAttributeNS("http://www.w3.org/2000/svg","class",_e.classes.join(" ")),Ut.setAttributeNS("http://www.w3.org/2000/svg","href",_e.link),Ut.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?Ut.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):_e.linkTarget&&Ut.setAttributeNS("http://www.w3.org/2000/svg","target",_e.linkTarget);var Te=we.insert((function(){return Ut}),":first-child"),Ee=we.select(".label-container");Ee&&Te.append((function(){return Ee.node()}));var be=we.select(".label");be&&Te.append((function(){return be.node()}))}}}))};function sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var ud,xf,Ia="",wf="",C2="",kf=[],uc=[],S2={},A2="",M2=[],N2=[],Sl="",S3=["active","done","crit","milestone"],Al=[],Ml=!1,cd=!1,D2=0,O2=function(t,e,r,o){return!(o.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)},B2=function(t,e,r,o){if(r.length&&!t.manualEndTime){var u=d()(t.startTime,e,!0);u.add(1,"d");var c=d()(t.endTime,e,!0),h=o_(u,c,e,r,o);t.endTime=c.toDate(),t.renderEndTime=h}},o_=function(t,e,r,o,u){for(var c=!1,h=null;t<=e;)c||(h=e.toDate()),(c=O2(t,r,o,u))&&e.add(1,"d"),t.add(1,"d");return h},L2=function(t,e,r){r=r.trim();var o=/^after\s+([\d\w- ]+)/.exec(r.trim());if(o!==null){var u=null;if(o[1].split(" ").forEach((function(g){var w=iu(g);w!==void 0&&(u?w.endTime>u.endTime&&(u=w):u=w)})),u)return u.endTime;var c=new Date;return c.setHours(0,0,0,0),c}var h=d()(r,e.trim(),!0);return h.isValid()?h.toDate():(y.debug("Invalid date:"+r),y.debug("With date format:"+e.trim()),new Date)},I2=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()},R2=function(t,e,r,o){o=o||!1,r=r.trim();var u=d()(r,e.trim(),!0);return u.isValid()?(o&&u.add(1,"d"),u.toDate()):I2(/^([\d]+)([wdhms])/.exec(r.trim()),d()(t))},ld=0,cc=function(t){return t===void 0?"task"+(ld+=1):t},Tr=[],to={},iu=function(t){var e=to[t];return Tr[e]},A3=function(){for(var t=function(o){var u=Tr[o],c="";switch(Tr[o].raw.startTime.type){case"prevTaskEnd":var h=iu(u.prevTaskId);u.startTime=h.endTime;break;case"getStartDate":(c=L2(0,Ia,Tr[o].raw.startTime.startData))&&(Tr[o].startTime=c)}return Tr[o].startTime&&(Tr[o].endTime=R2(Tr[o].startTime,Ia,Tr[o].raw.endTime.data,Ml),Tr[o].endTime&&(Tr[o].processed=!0,Tr[o].manualEndTime=d()(Tr[o].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),B2(Tr[o],Ia,uc,kf))),Tr[o].processed},e=!0,r=0;r<Tr.length;r++)t(r),e=e&&Tr[r].processed;return e},F2=function(t,e){t.split(",").forEach((function(r){var o=iu(r);o!==void 0&&o.classes.push(e)}))},M3=function(t,e){Al.push((function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",(function(){e()}))})),Al.push((function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",(function(){e()}))}))};const Nl={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().gantt},clear:function(){M2=[],N2=[],Sl="",Al=[],A2="",ld=0,ud=void 0,xf=void 0,Tr=[],Ia="",wf="",C2="",kf=[],uc=[],Ml=!1,cd=!1,D2=0,S2={}},setDateFormat:function(t){Ia=t},getDateFormat:function(){return Ia},enableInclusiveEndDates:function(){Ml=!0},endDatesAreInclusive:function(){return Ml},enableTopAxis:function(){cd=!0},topAxisEnabled:function(){return cd},setAxisFormat:function(t){wf=t},getAxisFormat:function(){return wf},setTodayMarker:function(t){C2=t},getTodayMarker:function(){return C2},setTitle:function(t){A2=t},getTitle:function(){return A2},addSection:function(t){Sl=t,M2.push(t)},getSections:function(){return M2},getTasks:function(){for(var t=A3(),e=0;!t&&e<10;)t=A3(),e++;return N2=Tr},addTask:function(t,e){var r={section:Sl,type:Sl,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},o=(function(c,h){var g=(h.substr(0,1)===":"?h.substr(1,h.length):h).split(","),w={};Ss(g,w,S3);for(var _=0;_<g.length;_++)g[_]=g[_].trim();switch(g.length){case 1:w.id=cc(),w.startTime={type:"prevTaskEnd",id:c},w.endTime={data:g[0]};break;case 2:w.id=cc(),w.startTime={type:"getStartDate",startData:g[0]},w.endTime={data:g[1]};break;case 3:w.id=cc(g[0]),w.startTime={type:"getStartDate",startData:g[1]},w.endTime={data:g[2]}}return w})(xf,e);r.raw.startTime=o.startTime,r.raw.endTime=o.endTime,r.id=o.id,r.prevTaskId=xf,r.active=o.active,r.done=o.done,r.crit=o.crit,r.milestone=o.milestone,r.order=D2,D2++;var u=Tr.push(r);xf=r.id,to[r.id]=u-1},findTaskById:iu,addTaskOrg:function(t,e){var r={section:Sl,type:Sl,description:t,task:t,classes:[]},o=(function(u,c){var h=(c.substr(0,1)===":"?c.substr(1,c.length):c).split(","),g={};Ss(h,g,S3);for(var w=0;w<h.length;w++)h[w]=h[w].trim();var _="";switch(h.length){case 1:g.id=cc(),g.startTime=u.endTime,_=h[0];break;case 2:g.id=cc(),g.startTime=L2(0,Ia,h[0]),_=h[1];break;case 3:g.id=cc(h[0]),g.startTime=L2(0,Ia,h[1]),_=h[2]}return _&&(g.endTime=R2(g.startTime,Ia,_,Ml),g.manualEndTime=d()(_,"YYYY-MM-DD",!0).isValid(),B2(g,Ia,uc,kf)),g})(ud,e);r.startTime=o.startTime,r.endTime=o.endTime,r.id=o.id,r.active=o.active,r.done=o.done,r.crit=o.crit,r.milestone=o.milestone,ud=r,N2.push(r)},setIncludes:function(t){kf=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return kf},setExcludes:function(t){uc=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return uc},setClickEvent:function(t,e,r){t.split(",").forEach((function(o){(function(u,c,h){if(Qt().securityLevel==="loose"&&c!==void 0){var g=[];if(typeof h=="string"){g=h.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var w=0;w<g.length;w++){var _=g[w].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),g[w]=_}}g.length===0&&g.push(u),iu(u)!==void 0&&M3(u,(function(){var D;Vn.runFunc.apply(Vn,[c].concat((function(j){if(Array.isArray(j))return sc(j)})(D=g)||(function(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)})(D)||(function(j,P){if(j){if(typeof j=="string")return sc(j,P);var q=Object.prototype.toString.call(j).slice(8,-1);return q==="Object"&&j.constructor&&(q=j.constructor.name),q==="Map"||q==="Set"?Array.from(j):q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q)?sc(j,P):void 0}})(D)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()))}))}})(o,e,r)})),F2(t,"clickable")},setLink:function(t,e){var r=e;Qt().securityLevel!=="loose"&&(r=(0,Ju.sanitizeUrl)(e)),t.split(",").forEach((function(o){iu(o)!==void 0&&(M3(o,(function(){window.open(r,"_self")})),S2[o]=r)})),F2(t,"clickable")},getLinks:function(){return S2},bindFunctions:function(t){Al.forEach((function(e){e(t)}))},durationToDate:I2,isInvalidDate:O2};function Ss(t,e,r){for(var o=!0;o;)o=!1,r.forEach((function(u){var c=new RegExp("^\\s*"+u+"\\s*$");t[0].match(c)&&(e[u]=!0,t.shift(1),o=!0)}))}var zo,wa=p(9959),s_=p.n(wa);wa.parser.yy=Nl;const N3=function(t,e){var r=Qt().gantt;wa.parser.yy.clear(),wa.parser.parse(t);var o,u=Qt().securityLevel;u==="sandbox"&&(o=Ve("#i"+e));var c=Ve(u==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=u==="sandbox"?o.nodes()[0].contentDocument:document,g=h.getElementById(e);(zo=g.parentElement.offsetWidth)===void 0&&(zo=1200),r.useWidth!==void 0&&(zo=r.useWidth);var w=wa.parser.yy.getTasks(),_=w.length*(r.barHeight+r.barGap)+2*r.topPadding;g.setAttribute("viewBox","0 0 "+zo+" "+_);for(var D=c.select('[id="'.concat(e,'"]')),j=(function(){return ls.apply(Zy(hb,fb,Rs,oh,ah,Ic,e1,ih,Lc,Cy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)})().domain([I(w,(function(tt){return tt.startTime})),S(w,(function(tt){return tt.endTime}))]).rangeRound([0,zo-r.leftPadding-r.rightPadding]),P=[],q=0;q<w.length;q++)P.push(w[q].type);var ot=P;P=(function(tt){for(var gt={},ht=[],wt=0,Tt=tt.length;wt<Tt;++wt)Object.prototype.hasOwnProperty.call(gt,tt[wt])||(gt[tt[wt]]=!0,ht.push(tt[wt]));return ht})(P),w.sort((function(tt,gt){var ht=tt.startTime,wt=gt.startTime,Tt=0;return ht>wt?Tt=1:ht<wt&&(Tt=-1),Tt})),(function(tt,gt,ht){var wt=r.barHeight,Tt=wt+r.barGap,Pt=r.topPadding,Gt=r.leftPadding;vy().domain([0,P.length]).range(["#00B9FA","#F95002"]).interpolate(Q3),(function(Et,ee,ie,kt,It,Ct,yt,Ft){var bt=Ct.reduce((function(be,he){var Pe=he.startTime;return be?Math.min(be,Pe):Pe}),0),_e=Ct.reduce((function(be,he){var Pe=he.endTime;return be?Math.max(be,Pe):Pe}),0),we=wa.parser.yy.getDateFormat();if(bt&&_e){for(var Ut=[],Te=null,Ee=d()(bt);Ee.valueOf()<=_e;)wa.parser.yy.isInvalidDate(Ee,we,yt,Ft)?Te?Te.end=Ee.clone():Te={start:Ee.clone(),end:Ee.clone()}:Te&&(Ut.push(Te),Te=null),Ee.add(1,"d");D.append("g").selectAll("rect").data(Ut).enter().append("rect").attr("id",(function(be){return"exclude-"+be.start.format("YYYY-MM-DD")})).attr("x",(function(be){return j(be.start)+ie})).attr("y",r.gridLineStartPadding).attr("width",(function(be){var he=be.end.clone().add(1,"day");return j(he)-j(be.start)})).attr("height",It-ee-r.gridLineStartPadding).attr("transform-origin",(function(be,he){return(j(be.start)+ie+.5*(j(be.end)-j(be.start))).toString()+"px "+(he*Et+.5*It).toString()+"px"})).attr("class","exclude-range")}})(Tt,Pt,Gt,0,ht,tt,wa.parser.yy.getExcludes(),wa.parser.yy.getIncludes()),(function(Et,ee,ie,kt){var It,Ct=(It=j,lt(3,It)).tickSize(-kt+ee+r.gridLineStartPadding).tickFormat(D1(wa.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(D.append("g").attr("class","grid").attr("transform","translate("+Et+", "+(kt-50)+")").call(Ct).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Nl.topAxisEnabled()||r.topAxis){var yt=(function(Ft){return lt(1,Ft)})(j).tickSize(-kt+ee+r.gridLineStartPadding).tickFormat(D1(wa.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));D.append("g").attr("class","grid").attr("transform","translate("+Et+", "+ee+")").call(yt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}})(Gt,Pt,0,ht),(function(Et,ee,ie,kt,It,Ct,yt){D.append("g").selectAll("rect").data(Et).enter().append("rect").attr("x",0).attr("y",(function(Ut,Te){return Ut.order*ee+ie-2})).attr("width",(function(){return yt-r.rightPadding/2})).attr("height",ee).attr("class",(function(Ut){for(var Te=0;Te<P.length;Te++)if(Ut.type===P[Te])return"section section"+Te%r.numberSectionStyles;return"section section0"}));var Ft=D.append("g").selectAll("rect").data(Et).enter(),bt=Nl.getLinks();if(Ft.append("rect").attr("id",(function(Ut){return Ut.id})).attr("rx",3).attr("ry",3).attr("x",(function(Ut){return Ut.milestone?j(Ut.startTime)+kt+.5*(j(Ut.endTime)-j(Ut.startTime))-.5*It:j(Ut.startTime)+kt})).attr("y",(function(Ut,Te){return Ut.order*ee+ie})).attr("width",(function(Ut){return Ut.milestone?It:j(Ut.renderEndTime||Ut.endTime)-j(Ut.startTime)})).attr("height",It).attr("transform-origin",(function(Ut,Te){return Te=Ut.order,(j(Ut.startTime)+kt+.5*(j(Ut.endTime)-j(Ut.startTime))).toString()+"px "+(Te*ee+ie+.5*It).toString()+"px"})).attr("class",(function(Ut){var Te="";Ut.classes.length>0&&(Te=Ut.classes.join(" "));for(var Ee=0,be=0;be<P.length;be++)Ut.type===P[be]&&(Ee=be%r.numberSectionStyles);var he="";return Ut.active?Ut.crit?he+=" activeCrit":he=" active":Ut.done?he=Ut.crit?" doneCrit":" done":Ut.crit&&(he+=" crit"),he.length===0&&(he=" task"),Ut.milestone&&(he=" milestone "+he),"task"+(he+=Ee)+" "+Te})),Ft.append("text").attr("id",(function(Ut){return Ut.id+"-text"})).text((function(Ut){return Ut.task})).attr("font-size",r.fontSize).attr("x",(function(Ut){var Te=j(Ut.startTime),Ee=j(Ut.renderEndTime||Ut.endTime);Ut.milestone&&(Te+=.5*(j(Ut.endTime)-j(Ut.startTime))-.5*It),Ut.milestone&&(Ee=Te+It);var be=this.getBBox().width;return be>Ee-Te?Ee+be+1.5*r.leftPadding>yt?Te+kt-5:Ee+kt+5:(Ee-Te)/2+Te+kt})).attr("y",(function(Ut,Te){return Ut.order*ee+r.barHeight/2+(r.fontSize/2-2)+ie})).attr("text-height",It).attr("class",(function(Ut){var Te=j(Ut.startTime),Ee=j(Ut.endTime);Ut.milestone&&(Ee=Te+It);var be=this.getBBox().width,he="";Ut.classes.length>0&&(he=Ut.classes.join(" "));for(var Pe=0,Re=0;Re<P.length;Re++)Ut.type===P[Re]&&(Pe=Re%r.numberSectionStyles);var Ke="";return Ut.active&&(Ke=Ut.crit?"activeCritText"+Pe:"activeText"+Pe),Ut.done?Ke=Ut.crit?Ke+" doneCritText"+Pe:Ke+" doneText"+Pe:Ut.crit&&(Ke=Ke+" critText"+Pe),Ut.milestone&&(Ke+=" milestoneText"),be>Ee-Te?Ee+be+1.5*r.leftPadding>yt?he+" taskTextOutsideLeft taskTextOutside"+Pe+" "+Ke:he+" taskTextOutsideRight taskTextOutside"+Pe+" "+Ke+" width-"+be:he+" taskText taskText"+Pe+" "+Ke+" width-"+be})),Qt().securityLevel==="sandbox"){var _e;_e=Ve("#i"+e),Ve(_e.nodes()[0].contentDocument.body);var we=_e.nodes()[0].contentDocument;Ft.filter((function(Ut){return bt[Ut.id]!==void 0})).each((function(Ut){var Te=we.querySelector("#"+Ut.id),Ee=we.querySelector("#"+Ut.id+"-text"),be=Te.parentNode,he=we.createElement("a");he.setAttribute("xlink:href",bt[Ut.id]),he.setAttribute("target","_top"),be.appendChild(he),he.appendChild(Te),he.appendChild(Ee)}))}})(tt,Tt,Pt,Gt,wt,0,gt),(function(Et,ee){for(var ie=[],kt=0,It=0;It<P.length;It++)ie[It]=[P[It],(Ct=P[It],yt=ot,(function(Ft){for(var bt=Ft.length,_e={};bt;)_e[Ft[--bt]]=(_e[Ft[bt]]||0)+1;return _e})(yt)[Ct]||0)];var Ct,yt;D.append("g").selectAll("text").data(ie).enter().append((function(Ft){var bt=Ft[0].split(rr.lineBreakRegex),_e=-(bt.length-1)/2,we=h.createElementNS("http://www.w3.org/2000/svg","text");we.setAttribute("dy",_e+"em");for(var Ut=0;Ut<bt.length;Ut++){var Te=h.createElementNS("http://www.w3.org/2000/svg","tspan");Te.setAttribute("alignment-baseline","central"),Te.setAttribute("x","10"),Ut>0&&Te.setAttribute("dy","1em"),Te.textContent=bt[Ut],we.appendChild(Te)}return we})).attr("x",10).attr("y",(function(Ft,bt){if(!(bt>0))return Ft[1]*Et/2+ee;for(var _e=0;_e<bt;_e++)return kt+=ie[bt-1][1],Ft[1]*Et/2+kt*Et+ee})).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",(function(Ft){for(var bt=0;bt<P.length;bt++)if(Ft[0]===P[bt])return"sectionTitle sectionTitle"+bt%r.numberSectionStyles;return"sectionTitle"}))})(Tt,Pt),(function(Et,ee,ie,kt){var It=Nl.getTodayMarker();if(It!=="off"){var Ct=D.append("g").attr("class","today"),yt=new Date,Ft=Ct.append("line");Ft.attr("x1",j(yt)+Et).attr("x2",j(yt)+Et).attr("y1",r.titleTopMargin).attr("y2",kt-r.titleTopMargin).attr("class","today"),It!==""&&Ft.attr("style",It.replace(/,/g,";"))}})(Gt,0,0,ht)})(w,zo,_),Ka(D,_,zo,r.useMaxWidth),D.append("text").text(wa.parser.yy.getTitle()).attr("x",zo/2).attr("y",r.titleTopMargin).attr("class","titleText")};var xi={},ca=null,Bi={master:ca},Uo="master",D3="LR",Dl=0;function hd(){return Kg({length:7})}function fd(t,e){y.debug("Entering isfastforwardable:",t.id,e.id);for(var r=0;t.seq<=e.seq&&t!==e&&r<1e3&&(r++,e.parent!=null);){if(Array.isArray(e.parent))return y.debug("In merge commit:",e.parent),fd(t,xi[e.parent[0]])||fd(t,xi[e.parent[1]]);e=xi[e.parent]}return y.debug(t.id,e.id),t.id===e.id}var dd={};function O3(t,e,r){var o=t.indexOf(e);o===-1?t.push(r):t.splice(o,1,r)}function pd(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 o,u,c,h=[r,e.id,e.seq];for(var g in Bi)Bi[g]===e.id&&h.push(g);if(y.debug(h.join(" ")),Array.isArray(e.parent)){var w=xi[e.parent[0]];O3(t,e,w),t.push(xi[e.parent[1]])}else{if(e.parent==null)return;var _=xi[e.parent];O3(t,e,_)}o=t,u=function(D){return D.id},c=Object.create(null),pd(t=o.reduce((function(D,j){var P=u(j);return c[P]||(c[P]=!0,D.push(j)),D}),[]))}var B3=function(){var t=Object.keys(xi).map((function(e){return xi[e]}));return t.forEach((function(e){y.debug(e.id)})),t.sort((function(e,r){return r.seq-e.seq})),t};const au={setDirection:function(t){D3=t},setOptions:function(t){y.debug("options str",t),t=(t=t&&t.trim())||"{}";try{dd=JSON.parse(t)}catch(e){y.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return dd},commit:function(t){var e={id:hd(),message:t,seq:Dl++,parent:ca==null?null:ca.id};ca=e,xi[e.id]=e,Bi[Uo]=e.id,y.debug("in pushCommit "+e.id)},branch:function(t){Bi[t]=ca!=null?ca.id:null,y.debug("in createBranch")},merge:function(t){var e=xi[Bi[Uo]],r=xi[Bi[t]];if((function(u,c){return u.seq>c.seq&&fd(c,u)})(e,r))y.debug("Already merged");else{if(fd(e,r))Bi[Uo]=Bi[t],ca=xi[Bi[Uo]];else{var o={id:hd(),message:"merged branch "+t+" into "+Uo,seq:Dl++,parent:[ca==null?null:ca.id,Bi[t]]};ca=o,xi[o.id]=o,Bi[Uo]=o.id}y.debug(Bi),y.debug("in mergeBranch")}},checkout:function(t){y.debug("in checkout");var e=Bi[Uo=t];ca=xi[e]},reset:function(t){y.debug("in reset",t);var e=t.split(":")[0],r=parseInt(t.split(":")[1]),o=e==="HEAD"?ca:xi[Bi[e]];for(y.debug(o,r);r>0;)if(r--,!(o=xi[o.parent])){var u="Critical error - unique parent commit not found during reset";throw y.error(u),u}ca=o,Bi[Uo]=o.id},prettyPrint:function(){y.debug(xi),pd([B3()[0]])},clear:function(){xi={},Bi={master:ca=null},Uo="master",Dl=0},getBranchesAsObjArray:function(){var t=[];for(var e in Bi)t.push({name:e,commit:xi[Bi[e]]});return t},getBranches:function(){return Bi},getCommits:function(){return xi},getCommitsArray:B3,getCurrentBranch:function(){return Uo},getDirection:function(){return D3},getHead:function(){return ca}};var lc,u_=p(2553),P2=p.n(u_),ou={},Jn={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},L3={};function hc(t,e,r,o){var u=Po(o,vs),c=Jn.branchColors[r%Jn.branchColors.length],h=Mu().x((function(g){return Math.round(g.x)})).y((function(g){return Math.round(g.y)})).curve(u);t.append("svg:path").attr("d",h(e)).style("stroke",c).style("stroke-width",Jn.lineStrokeWidth).style("fill","none")}function I3(t,e){e=e||t.node().getBBox();var r=t.node().getCTM();return{left:r.e+e.x*r.a,top:r.f+e.y*r.d,width:e.width,height:e.height}}function gd(t,e,r,o,u){y.debug("svgDrawLineForCommits: ",e,r);var c=I3(t.select("#node-"+e+" circle")),h=I3(t.select("#node-"+r+" circle"));switch(o){case"LR":if(c.left-h.left>Jn.nodeSpacing){var g={x:c.left-Jn.nodeSpacing,y:h.top+h.height/2};hc(t,[g,{x:h.left+h.width,y:h.top+h.height/2}],u,"linear"),hc(t,[{x:c.left,y:c.top+c.height/2},{x:c.left-Jn.nodeSpacing/2,y:c.top+c.height/2},{x:c.left-Jn.nodeSpacing/2,y:g.y},g],u)}else hc(t,[{x:c.left,y:c.top+c.height/2},{x:c.left-Jn.nodeSpacing/2,y:c.top+c.height/2},{x:c.left-Jn.nodeSpacing/2,y:h.top+h.height/2},{x:h.left+h.width,y:h.top+h.height/2}],u);break;case"BT":if(h.top-c.top>Jn.nodeSpacing){var w={x:h.left+h.width/2,y:c.top+c.height+Jn.nodeSpacing};hc(t,[w,{x:h.left+h.width/2,y:h.top}],u,"linear"),hc(t,[{x:c.left+c.width/2,y:c.top+c.height},{x:c.left+c.width/2,y:c.top+c.height+Jn.nodeSpacing/2},{x:h.left+h.width/2,y:w.y-Jn.nodeSpacing/2},w],u)}else hc(t,[{x:c.left+c.width/2,y:c.top+c.height},{x:c.left+c.width/2,y:c.top+Jn.nodeSpacing/2},{x:h.left+h.width/2,y:h.top-Jn.nodeSpacing/2},{x:h.left+h.width/2,y:h.top}],u)}}function R3(t,e){return t.select(e).node().cloneNode(!0)}function yd(t,e,r,o){var u,c=Object.keys(ou).length;if(typeof e=="string"){var h=0;do{if(h++,u=ou[e],y.debug("in renderCommitHistory",u.id,u.seq),t.select("#node-"+e).size()>0)return;t.append((function(){return R3(t,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+u.id})).attr("transform",(function(){switch(o){case"LR":return"translate("+(u.seq*Jn.nodeSpacing+Jn.leftMargin)+", "+lc*Jn.branchOffset+")";case"BT":return"translate("+(lc*Jn.branchOffset+Jn.leftMargin)+", "+(c-u.seq)*Jn.nodeSpacing+")"}})).attr("fill",Jn.nodeFillColor).attr("stroke",Jn.nodeStrokeColor).attr("stroke-width",Jn.nodeStrokeWidth);var g=void 0;for(var w in r)if(r[w].commit===u){g=r[w];break}g&&(y.debug("found branch ",g.name),t.select("#node-"+u.id+" p").append("xhtml:span").attr("class","branch-label").text(g.name+", ")),t.select("#node-"+u.id+" p").append("xhtml:span").attr("class","commit-id").text(u.id),u.message!==""&&o==="BT"&&t.select("#node-"+u.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+u.message),e=u.parent}while(e&&ou[e]&&h<1e3)}Array.isArray(e)&&(y.debug("found merge commmit",e),yd(t,e[0],r,o),lc++,yd(t,e[1],r,o),lc--)}function md(t,e,r,o){o=o||0;for(var u=0;e.seq>0&&!e.lineDrawn&&u<1e3;)u++,typeof e.parent=="string"?(gd(t,e.id,e.parent,r,o),e.lineDrawn=!0,e=ou[e.parent]):Array.isArray(e.parent)&&(gd(t,e.id,e.parent[0],r,o),gd(t,e.id,e.parent[1],r,o+1),md(t,ou[e.parent[1]],r,o+1),e.lineDrawn=!0,e=ou[e.parent[0]])}const Tf=function(t){L3=t};var j2="",Y2=!1;const F3={setMessage:function(t){y.debug("Setting message to: "+t),j2=t},getMessage:function(){return j2},setInfo:function(t){Y2=t},getInfo:function(){return Y2}};var c_=p(6765),z2=p.n(c_);const U2=function(t){Object.keys(t).forEach((function(e){t[e]}))};var l_=p(7062),Ef=p.n(l_),vd={},q2="",H2=!1;const su={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().pie},addSection:function(t,e){vd[t]===void 0&&(vd[t]=e,y.debug("Added new section :",t))},getSections:function(){return vd},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){vd={},q2="",H2=!1},setTitle:function(t){q2=t},getTitle:function(){return q2},setShowData:function(t){H2=t},getShowData:function(){return H2}};var eo,As=Qt();const h_=function(t,e){try{As=Qt();var r=Ef().parser;r.yy=su,y.debug(`Rendering info diagram
|
|
71
|
+
`+t);var o,u=Qt().securityLevel;u==="sandbox"&&(o=Ve("#i"+e));var c=Ve(u==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=u==="sandbox"?o.nodes()[0].contentDocument:document;r.yy.clear(),r.parse(t),y.debug("Parsed info diagram");var g=h.getElementById(e);(eo=g.parentElement.offsetWidth)===void 0&&(eo=1200),As.useWidth!==void 0&&(eo=As.useWidth),As.pie.useWidth!==void 0&&(eo=As.pie.useWidth);var w=c.select("#"+e);Ka(w,450,eo,As.pie.useMaxWidth),g.setAttribute("viewBox","0 0 "+eo+" 450");var _=Math.min(eo,450)/2-40,D=w.append("g").attr("transform","translate("+eo/2+",225)"),j=su.getSections(),P=0;Object.keys(j).forEach((function(Pt){P+=j[Pt]}));var q=As.themeVariables,ot=[q.pie1,q.pie2,q.pie3,q.pie4,q.pie5,q.pie6,q.pie7,q.pie8,q.pie9,q.pie10,q.pie11,q.pie12],tt=Ls().range(ot),gt=(function(){var Pt=Hc,Gt=hm,Et=null,ee=fi(0),ie=fi(E1),kt=fi(0);function It(Ct){var yt,Ft,bt,_e,we,Ut=(Ct=ni(Ct)).length,Te=0,Ee=new Array(Ut),be=new Array(Ut),he=+ee.apply(this,arguments),Pe=Math.min(E1,Math.max(-E1,ie.apply(this,arguments)-he)),Re=Math.min(Math.abs(Pe)/Ut,kt.apply(this,arguments)),Ke=Re*(Pe<0?-1:1);for(yt=0;yt<Ut;++yt)(we=be[Ee[yt]=yt]=+Pt(Ct[yt],yt,Ct))>0&&(Te+=we);for(Gt!=null?Ee.sort((function(dn,He){return Gt(be[dn],be[He])})):Et!=null&&Ee.sort((function(dn,He){return Et(Ct[dn],Ct[He])})),yt=0,bt=Te?(Pe-Ut*Ke)/Te:0;yt<Ut;++yt,he=_e)Ft=Ee[yt],_e=he+((we=be[Ft])>0?we*bt:0)+Ke,be[Ft]={data:Ct[Ft],index:yt,value:we,startAngle:he,endAngle:_e,padAngle:Re};return be}return It.value=function(Ct){return arguments.length?(Pt=typeof Ct=="function"?Ct:fi(+Ct),It):Pt},It.sortValues=function(Ct){return arguments.length?(Gt=Ct,Et=null,It):Gt},It.sort=function(Ct){return arguments.length?(Et=Ct,Gt=null,It):Et},It.startAngle=function(Ct){return arguments.length?(ee=typeof Ct=="function"?Ct:fi(+Ct),It):ee},It.endAngle=function(Ct){return arguments.length?(ie=typeof Ct=="function"?Ct:fi(+Ct),It):ie},It.padAngle=function(Ct){return arguments.length?(kt=typeof Ct=="function"?Ct:fi(+Ct),It):kt},It})().value((function(Pt){return Pt[1]})),ht=gt(Object.entries(j)),wt=qc().innerRadius(0).outerRadius(_);D.selectAll("mySlices").data(ht).enter().append("path").attr("d",wt).attr("fill",(function(Pt){return tt(Pt.data[0])})).attr("class","pieCircle"),D.selectAll("mySlices").data(ht).enter().append("text").text((function(Pt){return(Pt.data[1]/P*100).toFixed(0)+"%"})).attr("transform",(function(Pt){return"translate("+wt.centroid(Pt)+")"})).style("text-anchor","middle").attr("class","slice"),D.append("text").text(r.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Tt=D.selectAll(".legend").data(tt.domain()).enter().append("g").attr("class","legend").attr("transform",(function(Pt,Gt){return"translate(216,"+(22*Gt-22*tt.domain().length/2)+")"}));Tt.append("rect").attr("width",18).attr("height",18).style("fill",tt).style("stroke",tt),Tt.data(ht).append("text").attr("x",22).attr("y",14).text((function(Pt){return r.yy.getShowData()||As.showData||As.pie.showData?Pt.data[0]+" ["+Pt.data[1]+"]":Pt.data[0]}))}catch(Pt){y.error("Error while rendering info diagram"),y.error(Pt)}};var bd=p(3176),f_=p.n(bd),$2=[],Ra={},Ol={},uu={},Bl={};const fc={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){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().req},addRequirement:function(t,e){return Ol[t]===void 0&&(Ol[t]={name:t,type:e,id:Ra.id,text:Ra.text,risk:Ra.risk,verifyMethod:Ra.verifyMethod}),Ra={},Ol[t]},getRequirements:function(){return Ol},setNewReqId:function(t){Ra!==void 0&&(Ra.id=t)},setNewReqText:function(t){Ra!==void 0&&(Ra.text=t)},setNewReqRisk:function(t){Ra!==void 0&&(Ra.risk=t)},setNewReqVerifyMethod:function(t){Ra!==void 0&&(Ra.verifyMethod=t)},addElement:function(t){return Bl[t]===void 0&&(Bl[t]={name:t,type:uu.type,docRef:uu.docRef},y.info("Added new requirement: ",t)),uu={},Bl[t]},getElements:function(){return Bl},setNewElementType:function(t){uu!==void 0&&(uu.type=t)},setNewElementDocRef:function(t){uu!==void 0&&(uu.docRef=t)},addRelationship:function(t,e,r){$2.push({type:t,src:e,dst:r})},getRelationships:function(){return $2},clear:function(){$2=[],Ra={},Ol={},uu={},Bl={}}};var W2={CONTAINS:"contains",ARROW:"arrow"};const d_=W2;var wi={},V2=0,P3=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")},j3=function(t,e,r){var o=wi.rect_min_width/2,u=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",o).attr("y",wi.rect_padding).attr("dominant-baseline","hanging"),c=0;r.forEach((function(g){c==0?u.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",.75*wi.line_height).text(g),c++}));var h=1.5*wi.rect_padding+c*wi.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",wi.rect_min_width).attr("y1",h).attr("y2",h),{titleNode:u,y:h}},Y3=function(t,e,r,o){var u=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",wi.rect_padding).attr("y",o).attr("dominant-baseline","hanging"),c=0,h=[];return r.forEach((function(g){for(var w=g.length;w>30&&c<3;){var _=g.substring(0,30);w=(g=g.substring(30,g.length)).length,h[h.length]=_,c++}if(c==3){var D=h[h.length-1];h[h.length-1]=D.substring(0,D.length-4)+"..."}else h[h.length]=g;c=0})),h.forEach((function(g){u.append("tspan").attr("x",wi.rect_padding).attr("dy",wi.line_height).text(g)})),u},Ll=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const z3=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)wi[e[r]]=t[e[r]]},U3=function(t,e){bd.parser.yy=fc,bd.parser.yy.clear(),bd.parser.parse(t);var r,o=Qt().securityLevel;o==="sandbox"&&(r=Ve("#i"+e));var u=Ve(o==="sandbox"?r.nodes()[0].contentDocument.body:"body"),c=(o==="sandbox"&&r.nodes()[0].contentDocument,u.select("[id='".concat(e,"']")));(function(ot,tt){var gt=ot.append("defs").append("marker").attr("id",W2.CONTAINS+"_line_ending").attr("refX",0).attr("refY",tt.line_height/2).attr("markerWidth",tt.line_height).attr("markerHeight",tt.line_height).attr("orient","auto").append("g");gt.append("circle").attr("cx",tt.line_height/2).attr("cy",tt.line_height/2).attr("r",tt.line_height/2).attr("fill","none"),gt.append("line").attr("x1",0).attr("x2",tt.line_height).attr("y1",tt.line_height/2).attr("y2",tt.line_height/2).attr("stroke-width",1),gt.append("line").attr("y1",0).attr("y2",tt.line_height).attr("x1",tt.line_height/2).attr("x2",tt.line_height/2).attr("stroke-width",1),ot.append("defs").append("marker").attr("id",W2.ARROW+"_line_ending").attr("refX",tt.line_height).attr("refY",.5*tt.line_height).attr("markerWidth",tt.line_height).attr("markerHeight",tt.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
72
|
+
L`.concat(tt.line_height,",").concat(tt.line_height/2,`
|
|
73
|
+
M`).concat(tt.line_height,",").concat(tt.line_height/2,`
|
|
74
|
+
L0,`).concat(tt.line_height)).attr("stroke-width",1)})(c,wi);var h=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{}})),g=fc.getRequirements(),w=fc.getElements(),_=fc.getRelationships();(function(ot,tt,gt){Object.keys(ot).forEach((function(ht){var wt=ot[ht];ht=Ll(ht),y.info("Added new requirement: ",ht);var Tt=gt.append("g").attr("id",ht),Pt=P3(Tt,"req-"+ht),Gt=j3(Tt,ht+"_title",["<<".concat(wt.type,">>"),"".concat(wt.name)]);Y3(Tt,ht+"_body",["Id: ".concat(wt.id),"Text: ".concat(wt.text),"Risk: ".concat(wt.risk),"Verification: ".concat(wt.verifyMethod)],Gt.y);var Et=Pt.node().getBBox();tt.setNode(ht,{width:Et.width,height:Et.height,shape:"rect",id:ht})}))})(g,h,c),(function(ot,tt,gt){Object.keys(ot).forEach((function(ht){var wt=ot[ht],Tt=Ll(ht),Pt=gt.append("g").attr("id",Tt),Gt="element-"+Tt,Et=P3(Pt,Gt),ee=j3(Pt,Gt+"_title",["<<Element>>","".concat(ht)]);Y3(Pt,Gt+"_body",["Type: ".concat(wt.type||"Not Specified"),"Doc Ref: ".concat(wt.docRef||"None")],ee.y);var ie=Et.node().getBBox();tt.setNode(Tt,{width:ie.width,height:ie.height,shape:"rect",id:Tt})}))})(w,h,c),(function(ot,tt){ot.forEach((function(gt){var ht=Ll(gt.src),wt=Ll(gt.dst);tt.setEdge(ht,wt,{relationship:gt})}))})(_,h),_l().layout(h),(function(ot,tt){tt.nodes().forEach((function(gt){gt!==void 0&&tt.node(gt)!==void 0&&(ot.select("#"+gt),ot.select("#"+gt).attr("transform","translate("+(tt.node(gt).x-tt.node(gt).width/2)+","+(tt.node(gt).y-tt.node(gt).height/2)+" )"))}))})(c,h),_.forEach((function(ot){(function(tt,gt,ht,wt){var Tt=ht.edge(Ll(gt.src),Ll(gt.dst)),Pt=Mu().x((function(Et){return Et.x})).y((function(Et){return Et.y})),Gt=tt.insert("path","#"+wt).attr("class","er relationshipLine").attr("d",Pt(Tt.points)).attr("fill","none");gt.type==fc.Relationships.CONTAINS?Gt.attr("marker-start","url("+rr.getUrl(wi.arrowMarkerAbsolute)+"#"+gt.type+"_line_ending)"):(Gt.attr("stroke-dasharray","10,7"),Gt.attr("marker-end","url("+rr.getUrl(wi.arrowMarkerAbsolute)+"#"+d_.ARROW+"_line_ending)")),(function(Et,ee,ie,kt){var It=ee.node().getTotalLength(),Ct=ee.node().getPointAtLength(.5*It),yt="rel"+V2;V2++;var Ft=Et.append("text").attr("class","req relationshipLabel").attr("id",yt).attr("x",Ct.x).attr("y",Ct.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(kt).node().getBBox();Et.insert("rect","#"+yt).attr("class","req reqLabelBox").attr("x",Ct.x-Ft.width/2).attr("y",Ct.y-Ft.height/2).attr("width",Ft.width).attr("height",Ft.height).attr("fill","white").attr("fill-opacity","85%")})(tt,Gt,0,"<<".concat(gt.type,">>"))})(c,ot,h,e)}));var D=wi.rect_padding,j=c.node().getBBox(),P=j.width+2*D,q=j.height+2*D;Ka(c,q,P,wi.useMaxWidth),c.attr("viewBox","".concat(j.x-D," ").concat(j.y-D," ").concat(P," ").concat(q))};var en=p(6876),p_=p.n(en),dc=void 0,qo={},Fa=[],Il="",G2=!1,X2=!1,Rl=!1,pc=function(t,e,r,o){var u=qo[t];u&&e===u.name&&r==null||(r!=null&&r.text!=null||(r={text:e,wrap:null,type:o}),o!=null&&r.text!=null||(r={text:e,wrap:null,type:o}),qo[t]={name:e,description:r.text,wrap:r.wrap===void 0&&gc()||!!r.wrap,prevActor:dc,links:{},properties:{},actorCnt:null,rectData:null,type:o||"participant"},dc&&qo[dc]&&(qo[dc].nextActor=t),dc=t)},_d=function(t){var e,r=0;for(e=0;e<Fa.length;e++)Fa[e].type===Fl.ACTIVE_START&&Fa[e].from.actor===t&&r++,Fa[e].type===Fl.ACTIVE_END&&Fa[e].from.actor===t&&r--;return r},Ms=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},o=arguments.length>3?arguments[3]:void 0;if(o===Fl.ACTIVE_END){var u=_d(t.actor);if(u<1){var c=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw c.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}}return Fa.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&gc()||!!r.wrap,type:o}),!0},Cf=function(t){return qo[t]},gc=function(){return Rl},Fl={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},q3=function(t,e,r){r.text,r.wrap===void 0&&gc()||r.wrap;var o=[].concat(t,t);Fa.push({from:o[0],to:o[1],message:r.text,wrap:r.wrap===void 0&&gc()||!!r.wrap,type:Fl.NOTE,placement:e})},xd=function(t,e){var r=Cf(t);try{var o=tc(e.text,Qt());o=(o=o.replace(/&/g,"&")).replace(/=/g,"="),wd(r,JSON.parse(o))}catch(u){y.error("error while parsing actor link text",u)}};function wd(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var H3=function(t,e){var r=Cf(t);try{var o=tc(e.text,Qt());yc(r,JSON.parse(o))}catch(u){y.error("error while parsing actor properties text",u)}};function yc(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var mc=function(t,e){var r=Cf(t),o=document.getElementById(e.text);try{var u=o.innerHTML,c=JSON.parse(u);c.properties&&yc(r,c.properties),c.links&&wd(r,c.links)}catch(h){y.error("error while parsing actor details text",h)}},Z2=function(t){Il=t.text,G2=t.wrap===void 0&&gc()||!!t.wrap};const Q2={addActor:pc,addMessage:function(t,e,r,o){Fa.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&gc()||!!r.wrap,answer:o})},addSignal:Ms,addLinks:xd,addDetails:mc,addProperties:H3,autoWrap:gc,setWrap:function(t){Rl=t},enableSequenceNumbers:function(){X2=!0},showSequenceNumbers:function(){return X2},getMessages:function(){return Fa},getActors:function(){return qo},getActor:Cf,getActorKeys:function(){return Object.keys(qo)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return Il},parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().sequence},getTitleWrapped:function(){return G2},clear:function(){qo={},Fa=[]},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 y.debug("parseMessage:",r),r},LINETYPE:Fl,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:q3,setTitle:Z2,apply:function t(e){if(e instanceof Array)e.forEach((function(r){t(r)}));else switch(e.type){case"addParticipant":pc(e.actor,e.actor,e.description,"participant");break;case"addActor":pc(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":Ms(e.actor,void 0,void 0,e.signalType);break;case"addNote":q3(e.actor,e.placement,e.text);break;case"addLinks":xd(e.actor,e.text);break;case"addALink":(function(r,o){var u=Cf(r);try{var c={},h=tc(o.text,Qt()),g=h.indexOf("@"),w=(h=(h=h.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,g-1).trim(),_=h.slice(g+1).trim();c[w]=_,wd(u,c)}catch(D){y.error("error while parsing actor link text",D)}})(e.actor,e.text);break;case"addProperties":H3(e.actor,e.text);break;case"addDetails":mc(e.actor,e.text);break;case"addMessage":Ms(e.from,e.to,e.msg,e.signalType);break;case"loopStart":Ms(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":Ms(void 0,void 0,void 0,e.signalType);break;case"rectStart":Ms(void 0,void 0,e.color,e.signalType);break;case"optStart":Ms(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":Ms(void 0,void 0,e.altText,e.signalType);break;case"setTitle":Z2(e.text);break;case"parStart":case"and":Ms(void 0,void 0,e.parText,e.signalType)}}};var kd=[],Pl=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},$3=function(t,e){var r;r=function(){var o=document.querySelectorAll(t);o.length!==0&&(o[0].addEventListener("mouseover",(function(){y_("actor"+e+"_popup")})),o[0].addEventListener("mouseout",(function(){jl("actor"+e+"_popup")})))},kd.push(r)},g_=function(t,e,r,o){var u=t.append("image");u.attr("x",e),u.attr("y",r);var c=(0,Ju.sanitizeUrl)(o);u.attr("xlink:href",c)},W3=function(t,e,r,o){var u=t.append("use");u.attr("x",e),u.attr("y",r);var c=(0,Ju.sanitizeUrl)(o);u.attr("xlink:href","#"+c)},y_=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},jl=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},ea=function(t,e){var r=0,o=0,u=e.text.split(rr.lineBreakRegex),c=[],h=0,g=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":g=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":g=function(){return Math.round(e.y+(r+o+e.textMargin)/2)};break;case"bottom":case"end":g=function(){return Math.round(e.y+(r+o+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<u.length;w++){var _=u[w];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(h=w*e.fontSize);var D=t.append("text");if(D.attr("x",e.x),D.attr("y",g()),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):h!==0&&D.attr("dy",h),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&&(o+=(D._groups||D)[0][0].getBBox().height,r=o),c.push(D)}return c},Sf=function(t,e){var r=t.append("polygon");return r.attr("points",(function(o,u,c,h,g){return o+","+u+" "+(o+c)+","+u+" "+(o+c)+","+(u+h-7)+" "+(o+c-8.4)+","+(u+h)+" "+o+","+(u+h)})(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,ea(t,e),r},Xr=-1,Lr=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},m_=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}},v_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Td=(function(){function t(u,c,h,g,w,_,D){o(c.append("text").attr("x",h+w/2).attr("y",g+_/2+5).style("text-anchor","middle").text(u),D)}function e(u,c,h,g,w,_,D,j){for(var P=j.actorFontSize,q=j.actorFontFamily,ot=j.actorFontWeight,tt=u.split(rr.lineBreakRegex),gt=0;gt<tt.length;gt++){var ht=gt*P-P*(tt.length-1)/2,wt=c.append("text").attr("x",h+w/2).attr("y",g).style("text-anchor","middle").style("font-size",P).style("font-weight",ot).style("font-family",q);wt.append("tspan").attr("x",h+w/2).attr("dy",ht).text(tt[gt]),wt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(wt,D)}}function r(u,c,h,g,w,_,D,j){var P=c.append("switch"),q=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",w).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");q.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(u),e(u,P,h,g,w,_,D,j),o(q,D)}function o(u,c){for(var h in c)c.hasOwnProperty(h)&&u.attr(h,c[h])}return function(u){return u.textPlacement==="fo"?r:u.textPlacement==="old"?t:e}})(),b_=(function(){function t(u,c,h,g,w,_,D){o(c.append("text").attr("x",h).attr("y",g).style("text-anchor","start").text(u),D)}function e(u,c,h,g,w,_,D,j){for(var P=j.actorFontSize,q=j.actorFontFamily,ot=j.actorFontWeight,tt=u.split(rr.lineBreakRegex),gt=0;gt<tt.length;gt++){var ht=gt*P-P*(tt.length-1)/2,wt=c.append("text").attr("x",h).attr("y",g).style("text-anchor","start").style("font-size",P).style("font-weight",ot).style("font-family",q);wt.append("tspan").attr("x",h).attr("dy",ht).text(tt[gt]),wt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(wt,D)}}function r(u,c,h,g,w,_,D,j){var P=c.append("switch"),q=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",w).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");q.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(u),e(u,P,h,g,0,_,D,j),o(q,D)}function o(u,c){for(var h in c)c.hasOwnProperty(h)&&u.attr(h,c[h])}return function(u){return u.textPlacement==="fo"?r:u.textPlacement==="old"?t:e}})();const Ed=Pl,__=function(t,e,r){switch(e.type){case"actor":return(function(o,u,c){var h=u.x+u.width/2;u.y===0&&(Xr++,o.append("line").attr("id","actor"+Xr).attr("x1",h).attr("y1",80).attr("x2",h).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var g=o.append("g");g.attr("class","actor-man");var w={x:0,y:0,fill:"#EDF2AE",width:100,height:100,rx:0,ry:0};w.x=u.x,w.y=u.y,w.fill="#eaeaea",w.width=u.width,w.height=u.height,w.class="actor",w.rx=3,w.ry=3,g.append("line").attr("id","actor-man-torso"+Xr).attr("x1",h).attr("y1",u.y+25).attr("x2",h).attr("y2",u.y+45),g.append("line").attr("id","actor-man-arms"+Xr).attr("x1",h-18).attr("y1",u.y+33).attr("x2",h+18).attr("y2",u.y+33),g.append("line").attr("x1",h-18).attr("y1",u.y+60).attr("x2",h).attr("y2",u.y+45),g.append("line").attr("x1",h).attr("y1",u.y+45).attr("x2",h+16).attr("y2",u.y+60);var _=g.append("circle");_.attr("cx",u.x+u.width/2),_.attr("cy",u.y+10),_.attr("r",15),_.attr("width",u.width),_.attr("height",u.height);var D=g.node().getBBox();return u.height=D.height,Td(c)(u.description,g,w.x,w.y+35,w.width,w.height,{class:"actor"},c),u.height})(t,e,r);case"participant":return(function(o,u,c){var h=u.x+u.width/2,g=o.append("g"),w=g;u.y===0&&(Xr++,w.append("line").attr("id","actor"+Xr).attr("x1",h).attr("y1",5).attr("x2",h).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),w=g.append("g"),u.actorCnt=Xr,u.links!=null&&(w.attr("id","root-"+Xr),$3("#root-"+Xr,Xr)));var _={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},D="actor";u.properties!=null&&u.properties.class?D=u.properties.class:_.fill="#eaeaea",_.x=u.x,_.y=u.y,_.width=u.width,_.height=u.height,_.class=D,_.rx=3,_.ry=3;var j=Pl(w,_);if(u.rectData=_,u.properties!=null&&u.properties.icon){var P=u.properties.icon.trim();P.charAt(0)==="@"?W3(w,_.x+_.width-20,_.y+10,P.substr(1)):g_(w,_.x+_.width-20,_.y+10,P)}Td(c)(u.description,w,_.x,_.y,_.width,_.height,{class:"actor"},c);var q=u.height;if(j.node){var ot=j.node().getBBox();u.height=ot.height,q=ot.height}return q})(t,e,r)}},Ns=function(t,e,r,o,u){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var c=e.links,h=e.actorCnt,g=e.rectData,w="none";u&&(w="block !important");var _=t.append("g");_.attr("id","actor"+h+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",w),$3("#actor"+h+"_popup",h);var D="";g.class!==void 0&&(D=" "+g.class);var j=g.width>r?g.width:r,P=_.append("rect");if(P.attr("class","actorPopupMenuPanel"+D),P.attr("x",g.x),P.attr("y",g.height),P.attr("fill",g.fill),P.attr("stroke",g.stroke),P.attr("width",j),P.attr("height",g.height),P.attr("rx",g.rx),P.attr("ry",g.ry),c!=null){var q=20;for(var ot in c){var tt=_.append("a"),gt=(0,Ju.sanitizeUrl)(c[ot]);tt.attr("xlink:href",gt),tt.attr("target","_blank"),b_(o)(ot,tt,g.x+10,g.height+q,j,20,{class:"actor"},o),q+=30}}return P.attr("height",q),{height:g.height+q,width:j}},Cd=function(t){return t.append("g")},V3=function(t,e,r,o,u){var c={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,height:100,rx:0,ry:0},h=e.anchored;c.x=e.startx,c.y=e.starty,c.class="activation"+u%3,c.width=e.stopx-e.startx,c.height=r-e.starty,Pl(h,c)},Yl=function(t,e,r,o){var u=o.boxMargin,c=o.boxTextMargin,h=o.labelBoxHeight,g=o.labelBoxWidth,w=o.messageFontFamily,_=o.messageFontSize,D=o.messageFontWeight,j=t.append("g"),P=function(tt,gt,ht,wt){return j.append("line").attr("x1",tt).attr("y1",gt).attr("x2",ht).attr("y2",wt).attr("class","loopLine")};P(e.startx,e.starty,e.stopx,e.starty),P(e.stopx,e.starty,e.stopx,e.stopy),P(e.startx,e.stopy,e.stopx,e.stopy),P(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach((function(tt){P(e.startx,tt.y,e.stopx,tt.y).style("stroke-dasharray","3, 3")}));var q={x:0,y:0,fill:void 0,anchor:void 0,width:void 0,height:void 0,textMargin:0,tspan:!0,valign:void 0};q.text=r,q.x=e.startx,q.y=e.starty,q.fontFamily=w,q.fontSize=_,q.fontWeight=D,q.anchor="middle",q.valign="middle",q.tspan=!1,q.width=g||50,q.height=h||20,q.textMargin=c,q.class="labelText",Sf(j,q),(q={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,q.x=e.startx+g/2+(e.stopx-e.startx)/2,q.y=e.starty+u+c,q.anchor="middle",q.valign="middle",q.textMargin=c,q.class="loopText",q.fontFamily=w,q.fontSize=_,q.fontWeight=D,q.wrap=!0;var ot=ea(j,q);return e.sectionTitles!==void 0&&e.sectionTitles.forEach((function(tt,gt){if(tt.message){q.text=tt.message,q.x=e.startx+(e.stopx-e.startx)/2,q.y=e.sections[gt].y+u+c,q.class="loopText",q.anchor="middle",q.valign="middle",q.tspan=!1,q.fontFamily=w,q.fontSize=_,q.fontWeight=D,q.wrap=e.wrap,ot=ea(j,q);var ht=Math.round(ot.map((function(wt){return(wt._groups||wt)[0][0].getBBox().height})).reduce((function(wt,Tt){return wt+Tt})));e.sections[gt].height+=ht-(u+c)}})),e.height=Math.round(e.stopy-e.starty),j},Af=function(t,e){Pl(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},x_=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")},w_=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")},G3=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)},k_=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")},T_=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")},E_=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")},C_=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")},n=m_,i=v_;Ju.sanitizeUrl,en.parser.yy=Q2;var a={},s={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,A(en.parser.yy.getConfig())},updateVal:function(t,e,r,o){t[e]===void 0?t[e]=r:t[e]=o(r,t[e])},updateBounds:function(t,e,r,o){var u=this,c=0;function h(g){return function(w){c++;var _=u.sequenceItems.length-c+1;u.updateVal(w,"starty",e-_*a.boxMargin,Math.min),u.updateVal(w,"stopy",o+_*a.boxMargin,Math.max),u.updateVal(s.data,"startx",t-_*a.boxMargin,Math.min),u.updateVal(s.data,"stopx",r+_*a.boxMargin,Math.max),g!=="activation"&&(u.updateVal(w,"startx",t-_*a.boxMargin,Math.min),u.updateVal(w,"stopx",r+_*a.boxMargin,Math.max),u.updateVal(s.data,"starty",e-_*a.boxMargin,Math.min),u.updateVal(s.data,"stopy",o+_*a.boxMargin,Math.max))}}this.sequenceItems.forEach(h()),this.activations.forEach(h("activation"))},insert:function(t,e,r,o){var u=Math.min(t,r),c=Math.max(t,r),h=Math.min(e,o),g=Math.max(e,o);this.updateVal(s.data,"startx",u,Math.min),this.updateVal(s.data,"starty",h,Math.min),this.updateVal(s.data,"stopx",c,Math.max),this.updateVal(s.data,"stopy",g,Math.max),this.updateBounds(u,h,c,g)},newActivation:function(t,e,r){var o=r[t.from.actor],u=B(t.from.actor).length||0,c=o.x+o.width/2+(u-1)*a.activationWidth/2;this.activations.push({startx:c,starty:this.verticalPos+2,stopx:c+a.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Cd(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:s.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}}},l=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},f=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},b=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},v=function(t,e,r,o){for(var u=0,c=0,h=0,g=0;g<r.length;g++){var w=e[r[g]];w.width=w.width||a.width,w.height=Math.max(w.height||a.height,a.height),w.margin=w.margin||a.actorMargin,w.x=u+c,w.y=o;var _=__(t,w,a);h=Math.max(h,_),s.insert(w.x,o,w.x+w.width,w.height),u+=w.width,c+=w.margin,s.models.addActor(w)}s.bumpVerticalPos(h)},T=function(t,e,r,o){for(var u=0,c=0,h=0;h<r.length;h++){var g=e[r[h]],w=z(g),_=Ns(t,g,w,a,a.forceMenus);_.height>u&&(u=_.height),_.width+g.x>c&&(c=_.width+g.x)}return{maxHeight:u,maxWidth:c}},A=function(t){qi(a,t),t.fontFamily&&(a.actorFontFamily=a.noteFontFamily=a.messageFontFamily=t.fontFamily),t.fontSize&&(a.actorFontSize=a.noteFontSize=a.messageFontSize=t.fontSize),t.fontWeight&&(a.actorFontWeight=a.noteFontWeight=a.messageFontWeight=t.fontWeight)},B=function(t){return s.activations.filter((function(e){return e.actor===t}))},F=function(t,e){var r=e[t],o=B(t);return[o.reduce((function(u,c){return Math.min(u,c.startx)}),r.x+r.width/2),o.reduce((function(u,c){return Math.max(u,c.stopx)}),r.x+r.width/2)]};function O(t,e,r,o,u){s.bumpVerticalPos(r);var c=o;if(e.id&&e.message&&t[e.id]){var h=t[e.id].width,g=l(a);e.message=Vn.wrapLabel("[".concat(e.message,"]"),h-2*a.wrapPadding,g),e.width=h,e.wrap=!0;var w=Vn.calculateTextDimensions(e.message,g),_=Math.max(w.height,a.labelBoxHeight);c=o+_,y.debug("".concat(_," - ").concat(e.message))}u(e),s.bumpVerticalPos(c)}var z=function(t){var e=0,r=b(a);for(var o in t.links){var u=Vn.calculateTextDimensions(o,r).width+2*a.wrapPadding+2*a.boxMargin;e<u&&(e=u)}return e};const U={bounds:s,drawActors:v,drawActorsPopup:T,setConf:A,draw:function(t,e){a=Qt().sequence;var r,o=Qt().securityLevel;o==="sandbox"&&(r=Ve("#i"+e));var u=Ve(o==="sandbox"?r.nodes()[0].contentDocument.body:"body");o==="sandbox"&&r.nodes()[0].contentDocument,en.parser.yy.clear(),en.parser.yy.setWrap(a.wrap),en.parser.parse(t+`
|
|
75
|
+
`),s.init(),y.debug("C:".concat(JSON.stringify(a,null,2)));var c=o==="sandbox"?u.select('[id="'.concat(e,'"]')):Ve('[id="'.concat(e,'"]')),h=en.parser.yy.getActors(),g=en.parser.yy.getActorKeys(),w=en.parser.yy.getMessages(),_=en.parser.yy.getTitle(),D=(function(Pt,Gt){var Et={};return Gt.forEach((function(ee){if(Pt[ee.to]&&Pt[ee.from]){var ie=Pt[ee.to];if(ee.placement===en.parser.yy.PLACEMENT.LEFTOF&&!ie.prevActor||ee.placement===en.parser.yy.PLACEMENT.RIGHTOF&&!ie.nextActor)return;var kt=ee.placement!==void 0,It=!kt,Ct=kt?f(a):l(a),yt=ee.wrap?Vn.wrapLabel(ee.message,a.width-2*a.wrapPadding,Ct):ee.message,Ft=Vn.calculateTextDimensions(yt,Ct).width+2*a.wrapPadding;It&&ee.from===ie.nextActor?Et[ee.to]=Math.max(Et[ee.to]||0,Ft):It&&ee.from===ie.prevActor?Et[ee.from]=Math.max(Et[ee.from]||0,Ft):It&&ee.from===ee.to?(Et[ee.from]=Math.max(Et[ee.from]||0,Ft/2),Et[ee.to]=Math.max(Et[ee.to]||0,Ft/2)):ee.placement===en.parser.yy.PLACEMENT.RIGHTOF?Et[ee.from]=Math.max(Et[ee.from]||0,Ft):ee.placement===en.parser.yy.PLACEMENT.LEFTOF?Et[ie.prevActor]=Math.max(Et[ie.prevActor]||0,Ft):ee.placement===en.parser.yy.PLACEMENT.OVER&&(ie.prevActor&&(Et[ie.prevActor]=Math.max(Et[ie.prevActor]||0,Ft/2)),ie.nextActor&&(Et[ee.from]=Math.max(Et[ee.from]||0,Ft/2)))}})),y.debug("maxMessageWidthPerActor:",Et),Et})(h,w);a.height=(function(Pt,Gt){var Et=0;for(var ee in Object.keys(Pt).forEach((function(Ct){var yt=Pt[Ct];yt.wrap&&(yt.description=Vn.wrapLabel(yt.description,a.width-2*a.wrapPadding,b(a)));var Ft=Vn.calculateTextDimensions(yt.description,b(a));yt.width=yt.wrap?a.width:Math.max(a.width,Ft.width+2*a.wrapPadding),yt.height=yt.wrap?Math.max(Ft.height,a.height):a.height,Et=Math.max(Et,yt.height)})),Gt){var ie=Pt[ee];if(ie){var kt=Pt[ie.nextActor];if(kt){var It=Gt[ee]+a.actorMargin-ie.width/2-kt.width/2;ie.margin=Math.max(It,a.actorMargin)}}}return Math.max(Et,a.height)})(h,D),E_(c),T_(c),C_(c),v(c,h,g,0);var j=(function(Pt,Gt){var Et,ee,ie,kt={},It=[];return Pt.forEach((function(Ct){switch(Ct.id=Vn.random({length:10}),Ct.type){case en.parser.yy.LINETYPE.LOOP_START:case en.parser.yy.LINETYPE.ALT_START:case en.parser.yy.LINETYPE.OPT_START:case en.parser.yy.LINETYPE.PAR_START:It.push({id:Ct.id,msg:Ct.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case en.parser.yy.LINETYPE.ALT_ELSE:case en.parser.yy.LINETYPE.PAR_AND:Ct.message&&(Et=It.pop(),kt[Et.id]=Et,kt[Ct.id]=Et,It.push(Et));break;case en.parser.yy.LINETYPE.LOOP_END:case en.parser.yy.LINETYPE.ALT_END:case en.parser.yy.LINETYPE.OPT_END:case en.parser.yy.LINETYPE.PAR_END:Et=It.pop(),kt[Et.id]=Et;break;case en.parser.yy.LINETYPE.ACTIVE_START:var yt=Gt[Ct.from?Ct.from.actor:Ct.to.actor],Ft=B(Ct.from?Ct.from.actor:Ct.to.actor).length,bt=yt.x+yt.width/2+(Ft-1)*a.activationWidth/2,_e={startx:bt,stopx:bt+a.activationWidth,actor:Ct.from.actor,enabled:!0};s.activations.push(_e);break;case en.parser.yy.LINETYPE.ACTIVE_END:var we=s.activations.map((function(Ut){return Ut.actor})).lastIndexOf(Ct.from.actor);delete s.activations.splice(we,1)[0]}Ct.placement!==void 0?(ee=(function(Ut,Te){var Ee=Te[Ut.from].x,be=Te[Ut.to].x,he=Ut.wrap&&Ut.message,Pe=Vn.calculateTextDimensions(he?Vn.wrapLabel(Ut.message,a.width,f(a)):Ut.message,f(a)),Re={width:he?a.width:Math.max(a.width,Pe.width+2*a.noteMargin),height:0,startx:Te[Ut.from].x,stopx:0,starty:0,stopy:0,message:Ut.message};return Ut.placement===en.parser.yy.PLACEMENT.RIGHTOF?(Re.width=he?Math.max(a.width,Pe.width):Math.max(Te[Ut.from].width/2+Te[Ut.to].width/2,Pe.width+2*a.noteMargin),Re.startx=Ee+(Te[Ut.from].width+a.actorMargin)/2):Ut.placement===en.parser.yy.PLACEMENT.LEFTOF?(Re.width=Math.max(he?a.width:Te[Ut.from].width/2+Te[Ut.to].width/2,Pe.width+2*a.noteMargin),Re.startx=Ee-Re.width+(Te[Ut.from].width-a.actorMargin)/2):Ut.to===Ut.from?(Pe=Vn.calculateTextDimensions(he?Vn.wrapLabel(Ut.message,Math.max(a.width,Te[Ut.from].width),f(a)):Ut.message,f(a)),Re.width=he?Math.max(a.width,Te[Ut.from].width):Math.max(Te[Ut.from].width,a.width,Pe.width+2*a.noteMargin),Re.startx=Ee+(Te[Ut.from].width-Re.width)/2):(Re.width=Math.abs(Ee+Te[Ut.from].width/2-(be+Te[Ut.to].width/2))+a.actorMargin,Re.startx=Ee<be?Ee+Te[Ut.from].width/2-a.actorMargin/2:be+Te[Ut.to].width/2-a.actorMargin/2),he&&(Re.message=Vn.wrapLabel(Ut.message,Re.width-2*a.wrapPadding,f(a))),y.debug("NM:[".concat(Re.startx,",").concat(Re.stopx,",").concat(Re.starty,",").concat(Re.stopy,":").concat(Re.width,",").concat(Re.height,"=").concat(Ut.message,"]")),Re})(Ct,Gt),Ct.noteModel=ee,It.forEach((function(Ut){(Et=Ut).from=Math.min(Et.from,ee.startx),Et.to=Math.max(Et.to,ee.startx+ee.width),Et.width=Math.max(Et.width,Math.abs(Et.from-Et.to))-a.labelBoxWidth}))):(ie=(function(Ut,Te){var Ee=!1;if([en.parser.yy.LINETYPE.SOLID_OPEN,en.parser.yy.LINETYPE.DOTTED_OPEN,en.parser.yy.LINETYPE.SOLID,en.parser.yy.LINETYPE.DOTTED,en.parser.yy.LINETYPE.SOLID_CROSS,en.parser.yy.LINETYPE.DOTTED_CROSS,en.parser.yy.LINETYPE.SOLID_POINT,en.parser.yy.LINETYPE.DOTTED_POINT].includes(Ut.type)&&(Ee=!0),!Ee)return{};var be=F(Ut.from,Te),he=F(Ut.to,Te),Pe=be[0]<=he[0]?1:0,Re=be[0]<he[0]?0:1,Ke=be.concat(he),dn=Math.abs(he[Re]-be[Pe]);Ut.wrap&&Ut.message&&(Ut.message=Vn.wrapLabel(Ut.message,Math.max(dn+2*a.wrapPadding,a.width),l(a)));var He=Vn.calculateTextDimensions(Ut.message,l(a));return{width:Math.max(Ut.wrap?0:He.width+2*a.wrapPadding,dn+2*a.wrapPadding,a.width),height:0,startx:be[Pe],stopx:he[Re],starty:0,stopy:0,message:Ut.message,type:Ut.type,wrap:Ut.wrap,fromBounds:Math.min.apply(null,Ke),toBounds:Math.max.apply(null,Ke)}})(Ct,Gt),Ct.msgModel=ie,ie.startx&&ie.stopx&&It.length>0&&It.forEach((function(Ut){if(Et=Ut,ie.startx===ie.stopx){var Te=Gt[Ct.from],Ee=Gt[Ct.to];Et.from=Math.min(Te.x-ie.width/2,Te.x-Te.width/2,Et.from),Et.to=Math.max(Ee.x+ie.width/2,Ee.x+Te.width/2,Et.to),Et.width=Math.max(Et.width,Math.abs(Et.to-Et.from))-a.labelBoxWidth}else Et.from=Math.min(ie.startx,Et.from),Et.to=Math.max(ie.stopx,Et.to),Et.width=Math.max(Et.width,ie.width)-a.labelBoxWidth})))})),s.activations=[],y.debug("Loop type widths:",kt),kt})(w,h);x_(c),k_(c),w_(c),G3(c);var P=1;w.forEach((function(Pt){var Gt,Et,ee;switch(Pt.type){case en.parser.yy.LINETYPE.NOTE:Et=Pt.noteModel,(function(ie,kt){s.bumpVerticalPos(a.boxMargin),kt.height=a.boxMargin,kt.starty=s.getVerticalPos();var It=i();It.x=kt.startx,It.y=kt.starty,It.width=kt.width||a.width,It.class="note";var Ct=ie.append("g"),yt=Ed(Ct,It),Ft=n();Ft.x=kt.startx,Ft.y=kt.starty,Ft.width=It.width,Ft.dy="1em",Ft.text=kt.message,Ft.class="noteText",Ft.fontFamily=a.noteFontFamily,Ft.fontSize=a.noteFontSize,Ft.fontWeight=a.noteFontWeight,Ft.anchor=a.noteAlign,Ft.textMargin=a.noteMargin,Ft.valign=a.noteAlign;var bt=ea(Ct,Ft),_e=Math.round(bt.map((function(we){return(we._groups||we)[0][0].getBBox().height})).reduce((function(we,Ut){return we+Ut})));yt.attr("height",_e+2*a.noteMargin),kt.height+=_e+2*a.noteMargin,s.bumpVerticalPos(_e+2*a.noteMargin),kt.stopy=kt.starty+_e+2*a.noteMargin,kt.stopx=kt.startx+It.width,s.insert(kt.startx,kt.starty,kt.stopx,kt.stopy),s.models.addNote(kt)})(c,Et);break;case en.parser.yy.LINETYPE.ACTIVE_START:s.newActivation(Pt,c,h);break;case en.parser.yy.LINETYPE.ACTIVE_END:(function(ie,kt){var It=s.endActivation(ie);It.starty+18>kt&&(It.starty=kt-6,kt+=12),V3(c,It,kt,a,B(ie.from.actor).length),s.insert(It.startx,kt-10,It.stopx,kt)})(Pt,s.getVerticalPos());break;case en.parser.yy.LINETYPE.LOOP_START:O(j,Pt,a.boxMargin,a.boxMargin+a.boxTextMargin,(function(ie){return s.newLoop(ie)}));break;case en.parser.yy.LINETYPE.LOOP_END:Gt=s.endLoop(),Yl(c,Gt,"loop",a),s.bumpVerticalPos(Gt.stopy-s.getVerticalPos()),s.models.addLoop(Gt);break;case en.parser.yy.LINETYPE.RECT_START:O(j,Pt,a.boxMargin,a.boxMargin,(function(ie){return s.newLoop(void 0,ie.message)}));break;case en.parser.yy.LINETYPE.RECT_END:Gt=s.endLoop(),Af(c,Gt),s.models.addLoop(Gt),s.bumpVerticalPos(Gt.stopy-s.getVerticalPos());break;case en.parser.yy.LINETYPE.OPT_START:O(j,Pt,a.boxMargin,a.boxMargin+a.boxTextMargin,(function(ie){return s.newLoop(ie)}));break;case en.parser.yy.LINETYPE.OPT_END:Gt=s.endLoop(),Yl(c,Gt,"opt",a),s.bumpVerticalPos(Gt.stopy-s.getVerticalPos()),s.models.addLoop(Gt);break;case en.parser.yy.LINETYPE.ALT_START:O(j,Pt,a.boxMargin,a.boxMargin+a.boxTextMargin,(function(ie){return s.newLoop(ie)}));break;case en.parser.yy.LINETYPE.ALT_ELSE:O(j,Pt,a.boxMargin+a.boxTextMargin,a.boxMargin,(function(ie){return s.addSectionToLoop(ie)}));break;case en.parser.yy.LINETYPE.ALT_END:Gt=s.endLoop(),Yl(c,Gt,"alt",a),s.bumpVerticalPos(Gt.stopy-s.getVerticalPos()),s.models.addLoop(Gt);break;case en.parser.yy.LINETYPE.PAR_START:O(j,Pt,a.boxMargin,a.boxMargin+a.boxTextMargin,(function(ie){return s.newLoop(ie)}));break;case en.parser.yy.LINETYPE.PAR_AND:O(j,Pt,a.boxMargin+a.boxTextMargin,a.boxMargin,(function(ie){return s.addSectionToLoop(ie)}));break;case en.parser.yy.LINETYPE.PAR_END:Gt=s.endLoop(),Yl(c,Gt,"par",a),s.bumpVerticalPos(Gt.stopy-s.getVerticalPos()),s.models.addLoop(Gt);break;default:try{(ee=Pt.msgModel).starty=s.getVerticalPos(),ee.sequenceIndex=P,(function(ie,kt){s.bumpVerticalPos(10);var It=kt.startx,Ct=kt.stopx,yt=kt.starty,Ft=kt.message,bt=kt.type,_e=kt.sequenceIndex,we=rr.splitBreaks(Ft).length,Ut=Vn.calculateTextDimensions(Ft,l(a)),Te=Ut.height/we;kt.height+=Te,s.bumpVerticalPos(Te);var Ee=n();Ee.x=It,Ee.y=yt+10,Ee.width=Ct-It,Ee.class="messageText",Ee.dy="1em",Ee.text=Ft,Ee.fontFamily=a.messageFontFamily,Ee.fontSize=a.messageFontSize,Ee.fontWeight=a.messageFontWeight,Ee.anchor=a.messageAlign,Ee.valign=a.messageAlign,Ee.textMargin=a.wrapPadding,Ee.tspan=!1,ea(ie,Ee);var be,he,Pe=Ut.height-10,Re=Ut.width;if(It===Ct){he=s.getVerticalPos()+Pe,a.rightAngles?be=ie.append("path").attr("d","M ".concat(It,",").concat(he," H ").concat(It+Math.max(a.width/2,Re/2)," V ").concat(he+25," H ").concat(It)):(Pe+=a.boxMargin,he=s.getVerticalPos()+Pe,be=ie.append("path").attr("d","M "+It+","+he+" C "+(It+60)+","+(he-10)+" "+(It+60)+","+(he+30)+" "+It+","+(he+20))),Pe+=30;var Ke=Math.max(Re/2,a.width/2);s.insert(It-Ke,s.getVerticalPos()-10+Pe,Ct+Ke,s.getVerticalPos()+30+Pe)}else Pe+=a.boxMargin,he=s.getVerticalPos()+Pe,(be=ie.append("line")).attr("x1",It),be.attr("y1",he),be.attr("x2",Ct),be.attr("y2",he),s.insert(It,he-10,Ct,he);bt===en.parser.yy.LINETYPE.DOTTED||bt===en.parser.yy.LINETYPE.DOTTED_CROSS||bt===en.parser.yy.LINETYPE.DOTTED_POINT||bt===en.parser.yy.LINETYPE.DOTTED_OPEN?(be.style("stroke-dasharray","3, 3"),be.attr("class","messageLine1")):be.attr("class","messageLine0");var dn="";a.arrowMarkerAbsolute&&(dn=(dn=(dn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),be.attr("stroke-width",2),be.attr("stroke","none"),be.style("fill","none"),bt!==en.parser.yy.LINETYPE.SOLID&&bt!==en.parser.yy.LINETYPE.DOTTED||be.attr("marker-end","url("+dn+"#arrowhead)"),bt!==en.parser.yy.LINETYPE.SOLID_POINT&&bt!==en.parser.yy.LINETYPE.DOTTED_POINT||be.attr("marker-end","url("+dn+"#filled-head)"),bt!==en.parser.yy.LINETYPE.SOLID_CROSS&&bt!==en.parser.yy.LINETYPE.DOTTED_CROSS||be.attr("marker-end","url("+dn+"#crosshead)"),(Q2.showSequenceNumbers()||a.showSequenceNumbers)&&(be.attr("marker-start","url("+dn+"#sequencenumber)"),ie.append("text").attr("x",It).attr("y",he+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(_e)),s.bumpVerticalPos(Pe),kt.height+=Pe,kt.stopy=kt.starty+kt.height,s.insert(kt.fromBounds,kt.starty,kt.toBounds,kt.stopy)})(c,ee),s.models.addMessage(ee)}catch(ie){y.error("error while drawing message",ie)}}[en.parser.yy.LINETYPE.SOLID_OPEN,en.parser.yy.LINETYPE.DOTTED_OPEN,en.parser.yy.LINETYPE.SOLID,en.parser.yy.LINETYPE.DOTTED,en.parser.yy.LINETYPE.SOLID_CROSS,en.parser.yy.LINETYPE.DOTTED_CROSS,en.parser.yy.LINETYPE.SOLID_POINT,en.parser.yy.LINETYPE.DOTTED_POINT].includes(Pt.type)&&P++})),a.mirrorActors&&(s.bumpVerticalPos(2*a.boxMargin),v(c,h,g,s.getVerticalPos()),s.bumpVerticalPos(a.boxMargin),Lr(c,s.getVerticalPos()));var q=T(c,h,g),ot=s.getBounds().bounds;y.debug("For line height fix Querying: #"+e+" .actor-line"),b1("#"+e+" .actor-line").attr("y2",ot.stopy);var tt=ot.stopy-ot.starty;tt<q.maxHeight&&(tt=q.maxHeight);var gt=tt+2*a.diagramMarginY;a.mirrorActors&&(gt=gt-a.boxMargin+a.bottomMarginAdj);var ht=ot.stopx-ot.startx;ht<q.maxWidth&&(ht=q.maxWidth);var wt=ht+2*a.diagramMarginX;_&&c.append("text").text(_).attr("x",(ot.stopx-ot.startx)/2-2*a.diagramMarginX).attr("y",-25),Ka(c,gt,wt,a.useMaxWidth);var Tt=_?40:0;c.attr("viewBox",ot.startx-a.diagramMarginX+" -"+(a.diagramMarginY+Tt)+" "+wt+" "+(gt+Tt)),y.debug("models:",s.models)}};var Z=p(3584),Q=p.n(Z);function G(t){return G=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},G(t)}var rt=function(t){return JSON.parse(JSON.stringify(t))},et=[],ct=function t(e,r,o){if(r.stmt==="relation")t(e,r.state1,!0),t(e,r.state2,!1);else if(r.stmt==="state"&&r.id==="[*]"&&(r.id=o?e.id+"_start":e.id+"_end",r.start=o),r.doc){var u=[],c=0,h=[];for(c=0;c<r.doc.length;c++)if(r.doc[c].type==="divider"){var g=rt(r.doc[c]);g.doc=rt(h),u.push(g),h=[]}else h.push(r.doc[c]);if(u.length>0&&h.length>0){var w={stmt:"state",id:Hv(),type:"divider",doc:rt(h)};u.push(rt(w)),r.doc=u}r.doc.forEach((function(_){return t(r,_,!0)}))}},Lt={root:{relations:[],states:{},documents:{}}},qt=Lt.root,ne=0,ve=function(t,e,r,o,u){qt.states[t]===void 0?qt.states[t]={id:t,descriptions:[],type:e,doc:r,note:u}:(qt.states[t].doc||(qt.states[t].doc=r),qt.states[t].type||(qt.states[t].type=e)),o&&(y.info("Adding state ",t,o),typeof o=="string"&&ut(t,o.trim()),G(o)==="object"&&o.forEach((function(c){return ut(t,c.trim())}))),u&&(qt.states[t].note=u,qt.states[t].note.text=rr.sanitizeText(qt.states[t].note.text,Qt()))},zt=function(){qt=(Lt={root:{relations:[],states:{},documents:{}}}).root,qt=Lt.root,ne=0,ae=[]},ue=function(t,e,r){var o=t,u=e,c="default",h="default";t==="[*]"&&(o="start"+ ++ne,c="start"),e==="[*]"&&(u="end"+ne,h="end"),ve(o,c),ve(u,h),qt.relations.push({id1:o,id2:u,title:rr.sanitizeText(r,Qt())})},ut=function(t,e){var r=qt.states[t],o=e;o[0]===":"&&(o=o.substr(1).trim()),r.descriptions.push(rr.sanitizeText(o,Qt()))},xt=0,ae=[],Jt="TB";const Kt={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().state},addState:ve,clear:zt,getState:function(t){return qt.states[t]},getStates:function(){return qt.states},getRelations:function(){return qt.relations},getClasses:function(){return ae},getDirection:function(){return Jt},addRelation:ue,getDividerId:function(){return"divider-id-"+ ++xt},setDirection:function(t){Jt=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(){y.info("Documents = ",Lt)},getRootDoc:function(){return et},setRootDoc:function(t){y.info("Setting root doc",t),et=t},getRootDocV2:function(){return ct({id:"root"},{id:"root",doc:et},!0),{id:"root",doc:et}},extract:function(t){var e;e=t.doc?t.doc:t,y.info(e),zt(),y.info("Extract",e),e.forEach((function(r){r.stmt==="state"&&ve(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&ue(r.state1.id,r.state2.id,r.description)}))},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};function Le(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Ie,vn=function(t,e,r){var o,u=Qt().state.padding,c=2*Qt().state.padding,h=t.node().getBBox(),g=h.width,w=h.x,_=t.append("text").attr("x",0).attr("y",Qt().state.titleShift).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(e.id),D=_.node().getBBox().width+c,j=Math.max(D,g);j===g&&(j+=c);var P=t.node().getBBox();e.doc,o=w-u,D>g&&(o=(g-j)/2+u),Math.abs(w-P.x)<u&&D>g&&(o=w-(D-g)/2);var q=1-Qt().state.textHeight;return t.insert("rect",":first-child").attr("x",o).attr("y",q).attr("class",r?"alt-composit":"composit").attr("width",j).attr("height",P.height+Qt().state.textHeight+Qt().state.titleShift+1).attr("rx","0"),_.attr("x",o+u),D<=g&&_.attr("x",w+(j-c)/2-D/2+u),t.insert("rect",":first-child").attr("x",o).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",j).attr("height",3*Qt().state.textHeight).attr("rx",Qt().state.radius),t.insert("rect",":first-child").attr("x",o).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",j).attr("height",P.height+3+2*Qt().state.textHeight).attr("rx",Qt().state.radius),t},tr=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",Qt().state.padding),o=(function(h,g,w,_){var D=0,j=_.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var P,q=h.replace(/\r\n/g,"<br/>"),ot=(q=q.replace(/\n/g,"<br/>")).split(rr.lineBreakRegex),tt=1.25*Qt().state.noteMargin,gt=(function(Tt,Pt){var Gt=typeof Symbol<"u"&&Tt[Symbol.iterator]||Tt["@@iterator"];if(!Gt){if(Array.isArray(Tt)||(Gt=(function(Ct,yt){if(Ct){if(typeof Ct=="string")return Le(Ct,yt);var Ft=Object.prototype.toString.call(Ct).slice(8,-1);return Ft==="Object"&&Ct.constructor&&(Ft=Ct.constructor.name),Ft==="Map"||Ft==="Set"?Array.from(Ct):Ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft)?Le(Ct,yt):void 0}})(Tt))||Pt){Gt&&(Tt=Gt);var Et=0,ee=function(){};return{s:ee,n:function(){return Et>=Tt.length?{done:!0}:{done:!1,value:Tt[Et++]}},e:function(Ct){throw Ct},f:ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie,kt=!0,It=!1;return{s:function(){Gt=Gt.call(Tt)},n:function(){var Ct=Gt.next();return kt=Ct.done,Ct},e:function(Ct){It=!0,ie=Ct},f:function(){try{kt||Gt.return==null||Gt.return()}finally{if(It)throw ie}}}})(ot);try{for(gt.s();!(P=gt.n()).done;){var ht=P.value.trim();if(ht.length>0){var wt=j.append("tspan");wt.text(ht),tt===0&&(tt+=wt.node().getBBox().height),D+=tt,wt.attr("x",0+Qt().state.noteMargin),wt.attr("y",0+D+1.25*Qt().state.noteMargin)}}}catch(Tt){gt.e(Tt)}finally{gt.f()}return{textWidth:j.node().getBBox().width,textHeight:D}})(t,0,0,e.append("g")),u=o.textWidth,c=o.textHeight;return r.attr("height",c+2*Qt().state.noteMargin),r.attr("width",u+2*Qt().state.noteMargin),r},ir=function(t,e){var r=e.id,o={id:r,label:e.id,width:0,height:0},u=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&(function(h){h.append("circle").attr("class","start-state").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit).attr("cy",Qt().state.padding+Qt().state.sizeUnit)})(u),e.type==="end"&&(function(h){h.append("circle").attr("class","end-state-outer").attr("r",Qt().state.sizeUnit+Qt().state.miniPadding).attr("cx",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding).attr("cy",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding),h.append("circle").attr("class","end-state-inner").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit+2).attr("cy",Qt().state.padding+Qt().state.sizeUnit+2)})(u),e.type!=="fork"&&e.type!=="join"||(function(h,g){var w=Qt().state.forkWidth,_=Qt().state.forkHeight;if(g.parentId){var D=w;w=_,_=D}h.append("rect").style("stroke","black").style("fill","black").attr("width",w).attr("height",_).attr("x",Qt().state.padding).attr("y",Qt().state.padding)})(u,e),e.type==="note"&&tr(e.note.text,u),e.type==="divider"&&(function(h){h.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Qt().state.textHeight).attr("class","divider").attr("x2",2*Qt().state.textHeight).attr("y1",0).attr("y2",0)})(u),e.type==="default"&&e.descriptions.length===0&&(function(h,g){var w=h.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+2*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(g.id).node().getBBox();h.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",w.width+2*Qt().state.padding).attr("height",w.height+2*Qt().state.padding).attr("rx",Qt().state.radius)})(u,e),e.type==="default"&&e.descriptions.length>0&&(function(h,g){var w=h.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+1.3*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(g.descriptions[0]).node().getBBox(),_=w.height,D=h.append("text").attr("x",Qt().state.padding).attr("y",_+.4*Qt().state.padding+Qt().state.dividerMargin+Qt().state.textHeight).attr("class","state-description"),j=!0,P=!0;g.descriptions.forEach((function(gt){j||((function(ht,wt,Tt){var Pt=ht.append("tspan").attr("x",2*Qt().state.padding).text(wt);Tt||Pt.attr("dy",Qt().state.textHeight)})(D,gt,P),P=!1),j=!1}));var q=h.append("line").attr("x1",Qt().state.padding).attr("y1",Qt().state.padding+_+Qt().state.dividerMargin/2).attr("y2",Qt().state.padding+_+Qt().state.dividerMargin/2).attr("class","descr-divider"),ot=D.node().getBBox(),tt=Math.max(ot.width,w.width);q.attr("x2",tt+3*Qt().state.padding),h.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",tt+2*Qt().state.padding).attr("height",ot.height+_+2*Qt().state.padding).attr("rx",Qt().state.radius)})(u,e);var c=u.node().getBBox();return o.width=c.width+2*Qt().state.padding,o.height=c.height+2*Qt().state.padding,o},nn=0;Z.parser.yy=Kt;var sr={},Mn=function t(e,r,o,u,c,h){var g,w=new(_i()).Graph({compound:!0,multigraph:!0}),_=!0;for(g=0;g<e.length;g++)if(e[g].stmt==="relation"){_=!1;break}o?w.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:_?1:Ie.edgeLengthFactor,nodeSep:_?1:50,isMultiGraph:!0}):w.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:_?1:Ie.edgeLengthFactor,nodeSep:_?1:50,ranker:"tight-tree",isMultiGraph:!0}),w.setDefaultEdgeLabel((function(){return{}})),Kt.extract(e);for(var D=Kt.getStates(),j=Kt.getRelations(),P=Object.keys(D),q=0;q<P.length;q++){var ot=D[P[q]];o&&(ot.parentId=o);var tt=void 0;if(ot.doc){var gt=r.append("g").attr("id",ot.id).attr("class","stateGroup");tt=t(ot.doc,gt,ot.id,!u,c,h);var ht=(gt=vn(gt,ot,u)).node().getBBox();tt.width=ht.width,tt.height=ht.height+Ie.padding/2,sr[ot.id]={y:Ie.compositTitleSize}}else tt=ir(r,ot);if(ot.note){var wt={descriptions:[],id:ot.id+"-note",note:ot.note,type:"note"},Tt=ir(r,wt);ot.note.position==="left of"?(w.setNode(tt.id+"-note",Tt),w.setNode(tt.id,tt)):(w.setNode(tt.id,tt),w.setNode(tt.id+"-note",Tt)),w.setParent(tt.id,tt.id+"-group"),w.setParent(tt.id+"-note",tt.id+"-group")}else w.setNode(tt.id,tt)}y.debug("Count=",w.nodeCount(),w);var Pt=0;j.forEach((function(ie){var kt;Pt++,y.debug("Setting edge",ie),w.setEdge(ie.id1,ie.id2,{relation:ie,width:(kt=ie.title,kt?kt.length*Ie.fontSizeFactor:1),height:Ie.labelHeight*rr.getRows(ie.title).length,labelpos:"c"},"id"+Pt)})),_l().layout(w),y.debug("Graph after layout",w.nodes());var Gt=r.node();w.nodes().forEach((function(ie){ie!==void 0&&w.node(ie)!==void 0?(y.warn("Node "+ie+": "+JSON.stringify(w.node(ie))),c.select("#"+Gt.id+" #"+ie).attr("transform","translate("+(w.node(ie).x-w.node(ie).width/2)+","+(w.node(ie).y+(sr[ie]?sr[ie].y:0)-w.node(ie).height/2)+" )"),c.select("#"+Gt.id+" #"+ie).attr("data-x-shift",w.node(ie).x-w.node(ie).width/2),h.querySelectorAll("#"+Gt.id+" #"+ie+" .divider").forEach((function(kt){var It=kt.parentElement,Ct=0,yt=0;It&&(It.parentElement&&(Ct=It.parentElement.getBBox().width),yt=parseInt(It.getAttribute("data-x-shift"),10),Number.isNaN(yt)&&(yt=0)),kt.setAttribute("x1",0-yt+8),kt.setAttribute("x2",Ct-yt-8)}))):y.debug("No Node "+ie+": "+JSON.stringify(w.node(ie)))}));var Et=Gt.getBBox();w.edges().forEach((function(ie){ie!==void 0&&w.edge(ie)!==void 0&&(y.debug("Edge "+ie.v+" -> "+ie.w+": "+JSON.stringify(w.edge(ie))),(function(kt,It,Ct){It.points=It.points.filter((function(hn){return!Number.isNaN(hn.y)}));var yt=It.points,Ft=Mu().x((function(hn){return hn.x})).y((function(hn){return hn.y})).curve(vs),bt=kt.append("path").attr("d",Ft(yt)).attr("id","edge"+nn).attr("class","transition"),_e="";if(Qt().state.arrowMarkerAbsolute&&(_e=(_e=(_e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),bt.attr("marker-end","url("+_e+"#"+(function(hn){switch(hn){case Kt.relationType.AGGREGATION:return"aggregation";case Kt.relationType.EXTENSION:return"extension";case Kt.relationType.COMPOSITION:return"composition";case Kt.relationType.DEPENDENCY:return"dependency"}})(Kt.relationType.DEPENDENCY)+"End)"),Ct.title!==void 0){for(var we=kt.append("g").attr("class","stateLabel"),Ut=Vn.calcLabelPosition(It.points),Te=Ut.x,Ee=Ut.y,be=rr.getRows(Ct.title),he=0,Pe=[],Re=0,Ke=0,dn=0;dn<=be.length;dn++){var He=we.append("text").attr("text-anchor","middle").text(be[dn]).attr("x",Te).attr("y",Ee+he),dr=He.node().getBBox();if(Re=Math.max(Re,dr.width),Ke=Math.min(Ke,dr.x),y.info(dr.x,Te,Ee+he),he===0){var Er=He.node().getBBox();he=Er.height,y.info("Title height",he,Ee)}Pe.push(He)}var On=he*be.length;if(be.length>1){var Ur=(be.length-1)*he*.5;Pe.forEach((function(hn,Dn){return hn.attr("y",Ee+Dn*he-Ur)})),On=he*be.length}var fr=we.node().getBBox();we.insert("rect",":first-child").attr("class","box").attr("x",Te-Re/2-Qt().state.padding/2).attr("y",Ee-On/2-Qt().state.padding/2-3.5).attr("width",Re+Qt().state.padding).attr("height",On+Qt().state.padding),y.info(fr)}nn++})(r,w.edge(ie),w.edge(ie).relation))})),Et=Gt.getBBox();var ee={id:o||"root",label:o||"root",width:0,height:0};return ee.width=Et.width+2*Ie.padding,ee.height=Et.height+2*Ie.padding,y.debug("Doc rendered",ee,w),ee};const Sn=function(t,e){Ie=Qt().state;var r,o=Qt().securityLevel;o==="sandbox"&&(r=Ve("#i"+e));var u=Ve(o==="sandbox"?r.nodes()[0].contentDocument.body:"body"),c=o==="sandbox"?r.nodes()[0].contentDocument:document;Z.parser.yy.clear(),Z.parser.parse(t),y.debug("Rendering diagram "+t);var h=u.select("[id='".concat(e,"']"));h.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 g=Kt.getRootDoc();Mn(g,h,void 0,!1,u,c);var w=Ie.padding,_=h.node().getBBox(),D=_.width+2*w,j=_.height+2*w;Ka(h,j,1.75*D,Ie.useMaxWidth),h.attr("viewBox","".concat(_.x-Ie.padding," ").concat(_.y-Ie.padding," ")+D+" "+j)};var ur={},Nn={},oi=function(t,e,r,o){if(r.id!=="root"){var u="rect";r.start===!0&&(u="start"),r.start===!1&&(u="end"),r.type!=="default"&&(u=r.type),Nn[r.id]||(Nn[r.id]={id:r.id,shape:u,description:rr.sanitizeText(r.id,Qt()),classes:"statediagram-state"}),r.description&&(Array.isArray(Nn[r.id].description)?(Nn[r.id].shape="rectWithTitle",Nn[r.id].description.push(r.description)):Nn[r.id].description.length>0?(Nn[r.id].shape="rectWithTitle",Nn[r.id].description===r.id?Nn[r.id].description=[r.description]:Nn[r.id].description=[Nn[r.id].description,r.description]):(Nn[r.id].shape="rect",Nn[r.id].description=r.description),Nn[r.id].description=rr.sanitizeTextOrArray(Nn[r.id].description,Qt())),Nn[r.id].description.length===1&&Nn[r.id].shape==="rectWithTitle"&&(Nn[r.id].shape="rect"),!Nn[r.id].type&&r.doc&&(y.info("Setting cluster for ",r.id,vc(r)),Nn[r.id].type="group",Nn[r.id].dir=vc(r),Nn[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",Nn[r.id].classes=Nn[r.id].classes+" "+(o?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var c={labelStyle:"",shape:Nn[r.id].shape,labelText:Nn[r.id].description,classes:Nn[r.id].classes,style:"",id:r.id,dir:Nn[r.id].dir,domId:"state-"+r.id+"-"+la,type:Nn[r.id].type,padding:15};if(r.note){var h={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+la,domId:"state-"+r.id+"----note-"+la,type:Nn[r.id].type,padding:15},g={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:Nn[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+la,type:"group",padding:0};la++,t.setNode(r.id+"----parent",g),t.setNode(h.id,h),t.setNode(r.id,c),t.setParent(r.id,r.id+"----parent"),t.setParent(h.id,r.id+"----parent");var w=r.id,_=h.id;r.note.position==="left of"&&(w=h.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,c)}e&&e.id!=="root"&&(y.trace("Setting node ",r.id," to be child of its parent ",e.id),t.setParent(r.id,e.id)),r.doc&&(y.trace("Adding nodes children "),cu(t,r,r.doc,!o))},la=0,cu=function(t,e,r,o){y.trace("items",r),r.forEach((function(u){if(u.stmt==="state"||u.stmt==="default")oi(t,e,u,o);else if(u.stmt==="relation"){oi(t,e,u.state1,o),oi(t,e,u.state2,o);var c={id:"edge"+la,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:rr.sanitizeText(u.description,Qt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},h=u.state1.id,g=u.state2.id;t.setEdge(h,g,c,la),la++}}))},vc=function(t,e){var r=e||"TB";if(t.doc)for(var o=0;o<t.doc.length;o++){var u=t.doc[o];u.stmt==="dir"&&(r=u.value)}return r};const zl=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)ur[e[r]]=t[e[r]]};function K2(t){return(function(e){if(Array.isArray(e))return Sd(e)})(t)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(t)||(function(e,r){if(e){if(typeof e=="string")return Sd(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Sd(e,r):void 0}})(t)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Sd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var lu="",bc="",J2=[],Ul=[],na=[],O_=function(){for(var t=!0,e=0;e<na.length;e++)na[e].processed,t=t&&na[e].processed;return t};const B_={parseDirective:function(t,e,r){ra.parseDirective(this,t,e,r)},getConfig:function(){return Qt().journey},clear:function(){J2.length=0,Ul.length=0,bc="",lu="",na.length=0},setTitle:function(t){lu=t},getTitle:function(){return lu},addSection:function(t){bc=t,J2.push(t)},getSections:function(){return J2},getTasks:function(){for(var t=O_(),e=0;!t&&e<100;)t=O_(),e++;return Ul.push.apply(Ul,na),Ul},addTask:function(t,e){var r=e.substr(1).split(":"),o=0,u=[];r.length===1?(o=Number(r[0]),u=[]):(o=Number(r[0]),u=r[1].split(","));var c=u.map((function(g){return g.trim()})),h={section:bc,type:bc,people:c,task:t,score:o};na.push(h)},addTaskOrg:function(t){var e={section:bc,type:bc,description:t,task:t,classes:[]};Ul.push(e)},getActors:function(){return t=[],Ul.forEach((function(e){e.people&&t.push.apply(t,K2(e.people))})),K2(new Set(t)).sort();var t}};var Mf=p(9763),$_=p.n(Mf),L_=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},I_=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},R_=-1,F_=(function(){function t(u,c,h,g,w,_,D,j){o(c.append("text").attr("x",h+w/2).attr("y",g+_/2+5).style("font-color",j).style("text-anchor","middle").text(u),D)}function e(u,c,h,g,w,_,D,j,P){for(var q=j.taskFontSize,ot=j.taskFontFamily,tt=u.split(/<br\s*\/?>/gi),gt=0;gt<tt.length;gt++){var ht=gt*q-q*(tt.length-1)/2,wt=c.append("text").attr("x",h+w/2).attr("y",g).attr("fill",P).style("text-anchor","middle").style("font-size",q).style("font-family",ot);wt.append("tspan").attr("x",h+w/2).attr("dy",ht).text(tt[gt]),wt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(wt,D)}}function r(u,c,h,g,w,_,D,j){var P=c.append("switch"),q=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",w).attr("height",_).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");q.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(u),e(u,P,h,g,w,_,D,j),o(q,D)}function o(u,c){for(var h in c)h in c&&u.attr(h,c[h])}return function(u){return u.textPlacement==="fo"?r:u.textPlacement==="old"?t:e}})();const W_=I_,V_=function(t,e,r){var o=t.append("g"),u={x:0,y:0,width:100,height:100,rx:0,ry:0};u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=r.width,u.height=r.height,u.class="journey-section section-type-"+e.num,u.rx=3,u.ry=3,L_(o,u),F_(r)(e.text,o,u.x,u.y,u.width,u.height,{class:"journey-section section-type-"+e.num},r,e.colour)},G_=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.attr("class","legend"),o.style("text-anchor",e.anchor),e.class!==void 0&&o.attr("class",e.class);var u=o.append("tspan");return u.attr("x",e.x+2*e.textMargin),u.text(r),o},X_=function(t,e,r){var o,u,c,h=e.x+r.width/2,g=t.append("g");R_++,g.append("line").attr("id","task"+R_).attr("x1",h).attr("y1",e.y).attr("x2",h).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o=g,u={cx:h,cy:300+30*(5-e.score),score:e.score},o.append("circle").attr("cx",u.cx).attr("cy",u.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(c=o.append("g")).append("circle").attr("cx",u.cx-5).attr("cy",u.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),c.append("circle").attr("cx",u.cx+5).attr("cy",u.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),u.score>3?(function(D){var j=qc().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("+u.cx+","+(u.cy+2)+")")})(c):u.score<3?(function(D){var j=qc().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("+u.cx+","+(u.cy+7)+")")})(c):(function(D){D.append("line").attr("class","mouth").attr("stroke",2).attr("x1",u.cx-5).attr("y1",u.cy+7).attr("x2",u.cx+5).attr("y2",u.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")})(c);var w={x:0,y:0,width:100,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,L_(g,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};I_(g,P),_+=10})),F_(r)(e.task,g,w.x,w.y,w.width,w.height,{class:"task"},r,e.colour)};Mf.parser.yy=B_;var _c={},S_=Qt().journey,Nf=Qt().journey.leftMargin,as={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,o){t[e]===void 0?t[e]=r:t[e]=o(r,t[e])},updateBounds:function(t,e,r,o){var u=Qt().journey,c=this,h=0;this.sequenceItems.forEach((function(g){h++;var w=c.sequenceItems.length-h+1;c.updateVal(g,"starty",e-w*u.boxMargin,Math.min),c.updateVal(g,"stopy",o+w*u.boxMargin,Math.max),c.updateVal(as.data,"startx",t-w*u.boxMargin,Math.min),c.updateVal(as.data,"stopx",r+w*u.boxMargin,Math.max),c.updateVal(g,"startx",t-w*u.boxMargin,Math.min),c.updateVal(g,"stopx",r+w*u.boxMargin,Math.max),c.updateVal(as.data,"starty",e-w*u.boxMargin,Math.min),c.updateVal(as.data,"stopy",o+w*u.boxMargin,Math.max)}))},insert:function(t,e,r,o){var u=Math.min(t,r),c=Math.max(t,r),h=Math.min(e,o),g=Math.max(e,o);this.updateVal(as.data,"startx",u,Math.min),this.updateVal(as.data,"starty",h,Math.min),this.updateVal(as.data,"stopx",c,Math.max),this.updateVal(as.data,"stopy",g,Math.max),this.updateBounds(u,h,c,g)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},A_=S_.sectionFills,P_=S_.sectionColours;const j_=function(t){Object.keys(t).forEach((function(e){S_[e]=t[e]}))},Z_=function(t,e){var r=Qt().journey;Mf.parser.yy.clear(),Mf.parser.parse(t+`
|
|
78
|
+
`);var o,u=Qt().securityLevel;u==="sandbox"&&(o=Ve("#i"+e));var c=Ve(u==="sandbox"?o.nodes()[0].contentDocument.body:"body");u==="sandbox"&&o.nodes()[0].contentDocument,as.init();var h=c.select("#"+e);h.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),h.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 g=Mf.parser.yy.getTasks(),w=Mf.parser.yy.getTitle(),_=Mf.parser.yy.getActors();for(var D in _c)delete _c[D];var j=0;_.forEach((function(gt){_c[gt]={color:r.actorColours[j%r.actorColours.length],position:j},j++})),(function(gt){var ht=Qt().journey,wt=60;Object.keys(_c).forEach((function(Tt){var Pt=_c[Tt].color,Gt={cx:20,cy:wt,r:7,fill:Pt,stroke:"#000",pos:_c[Tt].position};W_(gt,Gt);var Et={x:40,y:wt+7,text:Tt,textMargin:5|ht.boxTextMargin};G_(gt,Et),wt+=20}))})(h),as.insert(0,0,Nf,50*Object.keys(_c).length),(function(gt,ht,wt){for(var Tt=Qt().journey,Pt="",Gt=wt+(2*Tt.height+Tt.diagramMarginY),Et=0,ee="#CCC",ie="black",kt=0,It=0;It<ht.length;It++){var Ct=ht[It];if(Pt!==Ct.section){ee=A_[Et%A_.length],kt=Et%A_.length,ie=P_[Et%P_.length];var yt={x:It*Tt.taskMargin+It*Tt.width+Nf,y:50,text:Ct.section,fill:ee,num:kt,colour:ie};V_(gt,yt,Tt),Pt=Ct.section,Et++}var Ft=Ct.people.reduce((function(bt,_e){return _c[_e]&&(bt[_e]=_c[_e]),bt}),{});Ct.x=It*Tt.taskMargin+It*Tt.width+Nf,Ct.y=Gt,Ct.width=Tt.diagramMarginX,Ct.height=Tt.diagramMarginY,Ct.colour=ie,Ct.fill=ee,Ct.num=kt,Ct.actors=Ft,X_(gt,Ct,Tt),as.insert(Ct.x,Ct.y,Ct.x+Ct.width+Tt.taskMargin,450)}})(h,g,0);var P=as.getBounds();w&&h.append("text").text(w).attr("x",Nf).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var q=P.stopy-P.starty+2*r.diagramMarginY,ot=Nf+P.stopx+2*r.diagramMarginX;Ka(h,q,ot,r.useMaxWidth),h.append("line").attr("x1",Nf).attr("y1",4*r.height).attr("x2",ot-Nf-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var tt=w?70:0;h.attr("viewBox","".concat(P.startx," -25 ").concat(ot," ").concat(q+tt)),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",q+tt+25)},M_=function(t){return`g.classGroup text {
|
|
79
|
+
fill: `.concat(t.nodeBorder,`;
|
|
80
|
+
fill: `).concat(t.classText,`;
|
|
81
|
+
stroke: none;
|
|
82
|
+
font-family: `).concat(t.fontFamily,`;
|
|
83
|
+
font-size: 10px;
|
|
84
|
+
|
|
85
|
+
.title {
|
|
86
|
+
font-weight: bolder;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.nodeLabel, .edgeLabel {
|
|
92
|
+
color: `).concat(t.classText,`;
|
|
93
|
+
}
|
|
94
|
+
.edgeLabel .label rect {
|
|
95
|
+
fill: `).concat(t.mainBkg,`;
|
|
96
|
+
}
|
|
97
|
+
.label text {
|
|
98
|
+
fill: `).concat(t.classText,`;
|
|
99
|
+
}
|
|
100
|
+
.edgeLabel .label span {
|
|
101
|
+
background: `).concat(t.mainBkg,`;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.classTitle {
|
|
105
|
+
font-weight: bolder;
|
|
106
|
+
}
|
|
107
|
+
.node rect,
|
|
108
|
+
.node circle,
|
|
109
|
+
.node ellipse,
|
|
110
|
+
.node polygon,
|
|
111
|
+
.node path {
|
|
112
|
+
fill: `).concat(t.mainBkg,`;
|
|
113
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
114
|
+
stroke-width: 1px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
.divider {
|
|
119
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
120
|
+
stroke: 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
g.clickable {
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
g.classGroup rect {
|
|
128
|
+
fill: `).concat(t.mainBkg,`;
|
|
129
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
g.classGroup line {
|
|
133
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
134
|
+
stroke-width: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.classLabel .box {
|
|
138
|
+
stroke: none;
|
|
139
|
+
stroke-width: 0;
|
|
140
|
+
fill: `).concat(t.mainBkg,`;
|
|
141
|
+
opacity: 0.5;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.classLabel .label {
|
|
145
|
+
fill: `).concat(t.nodeBorder,`;
|
|
146
|
+
font-size: 10px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.relation {
|
|
150
|
+
stroke: `).concat(t.lineColor,`;
|
|
151
|
+
stroke-width: 1;
|
|
152
|
+
fill: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dashed-line{
|
|
156
|
+
stroke-dasharray: 3;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
#compositionStart, .composition {
|
|
160
|
+
fill: `).concat(t.lineColor,` !important;
|
|
161
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
162
|
+
stroke-width: 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#compositionEnd, .composition {
|
|
166
|
+
fill: `).concat(t.lineColor,` !important;
|
|
167
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
168
|
+
stroke-width: 1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
#dependencyStart, .dependency {
|
|
172
|
+
fill: `).concat(t.lineColor,` !important;
|
|
173
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
174
|
+
stroke-width: 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
#dependencyStart, .dependency {
|
|
178
|
+
fill: `).concat(t.lineColor,` !important;
|
|
179
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
180
|
+
stroke-width: 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#extensionStart, .extension {
|
|
184
|
+
fill: `).concat(t.lineColor,` !important;
|
|
185
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
186
|
+
stroke-width: 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#extensionEnd, .extension {
|
|
190
|
+
fill: `).concat(t.lineColor,` !important;
|
|
191
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
192
|
+
stroke-width: 1;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
#aggregationStart, .aggregation {
|
|
196
|
+
fill: `).concat(t.mainBkg,` !important;
|
|
197
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
198
|
+
stroke-width: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
#aggregationEnd, .aggregation {
|
|
202
|
+
fill: `).concat(t.mainBkg,` !important;
|
|
203
|
+
stroke: `).concat(t.lineColor,` !important;
|
|
204
|
+
stroke-width: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.edgeTerminals {
|
|
208
|
+
font-size: 11px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
`)},Y_=function(t){return`.label {
|
|
212
|
+
font-family: `.concat(t.fontFamily,`;
|
|
213
|
+
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
214
|
+
}
|
|
215
|
+
.cluster-label text {
|
|
216
|
+
fill: `).concat(t.titleColor,`;
|
|
217
|
+
}
|
|
218
|
+
.cluster-label span {
|
|
219
|
+
color: `).concat(t.titleColor,`;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.label text,span {
|
|
223
|
+
fill: `).concat(t.nodeTextColor||t.textColor,`;
|
|
224
|
+
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.node rect,
|
|
228
|
+
.node circle,
|
|
229
|
+
.node ellipse,
|
|
230
|
+
.node polygon,
|
|
231
|
+
.node path {
|
|
232
|
+
fill: `).concat(t.mainBkg,`;
|
|
233
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
234
|
+
stroke-width: 1px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.node .label {
|
|
238
|
+
text-align: center;
|
|
239
|
+
}
|
|
240
|
+
.node.clickable {
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.arrowheadPath {
|
|
245
|
+
fill: `).concat(t.arrowheadColor,`;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.edgePath .path {
|
|
249
|
+
stroke: `).concat(t.lineColor,`;
|
|
250
|
+
stroke-width: 2.0px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.flowchart-link {
|
|
254
|
+
stroke: `).concat(t.lineColor,`;
|
|
255
|
+
fill: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.edgeLabel {
|
|
259
|
+
background-color: `).concat(t.edgeLabelBackground,`;
|
|
260
|
+
rect {
|
|
261
|
+
opacity: 0.5;
|
|
262
|
+
background-color: `).concat(t.edgeLabelBackground,`;
|
|
263
|
+
fill: `).concat(t.edgeLabelBackground,`;
|
|
264
|
+
}
|
|
265
|
+
text-align: center;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.cluster rect {
|
|
269
|
+
fill: `).concat(t.clusterBkg,`;
|
|
270
|
+
stroke: `).concat(t.clusterBorder,`;
|
|
271
|
+
stroke-width: 1px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.cluster text {
|
|
275
|
+
fill: `).concat(t.titleColor,`;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.cluster span {
|
|
279
|
+
color: `).concat(t.titleColor,`;
|
|
280
|
+
}
|
|
281
|
+
/* .cluster div {
|
|
282
|
+
color: `).concat(t.titleColor,`;
|
|
283
|
+
} */
|
|
284
|
+
|
|
285
|
+
div.mermaidTooltip {
|
|
286
|
+
position: absolute;
|
|
287
|
+
text-align: center;
|
|
288
|
+
max-width: 200px;
|
|
289
|
+
padding: 2px;
|
|
290
|
+
font-family: `).concat(t.fontFamily,`;
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
background: `).concat(t.tertiaryColor,`;
|
|
293
|
+
border: 1px solid `).concat(t.border2,`;
|
|
294
|
+
border-radius: 2px;
|
|
295
|
+
pointer-events: none;
|
|
296
|
+
z-index: 100;
|
|
297
|
+
}
|
|
298
|
+
`)},z_=function(t){return`
|
|
299
|
+
defs #statediagram-barbEnd {
|
|
300
|
+
fill: `.concat(t.transitionColor,`;
|
|
301
|
+
stroke: `).concat(t.transitionColor,`;
|
|
302
|
+
}
|
|
303
|
+
g.stateGroup text {
|
|
304
|
+
fill: `).concat(t.nodeBorder,`;
|
|
305
|
+
stroke: none;
|
|
306
|
+
font-size: 10px;
|
|
307
|
+
}
|
|
308
|
+
g.stateGroup text {
|
|
309
|
+
fill: `).concat(t.textColor,`;
|
|
310
|
+
stroke: none;
|
|
311
|
+
font-size: 10px;
|
|
312
|
+
|
|
313
|
+
}
|
|
314
|
+
g.stateGroup .state-title {
|
|
315
|
+
font-weight: bolder;
|
|
316
|
+
fill: `).concat(t.stateLabelColor,`;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
g.stateGroup rect {
|
|
320
|
+
fill: `).concat(t.mainBkg,`;
|
|
321
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
g.stateGroup line {
|
|
325
|
+
stroke: `).concat(t.lineColor,`;
|
|
326
|
+
stroke-width: 1;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.transition {
|
|
330
|
+
stroke: `).concat(t.transitionColor,`;
|
|
331
|
+
stroke-width: 1;
|
|
332
|
+
fill: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.stateGroup .composit {
|
|
336
|
+
fill: `).concat(t.background,`;
|
|
337
|
+
border-bottom: 1px
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.stateGroup .alt-composit {
|
|
341
|
+
fill: #e0e0e0;
|
|
342
|
+
border-bottom: 1px
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.state-note {
|
|
346
|
+
stroke: `).concat(t.noteBorderColor,`;
|
|
347
|
+
fill: `).concat(t.noteBkgColor,`;
|
|
348
|
+
|
|
349
|
+
text {
|
|
350
|
+
fill: `).concat(t.noteTextColor,`;
|
|
351
|
+
stroke: none;
|
|
352
|
+
font-size: 10px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.stateLabel .box {
|
|
357
|
+
stroke: none;
|
|
358
|
+
stroke-width: 0;
|
|
359
|
+
fill: `).concat(t.mainBkg,`;
|
|
360
|
+
opacity: 0.5;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.edgeLabel .label rect {
|
|
364
|
+
fill: `).concat(t.labelBackgroundColor,`;
|
|
365
|
+
opacity: 0.5;
|
|
366
|
+
}
|
|
367
|
+
.edgeLabel .label text {
|
|
368
|
+
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
369
|
+
}
|
|
370
|
+
.label div .edgeLabel {
|
|
371
|
+
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.stateLabel text {
|
|
375
|
+
fill: `).concat(t.stateLabelColor,`;
|
|
376
|
+
font-size: 10px;
|
|
377
|
+
font-weight: bold;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.node circle.state-start {
|
|
381
|
+
fill: `).concat(t.specialStateColor,`;
|
|
382
|
+
stroke: `).concat(t.specialStateColor,`;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.node .fork-join {
|
|
386
|
+
fill: `).concat(t.specialStateColor,`;
|
|
387
|
+
stroke: `).concat(t.specialStateColor,`;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.node circle.state-end {
|
|
391
|
+
fill: `).concat(t.innerEndBackground,`;
|
|
392
|
+
stroke: `).concat(t.background,`;
|
|
393
|
+
stroke-width: 1.5
|
|
394
|
+
}
|
|
395
|
+
.end-state-inner {
|
|
396
|
+
fill: `).concat(t.compositeBackground||t.background,`;
|
|
397
|
+
// stroke: `).concat(t.background,`;
|
|
398
|
+
stroke-width: 1.5
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.node rect {
|
|
402
|
+
fill: `).concat(t.stateBkg||t.mainBkg,`;
|
|
403
|
+
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
404
|
+
stroke-width: 1px;
|
|
405
|
+
}
|
|
406
|
+
.node polygon {
|
|
407
|
+
fill: `).concat(t.mainBkg,`;
|
|
408
|
+
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
|
|
409
|
+
stroke-width: 1px;
|
|
410
|
+
}
|
|
411
|
+
#statediagram-barbEnd {
|
|
412
|
+
fill: `).concat(t.lineColor,`;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.statediagram-cluster rect {
|
|
416
|
+
fill: `).concat(t.compositeTitleBackground,`;
|
|
417
|
+
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
418
|
+
stroke-width: 1px;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.cluster-label, .nodeLabel {
|
|
422
|
+
color: `).concat(t.stateLabelColor,`;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.statediagram-cluster rect.outer {
|
|
426
|
+
rx: 5px;
|
|
427
|
+
ry: 5px;
|
|
428
|
+
}
|
|
429
|
+
.statediagram-state .divider {
|
|
430
|
+
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.statediagram-state .title-state {
|
|
434
|
+
rx: 5px;
|
|
435
|
+
ry: 5px;
|
|
436
|
+
}
|
|
437
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
438
|
+
fill: `).concat(t.compositeBackground||t.background,`;
|
|
439
|
+
}
|
|
440
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
441
|
+
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.statediagram-cluster .inner {
|
|
445
|
+
rx:0;
|
|
446
|
+
ry:0;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.statediagram-state rect.basic {
|
|
450
|
+
rx: 5px;
|
|
451
|
+
ry: 5px;
|
|
452
|
+
}
|
|
453
|
+
.statediagram-state rect.divider {
|
|
454
|
+
stroke-dasharray: 10,10;
|
|
455
|
+
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.note-edge {
|
|
459
|
+
stroke-dasharray: 5;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.statediagram-note rect {
|
|
463
|
+
fill: `).concat(t.noteBkgColor,`;
|
|
464
|
+
stroke: `).concat(t.noteBorderColor,`;
|
|
465
|
+
stroke-width: 1px;
|
|
466
|
+
rx: 0;
|
|
467
|
+
ry: 0;
|
|
468
|
+
}
|
|
469
|
+
.statediagram-note rect {
|
|
470
|
+
fill: `).concat(t.noteBkgColor,`;
|
|
471
|
+
stroke: `).concat(t.noteBorderColor,`;
|
|
472
|
+
stroke-width: 1px;
|
|
473
|
+
rx: 0;
|
|
474
|
+
ry: 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.statediagram-note text {
|
|
478
|
+
fill: `).concat(t.noteTextColor,`;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.statediagram-note .nodeLabel {
|
|
482
|
+
color: `).concat(t.noteTextColor,`;
|
|
483
|
+
}
|
|
484
|
+
.statediagram .edgeLabel {
|
|
485
|
+
color: red; // `).concat(t.noteTextColor,`;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
#dependencyStart, #dependencyEnd {
|
|
489
|
+
fill: `).concat(t.lineColor,`;
|
|
490
|
+
stroke: `).concat(t.lineColor,`;
|
|
491
|
+
stroke-width: 1;
|
|
492
|
+
}
|
|
493
|
+
`)};var Q_={flowchart:Y_,"flowchart-v2":Y_,sequence:function(t){return`.actor {
|
|
494
|
+
stroke: `.concat(t.actorBorder,`;
|
|
495
|
+
fill: `).concat(t.actorBkg,`;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
text.actor > tspan {
|
|
499
|
+
fill: `).concat(t.actorTextColor,`;
|
|
500
|
+
stroke: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.actor-line {
|
|
504
|
+
stroke: `).concat(t.actorLineColor,`;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.messageLine0 {
|
|
508
|
+
stroke-width: 1.5;
|
|
509
|
+
stroke-dasharray: none;
|
|
510
|
+
stroke: `).concat(t.signalColor,`;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.messageLine1 {
|
|
514
|
+
stroke-width: 1.5;
|
|
515
|
+
stroke-dasharray: 2, 2;
|
|
516
|
+
stroke: `).concat(t.signalColor,`;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
#arrowhead path {
|
|
520
|
+
fill: `).concat(t.signalColor,`;
|
|
521
|
+
stroke: `).concat(t.signalColor,`;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.sequenceNumber {
|
|
525
|
+
fill: `).concat(t.sequenceNumberColor,`;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
#sequencenumber {
|
|
529
|
+
fill: `).concat(t.signalColor,`;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
#crosshead path {
|
|
533
|
+
fill: `).concat(t.signalColor,`;
|
|
534
|
+
stroke: `).concat(t.signalColor,`;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.messageText {
|
|
538
|
+
fill: `).concat(t.signalTextColor,`;
|
|
539
|
+
stroke: `).concat(t.signalTextColor,`;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.labelBox {
|
|
543
|
+
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
544
|
+
fill: `).concat(t.labelBoxBkgColor,`;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.labelText, .labelText > tspan {
|
|
548
|
+
fill: `).concat(t.labelTextColor,`;
|
|
549
|
+
stroke: none;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.loopText, .loopText > tspan {
|
|
553
|
+
fill: `).concat(t.loopTextColor,`;
|
|
554
|
+
stroke: none;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.loopLine {
|
|
558
|
+
stroke-width: 2px;
|
|
559
|
+
stroke-dasharray: 2, 2;
|
|
560
|
+
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
561
|
+
fill: `).concat(t.labelBoxBorderColor,`;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.note {
|
|
565
|
+
//stroke: #decc93;
|
|
566
|
+
stroke: `).concat(t.noteBorderColor,`;
|
|
567
|
+
fill: `).concat(t.noteBkgColor,`;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.noteText, .noteText > tspan {
|
|
571
|
+
fill: `).concat(t.noteTextColor,`;
|
|
572
|
+
stroke: none;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.activation0 {
|
|
576
|
+
fill: `).concat(t.activationBkgColor,`;
|
|
577
|
+
stroke: `).concat(t.activationBorderColor,`;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.activation1 {
|
|
581
|
+
fill: `).concat(t.activationBkgColor,`;
|
|
582
|
+
stroke: `).concat(t.activationBorderColor,`;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.activation2 {
|
|
586
|
+
fill: `).concat(t.activationBkgColor,`;
|
|
587
|
+
stroke: `).concat(t.activationBorderColor,`;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.actorPopupMenu {
|
|
591
|
+
position: absolute;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.actorPopupMenuPanel {
|
|
595
|
+
position: absolute;
|
|
596
|
+
fill: `).concat(t.actorBkg,`;
|
|
597
|
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
598
|
+
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
599
|
+
}
|
|
600
|
+
.actor-man line {
|
|
601
|
+
stroke: `).concat(t.actorBorder,`;
|
|
602
|
+
fill: `).concat(t.actorBkg,`;
|
|
603
|
+
}
|
|
604
|
+
.actor-man circle, line {
|
|
605
|
+
stroke: `).concat(t.actorBorder,`;
|
|
606
|
+
fill: `).concat(t.actorBkg,`;
|
|
607
|
+
stroke-width: 2px;
|
|
608
|
+
}
|
|
609
|
+
`)},gantt:function(t){return`
|
|
610
|
+
.mermaid-main-font {
|
|
611
|
+
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
612
|
+
font-family: var(--mermaid-font-family);
|
|
613
|
+
}
|
|
614
|
+
.exclude-range {
|
|
615
|
+
fill: `.concat(t.excludeBkgColor,`;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.section {
|
|
619
|
+
stroke: none;
|
|
620
|
+
opacity: 0.2;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.section0 {
|
|
624
|
+
fill: `).concat(t.sectionBkgColor,`;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.section2 {
|
|
628
|
+
fill: `).concat(t.sectionBkgColor2,`;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.section1,
|
|
632
|
+
.section3 {
|
|
633
|
+
fill: `).concat(t.altSectionBkgColor,`;
|
|
634
|
+
opacity: 0.2;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.sectionTitle0 {
|
|
638
|
+
fill: `).concat(t.titleColor,`;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.sectionTitle1 {
|
|
642
|
+
fill: `).concat(t.titleColor,`;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.sectionTitle2 {
|
|
646
|
+
fill: `).concat(t.titleColor,`;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.sectionTitle3 {
|
|
650
|
+
fill: `).concat(t.titleColor,`;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.sectionTitle {
|
|
654
|
+
text-anchor: start;
|
|
655
|
+
// font-size: `).concat(t.ganttFontSize,`;
|
|
656
|
+
// text-height: 14px;
|
|
657
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
658
|
+
font-family: var(--mermaid-font-family);
|
|
659
|
+
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
/* Grid and axis */
|
|
664
|
+
|
|
665
|
+
.grid .tick {
|
|
666
|
+
stroke: `).concat(t.gridColor,`;
|
|
667
|
+
opacity: 0.8;
|
|
668
|
+
shape-rendering: crispEdges;
|
|
669
|
+
text {
|
|
670
|
+
font-family: `).concat(t.fontFamily,`;
|
|
671
|
+
fill: `).concat(t.textColor,`;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.grid path {
|
|
676
|
+
stroke-width: 0;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/* Today line */
|
|
681
|
+
|
|
682
|
+
.today {
|
|
683
|
+
fill: none;
|
|
684
|
+
stroke: `).concat(t.todayLineColor,`;
|
|
685
|
+
stroke-width: 2px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
/* Task styling */
|
|
690
|
+
|
|
691
|
+
/* Default task */
|
|
692
|
+
|
|
693
|
+
.task {
|
|
694
|
+
stroke-width: 2;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.taskText {
|
|
698
|
+
text-anchor: middle;
|
|
699
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
700
|
+
font-family: var(--mermaid-font-family);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
// .taskText:not([font-size]) {
|
|
704
|
+
// font-size: `).concat(t.ganttFontSize,`;
|
|
705
|
+
// }
|
|
706
|
+
|
|
707
|
+
.taskTextOutsideRight {
|
|
708
|
+
fill: `).concat(t.taskTextDarkColor,`;
|
|
709
|
+
text-anchor: start;
|
|
710
|
+
// font-size: `).concat(t.ganttFontSize,`;
|
|
711
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
712
|
+
font-family: var(--mermaid-font-family);
|
|
713
|
+
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.taskTextOutsideLeft {
|
|
717
|
+
fill: `).concat(t.taskTextDarkColor,`;
|
|
718
|
+
text-anchor: end;
|
|
719
|
+
// font-size: `).concat(t.ganttFontSize,`;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/* Special case clickable */
|
|
723
|
+
.task.clickable {
|
|
724
|
+
cursor: pointer;
|
|
725
|
+
}
|
|
726
|
+
.taskText.clickable {
|
|
727
|
+
cursor: pointer;
|
|
728
|
+
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
729
|
+
font-weight: bold;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.taskTextOutsideLeft.clickable {
|
|
733
|
+
cursor: pointer;
|
|
734
|
+
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
735
|
+
font-weight: bold;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.taskTextOutsideRight.clickable {
|
|
739
|
+
cursor: pointer;
|
|
740
|
+
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
741
|
+
font-weight: bold;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/* Specific task settings for the sections*/
|
|
745
|
+
|
|
746
|
+
.taskText0,
|
|
747
|
+
.taskText1,
|
|
748
|
+
.taskText2,
|
|
749
|
+
.taskText3 {
|
|
750
|
+
fill: `).concat(t.taskTextColor,`;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.task0,
|
|
754
|
+
.task1,
|
|
755
|
+
.task2,
|
|
756
|
+
.task3 {
|
|
757
|
+
fill: `).concat(t.taskBkgColor,`;
|
|
758
|
+
stroke: `).concat(t.taskBorderColor,`;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.taskTextOutside0,
|
|
762
|
+
.taskTextOutside2
|
|
763
|
+
{
|
|
764
|
+
fill: `).concat(t.taskTextOutsideColor,`;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.taskTextOutside1,
|
|
768
|
+
.taskTextOutside3 {
|
|
769
|
+
fill: `).concat(t.taskTextOutsideColor,`;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
/* Active task */
|
|
774
|
+
|
|
775
|
+
.active0,
|
|
776
|
+
.active1,
|
|
777
|
+
.active2,
|
|
778
|
+
.active3 {
|
|
779
|
+
fill: `).concat(t.activeTaskBkgColor,`;
|
|
780
|
+
stroke: `).concat(t.activeTaskBorderColor,`;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.activeText0,
|
|
784
|
+
.activeText1,
|
|
785
|
+
.activeText2,
|
|
786
|
+
.activeText3 {
|
|
787
|
+
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/* Completed task */
|
|
792
|
+
|
|
793
|
+
.done0,
|
|
794
|
+
.done1,
|
|
795
|
+
.done2,
|
|
796
|
+
.done3 {
|
|
797
|
+
stroke: `).concat(t.doneTaskBorderColor,`;
|
|
798
|
+
fill: `).concat(t.doneTaskBkgColor,`;
|
|
799
|
+
stroke-width: 2;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.doneText0,
|
|
803
|
+
.doneText1,
|
|
804
|
+
.doneText2,
|
|
805
|
+
.doneText3 {
|
|
806
|
+
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
/* Tasks on the critical line */
|
|
811
|
+
|
|
812
|
+
.crit0,
|
|
813
|
+
.crit1,
|
|
814
|
+
.crit2,
|
|
815
|
+
.crit3 {
|
|
816
|
+
stroke: `).concat(t.critBorderColor,`;
|
|
817
|
+
fill: `).concat(t.critBkgColor,`;
|
|
818
|
+
stroke-width: 2;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.activeCrit0,
|
|
822
|
+
.activeCrit1,
|
|
823
|
+
.activeCrit2,
|
|
824
|
+
.activeCrit3 {
|
|
825
|
+
stroke: `).concat(t.critBorderColor,`;
|
|
826
|
+
fill: `).concat(t.activeTaskBkgColor,`;
|
|
827
|
+
stroke-width: 2;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.doneCrit0,
|
|
831
|
+
.doneCrit1,
|
|
832
|
+
.doneCrit2,
|
|
833
|
+
.doneCrit3 {
|
|
834
|
+
stroke: `).concat(t.critBorderColor,`;
|
|
835
|
+
fill: `).concat(t.doneTaskBkgColor,`;
|
|
836
|
+
stroke-width: 2;
|
|
837
|
+
cursor: pointer;
|
|
838
|
+
shape-rendering: crispEdges;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.milestone {
|
|
842
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.milestoneText {
|
|
846
|
+
font-style: italic;
|
|
847
|
+
}
|
|
848
|
+
.doneCritText0,
|
|
849
|
+
.doneCritText1,
|
|
850
|
+
.doneCritText2,
|
|
851
|
+
.doneCritText3 {
|
|
852
|
+
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.activeCritText0,
|
|
856
|
+
.activeCritText1,
|
|
857
|
+
.activeCritText2,
|
|
858
|
+
.activeCritText3 {
|
|
859
|
+
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.titleText {
|
|
863
|
+
text-anchor: middle;
|
|
864
|
+
font-size: 18px;
|
|
865
|
+
fill: `).concat(t.textColor,` ;
|
|
866
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
867
|
+
font-family: var(--mermaid-font-family);
|
|
868
|
+
}
|
|
869
|
+
`)},classDiagram:M_,"classDiagram-v2":M_,class:M_,stateDiagram:z_,state:z_,git:function(){return`
|
|
870
|
+
.commit-id,
|
|
871
|
+
.commit-msg,
|
|
872
|
+
.branch-label {
|
|
873
|
+
fill: lightgrey;
|
|
874
|
+
color: lightgrey;
|
|
875
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
876
|
+
font-family: var(--mermaid-font-family);
|
|
877
|
+
}
|
|
878
|
+
`},info:function(){return""},pie:function(t){return`
|
|
879
|
+
.pieCircle{
|
|
880
|
+
stroke: `.concat(t.pieStrokeColor,`;
|
|
881
|
+
stroke-width : `).concat(t.pieStrokeWidth,`;
|
|
882
|
+
opacity : `).concat(t.pieOpacity,`;
|
|
883
|
+
}
|
|
884
|
+
.pieTitleText {
|
|
885
|
+
text-anchor: middle;
|
|
886
|
+
font-size: `).concat(t.pieTitleTextSize,`;
|
|
887
|
+
fill: `).concat(t.pieTitleTextColor,`;
|
|
888
|
+
font-family: `).concat(t.fontFamily,`;
|
|
889
|
+
}
|
|
890
|
+
.slice {
|
|
891
|
+
font-family: `).concat(t.fontFamily,`;
|
|
892
|
+
fill: `).concat(t.pieSectionTextColor,`;
|
|
893
|
+
font-size:`).concat(t.pieSectionTextSize,`;
|
|
894
|
+
// fill: white;
|
|
895
|
+
}
|
|
896
|
+
.legend text {
|
|
897
|
+
fill: `).concat(t.pieLegendTextColor,`;
|
|
898
|
+
font-family: `).concat(t.fontFamily,`;
|
|
899
|
+
font-size: `).concat(t.pieLegendTextSize,`;
|
|
900
|
+
}
|
|
901
|
+
`)},er:function(t){return`
|
|
902
|
+
.entityBox {
|
|
903
|
+
fill: `.concat(t.mainBkg,`;
|
|
904
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.attributeBoxOdd {
|
|
908
|
+
fill: #ffffff;
|
|
909
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.attributeBoxEven {
|
|
913
|
+
fill: #f2f2f2;
|
|
914
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.relationshipLabelBox {
|
|
918
|
+
fill: `).concat(t.tertiaryColor,`;
|
|
919
|
+
opacity: 0.7;
|
|
920
|
+
background-color: `).concat(t.tertiaryColor,`;
|
|
921
|
+
rect {
|
|
922
|
+
opacity: 0.5;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
.relationshipLine {
|
|
927
|
+
stroke: `).concat(t.lineColor,`;
|
|
928
|
+
}
|
|
929
|
+
`)},journey:function(t){return`.label {
|
|
930
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
931
|
+
font-family: var(--mermaid-font-family);
|
|
932
|
+
color: `.concat(t.textColor,`;
|
|
933
|
+
}
|
|
934
|
+
.mouth {
|
|
935
|
+
stroke: #666;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
line {
|
|
939
|
+
stroke: `).concat(t.textColor,`
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.legend {
|
|
943
|
+
fill: `).concat(t.textColor,`;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.label text {
|
|
947
|
+
fill: #333;
|
|
948
|
+
}
|
|
949
|
+
.label {
|
|
950
|
+
color: `).concat(t.textColor,`
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.face {
|
|
954
|
+
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
|
|
955
|
+
stroke: #999;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.node rect,
|
|
959
|
+
.node circle,
|
|
960
|
+
.node ellipse,
|
|
961
|
+
.node polygon,
|
|
962
|
+
.node path {
|
|
963
|
+
fill: `).concat(t.mainBkg,`;
|
|
964
|
+
stroke: `).concat(t.nodeBorder,`;
|
|
965
|
+
stroke-width: 1px;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.node .label {
|
|
969
|
+
text-align: center;
|
|
970
|
+
}
|
|
971
|
+
.node.clickable {
|
|
972
|
+
cursor: pointer;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.arrowheadPath {
|
|
976
|
+
fill: `).concat(t.arrowheadColor,`;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.edgePath .path {
|
|
980
|
+
stroke: `).concat(t.lineColor,`;
|
|
981
|
+
stroke-width: 1.5px;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.flowchart-link {
|
|
985
|
+
stroke: `).concat(t.lineColor,`;
|
|
986
|
+
fill: none;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.edgeLabel {
|
|
990
|
+
background-color: `).concat(t.edgeLabelBackground,`;
|
|
991
|
+
rect {
|
|
992
|
+
opacity: 0.5;
|
|
993
|
+
}
|
|
994
|
+
text-align: center;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.cluster rect {
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.cluster text {
|
|
1001
|
+
fill: `).concat(t.titleColor,`;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
div.mermaidTooltip {
|
|
1005
|
+
position: absolute;
|
|
1006
|
+
text-align: center;
|
|
1007
|
+
max-width: 200px;
|
|
1008
|
+
padding: 2px;
|
|
1009
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
1010
|
+
font-family: var(--mermaid-font-family);
|
|
1011
|
+
font-size: 12px;
|
|
1012
|
+
background: `).concat(t.tertiaryColor,`;
|
|
1013
|
+
border: 1px solid `).concat(t.border2,`;
|
|
1014
|
+
border-radius: 2px;
|
|
1015
|
+
pointer-events: none;
|
|
1016
|
+
z-index: 100;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
.task-type-0, .section-type-0 {
|
|
1020
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
|
|
1021
|
+
}
|
|
1022
|
+
.task-type-1, .section-type-1 {
|
|
1023
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
|
|
1024
|
+
}
|
|
1025
|
+
.task-type-2, .section-type-2 {
|
|
1026
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
|
|
1027
|
+
}
|
|
1028
|
+
.task-type-3, .section-type-3 {
|
|
1029
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
|
|
1030
|
+
}
|
|
1031
|
+
.task-type-4, .section-type-4 {
|
|
1032
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
|
|
1033
|
+
}
|
|
1034
|
+
.task-type-5, .section-type-5 {
|
|
1035
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
|
|
1036
|
+
}
|
|
1037
|
+
.task-type-6, .section-type-6 {
|
|
1038
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
|
|
1039
|
+
}
|
|
1040
|
+
.task-type-7, .section-type-7 {
|
|
1041
|
+
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.actor-0 {
|
|
1045
|
+
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
|
|
1046
|
+
}
|
|
1047
|
+
.actor-1 {
|
|
1048
|
+
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
|
|
1049
|
+
}
|
|
1050
|
+
.actor-2 {
|
|
1051
|
+
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
|
|
1052
|
+
}
|
|
1053
|
+
.actor-3 {
|
|
1054
|
+
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
|
|
1055
|
+
}
|
|
1056
|
+
.actor-4 {
|
|
1057
|
+
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
|
|
1058
|
+
}
|
|
1059
|
+
.actor-5 {
|
|
1060
|
+
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
}
|
|
1064
|
+
`)},requirement:function(t){return`
|
|
1065
|
+
|
|
1066
|
+
marker {
|
|
1067
|
+
fill: `.concat(t.relationColor,`;
|
|
1068
|
+
stroke: `).concat(t.relationColor,`;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
marker.cross {
|
|
1072
|
+
stroke: `).concat(t.lineColor,`;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
svg {
|
|
1076
|
+
font-family: `).concat(t.fontFamily,`;
|
|
1077
|
+
font-size: `).concat(t.fontSize,`;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.reqBox {
|
|
1081
|
+
fill: `).concat(t.requirementBackground,`;
|
|
1082
|
+
fill-opacity: 100%;
|
|
1083
|
+
stroke: `).concat(t.requirementBorderColor,`;
|
|
1084
|
+
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.reqTitle, .reqLabel{
|
|
1088
|
+
fill: `).concat(t.requirementTextColor,`;
|
|
1089
|
+
}
|
|
1090
|
+
.reqLabelBox {
|
|
1091
|
+
fill: `).concat(t.relationLabelBackground,`;
|
|
1092
|
+
fill-opacity: 100%;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.req-title-line {
|
|
1096
|
+
stroke: `).concat(t.requirementBorderColor,`;
|
|
1097
|
+
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
1098
|
+
}
|
|
1099
|
+
.relationshipLine {
|
|
1100
|
+
stroke: `).concat(t.relationColor,`;
|
|
1101
|
+
stroke-width: 1;
|
|
1102
|
+
}
|
|
1103
|
+
.relationshipLabel {
|
|
1104
|
+
fill: `).concat(t.relationLabelColor,`;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
`)}};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 U_=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},ty={};function q_(t){var e;Tf(t.git),C3(t.flowchart),T2(t.flowchart),t.sequenceDiagram!==void 0&&U.setConf(qi(t.sequence,t.sequenceDiagram)),U.setConf(t.sequence),t.gantt,Qv(t.class),t.state,zl(t.state),U2(t.class),v3(t.er),j_(t.journey),z3(t.requirement),e=t.class,Object.keys(e).forEach((function(r){e[r]}))}var K_=Object.freeze({render:function(t,e,r,o){yl();var u=e,c=Vn.detectInit(u);c&&(U0(c),Vv(c));var h=Qt();e.length>h.maxTextSize&&(u="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var g=Ve("body");if(o!==void 0){if(h.securityLevel==="sandbox"){var w=Ve("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Ve(w.nodes()[0].contentDocument.body)).node().style.margin=0}if(o.innerHTML="",h.securityLevel==="sandbox"){var _=Ve(o).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Ve(_.nodes()[0].contentDocument.body)).node().style.margin=0}else g=Ve(o);g.append("div").attr("id","d"+t).attr("style","font-family: "+h.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=h.securityLevel!=="sandbox"?document.querySelector("#d"+t):document.querySelector("#i"+t))&&D.remove(),h.securityLevel==="sandbox"){var P=Ve("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Ve(P.nodes()[0].contentDocument.body)).node().style.margin=0}else g=Ve("body");g.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}u=u.replace(/style.*:\S*#.*;/g,(function(yt){return yt.substring(0,yt.length-1)})).replace(/classDef.*:\S*#.*;/g,(function(yt){return yt.substring(0,yt.length-1)})).replace(/#\w+;/g,(function(yt){var Ft=yt.substring(1,yt.length-1);return/^\+?\d+$/.test(Ft)?"fl°°"+Ft+"¶ß":"fl°"+Ft+"¶ß"}));var q=g.select("#d"+t).node(),ot=Vn.detectType(u,h),tt=q.firstChild,gt=tt.firstChild,ht="";if(h.themeCSS!==void 0&&(ht+=`
|
|
1108
|
+
`.concat(h.themeCSS)),h.fontFamily!==void 0&&(ht+=`
|
|
1109
|
+
:root { --mermaid-font-family: `.concat(h.fontFamily,"}")),h.altFontFamily!==void 0&&(ht+=`
|
|
1110
|
+
:root { --mermaid-alt-font-family: `.concat(h.altFontFamily,"}")),ot==="flowchart"||ot==="flowchart-v2"||ot==="graph"){var wt=(function(yt){y.info("Extracting classes"),xn.clear();try{var Ft=oc().parser;return Ft.yy=xn,Ft.parse(yt),xn.getClasses()}catch{return}})(u),Tt=h.htmlLabels||h.flowchart.htmlLabels;for(var Pt in wt)Tt?(ht+=`
|
|
1111
|
+
.`.concat(Pt," > * { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),ht+=`
|
|
1112
|
+
.`.concat(Pt," span { ").concat(wt[Pt].styles.join(" !important; ")," !important; }")):(ht+=`
|
|
1113
|
+
.`.concat(Pt," path { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),ht+=`
|
|
1114
|
+
.`.concat(Pt," rect { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),ht+=`
|
|
1115
|
+
.`.concat(Pt," polygon { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),ht+=`
|
|
1116
|
+
.`.concat(Pt," ellipse { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),ht+=`
|
|
1117
|
+
.`.concat(Pt," circle { ").concat(wt[Pt].styles.join(" !important; ")," !important; }"),wt[Pt].textStyles&&(ht+=`
|
|
1118
|
+
.`.concat(Pt," tspan { ").concat(wt[Pt].textStyles.join(" !important; ")," !important; }")))}var Gt=(function(yt,Ft){return ws(Ug("".concat(yt,"{").concat(Ft,"}")),cf)})("#".concat(t),(function(yt,Ft,bt){return` {
|
|
1119
|
+
font-family: `.concat(bt.fontFamily,`;
|
|
1120
|
+
font-size: `).concat(bt.fontSize,`;
|
|
1121
|
+
fill: `).concat(bt.textColor,`
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/* Classes common for multiple diagrams */
|
|
1125
|
+
|
|
1126
|
+
.error-icon {
|
|
1127
|
+
fill: `).concat(bt.errorBkgColor,`;
|
|
1128
|
+
}
|
|
1129
|
+
.error-text {
|
|
1130
|
+
fill: `).concat(bt.errorTextColor,`;
|
|
1131
|
+
stroke: `).concat(bt.errorTextColor,`;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.edge-thickness-normal {
|
|
1135
|
+
stroke-width: 2px;
|
|
1136
|
+
}
|
|
1137
|
+
.edge-thickness-thick {
|
|
1138
|
+
stroke-width: 3.5px
|
|
1139
|
+
}
|
|
1140
|
+
.edge-pattern-solid {
|
|
1141
|
+
stroke-dasharray: 0;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.edge-pattern-dashed{
|
|
1145
|
+
stroke-dasharray: 3;
|
|
1146
|
+
}
|
|
1147
|
+
.edge-pattern-dotted {
|
|
1148
|
+
stroke-dasharray: 2;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.marker {
|
|
1152
|
+
fill: `).concat(bt.lineColor,`;
|
|
1153
|
+
stroke: `).concat(bt.lineColor,`;
|
|
1154
|
+
}
|
|
1155
|
+
.marker.cross {
|
|
1156
|
+
stroke: `).concat(bt.lineColor,`;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
svg {
|
|
1160
|
+
font-family: `).concat(bt.fontFamily,`;
|
|
1161
|
+
font-size: `).concat(bt.fontSize,`;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
`).concat(Q_[yt](bt),`
|
|
1165
|
+
|
|
1166
|
+
`).concat(Ft,`
|
|
1167
|
+
`)})(ot,ht,h.themeVariables)),Et=document.createElement("style");Et.innerHTML="#".concat(t," ")+Gt,tt.insertBefore(Et,gt);try{switch(ot){case"git":h.flowchart.arrowMarkerAbsolute=h.arrowMarkerAbsolute,Tf(h.git),(function(yt,Ft,bt){try{var _e=P2().parser;_e.yy=au,_e.yy.clear();var we,Ut=Qt().securityLevel;Ut==="sandbox"&&(we=Ve("#i"+Ft));var Te=Ve(Ut==="sandbox"?we.nodes()[0].contentDocument.body:"body");Ut==="sandbox"&&we.nodes()[0].contentDocument,y.debug("in gitgraph renderer",yt+`
|
|
1168
|
+
`,"id:",Ft,bt),_e.parse(yt+`
|
|
1169
|
+
`),Jn=Object.assign(Jn,L3,au.getOptions()),y.debug("effective options",Jn);var Ee=au.getDirection();ou=au.getCommits();var be=au.getBranchesAsObjArray();Ee==="BT"&&(Jn.nodeLabel.x=be.length*Jn.branchOffset,Jn.nodeLabel.width="100%",Jn.nodeLabel.y=-2*Jn.nodeRadius);var he=Te.select('[id="'.concat(Ft,'"]'));for(var Pe in(function(Ke){Ke.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Jn.nodeRadius).attr("cx",0).attr("cy",0),Ke.select("#def-commit").append("foreignObject").attr("width",Jn.nodeLabel.width).attr("height",Jn.nodeLabel.height).attr("x",Jn.nodeLabel.x).attr("y",Jn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")})(he),lc=1,be){var Re=be[Pe];yd(he,Re.commit.id,be,Ee),md(he,Re.commit,Ee),lc++}he.attr("height",(function(){return Ee==="BT"?Object.keys(ou).length*Jn.nodeSpacing:(be.length+1)*Jn.branchOffset}))}catch(Ke){y.error("Error while rendering gitgraph"),y.error(Ke.message)}})(u,t,!1);break;case"flowchart":h.flowchart.arrowMarkerAbsolute=h.arrowMarkerAbsolute,C3(h.flowchart),a_(u,t);break;case"flowchart-v2":h.flowchart.arrowMarkerAbsolute=h.arrowMarkerAbsolute,T2(h.flowchart),E2(u,t);break;case"sequence":h.sequence.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.sequenceDiagram?(U.setConf(Object.assign(h.sequence,h.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):U.setConf(h.sequence),U.draw(u,t);break;case"gantt":h.gantt.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.gantt,N3(u,t);break;case"class":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,Qv(h.class),Yr(u,t);break;case"classDiagram":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,(function(yt){Object.keys(yt).forEach((function(Ft){d2[Ft]=yt[Ft]}))})(h.class),(function(yt,Ft){y.info("Drawing class - ",Ft),mo.clear(),nc.parser.parse(yt);var bt=Qt().flowchart,_e=Qt().securityLevel;y.info("config:",bt);var we,Ut=bt.nodeSpacing||50,Te=bt.rankSpacing||50,Ee=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:mo.getDirection(),nodesep:Ut,ranksep:Te,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),be=mo.getClasses(),he=mo.getRelations();y.info(he),(function(br,Pa){var ka=Object.keys(br);y.info("keys:",ka),y.info(br),ka.forEach((function(Xn){var An=br[Xn],no="";An.cssClasses.length>0&&(no=no+" "+An.cssClasses.join(" "));var xo,Ho,bi={labelStyle:""},Df=An.text!==void 0?An.text:An.id;An.type,Ho="class_box",Pa.setNode(An.id,{labelStyle:bi.labelStyle,shape:Ho,labelText:(xo=Df,rr.sanitizeText(xo,Qt())),classData:An,rx:0,ry:0,class:no,style:bi.style,id:An.id,domId:An.domId,haveCallback:An.haveCallback,link:An.link,width:An.type==="group"?500:void 0,type:An.type,padding:Qt().flowchart.padding}),y.info("setNode",{labelStyle:bi.labelStyle,shape:Ho,labelText:Df,rx:0,ry:0,class:no,style:bi.style,id:An.id,width:An.type==="group"?500:void 0,type:An.type,padding:Qt().flowchart.padding})}))})(be,Ee),(function(br,Pa){var ka=0;br.forEach((function(Xn){ka++;var An={classes:"relation"};An.pattern=Xn.relation.lineType==1?"dashed":"solid",An.id="id"+ka,Xn.type==="arrow_open"?An.arrowhead="none":An.arrowhead="normal",y.info(An,Xn),An.startLabelRight=Xn.relationTitle1==="none"?"":Xn.relationTitle1,An.endLabelLeft=Xn.relationTitle2==="none"?"":Xn.relationTitle2,An.arrowTypeStart=p3(Xn.relation.type1),An.arrowTypeEnd=p3(Xn.relation.type2);var no="",xo="";if(Xn.style!==void 0){var Ho=Js(Xn.style);no=Ho.style,xo=Ho.labelStyle}else no="fill:none";An.style=no,An.labelStyle=xo,Xn.interpolate!==void 0?An.curve=Po(Xn.interpolate,xr):br.defaultInterpolate!==void 0?An.curve=Po(br.defaultInterpolate,xr):An.curve=Po(d2.curve,xr),Xn.text=Xn.title,Xn.text===void 0?Xn.style!==void 0&&(An.arrowheadStyle="fill: #333"):(An.arrowheadStyle="fill: #333",An.labelpos="c",Qt().flowchart.htmlLabels?(An.labelType="html",An.label='<span class="edgeLabel">'+Xn.text+"</span>"):(An.labelType="text",An.label=Xn.text.replace(rr.lineBreakRegex,`
|
|
1170
|
+
`),Xn.style===void 0&&(An.style=An.style||"stroke: #333; stroke-width: 1.5px;fill:none"),An.labelStyle=An.labelStyle.replace("color:","fill:"))),Pa.setEdge(Xn.id1,Xn.id2,An,ka)}))})(he,Ee),_e==="sandbox"&&(we=Ve("#i"+Ft));var Pe=Ve(_e==="sandbox"?we.nodes()[0].contentDocument.body:"body"),Re=Pe.select('[id="'.concat(Ft,'"]'));Re.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var Ke=Pe.select("#"+Ft+" g");f2(Ke,Ee,["aggregation","extension","composition","dependency"],"classDiagram",Ft);var dn=Re.node().getBBox(),He=dn.width+16,dr=dn.height+16;if(y.debug("new ViewBox 0 0 ".concat(He," ").concat(dr),"translate(".concat(8-Ee._label.marginx,", ").concat(8-Ee._label.marginy,")")),Ka(Re,dr,He,bt.useMaxWidth),Re.attr("viewBox","0 0 ".concat(He," ").concat(dr)),Re.select("g").attr("transform","translate(".concat(8-Ee._label.marginx,", ").concat(8-dn.y,")")),!bt.htmlLabels)for(var Er=_e==="sandbox"?we.nodes()[0].contentDocument:document,On=Er.querySelectorAll('[id="'+Ft+'"] .edgeLabel .label'),Ur=0;Ur<On.length;Ur++){var fr=On[Ur],hn=fr.getBBox(),Dn=Er.createElementNS("http://www.w3.org/2000/svg","rect");Dn.setAttribute("rx",0),Dn.setAttribute("ry",0),Dn.setAttribute("width",hn.width),Dn.setAttribute("height",hn.height),fr.insertBefore(Dn,fr.firstChild)}})(u,t);break;case"state":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.state,Sn(u,t);break;case"stateDiagram":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,zl(h.state),(function(yt,Ft){y.info("Drawing state diagram (v2)",Ft),Kt.clear(),Nn={};var bt=Q().parser;bt.yy=Kt,bt.parse(yt);var _e=Kt.getDirection();_e===void 0&&(_e="LR");var we=Qt().state,Ut=we.nodeSpacing||50,Te=we.rankSpacing||50,Ee=Qt().securityLevel;y.info(Kt.getRootDocV2()),Kt.extract(Kt.getRootDocV2()),y.info(Kt.getRootDocV2());var be,he=new(_i()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:vc(Kt.getRootDocV2()),nodesep:Ut,ranksep:Te,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));oi(he,void 0,Kt.getRootDocV2(),!0),Ee==="sandbox"&&(be=Ve("#i"+Ft));var Pe=Ve(Ee==="sandbox"?be.nodes()[0].contentDocument.body:"body"),Re=(Ee==="sandbox"&&be.nodes()[0].contentDocument,Pe.select('[id="'.concat(Ft,'"]'))),Ke=Pe.select("#"+Ft+" g");f2(Ke,he,["barb"],"statediagram",Ft);var dn=Re.node().getBBox(),He=dn.width+16,dr=dn.height+16;Re.attr("class","statediagram");var Er=Re.node().getBBox();Ka(Re,dr,1.75*He,we.useMaxWidth);var On="".concat(Er.x-8," ").concat(Er.y-8," ").concat(He," ").concat(dr);y.debug("viewBox ".concat(On)),Re.attr("viewBox",On);for(var Ur=document.querySelectorAll('[id="'+Ft+'"] .edgeLabel .label'),fr=0;fr<Ur.length;fr++){var hn=Ur[fr],Dn=hn.getBBox(),br=document.createElementNS("http://www.w3.org/2000/svg","rect");br.setAttribute("rx",0),br.setAttribute("ry",0),br.setAttribute("width",Dn.width),br.setAttribute("height",Dn.height),hn.insertBefore(br,hn.firstChild)}})(u,t);break;case"info":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,U2(h.class),(function(yt,Ft,bt){try{var _e=z2().parser;_e.yy=F3,y.debug(`Renering info diagram
|
|
1171
|
+
`+yt);var we,Ut=Qt().securityLevel;Ut==="sandbox"&&(we=Ve("#i"+Ft));var Te=Ve(Ut==="sandbox"?we.nodes()[0].contentDocument.body:"body");Ut==="sandbox"&&we.nodes()[0].contentDocument,_e.parse(yt),y.debug("Parsed info diagram");var Ee=Te.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 "+bt),Ee.attr("height",100),Ee.attr("width",400)}catch(be){y.error("Error while rendering info diagram"),y.error(be.message)}})(u,t,L0);break;case"pie":h_(u,t);break;case"er":v3(h.er),Z5(u,t);break;case"journey":j_(h.journey),Z_(u,t);break;case"requirement":z3(h.requirement),U3(u,t)}}catch(yt){throw(function(Ft,bt){try{y.debug(`Renering svg for syntax error
|
|
1172
|
+
`);var _e=Ve("#"+Ft),we=_e.append("g");we.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"),we.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"),we.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"),we.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"),we.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"),we.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"),we.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"),we.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+bt),_e.attr("height",100),_e.attr("width",400),_e.attr("viewBox","768 0 512 512")}catch(Ut){y.error("Error while rendering info diagram"),y.error(Ut.message)}})(t,L0),yt}g.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ee=g.select("#d"+t).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",h.arrowMarkerAbsolute),h.arrowMarkerAbsolute&&h.arrowMarkerAbsolute!=="false"||h.arrowMarkerAbsolute==="sandbox"||(ee=ee.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ee=(ee=U_(ee)).replace(/<br>/g,"<br/>"),h.securityLevel==="sandbox"){var ie=g.select("#d"+t+" svg").node(),kt="100%";ie&&(kt=ie.viewBox.baseVal.height+"px"),ee='<iframe style="width:'.concat("100%",";height:").concat(kt,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+ee+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
1173
|
+
The “iframe” tag is not supported by your browser.
|
|
1174
|
+
</iframe>`)}if(r!==void 0)switch(ot){case"flowchart":case"flowchart-v2":r(ee,xn.bindFunctions);break;case"gantt":r(ee,Nl.bindFunctions);break;case"class":case"classDiagram":r(ee,mo.bindFunctions);break;default:r(ee)}else y.debug("CB = undefined!");kd.forEach((function(yt){yt()})),kd=[];var It=h.securityLevel==="sandbox"?"#i"+t:"#d"+t,Ct=Ve(It).node();return Ct!==null&&typeof Ct.remove=="function"&&Ve(It).node().remove(),ee},parse:function(t){var e=Qt(),r=Vn.detectInit(t,e);r&&y.debug("reinit ",r);var o,u=Vn.detectType(t,e);switch(y.debug("Type "+u),u){case"git":(o=P2()).parser.yy=au;break;case"flowchart":case"flowchart-v2":xn.clear(),(o=oc()).parser.yy=xn;break;case"sequence":(o=p_()).parser.yy=Q2;break;case"gantt":(o=s_()).parser.yy=Nl;break;case"class":case"classDiagram":(o=Xv()).parser.yy=mo;break;case"state":case"stateDiagram":(o=Q()).parser.yy=Kt;break;case"info":y.debug("info info info"),(o=z2()).parser.yy=F3;break;case"pie":y.debug("pie"),(o=Ef()).parser.yy=su;break;case"er":y.debug("er"),(o=g2()).parser.yy=xa;break;case"journey":y.debug("Journey"),(o=$_()).parser.yy=B_;break;case"requirement":case"requirementDiagram":y.debug("RequirementDiagram"),(o=f_()).parser.yy=fc}return o.parser.yy.graphType=u,o.parser.yy.parseError=function(c,h){throw{str:c,hash:h}},o.parse(t),o},parseDirective:function(t,e,r,o){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":ty={};break;case"type_directive":ty.type=e.toLowerCase();break;case"arg_directive":ty.args=JSON.parse(e);break;case"close_directive":(function(u,c,h){switch(y.debug("Directive type=".concat(c.type," with args:"),c.args),c.type){case"init":case"initialize":["config"].forEach((function(g){c.args[g]!==void 0&&(h==="flowchart-v2"&&(h="flowchart"),c.args[h]=c.args[g],delete c.args[g])})),y.debug("sanitize in handleDirective",c.args),U0(c.args),y.debug("sanitize in handleDirective (done)",c.args),c.args,Vv(c.args);break;case"wrap":case"nowrap":u&&u.setWrap&&u.setWrap(c.type==="wrap");break;case"themeCss":y.warn("themeCss encountered");break;default:y.warn("Unhandled directive: source: '%%{".concat(c.type,": ").concat(JSON.stringify(c.args?c.args:{}),"}%%"),c)}})(t,ty,o),ty=null}}catch(u){y.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),y.error(u.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),(function(r){Wv=qi({},r)})(t),t&&t.theme&&dl[t.theme]?t.themeVariables=dl[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=dl.default.getThemeVariables(t.themeVariables));var e=N_(t)==="object"?(function(r){return Hi=qi({},ff),Hi=qi(Hi,r),r.theme&&(Hi.themeVariables=dl[r.theme].getThemeVariables(r.themeVariables)),df=pf(Hi,gl),Hi})(t):n2();q_(e),k(e.logLevel)},reinitialize:function(){},getConfig:Qt,setConfig:function(t){return qi(df,t),Qt()},getSiteConfig:n2,updateSiteConfig:function(t){return Hi=qi(Hi,t),pf(Hi,gl),Hi},reset:function(){yl()},globalReset:function(){yl(),q_(Qt())},defaultConfig:ff});k(Qt().logLevel),yl(Qt());const ra=K_;var H_=function(){_o.startOnLoad?ra.getConfig().startOnLoad&&_o.init():_o.startOnLoad===void 0&&(y.debug("In start, no config"),ra.getConfig().startOnLoad&&_o.init())};typeof document<"u"&&window.addEventListener("load",(function(){H_()}),!1);var _o={startOnLoad:!0,htmlLabels:!0,mermaidAPI:ra,parse:ra.parse,render:ra.render,init:function(){var t,e,r=this,o=ra.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(_o.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],y.debug("Callback function found")):o.mermaid!==void 0&&(typeof o.mermaid.callback=="function"?(e=o.mermaid.callback,y.debug("Callback function found")):y.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,y.debug("Start On Load before: "+_o.startOnLoad),_o.startOnLoad!==void 0&&(y.debug("Start On Load inner: "+_o.startOnLoad),ra.updateSiteConfig({startOnLoad:_o.startOnLoad})),_o.ganttConfig!==void 0&&ra.updateSiteConfig({gantt:_o.ganttConfig});for(var u,c=new Vn.initIdGeneratior(o.deterministicIds,o.deterministicIDSeed),h=function(w){var _=t[w];if(_.getAttribute("data-processed"))return"continue";_.setAttribute("data-processed",!0);var D="mermaid-".concat(c.next());u=_.innerHTML,u=Vn.entityDecode(u).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Vn.detectInit(u);j&&y.debug("Detected early reinit: ",j);try{ra.render(D,u,(function(P,q){_.innerHTML=P,e!==void 0&&e(D),q&&q(_)}),_)}catch(P){y.warn("Syntax Error rendering"),y.warn(P),r.parseError&&r.parseError(P)}},g=0;g<t.length;g++)h(g)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(_o.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(_o.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),ra.initialize(t)},contentLoaded:H_};const J_=_o},4949:(M,N,p)=>{M.exports={graphlib:p(6614),dagre:p(1463),intersect:p(8114),render:p(5787),util:p(8355),version:p(5689)}},9144:(M,N,p)=>{var m=p(8355);function d(x,y,k,C){var S=x.append("marker").attr("id",y).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(S,k[C+"Style"]),k[C+"Class"]&&S.attr("class",k[C+"Class"])}M.exports={default:d,normal:d,vee:function(x,y,k,C){var S=x.append("marker").attr("id",y).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(S,k[C+"Style"]),k[C+"Class"]&&S.attr("class",k[C+"Class"])},undirected:function(x,y,k,C){var S=x.append("marker").attr("id",y).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(S,k[C+"Style"]),k[C+"Class"]&&S.attr("class",k[C+"Class"])}}},5632:(M,N,p)=>{var m=p(8355),d=p(4322),x=p(1322);M.exports=function(y,k){var C,S=k.nodes().filter((function(L){return m.isSubgraph(k,L)})),I=y.selectAll("g.cluster").data(S,(function(L){return L}));return I.selectAll("*").remove(),I.enter().append("g").attr("class","cluster").attr("id",(function(L){return k.node(L).id})).style("opacity",0),I=y.selectAll("g.cluster"),m.applyTransition(I,k).style("opacity",1),I.each((function(L){var Y=k.node(L),W=d.select(this);d.select(this).append("rect");var H=W.append("g").attr("class","label");x(H,Y,Y.clusterLabelPos)})),I.selectAll("rect").each((function(L){var Y=k.node(L),W=d.select(this);m.applyStyle(W,Y.style)})),C=I.exit?I.exit():I.selectAll(null),m.applyTransition(C,k).style("opacity",0).remove(),I}},6315:(M,N,p)=>{var m=p(1034),d=p(1322),x=p(8355),y=p(4322);M.exports=function(k,C){var S,I=k.selectAll("g.edgeLabel").data(C.edges(),(function(L){return x.edgeToId(L)})).classed("update",!0);return I.exit().remove(),I.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(I=k.selectAll("g.edgeLabel")).each((function(L){var Y=y.select(this);Y.select(".label").remove();var W=C.edge(L),H=d(Y,C.edge(L),0,0).classed("label",!0),V=H.node().getBBox();W.labelId&&H.attr("id",W.labelId),m.has(W,"width")||(W.width=V.width),m.has(W,"height")||(W.height=V.height)})),S=I.exit?I.exit():I.selectAll(null),x.applyTransition(S,C).style("opacity",0).remove(),I}},940:(M,N,p)=>{var m=p(1034),d=p(7584),x=p(8355),y=p(4322);function k(C,S){var I=(y.line||y.svg.line)().x((function(L){return L.x})).y((function(L){return L.y}));return(I.curve||I.interpolate)(C.curve),I(S)}M.exports=function(C,S,I){var L=C.selectAll("g.edgePath").data(S.edges(),(function(H){return x.edgeToId(H)})).classed("update",!0),Y=(function(H,V){var X=H.enter().append("g").attr("class","edgePath").style("opacity",0);return X.append("path").attr("class","path").attr("d",(function(J){var lt=V.edge(J),nt=V.node(J.v).elem;return k(lt,m.range(lt.points.length).map((function(){return dt=(_t=nt).getBBox(),{x:(At=_t.ownerSVGElement.getScreenCTM().inverse().multiply(_t.getScreenCTM()).translate(dt.width/2,dt.height/2)).e,y:At.f};var _t,dt,At})))})),X.append("defs"),X})(L,S);(function(H,V){var X=H.exit();x.applyTransition(X,V).style("opacity",0).remove()})(L,S);var W=L.merge!==void 0?L.merge(Y):L;return x.applyTransition(W,S).style("opacity",1),W.each((function(H){var V=y.select(this),X=S.edge(H);X.elem=this,X.id&&V.attr("id",X.id),x.applyClass(V,X.class,(V.classed("update")?"update ":"")+"edgePath")})),W.selectAll("path.path").each((function(H){var V=S.edge(H);V.arrowheadId=m.uniqueId("arrowhead");var X=y.select(this).attr("marker-end",(function(){return"url("+(J=location.href,lt=V.arrowheadId,J.split("#")[0]+"#"+lt+")");var J,lt})).style("fill","none");x.applyTransition(X,S).attr("d",(function(J){return(function(lt,nt){var _t=lt.edge(nt),dt=lt.node(nt.v),At=lt.node(nt.w),st=_t.points.slice(1,_t.points.length-1);return st.unshift(d(dt,st[0])),st.push(d(At,st[st.length-1])),k(_t,st)})(S,J)})),x.applyStyle(X,V.style)})),W.selectAll("defs *").remove(),W.selectAll("defs").each((function(H){var V=S.edge(H);(0,I[V.arrowhead])(y.select(this),V.arrowheadId,V,"arrowhead")})),W}},607:(M,N,p)=>{var m=p(1034),d=p(1322),x=p(8355),y=p(4322);M.exports=function(k,C,S){var I,L=C.nodes().filter((function(W){return!x.isSubgraph(C,W)})),Y=k.selectAll("g.node").data(L,(function(W){return W})).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").attr("class","node").style("opacity",0),(Y=k.selectAll("g.node")).each((function(W){var H=C.node(W),V=y.select(this);x.applyClass(V,H.class,(V.classed("update")?"update ":"")+"node"),V.select("g.label").remove();var X=V.append("g").attr("class","label"),J=d(X,H),lt=S[H.shape],nt=m.pick(J.node().getBBox(),"width","height");H.elem=this,H.id&&V.attr("id",H.id),H.labelId&&X.attr("id",H.labelId),m.has(H,"width")&&(nt.width=H.width),m.has(H,"height")&&(nt.height=H.height),nt.width+=H.paddingLeft+H.paddingRight,nt.height+=H.paddingTop+H.paddingBottom,X.attr("transform","translate("+(H.paddingLeft-H.paddingRight)/2+","+(H.paddingTop-H.paddingBottom)/2+")");var _t=y.select(this);_t.select(".label-container").remove();var dt=lt(_t,nt,H).classed("label-container",!0);x.applyStyle(dt,H.style);var At=dt.node().getBBox();H.width=At.width,H.height=At.height})),I=Y.exit?Y.exit():Y.selectAll(null),x.applyTransition(I,C).style("opacity",0).remove(),Y}},4322:(M,N,p)=>{var m;if(!m)try{m=p(7188)}catch{}m||(m=window.d3),M.exports=m},1463:(M,N,p)=>{var m;try{m=p(681)}catch{}m||(m=window.dagre),M.exports=m},6614:(M,N,p)=>{var m;try{m=p(8282)}catch{}m||(m=window.graphlib),M.exports=m},8114:(M,N,p)=>{M.exports={node:p(7584),circle:p(6587),ellipse:p(3260),polygon:p(5337),rect:p(8049)}},6587:(M,N,p)=>{var m=p(3260);M.exports=function(d,x,y){return m(d,x,x,y)}},3260:M=>{M.exports=function(N,p,m,d){var x=N.x,y=N.y,k=x-d.x,C=y-d.y,S=Math.sqrt(p*p*C*C+m*m*k*k),I=Math.abs(p*m*k/S);d.x<x&&(I=-I);var L=Math.abs(p*m*C/S);return d.y<y&&(L=-L),{x:x+I,y:y+L}}},6808:M=>{function N(p,m){return p*m>0}M.exports=function(p,m,d,x){var y,k,C,S,I,L,Y,W,H,V,X,J,lt;if(y=m.y-p.y,C=p.x-m.x,I=m.x*p.y-p.x*m.y,H=y*d.x+C*d.y+I,V=y*x.x+C*x.y+I,!(H!==0&&V!==0&&N(H,V)||(k=x.y-d.y,S=d.x-x.x,L=x.x*d.y-d.x*x.y,Y=k*p.x+S*p.y+L,W=k*m.x+S*m.y+L,Y!==0&&W!==0&&N(Y,W)||(X=y*S-k*C)==0)))return J=Math.abs(X/2),{x:(lt=C*L-S*I)<0?(lt-J)/X:(lt+J)/X,y:(lt=k*I-y*L)<0?(lt-J)/X:(lt+J)/X}}},7584:M=>{M.exports=function(N,p){return N.intersect(p)}},5337:(M,N,p)=>{var m=p(6808);M.exports=function(d,x,y){var k=d.x,C=d.y,S=[],I=Number.POSITIVE_INFINITY,L=Number.POSITIVE_INFINITY;x.forEach((function(lt){I=Math.min(I,lt.x),L=Math.min(L,lt.y)}));for(var Y=k-d.width/2-I,W=C-d.height/2-L,H=0;H<x.length;H++){var V=x[H],X=x[H<x.length-1?H+1:0],J=m(d,y,{x:Y+V.x,y:W+V.y},{x:Y+X.x,y:W+X.y});J&&S.push(J)}return S.length?(S.length>1&&S.sort((function(lt,nt){var _t=lt.x-y.x,dt=lt.y-y.y,At=Math.sqrt(_t*_t+dt*dt),st=nt.x-y.x,K=nt.y-y.y,mt=Math.sqrt(st*st+K*K);return At<mt?-1:At===mt?0:1})),S[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",d),d)}},8049:M=>{M.exports=function(N,p){var m,d,x=N.x,y=N.y,k=p.x-x,C=p.y-y,S=N.width/2,I=N.height/2;return Math.abs(C)*S>Math.abs(k)*I?(C<0&&(I=-I),m=C===0?0:I*k/C,d=I):(k<0&&(S=-S),m=S,d=k===0?0:S*C/k),{x:x+m,y:y+d}}},8284:(M,N,p)=>{var m=p(8355);M.exports=function(d,x){var y=d.append("foreignObject").attr("width","100000"),k=y.append("xhtml:div");k.attr("xmlns","http://www.w3.org/1999/xhtml");var C=x.label;switch(typeof C){case"function":k.insert(C);break;case"object":k.insert((function(){return C}));break;default:k.html(C)}m.applyStyle(k,x.labelStyle),k.style("display","inline-block"),k.style("white-space","nowrap");var S=k.node().getBoundingClientRect();return y.attr("width",S.width).attr("height",S.height),y}},1322:(M,N,p)=>{var m=p(7318),d=p(8284),x=p(8287);M.exports=function(y,k,C){var S=k.label,I=y.append("g");k.labelType==="svg"?x(I,k):typeof S!="string"||k.labelType==="html"?d(I,k):m(I,k);var L,Y=I.node().getBBox();switch(C){case"top":L=-k.height/2;break;case"bottom":L=k.height/2-Y.height;break;default:L=-Y.height/2}return I.attr("transform","translate("+-Y.width/2+","+L+")"),I}},8287:(M,N,p)=>{var m=p(8355);M.exports=function(d,x){var y=d;return y.node().appendChild(x.label),m.applyStyle(y,x.labelStyle),y}},7318:(M,N,p)=>{var m=p(8355);M.exports=function(d,x){for(var y=d.append("text"),k=(function(S){for(var I,L="",Y=!1,W=0;W<S.length;++W)I=S[W],Y?(L+=I==="n"?`
|
|
1175
|
+
`:I,Y=!1):I==="\\"?Y=!0:L+=I;return L})(x.label).split(`
|
|
1176
|
+
`),C=0;C<k.length;C++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(k[C]);return m.applyStyle(y,x.labelStyle),y}},1034:(M,N,p)=>{var m;try{m={defaults:p(1747),each:p(6073),isFunction:p(3560),isPlainObject:p(8630),pick:p(9722),has:p(8721),range:p(6026),uniqueId:p(3955)}}catch{}m||(m=window._),M.exports=m},6381:(M,N,p)=>{var m=p(8355),d=p(4322);M.exports=function(x,y){var k=x.filter((function(){return!d.select(this).classed("update")}));function C(S){var I=y.node(S);return"translate("+I.x+","+I.y+")"}k.attr("transform",C),m.applyTransition(x,y).style("opacity",1).attr("transform",C),m.applyTransition(k.selectAll("rect"),y).attr("width",(function(S){return y.node(S).width})).attr("height",(function(S){return y.node(S).height})).attr("x",(function(S){return-y.node(S).width/2})).attr("y",(function(S){return-y.node(S).height/2}))}},4577:(M,N,p)=>{var m=p(8355),d=p(4322),x=p(1034);M.exports=function(y,k){function C(S){var I=k.edge(S);return x.has(I,"x")?"translate("+I.x+","+I.y+")":""}y.filter((function(){return!d.select(this).classed("update")})).attr("transform",C),m.applyTransition(y,k).style("opacity",1).attr("transform",C)}},4849:(M,N,p)=>{var m=p(8355),d=p(4322);M.exports=function(x,y){function k(C){var S=y.node(C);return"translate("+S.x+","+S.y+")"}x.filter((function(){return!d.select(this).classed("update")})).attr("transform",k),m.applyTransition(x,y).style("opacity",1).attr("transform",k)}},5787:(M,N,p)=>{var m=p(1034),d=p(4322),x=p(1463).layout;M.exports=function(){var S=p(607),I=p(5632),L=p(6315),Y=p(940),W=p(4849),H=p(4577),V=p(6381),X=p(4418),J=p(9144),lt=function(nt,_t){(function(Rt){Rt.nodes().forEach((function(ft){var vt=Rt.node(ft);m.has(vt,"label")||Rt.children(ft).length||(vt.label=ft),m.has(vt,"paddingX")&&m.defaults(vt,{paddingLeft:vt.paddingX,paddingRight:vt.paddingX}),m.has(vt,"paddingY")&&m.defaults(vt,{paddingTop:vt.paddingY,paddingBottom:vt.paddingY}),m.has(vt,"padding")&&m.defaults(vt,{paddingLeft:vt.padding,paddingRight:vt.padding,paddingTop:vt.padding,paddingBottom:vt.padding}),m.defaults(vt,y),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function($t){vt[$t]=Number(vt[$t])})),m.has(vt,"width")&&(vt._prevWidth=vt.width),m.has(vt,"height")&&(vt._prevHeight=vt.height)})),Rt.edges().forEach((function(ft){var vt=Rt.edge(ft);m.has(vt,"label")||(vt.label=""),m.defaults(vt,k)}))})(_t);var dt=C(nt,"output"),At=C(dt,"clusters"),st=C(dt,"edgePaths"),K=L(C(dt,"edgeLabels"),_t),mt=S(C(dt,"nodes"),_t,X);x(_t),W(mt,_t),H(K,_t),Y(st,_t,J);var St=I(At,_t);V(St,_t),(function(Rt){m.each(Rt.nodes(),(function(ft){var vt=Rt.node(ft);m.has(vt,"_prevWidth")?vt.width=vt._prevWidth:delete vt.width,m.has(vt,"_prevHeight")?vt.height=vt._prevHeight:delete vt.height,delete vt._prevWidth,delete vt._prevHeight}))})(_t)};return lt.createNodes=function(nt){return arguments.length?(S=nt,lt):S},lt.createClusters=function(nt){return arguments.length?(I=nt,lt):I},lt.createEdgeLabels=function(nt){return arguments.length?(L=nt,lt):L},lt.createEdgePaths=function(nt){return arguments.length?(Y=nt,lt):Y},lt.shapes=function(nt){return arguments.length?(X=nt,lt):X},lt.arrows=function(nt){return arguments.length?(J=nt,lt):J},lt};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},k={arrowhead:"normal",curve:d.curveLinear};function C(S,I){var L=S.select("g."+I);return L.empty()&&(L=S.append("g").attr("class",I)),L}},4418:(M,N,p)=>{var m=p(8049),d=p(3260),x=p(6587),y=p(5337);M.exports={rect:function(k,C,S){var I=k.insert("rect",":first-child").attr("rx",S.rx).attr("ry",S.ry).attr("x",-C.width/2).attr("y",-C.height/2).attr("width",C.width).attr("height",C.height);return S.intersect=function(L){return m(S,L)},I},ellipse:function(k,C,S){var I=C.width/2,L=C.height/2,Y=k.insert("ellipse",":first-child").attr("x",-C.width/2).attr("y",-C.height/2).attr("rx",I).attr("ry",L);return S.intersect=function(W){return d(S,I,L,W)},Y},circle:function(k,C,S){var I=Math.max(C.width,C.height)/2,L=k.insert("circle",":first-child").attr("x",-C.width/2).attr("y",-C.height/2).attr("r",I);return S.intersect=function(Y){return x(S,I,Y)},L},diamond:function(k,C,S){var I=C.width*Math.SQRT2/2,L=C.height*Math.SQRT2/2,Y=[{x:0,y:-L},{x:-I,y:0},{x:0,y:L},{x:I,y:0}],W=k.insert("polygon",":first-child").attr("points",Y.map((function(H){return H.x+","+H.y})).join(" "));return S.intersect=function(H){return y(S,Y,H)},W}}},8355:(M,N,p)=>{var m=p(1034);M.exports={isSubgraph:function(y,k){return!!y.children(k).length},edgeToId:function(y){return x(y.v)+":"+x(y.w)+":"+x(y.name)},applyStyle:function(y,k){k&&y.attr("style",k)},applyClass:function(y,k,C){k&&y.attr("class",k).attr("class",C+" "+y.attr("class"))},applyTransition:function(y,k){var C=k.graph();if(m.isPlainObject(C)){var S=C.transition;if(m.isFunction(S))return S(y)}return y}};var d=/:/g;function x(y){return y?String(y).replace(d,"\\:"):""}},5689:M=>{M.exports="0.6.4"},7188:(M,N,p)=>{p.r(N),p.d(N,{FormatSpecifier:()=>ys,active:()=>eb,arc:()=>i_,area:()=>T3,areaRadial:()=>xf,ascending:()=>d,autoType:()=>Tb,axisBottom:()=>Ce,axisLeft:()=>tn,axisRight:()=>Oe,axisTop:()=>Ge,bisect:()=>S,bisectLeft:()=>C,bisectRight:()=>k,bisector:()=>x,blob:()=>jb,brush:()=>Jd,brushSelection:()=>ib,brushX:()=>Wf,brushY:()=>ab,buffer:()=>zb,chord:()=>ep,clientPoint:()=>yu,cluster:()=>H4,color:()=>za,contourDensity:()=>gp,contours:()=>s1,create:()=>m2,creator:()=>ui,cross:()=>Y,csv:()=>Hb,csvFormat:()=>My,csvFormatBody:()=>Ny,csvFormatRow:()=>mb,csvFormatRows:()=>yb,csvFormatValue:()=>vb,csvParse:()=>Ay,csvParseRows:()=>gb,cubehelix:()=>uo,curveBasis:()=>s_,curveBasisClosed:()=>xi,curveBasisOpen:()=>Bi,curveBundle:()=>D3,curveCardinal:()=>fd,curveCardinalClosed:()=>O3,curveCardinalOpen:()=>B3,curveCatmullRom:()=>u_,curveCatmullRomClosed:()=>ou,curveCatmullRomOpen:()=>L3,curveLinear:()=>sd,curveLinearClosed:()=>I3,curveMonotoneX:()=>F3,curveMonotoneY:()=>c_,curveNatural:()=>l_,curveStep:()=>vd,curveStepAfter:()=>H2,curveStepBefore:()=>q2,customEvent:()=>io,descending:()=>W,deviation:()=>X,dispatch:()=>rn,drag:()=>pb,dragDisable:()=>Jr,dragEnable:()=>Rr,dsv:()=>qb,dsvFormat:()=>u1,easeBack:()=>qy,easeBackIn:()=>Uy,easeBackInOut:()=>qy,easeBackOut:()=>Rb,easeBounce:()=>sh,easeBounceIn:()=>zy,easeBounceInOut:()=>Ib,easeBounceOut:()=>sh,easeCircle:()=>Yy,easeCircleIn:()=>Bb,easeCircleInOut:()=>Yy,easeCircleOut:()=>Lb,easeCubic:()=>Bs,easeCubicIn:()=>Pf,easeCubicInOut:()=>Bs,easeCubicOut:()=>jf,easeElastic:()=>Hy,easeElasticIn:()=>Fb,easeElasticInOut:()=>Pb,easeElasticOut:()=>Hy,easeExp:()=>jy,easeExpIn:()=>Db,easeExpInOut:()=>jy,easeExpOut:()=>Ob,easeLinear:()=>By,easePoly:()=>Ry,easePolyIn:()=>Iy,easePolyInOut:()=>Ry,easePolyOut:()=>Ab,easeQuad:()=>Ly,easeQuadIn:()=>Cb,easeQuadInOut:()=>Ly,easeQuadOut:()=>Sb,easeSin:()=>mp,easeSinIn:()=>Mb,easeSinInOut:()=>mp,easeSinOut:()=>Nb,entries:()=>up,event:()=>pt,extent:()=>J,forceCenter:()=>Qy,forceCollide:()=>Qb,forceLink:()=>Jb,forceManyBody:()=>e4,forceRadial:()=>n4,forceSimulation:()=>t4,forceX:()=>r4,forceY:()=>i4,format:()=>Yc,formatDefaultLocale:()=>am,formatLocale:()=>im,formatPrefix:()=>p1,formatSpecifier:()=>uh,geoAlbers:()=>Im,geoAlbersUsa:()=>O4,geoArea:()=>s4,geoAzimuthalEqualArea:()=>B4,geoAzimuthalEqualAreaRaw:()=>ig,geoAzimuthalEquidistant:()=>L4,geoAzimuthalEquidistantRaw:()=>ag,geoBounds:()=>dm,geoCentroid:()=>Rp,geoCircle:()=>g4,geoClipAntimeridian:()=>B1,geoClipCircle:()=>bm,geoClipExtent:()=>m4,geoClipRectangle:()=>Ch,geoConicConformal:()=>R4,geoConicConformalRaw:()=>Pm,geoConicEqualArea:()=>r0,geoConicEqualAreaRaw:()=>Lm,geoConicEquidistant:()=>P4,geoConicEquidistantRaw:()=>jm,geoContains:()=>k4,geoDistance:()=>P1,geoEqualEarth:()=>j4,geoEqualEarthRaw:()=>og,geoEquirectangular:()=>F4,geoEquirectangularRaw:()=>nl,geoGnomonic:()=>ug,geoGnomonicRaw:()=>sg,geoGraticule:()=>Cm,geoGraticule10:()=>T4,geoIdentity:()=>Y4,geoInterpolate:()=>E4,geoLength:()=>zp,geoMercator:()=>I4,geoMercatorRaw:()=>zh,geoNaturalEarth1:()=>Ym,geoNaturalEarth1Raw:()=>cg,geoOrthographic:()=>zm,geoOrthographicRaw:()=>a0,geoPath:()=>$s,geoProjection:()=>ts,geoProjectionMutator:()=>n0,geoRotation:()=>D1,geoStereographic:()=>z4,geoStereographicRaw:()=>lg,geoStream:()=>co,geoTransform:()=>K1,geoTransverseMercator:()=>U4,geoTransverseMercatorRaw:()=>hg,gray:()=>xy,hcl:()=>i1,hierarchy:()=>fg,histogram:()=>jt,hsl:()=>Ec,html:()=>Wb,image:()=>Gy,interpolate:()=>gu,interpolateArray:()=>Ad,interpolateBasis:()=>Ar,interpolateBasisClosed:()=>du,interpolateBlues:()=>p3,interpolateBrBG:()=>H5,interpolateBuGn:()=>G5,interpolateBuPu:()=>i3,interpolateCividis:()=>y3,interpolateCool:()=>Z5,interpolateCubehelix:()=>Uu,interpolateCubehelixDefault:()=>m3,interpolateCubehelixLong:()=>qu,interpolateDate:()=>Lf,interpolateDiscrete:()=>p0,interpolateGnBu:()=>vf,interpolateGreens:()=>p2,interpolateGreys:()=>g3,interpolateHcl:()=>Wh,interpolateHclLong:()=>Vh,interpolateHsl:()=>l5,interpolateHslLong:()=>g0,interpolateHue:()=>c5,interpolateInferno:()=>is,interpolateLab:()=>$h,interpolateMagma:()=>El,interpolateNumber:()=>pa,interpolateNumberArray:()=>$l,interpolateObject:()=>If,interpolateOrRd:()=>ks,interpolateOranges:()=>zr,interpolatePRGn:()=>La,interpolatePiYG:()=>Oi,interpolatePlasma:()=>rd,interpolatePuBu:()=>o3,interpolatePuBuGn:()=>J0,interpolatePuOr:()=>vr,interpolatePuRd:()=>s3,interpolatePurples:()=>X5,interpolateRainbow:()=>y2,interpolateRdBu:()=>Jv,interpolateRdGy:()=>$5,interpolateRdPu:()=>c3,interpolateRdYlBu:()=>K0,interpolateRdYlGn:()=>W5,interpolateReds:()=>Ts,interpolateRgb:()=>Os,interpolateRgbBasis:()=>Sc,interpolateRgbBasisClosed:()=>Eo,interpolateRound:()=>mg,interpolateSinebow:()=>b3,interpolateSpectral:()=>V5,interpolateString:()=>Co,interpolateTransformCss:()=>Nd,interpolateTransformSvg:()=>Dd,interpolateTurbo:()=>Tl,interpolateViridis:()=>ic,interpolateWarm:()=>v3,interpolateYlGn:()=>td,interpolateYlGnBu:()=>ta,interpolateYlOrBr:()=>f3,interpolateYlOrRd:()=>f2,interpolateZoom:()=>av,interrupt:()=>ya,interval:()=>z3,isoFormat:()=>j3,isoParse:()=>Ll,json:()=>$b,keys:()=>nh,lab:()=>ih,lch:()=>r1,line:()=>Yo,lineRadial:()=>ud,linkHorizontal:()=>N2,linkRadial:()=>S3,linkVertical:()=>Sl,local:()=>id,map:()=>fs,matcher:()=>on,max:()=>Dt,mean:()=>Xt,median:()=>se,merge:()=>ce,min:()=>ge,mouse:()=>ss,namespace:()=>_n,namespaces:()=>Cr,nest:()=>sb,now:()=>$,pack:()=>Q4,packEnclose:()=>qm,packSiblings:()=>Z4,pairs:()=>I,partition:()=>K4,path:()=>hs,permute:()=>Ot,pie:()=>a_,piecewise:()=>Xh,pointRadial:()=>Ia,polygonArea:()=>bg,polygonCentroid:()=>h5,polygonContains:()=>xg,polygonHull:()=>f5,polygonLength:()=>uv,precisionFixed:()=>om,precisionPrefix:()=>sm,precisionRound:()=>um,quadtree:()=>h1,quantile:()=>ye,quantize:()=>ov,radialArea:()=>xf,radialLine:()=>ud,randomBates:()=>Io,randomExponential:()=>Gs,randomIrwinHall:()=>Lo,randomLogNormal:()=>wg,randomNormal:()=>Zh,randomUniform:()=>d5,range:()=>st,rgb:()=>Ri,ribbon:()=>ip,scaleBand:()=>Eg,scaleDiverging:()=>_i,scaleDivergingLog:()=>nc,scaleDivergingPow:()=>G0,scaleDivergingSqrt:()=>s2,scaleDivergingSymlog:()=>Xv,scaleIdentity:()=>dv,scaleImplicit:()=>kg,scaleLinear:()=>fv,scaleLog:()=>b0,scaleOrdinal:()=>Tg,scalePoint:()=>Cg,scalePow:()=>w0,scaleQuantile:()=>Bg,scaleQuantize:()=>k0,scaleSequential:()=>bl,scaleSequentialLog:()=>a2,scaleSequentialPow:()=>mo,scaleSequentialQuantile:()=>_l,scaleSequentialSqrt:()=>Y5,scaleSequentialSymlog:()=>o2,scaleSqrt:()=>vv,scaleSymlog:()=>x0,scaleThreshold:()=>T0,scaleTime:()=>r2,scaleUtc:()=>Gv,scan:()=>$e,schemeAccent:()=>U5,schemeBlues:()=>d2,schemeBrBG:()=>Kv,schemeBuGn:()=>n3,schemeBuPu:()=>r3,schemeCategory10:()=>z5,schemeDark2:()=>Zv,schemeGnBu:()=>a3,schemeGreens:()=>wl,schemeGreys:()=>ed,schemeOrRd:()=>bf,schemeOranges:()=>Es,schemePRGn:()=>Q0,schemePaired:()=>xl,schemePastel1:()=>u2,schemePastel2:()=>q5,schemePiYG:()=>_a,schemePuBu:()=>h2,schemePuBuGn:()=>eu,schemePuOr:()=>rs,schemePuRd:()=>rc,schemePurples:()=>xa,schemeRdBu:()=>vo,schemeRdGy:()=>mf,schemeRdPu:()=>u3,schemeRdYlBu:()=>t3,schemeRdYlGn:()=>l2,schemeReds:()=>g2,schemeSet1:()=>c2,schemeSet2:()=>X0,schemeSet3:()=>Z0,schemeSpectral:()=>e3,schemeTableau10:()=>Qv,schemeYlGn:()=>l3,schemeYlGnBu:()=>_f,schemeYlOrBr:()=>h3,schemeYlOrRd:()=>d3,select:()=>gr,selectAll:()=>ad,selection:()=>Ya,selector:()=>Dr,selectorAll:()=>Zn,set:()=>Is,shuffle:()=>le,stack:()=>h_,stackOffsetDiverging:()=>f_,stackOffsetExpand:()=>bd,stackOffsetNone:()=>su,stackOffsetSilhouette:()=>$2,stackOffsetWiggle:()=>Ra,stackOrderAppearance:()=>Ol,stackOrderAscending:()=>Bl,stackOrderDescending:()=>W2,stackOrderInsideOut:()=>d_,stackOrderNone:()=>eo,stackOrderReverse:()=>wi,stratify:()=>n5,style:()=>ri,sum:()=>Yt,svg:()=>_p,symbol:()=>Nl,symbolCircle:()=>Al,symbolCross:()=>Ml,symbolDiamond:()=>O2,symbolSquare:()=>R2,symbolStar:()=>I2,symbolTriangle:()=>cc,symbolWye:()=>F2,symbols:()=>M3,text:()=>l1,thresholdFreedmanDiaconis:()=>pe,thresholdScott:()=>de,thresholdSturges:()=>$t,tickFormat:()=>hv,tickIncrement:()=>ft,tickStep:()=>vt,ticks:()=>Rt,timeDay:()=>Qs,timeDays:()=>Nv,timeFormat:()=>L0,timeFormatDefaultLocale:()=>n2,timeFormatLocale:()=>Ov,timeFriday:()=>Ev,timeFridays:()=>xs,timeHour:()=>Fg,timeHours:()=>b5,timeInterval:()=>Mi,timeMillisecond:()=>sf,timeMilliseconds:()=>uf,timeMinute:()=>Pg,timeMinutes:()=>jg,timeMonday:()=>of,timeMondays:()=>y5,timeMonth:()=>_v,timeMonths:()=>g5,timeParse:()=>Ju,timeSaturday:()=>Cv,timeSaturdays:()=>v5,timeSecond:()=>cl,timeSeconds:()=>ll,timeSunday:()=>af,timeSundays:()=>Sv,timeThursday:()=>Zs,timeThursdays:()=>Av,timeTuesday:()=>kv,timeTuesdays:()=>m5,timeWednesday:()=>Tv,timeWednesdays:()=>_s,timeWeek:()=>af,timeWeeks:()=>Sv,timeYear:()=>$u,timeYears:()=>p5,timeout:()=>We,timer:()=>fe,timerFlush:()=>xe,touch:()=>ga,touches:()=>K5,transition:()=>Ff,transpose:()=>te,tree:()=>o5,treemap:()=>s5,treemapBinary:()=>u5,treemapDice:()=>Hh,treemapResquarify:()=>rv,treemapSlice:()=>d0,treemapSliceDice:()=>Bo,treemapSquarify:()=>nv,tsv:()=>Vy,tsvFormat:()=>bb,tsvFormatBody:()=>_b,tsvFormatRow:()=>wb,tsvFormatRows:()=>xb,tsvFormatValue:()=>kb,tsvParse:()=>Dy,tsvParseRows:()=>Oy,utcDay:()=>B0,utcDays:()=>x5,utcFormat:()=>I0,utcFriday:()=>mi,utcFridays:()=>D0,utcHour:()=>gf,utcHours:()=>yf,utcMillisecond:()=>sf,utcMilliseconds:()=>uf,utcMinute:()=>$0,utcMinutes:()=>W0,utcMonday:()=>Ks,utcMondays:()=>_5,utcMonth:()=>H0,utcMonths:()=>Di,utcParse:()=>qg,utcSaturday:()=>Xu,utcSaturdays:()=>zg,utcSecond:()=>cl,utcSeconds:()=>ll,utcSunday:()=>cf,utcSundays:()=>M0,utcThursday:()=>Ui,utcThursdays:()=>N0,utcTuesday:()=>Gu,utcTuesdays:()=>Fo,utcWednesday:()=>Yg,utcWednesdays:()=>Zu,utcWeek:()=>cf,utcWeeks:()=>M0,utcYear:()=>Qu,utcYears:()=>w5,values:()=>sp,variance:()=>V,version:()=>m,voronoi:()=>b_,window:()=>Bn,xml:()=>Zy,zip:()=>re,zoom:()=>C_,zoomIdentity:()=>Cd,zoomTransform:()=>V3});var m="5.16.0";function d(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(a,s){return d(i(a),s)}),{left:function(a,s,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l<f;){var b=l+f>>>1;n(a[b],s)<0?l=b+1:f=b}return l},right:function(a,s,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l<f;){var b=l+f>>>1;n(a[b],s)>0?f=b:l=b+1}return l}}}var y=x(d),k=y.right,C=y.left;const S=k;function I(n,i){i==null&&(i=L);for(var a=0,s=n.length-1,l=n[0],f=new Array(s<0?0:s);a<s;)f[a]=i(l,l=n[++a]);return f}function L(n,i){return[n,i]}function Y(n,i,a){var s,l,f,b,v=n.length,T=i.length,A=new Array(v*T);for(a==null&&(a=L),s=f=0;s<v;++s)for(b=n[s],l=0;l<T;++l,++f)A[f]=a(b,i[l]);return A}function W(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function H(n){return n===null?NaN:+n}function V(n,i){var a,s,l=n.length,f=0,b=-1,v=0,T=0;if(i==null)for(;++b<l;)isNaN(a=H(n[b]))||(T+=(s=a-v)*(a-(v+=s/++f)));else for(;++b<l;)isNaN(a=H(i(n[b],b,n)))||(T+=(s=a-v)*(a-(v+=s/++f)));if(f>1)return T/(f-1)}function X(n,i){var a=V(n,i);return a&&Math.sqrt(a)}function J(n,i){var a,s,l,f=n.length,b=-1;if(i==null){for(;++b<f;)if((a=n[b])!=null&&a>=a)for(s=l=a;++b<f;)(a=n[b])!=null&&(s>a&&(s=a),l<a&&(l=a))}else for(;++b<f;)if((a=i(n[b],b,n))!=null&&a>=a)for(s=l=a;++b<f;)(a=i(n[b],b,n))!=null&&(s>a&&(s=a),l<a&&(l=a));return[s,l]}var lt=Array.prototype,nt=lt.slice,_t=lt.map;function dt(n){return function(){return n}}function At(n){return n}function st(n,i,a){n=+n,i=+i,a=(l=arguments.length)<2?(i=n,n=0,1):l<3?1:+a;for(var s=-1,l=0|Math.max(0,Math.ceil((i-n)/a)),f=new Array(l);++s<l;)f[s]=n+s*a;return f}var K=Math.sqrt(50),mt=Math.sqrt(10),St=Math.sqrt(2);function Rt(n,i,a){var s,l,f,b,v=-1;if(a=+a,(n=+n)==(i=+i)&&a>0)return[n];if((s=i<n)&&(l=n,n=i,i=l),(b=ft(n,i,a))===0||!isFinite(b))return[];if(b>0)for(n=Math.ceil(n/b),i=Math.floor(i/b),f=new Array(l=Math.ceil(i-n+1));++v<l;)f[v]=(n+v)*b;else for(n=Math.floor(n*b),i=Math.ceil(i*b),f=new Array(l=Math.ceil(n-i+1));++v<l;)f[v]=(n-v)/b;return s&&f.reverse(),f}function ft(n,i,a){var s=(i-n)/Math.max(0,a),l=Math.floor(Math.log(s)/Math.LN10),f=s/Math.pow(10,l);return l>=0?(f>=K?10:f>=mt?5:f>=St?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(f>=K?10:f>=mt?5:f>=St?2:1)}function vt(n,i,a){var s=Math.abs(i-n)/Math.max(0,a),l=Math.pow(10,Math.floor(Math.log(s)/Math.LN10)),f=s/l;return f>=K?l*=10:f>=mt?l*=5:f>=St&&(l*=2),i<n?-l:l}function $t(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function jt(){var n=At,i=J,a=$t;function s(l){var f,b,v=l.length,T=new Array(v);for(f=0;f<v;++f)T[f]=n(l[f],f,l);var A=i(T),B=A[0],F=A[1],O=a(T,B,F);Array.isArray(O)||(O=vt(B,F,O),O=st(Math.ceil(B/O)*O,F,O));for(var z=O.length;O[0]<=B;)O.shift(),--z;for(;O[z-1]>F;)O.pop(),--z;var U,Z=new Array(z+1);for(f=0;f<=z;++f)(U=Z[f]=[]).x0=f>0?O[f-1]:B,U.x1=f<z?O[f]:F;for(f=0;f<v;++f)B<=(b=T[f])&&b<=F&&Z[S(O,b,0,z)].push(l[f]);return Z}return s.value=function(l){return arguments.length?(n=typeof l=="function"?l:dt(l),s):n},s.domain=function(l){return arguments.length?(i=typeof l=="function"?l:dt([l[0],l[1]]),s):i},s.thresholds=function(l){return arguments.length?(a=typeof l=="function"?l:Array.isArray(l)?dt(nt.call(l)):dt(l),s):a},s}function ye(n,i,a){if(a==null&&(a=H),s=n.length){if((i=+i)<=0||s<2)return+a(n[0],0,n);if(i>=1)return+a(n[s-1],s-1,n);var s,l=(s-1)*i,f=Math.floor(l),b=+a(n[f],f,n);return b+(+a(n[f+1],f+1,n)-b)*(l-f)}}function pe(n,i,a){return n=_t.call(n,H).sort(d),Math.ceil((a-i)/(2*(ye(n,.75)-ye(n,.25))*Math.pow(n.length,-.3333333333333333)))}function de(n,i,a){return Math.ceil((a-i)/(3.5*X(n)*Math.pow(n.length,-.3333333333333333)))}function Dt(n,i){var a,s,l=n.length,f=-1;if(i==null){for(;++f<l;)if((a=n[f])!=null&&a>=a)for(s=a;++f<l;)(a=n[f])!=null&&a>s&&(s=a)}else for(;++f<l;)if((a=i(n[f],f,n))!=null&&a>=a)for(s=a;++f<l;)(a=i(n[f],f,n))!=null&&a>s&&(s=a);return s}function Xt(n,i){var a,s=n.length,l=s,f=-1,b=0;if(i==null)for(;++f<s;)isNaN(a=H(n[f]))?--l:b+=a;else for(;++f<s;)isNaN(a=H(i(n[f],f,n)))?--l:b+=a;if(l)return b/l}function se(n,i){var a,s=n.length,l=-1,f=[];if(i==null)for(;++l<s;)isNaN(a=H(n[l]))||f.push(a);else for(;++l<s;)isNaN(a=H(i(n[l],l,n)))||f.push(a);return ye(f.sort(d),.5)}function ce(n){for(var i,a,s,l=n.length,f=-1,b=0;++f<l;)b+=n[f].length;for(a=new Array(b);--l>=0;)for(i=(s=n[l]).length;--i>=0;)a[--b]=s[i];return a}function ge(n,i){var a,s,l=n.length,f=-1;if(i==null){for(;++f<l;)if((a=n[f])!=null&&a>=a)for(s=a;++f<l;)(a=n[f])!=null&&s>a&&(s=a)}else for(;++f<l;)if((a=i(n[f],f,n))!=null&&a>=a)for(s=a;++f<l;)(a=i(n[f],f,n))!=null&&s>a&&(s=a);return s}function Ot(n,i){for(var a=i.length,s=new Array(a);a--;)s[a]=n[i[a]];return s}function $e(n,i){if(a=n.length){var a,s,l=0,f=0,b=n[f];for(i==null&&(i=d);++l<a;)(i(s=n[l],b)<0||i(b,b)!==0)&&(b=s,f=l);return i(b,b)===0?f:void 0}}function le(n,i,a){for(var s,l,f=(a??n.length)-(i=i==null?0:+i);f;)l=Math.random()*f--|0,s=n[f+i],n[f+i]=n[l+i],n[l+i]=s;return n}function Yt(n,i){var a,s=n.length,l=-1,f=0;if(i==null)for(;++l<s;)(a=+n[l])&&(f+=a);else for(;++l<s;)(a=+i(n[l],l,n))&&(f+=a);return f}function te(n){if(!(l=n.length))return[];for(var i=-1,a=ge(n,at),s=new Array(a);++i<a;)for(var l,f=-1,b=s[i]=new Array(l);++f<l;)b[f]=n[f][i];return s}function at(n){return n.length}function re(){return te(arguments)}var Mt=Array.prototype.slice;function Vt(n){return n}var Ht=1e-6;function Nt(n){return"translate("+(n+.5)+",0)"}function oe(n){return"translate(0,"+(n+.5)+")"}function Je(n){return function(i){return+n(i)}}function me(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(a){return+n(a)+i}}function Me(){return!this.__axis}function un(n,i){var a=[],s=null,l=null,f=6,b=6,v=3,T=n===1||n===4?-1:1,A=n===4||n===2?"x":"y",B=n===1||n===3?Nt:oe;function F(O){var z=s??(i.ticks?i.ticks.apply(i,a):i.domain()),U=l??(i.tickFormat?i.tickFormat.apply(i,a):Vt),Z=Math.max(f,0)+v,Q=i.range(),G=+Q[0]+.5,rt=+Q[Q.length-1]+.5,et=(i.bandwidth?me:Je)(i.copy()),ct=O.selection?O.selection():O,Lt=ct.selectAll(".domain").data([null]),qt=ct.selectAll(".tick").data(z,i).order(),ne=qt.exit(),ve=qt.enter().append("g").attr("class","tick"),zt=qt.select("line"),ue=qt.select("text");Lt=Lt.merge(Lt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),qt=qt.merge(ve),zt=zt.merge(ve.append("line").attr("stroke","currentColor").attr(A+"2",T*f)),ue=ue.merge(ve.append("text").attr("fill","currentColor").attr(A,T*Z).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),O!==ct&&(Lt=Lt.transition(O),qt=qt.transition(O),zt=zt.transition(O),ue=ue.transition(O),ne=ne.transition(O).attr("opacity",Ht).attr("transform",(function(ut){return isFinite(ut=et(ut))?B(ut):this.getAttribute("transform")})),ve.attr("opacity",Ht).attr("transform",(function(ut){var xt=this.parentNode.__axis;return B(xt&&isFinite(xt=xt(ut))?xt:et(ut))}))),ne.remove(),Lt.attr("d",n===4||n==2?b?"M"+T*b+","+G+"H0.5V"+rt+"H"+T*b:"M0.5,"+G+"V"+rt:b?"M"+G+","+T*b+"V0.5H"+rt+"V"+T*b:"M"+G+",0.5H"+rt),qt.attr("opacity",1).attr("transform",(function(ut){return B(et(ut))})),zt.attr(A+"2",T*f),ue.attr(A,T*Z).text(U),ct.filter(Me).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),ct.each((function(){this.__axis=et}))}return F.scale=function(O){return arguments.length?(i=O,F):i},F.ticks=function(){return a=Mt.call(arguments),F},F.tickArguments=function(O){return arguments.length?(a=O==null?[]:Mt.call(O),F):a.slice()},F.tickValues=function(O){return arguments.length?(s=O==null?null:Mt.call(O),F):s&&s.slice()},F.tickFormat=function(O){return arguments.length?(l=O,F):l},F.tickSize=function(O){return arguments.length?(f=b=+O,F):f},F.tickSizeInner=function(O){return arguments.length?(f=+O,F):f},F.tickSizeOuter=function(O){return arguments.length?(b=+O,F):b},F.tickPadding=function(O){return arguments.length?(v=+O,F):v},F}function Ge(n){return un(1,n)}function Oe(n){return un(2,n)}function Ce(n){return un(3,n)}function tn(n){return un(4,n)}var ze={value:function(){}};function Xe(){for(var n,i=0,a=arguments.length,s={};i<a;++i){if(!(n=arguments[i]+"")||n in s||/[\s.]/.test(n))throw new Error("illegal type: "+n);s[n]=[]}return new Ze(s)}function Ze(n){this._=n}function De(n,i){return n.trim().split(/^|\s+/).map((function(a){var s="",l=a.indexOf(".");if(l>=0&&(s=a.slice(l+1),a=a.slice(0,l)),a&&!i.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:s}}))}function Pn(n,i){for(var a,s=0,l=n.length;s<l;++s)if((a=n[s]).name===i)return a.value}function Se(n,i,a){for(var s=0,l=n.length;s<l;++s)if(n[s].name===i){n[s]=ze,n=n.slice(0,s).concat(n.slice(s+1));break}return a!=null&&n.push({name:i,value:a}),n}Ze.prototype=Xe.prototype={constructor:Ze,on:function(n,i){var a,s=this._,l=De(n+"",s),f=-1,b=l.length;if(!(arguments.length<2)){if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++f<b;)if(a=(n=l[f]).type)s[a]=Se(s[a],n.name,i);else if(i==null)for(a in s)s[a]=Se(s[a],n.name,null);return this}for(;++f<b;)if((a=(n=l[f]).type)&&(a=Pn(s[a],n.name)))return a},copy:function(){var n={},i=this._;for(var a in i)n[a]=i[a].slice();return new Ze(n)},call:function(n,i){if((a=arguments.length-2)>0)for(var a,s,l=new Array(a),f=0;f<a;++f)l[f]=arguments[f+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(f=0,a=(s=this._[n]).length;f<a;++f)s[f].value.apply(i,l)},apply:function(n,i,a){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var s=this._[n],l=0,f=s.length;l<f;++l)s[l].value.apply(i,a)}};const rn=Xe;function gn(){}function Dr(n){return n==null?gn:function(){return this.querySelector(n)}}function yn(){return[]}function Zn(n){return n==null?yn:function(){return this.querySelectorAll(n)}}function on(n){return function(){return this.matches(n)}}function fn(n){return new Array(n.length)}function Qe(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function wn(n,i,a,s,l,f){for(var b,v=0,T=i.length,A=f.length;v<A;++v)(b=i[v])?(b.__data__=f[v],s[v]=b):a[v]=new Qe(n,f[v]);for(;v<T;++v)(b=i[v])&&(l[v]=b)}function bn(n,i,a,s,l,f,b){var v,T,A,B={},F=i.length,O=f.length,z=new Array(F);for(v=0;v<F;++v)(T=i[v])&&(z[v]=A="$"+b.call(T,T.__data__,v,i),A in B?l[v]=T:B[A]=T);for(v=0;v<O;++v)(T=B[A="$"+b.call(n,f[v],v,f)])?(s[v]=T,T.__data__=f[v],B[A]=null):a[v]=new Qe(n,f[v]);for(v=0;v<F;++v)(T=i[v])&&B[z[v]]===T&&(l[v]=T)}function jn(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}Qe.prototype={constructor:Qe,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 Yn="http://www.w3.org/1999/xhtml";const Cr={svg:"http://www.w3.org/2000/svg",xhtml:Yn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _n(n){var i=n+="",a=i.indexOf(":");return a>=0&&(i=n.slice(0,a))!=="xmlns"&&(n=n.slice(a+1)),Cr.hasOwnProperty(i)?{space:Cr[i],local:n}:n}function Un(n){return function(){this.removeAttribute(n)}}function Rn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function qn(n,i){return function(){this.setAttribute(n,i)}}function Hn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Qn(n,i){return function(){var a=i.apply(this,arguments);a==null?this.removeAttribute(n):this.setAttribute(n,a)}}function Cn(n,i){return function(){var a=i.apply(this,arguments);a==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,a)}}function Bn(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function sn(n){return function(){this.style.removeProperty(n)}}function Fn(n,i,a){return function(){this.style.setProperty(n,i,a)}}function pn(n,i,a){return function(){var s=i.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,a)}}function ri(n,i){return n.style.getPropertyValue(i)||Bn(n).getComputedStyle(n,null).getPropertyValue(i)}function pr(n){return function(){delete this[n]}}function Li(n,i){return function(){this[n]=i}}function Ln(n,i){return function(){var a=i.apply(this,arguments);a==null?delete this[n]:this[n]=a}}function wo(n){return n.trim().split(/^|\s+/)}function ha(n){return n.classList||new ii(n)}function ii(n){this._node=n,this._names=wo(n.getAttribute("class")||"")}function Or(n,i){for(var a=ha(n),s=-1,l=i.length;++s<l;)a.add(i[s])}function Ir(n,i){for(var a=ha(n),s=-1,l=i.length;++s<l;)a.remove(i[s])}function $r(n){return function(){Or(this,n)}}function Zr(n){return function(){Ir(this,n)}}function Sr(n,i){return function(){(i.apply(this,arguments)?Or:Ir)(this,n)}}function Qr(){this.textContent=""}function Br(n){return function(){this.textContent=n}}function ki(n){return function(){var i=n.apply(this,arguments);this.textContent=i??""}}function si(){this.innerHTML=""}function er(n){return function(){this.innerHTML=n}}function qr(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i??""}}function fa(){this.nextSibling&&this.parentNode.appendChild(this)}function Kr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function da(n){return function(){var i=this.ownerDocument,a=this.namespaceURI;return a===Yn&&i.documentElement.namespaceURI===Yn?i.createElement(n):i.createElementNS(a,n)}}function ro(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function ui(n){var i=_n(n);return(i.local?ro:da)(i)}function an(){return null}function $n(){var n=this.parentNode;n&&n.removeChild(this)}function Tn(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function Be(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}ii.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 Wn={},pt=null;function Wr(n,i,a){return n=Zt(n,i,a),function(s){var l=s.relatedTarget;l&&(l===this||8&l.compareDocumentPosition(this))||n.call(this,s)}}function Zt(n,i,a){return function(s){var l=pt;pt=s;try{n.call(this,this.__data__,i,a)}finally{pt=l}}}function Ti(n){return n.trim().split(/^|\s+/).map((function(i){var a="",s=i.indexOf(".");return s>=0&&(a=i.slice(s+1),i=i.slice(0,s)),{type:i,name:a}}))}function $i(n){return function(){var i=this.__on;if(i){for(var a,s=0,l=-1,f=i.length;s<f;++s)a=i[s],n.type&&a.type!==n.type||a.name!==n.name?i[++l]=a:this.removeEventListener(a.type,a.listener,a.capture);++l?i.length=l:delete this.__on}}}function ja(n,i,a){var s=Wn.hasOwnProperty(n.type)?Wr:Zt;return function(l,f,b){var v,T=this.__on,A=s(i,f,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=A,v.capture=a),void(v.value=i)}this.addEventListener(n.type,A,a),v={type:n.type,name:n.name,value:i,listener:A,capture:a},T?T.push(v):this.__on=[v]}}function io(n,i,a,s){var l=pt;n.sourceEvent=pt,pt=n;try{return i.apply(a,s)}finally{pt=l}}function ko(n,i,a){var s=Bn(n),l=s.CustomEvent;typeof l=="function"?l=new l(i,a):(l=s.document.createEvent("Event"),a?(l.initEvent(i,a.bubbles,a.cancelable),l.detail=a.detail):l.initEvent(i,!1,!1)),n.dispatchEvent(l)}function To(n,i){return function(){return ko(this,n,i)}}function Hr(n,i){return function(){return ko(this,n,i.apply(this,arguments))}}typeof document<"u"&&("onmouseenter"in document.documentElement||(Wn={mouseenter:"mouseover",mouseleave:"mouseout"}));var Wi=[null];function En(n,i){this._groups=n,this._parents=i}function Ta(){return new En([[document.documentElement]],Wi)}En.prototype=Ta.prototype={constructor:En,select:function(n){typeof n!="function"&&(n=Dr(n));for(var i=this._groups,a=i.length,s=new Array(a),l=0;l<a;++l)for(var f,b,v=i[l],T=v.length,A=s[l]=new Array(T),B=0;B<T;++B)(f=v[B])&&(b=n.call(f,f.__data__,B,v))&&("__data__"in f&&(b.__data__=f.__data__),A[B]=b);return new En(s,this._parents)},selectAll:function(n){typeof n!="function"&&(n=Zn(n));for(var i=this._groups,a=i.length,s=[],l=[],f=0;f<a;++f)for(var b,v=i[f],T=v.length,A=0;A<T;++A)(b=v[A])&&(s.push(n.call(b,b.__data__,A,v)),l.push(b));return new En(s,l)},filter:function(n){typeof n!="function"&&(n=on(n));for(var i=this._groups,a=i.length,s=new Array(a),l=0;l<a;++l)for(var f,b=i[l],v=b.length,T=s[l]=[],A=0;A<v;++A)(f=b[A])&&n.call(f,f.__data__,A,b)&&T.push(f);return new En(s,this._parents)},data:function(n,i){if(!n)return U=new Array(this.size()),B=-1,this.each((function(qt){U[++B]=qt})),U;var a,s=i?bn:wn,l=this._parents,f=this._groups;typeof n!="function"&&(a=n,n=function(){return a});for(var b=f.length,v=new Array(b),T=new Array(b),A=new Array(b),B=0;B<b;++B){var F=l[B],O=f[B],z=O.length,U=n.call(F,F&&F.__data__,B,l),Z=U.length,Q=T[B]=new Array(Z),G=v[B]=new Array(Z);s(F,O,Q,G,A[B]=new Array(z),U,i);for(var rt,et,ct=0,Lt=0;ct<Z;++ct)if(rt=Q[ct]){for(ct>=Lt&&(Lt=ct+1);!(et=G[Lt])&&++Lt<Z;);rt._next=et||null}}return(v=new En(v,l))._enter=T,v._exit=A,v},enter:function(){return new En(this._enter||this._groups.map(fn),this._parents)},exit:function(){return new En(this._exit||this._groups.map(fn),this._parents)},join:function(n,i,a){var s=this.enter(),l=this,f=this.exit();return s=typeof n=="function"?n(s):s.append(n+""),i!=null&&(l=i(l)),a==null?f.remove():a(f),s&&l?s.merge(l).order():l},merge:function(n){for(var i=this._groups,a=n._groups,s=i.length,l=a.length,f=Math.min(s,l),b=new Array(s),v=0;v<f;++v)for(var T,A=i[v],B=a[v],F=A.length,O=b[v]=new Array(F),z=0;z<F;++z)(T=A[z]||B[z])&&(O[z]=T);for(;v<s;++v)b[v]=i[v];return new En(b,this._parents)},order:function(){for(var n=this._groups,i=-1,a=n.length;++i<a;)for(var s,l=n[i],f=l.length-1,b=l[f];--f>=0;)(s=l[f])&&(b&&4^s.compareDocumentPosition(b)&&b.parentNode.insertBefore(s,b),b=s);return this},sort:function(n){function i(F,O){return F&&O?n(F.__data__,O.__data__):!F-!O}n||(n=jn);for(var a=this._groups,s=a.length,l=new Array(s),f=0;f<s;++f){for(var b,v=a[f],T=v.length,A=l[f]=new Array(T),B=0;B<T;++B)(b=v[B])&&(A[B]=b);A.sort(i)}return new En(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,a=n.length;i<a;++i)for(var s=n[i],l=0,f=s.length;l<f;++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,a=0,s=i.length;a<s;++a)for(var l,f=i[a],b=0,v=f.length;b<v;++b)(l=f[b])&&n.call(l,l.__data__,b,f);return this},attr:function(n,i){var a=_n(n);if(arguments.length<2){var s=this.node();return a.local?s.getAttributeNS(a.space,a.local):s.getAttribute(a)}return this.each((i==null?a.local?Rn:Un:typeof i=="function"?a.local?Cn:Qn:a.local?Hn:qn)(a,i))},style:function(n,i,a){return arguments.length>1?this.each((i==null?sn:typeof i=="function"?pn:Fn)(n,i,a??"")):ri(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?pr:typeof i=="function"?Ln:Li)(n,i)):this.node()[n]},classed:function(n,i){var a=wo(n+"");if(arguments.length<2){for(var s=ha(this.node()),l=-1,f=a.length;++l<f;)if(!s.contains(a[l]))return!1;return!0}return this.each((typeof i=="function"?Sr:i?$r:Zr)(a,i))},text:function(n){return arguments.length?this.each(n==null?Qr:(typeof n=="function"?ki:Br)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?si:(typeof n=="function"?qr:er)(n)):this.node().innerHTML},raise:function(){return this.each(fa)},lower:function(){return this.each(Kr)},append:function(n){var i=typeof n=="function"?n:ui(n);return this.select((function(){return this.appendChild(i.apply(this,arguments))}))},insert:function(n,i){var a=typeof n=="function"?n:ui(n),s=i==null?an:typeof i=="function"?i:Dr(i);return this.select((function(){return this.insertBefore(a.apply(this,arguments),s.apply(this,arguments)||null)}))},remove:function(){return this.each($n)},clone:function(n){return this.select(n?Be:Tn)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,a){var s,l,f=Ti(n+""),b=f.length;if(!(arguments.length<2)){for(v=i?ja:$i,a==null&&(a=!1),s=0;s<b;++s)this.each(v(f[s],i,a));return this}var v=this.node().__on;if(v){for(var T,A=0,B=v.length;A<B;++A)for(s=0,T=v[A];s<b;++s)if((l=f[s]).type===T.type&&l.name===T.name)return T.value}},dispatch:function(n,i){return this.each((typeof i=="function"?Hr:To)(n,i))}};const Ya=Ta;function gr(n){return typeof n=="string"?new En([[document.querySelector(n)]],[document.documentElement]):new En([[n]],Wi)}function kr(){pt.stopImmediatePropagation()}function di(){pt.preventDefault(),pt.stopImmediatePropagation()}function Jr(n){var i=n.document.documentElement,a=gr(n).on("dragstart.drag",di,!0);"onselectstart"in i?a.on("selectstart.drag",di,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Rr(n,i){var a=n.document.documentElement,s=gr(n).on("dragstart.drag",null);i&&(s.on("click.drag",di,!0),setTimeout((function(){s.on("click.drag",null)}),0)),"onselectstart"in a?s.on("selectstart.drag",null):(a.style.MozUserSelect=a.__noselect,delete a.__noselect)}function Fr(n,i,a){n.prototype=i.prototype=a,a.constructor=n}function ci(n,i){var a=Object.create(n.prototype);for(var s in i)a[s]=i[s];return a}function Vr(){}var Vi=.7,Ii=1/Vi,Ei="\\s*([+-]?\\d+)\\s*",ao="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ue=/^#([0-9a-f]{3,8})$/,je=new RegExp("^rgb\\("+[Ei,Ei,Ei]+"\\)$"),yr=new RegExp("^rgb\\("+[Bt,Bt,Bt]+"\\)$"),_r=new RegExp("^rgba\\("+[Ei,Ei,Ei,ao]+"\\)$"),pi=new RegExp("^rgba\\("+[Bt,Bt,Bt,ao]+"\\)$"),ti=new RegExp("^hsl\\("+[ao,Bt,Bt]+"\\)$"),os=new RegExp("^hsla\\("+[ao,Bt,Bt,ao]+"\\)$"),ia={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 Pr(){return this.rgb().formatHex()}function Ds(){return this.rgb().formatRgb()}function za(n){var i,a;return n=(n+"").trim().toLowerCase(),(i=Ue.exec(n))?(a=i[1].length,i=parseInt(i[1],16),a===6?hu(i):a===3?new ei(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):a===8?oo(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):a===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=je.exec(n))?new ei(i[1],i[2],i[3],1):(i=yr.exec(n))?new ei(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=_r.exec(n))?oo(i[1],i[2],i[3],i[4]):(i=pi.exec(n))?oo(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=ti.exec(n))?Ua(i[1],i[2]/100,i[3]/100,1):(i=os.exec(n))?Ua(i[1],i[2]/100,i[3]/100,i[4]):ia.hasOwnProperty(n)?hu(ia[n]):n==="transparent"?new ei(NaN,NaN,NaN,0):null}function hu(n){return new ei(n>>16&255,n>>8&255,255&n,1)}function oo(n,i,a,s){return s<=0&&(n=i=a=NaN),new ei(n,i,a,s)}function fu(n){return n instanceof Vr||(n=za(n)),n?new ei((n=n.rgb()).r,n.g,n.b,n.opacity):new ei}function Ri(n,i,a,s){return arguments.length===1?fu(n):new ei(n,i,a,s??1)}function ei(n,i,a,s){this.r=+n,this.g=+i,this.b=+a,this.opacity=+s}function xc(){return"#"+kc(this.r)+kc(this.g)+kc(this.b)}function wc(){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 kc(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ua(n,i,a,s){return s<=0?n=i=a=NaN:a<=0||a>=1?n=i=NaN:i<=0&&(n=NaN),new qa(n,i,a,s)}function Tc(n){if(n instanceof qa)return new qa(n.h,n.s,n.l,n.opacity);if(n instanceof Vr||(n=za(n)),!n)return new qa;if(n instanceof qa)return n;var i=(n=n.rgb()).r/255,a=n.g/255,s=n.b/255,l=Math.min(i,a,s),f=Math.max(i,a,s),b=NaN,v=f-l,T=(f+l)/2;return v?(b=i===f?(a-s)/v+6*(a<s):a===f?(s-i)/v+2:(i-a)/v+4,v/=T<.5?f+l:2-f-l,b*=60):v=T>0&&T<1?0:b,new qa(b,v,T,n.opacity)}function Ec(n,i,a,s){return arguments.length===1?Tc(n):new qa(n,i,a,s??1)}function qa(n,i,a,s){this.h=+n,this.s=+i,this.l=+a,this.opacity=+s}function Fe(n,i,a){return 255*(n<60?i+(a-i)*n/60:n<180?a:n<240?i+(a-i)*(240-n)/60:i)}function ql(n,i,a,s,l){var f=n*n,b=f*n;return((1-3*n+3*f-b)*i+(4-6*f+3*b)*a+(1+3*n+3*f-3*b)*s+b*l)/6}function Ar(n){var i=n.length-1;return function(a){var s=a<=0?a=0:a>=1?(a=1,i-1):Math.floor(a*i),l=n[s],f=n[s+1],b=s>0?n[s-1]:2*l-f,v=s<i-1?n[s+2]:2*f-l;return ql((a-s/i)*i,b,l,f,v)}}function du(n){var i=n.length;return function(a){var s=Math.floor(((a%=1)<0?++a:a)*i),l=n[(s+i-1)%i],f=n[s%i],b=n[(s+1)%i],v=n[(s+2)%i];return ql((a-s/i)*i,l,f,b,v)}}function pu(n){return function(){return n}}function Cc(n,i){return function(a){return n+a*i}}function Ea(n,i){var a=i-n;return a?Cc(n,a>180||a<-180?a-360*Math.round(a/360):a):pu(isNaN(n)?i:n)}function gi(n,i){var a=i-n;return a?Cc(n,a):pu(isNaN(n)?i:n)}Fr(Vr,za,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Pr,formatHex:Pr,formatHsl:function(){return Tc(this).formatHsl()},formatRgb:Ds,toString:Ds}),Fr(ei,Ri,ci(Vr,{brighter:function(n){return n=n==null?Ii:Math.pow(Ii,n),new ei(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new ei(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:xc,formatHex:xc,formatRgb:wc,toString:wc})),Fr(qa,Ec,ci(Vr,{brighter:function(n){return n=n==null?Ii:Math.pow(Ii,n),new qa(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new qa(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,a=this.l,s=a+(a<.5?a:1-a)*i,l=2*a-s;return new ei(Fe(n>=240?n-240:n+120,l,s),Fe(n,l,s),Fe(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 Os=(function n(i){var a=(function(l){return(l=+l)==1?gi:function(f,b){return b-f?(function(v,T,A){return v=Math.pow(v,A),T=Math.pow(T,A)-v,A=1/A,function(B){return Math.pow(v+B*T,A)}})(f,b,l):pu(isNaN(f)?b:f)}})(i);function s(l,f){var b=a((l=Ri(l)).r,(f=Ri(f)).r),v=a(l.g,f.g),T=a(l.b,f.b),A=gi(l.opacity,f.opacity);return function(B){return l.r=b(B),l.g=v(B),l.b=T(B),l.opacity=A(B),l+""}}return s.gamma=n,s})(1);function Hl(n){return function(i){var a,s,l=i.length,f=new Array(l),b=new Array(l),v=new Array(l);for(a=0;a<l;++a)s=Ri(i[a]),f[a]=s.r||0,b[a]=s.g||0,v[a]=s.b||0;return f=n(f),b=n(b),v=n(v),s.opacity=1,function(T){return s.r=f(T),s.g=b(T),s.b=v(T),s+""}}}var Sc=Hl(Ar),Eo=Hl(du);function $l(n,i){i||(i=[]);var a,s=n?Math.min(i.length,n.length):0,l=i.slice();return function(f){for(a=0;a<s;++a)l[a]=n[a]*(1-f)+i[a]*f;return l}}function Of(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Ad(n,i){return(Of(i)?$l:Bf)(n,i)}function Bf(n,i){var a,s=i?i.length:0,l=n?Math.min(s,n.length):0,f=new Array(l),b=new Array(s);for(a=0;a<l;++a)f[a]=gu(n[a],i[a]);for(;a<s;++a)b[a]=i[a];return function(v){for(a=0;a<l;++a)b[a]=f[a](v);return b}}function Lf(n,i){var a=new Date;return n=+n,i=+i,function(s){return a.setTime(n*(1-s)+i*s),a}}function pa(n,i){return n=+n,i=+i,function(a){return n*(1-a)+i*a}}function If(n,i){var a,s={},l={};for(a in n!==null&&typeof n=="object"||(n={}),i!==null&&typeof i=="object"||(i={}),i)a in n?s[a]=gu(n[a],i[a]):l[a]=i[a];return function(f){for(a in s)l[a]=s[a](f);return l}}var Wl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vl=new RegExp(Wl.source,"g");function Co(n,i){var a,s,l,f=Wl.lastIndex=Vl.lastIndex=0,b=-1,v=[],T=[];for(n+="",i+="";(a=Wl.exec(n))&&(s=Vl.exec(i));)(l=s.index)>f&&(l=i.slice(f,l),v[b]?v[b]+=l:v[++b]=l),(a=a[0])===(s=s[0])?v[b]?v[b]+=s:v[++b]=s:(v[++b]=null,T.push({i:b,x:pa(a,s)})),f=Vl.lastIndex;return f<i.length&&(l=i.slice(f),v[b]?v[b]+=l:v[++b]=l),v.length<2?T[0]?(function(A){return function(B){return A(B)+""}})(T[0].x):(function(A){return function(){return A}})(i):(i=T.length,function(A){for(var B,F=0;F<i;++F)v[(B=T[F]).i]=B.x(A);return v.join("")})}function gu(n,i){var a,s=typeof i;return i==null||s==="boolean"?pu(i):(s==="number"?pa:s==="string"?(a=za(i))?(i=a,Os):Co:i instanceof za?Os:i instanceof Date?Lf:Of(i)?$l:Array.isArray(i)?Bf:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?If:pa)(n,i)}function Ha(){for(var n,i=pt;n=i.sourceEvent;)i=n;return i}function yu(n,i){var a=n.ownerSVGElement||n;if(a.createSVGPoint){var s=a.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 ga(n,i,a){arguments.length<3&&(a=i,i=Ha().changedTouches);for(var s,l=0,f=i?i.length:0;l<f;++l)if((s=i[l]).identifier===a)return yu(n,s);return null}function ss(n){var i=Ha();return i.changedTouches&&(i=i.changedTouches[0]),yu(n,i)}var Ac,So,Fi=0,li=0,$a=0,Ca=0,Gi=0,zn=0,E=typeof performance=="object"&&performance.now?performance:Date,R=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function $(){return Gi||(R(it),Gi=E.now()+zn)}function it(){Gi=0}function Wt(){this._call=this._time=this._next=null}function fe(n,i,a){var s=new Wt;return s.restart(n,i,a),s}function xe(){$(),++Fi;for(var n,i=Ac;i;)(n=Gi-i._time)>=0&&i._call.call(null,n),i=i._next;--Fi}function Ae(){Gi=(Ca=E.now())+zn,Fi=li=0;try{xe()}finally{Fi=0,(function(){for(var n,i,a=Ac,s=1/0;a;)a._call?(s>a._time&&(s=a._time),n=a,a=a._next):(i=a._next,a._next=null,a=n?n._next=i:Ac=i);So=n,Ye(s)})(),Gi=0}}function Ne(){var n=E.now(),i=n-Ca;i>1e3&&(zn-=i,Ca=n)}function Ye(n){Fi||(li&&(li=clearTimeout(li)),n-Gi>24?(n<1/0&&(li=setTimeout(Ae,n-E.now()-zn)),$a&&($a=clearInterval($a))):($a||(Ca=E.now(),$a=setInterval(Ne,1e3)),Fi=1,R(Ae)))}function We(n,i,a){var s=new Wt;return i=i==null?0:+i,s.restart((function(l){s.stop(),n(l+i)}),i,a),s}Wt.prototype=fe.prototype={constructor:Wt,restart:function(n,i,a){if(typeof n!="function")throw new TypeError("callback is not a function");a=(a==null?$():+a)+(i==null?0:+i),this._next||So===this||(So?So._next=this:Ac=this,So=this),this._call=n,this._time=a,Ye()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ye())}};var mn=rn("start","end","cancel","interrupt"),cn=[];function or(n,i,a,s,l,f){var b=n.__transition;if(b){if(a in b)return}else n.__transition={};(function(v,T,A){var B,F=v.__transition;function O(Z){var Q,G,rt,et;if(A.state!==1)return U();for(Q in F)if((et=F[Q]).name===A.name){if(et.state===3)return We(O);et.state===4?(et.state=6,et.timer.stop(),et.on.call("interrupt",v,v.__data__,et.index,et.group),delete F[Q]):+Q<T&&(et.state=6,et.timer.stop(),et.on.call("cancel",v,v.__data__,et.index,et.group),delete F[Q])}if(We((function(){A.state===3&&(A.state=4,A.timer.restart(z,A.delay,A.time),z(Z))})),A.state=2,A.on.call("start",v,v.__data__,A.index,A.group),A.state===2){for(A.state=3,B=new Array(rt=A.tween.length),Q=0,G=-1;Q<rt;++Q)(et=A.tween[Q].value.call(v,v.__data__,A.index,A.group))&&(B[++G]=et);B.length=G+1}}function z(Z){for(var Q=Z<A.duration?A.ease.call(null,Z/A.duration):(A.timer.restart(U),A.state=5,1),G=-1,rt=B.length;++G<rt;)B[G].call(v,Q);A.state===5&&(A.on.call("end",v,v.__data__,A.index,A.group),U())}function U(){for(var Z in A.state=6,A.timer.stop(),delete F[T],F)return;delete v.__transition}F[T]=A,A.timer=fe((function(Z){A.state=1,A.timer.restart(O,A.delay,A.time),A.delay<=Z&&O(Z-A.delay)}),0,A.time)})(n,a,{name:i,index:s,group:l,on:mn,tween:cn,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:0})}function cr(n,i){var a=ar(n,i);if(a.state>0)throw new Error("too late; already scheduled");return a}function Mr(n,i){var a=ar(n,i);if(a.state>3)throw new Error("too late; already running");return a}function ar(n,i){var a=n.__transition;if(!a||!(a=a[i]))throw new Error("transition not found");return a}function ya(n,i){var a,s,l,f=n.__transition,b=!0;if(f){for(l in i=i==null?null:i+"",f)(a=f[l]).name===i?(s=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(s?"interrupt":"cancel",n,n.__data__,a.index,a.group),delete f[l]):b=!1;b&&delete n.__transition}}var us,Gl,Md,Xl,Ao=180/Math.PI,Zl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ey(n,i,a,s,l,f){var b,v,T;return(b=Math.sqrt(n*n+i*i))&&(n/=b,i/=b),(T=n*a+i*s)&&(a-=n*T,s-=i*T),(v=Math.sqrt(a*a+s*s))&&(a/=v,s/=v,T/=v),n*s<i*a&&(n=-n,i=-i,T=-T,b=-b),{translateX:l,translateY:f,rotate:Math.atan2(i,n)*Ao,skewX:Math.atan(T)*Ao,scaleX:b,scaleY:v}}function ny(n,i,a,s){function l(f){return f.length?f.pop()+" ":""}return function(f,b){var v=[],T=[];return f=n(f),b=n(b),(function(A,B,F,O,z,U){if(A!==F||B!==O){var Z=z.push("translate(",null,i,null,a);U.push({i:Z-4,x:pa(A,F)},{i:Z-2,x:pa(B,O)})}else(F||O)&&z.push("translate("+F+i+O+a)})(f.translateX,f.translateY,b.translateX,b.translateY,v,T),(function(A,B,F,O){A!==B?(A-B>180?B+=360:B-A>180&&(A+=360),O.push({i:F.push(l(F)+"rotate(",null,s)-2,x:pa(A,B)})):B&&F.push(l(F)+"rotate("+B+s)})(f.rotate,b.rotate,v,T),(function(A,B,F,O){A!==B?O.push({i:F.push(l(F)+"skewX(",null,s)-2,x:pa(A,B)}):B&&F.push(l(F)+"skewX("+B+s)})(f.skewX,b.skewX,v,T),(function(A,B,F,O,z,U){if(A!==F||B!==O){var Z=z.push(l(z)+"scale(",null,",",null,")");U.push({i:Z-4,x:pa(A,F)},{i:Z-2,x:pa(B,O)})}else F===1&&O===1||z.push(l(z)+"scale("+F+","+O+")")})(f.scaleX,f.scaleY,b.scaleX,b.scaleY,v,T),f=b=null,function(A){for(var B,F=-1,O=T.length;++F<O;)v[(B=T[F]).i]=B.x(A);return v.join("")}}}var Nd=ny((function(n){return n==="none"?Zl:(us||(us=document.createElement("DIV"),Gl=document.documentElement,Md=document.defaultView),us.style.transform=n,n=Md.getComputedStyle(Gl.appendChild(us),null).getPropertyValue("transform"),Gl.removeChild(us),ey(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}),"px, ","px)","deg)"),Dd=ny((function(n){return n==null?Zl:(Xl||(Xl=document.createElementNS("http://www.w3.org/2000/svg","g")),Xl.setAttribute("transform",n),(n=Xl.transform.baseVal.consolidate())?ey((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Zl)}),", ",")",")");function ry(n,i){var a,s;return function(){var l=Mr(this,n),f=l.tween;if(f!==a){for(var b=0,v=(s=a=f).length;b<v;++b)if(s[b].name===i){(s=s.slice()).splice(b,1);break}}l.tween=s}}function Od(n,i,a){var s,l;if(typeof a!="function")throw new Error;return function(){var f=Mr(this,n),b=f.tween;if(b!==s){l=(s=b).slice();for(var v={name:i,value:a},T=0,A=l.length;T<A;++T)if(l[T].name===i){l[T]=v;break}T===A&&l.push(v)}f.tween=l}}function Rf(n,i,a){var s=n._id;return n.each((function(){var l=Mr(this,s);(l.value||(l.value={}))[i]=a.apply(this,arguments)})),function(l){return ar(l,s).value[i]}}function Bd(n,i){var a;return(typeof i=="number"?pa:i instanceof za?Os:(a=za(i))?(i=a,Os):Co)(n,i)}function Wo(n){return function(){this.removeAttribute(n)}}function Ld(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Id(n,i,a){var s,l,f=a+"";return function(){var b=this.getAttribute(n);return b===f?null:b===s?l:l=i(s=b,a)}}function Rd(n,i,a){var s,l,f=a+"";return function(){var b=this.getAttributeNS(n.space,n.local);return b===f?null:b===s?l:l=i(s=b,a)}}function Fd(n,i,a){var s,l,f;return function(){var b,v,T=a(this);if(T!=null)return(b=this.getAttribute(n))===(v=T+"")?null:b===s&&v===l?f:(l=v,f=i(s=b,T));this.removeAttribute(n)}}function X3(n,i,a){var s,l,f;return function(){var b,v,T=a(this);if(T!=null)return(b=this.getAttributeNS(n.space,n.local))===(v=T+"")?null:b===s&&v===l?f:(l=v,f=i(s=b,T));this.removeAttributeNS(n.space,n.local)}}function Pd(n,i){return function(a){this.setAttribute(n,i.call(this,a))}}function cs(n,i){return function(a){this.setAttributeNS(n.space,n.local,i.call(this,a))}}function iy(n,i){var a,s;function l(){var f=i.apply(this,arguments);return f!==s&&(a=(s=f)&&cs(n,f)),a}return l._value=i,l}function jd(n,i){var a,s;function l(){var f=i.apply(this,arguments);return f!==s&&(a=(s=f)&&Pd(n,f)),a}return l._value=i,l}function ay(n,i){return function(){cr(this,n).delay=+i.apply(this,arguments)}}function Ql(n,i){return i=+i,function(){cr(this,n).delay=i}}function Z3(n,i){return function(){Mr(this,n).duration=+i.apply(this,arguments)}}function Q3(n,i){return i=+i,function(){Mr(this,n).duration=i}}function Yd(n,i){if(typeof i!="function")throw new Error;return function(){Mr(this,n).ease=i}}function zd(n,i,a){var s,l,f=(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)?cr:Mr;return function(){var b=f(this,n),v=b.on;v!==s&&(l=(s=v).copy()).on(i,a),b.on=l}}var Ud=Ya.prototype.constructor;function qd(n){return function(){this.style.removeProperty(n)}}function Hd(n,i,a){return function(s){this.style.setProperty(n,i.call(this,s),a)}}function $d(n,i,a){var s,l;function f(){var b=i.apply(this,arguments);return b!==l&&(s=(l=b)&&Hd(n,b,a)),s}return f._value=i,f}function Wd(n){return function(i){this.textContent=n.call(this,i)}}function K3(n){var i,a;function s(){var l=n.apply(this,arguments);return l!==a&&(i=(a=l)&&Wd(l)),i}return s._value=n,s}var J3=0;function Vo(n,i,a,s){this._groups=n,this._parents=i,this._name=a,this._id=s}function Ff(n){return Ya().transition(n)}function Vd(){return++J3}var Go=Ya.prototype;function Pf(n){return n*n*n}function jf(n){return--n*n*n+1}function Bs(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Vo.prototype=Ff.prototype={constructor:Vo,select:function(n){var i=this._name,a=this._id;typeof n!="function"&&(n=Dr(n));for(var s=this._groups,l=s.length,f=new Array(l),b=0;b<l;++b)for(var v,T,A=s[b],B=A.length,F=f[b]=new Array(B),O=0;O<B;++O)(v=A[O])&&(T=n.call(v,v.__data__,O,A))&&("__data__"in v&&(T.__data__=v.__data__),F[O]=T,or(F[O],i,a,O,F,ar(v,a)));return new Vo(f,this._parents,i,a)},selectAll:function(n){var i=this._name,a=this._id;typeof n!="function"&&(n=Zn(n));for(var s=this._groups,l=s.length,f=[],b=[],v=0;v<l;++v)for(var T,A=s[v],B=A.length,F=0;F<B;++F)if(T=A[F]){for(var O,z=n.call(T,T.__data__,F,A),U=ar(T,a),Z=0,Q=z.length;Z<Q;++Z)(O=z[Z])&&or(O,i,a,Z,z,U);f.push(z),b.push(T)}return new Vo(f,b,i,a)},filter:function(n){typeof n!="function"&&(n=on(n));for(var i=this._groups,a=i.length,s=new Array(a),l=0;l<a;++l)for(var f,b=i[l],v=b.length,T=s[l]=[],A=0;A<v;++A)(f=b[A])&&n.call(f,f.__data__,A,b)&&T.push(f);return new Vo(s,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,a=n._groups,s=i.length,l=a.length,f=Math.min(s,l),b=new Array(s),v=0;v<f;++v)for(var T,A=i[v],B=a[v],F=A.length,O=b[v]=new Array(F),z=0;z<F;++z)(T=A[z]||B[z])&&(O[z]=T);for(;v<s;++v)b[v]=i[v];return new Vo(b,this._parents,this._name,this._id)},selection:function(){return new Ud(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,a=Vd(),s=this._groups,l=s.length,f=0;f<l;++f)for(var b,v=s[f],T=v.length,A=0;A<T;++A)if(b=v[A]){var B=ar(b,i);or(b,n,a,A,v,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Vo(s,this._parents,n,a)},call:Go.call,nodes:Go.nodes,node:Go.node,size:Go.size,empty:Go.empty,each:Go.each,on:function(n,i){var a=this._id;return arguments.length<2?ar(this.node(),a).on.on(n):this.each(zd(a,n,i))},attr:function(n,i){var a=_n(n),s=a==="transform"?Dd:Bd;return this.attrTween(n,typeof i=="function"?(a.local?X3:Fd)(a,s,Rf(this,"attr."+n,i)):i==null?(a.local?Ld:Wo)(a):(a.local?Rd:Id)(a,s,i))},attrTween:function(n,i){var a="attr."+n;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;var s=_n(n);return this.tween(a,(s.local?iy:jd)(s,i))},style:function(n,i,a){var s=(n+="")=="transform"?Nd:Bd;return i==null?this.styleTween(n,(function(l,f){var b,v,T;return function(){var A=ri(this,l),B=(this.style.removeProperty(l),ri(this,l));return A===B?null:A===b&&B===v?T:T=f(b=A,v=B)}})(n,s)).on("end.style."+n,qd(n)):typeof i=="function"?this.styleTween(n,(function(l,f,b){var v,T,A;return function(){var B=ri(this,l),F=b(this),O=F+"";return F==null&&(this.style.removeProperty(l),O=F=ri(this,l)),B===O?null:B===v&&O===T?A:(T=O,A=f(v=B,F))}})(n,s,Rf(this,"style."+n,i))).each((function(l,f){var b,v,T,A,B="style."+f,F="end."+B;return function(){var O=Mr(this,l),z=O.on,U=O.value[B]==null?A||(A=qd(f)):void 0;z===b&&T===U||(v=(b=z).copy()).on(F,T=U),O.on=v}})(this._id,n)):this.styleTween(n,(function(l,f,b){var v,T,A=b+"";return function(){var B=ri(this,l);return B===A?null:B===v?T:T=f(v=B,b)}})(n,s,i),a).on("end.style."+n,null)},styleTween:function(n,i,a){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,$d(n,i,a??""))},text:function(n){return this.tween("text",typeof n=="function"?(function(i){return function(){var a=i(this);this.textContent=a??""}})(Rf(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,K3(n))},remove:function(){return this.on("end.remove",(function(n){return function(){var i=this.parentNode;for(var a in this.__transition)if(+a!==n)return;i&&i.removeChild(this)}})(this._id))},tween:function(n,i){var a=this._id;if(n+="",arguments.length<2){for(var s,l=ar(this.node(),a).tween,f=0,b=l.length;f<b;++f)if((s=l[f]).name===n)return s.value;return null}return this.each((i==null?ry:Od)(a,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?ay:Ql)(i,n)):ar(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Z3:Q3)(i,n)):ar(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(Yd(i,n)):ar(this.node(),i).ease},end:function(){var n,i,a=this,s=a._id,l=a.size();return new Promise((function(f,b){var v={value:b},T={value:function(){--l==0&&f()}};a.each((function(){var A=Mr(this,s),B=A.on;B!==n&&((i=(n=B).copy())._.cancel.push(v),i._.interrupt.push(v),i._.end.push(T)),A.on=i}))}))}};var mu={time:null,delay:0,duration:250,ease:Bs};function Xo(n,i){for(var a;!(a=n.__transition)||!(a=a[i]);)if(!(n=n.parentNode))return mu.time=$(),mu;return a}Ya.prototype.interrupt=function(n){return this.each((function(){ya(this,n)}))},Ya.prototype.transition=function(n){var i,a;n instanceof Vo?(i=n._id,n=n._name):(i=Vd(),(a=mu).time=$(),n=n==null?null:n+"");for(var s=this._groups,l=s.length,f=0;f<l;++f)for(var b,v=s[f],T=v.length,A=0;A<T;++A)(b=v[A])&&or(b,n,i,A,v,a||Xo(b,i));return new Vo(s,this._parents,n,i)};var tb=[null];function eb(n,i){var a,s,l=n.__transition;if(l){for(s in i=i==null?null:i+"",l)if((a=l[s]).state>1&&a.name===i)return new Vo([[n]],tb,i,+s)}return null}function Gd(n){return function(){return n}}function nb(n,i,a){this.target=n,this.type=i,this.selection=a}function oy(){pt.stopImmediatePropagation()}function Xd(){pt.preventDefault(),pt.stopImmediatePropagation()}var sy={},Yf={name:"space"},vu={name:"handle"},bu={name:"center"};function Mc(n){return[+n[0],+n[1]]}function zf(n){return[Mc(n[0]),Mc(n[1])]}function Uf(n){return function(i){return ga(i,pt.touches,n)}}var qf={name:"x",handles:["w","e"].map(Sa),input:function(n,i){return n==null?null:[[+n[0],i[0][1]],[+n[1],i[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},Nc={name:"y",handles:["n","s"].map(Sa),input:function(n,i){return n==null?null:[[i[0][0],+n[0]],[i[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},Wa={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Sa),input:function(n){return n==null?null:zf(n)},output:function(n){return n}},Zo={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"},Zd={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Hf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},uy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},cy={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Sa(n){return{type:n}}function Qd(){return!pt.ctrlKey&&!pt.button}function Kd(){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 $f(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function rb(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function ib(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Wf(){return Kl(qf)}function ab(){return Kl(Nc)}function Jd(){return Kl(Wa)}function Kl(n){var i,a=Kd,s=Qd,l=ly,f=!0,b=rn("start","brush","end"),v=6;function T(Q){var G=Q.property("__brush",Z).selectAll(".overlay").data([Sa("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Zo.overlay).merge(G).each((function(){var et=$f(this).extent;gr(this).attr("x",et[0][0]).attr("y",et[0][1]).attr("width",et[1][0]-et[0][0]).attr("height",et[1][1]-et[0][1])})),Q.selectAll(".selection").data([Sa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Zo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var rt=Q.selectAll(".handle").data(n.handles,(function(et){return et.type}));rt.exit().remove(),rt.enter().append("rect").attr("class",(function(et){return"handle handle--"+et.type})).attr("cursor",(function(et){return Zo[et.type]})),Q.each(A).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",O).filter(l).on("touchstart.brush",O).on("touchmove.brush",z).on("touchend.brush touchcancel.brush",U).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(){var Q=gr(this),G=$f(this).selection;G?(Q.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),Q.selectAll(".handle").style("display",null).attr("x",(function(rt){return rt.type[rt.type.length-1]==="e"?G[1][0]-v/2:G[0][0]-v/2})).attr("y",(function(rt){return rt.type[0]==="s"?G[1][1]-v/2:G[0][1]-v/2})).attr("width",(function(rt){return rt.type==="n"||rt.type==="s"?G[1][0]-G[0][0]+v:v})).attr("height",(function(rt){return rt.type==="e"||rt.type==="w"?G[1][1]-G[0][1]+v:v}))):Q.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(Q,G,rt){var et=Q.__brush.emitter;return!et||rt&&et.clean?new F(Q,G,rt):et}function F(Q,G,rt){this.that=Q,this.args=G,this.state=Q.__brush,this.active=0,this.clean=rt}function O(){if((!i||pt.touches)&&s.apply(this,arguments)){var Q,G,rt,et,ct,Lt,qt,ne,ve,zt,ue,ut=this,xt=pt.target.__data__.type,ae=(f&&pt.metaKey?xt="overlay":xt)==="selection"?sy:f&&pt.altKey?bu:vu,Jt=n===Nc?null:uy[xt],Kt=n===qf?null:cy[xt],Le=$f(ut),Ie=Le.extent,vn=Le.selection,tr=Ie[0][0],ir=Ie[0][1],nn=Ie[1][0],sr=Ie[1][1],Mn=0,Sn=0,ur=Jt&&Kt&&f&&pt.shiftKey,Nn=pt.touches?Uf(pt.changedTouches[0].identifier):ss,oi=Nn(ut),la=oi,cu=B(ut,arguments,!0).beforestart();xt==="overlay"?(vn&&(ve=!0),Le.selection=vn=[[Q=n===Nc?tr:oi[0],rt=n===qf?ir:oi[1]],[ct=n===Nc?nn:Q,qt=n===qf?sr:rt]]):(Q=vn[0][0],rt=vn[0][1],ct=vn[1][0],qt=vn[1][1]),G=Q,et=rt,Lt=ct,ne=qt;var vc=gr(ut).attr("pointer-events","none"),zl=vc.selectAll(".overlay").attr("cursor",Zo[xt]);if(pt.touches)cu.moved=Sd,cu.ended=bc;else{var K2=gr(pt.view).on("mousemove.brush",Sd,!0).on("mouseup.brush",bc,!0);f&&K2.on("keydown.brush",J2,!0).on("keyup.brush",Ul,!0),Jr(pt.view)}oy(),ya(ut),A.call(ut),cu.start()}function Sd(){var na=Nn(ut);!ur||zt||ue||(Math.abs(na[0]-la[0])>Math.abs(na[1]-la[1])?ue=!0:zt=!0),la=na,ve=!0,Xd(),lu()}function lu(){var na;switch(Mn=la[0]-oi[0],Sn=la[1]-oi[1],ae){case Yf:case sy:Jt&&(Mn=Math.max(tr-Q,Math.min(nn-ct,Mn)),G=Q+Mn,Lt=ct+Mn),Kt&&(Sn=Math.max(ir-rt,Math.min(sr-qt,Sn)),et=rt+Sn,ne=qt+Sn);break;case vu:Jt<0?(Mn=Math.max(tr-Q,Math.min(nn-Q,Mn)),G=Q+Mn,Lt=ct):Jt>0&&(Mn=Math.max(tr-ct,Math.min(nn-ct,Mn)),G=Q,Lt=ct+Mn),Kt<0?(Sn=Math.max(ir-rt,Math.min(sr-rt,Sn)),et=rt+Sn,ne=qt):Kt>0&&(Sn=Math.max(ir-qt,Math.min(sr-qt,Sn)),et=rt,ne=qt+Sn);break;case bu:Jt&&(G=Math.max(tr,Math.min(nn,Q-Mn*Jt)),Lt=Math.max(tr,Math.min(nn,ct+Mn*Jt))),Kt&&(et=Math.max(ir,Math.min(sr,rt-Sn*Kt)),ne=Math.max(ir,Math.min(sr,qt+Sn*Kt)))}Lt<G&&(Jt*=-1,na=Q,Q=ct,ct=na,na=G,G=Lt,Lt=na,xt in Zd&&zl.attr("cursor",Zo[xt=Zd[xt]])),ne<et&&(Kt*=-1,na=rt,rt=qt,qt=na,na=et,et=ne,ne=na,xt in Hf&&zl.attr("cursor",Zo[xt=Hf[xt]])),Le.selection&&(vn=Le.selection),zt&&(G=vn[0][0],Lt=vn[1][0]),ue&&(et=vn[0][1],ne=vn[1][1]),vn[0][0]===G&&vn[0][1]===et&&vn[1][0]===Lt&&vn[1][1]===ne||(Le.selection=[[G,et],[Lt,ne]],A.call(ut),cu.brush())}function bc(){if(oy(),pt.touches){if(pt.touches.length)return;i&&clearTimeout(i),i=setTimeout((function(){i=null}),500)}else Rr(pt.view,ve),K2.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);vc.attr("pointer-events","all"),zl.attr("cursor",Zo.overlay),Le.selection&&(vn=Le.selection),rb(vn)&&(Le.selection=null,A.call(ut)),cu.end()}function J2(){switch(pt.keyCode){case 16:ur=Jt&&Kt;break;case 18:ae===vu&&(Jt&&(ct=Lt-Mn*Jt,Q=G+Mn*Jt),Kt&&(qt=ne-Sn*Kt,rt=et+Sn*Kt),ae=bu,lu());break;case 32:ae!==vu&&ae!==bu||(Jt<0?ct=Lt-Mn:Jt>0&&(Q=G-Mn),Kt<0?qt=ne-Sn:Kt>0&&(rt=et-Sn),ae=Yf,zl.attr("cursor",Zo.selection),lu());break;default:return}Xd()}function Ul(){switch(pt.keyCode){case 16:ur&&(zt=ue=ur=!1,lu());break;case 18:ae===bu&&(Jt<0?ct=Lt:Jt>0&&(Q=G),Kt<0?qt=ne:Kt>0&&(rt=et),ae=vu,lu());break;case 32:ae===Yf&&(pt.altKey?(Jt&&(ct=Lt-Mn*Jt,Q=G+Mn*Jt),Kt&&(qt=ne-Sn*Kt,rt=et+Sn*Kt),ae=bu):(Jt<0?ct=Lt:Jt>0&&(Q=G),Kt<0?qt=ne:Kt>0&&(rt=et),ae=vu),zl.attr("cursor",Zo[xt]),lu());break;default:return}Xd()}}function z(){B(this,arguments).moved()}function U(){B(this,arguments).ended()}function Z(){var Q=this.__brush||{selection:null};return Q.extent=zf(a.apply(this,arguments)),Q.dim=n,Q}return T.move=function(Q,G){Q.selection?Q.on("start.brush",(function(){B(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){B(this,arguments).end()})).tween("brush",(function(){var rt=this,et=rt.__brush,ct=B(rt,arguments),Lt=et.selection,qt=n.input(typeof G=="function"?G.apply(this,arguments):G,et.extent),ne=gu(Lt,qt);function ve(zt){et.selection=zt===1&&qt===null?null:ne(zt),A.call(rt),ct.brush()}return Lt!==null&&qt!==null?ve:ve(1)})):Q.each((function(){var rt=this,et=arguments,ct=rt.__brush,Lt=n.input(typeof G=="function"?G.apply(rt,et):G,ct.extent),qt=B(rt,et).beforestart();ya(rt),ct.selection=Lt===null?null:Lt,A.call(rt),qt.start().brush().end()}))},T.clear=function(Q){T.move(Q,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(Q){io(new nb(T,Q,n.output(this.state.selection)),b.apply,b,[Q,this.that,this.args])}},T.extent=function(Q){return arguments.length?(a=typeof Q=="function"?Q:Gd(zf(Q)),T):a},T.filter=function(Q){return arguments.length?(s=typeof Q=="function"?Q:Gd(!!Q),T):s},T.touchable=function(Q){return arguments.length?(l=typeof Q=="function"?Q:Gd(!!Q),T):l},T.handleSize=function(Q){return arguments.length?(v=+Q,T):v},T.keyModifiers=function(Q){return arguments.length?(f=!!Q,T):f},T.on=function(){var Q=b.on.apply(b,arguments);return Q===b?T:Q},T}var hy=Math.cos,fy=Math.sin,Vf=Math.PI,Gf=Vf/2,dy=2*Vf,tp=Math.max;function Dc(n){return function(i,a){return n(i.source.value+i.target.value,a.source.value+a.target.value)}}function ep(){var n=0,i=null,a=null,s=null;function l(f){var b,v,T,A,B,F,O=f.length,z=[],U=st(O),Z=[],Q=[],G=Q.groups=new Array(O),rt=new Array(O*O);for(b=0,B=-1;++B<O;){for(v=0,F=-1;++F<O;)v+=f[B][F];z.push(v),Z.push(st(O)),b+=v}for(i&&U.sort((function(ue,ut){return i(z[ue],z[ut])})),a&&Z.forEach((function(ue,ut){ue.sort((function(xt,ae){return a(f[ut][xt],f[ut][ae])}))})),A=(b=tp(0,dy-n*O)/b)?n:dy/O,v=0,B=-1;++B<O;){for(T=v,F=-1;++F<O;){var et=U[B],ct=Z[et][F],Lt=f[et][ct],qt=v,ne=v+=Lt*b;rt[ct*O+et]={index:et,subindex:ct,startAngle:qt,endAngle:ne,value:Lt}}G[et]={index:et,startAngle:T,endAngle:v,value:z[et]},v+=A}for(B=-1;++B<O;)for(F=B-1;++F<O;){var ve=rt[F*O+B],zt=rt[B*O+F];(ve.value||zt.value)&&Q.push(ve.value<zt.value?{source:zt,target:ve}:{source:ve,target:zt})}return s?Q.sort(s):Q}return l.padAngle=function(f){return arguments.length?(n=tp(0,f),l):n},l.sortGroups=function(f){return arguments.length?(i=f,l):i},l.sortSubgroups=function(f){return arguments.length?(a=f,l):a},l.sortChords=function(f){return arguments.length?(f==null?s=null:(s=Dc(f))._=f,l):s&&s._},l}var ob=Array.prototype.slice;function np(n){return function(){return n}}var Xf=Math.PI,Zf=2*Xf,ls=1e-6,py=Zf-ls;function rp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Jl(){return new rp}rp.prototype=Jl.prototype={constructor:rp,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,a,s){this._+="Q"+ +n+","+ +i+","+(this._x1=+a)+","+(this._y1=+s)},bezierCurveTo:function(n,i,a,s,l,f){this._+="C"+ +n+","+ +i+","+ +a+","+ +s+","+(this._x1=+l)+","+(this._y1=+f)},arcTo:function(n,i,a,s,l){n=+n,i=+i,a=+a,s=+s,l=+l;var f=this._x1,b=this._y1,v=a-n,T=s-i,A=f-n,B=b-i,F=A*A+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>ls)if(Math.abs(B*v-T*A)>ls&&l){var O=a-f,z=s-b,U=v*v+T*T,Z=O*O+z*z,Q=Math.sqrt(U),G=Math.sqrt(F),rt=l*Math.tan((Xf-Math.acos((U+F-Z)/(2*Q*G)))/2),et=rt/G,ct=rt/Q;Math.abs(et-1)>ls&&(this._+="L"+(n+et*A)+","+(i+et*B)),this._+="A"+l+","+l+",0,0,"+ +(B*O>A*z)+","+(this._x1=n+ct*v)+","+(this._y1=i+ct*T)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,a,s,l,f){n=+n,i=+i,f=!!f;var b=(a=+a)*Math.cos(s),v=a*Math.sin(s),T=n+b,A=i+v,B=1^f,F=f?s-l:l-s;if(a<0)throw new Error("negative radius: "+a);this._x1===null?this._+="M"+T+","+A:(Math.abs(this._x1-T)>ls||Math.abs(this._y1-A)>ls)&&(this._+="L"+T+","+A),a&&(F<0&&(F=F%Zf+Zf),F>py?this._+="A"+a+","+a+",0,1,"+B+","+(n-b)+","+(i-v)+"A"+a+","+a+",0,1,"+B+","+(this._x1=T)+","+(this._y1=A):F>ls&&(this._+="A"+a+","+a+",0,"+ +(F>=Xf)+","+B+","+(this._x1=n+a*Math.cos(l))+","+(this._y1=i+a*Math.sin(l))))},rect:function(n,i,a,s){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +a+"v"+ +s+"h"+-a+"Z"},toString:function(){return this._}};const hs=Jl;function Qf(n){return n.source}function Oc(n){return n.target}function gy(n){return n.radius}function yy(n){return n.startAngle}function my(n){return n.endAngle}function ip(){var n=Qf,i=Oc,a=gy,s=yy,l=my,f=null;function b(){var v,T=ob.call(arguments),A=n.apply(this,T),B=i.apply(this,T),F=+a.apply(this,(T[0]=A,T)),O=s.apply(this,T)-Gf,z=l.apply(this,T)-Gf,U=F*hy(O),Z=F*fy(O),Q=+a.apply(this,(T[0]=B,T)),G=s.apply(this,T)-Gf,rt=l.apply(this,T)-Gf;if(f||(f=v=hs()),f.moveTo(U,Z),f.arc(0,0,F,O,z),O===G&&z===rt||(f.quadraticCurveTo(0,0,Q*hy(G),Q*fy(G)),f.arc(0,0,Q,G,rt)),f.quadraticCurveTo(0,0,U,Z),f.closePath(),v)return f=null,v+""||null}return b.radius=function(v){return arguments.length?(a=typeof v=="function"?v:np(+v),b):a},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:np(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:np(+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?(f=v??null,b):f},b}var Va="$";function th(){}function ap(n,i){var a=new th;if(n instanceof th)n.each((function(v,T){a.set(T,v)}));else if(Array.isArray(n)){var s,l=-1,f=n.length;if(i==null)for(;++l<f;)a.set(l,n[l]);else for(;++l<f;)a.set(i(s=n[l],l,n),s)}else if(n)for(var b in n)a.set(b,n[b]);return a}th.prototype=ap.prototype={constructor:th,has:function(n){return Va+n in this},get:function(n){return this[Va+n]},set:function(n,i){return this[Va+n]=i,this},remove:function(n){var i=Va+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===Va&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===Va&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===Va&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===Va&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===Va&&++n;return n},empty:function(){for(var n in this)if(n[0]===Va)return!1;return!0},each:function(n){for(var i in this)i[0]===Va&&n(this[i],i.slice(1),this)}};const fs=ap;function sb(){var n,i,a,s=[],l=[];function f(v,T,A,B){if(T>=s.length)return n!=null&&v.sort(n),i!=null?i(v):v;for(var F,O,z,U=-1,Z=v.length,Q=s[T++],G=fs(),rt=A();++U<Z;)(z=G.get(F=Q(O=v[U])+""))?z.push(O):G.set(F,[O]);return G.each((function(et,ct){B(rt,ct,f(et,T,A,B))})),rt}function b(v,T){if(++T>s.length)return v;var A,B=l[T-1];return i!=null&&T>=s.length?A=v.entries():(A=[],v.each((function(F,O){A.push({key:O,values:b(F,T)})}))),B!=null?A.sort((function(F,O){return B(F.key,O.key)})):A}return a={object:function(v){return f(v,0,vy,by)},map:function(v){return f(v,0,op,_y)},entries:function(v){return b(f(v,0,op,_y),0)},key:function(v){return s.push(v),a},sortKeys:function(v){return l[s.length-1]=v,a},sortValues:function(v){return n=v,a},rollup:function(v){return i=v,a}}}function vy(){return{}}function by(n,i,a){n[i]=a}function op(){return fs()}function _y(n,i,a){n.set(i,a)}function eh(){}var Ls=fs.prototype;function Bc(n,i){var a=new eh;if(n instanceof eh)n.each((function(f){a.add(f)}));else if(n){var s=-1,l=n.length;if(i==null)for(;++s<l;)a.add(n[s]);else for(;++s<l;)a.add(i(n[s],s,n))}return a}eh.prototype=Bc.prototype={constructor:eh,has:Ls.has,add:function(n){return this[Va+(n+="")]=n,this},remove:Ls.remove,clear:Ls.clear,values:Ls.keys,size:Ls.size,empty:Ls.empty,each:Ls.each};const Is=Bc;function nh(n){var i=[];for(var a in n)i.push(a);return i}function sp(n){var i=[];for(var a in n)i.push(n[a]);return i}function up(n){var i=[];for(var a in n)i.push({key:a,value:n[a]});return i}var Kf=Math.PI/180,Jf=180/Math.PI,t1=.96422,Ci=.82521,rh=4/29,cp=6/29,lp=3*cp*cp;function Lc(n){if(n instanceof so)return new so(n.l,n.a,n.b,n.opacity);if(n instanceof Qo)return _u(n);n instanceof ei||(n=fu(n));var i,a,s=ds(n.r),l=ds(n.g),f=ds(n.b),b=e1((.2225045*s+.7168786*l+.0606169*f)/1);return s===l&&l===f?i=a=b:(i=e1((.4360747*s+.3850649*l+.1430804*f)/t1),a=e1((.0139322*s+.0971045*l+.7141733*f)/Ci)),new so(116*b-16,500*(i-b),200*(b-a),n.opacity)}function xy(n,i){return new so(n,0,0,i??1)}function ih(n,i,a,s){return arguments.length===1?Lc(n):new so(n,i,a,s??1)}function so(n,i,a,s){this.l=+n,this.a=+i,this.b=+a,this.opacity=+s}function e1(n){return n>.008856451679035631?Math.pow(n,.3333333333333333):n/lp+rh}function n1(n){return n>cp?n*n*n:lp*(n-rh)}function Ic(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,.4166666666666667)-.055)}function ds(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ah(n){if(n instanceof Qo)return new Qo(n.h,n.c,n.l,n.opacity);if(n instanceof so||(n=Lc(n)),n.a===0&&n.b===0)return new Qo(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*Jf;return new Qo(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function r1(n,i,a,s){return arguments.length===1?ah(n):new Qo(a,i,n,s??1)}function i1(n,i,a,s){return arguments.length===1?ah(n):new Qo(n,i,a,s??1)}function Qo(n,i,a,s){this.h=+n,this.c=+i,this.l=+a,this.opacity=+s}function _u(n){if(isNaN(n.h))return new so(n.l,0,0,n.opacity);var i=n.h*Kf;return new so(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}Fr(so,ih,ci(Vr,{brighter:function(n){return new so(this.l+18*(n??1),this.a,this.b,this.opacity)},darker:function(n){return new so(this.l-18*(n??1),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,a=isNaN(this.b)?n:n-this.b/200;return new ei(Ic(3.1338561*(i=t1*n1(i))-1.6168667*(n=1*n1(n))-.4906146*(a=Ci*n1(a))),Ic(-.9787684*i+1.9161415*n+.033454*a),Ic(.0719453*i-.2289914*n+1.4052427*a),this.opacity)}})),Fr(Qo,i1,ci(Vr,{brighter:function(n){return new Qo(this.h,this.c,this.l+18*(n??1),this.opacity)},darker:function(n){return new Qo(this.h,this.c,this.l-18*(n??1),this.opacity)},rgb:function(){return _u(this).rgb()}}));var wy=-.14861,hp=1.78277,a1=-.29227,oh=-.90649,xu=1.97294,Rs=xu*oh,ky=xu*hp,Ty=hp*a1-oh*wy;function Ey(n){if(n instanceof Ga)return new Ga(n.h,n.s,n.l,n.opacity);n instanceof ei||(n=fu(n));var i=n.r/255,a=n.g/255,s=n.b/255,l=(Ty*s+Rs*i-ky*a)/(Ty+Rs-ky),f=s-l,b=(xu*(a-l)-a1*f)/oh,v=Math.sqrt(b*b+f*f)/(xu*l*(1-l)),T=v?Math.atan2(b,f)*Jf-120:NaN;return new Ga(T<0?T+360:T,v,l,n.opacity)}function uo(n,i,a,s){return arguments.length===1?Ey(n):new Ga(n,i,a,s??1)}function Ga(n,i,a,s){this.h=+n,this.s=+i,this.l=+a,this.opacity=+s}Fr(Ga,uo,ci(Vr,{brighter:function(n){return n=n==null?Ii:Math.pow(Ii,n),new Ga(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Vi:Math.pow(Vi,n),new Ga(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*Kf,i=+this.l,a=isNaN(this.s)?0:this.s*i*(1-i),s=Math.cos(n),l=Math.sin(n);return new ei(255*(i+a*(wy*s+hp*l)),255*(i+a*(a1*s+oh*l)),255*(i+a*(xu*s)),this.opacity)}}));var fp=Array.prototype.slice;function o1(n,i){return n-i}function Fs(n){return function(){return n}}function ub(n,i){for(var a,s=-1,l=i.length;++s<l;)if(a=Rc(n,i[s]))return a;return 0}function Rc(n,i){for(var a=i[0],s=i[1],l=-1,f=0,b=n.length,v=b-1;f<b;v=f++){var T=n[f],A=T[0],B=T[1],F=n[v],O=F[0],z=F[1];if(cb(T,F,i))return 0;B>s!=z>s&&a<(O-A)*(s-B)/(z-B)+A&&(l=-l)}return l}function cb(n,i,a){var s,l,f,b;return(function(v,T,A){return(T[0]-v[0])*(A[1]-v[1])==(A[0]-v[0])*(T[1]-v[1])})(n,i,a)&&(l=n[s=+(n[0]===i[0])],f=a[s],b=i[s],l<=f&&f<=b||b<=f&&f<=l)}function lb(){}var ps=[[],[[[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 s1(){var n=1,i=1,a=$t,s=v;function l(T){var A=a(T);if(Array.isArray(A))A=A.slice().sort(o1);else{var B=J(T),F=B[0],O=B[1];A=vt(F,O,A),A=st(Math.floor(F/A)*A,Math.floor(O/A)*A,A)}return A.map((function(z){return f(T,z)}))}function f(T,A){var B=[],F=[];return(function(O,z,U){var Z,Q,G,rt,et,ct,Lt=new Array,qt=new Array;for(Z=Q=-1,rt=O[0]>=z,ps[rt<<1].forEach(ne);++Z<n-1;)G=rt,rt=O[Z+1]>=z,ps[G|rt<<1].forEach(ne);for(ps[rt<<0].forEach(ne);++Q<i-1;){for(Z=-1,rt=O[Q*n+n]>=z,et=O[Q*n]>=z,ps[rt<<1|et<<2].forEach(ne);++Z<n-1;)G=rt,rt=O[Q*n+n+Z+1]>=z,ct=et,et=O[Q*n+Z+1]>=z,ps[G|rt<<1|et<<2|ct<<3].forEach(ne);ps[rt|et<<3].forEach(ne)}for(Z=-1,et=O[Q*n]>=z,ps[et<<2].forEach(ne);++Z<n-1;)ct=et,et=O[Q*n+Z+1]>=z,ps[et<<2|ct<<3].forEach(ne);function ne(ve){var zt,ue,ut=[ve[0][0]+Z,ve[0][1]+Q],xt=[ve[1][0]+Z,ve[1][1]+Q],ae=b(ut),Jt=b(xt);(zt=qt[ae])?(ue=Lt[Jt])?(delete qt[zt.end],delete Lt[ue.start],zt===ue?(zt.ring.push(xt),U(zt.ring)):Lt[zt.start]=qt[ue.end]={start:zt.start,end:ue.end,ring:zt.ring.concat(ue.ring)}):(delete qt[zt.end],zt.ring.push(xt),qt[zt.end=Jt]=zt):(zt=Lt[Jt])?(ue=qt[ae])?(delete Lt[zt.start],delete qt[ue.end],zt===ue?(zt.ring.push(xt),U(zt.ring)):Lt[ue.start]=qt[zt.end]={start:ue.start,end:zt.end,ring:ue.ring.concat(zt.ring)}):(delete Lt[zt.start],zt.ring.unshift(ut),Lt[zt.start=ae]=zt):Lt[ae]=qt[Jt]={start:ae,end:Jt,ring:[ut,xt]}}ps[et<<3].forEach(ne)})(T,A,(function(O){s(O,T,A),(function(z){for(var U=0,Z=z.length,Q=z[Z-1][1]*z[0][0]-z[Z-1][0]*z[0][1];++U<Z;)Q+=z[U-1][1]*z[U][0]-z[U-1][0]*z[U][1];return Q})(O)>0?B.push([O]):F.push(O)})),F.forEach((function(O){for(var z,U=0,Z=B.length;U<Z;++U)if(ub((z=B[U])[0],O)!==-1)return void z.push(O)})),{type:"MultiPolygon",value:A,coordinates:B}}function b(T){return 2*T[0]+T[1]*(n+1)*4}function v(T,A,B){T.forEach((function(F){var O,z=F[0],U=F[1],Z=0|z,Q=0|U,G=A[Q*n+Z];z>0&&z<n&&Z===z&&(O=A[Q*n+Z-1],F[0]=z+(B-O)/(G-O)-.5),U>0&&U<i&&Q===U&&(O=A[(Q-1)*n+Z],F[1]=U+(B-O)/(G-O)-.5)}))}return l.contour=f,l.size=function(T){if(!arguments.length)return[n,i];var A=Math.ceil(T[0]),B=Math.ceil(T[1]);if(!(A>0&&B>0))throw new Error("invalid size");return n=A,i=B,l},l.thresholds=function(T){return arguments.length?(a=typeof T=="function"?T:Array.isArray(T)?Fs(fp.call(T)):Fs(T),l):a},l.smooth=function(T){return arguments.length?(s=T?v:lb,l):s===v},l}function wu(n,i,a){for(var s=n.width,l=n.height,f=1+(a<<1),b=0;b<l;++b)for(var v=0,T=0;v<s+a;++v)v<s&&(T+=n.data[v+b*s]),v>=a&&(v>=f&&(T-=n.data[v-f+b*s]),i.data[v-a+b*s]=T/Math.min(v+1,s-1+f-v,f))}function dp(n,i,a){for(var s=n.width,l=n.height,f=1+(a<<1),b=0;b<s;++b)for(var v=0,T=0;v<l+a;++v)v<l&&(T+=n.data[b+v*s]),v>=a&&(v>=f&&(T-=n.data[b+(v-f)*s]),i.data[b+(v-a)*s]=T/Math.min(v+1,l-1+f-v,f))}function hb(n){return n[0]}function fb(n){return n[1]}function pp(){return 1}function gp(){var n=hb,i=fb,a=pp,s=960,l=500,f=20,b=2,v=3*f,T=s+2*v>>b,A=l+2*v>>b,B=Fs(20);function F(G){var rt=new Float32Array(T*A),et=new Float32Array(T*A);G.forEach((function(qt,ne,ve){var zt=+n(qt,ne,ve)+v>>b,ue=+i(qt,ne,ve)+v>>b,ut=+a(qt,ne,ve);zt>=0&&zt<T&&ue>=0&&ue<A&&(rt[zt+ue*T]+=ut)})),wu({width:T,height:A,data:rt},{data:et},f>>b),dp({width:T,height:A,data:et},{data:rt},f>>b),wu({width:T,height:A,data:rt},{data:et},f>>b),dp({width:T,height:A,data:et},{data:rt},f>>b),wu({width:T,height:A,data:rt},{data:et},f>>b),dp({width:T,height:A,data:et},{data:rt},f>>b);var ct=B(rt);if(!Array.isArray(ct)){var Lt=Dt(rt);ct=vt(0,Lt,ct),(ct=st(0,Math.floor(Lt/ct)*ct,ct)).shift()}return s1().thresholds(ct).size([T,A])(rt).map(O)}function O(G){return G.value*=Math.pow(2,-2*b),G.coordinates.forEach(z),G}function z(G){G.forEach(U)}function U(G){G.forEach(Z)}function Z(G){G[0]=G[0]*Math.pow(2,b)-v,G[1]=G[1]*Math.pow(2,b)-v}function Q(){return T=s+2*(v=3*f)>>b,A=l+2*v>>b,F}return F.x=function(G){return arguments.length?(n=typeof G=="function"?G:Fs(+G),F):n},F.y=function(G){return arguments.length?(i=typeof G=="function"?G:Fs(+G),F):i},F.weight=function(G){return arguments.length?(a=typeof G=="function"?G:Fs(+G),F):a},F.size=function(G){if(!arguments.length)return[s,l];var rt=Math.ceil(G[0]),et=Math.ceil(G[1]);if(!(rt>=0||rt>=0))throw new Error("invalid size");return s=rt,l=et,Q()},F.cellSize=function(G){if(!arguments.length)return 1<<b;if(!((G=+G)>=1))throw new Error("invalid cell size");return b=Math.floor(Math.log(G)/Math.LN2),Q()},F.thresholds=function(G){return arguments.length?(B=typeof G=="function"?G:Array.isArray(G)?Fs(fp.call(G)):Fs(G),F):B},F.bandwidth=function(G){if(!arguments.length)return Math.sqrt(f*(f+1));if(!((G=+G)>=0))throw new Error("invalid bandwidth");return f=Math.round((Math.sqrt(4*G*G+1)-1)/2),Q()},F}function Ps(n){return function(){return n}}function ku(n,i,a,s,l,f,b,v,T,A){this.target=n,this.type=i,this.subject=a,this.identifier=s,this.active=l,this.x=f,this.y=b,this.dx=v,this.dy=T,this._=A}function Cy(){return!pt.ctrlKey&&!pt.button}function Sy(){return this.parentNode}function Pi(n){return n??{x:pt.x,y:pt.y}}function db(){return navigator.maxTouchPoints||"ontouchstart"in this}function pb(){var n,i,a,s,l=Cy,f=Sy,b=Pi,v=db,T={},A=rn("start","drag","end"),B=0,F=0;function O(ct){ct.on("mousedown.drag",z).filter(v).on("touchstart.drag",Q).on("touchmove.drag",G).on("touchend.drag touchcancel.drag",rt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!s&&l.apply(this,arguments)){var ct=et("mouse",f.apply(this,arguments),ss,this,arguments);ct&&(gr(pt.view).on("mousemove.drag",U,!0).on("mouseup.drag",Z,!0),Jr(pt.view),kr(),a=!1,n=pt.clientX,i=pt.clientY,ct("start"))}}function U(){if(di(),!a){var ct=pt.clientX-n,Lt=pt.clientY-i;a=ct*ct+Lt*Lt>F}T.mouse("drag")}function Z(){gr(pt.view).on("mousemove.drag mouseup.drag",null),Rr(pt.view,a),di(),T.mouse("end")}function Q(){if(l.apply(this,arguments)){var ct,Lt,qt=pt.changedTouches,ne=f.apply(this,arguments),ve=qt.length;for(ct=0;ct<ve;++ct)(Lt=et(qt[ct].identifier,ne,ga,this,arguments))&&(kr(),Lt("start"))}}function G(){var ct,Lt,qt=pt.changedTouches,ne=qt.length;for(ct=0;ct<ne;++ct)(Lt=T[qt[ct].identifier])&&(di(),Lt("drag"))}function rt(){var ct,Lt,qt=pt.changedTouches,ne=qt.length;for(s&&clearTimeout(s),s=setTimeout((function(){s=null}),500),ct=0;ct<ne;++ct)(Lt=T[qt[ct].identifier])&&(kr(),Lt("end"))}function et(ct,Lt,qt,ne,ve){var zt,ue,ut,xt=qt(Lt,ct),ae=A.copy();if(io(new ku(O,"beforestart",zt,ct,B,xt[0],xt[1],0,0,ae),(function(){return(pt.subject=zt=b.apply(ne,ve))!=null&&(ue=zt.x-xt[0]||0,ut=zt.y-xt[1]||0,!0)})))return function Jt(Kt){var Le,Ie=xt;switch(Kt){case"start":T[ct]=Jt,Le=B++;break;case"end":delete T[ct],--B;case"drag":xt=qt(Lt,ct),Le=B}io(new ku(O,Kt,zt,ct,Le,xt[0]+ue,xt[1]+ut,xt[0]-Ie[0],xt[1]-Ie[1],ae),ae.apply,ae,[Kt,ne,ve])}}return O.filter=function(ct){return arguments.length?(l=typeof ct=="function"?ct:Ps(!!ct),O):l},O.container=function(ct){return arguments.length?(f=typeof ct=="function"?ct:Ps(ct),O):f},O.subject=function(ct){return arguments.length?(b=typeof ct=="function"?ct:Ps(ct),O):b},O.touchable=function(ct){return arguments.length?(v=typeof ct=="function"?ct:Ps(!!ct),O):v},O.on=function(){var ct=A.on.apply(A,arguments);return ct===A?O:ct},O.clickDistance=function(ct){return arguments.length?(F=(ct=+ct)*ct,O):Math.sqrt(F)},O}ku.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var mr={},yp={};function Fc(n){return new Function("d","return {"+n.map((function(i,a){return JSON.stringify(i)+": d["+a+'] || ""'})).join(",")+"}")}function Pc(n){var i=Object.create(null),a=[];return n.forEach((function(s){for(var l in s)l in i||a.push(i[l]=l)})),a}function Aa(n,i){var a=n+"",s=a.length;return s<i?new Array(i-s+1).join(0)+a:a}function u1(n){var i=new RegExp('["'+n+`
|
|
1177
|
+
\r]`),a=n.charCodeAt(0);function s(v,T){var A,B=[],F=v.length,O=0,z=0,U=F<=0,Z=!1;function Q(){if(U)return yp;if(Z)return Z=!1,mr;var rt,et,ct=O;if(v.charCodeAt(ct)===34){for(;O++<F&&v.charCodeAt(O)!==34||v.charCodeAt(++O)===34;);return(rt=O)>=F?U=!0:(et=v.charCodeAt(O++))===10?Z=!0:et===13&&(Z=!0,v.charCodeAt(O)===10&&++O),v.slice(ct+1,rt-1).replace(/""/g,'"')}for(;O<F;){if((et=v.charCodeAt(rt=O++))===10)Z=!0;else if(et===13)Z=!0,v.charCodeAt(O)===10&&++O;else if(et!==a)continue;return v.slice(ct,rt)}return U=!0,v.slice(ct,F)}for(v.charCodeAt(F-1)===10&&--F,v.charCodeAt(F-1)===13&&--F;(A=Q())!==yp;){for(var G=[];A!==mr&&A!==yp;)G.push(A),A=Q();T&&(G=T(G,z++))==null||B.push(G)}return B}function l(v,T){return v.map((function(A){return T.map((function(B){return b(A[B])})).join(n)}))}function f(v){return v.map(b).join(n)}function b(v){return v==null?"":v instanceof Date?(function(T){var A=T.getUTCHours(),B=T.getUTCMinutes(),F=T.getUTCSeconds(),O=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":(function(z){return z<0?"-"+Aa(-z,6):z>9999?"+"+Aa(z,6):Aa(z,4)})(T.getUTCFullYear())+"-"+Aa(T.getUTCMonth()+1,2)+"-"+Aa(T.getUTCDate(),2)+(O?"T"+Aa(A,2)+":"+Aa(B,2)+":"+Aa(F,2)+"."+Aa(O,3)+"Z":F?"T"+Aa(A,2)+":"+Aa(B,2)+":"+Aa(F,2)+"Z":B||A?"T"+Aa(A,2)+":"+Aa(B,2)+"Z":"")})(v):i.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:function(v,T){var A,B,F=s(v,(function(O,z){if(A)return A(O,z-1);B=O,A=T?(function(U,Z){var Q=Fc(U);return function(G,rt){return Z(Q(G),rt,U)}})(O,T):Fc(O)}));return F.columns=B||[],F},parseRows:s,format:function(v,T){return T==null&&(T=Pc(v)),[T.map(b).join(n)].concat(l(v,T)).join(`
|
|
1178
|
+
`)},formatBody:function(v,T){return T==null&&(T=Pc(v)),l(v,T).join(`
|
|
1179
|
+
`)},formatRows:function(v){return v.map(f).join(`
|
|
1180
|
+
`)},formatRow:f,formatValue:b}}var Tu=u1(","),Ay=Tu.parse,gb=Tu.parseRows,My=Tu.format,Ny=Tu.formatBody,yb=Tu.formatRows,mb=Tu.formatRow,vb=Tu.formatValue,js=u1(" "),Dy=js.parse,Oy=js.parseRows,bb=js.format,_b=js.formatBody,xb=js.formatRows,wb=js.formatRow,kb=js.formatValue;function Tb(n){for(var i in n){var a,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(a=+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;Eb&&s[4]&&!s[7]&&(l=l.replace(/-/g,"/").replace(/T/," ")),l=new Date(l)}else l=a;else l=null;n[i]=l}return n}var Eb=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function By(n){return+n}function Cb(n){return n*n}function Sb(n){return n*(2-n)}function Ly(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Iy=(function n(i){function a(s){return Math.pow(s,i)}return i=+i,a.exponent=n,a})(3),Ab=(function n(i){function a(s){return 1-Math.pow(1-s,i)}return i=+i,a.exponent=n,a})(3),Ry=(function n(i){function a(s){return((s*=2)<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}return i=+i,a.exponent=n,a})(3),Fy=Math.PI,Py=Fy/2;function Mb(n){return+n==1?1:1-Math.cos(n*Py)}function Nb(n){return Math.sin(n*Py)}function mp(n){return(1-Math.cos(Fy*n))/2}function Ys(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Db(n){return Ys(1-+n)}function Ob(n){return 1-Ys(n)}function jy(n){return((n*=2)<=1?Ys(1-n):2-Ys(n-1))/2}function Bb(n){return 1-Math.sqrt(1-n*n)}function Lb(n){return Math.sqrt(1- --n*n)}function Yy(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var c1=7.5625;function zy(n){return 1-sh(1-n)}function sh(n){return(n=+n)<.36363636363636365?c1*n*n:n<.7272727272727273?c1*(n-=.5454545454545454)*n+.75:n<.9090909090909091?c1*(n-=.8181818181818182)*n+.9375:c1*(n-=.9545454545454546)*n+.984375}function Ib(n){return((n*=2)<=1?1-sh(1-n):sh(n-1)+1)/2}var vp=1.70158,Uy=(function n(i){function a(s){return(s=+s)*s*(i*(s-1)+s)}return i=+i,a.overshoot=n,a})(vp),Rb=(function n(i){function a(s){return--s*s*((s+1)*i+s)+1}return i=+i,a.overshoot=n,a})(vp),qy=(function n(i){function a(s){return((s*=2)<1?s*s*((i+1)*s-i):(s-=2)*s*((i+1)*s+i)+2)/2}return i=+i,a.overshoot=n,a})(vp),jc=2*Math.PI,Fb=(function n(i,a){var s=Math.asin(1/(i=Math.max(1,i)))*(a/=jc);function l(f){return i*Ys(- --f)*Math.sin((s-f)/a)}return l.amplitude=function(f){return n(f,a*jc)},l.period=function(f){return n(i,f)},l})(1,.3),Hy=(function n(i,a){var s=Math.asin(1/(i=Math.max(1,i)))*(a/=jc);function l(f){return 1-i*Ys(f=+f)*Math.sin((f+s)/a)}return l.amplitude=function(f){return n(f,a*jc)},l.period=function(f){return n(i,f)},l})(1,.3),Pb=(function n(i,a){var s=Math.asin(1/(i=Math.max(1,i)))*(a/=jc);function l(f){return((f=2*f-1)<0?i*Ys(-f)*Math.sin((s-f)/a):2-i*Ys(f)*Math.sin((s+f)/a))/2}return l.amplitude=function(f){return n(f,a*jc)},l.period=function(f){return n(i,f)},l})(1,.3);function $y(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function jb(n,i){return fetch(n,i).then($y)}function Yb(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function zb(n,i){return fetch(n,i).then(Yb)}function Ub(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function l1(n,i){return fetch(n,i).then(Ub)}function Wy(n){return function(i,a,s){return arguments.length===2&&typeof a=="function"&&(s=a,a=void 0),l1(i,a).then((function(l){return n(l,s)}))}}function qb(n,i,a,s){arguments.length===3&&typeof a=="function"&&(s=a,a=void 0);var l=u1(n);return l1(i,a).then((function(f){return l.parse(f,s)}))}var Hb=Wy(Ay),Vy=Wy(Dy);function Gy(n,i){return new Promise((function(a,s){var l=new Image;for(var f in i)l[f]=i[f];l.onerror=s,l.onload=function(){a(l)},l.src=n}))}function Xy(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function $b(n,i){return fetch(n,i).then(Xy)}function bp(n){return function(i,a){return l1(i,a).then((function(s){return new DOMParser().parseFromString(s,n)}))}}const Zy=bp("application/xml");var Wb=bp("text/html"),_p=bp("image/svg+xml");function Qy(n,i){var a;function s(){var l,f,b=a.length,v=0,T=0;for(l=0;l<b;++l)v+=(f=a[l]).x,T+=f.y;for(v=v/b-n,T=T/b-i,l=0;l<b;++l)(f=a[l]).x-=v,f.y-=T}return n==null&&(n=0),i==null&&(i=0),s.initialize=function(l){a=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 gs(){return 1e-6*(Math.random()-.5)}function xp(n,i,a,s){if(isNaN(i)||isNaN(a))return n;var l,f,b,v,T,A,B,F,O,z=n._root,U={data:s},Z=n._x0,Q=n._y0,G=n._x1,rt=n._y1;if(!z)return n._root=U,n;for(;z.length;)if((A=i>=(f=(Z+G)/2))?Z=f:G=f,(B=a>=(b=(Q+rt)/2))?Q=b:rt=b,l=z,!(z=z[F=B<<1|A]))return l[F]=U,n;if(v=+n._x.call(null,z.data),T=+n._y.call(null,z.data),i===v&&a===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),(A=i>=(f=(Z+G)/2))?Z=f:G=f,(B=a>=(b=(Q+rt)/2))?Q=b:rt=b;while((F=B<<1|A)==(O=(T>=b)<<1|v>=f));return l[O]=z,l[F]=U,n}function aa(n,i,a,s,l){this.node=n,this.x0=i,this.y0=a,this.x1=s,this.y1=l}function Vb(n){return n[0]}function Gb(n){return n[1]}function h1(n,i,a){var s=new wp(i??Vb,a??Gb,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function wp(n,i,a,s,l,f){this._x=n,this._y=i,this._x0=a,this._y0=s,this._x1=l,this._y1=f,this._root=void 0}function kp(n){for(var i={data:n.data},a=i;n=n.next;)a=a.next={data:n.data};return i}var ji=h1.prototype=wp.prototype;function Xb(n){return n.x+n.vx}function Zb(n){return n.y+n.vy}function Qb(n){var i,a,s=1,l=1;function f(){for(var T,A,B,F,O,z,U,Z=i.length,Q=0;Q<l;++Q)for(A=h1(i,Xb,Zb).visitAfter(b),T=0;T<Z;++T)B=i[T],z=a[B.index],U=z*z,F=B.x+B.vx,O=B.y+B.vy,A.visit(G);function G(rt,et,ct,Lt,qt){var ne=rt.data,ve=rt.r,zt=z+ve;if(!ne)return et>F+zt||Lt<F-zt||ct>O+zt||qt<O-zt;if(ne.index>B.index){var ue=F-ne.x-ne.vx,ut=O-ne.y-ne.vy,xt=ue*ue+ut*ut;xt<zt*zt&&(ue===0&&(xt+=(ue=gs())*ue),ut===0&&(xt+=(ut=gs())*ut),xt=(zt-(xt=Math.sqrt(xt)))/xt*s,B.vx+=(ue*=xt)*(zt=(ve*=ve)/(U+ve)),B.vy+=(ut*=xt)*zt,ne.vx-=ue*(zt=1-zt),ne.vy-=ut*zt)}}}function b(T){if(T.data)return T.r=a[T.data.index];for(var A=T.r=0;A<4;++A)T[A]&&T[A].r>T.r&&(T.r=T[A].r)}function v(){if(i){var T,A,B=i.length;for(a=new Array(B),T=0;T<B;++T)A=i[T],a[A.index]=+n(A,T,i)}}return typeof n!="function"&&(n=Si(n==null?1:+n)),f.initialize=function(T){i=T,v()},f.iterations=function(T){return arguments.length?(l=+T,f):l},f.strength=function(T){return arguments.length?(s=+T,f):s},f.radius=function(T){return arguments.length?(n=typeof T=="function"?T:Si(+T),v(),f):n},f}function Kb(n){return n.index}function Ky(n,i){var a=n.get(i);if(!a)throw new Error("missing: "+i);return a}function Jb(n){var i,a,s,l,f,b=Kb,v=function(U){return 1/Math.min(l[U.source.index],l[U.target.index])},T=Si(30),A=1;function B(U){for(var Z=0,Q=n.length;Z<A;++Z)for(var G,rt,et,ct,Lt,qt,ne,ve=0;ve<Q;++ve)rt=(G=n[ve]).source,ct=(et=G.target).x+et.vx-rt.x-rt.vx||gs(),Lt=et.y+et.vy-rt.y-rt.vy||gs(),ct*=qt=((qt=Math.sqrt(ct*ct+Lt*Lt))-a[ve])/qt*U*i[ve],Lt*=qt,et.vx-=ct*(ne=f[ve]),et.vy-=Lt*ne,rt.vx+=ct*(ne=1-ne),rt.vy+=Lt*ne}function F(){if(s){var U,Z,Q=s.length,G=n.length,rt=fs(s,b);for(U=0,l=new Array(Q);U<G;++U)(Z=n[U]).index=U,typeof Z.source!="object"&&(Z.source=Ky(rt,Z.source)),typeof Z.target!="object"&&(Z.target=Ky(rt,Z.target)),l[Z.source.index]=(l[Z.source.index]||0)+1,l[Z.target.index]=(l[Z.target.index]||0)+1;for(U=0,f=new Array(G);U<G;++U)Z=n[U],f[U]=l[Z.source.index]/(l[Z.source.index]+l[Z.target.index]);i=new Array(G),O(),a=new Array(G),z()}}function O(){if(s)for(var U=0,Z=n.length;U<Z;++U)i[U]=+v(n[U],U,n)}function z(){if(s)for(var U=0,Z=n.length;U<Z;++U)a[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?(A=+U,B):A},B.strength=function(U){return arguments.length?(v=typeof U=="function"?U:Si(+U),O(),B):v},B.distance=function(U){return arguments.length?(T=typeof U=="function"?U:Si(+U),z(),B):T},B}function Tp(n){return n.x}function Jy(n){return n.y}ji.copy=function(){var n,i,a=new wp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),s=this._root;if(!s)return a;if(!s.length)return a._root=kp(s),a;for(n=[{source:s,target:a._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]=kp(i));return a},ji.add=function(n){var i=+this._x.call(null,n),a=+this._y.call(null,n);return xp(this.cover(i,a),i,a,n)},ji.addAll=function(n){var i,a,s,l,f=n.length,b=new Array(f),v=new Array(f),T=1/0,A=1/0,B=-1/0,F=-1/0;for(a=0;a<f;++a)isNaN(s=+this._x.call(null,i=n[a]))||isNaN(l=+this._y.call(null,i))||(b[a]=s,v[a]=l,s<T&&(T=s),s>B&&(B=s),l<A&&(A=l),l>F&&(F=l));if(T>B||A>F)return this;for(this.cover(T,A).cover(B,F),a=0;a<f;++a)xp(this,b[a],v[a],n[a]);return this},ji.cover=function(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var a=this._x0,s=this._y0,l=this._x1,f=this._y1;if(isNaN(a))l=(a=Math.floor(n))+1,f=(s=Math.floor(i))+1;else{for(var b,v,T=l-a,A=this._root;a>n||n>=l||s>i||i>=f;)switch(v=(i<s)<<1|n<a,(b=new Array(4))[v]=A,A=b,T*=2,v){case 0:l=a+T,f=s+T;break;case 1:a=l-T,f=s+T;break;case 2:l=a+T,s=f-T;break;case 3:a=l-T,s=f-T}this._root&&this._root.length&&(this._root=A)}return this._x0=a,this._y0=s,this._x1=l,this._y1=f,this},ji.data=function(){var n=[];return this.visit((function(i){if(!i.length)do n.push(i.data);while(i=i.next)})),n},ji.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]]},ji.find=function(n,i,a){var s,l,f,b,v,T,A,B=this._x0,F=this._y0,O=this._x1,z=this._y1,U=[],Z=this._root;for(Z&&U.push(new aa(Z,B,F,O,z)),a==null?a=1/0:(B=n-a,F=i-a,O=n+a,z=i+a,a*=a);T=U.pop();)if(!(!(Z=T.node)||(l=T.x0)>O||(f=T.y0)>z||(b=T.x1)<B||(v=T.y1)<F))if(Z.length){var Q=(l+b)/2,G=(f+v)/2;U.push(new aa(Z[3],Q,G,b,v),new aa(Z[2],l,G,Q,v),new aa(Z[1],Q,f,b,G),new aa(Z[0],l,f,Q,G)),(A=(i>=G)<<1|n>=Q)&&(T=U[U.length-1],U[U.length-1]=U[U.length-1-A],U[U.length-1-A]=T)}else{var rt=n-+this._x.call(null,Z.data),et=i-+this._y.call(null,Z.data),ct=rt*rt+et*et;if(ct<a){var Lt=Math.sqrt(a=ct);B=n-Lt,F=i-Lt,O=n+Lt,z=i+Lt,s=Z.data}}return s},ji.remove=function(n){if(isNaN(f=+this._x.call(null,n))||isNaN(b=+this._y.call(null,n)))return this;var i,a,s,l,f,b,v,T,A,B,F,O,z=this._root,U=this._x0,Z=this._y0,Q=this._x1,G=this._y1;if(!z)return this;if(z.length)for(;;){if((A=f>=(v=(U+Q)/2))?U=v:Q=v,(B=b>=(T=(Z+G)/2))?Z=T:G=T,i=z,!(z=z[F=B<<1|A]))return this;if(!z.length)break;(i[F+1&3]||i[F+2&3]||i[F+3&3])&&(a=i,O=F)}for(;z.data!==n;)if(s=z,!(z=z.next))return this;return(l=z.next)&&delete z.next,s?(l?s.next=l:delete s.next,this):i?(l?i[F]=l:delete i[F],(z=i[0]||i[1]||i[2]||i[3])&&z===(i[3]||i[2]||i[1]||i[0])&&!z.length&&(a?a[O]=z:this._root=z),this):(this._root=l,this)},ji.removeAll=function(n){for(var i=0,a=n.length;i<a;++i)this.remove(n[i]);return this},ji.root=function(){return this._root},ji.size=function(){var n=0;return this.visit((function(i){if(!i.length)do++n;while(i=i.next)})),n},ji.visit=function(n){var i,a,s,l,f,b,v=[],T=this._root;for(T&&v.push(new aa(T,this._x0,this._y0,this._x1,this._y1));i=v.pop();)if(!n(T=i.node,s=i.x0,l=i.y0,f=i.x1,b=i.y1)&&T.length){var A=(s+f)/2,B=(l+b)/2;(a=T[3])&&v.push(new aa(a,A,B,f,b)),(a=T[2])&&v.push(new aa(a,s,B,A,b)),(a=T[1])&&v.push(new aa(a,A,l,f,B)),(a=T[0])&&v.push(new aa(a,s,l,A,B))}return this},ji.visitAfter=function(n){var i,a=[],s=[];for(this._root&&a.push(new aa(this._root,this._x0,this._y0,this._x1,this._y1));i=a.pop();){var l=i.node;if(l.length){var f,b=i.x0,v=i.y0,T=i.x1,A=i.y1,B=(b+T)/2,F=(v+A)/2;(f=l[0])&&a.push(new aa(f,b,v,B,F)),(f=l[1])&&a.push(new aa(f,B,v,T,F)),(f=l[2])&&a.push(new aa(f,b,F,B,A)),(f=l[3])&&a.push(new aa(f,B,F,T,A))}s.push(i)}for(;i=s.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},ji.x=function(n){return arguments.length?(this._x=n,this):this._x},ji.y=function(n){return arguments.length?(this._y=n,this):this._y};var f1=Math.PI*(3-Math.sqrt(5));function t4(n){var i,a=1,s=.001,l=1-Math.pow(s,1/300),f=0,b=.6,v=fs(),T=fe(B),A=rn("tick","end");function B(){F(),A.call("tick",i),a<s&&(T.stop(),A.call("end",i))}function F(U){var Z,Q,G=n.length;U===void 0&&(U=1);for(var rt=0;rt<U;++rt)for(a+=(f-a)*l,v.each((function(et){et(a)})),Z=0;Z<G;++Z)(Q=n[Z]).fx==null?Q.x+=Q.vx*=b:(Q.x=Q.fx,Q.vx=0),Q.fy==null?Q.y+=Q.vy*=b:(Q.y=Q.fy,Q.vy=0);return i}function O(){for(var U,Z=0,Q=n.length;Z<Q;++Z){if((U=n[Z]).index=Z,U.fx!=null&&(U.x=U.fx),U.fy!=null&&(U.y=U.fy),isNaN(U.x)||isNaN(U.y)){var G=10*Math.sqrt(Z),rt=Z*f1;U.x=G*Math.cos(rt),U.y=G*Math.sin(rt)}(isNaN(U.vx)||isNaN(U.vy))&&(U.vx=U.vy=0)}}function z(U){return U.initialize&&U.initialize(n),U}return n==null&&(n=[]),O(),i={tick:F,restart:function(){return T.restart(B),i},stop:function(){return T.stop(),i},nodes:function(U){return arguments.length?(n=U,O(),v.each(z),i):n},alpha:function(U){return arguments.length?(a=+U,i):a},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?(f=+U,i):f},velocityDecay:function(U){return arguments.length?(b=1-U,i):1-b},force:function(U,Z){return arguments.length>1?(Z==null?v.remove(U):v.set(U,z(Z)),i):v.get(U)},find:function(U,Z,Q){var G,rt,et,ct,Lt,qt=0,ne=n.length;for(Q==null?Q=1/0:Q*=Q,qt=0;qt<ne;++qt)(et=(G=U-(ct=n[qt]).x)*G+(rt=Z-ct.y)*rt)<Q&&(Lt=ct,Q=et);return Lt},on:function(U,Z){return arguments.length>1?(A.on(U,Z),i):A.on(U)}}}function e4(){var n,i,a,s,l=Si(-30),f=1,b=1/0,v=.81;function T(O){var z,U=n.length,Z=h1(n,Tp,Jy).visitAfter(B);for(a=O,z=0;z<U;++z)i=n[z],Z.visit(F)}function A(){if(n){var O,z,U=n.length;for(s=new Array(U),O=0;O<U;++O)z=n[O],s[z.index]=+l(z,O,n)}}function B(O){var z,U,Z,Q,G,rt=0,et=0;if(O.length){for(Z=Q=G=0;G<4;++G)(z=O[G])&&(U=Math.abs(z.value))&&(rt+=z.value,et+=U,Z+=U*z.x,Q+=U*z.y);O.x=Z/et,O.y=Q/et}else{(z=O).x=z.data.x,z.y=z.data.y;do rt+=s[z.data.index];while(z=z.next)}O.value=rt}function F(O,z,U,Z){if(!O.value)return!0;var Q=O.x-i.x,G=O.y-i.y,rt=Z-z,et=Q*Q+G*G;if(rt*rt/v<et)return et<b&&(Q===0&&(et+=(Q=gs())*Q),G===0&&(et+=(G=gs())*G),et<f&&(et=Math.sqrt(f*et)),i.vx+=Q*O.value*a/et,i.vy+=G*O.value*a/et),!0;if(!(O.length||et>=b)){(O.data!==i||O.next)&&(Q===0&&(et+=(Q=gs())*Q),G===0&&(et+=(G=gs())*G),et<f&&(et=Math.sqrt(f*et)));do O.data!==i&&(rt=s[O.data.index]*a/et,i.vx+=Q*rt,i.vy+=G*rt);while(O=O.next)}}return T.initialize=function(O){n=O,A()},T.strength=function(O){return arguments.length?(l=typeof O=="function"?O:Si(+O),A(),T):l},T.distanceMin=function(O){return arguments.length?(f=O*O,T):Math.sqrt(f)},T.distanceMax=function(O){return arguments.length?(b=O*O,T):Math.sqrt(b)},T.theta=function(O){return arguments.length?(v=O*O,T):Math.sqrt(v)},T}function n4(n,i,a){var s,l,f,b=Si(.1);function v(A){for(var B=0,F=s.length;B<F;++B){var O=s[B],z=O.x-i||1e-6,U=O.y-a||1e-6,Z=Math.sqrt(z*z+U*U),Q=(f[B]-Z)*l[B]*A/Z;O.vx+=z*Q,O.vy+=U*Q}}function T(){if(s){var A,B=s.length;for(l=new Array(B),f=new Array(B),A=0;A<B;++A)f[A]=+n(s[A],A,s),l[A]=isNaN(f[A])?0:+b(s[A],A,s)}}return typeof n!="function"&&(n=Si(+n)),i==null&&(i=0),a==null&&(a=0),v.initialize=function(A){s=A,T()},v.strength=function(A){return arguments.length?(b=typeof A=="function"?A:Si(+A),T(),v):b},v.radius=function(A){return arguments.length?(n=typeof A=="function"?A:Si(+A),T(),v):n},v.x=function(A){return arguments.length?(i=+A,v):i},v.y=function(A){return arguments.length?(a=+A,v):a},v}function r4(n){var i,a,s,l=Si(.1);function f(v){for(var T,A=0,B=i.length;A<B;++A)(T=i[A]).vx+=(s[A]-T.x)*a[A]*v}function b(){if(i){var v,T=i.length;for(a=new Array(T),s=new Array(T),v=0;v<T;++v)a[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)),f.initialize=function(v){i=v,b()},f.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Si(+v),b(),f):l},f.x=function(v){return arguments.length?(n=typeof v=="function"?v:Si(+v),b(),f):n},f}function i4(n){var i,a,s,l=Si(.1);function f(v){for(var T,A=0,B=i.length;A<B;++A)(T=i[A]).vy+=(s[A]-T.y)*a[A]*v}function b(){if(i){var v,T=i.length;for(a=new Array(T),s=new Array(T),v=0;v<T;++v)a[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)),f.initialize=function(v){i=v,b()},f.strength=function(v){return arguments.length?(l=typeof v=="function"?v:Si(+v),b(),f):l},f.y=function(v){return arguments.length?(n=typeof v=="function"?v:Si(+v),b(),f):n},f}function d1(n,i){if((a=(n=i?n.toExponential(i-1):n.toExponential()).indexOf("e"))<0)return null;var a,s=n.slice(0,a);return[s.length>1?s[0]+s.slice(2):s,+n.slice(a+1)]}function Eu(n){return(n=d1(Math.abs(n)))?n[1]:NaN}var tm,a4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uh(n){if(!(i=a4.exec(n)))throw new Error("invalid format: "+n);var i;return new ys({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 ys(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 em(n,i){var a=d1(n,i);if(!a)return n+"";var s=a[0],l=a[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=ys.prototype,ys.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 nm={"%":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 em(100*n,i)},r:em,s:function(n,i){var a=d1(n,i);if(!a)return n+"";var s=a[0],l=a[1],f=l-(tm=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,b=s.length;return f===b?s:f>b?s+new Array(f-b+1).join("0"):f>0?s.slice(0,f)+"."+s.slice(f):"0."+new Array(1-f).join("0")+d1(n,Math.max(0,i+f-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function rm(n){return n}var ch,Yc,p1,Ep=Array.prototype.map,Cp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function im(n){var i,a,s=n.grouping===void 0||n.thousands===void 0?rm:(i=Ep.call(n.grouping,Number),a=n.thousands+"",function(O,z){for(var U=O.length,Z=[],Q=0,G=i[0],rt=0;U>0&&G>0&&(rt+G+1>z&&(G=Math.max(1,z-rt)),Z.push(O.substring(U-=G,U+G)),!((rt+=G+1)>z));)G=i[Q=(Q+1)%i.length];return Z.reverse().join(a)}),l=n.currency===void 0?"":n.currency[0]+"",f=n.currency===void 0?"":n.currency[1]+"",b=n.decimal===void 0?".":n.decimal+"",v=n.numerals===void 0?rm:(function(O){return function(z){return z.replace(/[0-9]/g,(function(U){return O[+U]}))}})(Ep.call(n.numerals,String)),T=n.percent===void 0?"%":n.percent+"",A=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function F(O){var z=(O=uh(O)).fill,U=O.align,Z=O.sign,Q=O.symbol,G=O.zero,rt=O.width,et=O.comma,ct=O.precision,Lt=O.trim,qt=O.type;qt==="n"?(et=!0,qt="g"):nm[qt]||(ct===void 0&&(ct=12),Lt=!0,qt="g"),(G||z==="0"&&U==="=")&&(G=!0,z="0",U="=");var ne=Q==="$"?l:Q==="#"&&/[boxX]/.test(qt)?"0"+qt.toLowerCase():"",ve=Q==="$"?f:/[%p]/.test(qt)?T:"",zt=nm[qt],ue=/[defgprs%]/.test(qt);function ut(xt){var ae,Jt,Kt,Le=ne,Ie=ve;if(qt==="c")Ie=zt(xt)+Ie,xt="";else{var vn=(xt=+xt)<0||1/xt<0;if(xt=isNaN(xt)?B:zt(Math.abs(xt),ct),Lt&&(xt=(function(nn){t:for(var sr,Mn=nn.length,Sn=1,ur=-1;Sn<Mn;++Sn)switch(nn[Sn]){case".":ur=sr=Sn;break;case"0":ur===0&&(ur=Sn),sr=Sn;break;default:if(!+nn[Sn])break t;ur>0&&(ur=0)}return ur>0?nn.slice(0,ur)+nn.slice(sr+1):nn})(xt)),vn&&+xt==0&&Z!=="+"&&(vn=!1),Le=(vn?Z==="("?Z:A:Z==="-"||Z==="("?"":Z)+Le,Ie=(qt==="s"?Cp[8+tm/3]:"")+Ie+(vn&&Z==="("?")":""),ue){for(ae=-1,Jt=xt.length;++ae<Jt;)if(48>(Kt=xt.charCodeAt(ae))||Kt>57){Ie=(Kt===46?b+xt.slice(ae+1):xt.slice(ae))+Ie,xt=xt.slice(0,ae);break}}}et&&!G&&(xt=s(xt,1/0));var tr=Le.length+xt.length+Ie.length,ir=tr<rt?new Array(rt-tr+1).join(z):"";switch(et&&G&&(xt=s(ir+xt,ir.length?rt-Ie.length:1/0),ir=""),U){case"<":xt=Le+xt+Ie+ir;break;case"=":xt=Le+ir+xt+Ie;break;case"^":xt=ir.slice(0,tr=ir.length>>1)+Le+xt+Ie+ir.slice(tr);break;default:xt=ir+Le+xt+Ie}return v(xt)}return ct=ct===void 0?6:/[gprs]/.test(qt)?Math.max(1,Math.min(21,ct)):Math.max(0,Math.min(20,ct)),ut.toString=function(){return O+""},ut}return{format:F,formatPrefix:function(O,z){var U=F(((O=uh(O)).type="f",O)),Z=3*Math.max(-8,Math.min(8,Math.floor(Eu(z)/3))),Q=Math.pow(10,-Z),G=Cp[8+Z/3];return function(rt){return U(Q*rt)+G}}}}function am(n){return ch=im(n),Yc=ch.format,p1=ch.formatPrefix,ch}function om(n){return Math.max(0,-Eu(Math.abs(n)))}function sm(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Eu(i)/3)))-Eu(Math.abs(n)))}function um(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,Eu(i)-Eu(n))+1}function zs(){return new g1}function g1(){this.reset()}am({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),g1.prototype={constructor:g1,reset:function(){this.s=this.t=0},add:function(n){cm(y1,n,this.t),cm(this,y1.s,this.s),this.s?this.t+=y1.t:this.s=y1.t},valueOf:function(){return this.s}};var y1=new g1;function cm(n,i,a){var s=n.s=i+a,l=s-i,f=s-l;n.t=i-f+(a-l)}var In=1e-6,m1=1e-12,nr=Math.PI,hi=nr/2,lh=nr/4,ma=2*nr,jr=180/nr,kn=nr/180,lr=Math.abs,zc=Math.atan,va=Math.atan2,ln=Math.cos,hh=Math.ceil,lm=Math.exp,v1=Math.log,fh=Math.pow,qe=Math.sin,Xa=Math.sign||function(n){return n>0?1:n<0?-1:0},ai=Math.sqrt,Ve=Math.tan;function b1(n){return n>1?0:n<-1?nr:Math.acos(n)}function Xi(n){return n>1?hi:n<-1?-hi:Math.asin(n)}function _1(n){return(n=qe(n/2))*n}function Nr(){}function x1(n,i){n&&Sp.hasOwnProperty(n.type)&&Sp[n.type](n,i)}var w1={Feature:function(n,i){x1(n.geometry,i)},FeatureCollection:function(n,i){for(var a=n.features,s=-1,l=a.length;++s<l;)x1(a[s].geometry,i)}},Sp={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 a=n.coordinates,s=-1,l=a.length;++s<l;)n=a[s],i.point(n[0],n[1],n[2])},LineString:function(n,i){k1(n.coordinates,i,0)},MultiLineString:function(n,i){for(var a=n.coordinates,s=-1,l=a.length;++s<l;)k1(a[s],i,0)},Polygon:function(n,i){fi(n.coordinates,i)},MultiPolygon:function(n,i){for(var a=n.coordinates,s=-1,l=a.length;++s<l;)fi(a[s],i)},GeometryCollection:function(n,i){for(var a=n.geometries,s=-1,l=a.length;++s<l;)x1(a[s],i)}};function k1(n,i,a){var s,l=-1,f=n.length-a;for(i.lineStart();++l<f;)s=n[l],i.point(s[0],s[1],s[2]);i.lineEnd()}function fi(n,i){var a=-1,s=n.length;for(i.polygonStart();++a<s;)k1(n[a],i,1);i.polygonEnd()}function co(n,i){n&&w1.hasOwnProperty(n.type)?w1[n.type](n,i):x1(n,i)}var Zi,Us,Ap,dh,lo,ms=zs(),Qi=zs(),Ma={point:Nr,lineStart:Nr,lineEnd:Nr,polygonStart:function(){ms.reset(),Ma.lineStart=T1,Ma.lineEnd=E1},polygonEnd:function(){var n=+ms;Qi.add(n<0?ma+n:n),this.lineStart=this.lineEnd=this.point=Nr},sphere:function(){Qi.add(ma)}};function T1(){Ma.point=o4}function E1(){Mp(Zi,Us)}function o4(n,i){Ma.point=Mp,Zi=n,Us=i,Ap=n*=kn,dh=ln(i=(i*=kn)/2+lh),lo=qe(i)}function Mp(n,i){var a=(n*=kn)-Ap,s=a>=0?1:-1,l=s*a,f=ln(i=(i*=kn)/2+lh),b=qe(i),v=lo*b,T=dh*f+v*ln(l),A=v*s*qe(l);ms.add(va(A,T)),Ap=n,dh=f,lo=b}function s4(n){return Qi.reset(),co(n,Ma),2*Qi}function C1(n){return[va(n[1],n[0]),Xi(n[2])]}function Cu(n){var i=n[0],a=n[1],s=ln(a);return[s*ln(i),s*qe(i),qe(a)]}function S1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Uc(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 Np(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function Su(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function qc(n){var i=ai(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var ni,ba,xr,Za,Au,Mu,hm,Hc,Mo,ho,$c,vs,ph,gh,yh,mh,vh,bh,_h,Wc,A1,Dp,Op,oa,Yi,Ki,Nu=zs(),Ji={point:M1,lineStart:qs,lineEnd:Lp,polygonStart:function(){Ji.point=xh,Ji.lineStart=u4,Ji.lineEnd=c4,Nu.reset(),Ma.polygonStart()},polygonEnd:function(){Ma.polygonEnd(),Ji.point=M1,Ji.lineStart=qs,Ji.lineEnd=Lp,ms<0?(ni=-(xr=180),ba=-(Za=90)):Nu>In?Za=90:Nu<-1e-6&&(ba=-90),ho[0]=ni,ho[1]=xr},sphere:function(){ni=-(xr=180),ba=-(Za=90)}};function M1(n,i){Mo.push(ho=[ni=n,xr=n]),i<ba&&(ba=i),i>Za&&(Za=i)}function Bp(n,i){var a=Cu([n*kn,i*kn]);if(Hc){var s=Uc(Hc,a),l=Uc([s[1],-s[0],0],s);qc(l),l=C1(l);var f,b=n-Au,v=b>0?1:-1,T=l[0]*jr*v,A=lr(b)>180;A^(v*Au<T&&T<v*n)?(f=l[1]*jr)>Za&&(Za=f):A^(v*Au<(T=(T+360)%360-180)&&T<v*n)?(f=-l[1]*jr)<ba&&(ba=f):(i<ba&&(ba=i),i>Za&&(Za=i)),A?n<Au?zi(ni,n)>zi(ni,xr)&&(xr=n):zi(n,xr)>zi(ni,xr)&&(ni=n):xr>=ni?(n<ni&&(ni=n),n>xr&&(xr=n)):n>Au?zi(ni,n)>zi(ni,xr)&&(xr=n):zi(n,xr)>zi(ni,xr)&&(ni=n)}else Mo.push(ho=[ni=n,xr=n]);i<ba&&(ba=i),i>Za&&(Za=i),Hc=a,Au=n}function qs(){Ji.point=Bp}function Lp(){ho[0]=ni,ho[1]=xr,Ji.point=M1,Hc=null}function xh(n,i){if(Hc){var a=n-Au;Nu.add(lr(a)>180?a+(a>0?360:-360):a)}else Mu=n,hm=i;Ma.point(n,i),Bp(n,i)}function u4(){Ma.lineStart()}function c4(){xh(Mu,hm),Ma.lineEnd(),lr(Nu)>In&&(ni=-(xr=180)),ho[0]=ni,ho[1]=xr,Hc=null}function zi(n,i){return(i-=n)<0?i+360:i}function l4(n,i){return n[0]-i[0]}function fm(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function dm(n){var i,a,s,l,f,b,v;if(Za=xr=-(ni=ba=1/0),Mo=[],co(n,Ji),a=Mo.length){for(Mo.sort(l4),i=1,f=[s=Mo[0]];i<a;++i)fm(s,(l=Mo[i])[0])||fm(s,l[1])?(zi(s[0],l[1])>zi(s[0],s[1])&&(s[1]=l[1]),zi(l[0],s[1])>zi(s[0],s[1])&&(s[0]=l[0])):f.push(s=l);for(b=-1/0,i=0,s=f[a=f.length-1];i<=a;s=l,++i)l=f[i],(v=zi(s[1],l[0]))>b&&(b=v,ni=l[0],xr=s[1])}return Mo=ho=null,ni===1/0||ba===1/0?[[NaN,NaN],[NaN,NaN]]:[[ni,ba],[xr,Za]]}var fo={sphere:Nr,point:bs,lineStart:wh,lineEnd:Du,polygonStart:function(){fo.lineStart=d4,fo.lineEnd=p4},polygonEnd:function(){fo.lineStart=wh,fo.lineEnd=Du}};function bs(n,i){n*=kn;var a=ln(i*=kn);Vc(a*ln(n),a*qe(n),qe(i))}function Vc(n,i,a){++$c,ph+=(n-ph)/$c,gh+=(i-gh)/$c,yh+=(a-yh)/$c}function wh(){fo.point=h4}function h4(n,i){n*=kn;var a=ln(i*=kn);oa=a*ln(n),Yi=a*qe(n),Ki=qe(i),fo.point=f4,Vc(oa,Yi,Ki)}function f4(n,i){n*=kn;var a=ln(i*=kn),s=a*ln(n),l=a*qe(n),f=qe(i),b=va(ai((b=Yi*f-Ki*l)*b+(b=Ki*s-oa*f)*b+(b=oa*l-Yi*s)*b),oa*s+Yi*l+Ki*f);vs+=b,mh+=b*(oa+(oa=s)),vh+=b*(Yi+(Yi=l)),bh+=b*(Ki+(Ki=f)),Vc(oa,Yi,Ki)}function Du(){fo.point=bs}function d4(){fo.point=pm}function p4(){Ip(Dp,Op),fo.point=bs}function pm(n,i){Dp=n,Op=i,n*=kn,i*=kn,fo.point=Ip;var a=ln(i);oa=a*ln(n),Yi=a*qe(n),Ki=qe(i),Vc(oa,Yi,Ki)}function Ip(n,i){n*=kn;var a=ln(i*=kn),s=a*ln(n),l=a*qe(n),f=qe(i),b=Yi*f-Ki*l,v=Ki*s-oa*f,T=oa*l-Yi*s,A=ai(b*b+v*v+T*T),B=Xi(A),F=A&&-B/A;_h+=F*b,Wc+=F*v,A1+=F*T,vs+=B,mh+=B*(oa+(oa=s)),vh+=B*(Yi+(Yi=l)),bh+=B*(Ki+(Ki=f)),Vc(oa,Yi,Ki)}function Rp(n){$c=vs=ph=gh=yh=mh=vh=bh=_h=Wc=A1=0,co(n,fo);var i=_h,a=Wc,s=A1,l=i*i+a*a+s*s;return l<m1&&(i=mh,a=vh,s=bh,vs<In&&(i=ph,a=gh,s=yh),(l=i*i+a*a+s*s)<m1)?[NaN,NaN]:[va(a,i)*jr,Xi(s/ai(l))*jr]}function Ko(n){return function(){return n}}function kh(n,i){function a(s,l){return s=n(s,l),i(s[0],s[1])}return n.invert&&i.invert&&(a.invert=function(s,l){return(s=i.invert(s,l))&&n.invert(s[0],s[1])}),a}function Ou(n,i){return[lr(n)>nr?n+Math.round(-n/ma)*ma:n,i]}function Th(n,i,a){return(n%=ma)?i||a?kh(Gc(n),Xc(i,a)):Gc(n):i||a?Xc(i,a):Ou}function N1(n){return function(i,a){return[(i+=n)>nr?i-ma:i<-nr?i+ma:i,a]}}function Gc(n){var i=N1(n);return i.invert=N1(-n),i}function Xc(n,i){var a=ln(n),s=qe(n),l=ln(i),f=qe(i);function b(v,T){var A=ln(T),B=ln(v)*A,F=qe(v)*A,O=qe(T),z=O*a+B*s;return[va(F*l-z*f,B*a-O*s),Xi(z*l+F*f)]}return b.invert=function(v,T){var A=ln(T),B=ln(v)*A,F=qe(v)*A,O=qe(T),z=O*l-F*f;return[va(F*l+O*f,B*a+z*s),Xi(z*a-B*s)]},b}function D1(n){function i(a){return(a=n(a[0]*kn,a[1]*kn))[0]*=jr,a[1]*=jr,a}return n=Th(n[0]*kn,n[1]*kn,n.length>2?n[2]*kn:0),i.invert=function(a){return(a=n.invert(a[0]*kn,a[1]*kn))[0]*=jr,a[1]*=jr,a},i}function Fp(n,i,a,s,l,f){if(a){var b=ln(i),v=qe(i),T=s*a;l==null?(l=i+s*ma,f=i-T/2):(l=Ai(b,l),f=Ai(b,f),(s>0?l<f:l>f)&&(l+=s*ma));for(var A,B=l;s>0?B>f:B<f;B-=T)A=C1([b,-v*ln(B),-v*qe(B)]),n.point(A[0],A[1])}}function Ai(n,i){(i=Cu(i))[0]-=n,qc(i);var a=b1(-i[1]);return((-i[2]<0?-a:a)+ma-In)%ma}function g4(){var n,i,a=Ko([0,0]),s=Ko(90),l=Ko(6),f={point:function(v,T){n.push(v=i(v,T)),v[0]*=jr,v[1]*=jr}};function b(){var v=a.apply(this,arguments),T=s.apply(this,arguments)*kn,A=l.apply(this,arguments)*kn;return n=[],i=Th(-v[0]*kn,-v[1]*kn,0).invert,Fp(f,T,A,1),v={type:"Polygon",coordinates:[n]},n=i=null,v}return b.center=function(v){return arguments.length?(a=typeof v=="function"?v:Ko([+v[0],+v[1]]),b):a},b.radius=function(v){return arguments.length?(s=typeof v=="function"?v:Ko(+v),b):s},b.precision=function(v){return arguments.length?(l=typeof v=="function"?v:Ko(+v),b):l},b}function gm(){var n,i=[];return{point:function(a,s,l){n.push([a,s,l])},lineStart:function(){i.push(n=[])},lineEnd:Nr,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var a=i;return i=[],n=null,a}}}function hr(n,i){return lr(n[0]-i[0])<In&&lr(n[1]-i[1])<In}function O1(n,i,a,s){this.x=n,this.z=i,this.o=a,this.e=s,this.v=!1,this.n=this.p=null}function Zc(n,i,a,s,l){var f,b,v=[],T=[];if(n.forEach((function(U){if(!((Z=U.length-1)<=0)){var Z,Q,G=U[0],rt=U[Z];if(hr(G,rt)){if(!G[2]&&!rt[2]){for(l.lineStart(),f=0;f<Z;++f)l.point((G=U[f])[0],G[1]);return void l.lineEnd()}rt[0]+=2e-6}v.push(Q=new O1(G,U,null,!0)),T.push(Q.o=new O1(G,null,Q,!1)),v.push(Q=new O1(rt,U,null,!1)),T.push(Q.o=new O1(rt,null,Q,!0))}})),v.length){for(T.sort(i),Qc(v),Qc(T),f=0,b=T.length;f<b;++f)T[f].e=a=!a;for(var A,B,F=v[0];;){for(var O=F,z=!0;O.v;)if((O=O.n)===F)return;A=O.z,l.lineStart();do{if(O.v=O.o.v=!0,O.e){if(z)for(f=0,b=A.length;f<b;++f)l.point((B=A[f])[0],B[1]);else s(O.x,O.n.x,1,l);O=O.n}else{if(z)for(A=O.p.z,f=A.length-1;f>=0;--f)l.point((B=A[f])[0],B[1]);else s(O.x,O.p.x,-1,l);O=O.p}A=(O=O.o).z,z=!z}while(!O.v);l.lineEnd()}}}function Qc(n){if(i=n.length){for(var i,a,s=0,l=n[0];++s<i;)l.n=a=n[s],a.p=l,l=a;l.n=a=n[0],a.p=l}}Ou.invert=Ou;var Pp=zs();function jp(n){return lr(n[0])<=nr?n[0]:Xa(n[0])*((lr(n[0])+nr)%ma-nr)}function ym(n,i){var a=jp(i),s=i[1],l=qe(s),f=[qe(a),-ln(a),0],b=0,v=0;Pp.reset(),l===1?s=hi+In:l===-1&&(s=-hi-In);for(var T=0,A=n.length;T<A;++T)if(F=(B=n[T]).length)for(var B,F,O=B[F-1],z=jp(O),U=O[1]/2+lh,Z=qe(U),Q=ln(U),G=0;G<F;++G,z=et,Z=Lt,Q=qt,O=rt){var rt=B[G],et=jp(rt),ct=rt[1]/2+lh,Lt=qe(ct),qt=ln(ct),ne=et-z,ve=ne>=0?1:-1,zt=ve*ne,ue=zt>nr,ut=Z*Lt;if(Pp.add(va(ut*ve*qe(zt),Q*qt+ut*ln(zt))),b+=ue?ne+ve*ma:ne,ue^z>=a^et>=a){var xt=Uc(Cu(O),Cu(rt));qc(xt);var ae=Uc(f,xt);qc(ae);var Jt=(ue^ne>=0?-1:1)*Xi(ae[2]);(s>Jt||s===Jt&&(xt[0]||xt[1]))&&(v+=ue^ne>=0?1:-1)}}return(b<-1e-6||b<In&&Pp<-1e-6)^1&v}function mm(n,i,a,s){return function(l){var f,b,v,T=i(l),A=gm(),B=i(A),F=!1,O={point:z,lineStart:Z,lineEnd:Q,polygonStart:function(){O.point=G,O.lineStart=rt,O.lineEnd=et,b=[],f=[]},polygonEnd:function(){O.point=z,O.lineStart=Z,O.lineEnd=Q,b=ce(b);var ct=ym(f,s);b.length?(F||(l.polygonStart(),F=!0),Zc(b,vm,ct,a,l)):ct&&(F||(l.polygonStart(),F=!0),l.lineStart(),a(null,null,1,l),l.lineEnd()),F&&(l.polygonEnd(),F=!1),b=f=null},sphere:function(){l.polygonStart(),l.lineStart(),a(null,null,1,l),l.lineEnd(),l.polygonEnd()}};function z(ct,Lt){n(ct,Lt)&&l.point(ct,Lt)}function U(ct,Lt){T.point(ct,Lt)}function Z(){O.point=U,T.lineStart()}function Q(){O.point=z,T.lineEnd()}function G(ct,Lt){v.push([ct,Lt]),B.point(ct,Lt)}function rt(){B.lineStart(),v=[]}function et(){G(v[0][0],v[0][1]),B.lineEnd();var ct,Lt,qt,ne,ve=B.clean(),zt=A.result(),ue=zt.length;if(v.pop(),f.push(v),v=null,ue)if(1&ve){if((Lt=(qt=zt[0]).length-1)>0){for(F||(l.polygonStart(),F=!0),l.lineStart(),ct=0;ct<Lt;++ct)l.point((ne=qt[ct])[0],ne[1]);l.lineEnd()}}else ue>1&&2&ve&&zt.push(zt.pop().concat(zt.shift())),b.push(zt.filter(y4))}return O}}function y4(n){return n.length>1}function vm(n,i){return((n=n.x)[0]<0?n[1]-hi-In:hi-n[1])-((i=i.x)[0]<0?i[1]-hi-In:hi-i[1])}const B1=mm((function(){return!0}),(function(n){var i,a=NaN,s=NaN,l=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(f,b){var v=f>0?nr:-nr,T=lr(f-a);lr(T-nr)<In?(n.point(a,s=(s+b)/2>0?hi:-hi),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),n.point(f,s),i=0):l!==v&&T>=nr&&(lr(a-l)<In&&(a-=l*In),lr(f-v)<In&&(f-=v*In),s=(function(A,B,F,O){var z,U,Z=qe(A-F);return lr(Z)>In?zc((qe(B)*(U=ln(O))*qe(F)-qe(O)*(z=ln(B))*qe(A))/(z*U*Z)):(B+O)/2})(a,s,f,b),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(v,s),i=0),n.point(a=f,s=b),l=v},lineEnd:function(){n.lineEnd(),a=s=NaN},clean:function(){return 2-i}}}),(function(n,i,a,s){var l;if(n==null)l=a*hi,s.point(-nr,l),s.point(0,l),s.point(nr,l),s.point(nr,0),s.point(nr,-l),s.point(0,-l),s.point(-nr,-l),s.point(-nr,0),s.point(-nr,l);else if(lr(n[0]-i[0])>In){var f=n[0]<i[0]?nr:-nr;l=a*f/2,s.point(-f,l),s.point(0,l),s.point(f,l)}else s.point(i[0],i[1])}),[-nr,-hi]);function bm(n){var i=ln(n),a=6*kn,s=i>0,l=lr(i)>In;function f(T,A){return ln(T)*ln(A)>i}function b(T,A,B){var F=[1,0,0],O=Uc(Cu(T),Cu(A)),z=S1(O,O),U=O[0],Z=z-U*U;if(!Z)return!B&&T;var Q=i*z/Z,G=-i*U/Z,rt=Uc(F,O),et=Su(F,Q);Np(et,Su(O,G));var ct=rt,Lt=S1(et,ct),qt=S1(ct,ct),ne=Lt*Lt-qt*(S1(et,et)-1);if(!(ne<0)){var ve=ai(ne),zt=Su(ct,(-Lt-ve)/qt);if(Np(zt,et),zt=C1(zt),!B)return zt;var ue,ut=T[0],xt=A[0],ae=T[1],Jt=A[1];xt<ut&&(ue=ut,ut=xt,xt=ue);var Kt=xt-ut,Le=lr(Kt-nr)<In;if(!Le&&Jt<ae&&(ue=ae,ae=Jt,Jt=ue),Le||Kt<In?Le?ae+Jt>0^zt[1]<(lr(zt[0]-ut)<In?ae:Jt):ae<=zt[1]&&zt[1]<=Jt:Kt>nr^(ut<=zt[0]&&zt[0]<=xt)){var Ie=Su(ct,(-Lt+ve)/qt);return Np(Ie,et),[zt,C1(Ie)]}}}function v(T,A){var B=s?n:nr-n,F=0;return T<-B?F|=1:T>B&&(F|=2),A<-B?F|=4:A>B&&(F|=8),F}return mm(f,(function(T){var A,B,F,O,z;return{lineStart:function(){O=F=!1,z=1},point:function(U,Z){var Q,G=[U,Z],rt=f(U,Z),et=s?rt?0:v(U,Z):rt?v(U+(U<0?nr:-nr),Z):0;if(!A&&(O=F=rt)&&T.lineStart(),rt!==F&&(!(Q=b(A,G))||hr(A,Q)||hr(G,Q))&&(G[2]=1),rt!==F)z=0,rt?(T.lineStart(),Q=b(G,A),T.point(Q[0],Q[1])):(Q=b(A,G),T.point(Q[0],Q[1],2),T.lineEnd()),A=Q;else if(l&&A&&s^rt){var ct;et&B||!(ct=b(G,A,!0))||(z=0,s?(T.lineStart(),T.point(ct[0][0],ct[0][1]),T.point(ct[1][0],ct[1][1]),T.lineEnd()):(T.point(ct[1][0],ct[1][1]),T.lineEnd(),T.lineStart(),T.point(ct[0][0],ct[0][1],3)))}!rt||A&&hr(A,G)||T.point(G[0],G[1]),A=G,F=rt,B=et},lineEnd:function(){F&&T.lineEnd(),A=null},clean:function(){return z|(O&&F)<<1}}}),(function(T,A,B,F){Fp(F,n,a,B,T,A)}),s?[0,-n]:[-nr,n-nr])}var Eh=1e9,L1=-Eh;function Ch(n,i,a,s){function l(A,B){return n<=A&&A<=a&&i<=B&&B<=s}function f(A,B,F,O){var z=0,U=0;if(A==null||(z=b(A,F))!==(U=b(B,F))||T(A,B)<0^F>0)do O.point(z===0||z===3?n:a,z>1?s:i);while((z=(z+F+4)%4)!==U);else O.point(B[0],B[1])}function b(A,B){return lr(A[0]-n)<In?B>0?0:3:lr(A[0]-a)<In?B>0?2:1:lr(A[1]-i)<In?B>0?1:0:B>0?3:2}function v(A,B){return T(A.x,B.x)}function T(A,B){var F=b(A,1),O=b(B,1);return F!==O?F-O:F===0?B[1]-A[1]:F===1?A[0]-B[0]:F===2?A[1]-B[1]:B[0]-A[0]}return function(A){var B,F,O,z,U,Z,Q,G,rt,et,ct,Lt=A,qt=gm(),ne={point:ve,lineStart:function(){ne.point=zt,F&&F.push(O=[]),et=!0,rt=!1,Q=G=NaN},lineEnd:function(){B&&(zt(z,U),Z&&rt&&qt.rejoin(),B.push(qt.result())),ne.point=ve,rt&&Lt.lineEnd()},polygonStart:function(){Lt=qt,B=[],F=[],ct=!0},polygonEnd:function(){var ue=(function(){for(var ae=0,Jt=0,Kt=F.length;Jt<Kt;++Jt)for(var Le,Ie,vn=F[Jt],tr=1,ir=vn.length,nn=vn[0],sr=nn[0],Mn=nn[1];tr<ir;++tr)Le=sr,Ie=Mn,sr=(nn=vn[tr])[0],Mn=nn[1],Ie<=s?Mn>s&&(sr-Le)*(s-Ie)>(Mn-Ie)*(n-Le)&&++ae:Mn<=s&&(sr-Le)*(s-Ie)<(Mn-Ie)*(n-Le)&&--ae;return ae})(),ut=ct&&ue,xt=(B=ce(B)).length;(ut||xt)&&(A.polygonStart(),ut&&(A.lineStart(),f(null,null,1,A),A.lineEnd()),xt&&Zc(B,v,ue,f,A),A.polygonEnd()),Lt=A,B=F=O=null}};function ve(ue,ut){l(ue,ut)&&Lt.point(ue,ut)}function zt(ue,ut){var xt=l(ue,ut);if(F&&O.push([ue,ut]),et)z=ue,U=ut,Z=xt,et=!1,xt&&(Lt.lineStart(),Lt.point(ue,ut));else if(xt&&rt)Lt.point(ue,ut);else{var ae=[Q=Math.max(L1,Math.min(Eh,Q)),G=Math.max(L1,Math.min(Eh,G))],Jt=[ue=Math.max(L1,Math.min(Eh,ue)),ut=Math.max(L1,Math.min(Eh,ut))];(function(Kt,Le,Ie,vn,tr,ir){var nn,sr=Kt[0],Mn=Kt[1],Sn=0,ur=1,Nn=Le[0]-sr,oi=Le[1]-Mn;if(nn=Ie-sr,Nn||!(nn>0)){if(nn/=Nn,Nn<0){if(nn<Sn)return;nn<ur&&(ur=nn)}else if(Nn>0){if(nn>ur)return;nn>Sn&&(Sn=nn)}if(nn=tr-sr,Nn||!(nn<0)){if(nn/=Nn,Nn<0){if(nn>ur)return;nn>Sn&&(Sn=nn)}else if(Nn>0){if(nn<Sn)return;nn<ur&&(ur=nn)}if(nn=vn-Mn,oi||!(nn>0)){if(nn/=oi,oi<0){if(nn<Sn)return;nn<ur&&(ur=nn)}else if(oi>0){if(nn>ur)return;nn>Sn&&(Sn=nn)}if(nn=ir-Mn,oi||!(nn<0)){if(nn/=oi,oi<0){if(nn>ur)return;nn>Sn&&(Sn=nn)}else if(oi>0){if(nn<Sn)return;nn<ur&&(ur=nn)}return Sn>0&&(Kt[0]=sr+Sn*Nn,Kt[1]=Mn+Sn*oi),ur<1&&(Le[0]=sr+ur*Nn,Le[1]=Mn+ur*oi),!0}}}}})(ae,Jt,n,i,a,s)?(rt||(Lt.lineStart(),Lt.point(ae[0],ae[1])),Lt.point(Jt[0],Jt[1]),xt||Lt.lineEnd(),ct=!1):xt&&(Lt.lineStart(),Lt.point(ue,ut),ct=!1)}Q=ue,G=ut,rt=xt}return ne}}function m4(){var n,i,a,s=0,l=0,f=960,b=500;return a={stream:function(v){return n&&i===v?n:n=Ch(s,l,f,b)(i=v)},extent:function(v){return arguments.length?(s=+v[0][0],l=+v[0][1],f=+v[1][0],b=+v[1][1],n=i=null,a):[[s,l],[f,b]]}}}var I1,R1,F1,Yp=zs(),Kc={sphere:Nr,point:Nr,lineStart:function(){Kc.point=b4,Kc.lineEnd=v4},lineEnd:Nr,polygonStart:Nr,polygonEnd:Nr};function v4(){Kc.point=Kc.lineEnd=Nr}function b4(n,i){I1=n*=kn,R1=qe(i*=kn),F1=ln(i),Kc.point=_4}function _4(n,i){n*=kn;var a=qe(i*=kn),s=ln(i),l=lr(n-I1),f=ln(l),b=s*qe(l),v=F1*a-R1*s*f,T=R1*a+F1*s*f;Yp.add(va(ai(b*b+v*v),T)),I1=n,R1=a,F1=s}function zp(n){return Yp.reset(),co(n,Kc),+Yp}var Up=[null,null],x4={type:"LineString",coordinates:Up};function P1(n,i){return Up[0]=n,Up[1]=i,zp(x4)}var qp={Feature:function(n,i){return j1(n.geometry,i)},FeatureCollection:function(n,i){for(var a=n.features,s=-1,l=a.length;++s<l;)if(j1(a[s].geometry,i))return!0;return!1}},_m={Sphere:function(){return!0},Point:function(n,i){return xm(n.coordinates,i)},MultiPoint:function(n,i){for(var a=n.coordinates,s=-1,l=a.length;++s<l;)if(xm(a[s],i))return!0;return!1},LineString:function(n,i){return wm(n.coordinates,i)},MultiLineString:function(n,i){for(var a=n.coordinates,s=-1,l=a.length;++s<l;)if(wm(a[s],i))return!0;return!1},Polygon:function(n,i){return km(n.coordinates,i)},MultiPolygon:function(n,i){for(var a=n.coordinates,s=-1,l=a.length;++s<l;)if(km(a[s],i))return!0;return!1},GeometryCollection:function(n,i){for(var a=n.geometries,s=-1,l=a.length;++s<l;)if(j1(a[s],i))return!0;return!1}};function j1(n,i){return!(!n||!_m.hasOwnProperty(n.type))&&_m[n.type](n,i)}function xm(n,i){return P1(n,i)===0}function wm(n,i){for(var a,s,l,f=0,b=n.length;f<b;f++){if((s=P1(n[f],i))===0||f>0&&(l=P1(n[f],n[f-1]))>0&&a<=l&&s<=l&&(a+s-l)*(1-Math.pow((a-s)/l,2))<m1*l)return!0;a=s}return!1}function km(n,i){return!!ym(n.map(w4),Hp(i))}function w4(n){return(n=n.map(Hp)).pop(),n}function Hp(n){return[n[0]*kn,n[1]*kn]}function k4(n,i){return(n&&qp.hasOwnProperty(n.type)?qp[n.type]:j1)(n,i)}function Tm(n,i,a){var s=st(n,i-In,a).concat(i);return function(l){return s.map((function(f){return[l,f]}))}}function Em(n,i,a){var s=st(n,i-In,a).concat(i);return function(l){return s.map((function(f){return[f,l]}))}}function Cm(){var n,i,a,s,l,f,b,v,T,A,B,F,O=10,z=O,U=90,Z=360,Q=2.5;function G(){return{type:"MultiLineString",coordinates:rt()}}function rt(){return st(hh(s/U)*U,a,U).map(B).concat(st(hh(v/Z)*Z,b,Z).map(F)).concat(st(hh(i/O)*O,n,O).filter((function(et){return lr(et%U)>In})).map(T)).concat(st(hh(f/z)*z,l,z).filter((function(et){return lr(et%Z)>In})).map(A))}return G.lines=function(){return rt().map((function(et){return{type:"LineString",coordinates:et}}))},G.outline=function(){return{type:"Polygon",coordinates:[B(s).concat(F(b).slice(1),B(a).reverse().slice(1),F(v).reverse().slice(1))]}},G.extent=function(et){return arguments.length?G.extentMajor(et).extentMinor(et):G.extentMinor()},G.extentMajor=function(et){return arguments.length?(s=+et[0][0],a=+et[1][0],v=+et[0][1],b=+et[1][1],s>a&&(et=s,s=a,a=et),v>b&&(et=v,v=b,b=et),G.precision(Q)):[[s,v],[a,b]]},G.extentMinor=function(et){return arguments.length?(i=+et[0][0],n=+et[1][0],f=+et[0][1],l=+et[1][1],i>n&&(et=i,i=n,n=et),f>l&&(et=f,f=l,l=et),G.precision(Q)):[[i,f],[n,l]]},G.step=function(et){return arguments.length?G.stepMajor(et).stepMinor(et):G.stepMinor()},G.stepMajor=function(et){return arguments.length?(U=+et[0],Z=+et[1],G):[U,Z]},G.stepMinor=function(et){return arguments.length?(O=+et[0],z=+et[1],G):[O,z]},G.precision=function(et){return arguments.length?(Q=+et,T=Tm(f,l,90),A=Em(i,n,Q),B=Tm(v,b,90),F=Em(s,a,Q),G):Q},G.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function T4(){return Cm()()}function E4(n,i){var a=n[0]*kn,s=n[1]*kn,l=i[0]*kn,f=i[1]*kn,b=ln(s),v=qe(s),T=ln(f),A=qe(f),B=b*ln(a),F=b*qe(a),O=T*ln(l),z=T*qe(l),U=2*Xi(ai(_1(f-s)+b*T*_1(l-a))),Z=qe(U),Q=U?function(G){var rt=qe(G*=U)/Z,et=qe(U-G)/Z,ct=et*B+rt*O,Lt=et*F+rt*z,qt=et*v+rt*A;return[va(Lt,ct)*jr,va(qt,ai(ct*ct+Lt*Lt))*jr]}:function(){return[a*jr,s*jr]};return Q.distance=U,Q}function Sh(n){return n}var Sm,$p,Wp,Vp,Gp=zs(),Y1=zs(),Hs={point:Nr,lineStart:Nr,lineEnd:Nr,polygonStart:function(){Hs.lineStart=C4,Hs.lineEnd=A4},polygonEnd:function(){Hs.lineStart=Hs.lineEnd=Hs.point=Nr,Gp.add(lr(Y1)),Y1.reset()},result:function(){var n=Gp/2;return Gp.reset(),n}};function C4(){Hs.point=S4}function S4(n,i){Hs.point=Am,Sm=Wp=n,$p=Vp=i}function Am(n,i){Y1.add(Vp*n-Wp*i),Wp=n,Vp=i}function A4(){Am(Sm,$p)}const Mm=Hs;var Bu=1/0,z1=Bu,Ah=-Bu,U1=Ah,M4={point:function(n,i){n<Bu&&(Bu=n),n>Ah&&(Ah=n),i<z1&&(z1=i),i>U1&&(U1=i)},lineStart:Nr,lineEnd:Nr,polygonStart:Nr,polygonEnd:Nr,result:function(){var n=[[Bu,z1],[Ah,U1]];return Ah=U1=-(z1=Bu=1/0),n}};const q1=M4;var Nm,Dm,Jo,No,H1=0,$1=0,Mh=0,Nh=0,Lu=0,Jc=0,Xp=0,W1=0,Dh=0,Na={point:Do,lineStart:Iu,lineEnd:Lh,polygonStart:function(){Na.lineStart=Ru,Na.lineEnd=V1},polygonEnd:function(){Na.point=Do,Na.lineStart=Iu,Na.lineEnd=Lh},result:function(){var n=Dh?[Xp/Dh,W1/Dh]:Jc?[Nh/Jc,Lu/Jc]:Mh?[H1/Mh,$1/Mh]:[NaN,NaN];return H1=$1=Mh=Nh=Lu=Jc=Xp=W1=Dh=0,n}};function Do(n,i){H1+=n,$1+=i,++Mh}function Iu(){Na.point=Oh}function Oh(n,i){Na.point=Bh,Do(Jo=n,No=i)}function Bh(n,i){var a=n-Jo,s=i-No,l=ai(a*a+s*s);Nh+=l*(Jo+n)/2,Lu+=l*(No+i)/2,Jc+=l,Do(Jo=n,No=i)}function Lh(){Na.point=Do}function Ru(){Na.point=Ih}function V1(){Zp(Nm,Dm)}function Ih(n,i){Na.point=Zp,Do(Nm=Jo=n,Dm=No=i)}function Zp(n,i){var a=n-Jo,s=i-No,l=ai(a*a+s*s);Nh+=l*(Jo+n)/2,Lu+=l*(No+i)/2,Jc+=l,Xp+=(l=No*n-Jo*i)*(Jo+n),W1+=l*(No+i),Dh+=3*l,Do(Jo=n,No=i)}const G1=Na;function Om(n){this._context=n}Om.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,ma)}},result:Nr};var tl,Qp,Kp,Rh,Fu,X1=zs(),Z1={point:Nr,lineStart:function(){Z1.point=N4},lineEnd:function(){tl&&Fh(Qp,Kp),Z1.point=Nr},polygonStart:function(){tl=!0},polygonEnd:function(){tl=null},result:function(){var n=+X1;return X1.reset(),n}};function N4(n,i){Z1.point=Fh,Qp=Rh=n,Kp=Fu=i}function Fh(n,i){Rh-=n,Fu-=i,X1.add(ai(Rh*Rh+Fu*Fu)),Rh=n,Fu=i}const Q1=Z1;function Oo(){this._string=[]}function po(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function $s(n,i){var a,s,l=4.5;function f(b){return b&&(typeof l=="function"&&s.pointRadius(+l.apply(this,arguments)),co(b,a(s))),s.result()}return f.area=function(b){return co(b,a(Mm)),Mm.result()},f.measure=function(b){return co(b,a(Q1)),Q1.result()},f.bounds=function(b){return co(b,a(q1)),q1.result()},f.centroid=function(b){return co(b,a(G1)),G1.result()},f.projection=function(b){return arguments.length?(a=b==null?(n=null,Sh):(n=b).stream,f):n},f.context=function(b){return arguments.length?(s=b==null?(i=null,new Oo):new Om(i=b),typeof l!="function"&&s.pointRadius(l),f):i},f.pointRadius=function(b){return arguments.length?(l=typeof b=="function"?b:(s.pointRadius(+b),+b),f):l},f.projection(n).context(i)}function K1(n){return{stream:el(n)}}function el(n){return function(i){var a=new Ph;for(var s in n)a[s]=n[s];return a.stream=i,a}}function Ph(){}function J1(n,i,a){var s=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),s!=null&&n.clipExtent(null),co(a,n.stream(q1)),i(q1.result()),s!=null&&n.clipExtent(s),n}function jh(n,i,a){return J1(n,(function(s){var l=i[1][0]-i[0][0],f=i[1][1]-i[0][1],b=Math.min(l/(s[1][0]-s[0][0]),f/(s[1][1]-s[0][1])),v=+i[0][0]+(l-b*(s[1][0]+s[0][0]))/2,T=+i[0][1]+(f-b*(s[1][1]+s[0][1]))/2;n.scale(150*b).translate([v,T])}),a)}function Jp(n,i,a){return jh(n,[[0,0],i],a)}function tg(n,i,a){return J1(n,(function(s){var l=+i,f=l/(s[1][0]-s[0][0]),b=(l-f*(s[1][0]+s[0][0]))/2,v=-f*s[0][1];n.scale(150*f).translate([b,v])}),a)}function eg(n,i,a){return J1(n,(function(s){var l=+i,f=l/(s[1][1]-s[0][1]),b=-f*s[0][0],v=(l-f*(s[1][1]+s[0][1]))/2;n.scale(150*f).translate([b,v])}),a)}Oo.prototype={_radius:4.5,_circle:po(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=po(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}},Ph.prototype={constructor:Ph,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 D4=ln(30*kn);function t0(n,i){return+i?(function(a,s){function l(f,b,v,T,A,B,F,O,z,U,Z,Q,G,rt){var et=F-f,ct=O-b,Lt=et*et+ct*ct;if(Lt>4*s&&G--){var qt=T+U,ne=A+Z,ve=B+Q,zt=ai(qt*qt+ne*ne+ve*ve),ue=Xi(ve/=zt),ut=lr(lr(ve)-1)<In||lr(v-z)<In?(v+z)/2:va(ne,qt),xt=a(ut,ue),ae=xt[0],Jt=xt[1],Kt=ae-f,Le=Jt-b,Ie=ct*Kt-et*Le;(Ie*Ie/Lt>s||lr((et*Kt+ct*Le)/Lt-.5)>.3||T*U+A*Z+B*Q<D4)&&(l(f,b,v,T,A,B,ae,Jt,ut,qt/=zt,ne/=zt,ve,G,rt),rt.point(ae,Jt),l(ae,Jt,ut,qt,ne,ve,F,O,z,U,Z,Q,G,rt))}}return function(f){var b,v,T,A,B,F,O,z,U,Z,Q,G,rt={point:et,lineStart:ct,lineEnd:qt,polygonStart:function(){f.polygonStart(),rt.lineStart=ne},polygonEnd:function(){f.polygonEnd(),rt.lineStart=ct}};function et(ue,ut){ue=a(ue,ut),f.point(ue[0],ue[1])}function ct(){z=NaN,rt.point=Lt,f.lineStart()}function Lt(ue,ut){var xt=Cu([ue,ut]),ae=a(ue,ut);l(z,U,O,Z,Q,G,z=ae[0],U=ae[1],O=ue,Z=xt[0],Q=xt[1],G=xt[2],16,f),f.point(z,U)}function qt(){rt.point=et,f.lineEnd()}function ne(){ct(),rt.point=ve,rt.lineEnd=zt}function ve(ue,ut){Lt(b=ue,ut),v=z,T=U,A=Z,B=Q,F=G,rt.point=Lt}function zt(){l(z,U,O,Z,Q,G,v,T,b,A,B,F,16,f),rt.lineEnd=qt,qt()}return rt}})(n,i):(function(a){return el({point:function(s,l){s=a(s,l),this.stream.point(s[0],s[1])}})})(n)}var Bm=el({point:function(n,i){this.stream.point(n*kn,i*kn)}});function ng(n,i,a,s,l){function f(b,v){return[i+n*(b*=s),a-n*(v*=l)]}return f.invert=function(b,v){return[(b-i)/n*s,(a-v)/n*l]},f}function e0(n,i,a,s,l,f){var b=ln(f),v=qe(f),T=b*n,A=v*n,B=b/n,F=v/n,O=(v*a-b*i)/n,z=(v*i+b*a)/n;function U(Z,Q){return[T*(Z*=s)-A*(Q*=l)+i,a-A*Z-T*Q]}return U.invert=function(Z,Q){return[s*(B*Z-F*Q+O),l*(z-F*Z-B*Q)]},U}function ts(n){return n0((function(){return n}))()}function n0(n){var i,a,s,l,f,b,v,T,A,B,F=150,O=480,z=250,U=0,Z=0,Q=0,G=0,rt=0,et=0,ct=1,Lt=1,qt=null,ne=B1,ve=null,zt=Sh,ue=.5;function ut(Kt){return T(Kt[0]*kn,Kt[1]*kn)}function xt(Kt){return(Kt=T.invert(Kt[0],Kt[1]))&&[Kt[0]*jr,Kt[1]*jr]}function ae(){var Kt=e0(F,0,0,ct,Lt,et).apply(null,i(U,Z)),Le=(et?e0:ng)(F,O-Kt[0],z-Kt[1],ct,Lt,et);return a=Th(Q,G,rt),v=kh(i,Le),T=kh(a,v),b=t0(v,ue),Jt()}function Jt(){return A=B=null,ut}return ut.stream=function(Kt){return A&&B===Kt?A:A=Bm((function(Le){return el({point:function(Ie,vn){var tr=Le(Ie,vn);return this.stream.point(tr[0],tr[1])}})})(a)(ne(b(zt(B=Kt)))))},ut.preclip=function(Kt){return arguments.length?(ne=Kt,qt=void 0,Jt()):ne},ut.postclip=function(Kt){return arguments.length?(zt=Kt,ve=s=l=f=null,Jt()):zt},ut.clipAngle=function(Kt){return arguments.length?(ne=+Kt?bm(qt=Kt*kn):(qt=null,B1),Jt()):qt*jr},ut.clipExtent=function(Kt){return arguments.length?(zt=Kt==null?(ve=s=l=f=null,Sh):Ch(ve=+Kt[0][0],s=+Kt[0][1],l=+Kt[1][0],f=+Kt[1][1]),Jt()):ve==null?null:[[ve,s],[l,f]]},ut.scale=function(Kt){return arguments.length?(F=+Kt,ae()):F},ut.translate=function(Kt){return arguments.length?(O=+Kt[0],z=+Kt[1],ae()):[O,z]},ut.center=function(Kt){return arguments.length?(U=Kt[0]%360*kn,Z=Kt[1]%360*kn,ae()):[U*jr,Z*jr]},ut.rotate=function(Kt){return arguments.length?(Q=Kt[0]%360*kn,G=Kt[1]%360*kn,rt=Kt.length>2?Kt[2]%360*kn:0,ae()):[Q*jr,G*jr,rt*jr]},ut.angle=function(Kt){return arguments.length?(et=Kt%360*kn,ae()):et*jr},ut.reflectX=function(Kt){return arguments.length?(ct=Kt?-1:1,ae()):ct<0},ut.reflectY=function(Kt){return arguments.length?(Lt=Kt?-1:1,ae()):Lt<0},ut.precision=function(Kt){return arguments.length?(b=t0(v,ue=Kt*Kt),Jt()):ai(ue)},ut.fitExtent=function(Kt,Le){return jh(ut,Kt,Le)},ut.fitSize=function(Kt,Le){return Jp(ut,Kt,Le)},ut.fitWidth=function(Kt,Le){return tg(ut,Kt,Le)},ut.fitHeight=function(Kt,Le){return eg(ut,Kt,Le)},function(){return i=n.apply(this,arguments),ut.invert=i.invert&&xt,ae()}}function rg(n){var i=0,a=nr/3,s=n0(n),l=s(i,a);return l.parallels=function(f){return arguments.length?s(i=f[0]*kn,a=f[1]*kn):[i*jr,a*jr]},l}function Lm(n,i){var a=qe(n),s=(a+qe(i))/2;if(lr(s)<In)return(function(v){var T=ln(v);function A(B,F){return[B*T,qe(F)/T]}return A.invert=function(B,F){return[B/T,Xi(F*T)]},A})(n);var l=1+a*(2*s-a),f=ai(l)/s;function b(v,T){var A=ai(l-2*s*qe(T))/s;return[A*qe(v*=s),f-A*ln(v)]}return b.invert=function(v,T){var A=f-T,B=va(v,lr(A))*Xa(A);return A*s<0&&(B-=nr*Xa(v)*Xa(A)),[B/s,Xi((l-(v*v+A*A)*s*s)/(2*s))]},b}function r0(){return rg(Lm).scale(155.424).center([0,33.6442])}function Im(){return r0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function O4(){var n,i,a,s,l,f,b=Im(),v=r0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=r0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),A={point:function(O,z){f=[O,z]}};function B(O){var z=O[0],U=O[1];return f=null,a.point(z,U),f||(s.point(z,U),f)||(l.point(z,U),f)}function F(){return n=i=null,B}return B.invert=function(O){var z=b.scale(),U=b.translate(),Z=(O[0]-U[0])/z,Q=(O[1]-U[1])/z;return(Q>=.12&&Q<.234&&Z>=-.425&&Z<-.214?v:Q>=.166&&Q<.234&&Z>=-.214&&Z<-.115?T:b).invert(O)},B.stream=function(O){return n&&i===O?n:(z=[b.stream(i=O),v.stream(O),T.stream(O)],U=z.length,n={point:function(Z,Q){for(var G=-1;++G<U;)z[G].point(Z,Q)},sphere:function(){for(var Z=-1;++Z<U;)z[Z].sphere()},lineStart:function(){for(var Z=-1;++Z<U;)z[Z].lineStart()},lineEnd:function(){for(var Z=-1;++Z<U;)z[Z].lineEnd()},polygonStart:function(){for(var Z=-1;++Z<U;)z[Z].polygonStart()},polygonEnd:function(){for(var Z=-1;++Z<U;)z[Z].polygonEnd()}});var z,U},B.precision=function(O){return arguments.length?(b.precision(O),v.precision(O),T.precision(O),F()):b.precision()},B.scale=function(O){return arguments.length?(b.scale(O),v.scale(.35*O),T.scale(O),B.translate(b.translate())):b.scale()},B.translate=function(O){if(!arguments.length)return b.translate();var z=b.scale(),U=+O[0],Z=+O[1];return a=b.translate(O).clipExtent([[U-.455*z,Z-.238*z],[U+.455*z,Z+.238*z]]).stream(A),s=v.translate([U-.307*z,Z+.201*z]).clipExtent([[U-.425*z+In,Z+.12*z+In],[U-.214*z-In,Z+.234*z-In]]).stream(A),l=T.translate([U-.205*z,Z+.212*z]).clipExtent([[U-.214*z+In,Z+.166*z+In],[U-.115*z-In,Z+.234*z-In]]).stream(A),F()},B.fitExtent=function(O,z){return jh(B,O,z)},B.fitSize=function(O,z){return Jp(B,O,z)},B.fitWidth=function(O,z){return tg(B,O,z)},B.fitHeight=function(O,z){return eg(B,O,z)},B.scale(1070)}function Rm(n){return function(i,a){var s=ln(i),l=ln(a),f=n(s*l);return[f*l*qe(i),f*qe(a)]}}function Yh(n){return function(i,a){var s=ai(i*i+a*a),l=n(s),f=qe(l),b=ln(l);return[va(i*f,s*b),Xi(s&&a*f/s)]}}var ig=Rm((function(n){return ai(2/(1+n))}));function B4(){return ts(ig).scale(124.75).clipAngle(179.999)}ig.invert=Yh((function(n){return 2*Xi(n/2)}));var ag=Rm((function(n){return(n=b1(n))&&n/qe(n)}));function L4(){return ts(ag).scale(79.4188).clipAngle(179.999)}function zh(n,i){return[n,v1(Ve((hi+i)/2))]}function I4(){return Fm(zh).scale(961/ma)}function Fm(n){var i,a,s,l=ts(n),f=l.center,b=l.scale,v=l.translate,T=l.clipExtent,A=null;function B(){var F=nr*b(),O=l(D1(l.rotate()).invert([0,0]));return T(A==null?[[O[0]-F,O[1]-F],[O[0]+F,O[1]+F]]:n===zh?[[Math.max(O[0]-F,A),i],[Math.min(O[0]+F,a),s]]:[[A,Math.max(O[1]-F,i)],[a,Math.min(O[1]+F,s)]])}return l.scale=function(F){return arguments.length?(b(F),B()):b()},l.translate=function(F){return arguments.length?(v(F),B()):v()},l.center=function(F){return arguments.length?(f(F),B()):f()},l.clipExtent=function(F){return arguments.length?(F==null?A=i=a=s=null:(A=+F[0][0],i=+F[0][1],a=+F[1][0],s=+F[1][1]),B()):A==null?null:[[A,i],[a,s]]},B()}function i0(n){return Ve((hi+n)/2)}function Pm(n,i){var a=ln(n),s=n===i?qe(n):v1(a/ln(i))/v1(i0(i)/i0(n)),l=a*fh(i0(n),s)/s;if(!s)return zh;function f(b,v){l>0?v<-hi+In&&(v=-hi+In):v>hi-In&&(v=hi-In);var T=l/fh(i0(v),s);return[T*qe(s*b),l-T*ln(s*b)]}return f.invert=function(b,v){var T=l-v,A=Xa(s)*ai(b*b+T*T),B=va(b,lr(T))*Xa(T);return T*s<0&&(B-=nr*Xa(b)*Xa(T)),[B/s,2*zc(fh(l/A,1/s))-hi]},f}function R4(){return rg(Pm).scale(109.5).parallels([30,30])}function nl(n,i){return[n,i]}function F4(){return ts(nl).scale(152.63)}function jm(n,i){var a=ln(n),s=n===i?qe(n):(a-ln(i))/(i-n),l=a/s+n;if(lr(s)<In)return nl;function f(b,v){var T=l-v,A=s*b;return[T*qe(A),l-T*ln(A)]}return f.invert=function(b,v){var T=l-v,A=va(b,lr(T))*Xa(T);return T*s<0&&(A-=nr*Xa(b)*Xa(T)),[A/s,l-Xa(s)*ai(b*b+T*T)]},f}function P4(){return rg(jm).scale(131.154).center([0,13.9389])}ag.invert=Yh((function(n){return n})),zh.invert=function(n,i){return[n,2*zc(lm(i))-hi]},nl.invert=nl;var Uh=1.340264,qh=-.081106,Qa=893e-6,rl=.003796,go=ai(3)/2;function og(n,i){var a=Xi(go*qe(i)),s=a*a,l=s*s*s;return[n*ln(a)/(go*(Uh+3*qh*s+l*(7*Qa+9*rl*s))),a*(Uh+qh*s+l*(Qa+rl*s))]}function j4(){return ts(og).scale(177.158)}function sg(n,i){var a=ln(i),s=ln(n)*a;return[a*qe(n)/s,qe(i)/s]}function ug(){return ts(sg).scale(144.049).clipAngle(60)}function Y4(){var n,i,a,s,l,f,b,v=1,T=0,A=0,B=1,F=1,O=0,z=null,U=1,Z=1,Q=el({point:function(ct,Lt){var qt=et([ct,Lt]);this.stream.point(qt[0],qt[1])}}),G=Sh;function rt(){return U=v*B,Z=v*F,f=b=null,et}function et(ct){var Lt=ct[0]*U,qt=ct[1]*Z;if(O){var ne=qt*n-Lt*i;Lt=Lt*n+qt*i,qt=ne}return[Lt+T,qt+A]}return et.invert=function(ct){var Lt=ct[0]-T,qt=ct[1]-A;if(O){var ne=qt*n+Lt*i;Lt=Lt*n-qt*i,qt=ne}return[Lt/U,qt/Z]},et.stream=function(ct){return f&&b===ct?f:f=Q(G(b=ct))},et.postclip=function(ct){return arguments.length?(G=ct,z=a=s=l=null,rt()):G},et.clipExtent=function(ct){return arguments.length?(G=ct==null?(z=a=s=l=null,Sh):Ch(z=+ct[0][0],a=+ct[0][1],s=+ct[1][0],l=+ct[1][1]),rt()):z==null?null:[[z,a],[s,l]]},et.scale=function(ct){return arguments.length?(v=+ct,rt()):v},et.translate=function(ct){return arguments.length?(T=+ct[0],A=+ct[1],rt()):[T,A]},et.angle=function(ct){return arguments.length?(i=qe(O=ct%360*kn),n=ln(O),rt()):O*jr},et.reflectX=function(ct){return arguments.length?(B=ct?-1:1,rt()):B<0},et.reflectY=function(ct){return arguments.length?(F=ct?-1:1,rt()):F<0},et.fitExtent=function(ct,Lt){return jh(et,ct,Lt)},et.fitSize=function(ct,Lt){return Jp(et,ct,Lt)},et.fitWidth=function(ct,Lt){return tg(et,ct,Lt)},et.fitHeight=function(ct,Lt){return eg(et,ct,Lt)},et}function cg(n,i){var a=i*i,s=a*a;return[n*(.8707-.131979*a+s*(s*(.003971*a-.001529*s)-.013791)),i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))]}function Ym(){return ts(cg).scale(175.295)}function a0(n,i){return[ln(i)*qe(n),qe(i)]}function zm(){return ts(a0).scale(249.5).clipAngle(90.000001)}function lg(n,i){var a=ln(i),s=1+ln(n)*a;return[a*qe(n)/s,qe(i)/s]}function z4(){return ts(lg).scale(250).clipAngle(142)}function hg(n,i){return[v1(Ve((hi+i)/2)),-n]}function U4(){var n=Fm(hg),i=n.center,a=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?a([s[0],s[1],s.length>2?s[2]+90:90]):[(s=a())[0],s[1],s[2]-90]},a([0,0,90]).scale(159.155)}function Um(n,i){return n.parent===i.parent?1:2}function o0(n,i){return n+i.x}function q4(n,i){return Math.max(n,i.y)}function H4(){var n=Um,i=1,a=1,s=!1;function l(f){var b,v=0;f.eachAfter((function(O){var z=O.children;z?(O.x=(function(U){return U.reduce(o0,0)/U.length})(z),O.y=(function(U){return 1+U.reduce(q4,0)})(z)):(O.x=b?v+=n(O,b):0,O.y=0,b=O)}));var T=(function(O){for(var z;z=O.children;)O=z[0];return O})(f),A=(function(O){for(var z;z=O.children;)O=z[z.length-1];return O})(f),B=T.x-n(T,A)/2,F=A.x+n(A,T)/2;return f.eachAfter(s?function(O){O.x=(O.x-f.x)*i,O.y=(f.y-O.y)*a}:function(O){O.x=(O.x-B)/(F-B)*i,O.y=(1-(f.y?O.y/f.y:1))*a})}return l.separation=function(f){return arguments.length?(n=f,l):n},l.size=function(f){return arguments.length?(s=!1,i=+f[0],a=+f[1],l):s?null:[i,a]},l.nodeSize=function(f){return arguments.length?(s=!0,i=+f[0],a=+f[1],l):s?[i,a]:null},l}function $4(n){var i=0,a=n.children,s=a&&a.length;if(s)for(;--s>=0;)i+=a[s].value;else i=1;n.value=i}function fg(n,i){var a,s,l,f,b,v=new Pu(n),T=+n.value&&(v.value=n.value),A=[v];for(i==null&&(i=W4);a=A.pop();)if(T&&(a.value=+a.data.value),(l=i(a.data))&&(b=l.length))for(a.children=new Array(b),f=b-1;f>=0;--f)A.push(s=a.children[f]=new Pu(l[f])),s.parent=a,s.depth=a.depth+1;return v.eachBefore(s0)}function W4(n){return n.children}function V4(n){n.data=n.data.data}function s0(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function Pu(n){this.data=n,this.depth=this.height=0,this.parent=null}og.invert=function(n,i){for(var a,s=i,l=s*s,f=l*l*l,b=0;b<12&&(f=(l=(s-=a=(s*(Uh+qh*l+f*(Qa+rl*l))-i)/(Uh+3*qh*l+f*(7*Qa+9*rl*l)))*s)*l*l,!(lr(a)<m1));++b);return[go*n*(Uh+3*qh*l+f*(7*Qa+9*rl*l))/ln(s),Xi(qe(s)/go)]},sg.invert=Yh(zc),cg.invert=function(n,i){var a,s=i,l=25;do{var f=s*s,b=f*f;s-=a=(s*(1.007226+f*(.015085+b*(.028874*f-.044475-.005916*b)))-i)/(1.007226+f*(.045255+b*(.259866*f-.311325-.06507600000000001*b)))}while(lr(a)>In&&--l>0);return[n/(.8707+(f=s*s)*(f*(f*f*f*(.003971-.001529*f)-.013791)-.131979)),s]},a0.invert=Yh(Xi),lg.invert=Yh((function(n){return 2*zc(n)})),hg.invert=function(n,i){return[-i,2*zc(lm(n))-hi]},Pu.prototype=fg.prototype={constructor:Pu,count:function(){return this.eachAfter($4)},each:function(n){var i,a,s,l,f=this,b=[f];do for(i=b.reverse(),b=[];f=i.pop();)if(n(f),a=f.children)for(s=0,l=a.length;s<l;++s)b.push(a[s]);while(b.length);return this},eachAfter:function(n){for(var i,a,s,l=this,f=[l],b=[];l=f.pop();)if(b.push(l),i=l.children)for(a=0,s=i.length;a<s;++a)f.push(i[a]);for(;l=b.pop();)n(l);return this},eachBefore:function(n){for(var i,a,s=this,l=[s];s=l.pop();)if(n(s),i=s.children)for(a=i.length-1;a>=0;--a)l.push(i[a]);return this},sum:function(n){return this.eachAfter((function(i){for(var a=+n(i.data)||0,s=i.children,l=s&&s.length;--l>=0;)a+=s[l].value;i.value=a}))},sort:function(n){return this.eachBefore((function(i){i.children&&i.children.sort(n)}))},path:function(n){for(var i=this,a=(function(f,b){if(f===b)return f;var v=f.ancestors(),T=b.ancestors(),A=null;for(f=v.pop(),b=T.pop();f===b;)A=f,f=v.pop(),b=T.pop();return A})(i,n),s=[i];i!==a;)i=i.parent,s.push(i);for(var l=s.length;n!==a;)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(a){a!==n&&i.push({source:a.parent,target:a})})),i},copy:function(){return fg(this).eachBefore(V4)}};var u0=Array.prototype.slice;function qm(n){for(var i,a,s=0,l=(n=(function(b){for(var v,T,A=b.length;A;)T=Math.random()*A--|0,v=b[A],b[A]=b[T],b[T]=v;return b})(u0.call(n))).length,f=[];s<l;)i=n[s],a&&Hm(a,i)?++s:(a=X4(f=G4(f,i)),s=0);return a}function G4(n,i){var a,s;if(dg(i,n))return[i];for(a=0;a<n.length;++a)if(c0(i,n[a])&&dg(il(n[a],i),n))return[n[a],i];for(a=0;a<n.length-1;++a)for(s=a+1;s<n.length;++s)if(c0(il(n[a],n[s]),i)&&c0(il(n[a],i),n[s])&&c0(il(n[s],i),n[a])&&dg($m(n[a],n[s],i),n))return[n[a],n[s],i];throw new Error}function c0(n,i){var a=n.r-i.r,s=i.x-n.x,l=i.y-n.y;return a<0||a*a<s*s+l*l}function Hm(n,i){var a=n.r-i.r+1e-6,s=i.x-n.x,l=i.y-n.y;return a>0&&a*a>s*s+l*l}function dg(n,i){for(var a=0;a<i.length;++a)if(!Hm(n,i[a]))return!1;return!0}function X4(n){switch(n.length){case 1:return(function(i){return{x:i.x,y:i.y,r:i.r}})(n[0]);case 2:return il(n[0],n[1]);case 3:return $m(n[0],n[1],n[2])}}function il(n,i){var a=n.x,s=n.y,l=n.r,f=i.x,b=i.y,v=i.r,T=f-a,A=b-s,B=v-l,F=Math.sqrt(T*T+A*A);return{x:(a+f+T/F*B)/2,y:(s+b+A/F*B)/2,r:(F+l+v)/2}}function $m(n,i,a){var s=n.x,l=n.y,f=n.r,b=i.x,v=i.y,T=i.r,A=a.x,B=a.y,F=a.r,O=s-b,z=s-A,U=l-v,Z=l-B,Q=T-f,G=F-f,rt=s*s+l*l-f*f,et=rt-b*b-v*v+T*T,ct=rt-A*A-B*B+F*F,Lt=z*U-O*Z,qt=(U*ct-Z*et)/(2*Lt)-s,ne=(Z*Q-U*G)/Lt,ve=(z*et-O*ct)/(2*Lt)-l,zt=(O*G-z*Q)/Lt,ue=ne*ne+zt*zt-1,ut=2*(f+qt*ne+ve*zt),xt=qt*qt+ve*ve-f*f,ae=-(ue?(ut+Math.sqrt(ut*ut-4*ue*xt))/(2*ue):xt/ut);return{x:s+qt+ne*ae,y:l+ve+zt*ae,r:ae}}function Wm(n,i,a){var s,l,f,b,v=n.x-i.x,T=n.y-i.y,A=v*v+T*T;A?(l=i.r+a.r,l*=l,b=n.r+a.r,l>(b*=b)?(s=(A+b-l)/(2*A),f=Math.sqrt(Math.max(0,b/A-s*s)),a.x=n.x-s*v-f*T,a.y=n.y-s*T+f*v):(s=(A+l-b)/(2*A),f=Math.sqrt(Math.max(0,l/A-s*s)),a.x=i.x+s*v-f*T,a.y=i.y+s*T+f*v)):(a.x=i.x+a.r,a.y=i.y)}function Vm(n,i){var a=n.r+i.r-1e-6,s=i.x-n.x,l=i.y-n.y;return a>0&&a*a>s*s+l*l}function ju(n){var i=n._,a=n.next._,s=i.r+a.r,l=(i.x*a.r+a.x*i.r)/s,f=(i.y*a.r+a.y*i.r)/s;return l*l+f*f}function l0(n){this._=n,this.next=null,this.previous=null}function Gm(n){if(!(l=n.length))return 0;var i,a,s,l,f,b,v,T,A,B,F;if((i=n[0]).x=0,i.y=0,!(l>1))return i.r;if(a=n[1],i.x=-a.r,a.x=i.r,a.y=0,!(l>2))return i.r+a.r;Wm(a,i,s=n[2]),i=new l0(i),a=new l0(a),s=new l0(s),i.next=s.previous=a,a.next=i.previous=s,s.next=a.previous=i;t:for(v=3;v<l;++v){Wm(i._,a._,s=n[v]),s=new l0(s),T=a.next,A=i.previous,B=a._.r,F=i._.r;do if(B<=F){if(Vm(T._,s._)){a=T,i.next=a,a.previous=i,--v;continue t}B+=T._.r,T=T.next}else{if(Vm(A._,s._)){(i=A).next=a,a.previous=i,--v;continue t}F+=A._.r,A=A.previous}while(T!==A.next);for(s.previous=i,s.next=a,i.next=a.previous=a=s,f=ju(i);(s=s.next)!==a;)(b=ju(s))<f&&(i=s,f=b);a=i.next}for(i=[a._],s=a;(s=s.next)!==a;)i.push(s._);for(s=qm(i),v=0;v<l;++v)(i=n[v]).x-=s.x,i.y-=s.y;return s.r}function Z4(n){return Gm(n),n}function Xm(n){return n==null?null:al(n)}function al(n){if(typeof n!="function")throw new Error;return n}function Ws(){return 0}function Yu(n){return function(){return n}}function Zm(n){return Math.sqrt(n.value)}function Q4(){var n=null,i=1,a=1,s=Ws;function l(f){return f.x=i/2,f.y=a/2,n?f.eachBefore(Qm(n)).eachAfter(pg(s,.5)).eachBefore(Km(1)):f.eachBefore(Qm(Zm)).eachAfter(pg(Ws,1)).eachAfter(pg(s,f.r/Math.min(i,a))).eachBefore(Km(Math.min(i,a)/(2*f.r))),f}return l.radius=function(f){return arguments.length?(n=Xm(f),l):n},l.size=function(f){return arguments.length?(i=+f[0],a=+f[1],l):[i,a]},l.padding=function(f){return arguments.length?(s=typeof f=="function"?f:Yu(+f),l):s},l}function Qm(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function pg(n,i){return function(a){if(s=a.children){var s,l,f,b=s.length,v=n(a)*i||0;if(v)for(l=0;l<b;++l)s[l].r+=v;if(f=Gm(s),v)for(l=0;l<b;++l)s[l].r-=v;a.r=f+v}}}function Km(n){return function(i){var a=i.parent;i.r*=n,a&&(i.x=a.x+n*i.x,i.y=a.y+n*i.y)}}function Jm(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 Hh(n,i,a,s,l){for(var f,b=n.children,v=-1,T=b.length,A=n.value&&(s-i)/n.value;++v<T;)(f=b[v]).y0=a,f.y1=l,f.x0=i,f.x1=i+=f.value*A}function K4(){var n=1,i=1,a=0,s=!1;function l(f){var b=f.height+1;return f.x0=f.y0=a,f.x1=n,f.y1=i/b,f.eachBefore((function(v,T){return function(A){A.children&&Hh(A,A.x0,v*(A.depth+1)/T,A.x1,v*(A.depth+2)/T);var B=A.x0,F=A.y0,O=A.x1-a,z=A.y1-a;O<B&&(B=O=(B+O)/2),z<F&&(F=z=(F+z)/2),A.x0=B,A.y0=F,A.x1=O,A.y1=z}})(i,b)),s&&f.eachBefore(Jm),f}return l.round=function(f){return arguments.length?(s=!!f,l):s},l.size=function(f){return arguments.length?(n=+f[0],i=+f[1],l):[n,i]},l.padding=function(f){return arguments.length?(a=+f,l):a},l}var J4={depth:-1},tv={};function t5(n){return n.id}function e5(n){return n.parentId}function n5(){var n=t5,i=e5;function a(s){var l,f,b,v,T,A,B,F=s.length,O=new Array(F),z={};for(f=0;f<F;++f)l=s[f],T=O[f]=new Pu(l),(A=n(l,f,s))!=null&&(A+="")&&(z[B="$"+(T.id=A)]=B in z?tv:T);for(f=0;f<F;++f)if(T=O[f],(A=i(s[f],f,s))!=null&&(A+="")){if(!(v=z["$"+A]))throw new Error("missing: "+A);if(v===tv)throw new Error("ambiguous: "+A);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=J4,b.eachBefore((function(U){U.depth=U.parent.depth+1,--F})).eachBefore(s0),b.parent=null,F>0)throw new Error("cycle");return b}return a.id=function(s){return arguments.length?(n=al(s),a):n},a.parentId=function(s){return arguments.length?(i=al(s),a):i},a}function r5(n,i){return n.parent===i.parent?1:2}function h0(n){var i=n.children;return i?i[0]:n.t}function gg(n){var i=n.children;return i?i[i.length-1]:n.t}function i5(n,i,a){var s=a/(i.i-n.i);i.c-=s,i.s+=a,n.c+=s,i.z+=a,i.m+=a}function a5(n,i,a){return n.a.parent===i.parent?n.a:a}function f0(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 o5(){var n=r5,i=1,a=1,s=null;function l(T){var A=(function(G){for(var rt,et,ct,Lt,qt,ne=new f0(G,0),ve=[ne];rt=ve.pop();)if(ct=rt._.children)for(rt.children=new Array(qt=ct.length),Lt=qt-1;Lt>=0;--Lt)ve.push(et=rt.children[Lt]=new f0(ct[Lt],Lt)),et.parent=rt;return(ne.parent=new f0(null,0)).children=[ne],ne})(T);if(A.eachAfter(f),A.parent.m=-A.z,A.eachBefore(b),s)T.eachBefore(v);else{var B=T,F=T,O=T;T.eachBefore((function(G){G.x<B.x&&(B=G),G.x>F.x&&(F=G),G.depth>O.depth&&(O=G)}));var z=B===F?1:n(B,F)/2,U=z-B.x,Z=i/(F.x+z+U),Q=a/(O.depth||1);T.eachBefore((function(G){G.x=(G.x+U)*Z,G.y=G.depth*Q}))}return T}function f(T){var A=T.children,B=T.parent.children,F=T.i?B[T.i-1]:null;if(A){(function(z){for(var U,Z=0,Q=0,G=z.children,rt=G.length;--rt>=0;)(U=G[rt]).z+=Z,U.m+=Z,Z+=U.s+(Q+=U.c)})(T);var O=(A[0].z+A[A.length-1].z)/2;F?(T.z=F.z+n(T._,F._),T.m=T.z-O):T.z=O}else F&&(T.z=F.z+n(T._,F._));T.parent.A=(function(z,U,Z){if(U){for(var Q,G=z,rt=z,et=U,ct=G.parent.children[0],Lt=G.m,qt=rt.m,ne=et.m,ve=ct.m;et=gg(et),G=h0(G),et&&G;)ct=h0(ct),(rt=gg(rt)).a=z,(Q=et.z+ne-G.z-Lt+n(et._,G._))>0&&(i5(a5(et,z,Z),z,Q),Lt+=Q,qt+=Q),ne+=et.m,Lt+=G.m,ve+=ct.m,qt+=rt.m;et&&!gg(rt)&&(rt.t=et,rt.m+=ne-qt),G&&!h0(ct)&&(ct.t=G,ct.m+=Lt-ve,Z=z)}return Z})(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*a}return l.separation=function(T){return arguments.length?(n=T,l):n},l.size=function(T){return arguments.length?(s=!1,i=+T[0],a=+T[1],l):s?null:[i,a]},l.nodeSize=function(T){return arguments.length?(s=!0,i=+T[0],a=+T[1],l):s?[i,a]:null},l}function d0(n,i,a,s,l){for(var f,b=n.children,v=-1,T=b.length,A=n.value&&(l-a)/n.value;++v<T;)(f=b[v]).x0=i,f.x1=s,f.y0=a,f.y1=a+=f.value*A}f0.prototype=Object.create(Pu.prototype);var ev=(1+Math.sqrt(5))/2;function yg(n,i,a,s,l,f){for(var b,v,T,A,B,F,O,z,U,Z,Q,G=[],rt=i.children,et=0,ct=0,Lt=rt.length,qt=i.value;et<Lt;){T=l-a,A=f-s;do B=rt[ct++].value;while(!B&&ct<Lt);for(F=O=B,Q=B*B*(Z=Math.max(A/T,T/A)/(qt*n)),U=Math.max(O/Q,Q/F);ct<Lt;++ct){if(B+=v=rt[ct].value,v<F&&(F=v),v>O&&(O=v),Q=B*B*Z,(z=Math.max(O/Q,Q/F))>U){B-=v;break}U=z}G.push(b={value:B,dice:T<A,children:rt.slice(et,ct)}),b.dice?Hh(b,a,s,l,qt?s+=A*B/qt:f):d0(b,a,s,qt?a+=T*B/qt:l,f),qt-=B,et=ct}return G}const nv=(function n(i){function a(s,l,f,b,v){yg(i,s,l,f,b,v)}return a.ratio=function(s){return n((s=+s)>1?s:1)},a})(ev);function s5(){var n=nv,i=!1,a=1,s=1,l=[0],f=Ws,b=Ws,v=Ws,T=Ws,A=Ws;function B(O){return O.x0=O.y0=0,O.x1=a,O.y1=s,O.eachBefore(F),l=[0],i&&O.eachBefore(Jm),O}function F(O){var z=l[O.depth],U=O.x0+z,Z=O.y0+z,Q=O.x1-z,G=O.y1-z;Q<U&&(U=Q=(U+Q)/2),G<Z&&(Z=G=(Z+G)/2),O.x0=U,O.y0=Z,O.x1=Q,O.y1=G,O.children&&(z=l[O.depth+1]=f(O)/2,U+=A(O)-z,Z+=b(O)-z,(Q-=v(O)-z)<U&&(U=Q=(U+Q)/2),(G-=T(O)-z)<Z&&(Z=G=(Z+G)/2),n(O,U,Z,Q,G))}return B.round=function(O){return arguments.length?(i=!!O,B):i},B.size=function(O){return arguments.length?(a=+O[0],s=+O[1],B):[a,s]},B.tile=function(O){return arguments.length?(n=al(O),B):n},B.padding=function(O){return arguments.length?B.paddingInner(O).paddingOuter(O):B.paddingInner()},B.paddingInner=function(O){return arguments.length?(f=typeof O=="function"?O:Yu(+O),B):f},B.paddingOuter=function(O){return arguments.length?B.paddingTop(O).paddingRight(O).paddingBottom(O).paddingLeft(O):B.paddingTop()},B.paddingTop=function(O){return arguments.length?(b=typeof O=="function"?O:Yu(+O),B):b},B.paddingRight=function(O){return arguments.length?(v=typeof O=="function"?O:Yu(+O),B):v},B.paddingBottom=function(O){return arguments.length?(T=typeof O=="function"?O:Yu(+O),B):T},B.paddingLeft=function(O){return arguments.length?(A=typeof O=="function"?O:Yu(+O),B):A},B}function u5(n,i,a,s,l){var f,b,v=n.children,T=v.length,A=new Array(T+1);for(A[0]=b=f=0;f<T;++f)A[f+1]=b+=v[f].value;(function B(F,O,z,U,Z,Q,G){if(F>=O-1){var rt=v[F];return rt.x0=U,rt.y0=Z,rt.x1=Q,void(rt.y1=G)}for(var et=A[F],ct=z/2+et,Lt=F+1,qt=O-1;Lt<qt;){var ne=Lt+qt>>>1;A[ne]<ct?Lt=ne+1:qt=ne}ct-A[Lt-1]<A[Lt]-ct&&F+1<Lt&&--Lt;var ve=A[Lt]-et,zt=z-ve;if(Q-U>G-Z){var ue=(U*zt+Q*ve)/z;B(F,Lt,ve,U,Z,ue,G),B(Lt,O,zt,ue,Z,Q,G)}else{var ut=(Z*zt+G*ve)/z;B(F,Lt,ve,U,Z,Q,ut),B(Lt,O,zt,U,ut,Q,G)}})(0,T,n.value,i,a,s,l)}function Bo(n,i,a,s,l){(1&n.depth?d0:Hh)(n,i,a,s,l)}const rv=(function n(i){function a(s,l,f,b,v){if((T=s._squarify)&&T.ratio===i)for(var T,A,B,F,O,z=-1,U=T.length,Z=s.value;++z<U;){for(B=(A=T[z]).children,F=A.value=0,O=B.length;F<O;++F)A.value+=B[F].value;A.dice?Hh(A,l,f,b,f+=(v-f)*A.value/Z):d0(A,l,f,l+=(b-l)*A.value/Z,v),Z-=A.value}else s._squarify=T=yg(i,s,l,f,b,v),T.ratio=i}return a.ratio=function(s){return n((s=+s)>1?s:1)},a})(ev);function p0(n){var i=n.length;return function(a){return n[Math.max(0,Math.min(i-1,Math.floor(a*i)))]}}function c5(n,i){var a=Ea(+n,+i);return function(s){var l=a(s);return l-360*Math.floor(l/360)}}function mg(n,i){return n=+n,i=+i,function(a){return Math.round(n*(1-a)+i*a)}}var Vs=Math.SQRT2;function iv(n){return((n=Math.exp(n))+1/n)/2}function av(n,i){var a,s,l=n[0],f=n[1],b=n[2],v=i[0],T=i[1],A=i[2],B=v-l,F=T-f,O=B*B+F*F;if(O<1e-12)s=Math.log(A/b)/Vs,a=function(rt){return[l+rt*B,f+rt*F,b*Math.exp(Vs*rt*s)]};else{var z=Math.sqrt(O),U=(A*A-b*b+4*O)/(2*b*2*z),Z=(A*A-b*b-4*O)/(2*A*2*z),Q=Math.log(Math.sqrt(U*U+1)-U),G=Math.log(Math.sqrt(Z*Z+1)-Z);s=(G-Q)/Vs,a=function(rt){var et,ct=rt*s,Lt=iv(Q),qt=b/(2*z)*(Lt*(et=Vs*ct+Q,((et=Math.exp(2*et))-1)/(et+1))-(function(ne){return((ne=Math.exp(ne))-1/ne)/2})(Q));return[l+qt*B,f+qt*F,b*Lt/iv(Vs*ct+Q)]}}return a.duration=1e3*s,a}function vg(n){return function(i,a){var s=n((i=Ec(i)).h,(a=Ec(a)).h),l=gi(i.s,a.s),f=gi(i.l,a.l),b=gi(i.opacity,a.opacity);return function(v){return i.h=s(v),i.s=l(v),i.l=f(v),i.opacity=b(v),i+""}}}const l5=vg(Ea);var g0=vg(gi);function $h(n,i){var a=gi((n=ih(n)).l,(i=ih(i)).l),s=gi(n.a,i.a),l=gi(n.b,i.b),f=gi(n.opacity,i.opacity);return function(b){return n.l=a(b),n.a=s(b),n.b=l(b),n.opacity=f(b),n+""}}function zu(n){return function(i,a){var s=n((i=i1(i)).h,(a=i1(a)).h),l=gi(i.c,a.c),f=gi(i.l,a.l),b=gi(i.opacity,a.opacity);return function(v){return i.h=s(v),i.c=l(v),i.l=f(v),i.opacity=b(v),i+""}}}const Wh=zu(Ea);var Vh=zu(gi);function Gh(n){return(function i(a){function s(l,f){var b=n((l=uo(l)).h,(f=uo(f)).h),v=gi(l.s,f.s),T=gi(l.l,f.l),A=gi(l.opacity,f.opacity);return function(B){return l.h=b(B),l.s=v(B),l.l=T(Math.pow(B,a)),l.opacity=A(B),l+""}}return a=+a,s.gamma=i,s})(1)}const Uu=Gh(Ea);var qu=Gh(gi);function Xh(n,i){for(var a=0,s=i.length-1,l=i[0],f=new Array(s<0?0:s);a<s;)f[a]=n(l,l=i[++a]);return function(b){var v=Math.max(0,Math.min(s-1,Math.floor(b*=s)));return f[v](b-v)}}function ov(n,i){for(var a=new Array(i),s=0;s<i;++s)a[s]=n(s/(i-1));return a}function bg(n){for(var i,a=-1,s=n.length,l=n[s-1],f=0;++a<s;)i=l,l=n[a],f+=i[1]*l[0]-i[0]*l[1];return f/2}function h5(n){for(var i,a,s=-1,l=n.length,f=0,b=0,v=n[l-1],T=0;++s<l;)i=v,v=n[s],T+=a=i[0]*v[1]-v[0]*i[1],f+=(i[0]+v[0])*a,b+=(i[1]+v[1])*a;return[f/(T*=3),b/T]}function y0(n,i,a){return(i[0]-n[0])*(a[1]-n[1])-(i[1]-n[1])*(a[0]-n[0])}function sv(n,i){return n[0]-i[0]||n[1]-i[1]}function _g(n){for(var i=n.length,a=[0,1],s=2,l=2;l<i;++l){for(;s>1&&y0(n[a[s-2]],n[a[s-1]],n[l])<=0;)--s;a[s++]=l}return a.slice(0,s)}function f5(n){if((a=n.length)<3)return null;var i,a,s=new Array(a),l=new Array(a);for(i=0;i<a;++i)s[i]=[+n[i][0],+n[i][1],i];for(s.sort(sv),i=0;i<a;++i)l[i]=[s[i][0],-s[i][1]];var f=_g(s),b=_g(l),v=b[0]===f[0],T=b[b.length-1]===f[f.length-1],A=[];for(i=f.length-1;i>=0;--i)A.push(n[s[f[i]][2]]);for(i=+v;i<b.length-T;++i)A.push(n[s[b[i]][2]]);return A}function xg(n,i){for(var a,s,l=n.length,f=n[l-1],b=i[0],v=i[1],T=f[0],A=f[1],B=!1,F=0;F<l;++F)a=(f=n[F])[0],(s=f[1])>v!=A>v&&b<(T-a)*(v-s)/(A-s)+a&&(B=!B),T=a,A=s;return B}function uv(n){for(var i,a,s=-1,l=n.length,f=n[l-1],b=f[0],v=f[1],T=0;++s<l;)i=b,a=v,i-=b=(f=n[s])[0],a-=v=f[1],T+=Math.sqrt(i*i+a*a);return T}function ol(){return Math.random()}const d5=(function n(i){function a(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 a.source=n,a})(ol),Zh=(function n(i){function a(s,l){var f,b;return s=s==null?0:+s,l=l==null?1:+l,function(){var v;if(f!=null)v=f,f=null;else do f=2*i()-1,v=2*i()-1,b=f*f+v*v;while(!b||b>1);return s+l*v*Math.sqrt(-2*Math.log(b)/b)}}return a.source=n,a})(ol),wg=(function n(i){function a(){var s=Zh.source(i).apply(this,arguments);return function(){return Math.exp(s())}}return a.source=n,a})(ol),Lo=(function n(i){function a(s){return function(){for(var l=0,f=0;f<s;++f)l+=i();return l}}return a.source=n,a})(ol),Io=(function n(i){function a(s){var l=Lo.source(i)(s);return function(){return l()/s}}return a.source=n,a})(ol),Gs=(function n(i){function a(s){return function(){return-Math.log(1-i())/s}}return a.source=n,a})(ol);function Da(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function es(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var m0=Array.prototype,Qh=m0.map,Xs=m0.slice,kg={name:"implicit"};function Tg(){var n=fs(),i=[],a=[],s=kg;function l(f){var b=f+"",v=n.get(b);if(!v){if(s!==kg)return s;n.set(b,v=i.push(f))}return a[(v-1)%a.length]}return l.domain=function(f){if(!arguments.length)return i.slice();i=[],n=fs();for(var b,v,T=-1,A=f.length;++T<A;)n.has(v=(b=f[T])+"")||n.set(v,i.push(b));return l},l.range=function(f){return arguments.length?(a=Xs.call(f),l):a.slice()},l.unknown=function(f){return arguments.length?(s=f,l):s},l.copy=function(){return Tg(i,a).unknown(s)},Da.apply(l,arguments),l}function Eg(){var n,i,a=Tg().unknown(void 0),s=a.domain,l=a.range,f=[0,1],b=!1,v=0,T=0,A=.5;function B(){var F=s().length,O=f[1]<f[0],z=f[O-0],U=f[1-O];n=(U-z)/Math.max(1,F-v+2*T),b&&(n=Math.floor(n)),z+=(U-z-n*(F-v))*A,i=n*(1-v),b&&(z=Math.round(z),i=Math.round(i));var Z=st(F).map((function(Q){return z+n*Q}));return l(O?Z.reverse():Z)}return delete a.unknown,a.domain=function(F){return arguments.length?(s(F),B()):s()},a.range=function(F){return arguments.length?(f=[+F[0],+F[1]],B()):f.slice()},a.rangeRound=function(F){return f=[+F[0],+F[1]],b=!0,B()},a.bandwidth=function(){return i},a.step=function(){return n},a.round=function(F){return arguments.length?(b=!!F,B()):b},a.padding=function(F){return arguments.length?(v=Math.min(1,T=+F),B()):v},a.paddingInner=function(F){return arguments.length?(v=Math.min(1,F),B()):v},a.paddingOuter=function(F){return arguments.length?(T=+F,B()):T},a.align=function(F){return arguments.length?(A=Math.max(0,Math.min(1,F)),B()):A},a.copy=function(){return Eg(s(),f).round(b).paddingInner(v).paddingOuter(T).align(A)},Da.apply(B(),arguments)}function cv(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return cv(i())},n}function Cg(){return cv(Eg.apply(null,arguments).paddingInner(1))}function Kh(n){return+n}var Sg=[0,1];function yi(n){return n}function sl(n,i){return(i-=n=+n)?function(s){return(s-n)/i}:(a=isNaN(i)?NaN:.5,function(){return a});var a}function Jh(n){var i,a=n[0],s=n[n.length-1];return a>s&&(i=a,a=s,s=i),function(l){return Math.max(a,Math.min(s,l))}}function ul(n,i,a){var s=n[0],l=n[1],f=i[0],b=i[1];return l<s?(s=sl(l,s),f=a(b,f)):(s=sl(s,l),f=a(f,b)),function(v){return f(s(v))}}function tf(n,i,a){var s=Math.min(n.length,i.length)-1,l=new Array(s),f=new Array(s),b=-1;for(n[s]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++b<s;)l[b]=sl(n[b],n[b+1]),f[b]=a(i[b],i[b+1]);return function(v){var T=S(n,v,1,s)-1;return f[T](l[T](v))}}function Oa(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function v0(){var n,i,a,s,l,f,b=Sg,v=Sg,T=gu,A=yi;function B(){return s=Math.min(b.length,v.length)>2?tf:ul,l=f=null,F}function F(O){return isNaN(O=+O)?a:(l||(l=s(b.map(n),v,T)))(n(A(O)))}return F.invert=function(O){return A(i((f||(f=s(v,b.map(n),pa)))(O)))},F.domain=function(O){return arguments.length?(b=Qh.call(O,Kh),A===yi||(A=Jh(b)),B()):b.slice()},F.range=function(O){return arguments.length?(v=Xs.call(O),B()):v.slice()},F.rangeRound=function(O){return v=Xs.call(O),T=mg,B()},F.clamp=function(O){return arguments.length?(A=O?Jh(b):yi,F):A!==yi},F.interpolate=function(O){return arguments.length?(T=O,B()):T},F.unknown=function(O){return arguments.length?(a=O,F):a},function(O,z){return n=O,i=z,B()}}function lv(n,i){return v0()(n,i)}function hv(n,i,a,s){var l,f=vt(n,i,a);switch((s=uh(s??",f")).type){case"s":var b=Math.max(Math.abs(n),Math.abs(i));return s.precision!=null||isNaN(l=sm(f,b))||(s.precision=l),p1(s,b);case"":case"e":case"g":case"p":case"r":s.precision!=null||isNaN(l=um(f,Math.max(Math.abs(n),Math.abs(i))))||(s.precision=l-(s.type==="e"));break;case"f":case"%":s.precision!=null||isNaN(l=om(f))||(s.precision=l-2*(s.type==="%"))}return Yc(s)}function Hu(n){var i=n.domain;return n.ticks=function(a){var s=i();return Rt(s[0],s[s.length-1],a??10)},n.tickFormat=function(a,s){var l=i();return hv(l[0],l[l.length-1],a??10,s)},n.nice=function(a){a==null&&(a=10);var s,l=i(),f=0,b=l.length-1,v=l[f],T=l[b];return T<v&&(s=v,v=T,T=s,s=f,f=b,b=s),(s=ft(v,T,a))>0?s=ft(v=Math.floor(v/s)*s,T=Math.ceil(T/s)*s,a):s<0&&(s=ft(v=Math.ceil(v*s)/s,T=Math.floor(T*s)/s,a)),s>0?(l[f]=Math.floor(v/s)*s,l[b]=Math.ceil(T/s)*s,i(l)):s<0&&(l[f]=Math.ceil(v*s)/s,l[b]=Math.floor(T*s)/s,i(l)),n},n}function fv(){var n=lv(yi,yi);return n.copy=function(){return Oa(n,fv())},Da.apply(n,arguments),Hu(n)}function dv(n){var i;function a(s){return isNaN(s=+s)?i:s}return a.invert=a,a.domain=a.range=function(s){return arguments.length?(n=Qh.call(s,Kh),a):n.slice()},a.unknown=function(s){return arguments.length?(i=s,a):i},a.copy=function(){return dv(n).unknown(i)},n=arguments.length?Qh.call(n,Kh):[0,1],Hu(a)}function pv(n,i){var a,s=0,l=(n=n.slice()).length-1,f=n[s],b=n[l];return b<f&&(a=s,s=l,l=a,a=f,f=b,b=a),n[s]=i.floor(f),n[l]=i.ceil(b),n}function Ag(n){return Math.log(n)}function Mg(n){return Math.exp(n)}function gv(n){return-Math.log(-n)}function ef(n){return-Math.exp(-n)}function yv(n){return isFinite(n)?+("1e"+n):n<0?0:n}function nf(n){return function(i){return-n(-i)}}function Ng(n){var i,a,s=n(Ag,Mg),l=s.domain,f=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})})(f),a=(function(v){return v===10?yv:v===Math.E?Math.exp:function(T){return Math.pow(v,T)}})(f),l()[0]<0?(i=nf(i),a=nf(a),n(gv,ef)):n(Ag,Mg),s}return s.base=function(v){return arguments.length?(f=+v,b()):f},s.domain=function(v){return arguments.length?(l(v),b()):l()},s.ticks=function(v){var T,A=l(),B=A[0],F=A[A.length-1];(T=F<B)&&(Z=B,B=F,F=Z);var O,z,U,Z=i(B),Q=i(F),G=v==null?10:+v,rt=[];if(!(f%1)&&Q-Z<G){if(Z=Math.round(Z)-1,Q=Math.round(Q)+1,B>0){for(;Z<Q;++Z)for(z=1,O=a(Z);z<f;++z)if(!((U=O*z)<B)){if(U>F)break;rt.push(U)}}else for(;Z<Q;++Z)for(z=f-1,O=a(Z);z>=1;--z)if(!((U=O*z)<B)){if(U>F)break;rt.push(U)}}else rt=Rt(Z,Q,Math.min(Q-Z,G)).map(a);return T?rt.reverse():rt},s.tickFormat=function(v,T){if(T==null&&(T=f===10?".0e":","),typeof T!="function"&&(T=Yc(T)),v===1/0)return T;v==null&&(v=10);var A=Math.max(1,f*v/s.ticks().length);return function(B){var F=B/a(Math.round(i(B)));return F*f<f-.5&&(F*=f),F<=A?T(B):""}},s.nice=function(){return l(pv(l(),{floor:function(v){return a(Math.floor(i(v)))},ceil:function(v){return a(Math.ceil(i(v)))}}))},s}function b0(){var n=Ng(v0()).domain([1,10]);return n.copy=function(){return Oa(n,b0()).base(n.base())},Da.apply(n,arguments),n}function Ba(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function Dg(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function _0(n){var i=1,a=n(Ba(i),Dg(i));return a.constant=function(s){return arguments.length?n(Ba(i=+s),Dg(i)):i},Hu(a)}function x0(){var n=_0(v0());return n.copy=function(){return Oa(n,x0()).constant(n.constant())},Da.apply(n,arguments)}function Og(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function mv(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function ns(n){return n<0?-n*n:n*n}function rf(n){var i=n(yi,yi),a=1;function s(){return a===1?n(yi,yi):a===.5?n(mv,ns):n(Og(a),Og(1/a))}return i.exponent=function(l){return arguments.length?(a=+l,s()):a},Hu(i)}function w0(){var n=rf(v0());return n.copy=function(){return Oa(n,w0()).exponent(n.exponent())},Da.apply(n,arguments),n}function vv(){return w0.apply(null,arguments).exponent(.5)}function Bg(){var n,i=[],a=[],s=[];function l(){var b=0,v=Math.max(1,a.length);for(s=new Array(v-1);++b<v;)s[b-1]=ye(i,b/v);return f}function f(b){return isNaN(b=+b)?n:a[S(s,b)]}return f.invertExtent=function(b){var v=a.indexOf(b);return v<0?[NaN,NaN]:[v>0?s[v-1]:i[0],v<s.length?s[v]:i[i.length-1]]},f.domain=function(b){if(!arguments.length)return i.slice();i=[];for(var v,T=0,A=b.length;T<A;++T)(v=b[T])==null||isNaN(v=+v)||i.push(v);return i.sort(d),l()},f.range=function(b){return arguments.length?(a=Xs.call(b),l()):a.slice()},f.unknown=function(b){return arguments.length?(n=b,f):n},f.quantiles=function(){return s.slice()},f.copy=function(){return Bg().domain(i).range(a).unknown(n)},Da.apply(f,arguments)}function k0(){var n,i=0,a=1,s=1,l=[.5],f=[0,1];function b(T){return T<=T?f[S(l,T,0,s)]:n}function v(){var T=-1;for(l=new Array(s);++T<s;)l[T]=((T+1)*a-(T-s)*i)/(s+1);return b}return b.domain=function(T){return arguments.length?(i=+T[0],a=+T[1],v()):[i,a]},b.range=function(T){return arguments.length?(s=(f=Xs.call(T)).length-1,v()):f.slice()},b.invertExtent=function(T){var A=f.indexOf(T);return A<0?[NaN,NaN]:A<1?[i,l[0]]:A>=s?[l[s-1],a]:[l[A-1],l[A]]},b.unknown=function(T){return arguments.length&&(n=T),b},b.thresholds=function(){return l.slice()},b.copy=function(){return k0().domain([i,a]).range(f).unknown(n)},Da.apply(Hu(b),arguments)}function T0(){var n,i=[.5],a=[0,1],s=1;function l(f){return f<=f?a[S(i,f,0,s)]:n}return l.domain=function(f){return arguments.length?(i=Xs.call(f),s=Math.min(i.length,a.length-1),l):i.slice()},l.range=function(f){return arguments.length?(a=Xs.call(f),s=Math.min(i.length,a.length-1),l):a.slice()},l.invertExtent=function(f){var b=a.indexOf(f);return[i[b-1],i[b]]},l.unknown=function(f){return arguments.length?(n=f,l):n},l.copy=function(){return T0().domain(i).range(a).unknown(n)},Da.apply(l,arguments)}var Lg=new Date,E0=new Date;function Mi(n,i,a,s){function l(f){return n(f=arguments.length===0?new Date:new Date(+f)),f}return l.floor=function(f){return n(f=new Date(+f)),f},l.ceil=function(f){return n(f=new Date(f-1)),i(f,1),n(f),f},l.round=function(f){var b=l(f),v=l.ceil(f);return f-b<v-f?b:v},l.offset=function(f,b){return i(f=new Date(+f),b==null?1:Math.floor(b)),f},l.range=function(f,b,v){var T,A=[];if(f=l.ceil(f),v=v==null?1:Math.floor(v),!(f<b&&v>0))return A;do A.push(T=new Date(+f)),i(f,v),n(f);while(T<f&&f<b);return A},l.filter=function(f){return Mi((function(b){if(b>=b)for(;n(b),!f(b);)b.setTime(b-1)}),(function(b,v){if(b>=b)if(v<0)for(;++v<=0;)for(;i(b,-1),!f(b););else for(;--v>=0;)for(;i(b,1),!f(b););}))},a&&(l.count=function(f,b){return Lg.setTime(+f),E0.setTime(+b),n(Lg),n(E0),Math.floor(a(Lg,E0))},l.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?l.filter(s?function(b){return s(b)%f==0}:function(b){return l.count(0,b)%f==0}):l:null}),l}var Ig=Mi((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()}));Ig.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Mi((function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)}),(function(i,a){i.setFullYear(i.getFullYear()+a*n)})):null};const $u=Ig;var p5=Ig.range,bv=Mi((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 _v=bv;var g5=bv.range,C0=1e3,Wu=6e4,S0=36e5,xv=864e5,wv=6048e5;function Vu(n){return Mi((function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)}),(function(i,a){i.setDate(i.getDate()+7*a)}),(function(i,a){return(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*Wu)/wv}))}var af=Vu(0),of=Vu(1),kv=Vu(2),Tv=Vu(3),Zs=Vu(4),Ev=Vu(5),Cv=Vu(6),Sv=af.range,y5=of.range,m5=kv.range,_s=Tv.range,Av=Zs.range,xs=Ev.range,v5=Cv.range,Mv=Mi((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())*Wu)/xv}),(function(n){return n.getDate()-1}));const Qs=Mv;var Nv=Mv.range,Rg=Mi((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*C0-n.getMinutes()*Wu)}),(function(n,i){n.setTime(+n+i*S0)}),(function(n,i){return(i-n)/S0}),(function(n){return n.getHours()}));const Fg=Rg;var b5=Rg.range,A0=Mi((function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*C0)}),(function(n,i){n.setTime(+n+i*Wu)}),(function(n,i){return(i-n)/Wu}),(function(n){return n.getMinutes()}));const Pg=A0;var jg=A0.range,Dv=Mi((function(n){n.setTime(n-n.getMilliseconds())}),(function(n,i){n.setTime(+n+i*C0)}),(function(n,i){return(i-n)/C0}),(function(n){return n.getUTCSeconds()}));const cl=Dv;var ll=Dv.range,Ro=Mi((function(){}),(function(n,i){n.setTime(+n+i)}),(function(n,i){return i-n}));Ro.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Mi((function(i){i.setTime(Math.floor(i/n)*n)}),(function(i,a){i.setTime(+i+a*n)}),(function(i,a){return(a-i)/n})):Ro:null};const sf=Ro;var uf=Ro.range;function ws(n){return Mi((function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)}),(function(i,a){i.setUTCDate(i.getUTCDate()+7*a)}),(function(i,a){return(a-i)/wv}))}var cf=ws(0),Ks=ws(1),Gu=ws(2),Yg=ws(3),Ui=ws(4),mi=ws(5),Xu=ws(6),M0=cf.range,_5=Ks.range,Fo=Gu.range,Zu=Yg.range,N0=Ui.range,D0=mi.range,zg=Xu.range,O0=Mi((function(n){n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCDate(n.getUTCDate()+i)}),(function(n,i){return(i-n)/xv}),(function(n){return n.getUTCDate()-1}));const B0=O0;var x5=O0.range,lf=Mi((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()}));lf.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Mi((function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)}),(function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a*n)})):null};const Qu=lf;var w5=lf.range;function Ug(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 hl(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 fl(n,i,a){return{y:n,m:i,d:a,H:0,M:0,S:0,L:0}}function Ov(n){var i=n.dateTime,a=n.date,s=n.time,l=n.periods,f=n.days,b=n.shortDays,v=n.months,T=n.shortMonths,A=vi(l),B=rr(l),F=vi(f),O=rr(f),z=vi(b),U=rr(b),Z=vi(v),Q=rr(v),G=vi(T),rt=rr(T),et={a:function(zt){return b[zt.getDay()]},A:function(zt){return f[zt.getDay()]},b:function(zt){return T[zt.getMonth()]},B:function(zt){return v[zt.getMonth()]},c:null,d:P0,e:P0,f:O5,g:zv,G:Y0,H:pl,I:N5,j:D5,L:Fv,m:Pv,M:yo,p:function(zt){return l[+(zt.getHours()>=12)]},q:function(zt){return 1+~~(zt.getMonth()/3)},Q:df,s:pf,S:jv,u:Yv,U:Qg,V:B5,w:j0,W:L5,x:null,X:null,y:I5,Y:Uv,Z:Po,"%":gl},ct={a:function(zt){return b[zt.getUTCDay()]},A:function(zt){return f[zt.getUTCDay()]},b:function(zt){return T[zt.getUTCMonth()]},B:function(zt){return v[zt.getUTCMonth()]},c:null,d:ec,e:ec,f:qi,g:e2,G:ff,H:Js,I:qv,j:Hv,L:Kg,m:R5,M:F5,p:function(zt){return l[+(zt.getUTCHours()>=12)]},q:function(zt){return 1+~~(zt.getUTCMonth()/3)},Q:df,s:pf,S:P5,u:z0,U:Jg,V:Ka,w:U0,W:$v,x:null,X:null,y:Vn,Y:Wv,Z:Hi,"%":gl},Lt={a:function(zt,ue,ut){var xt=z.exec(ue.slice(ut));return xt?(zt.w=U[xt[0].toLowerCase()],ut+xt[0].length):-1},A:function(zt,ue,ut){var xt=F.exec(ue.slice(ut));return xt?(zt.w=O[xt[0].toLowerCase()],ut+xt[0].length):-1},b:function(zt,ue,ut){var xt=G.exec(ue.slice(ut));return xt?(zt.m=rt[xt[0].toLowerCase()],ut+xt[0].length):-1},B:function(zt,ue,ut){var xt=Z.exec(ue.slice(ut));return xt?(zt.m=Q[xt[0].toLowerCase()],ut+xt[0].length):-1},c:function(zt,ue,ut){return ve(zt,i,ue,ut)},d:Iv,e:Iv,f:M5,g:Lv,G:F0,H:Rv,I:Rv,j:Vg,L:A5,m:C5,M:S5,p:function(zt,ue,ut){var xt=A.exec(ue.slice(ut));return xt?(zt.p=B[xt[0].toLowerCase()],ut+xt[0].length):-1},q:Wg,Q:Xg,s:Zg,S:Gg,u:sa,U:$g,V:k5,w:ke,W:T5,x:function(zt,ue,ut){return ve(zt,a,ue,ut)},X:function(zt,ue,ut){return ve(zt,s,ue,ut)},y:Lv,Y:F0,Z:E5,"%":dl};function qt(zt,ue){return function(ut){var xt,ae,Jt,Kt=[],Le=-1,Ie=0,vn=zt.length;for(ut instanceof Date||(ut=new Date(+ut));++Le<vn;)zt.charCodeAt(Le)===37&&(Kt.push(zt.slice(Ie,Le)),(ae=Hg[xt=zt.charAt(++Le)])!=null?xt=zt.charAt(++Le):ae=xt==="e"?" ":"0",(Jt=ue[xt])&&(xt=Jt(ut,ae)),Kt.push(xt),Ie=Le+1);return Kt.push(zt.slice(Ie,Le)),Kt.join("")}}function ne(zt,ue){return function(ut){var xt,ae,Jt=fl(1900,void 0,1);if(ve(Jt,zt,ut+="",0)!=ut.length)return null;if("Q"in Jt)return new Date(Jt.Q);if("s"in Jt)return new Date(1e3*Jt.s+("L"in Jt?Jt.L:0));if(ue&&!("Z"in Jt)&&(Jt.Z=0),"p"in Jt&&(Jt.H=Jt.H%12+12*Jt.p),Jt.m===void 0&&(Jt.m="q"in Jt?Jt.q:0),"V"in Jt){if(Jt.V<1||Jt.V>53)return null;"w"in Jt||(Jt.w=1),"Z"in Jt?(ae=(xt=hl(fl(Jt.y,0,1))).getUTCDay(),xt=ae>4||ae===0?Ks.ceil(xt):Ks(xt),xt=B0.offset(xt,7*(Jt.V-1)),Jt.y=xt.getUTCFullYear(),Jt.m=xt.getUTCMonth(),Jt.d=xt.getUTCDate()+(Jt.w+6)%7):(ae=(xt=Ug(fl(Jt.y,0,1))).getDay(),xt=ae>4||ae===0?of.ceil(xt):of(xt),xt=Qs.offset(xt,7*(Jt.V-1)),Jt.y=xt.getFullYear(),Jt.m=xt.getMonth(),Jt.d=xt.getDate()+(Jt.w+6)%7)}else("W"in Jt||"U"in Jt)&&("w"in Jt||(Jt.w="u"in Jt?Jt.u%7:"W"in Jt?1:0),ae="Z"in Jt?hl(fl(Jt.y,0,1)).getUTCDay():Ug(fl(Jt.y,0,1)).getDay(),Jt.m=0,Jt.d="W"in Jt?(Jt.w+6)%7+7*Jt.W-(ae+5)%7:Jt.w+7*Jt.U-(ae+6)%7);return"Z"in Jt?(Jt.H+=Jt.Z/100|0,Jt.M+=Jt.Z%100,hl(Jt)):Ug(Jt)}}function ve(zt,ue,ut,xt){for(var ae,Jt,Kt=0,Le=ue.length,Ie=ut.length;Kt<Le;){if(xt>=Ie)return-1;if((ae=ue.charCodeAt(Kt++))===37){if(ae=ue.charAt(Kt++),!(Jt=Lt[ae in Hg?ue.charAt(Kt++):ae])||(xt=Jt(zt,ut,xt))<0)return-1}else if(ae!=ut.charCodeAt(xt++))return-1}return xt}return et.x=qt(a,et),et.X=qt(s,et),et.c=qt(i,et),ct.x=qt(a,ct),ct.X=qt(s,ct),ct.c=qt(i,ct),{format:function(zt){var ue=qt(zt+="",et);return ue.toString=function(){return zt},ue},parse:function(zt){var ue=ne(zt+="",!1);return ue.toString=function(){return zt},ue},utcFormat:function(zt){var ue=qt(zt+="",ct);return ue.toString=function(){return zt},ue},utcParse:function(zt){var ue=ne(zt+="",!0);return ue.toString=function(){return zt},ue}}}var Ku,L0,Ju,I0,qg,Hg={"-":"",_:" ",0:"0"},Ni=/^\s*\d+/,tc=/^%/,R0=/[\\^$*+?|[\]().{}]/g;function wr(n,i,a){var s=n<0?"-":"",l=(s?-n:n)+"",f=l.length;return s+(f<a?new Array(a-f+1).join(i)+l:l)}function Bv(n){return n.replace(R0,"\\$&")}function vi(n){return new RegExp("^(?:"+n.map(Bv).join("|")+")","i")}function rr(n){for(var i={},a=-1,s=n.length;++a<s;)i[n[a].toLowerCase()]=a;return i}function ke(n,i,a){var s=Ni.exec(i.slice(a,a+1));return s?(n.w=+s[0],a+s[0].length):-1}function sa(n,i,a){var s=Ni.exec(i.slice(a,a+1));return s?(n.u=+s[0],a+s[0].length):-1}function $g(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.U=+s[0],a+s[0].length):-1}function k5(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.V=+s[0],a+s[0].length):-1}function T5(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.W=+s[0],a+s[0].length):-1}function F0(n,i,a){var s=Ni.exec(i.slice(a,a+4));return s?(n.y=+s[0],a+s[0].length):-1}function Lv(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.y=+s[0]+(+s[0]>68?1900:2e3),a+s[0].length):-1}function E5(n,i,a){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(a,a+6));return s?(n.Z=s[1]?0:-(s[2]+(s[3]||"00")),a+s[0].length):-1}function Wg(n,i,a){var s=Ni.exec(i.slice(a,a+1));return s?(n.q=3*s[0]-3,a+s[0].length):-1}function C5(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.m=s[0]-1,a+s[0].length):-1}function Iv(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.d=+s[0],a+s[0].length):-1}function Vg(n,i,a){var s=Ni.exec(i.slice(a,a+3));return s?(n.m=0,n.d=+s[0],a+s[0].length):-1}function Rv(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.H=+s[0],a+s[0].length):-1}function S5(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.M=+s[0],a+s[0].length):-1}function Gg(n,i,a){var s=Ni.exec(i.slice(a,a+2));return s?(n.S=+s[0],a+s[0].length):-1}function A5(n,i,a){var s=Ni.exec(i.slice(a,a+3));return s?(n.L=+s[0],a+s[0].length):-1}function M5(n,i,a){var s=Ni.exec(i.slice(a,a+6));return s?(n.L=Math.floor(s[0]/1e3),a+s[0].length):-1}function dl(n,i,a){var s=tc.exec(i.slice(a,a+1));return s?a+s[0].length:-1}function Xg(n,i,a){var s=Ni.exec(i.slice(a));return s?(n.Q=+s[0],a+s[0].length):-1}function Zg(n,i,a){var s=Ni.exec(i.slice(a));return s?(n.s=+s[0],a+s[0].length):-1}function P0(n,i){return wr(n.getDate(),i,2)}function pl(n,i){return wr(n.getHours(),i,2)}function N5(n,i){return wr(n.getHours()%12||12,i,2)}function D5(n,i){return wr(1+Qs.count($u(n),n),i,3)}function Fv(n,i){return wr(n.getMilliseconds(),i,3)}function O5(n,i){return Fv(n,i)+"000"}function Pv(n,i){return wr(n.getMonth()+1,i,2)}function yo(n,i){return wr(n.getMinutes(),i,2)}function jv(n,i){return wr(n.getSeconds(),i,2)}function Yv(n){var i=n.getDay();return i===0?7:i}function Qg(n,i){return wr(af.count($u(n)-1,n),i,2)}function hf(n){var i=n.getDay();return i>=4||i===0?Zs(n):Zs.ceil(n)}function B5(n,i){return n=hf(n),wr(Zs.count($u(n),n)+($u(n).getDay()===4),i,2)}function j0(n){return n.getDay()}function L5(n,i){return wr(of.count($u(n)-1,n),i,2)}function I5(n,i){return wr(n.getFullYear()%100,i,2)}function zv(n,i){return wr((n=hf(n)).getFullYear()%100,i,2)}function Uv(n,i){return wr(n.getFullYear()%1e4,i,4)}function Y0(n,i){var a=n.getDay();return wr((n=a>=4||a===0?Zs(n):Zs.ceil(n)).getFullYear()%1e4,i,4)}function Po(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+wr(i/60|0,"0",2)+wr(i%60,"0",2)}function ec(n,i){return wr(n.getUTCDate(),i,2)}function Js(n,i){return wr(n.getUTCHours(),i,2)}function qv(n,i){return wr(n.getUTCHours()%12||12,i,2)}function Hv(n,i){return wr(1+B0.count(Qu(n),n),i,3)}function Kg(n,i){return wr(n.getUTCMilliseconds(),i,3)}function qi(n,i){return Kg(n,i)+"000"}function R5(n,i){return wr(n.getUTCMonth()+1,i,2)}function F5(n,i){return wr(n.getUTCMinutes(),i,2)}function P5(n,i){return wr(n.getUTCSeconds(),i,2)}function z0(n){var i=n.getUTCDay();return i===0?7:i}function Jg(n,i){return wr(cf.count(Qu(n)-1,n),i,2)}function t2(n){var i=n.getUTCDay();return i>=4||i===0?Ui(n):Ui.ceil(n)}function Ka(n,i){return n=t2(n),wr(Ui.count(Qu(n),n)+(Qu(n).getUTCDay()===4),i,2)}function U0(n){return n.getUTCDay()}function $v(n,i){return wr(Ks.count(Qu(n)-1,n),i,2)}function Vn(n,i){return wr(n.getUTCFullYear()%100,i,2)}function e2(n,i){return wr((n=t2(n)).getUTCFullYear()%100,i,2)}function Wv(n,i){return wr(n.getUTCFullYear()%1e4,i,4)}function ff(n,i){var a=n.getUTCDay();return wr((n=a>=4||a===0?Ui(n):Ui.ceil(n)).getUTCFullYear()%1e4,i,4)}function Hi(){return"+0000"}function gl(){return"%"}function df(n){return+n}function pf(n){return Math.floor(+n/1e3)}function n2(n){return Ku=Ov(n),L0=Ku.format,Ju=Ku.parse,I0=Ku.utcFormat,qg=Ku.utcParse,Ku}n2({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 Qt=31536e6;function j5(n){return new Date(n)}function Vv(n){return n instanceof Date?+n:+new Date(+n)}function yl(n,i,a,s,l,f,b,v,T){var A=lv(yi,yi),B=A.invert,F=A.domain,O=T(".%L"),z=T(":%S"),U=T("%I:%M"),Z=T("%I %p"),Q=T("%a %d"),G=T("%b %d"),rt=T("%B"),et=T("%Y"),ct=[[b,1,1e3],[b,5,5e3],[b,15,15e3],[b,30,3e4],[f,1,6e4],[f,5,3e5],[f,15,9e5],[f,30,18e5],[l,1,36e5],[l,3,108e5],[l,6,216e5],[l,12,432e5],[s,1,864e5],[s,2,1728e5],[a,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,Qt]];function Lt(ne){return(b(ne)<ne?O:f(ne)<ne?z:l(ne)<ne?U:s(ne)<ne?Z:i(ne)<ne?a(ne)<ne?Q:G:n(ne)<ne?rt:et)(ne)}function qt(ne,ve,zt,ue){if(ne==null&&(ne=10),typeof ne=="number"){var ut=Math.abs(zt-ve)/ne,xt=x((function(ae){return ae[2]})).right(ct,ut);xt===ct.length?(ue=vt(ve/Qt,zt/Qt,ne),ne=n):xt?(ue=(xt=ct[ut/ct[xt-1][2]<ct[xt][2]/ut?xt-1:xt])[1],ne=xt[0]):(ue=Math.max(vt(ve,zt,ne),1),ne=v)}return ue==null?ne:ne.every(ue)}return A.invert=function(ne){return new Date(B(ne))},A.domain=function(ne){return arguments.length?F(Qh.call(ne,Vv)):F().map(j5)},A.ticks=function(ne,ve){var zt,ue=F(),ut=ue[0],xt=ue[ue.length-1],ae=xt<ut;return ae&&(zt=ut,ut=xt,xt=zt),zt=(zt=qt(ne,ut,xt,ve))?zt.range(ut,xt+1):[],ae?zt.reverse():zt},A.tickFormat=function(ne,ve){return ve==null?Lt:T(ve)},A.nice=function(ne,ve){var zt=F();return(ne=qt(ne,zt[0],zt[zt.length-1],ve))?F(pv(zt,ne)):A},A.copy=function(){return Oa(A,yl(n,i,a,s,l,f,b,v,T))},A}function r2(){return Da.apply(yl($u,_v,af,Qs,Fg,Pg,cl,sf,L0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var q0=Mi((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 H0=q0;var Di=q0.range,i2=Mi((function(n){n.setUTCMinutes(0,0,0)}),(function(n,i){n.setTime(+n+i*S0)}),(function(n,i){return(i-n)/S0}),(function(n){return n.getUTCHours()}));const gf=i2;var yf=i2.range,ml=Mi((function(n){n.setUTCSeconds(0,0)}),(function(n,i){n.setTime(+n+i*Wu)}),(function(n,i){return(i-n)/Wu}),(function(n){return n.getUTCMinutes()}));const $0=ml;var W0=ml.range;function Gv(){return Da.apply(yl(Qu,H0,cf,B0,gf,$0,cl,sf,I0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vl(){var n,i,a,s,l,f=0,b=1,v=yi,T=!1;function A(B){return isNaN(B=+B)?l:v(a===0?.5:(B=(s(B)-n)*a,T?Math.max(0,Math.min(1,B)):B))}return A.domain=function(B){return arguments.length?(n=s(f=+B[0]),i=s(b=+B[1]),a=n===i?0:1/(i-n),A):[f,b]},A.clamp=function(B){return arguments.length?(T=!!B,A):T},A.interpolator=function(B){return arguments.length?(v=B,A):v},A.unknown=function(B){return arguments.length?(l=B,A):l},function(B){return s=B,n=B(f),i=B(b),a=n===i?0:1/(i-n),A}}function tu(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function bl(){var n=Hu(vl()(yi));return n.copy=function(){return tu(n,bl())},es.apply(n,arguments)}function a2(){var n=Ng(vl()).domain([1,10]);return n.copy=function(){return tu(n,a2()).base(n.base())},es.apply(n,arguments)}function o2(){var n=_0(vl());return n.copy=function(){return tu(n,o2()).constant(n.constant())},es.apply(n,arguments)}function mo(){var n=rf(vl());return n.copy=function(){return tu(n,mo()).exponent(n.exponent())},es.apply(n,arguments)}function Y5(){return mo.apply(null,arguments).exponent(.5)}function _l(){var n=[],i=yi;function a(s){if(!isNaN(s=+s))return i((S(n,s)-1)/(n.length-1))}return a.domain=function(s){if(!arguments.length)return n.slice();n=[];for(var l,f=0,b=s.length;f<b;++f)(l=s[f])==null||isNaN(l=+l)||n.push(l);return n.sort(d),a},a.interpolator=function(s){return arguments.length?(i=s,a):i},a.copy=function(){return _l(i).domain(n)},es.apply(a,arguments)}function V0(){var n,i,a,s,l,f,b,v=0,T=.5,A=1,B=yi,F=!1;function O(z){return isNaN(z=+z)?b:(z=.5+((z=+f(z))-i)*(z<i?s:l),B(F?Math.max(0,Math.min(1,z)):z))}return O.domain=function(z){return arguments.length?(n=f(v=+z[0]),i=f(T=+z[1]),a=f(A=+z[2]),s=n===i?0:.5/(i-n),l=i===a?0:.5/(a-i),O):[v,T,A]},O.clamp=function(z){return arguments.length?(F=!!z,O):F},O.interpolator=function(z){return arguments.length?(B=z,O):B},O.unknown=function(z){return arguments.length?(b=z,O):b},function(z){return f=z,n=z(v),i=z(T),a=z(A),s=n===i?0:.5/(i-n),l=i===a?0:.5/(a-i),O}}function _i(){var n=Hu(V0()(yi));return n.copy=function(){return tu(n,_i())},es.apply(n,arguments)}function nc(){var n=Ng(V0()).domain([.1,1,10]);return n.copy=function(){return tu(n,nc()).base(n.base())},es.apply(n,arguments)}function Xv(){var n=_0(V0());return n.copy=function(){return tu(n,Xv()).constant(n.constant())},es.apply(n,arguments)}function G0(){var n=rf(V0());return n.copy=function(){return tu(n,G0()).exponent(n.exponent())},es.apply(n,arguments)}function s2(){return G0.apply(null,arguments).exponent(.5)}function Gn(n){for(var i=n.length/6|0,a=new Array(i),s=0;s<i;)a[s]="#"+n.slice(6*s,6*++s);return a}const z5=Gn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),U5=Gn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Zv=Gn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),xl=Gn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),u2=Gn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),q5=Gn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),c2=Gn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),X0=Gn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Z0=Gn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Qv=Gn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Yr(n){return Sc(n[n.length-1])}var Kv=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Gn);const H5=Yr(Kv);var Q0=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Gn);const La=Yr(Q0);var _a=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Gn);const Oi=Yr(_a);var rs=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Gn);const vr=Yr(rs);var vo=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Gn);const Jv=Yr(vo);var mf=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Gn);const $5=Yr(mf);var t3=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Gn);const K0=Yr(t3);var l2=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Gn);const W5=Yr(l2);var e3=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Gn);const V5=Yr(e3);var n3=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Gn);const G5=Yr(n3);var r3=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Gn);const i3=Yr(r3);var a3=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Gn);const vf=Yr(a3);var bf=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Gn);const ks=Yr(bf);var eu=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Gn);const J0=Yr(eu);var h2=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Gn);const o3=Yr(h2);var rc=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Gn);const s3=Yr(rc);var u3=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Gn);const c3=Yr(u3);var _f=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Gn);const ta=Yr(_f);var l3=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Gn);const td=Yr(l3);var h3=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Gn);const f3=Yr(h3);var d3=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Gn);const f2=Yr(d3);var d2=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Gn);const p3=Yr(d2);var wl=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Gn);const p2=Yr(wl);var ed=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Gn);const g3=Yr(ed);var xa=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Gn);const X5=Yr(xa);var g2=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Gn);const Ts=Yr(g2);var Es=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Gn);const zr=Yr(Es);function y3(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 m3=qu(uo(300,.5,0),uo(-240,.5,1));var v3=qu(uo(-100,.75,.35),uo(80,1.5,.8)),Z5=qu(uo(260,.75,.35),uo(80,1.5,.8)),kl=uo();function y2(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return kl.h=360*n-100,kl.s=1.5-1.5*i,kl.l=.8-.9*i,kl+""}var bo=Ri(),nd=Math.PI/3,Q5=2*Math.PI/3;function b3(n){var i;return n=(.5-n)*Math.PI,bo.r=255*(i=Math.sin(n))*i,bo.g=255*(i=Math.sin(n+nd))*i,bo.b=255*(i=Math.sin(n+Q5))*i,bo+""}function Tl(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 Gr(n){var i=n.length;return function(a){return n[Math.max(0,Math.min(i-1,Math.floor(a*i)))]}}const ic=Gr(Gn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var El=Gr(Gn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),is=Gr(Gn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rd=Gr(Gn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function m2(n){return gr(ui(n).call(document.documentElement))}var v2=0;function id(){return new Cl}function Cl(){this._="@"+(++v2).toString(36)}function ad(n){return typeof n=="string"?new En([document.querySelectorAll(n)],[document.documentElement]):new En([n??[]],Wi)}function K5(n,i){i==null&&(i=Ha().touches);for(var a=0,s=i?i.length:0,l=new Array(s);a<s;++a)l[a]=yu(n,i[a]);return l}function Kn(n){return function(){return n}}Cl.prototype=id.prototype={constructor:Cl,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 b2=Math.abs,ua=Math.atan2,Cs=Math.cos,_3=Math.max,_2=Math.min,jo=Math.sin,ac=Math.sqrt,xn=1e-12,nu=Math.PI,oc=nu/2,ru=2*nu;function Ja(n){return n>1?0:n<-1?nu:Math.acos(n)}function x3(n){return n>=1?oc:n<=-1?-oc:Math.asin(n)}function w3(n){return n.innerRadius}function J5(n){return n.outerRadius}function t_(n){return n.startAngle}function e_(n){return n.endAngle}function n_(n){return n&&n.padAngle}function r_(n,i,a,s,l,f,b,v){var T=a-n,A=s-i,B=b-l,F=v-f,O=F*T-B*A;if(!(O*O<xn))return[n+(O=(B*(i-f)-F*(n-l))/O)*T,i+O*A]}function od(n,i,a,s,l,f,b){var v=n-a,T=i-s,A=(b?f:-f)/ac(v*v+T*T),B=A*T,F=-A*v,O=n+B,z=i+F,U=a+B,Z=s+F,Q=(O+U)/2,G=(z+Z)/2,rt=U-O,et=Z-z,ct=rt*rt+et*et,Lt=l-f,qt=O*Z-U*z,ne=(et<0?-1:1)*ac(_3(0,Lt*Lt*ct-qt*qt)),ve=(qt*et-rt*ne)/ct,zt=(-qt*rt-et*ne)/ct,ue=(qt*et+rt*ne)/ct,ut=(-qt*rt+et*ne)/ct,xt=ve-Q,ae=zt-G,Jt=ue-Q,Kt=ut-G;return xt*xt+ae*ae>Jt*Jt+Kt*Kt&&(ve=ue,zt=ut),{cx:ve,cy:zt,x01:-B,y01:-F,x11:ve*(l/Lt-1),y11:zt*(l/Lt-1)}}function i_(){var n=w3,i=J5,a=Kn(0),s=null,l=t_,f=e_,b=n_,v=null;function T(){var A,B,F=+n.apply(this,arguments),O=+i.apply(this,arguments),z=l.apply(this,arguments)-oc,U=f.apply(this,arguments)-oc,Z=b2(U-z),Q=U>z;if(v||(v=A=hs()),O<F&&(B=O,O=F,F=B),O>xn)if(Z>ru-xn)v.moveTo(O*Cs(z),O*jo(z)),v.arc(0,0,O,z,U,!Q),F>xn&&(v.moveTo(F*Cs(U),F*jo(U)),v.arc(0,0,F,U,z,Q));else{var G,rt,et=z,ct=U,Lt=z,qt=U,ne=Z,ve=Z,zt=b.apply(this,arguments)/2,ue=zt>xn&&(s?+s.apply(this,arguments):ac(F*F+O*O)),ut=_2(b2(O-F)/2,+a.apply(this,arguments)),xt=ut,ae=ut;if(ue>xn){var Jt=x3(ue/F*jo(zt)),Kt=x3(ue/O*jo(zt));(ne-=2*Jt)>xn?(Lt+=Jt*=Q?1:-1,qt-=Jt):(ne=0,Lt=qt=(z+U)/2),(ve-=2*Kt)>xn?(et+=Kt*=Q?1:-1,ct-=Kt):(ve=0,et=ct=(z+U)/2)}var Le=O*Cs(et),Ie=O*jo(et),vn=F*Cs(qt),tr=F*jo(qt);if(ut>xn){var ir,nn=O*Cs(ct),sr=O*jo(ct),Mn=F*Cs(Lt),Sn=F*jo(Lt);if(Z<nu&&(ir=r_(Le,Ie,Mn,Sn,nn,sr,vn,tr))){var ur=Le-ir[0],Nn=Ie-ir[1],oi=nn-ir[0],la=sr-ir[1],cu=1/jo(Ja((ur*oi+Nn*la)/(ac(ur*ur+Nn*Nn)*ac(oi*oi+la*la)))/2),vc=ac(ir[0]*ir[0]+ir[1]*ir[1]);xt=_2(ut,(F-vc)/(cu-1)),ae=_2(ut,(O-vc)/(cu+1))}}ve>xn?ae>xn?(G=od(Mn,Sn,Le,Ie,O,ae,Q),rt=od(nn,sr,vn,tr,O,ae,Q),v.moveTo(G.cx+G.x01,G.cy+G.y01),ae<ut?v.arc(G.cx,G.cy,ae,ua(G.y01,G.x01),ua(rt.y01,rt.x01),!Q):(v.arc(G.cx,G.cy,ae,ua(G.y01,G.x01),ua(G.y11,G.x11),!Q),v.arc(0,0,O,ua(G.cy+G.y11,G.cx+G.x11),ua(rt.cy+rt.y11,rt.cx+rt.x11),!Q),v.arc(rt.cx,rt.cy,ae,ua(rt.y11,rt.x11),ua(rt.y01,rt.x01),!Q))):(v.moveTo(Le,Ie),v.arc(0,0,O,et,ct,!Q)):v.moveTo(Le,Ie),F>xn&&ne>xn?xt>xn?(G=od(vn,tr,nn,sr,F,-xt,Q),rt=od(Le,Ie,Mn,Sn,F,-xt,Q),v.lineTo(G.cx+G.x01,G.cy+G.y01),xt<ut?v.arc(G.cx,G.cy,xt,ua(G.y01,G.x01),ua(rt.y01,rt.x01),!Q):(v.arc(G.cx,G.cy,xt,ua(G.y01,G.x01),ua(G.y11,G.x11),!Q),v.arc(0,0,F,ua(G.cy+G.y11,G.cx+G.x11),ua(rt.cy+rt.y11,rt.cx+rt.x11),Q),v.arc(rt.cx,rt.cy,xt,ua(rt.y11,rt.x11),ua(rt.y01,rt.x01),!Q))):v.arc(0,0,F,qt,Lt,Q):v.lineTo(vn,tr)}else v.moveTo(0,0);if(v.closePath(),A)return v=null,A+""||null}return T.centroid=function(){var A=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,B=(+l.apply(this,arguments)+ +f.apply(this,arguments))/2-nu/2;return[Cs(B)*A,jo(B)*A]},T.innerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Kn(+A),T):n},T.outerRadius=function(A){return arguments.length?(i=typeof A=="function"?A:Kn(+A),T):i},T.cornerRadius=function(A){return arguments.length?(a=typeof A=="function"?A:Kn(+A),T):a},T.padRadius=function(A){return arguments.length?(s=A==null?null:typeof A=="function"?A:Kn(+A),T):s},T.startAngle=function(A){return arguments.length?(l=typeof A=="function"?A:Kn(+A),T):l},T.endAngle=function(A){return arguments.length?(f=typeof A=="function"?A:Kn(+A),T):f},T.padAngle=function(A){return arguments.length?(b=typeof A=="function"?A:Kn(+A),T):b},T.context=function(A){return arguments.length?(v=A??null,T):v},T}function k3(n){this._context=n}function sd(n){return new k3(n)}function x2(n){return n[0]}function w2(n){return n[1]}function Yo(){var n=x2,i=w2,a=Kn(!0),s=null,l=sd,f=null;function b(v){var T,A,B,F=v.length,O=!1;for(s==null&&(f=l(B=hs())),T=0;T<=F;++T)!(T<F&&a(A=v[T],T,v))===O&&((O=!O)?f.lineStart():f.lineEnd()),O&&f.point(+n(A,T,v),+i(A,T,v));if(B)return f=null,B+""||null}return b.x=function(v){return arguments.length?(n=typeof v=="function"?v:Kn(+v),b):n},b.y=function(v){return arguments.length?(i=typeof v=="function"?v:Kn(+v),b):i},b.defined=function(v){return arguments.length?(a=typeof v=="function"?v:Kn(!!v),b):a},b.curve=function(v){return arguments.length?(l=v,s!=null&&(f=l(s)),b):l},b.context=function(v){return arguments.length?(v==null?s=f=null:f=l(s=v),b):s},b}function T3(){var n=x2,i=null,a=Kn(0),s=w2,l=Kn(!0),f=null,b=sd,v=null;function T(B){var F,O,z,U,Z,Q=B.length,G=!1,rt=new Array(Q),et=new Array(Q);for(f==null&&(v=b(Z=hs())),F=0;F<=Q;++F){if(!(F<Q&&l(U=B[F],F,B))===G)if(G=!G)O=F,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),z=F-1;z>=O;--z)v.point(rt[z],et[z]);v.lineEnd(),v.areaEnd()}G&&(rt[F]=+n(U,F,B),et[F]=+a(U,F,B),v.point(i?+i(U,F,B):rt[F],s?+s(U,F,B):et[F]))}if(Z)return v=null,Z+""||null}function A(){return Yo().defined(l).curve(b).context(f)}return T.x=function(B){return arguments.length?(n=typeof B=="function"?B:Kn(+B),i=null,T):n},T.x0=function(B){return arguments.length?(n=typeof B=="function"?B:Kn(+B),T):n},T.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:Kn(+B),T):i},T.y=function(B){return arguments.length?(a=typeof B=="function"?B:Kn(+B),s=null,T):a},T.y0=function(B){return arguments.length?(a=typeof B=="function"?B:Kn(+B),T):a},T.y1=function(B){return arguments.length?(s=B==null?null:typeof B=="function"?B:Kn(+B),T):s},T.lineX0=T.lineY0=function(){return A().x(n).y(a)},T.lineY1=function(){return A().x(n).y(s)},T.lineX1=function(){return A().x(i).y(a)},T.defined=function(B){return arguments.length?(l=typeof B=="function"?B:Kn(!!B),T):l},T.curve=function(B){return arguments.length?(b=B,f!=null&&(v=b(f)),T):b},T.context=function(B){return arguments.length?(B==null?f=v=null:v=b(f=B),T):f},T}function E3(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function C3(n){return n}function a_(){var n=C3,i=E3,a=null,s=Kn(0),l=Kn(ru),f=Kn(0);function b(v){var T,A,B,F,O,z=v.length,U=0,Z=new Array(z),Q=new Array(z),G=+s.apply(this,arguments),rt=Math.min(ru,Math.max(-ru,l.apply(this,arguments)-G)),et=Math.min(Math.abs(rt)/z,f.apply(this,arguments)),ct=et*(rt<0?-1:1);for(T=0;T<z;++T)(O=Q[Z[T]=T]=+n(v[T],T,v))>0&&(U+=O);for(i!=null?Z.sort((function(Lt,qt){return i(Q[Lt],Q[qt])})):a!=null&&Z.sort((function(Lt,qt){return a(v[Lt],v[qt])})),T=0,B=U?(rt-z*ct)/U:0;T<z;++T,G=F)A=Z[T],F=G+((O=Q[A])>0?O*B:0)+ct,Q[A]={data:v[A],index:T,value:O,startAngle:G,endAngle:F,padAngle:et};return Q}return b.value=function(v){return arguments.length?(n=typeof v=="function"?v:Kn(+v),b):n},b.sortValues=function(v){return arguments.length?(i=v,a=null,b):i},b.sort=function(v){return arguments.length?(a=v,i=null,b):a},b.startAngle=function(v){return arguments.length?(s=typeof v=="function"?v:Kn(+v),b):s},b.endAngle=function(v){return arguments.length?(l=typeof v=="function"?v:Kn(+v),b):l},b.padAngle=function(v){return arguments.length?(f=typeof v=="function"?v:Kn(+v),b):f},b}k3.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 k2=E2(sd);function T2(n){this._curve=n}function E2(n){function i(a){return new T2(n(a))}return i._curve=n,i}function sc(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(a){return arguments.length?i(E2(a)):i()._curve},n}function ud(){return sc(Yo().curve(k2))}function xf(){var n=T3().curve(k2),i=n.curve,a=n.lineX0,s=n.lineX1,l=n.lineY0,f=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 sc(a())},delete n.lineX0,n.lineEndAngle=function(){return sc(s())},delete n.lineX1,n.lineInnerRadius=function(){return sc(l())},delete n.lineY0,n.lineOuterRadius=function(){return sc(f())},delete n.lineY1,n.curve=function(b){return arguments.length?i(E2(b)):i()._curve},n}function Ia(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}T2.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 wf=Array.prototype.slice;function C2(n){return n.source}function kf(n){return n.target}function uc(n){var i=C2,a=kf,s=x2,l=w2,f=null;function b(){var v,T=wf.call(arguments),A=i.apply(this,T),B=a.apply(this,T);if(f||(f=v=hs()),n(f,+s.apply(this,(T[0]=A,T)),+l.apply(this,T),+s.apply(this,(T[0]=B,T)),+l.apply(this,T)),v)return f=null,v+""||null}return b.source=function(v){return arguments.length?(i=v,b):i},b.target=function(v){return arguments.length?(a=v,b):a},b.x=function(v){return arguments.length?(s=typeof v=="function"?v:Kn(+v),b):s},b.y=function(v){return arguments.length?(l=typeof v=="function"?v:Kn(+v),b):l},b.context=function(v){return arguments.length?(f=v??null,b):f},b}function S2(n,i,a,s,l){n.moveTo(i,a),n.bezierCurveTo(i=(i+s)/2,a,i,l,s,l)}function A2(n,i,a,s,l){n.moveTo(i,a),n.bezierCurveTo(i,a=(a+l)/2,s,a,s,l)}function M2(n,i,a,s,l){var f=Ia(i,a),b=Ia(i,a=(a+l)/2),v=Ia(s,a),T=Ia(s,l);n.moveTo(f[0],f[1]),n.bezierCurveTo(b[0],b[1],v[0],v[1],T[0],T[1])}function N2(){return uc(S2)}function Sl(){return uc(A2)}function S3(){var n=uc(M2);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const Al={draw:function(n,i){var a=Math.sqrt(i/nu);n.moveTo(a,0),n.arc(0,0,a,0,ru)}},Ml={draw:function(n,i){var a=Math.sqrt(i/5)/2;n.moveTo(-3*a,-a),n.lineTo(-a,-a),n.lineTo(-a,-3*a),n.lineTo(a,-3*a),n.lineTo(a,-a),n.lineTo(3*a,-a),n.lineTo(3*a,a),n.lineTo(a,a),n.lineTo(a,3*a),n.lineTo(-a,3*a),n.lineTo(-a,a),n.lineTo(-3*a,a),n.closePath()}};var cd=Math.sqrt(1/3),D2=2*cd;const O2={draw:function(n,i){var a=Math.sqrt(i/D2),s=a*cd;n.moveTo(0,-a),n.lineTo(s,0),n.lineTo(0,a),n.lineTo(-s,0),n.closePath()}};var B2=Math.sin(nu/10)/Math.sin(7*nu/10),o_=Math.sin(ru/10)*B2,L2=-Math.cos(ru/10)*B2;const I2={draw:function(n,i){var a=Math.sqrt(.8908130915292852*i),s=o_*a,l=L2*a;n.moveTo(0,-a),n.lineTo(s,l);for(var f=1;f<5;++f){var b=ru*f/5,v=Math.cos(b),T=Math.sin(b);n.lineTo(T*a,-v*a),n.lineTo(v*s-T*l,T*s+v*l)}n.closePath()}},R2={draw:function(n,i){var a=Math.sqrt(i),s=-a/2;n.rect(s,s,a,a)}};var ld=Math.sqrt(3);const cc={draw:function(n,i){var a=-Math.sqrt(i/(3*ld));n.moveTo(0,2*a),n.lineTo(-ld*a,-a),n.lineTo(ld*a,-a),n.closePath()}};var Tr=-.5,to=Math.sqrt(3)/2,iu=1/Math.sqrt(12),A3=3*(iu/2+1);const F2={draw:function(n,i){var a=Math.sqrt(i/A3),s=a/2,l=a*iu,f=s,b=a*iu+a,v=-f,T=b;n.moveTo(s,l),n.lineTo(f,b),n.lineTo(v,T),n.lineTo(Tr*s-to*l,to*s+Tr*l),n.lineTo(Tr*f-to*b,to*f+Tr*b),n.lineTo(Tr*v-to*T,to*v+Tr*T),n.lineTo(Tr*s+to*l,Tr*l-to*s),n.lineTo(Tr*f+to*b,Tr*b-to*f),n.lineTo(Tr*v+to*T,Tr*T-to*v),n.closePath()}};var M3=[Al,Ml,O2,R2,I2,cc,F2];function Nl(){var n=Kn(Al),i=Kn(64),a=null;function s(){var l;if(a||(a=l=hs()),n.apply(this,arguments).draw(a,+i.apply(this,arguments)),l)return a=null,l+""||null}return s.type=function(l){return arguments.length?(n=typeof l=="function"?l:Kn(l),s):n},s.size=function(l){return arguments.length?(i=typeof l=="function"?l:Kn(+l),s):i},s.context=function(l){return arguments.length?(a=l??null,s):a},s}function Ss(){}function zo(n,i,a){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+a)/6)}function wa(n){this._context=n}function s_(n){return new wa(n)}function N3(n){this._context=n}function xi(n){return new N3(n)}function ca(n){this._context=n}function Bi(n){return new ca(n)}function Uo(n,i){this._basis=new wa(n),this._beta=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(){switch(this._point){case 3:zo(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:zo(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},N3.prototype={areaStart:Ss,areaEnd:Ss,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:zo(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},ca.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 a=(this._x0+4*this._x1+n)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(a,s):this._context.moveTo(a,s);break;case 3:this._point=4;default:zo(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},Uo.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,a=n.length-1;if(a>0)for(var s,l=n[0],f=i[0],b=n[a]-l,v=i[a]-f,T=-1;++T<=a;)s=T/a,this._basis.point(this._beta*n[T]+(1-this._beta)*(l+s*b),this._beta*i[T]+(1-this._beta)*(f+s*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const D3=(function n(i){function a(s){return i===1?new wa(s):new Uo(s,i)}return a.beta=function(s){return n(+s)},a})(.85);function Dl(n,i,a){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-a),n._x2,n._y2)}function hd(n,i){this._context=n,this._k=(1-i)/6}hd.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:Dl(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:Dl(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 fd=(function n(i){function a(s){return new hd(s,i)}return a.tension=function(s){return n(+s)},a})(0);function dd(n,i){this._context=n,this._k=(1-i)/6}dd.prototype={areaStart:Ss,areaEnd:Ss,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:Dl(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 O3=(function n(i){function a(s){return new dd(s,i)}return a.tension=function(s){return n(+s)},a})(0);function pd(n,i){this._context=n,this._k=(1-i)/6}pd.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:Dl(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 B3=(function n(i){function a(s){return new pd(s,i)}return a.tension=function(s){return n(+s)},a})(0);function au(n,i,a){var s=n._x1,l=n._y1,f=n._x2,b=n._y2;if(n._l01_a>xn){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>xn){var A=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);f=(f*A+n._x1*n._l23_2a-i*n._l12_2a)/B,b=(b*A+n._y1*n._l23_2a-a*n._l12_2a)/B}n._context.bezierCurveTo(s,l,f,b,n._x2,n._y2)}function lc(n,i){this._context=n,this._alpha=i}lc.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 a=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+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:au(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 u_=(function n(i){function a(s){return i?new lc(s,i):new hd(s,0)}return a.alpha=function(s){return n(+s)},a})(.5);function P2(n,i){this._context=n,this._alpha=i}P2.prototype={areaStart:Ss,areaEnd:Ss,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 a=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+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:au(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 ou=(function n(i){function a(s){return i?new P2(s,i):new dd(s,0)}return a.alpha=function(s){return n(+s)},a})(.5);function Jn(n,i){this._context=n,this._alpha=i}Jn.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 a=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+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:au(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 L3=(function n(i){function a(s){return i?new Jn(s,i):new pd(s,0)}return a.alpha=function(s){return n(+s)},a})(.5);function hc(n){this._context=n}function I3(n){return new hc(n)}function gd(n){return n<0?-1:1}function R3(n,i,a){var s=n._x1-n._x0,l=i-n._x1,f=(n._y1-n._y0)/(s||l<0&&-0),b=(a-n._y1)/(l||s<0&&-0),v=(f*l+b*s)/(s+l);return(gd(f)+gd(b))*Math.min(Math.abs(f),Math.abs(b),.5*Math.abs(v))||0}function yd(n,i){var a=n._x1-n._x0;return a?(3*(n._y1-n._y0)/a-i)/2:i}function md(n,i,a){var s=n._x0,l=n._y0,f=n._x1,b=n._y1,v=(f-s)/3;n._context.bezierCurveTo(s+v,l+v*i,f-v,b-v*a,f,b)}function Tf(n){this._context=n}function j2(n){this._context=new Y2(n)}function Y2(n){this._context=n}function F3(n){return new Tf(n)}function c_(n){return new j2(n)}function z2(n){this._context=n}function U2(n){var i,a,s=n.length-1,l=new Array(s),f=new Array(s),b=new Array(s);for(l[0]=0,f[0]=2,b[0]=n[0]+2*n[1],i=1;i<s-1;++i)l[i]=1,f[i]=4,b[i]=4*n[i]+2*n[i+1];for(l[s-1]=2,f[s-1]=7,b[s-1]=8*n[s-1]+n[s],i=1;i<s;++i)a=l[i]/f[i-1],f[i]-=a,b[i]-=a*b[i-1];for(l[s-1]=b[s-1]/f[s-1],i=s-2;i>=0;--i)l[i]=(b[i]-l[i+1])/f[i];for(f[s-1]=(n[s]+l[s-1])/2,i=0;i<s-1;++i)f[i]=2*n[i+1]-l[i+1];return[l,f]}function l_(n){return new z2(n)}function Ef(n,i){this._context=n,this._t=i}function vd(n){return new Ef(n,.5)}function q2(n){return new Ef(n,0)}function H2(n){return new Ef(n,1)}function su(n,i){if((l=n.length)>1)for(var a,s,l,f=1,b=n[i[0]],v=b.length;f<l;++f)for(s=b,b=n[i[f]],a=0;a<v;++a)b[a][1]+=b[a][0]=isNaN(s[a][1])?s[a][0]:s[a][1]}function eo(n){for(var i=n.length,a=new Array(i);--i>=0;)a[i]=i;return a}function As(n,i){return n[i]}function h_(){var n=Kn([]),i=eo,a=su,s=As;function l(f){var b,v,T=n.apply(this,arguments),A=f.length,B=T.length,F=new Array(B);for(b=0;b<B;++b){for(var O,z=T[b],U=F[b]=new Array(A),Z=0;Z<A;++Z)U[Z]=O=[0,+s(f[Z],z,Z,f)],O.data=f[Z];U.key=z}for(b=0,v=i(F);b<B;++b)F[v[b]].index=b;return a(F,v),F}return l.keys=function(f){return arguments.length?(n=typeof f=="function"?f:Kn(wf.call(f)),l):n},l.value=function(f){return arguments.length?(s=typeof f=="function"?f:Kn(+f),l):s},l.order=function(f){return arguments.length?(i=f==null?eo:typeof f=="function"?f:Kn(wf.call(f)),l):i},l.offset=function(f){return arguments.length?(a=f??su,l):a},l}function bd(n,i){if((s=n.length)>0){for(var a,s,l,f=0,b=n[0].length;f<b;++f){for(l=a=0;a<s;++a)l+=n[a][f][1]||0;if(l)for(a=0;a<s;++a)n[a][f][1]/=l}su(n,i)}}function f_(n,i){if((v=n.length)>0)for(var a,s,l,f,b,v,T=0,A=n[i[0]].length;T<A;++T)for(f=b=0,a=0;a<v;++a)(l=(s=n[i[a]][T])[1]-s[0])>0?(s[0]=f,s[1]=f+=l):l<0?(s[1]=b,s[0]=b+=l):(s[0]=0,s[1]=l)}function $2(n,i){if((a=n.length)>0){for(var a,s=0,l=n[i[0]],f=l.length;s<f;++s){for(var b=0,v=0;b<a;++b)v+=n[b][s][1]||0;l[s][1]+=l[s][0]=-v/2}su(n,i)}}function Ra(n,i){if((l=n.length)>0&&(s=(a=n[i[0]]).length)>0){for(var a,s,l,f=0,b=1;b<s;++b){for(var v=0,T=0,A=0;v<l;++v){for(var B=n[i[v]],F=B[b][1]||0,O=(F-(B[b-1][1]||0))/2,z=0;z<v;++z){var U=n[i[z]];O+=(U[b][1]||0)-(U[b-1][1]||0)}T+=F,A+=O*F}a[b-1][1]+=a[b-1][0]=f,T&&(f-=A/T)}a[b-1][1]+=a[b-1][0]=f,su(n,i)}}function Ol(n){var i=n.map(uu);return eo(n).sort((function(a,s){return i[a]-i[s]}))}function uu(n){for(var i,a=-1,s=0,l=n.length,f=-1/0;++a<l;)(i=+n[a][1])>f&&(f=i,s=a);return s}function Bl(n){var i=n.map(fc);return eo(n).sort((function(a,s){return i[a]-i[s]}))}function fc(n){for(var i,a=0,s=-1,l=n.length;++s<l;)(i=+n[s][1])&&(a+=i);return a}function W2(n){return Bl(n).reverse()}function d_(n){var i,a,s=n.length,l=n.map(fc),f=Ol(n),b=0,v=0,T=[],A=[];for(i=0;i<s;++i)a=f[i],b<v?(b+=l[a],T.push(a)):(v+=l[a],A.push(a));return A.reverse().concat(T)}function wi(n){return eo(n).reverse()}hc.prototype={areaStart:Ss,areaEnd:Ss,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))}},Tf.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:md(this,this._t0,yd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){var a=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,md(this,yd(this,a=R3(this,n,i)),a);break;default:md(this,this._t0,a=R3(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=a}}},(j2.prototype=Object.create(Tf.prototype)).point=function(n,i){Tf.prototype.point.call(this,i,n)},Y2.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,a,s,l,f){this._context.bezierCurveTo(i,n,s,a,f,l)}},z2.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,a=n.length;if(a)if(this._line?this._context.lineTo(n[0],i[0]):this._context.moveTo(n[0],i[0]),a===2)this._context.lineTo(n[1],i[1]);else for(var s=U2(n),l=U2(i),f=0,b=1;b<a;++f,++b)this._context.bezierCurveTo(s[0][f],l[0][f],s[1][f],l[1][f],n[b],i[b]);(this._line||this._line!==0&&a===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)}},Ef.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 a=this._x*(1-this._t)+n*this._t;this._context.lineTo(a,this._y),this._context.lineTo(a,i)}}this._x=n,this._y=i}};var V2="%Y-%m-%dT%H:%M:%S.%LZ",P3=Date.prototype.toISOString?function(n){return n.toISOString()}:I0(V2);const j3=P3;var Y3=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:qg(V2);const Ll=Y3;function z3(n,i,a){var s=new Wt,l=i;return i==null?(s.restart(n,i,a),s):(i=+i,a=a==null?$():+a,s.restart((function f(b){b+=l,s.restart(f,l+=i,a),n(b)}),i,a),s)}function U3(n){return function(){return n}}function en(n){return n[0]}function p_(n){return n[1]}function dc(){this._=null}function qo(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Fa(n,i){var a=i,s=i.R,l=a.U;l?l.L===a?l.L=s:l.R=s:n._=s,s.U=l,a.U=s,a.R=s.L,a.R&&(a.R.U=a),s.L=a}function Il(n,i){var a=i,s=i.L,l=a.U;l?l.L===a?l.L=s:l.R=s:n._=s,s.U=l,a.U=s,a.L=s.R,a.L&&(a.L.U=a),s.R=a}function G2(n){for(;n.L;)n=n.L;return n}dc.prototype={constructor:dc,insert:function(n,i){var a,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;a=n}else this._?(n=G2(this._),i.P=null,i.N=n,n.P=n.L=i,a=n):(i.P=i.N=null,this._=i,a=null);for(i.L=i.R=null,i.U=a,i.C=!0,n=i;a&&a.C;)a===(s=a.U).L?(l=s.R)&&l.C?(a.C=l.C=!1,s.C=!0,n=s):(n===a.R&&(Fa(this,a),a=(n=a).U),a.C=!1,s.C=!0,Il(this,s)):(l=s.L)&&l.C?(a.C=l.C=!1,s.C=!0,n=s):(n===a.L&&(Il(this,a),a=(n=a).U),a.C=!1,s.C=!0,Fa(this,s)),a=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,a,s,l=n.U,f=n.L,b=n.R;if(a=f?b?G2(b):f:b,l?l.L===n?l.L=a:l.R=a:this._=a,f&&b?(s=a.C,a.C=n.C,a.L=f,f.U=a,a!==b?(l=a.U,a.U=n.U,n=a.R,l.L=n,a.R=b,b.U=a):(a.U=l,l=a,n=a.R)):(s=n.C,n=a),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,Fa(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,Il(this,i),i=l.R),i.C=l.C,l.C=i.R.C=!1,Fa(this,l),n=this._;break}}else if((i=l.L).C&&(i.C=!1,l.C=!0,Il(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,Fa(this,i),i=l.L),i.C=l.C,l.C=i.L.C=!1,Il(this,l),n=this._;break}i.C=!0,n=l,l=l.U}while(!n.C);n&&(n.C=!1)}}};const X2=dc;function Rl(n,i,a,s){var l=[null,null],f=Xr.push(l)-1;return l.left=n,l.right=i,a&&_d(l,n,i,a),s&&_d(l,i,n,s),ea[n.index].halfedges.push(f),ea[i.index].halfedges.push(f),l}function pc(n,i,a){var s=[i,a];return s.left=n,s}function _d(n,i,a,s){n[0]||n[1]?n.left===a?n[1]=s:n[0]=s:(n[0]=s,n.left=i,n.right=a)}function Ms(n,i,a,s,l){var f,b=n[0],v=n[1],T=b[0],A=b[1],B=0,F=1,O=v[0]-T,z=v[1]-A;if(f=i-T,O||!(f>0)){if(f/=O,O<0){if(f<B)return;f<F&&(F=f)}else if(O>0){if(f>F)return;f>B&&(B=f)}if(f=s-T,O||!(f<0)){if(f/=O,O<0){if(f>F)return;f>B&&(B=f)}else if(O>0){if(f<B)return;f<F&&(F=f)}if(f=a-A,z||!(f>0)){if(f/=z,z<0){if(f<B)return;f<F&&(F=f)}else if(z>0){if(f>F)return;f>B&&(B=f)}if(f=l-A,z||!(f<0)){if(f/=z,z<0){if(f>F)return;f>B&&(B=f)}else if(z>0){if(f<B)return;f<F&&(F=f)}return!(B>0||F<1)||(B>0&&(n[0]=[T+B*O,A+B*z]),F<1&&(n[1]=[T+F*O,A+F*z]),!0)}}}}}function Cf(n,i,a,s,l){var f=n[1];if(f)return!0;var b,v,T=n[0],A=n.left,B=n.right,F=A[0],O=A[1],z=B[0],U=B[1],Z=(F+z)/2,Q=(O+U)/2;if(U===O){if(Z<i||Z>=s)return;if(F>z){if(T){if(T[1]>=l)return}else T=[Z,a];f=[Z,l]}else{if(T){if(T[1]<a)return}else T=[Z,l];f=[Z,a]}}else if(v=Q-(b=(F-z)/(U-O))*Z,b<-1||b>1)if(F>z){if(T){if(T[1]>=l)return}else T=[(a-v)/b,a];f=[(l-v)/b,l]}else{if(T){if(T[1]<a)return}else T=[(l-v)/b,l];f=[(a-v)/b,a]}else if(O<U){if(T){if(T[0]>=s)return}else T=[i,b*i+v];f=[s,b*s+v]}else{if(T){if(T[0]<i)return}else T=[s,b*s+v];f=[i,b*i+v]}return n[0]=T,n[1]=f,!0}function gc(n,i){var a=n.site,s=i.left,l=i.right;return a===l&&(l=s,s=a),l?Math.atan2(l[1]-s[1],l[0]-s[0]):(a===s?(s=i[1],l=i[0]):(s=i[0],l=i[1]),Math.atan2(s[0]-l[0],l[1]-s[1]))}function Fl(n,i){return i[+(i.left!==n.site)]}function q3(n,i){return i[+(i.left===n.site)]}var xd,wd=[];function H3(){qo(this),this.x=this.y=this.arc=this.site=this.cy=null}function yc(n){var i=n.P,a=n.N;if(i&&a){var s=i.site,l=n.site,f=a.site;if(s!==f){var b=l[0],v=l[1],T=s[0]-b,A=s[1]-v,B=f[0]-b,F=f[1]-v,O=2*(T*F-A*B);if(!(O>=-1e-12)){var z=T*T+A*A,U=B*B+F*F,Z=(F*z-A*U)/O,Q=(T*U-B*z)/O,G=wd.pop()||new H3;G.arc=n,G.site=l,G.x=Z+b,G.y=(G.cy=Q+v)+Math.sqrt(Z*Z+Q*Q),n.circle=G;for(var rt=null,et=Sf._;et;)if(G.y<et.y||G.y===et.y&&G.x<=et.x){if(!et.L){rt=et.P;break}et=et.L}else{if(!et.R){rt=et;break}et=et.R}Sf.insert(rt,G),rt||(xd=G)}}}}function mc(n){var i=n.circle;i&&(i.P||(xd=i.N),Sf.remove(i),wd.push(i),qo(i),n.circle=null)}var Z2=[];function Q2(){qo(this),this.edge=this.site=this.circle=null}function kd(n){var i=Z2.pop()||new Q2;return i.site=n,i}function Pl(n){mc(n),jl.remove(n),Z2.push(n),qo(n)}function $3(n){var i=n.circle,a=i.x,s=i.cy,l=[a,s],f=n.P,b=n.N,v=[n];Pl(n);for(var T=f;T.circle&&Math.abs(a-T.circle.x)<Lr&&Math.abs(s-T.circle.cy)<Lr;)f=T.P,v.unshift(T),Pl(T),T=f;v.unshift(T),mc(T);for(var A=b;A.circle&&Math.abs(a-A.circle.x)<Lr&&Math.abs(s-A.circle.cy)<Lr;)b=A.N,v.push(A),Pl(A),A=b;v.push(A),mc(A);var B,F=v.length;for(B=1;B<F;++B)A=v[B],T=v[B-1],_d(A.edge,T.site,A.site,l);T=v[0],(A=v[F-1]).edge=Rl(T.site,A.site,null,l),yc(T),yc(A)}function g_(n){for(var i,a,s,l,f=n[0],b=n[1],v=jl._;v;)if((s=W3(v,b)-f)>Lr)v=v.L;else{if(!((l=f-y_(v,b))>Lr)){s>-Lr?(i=v.P,a=v):l>-Lr?(i=v,a=v.N):i=a=v;break}if(!v.R){i=v;break}v=v.R}(function(Lt){ea[Lt.index]={site:Lt,halfedges:[]}})(n);var T=kd(n);if(jl.insert(i,T),i||a){if(i===a)return mc(i),a=kd(i.site),jl.insert(T,a),T.edge=a.edge=Rl(i.site,T.site),yc(i),void yc(a);if(a){mc(i),mc(a);var A=i.site,B=A[0],F=A[1],O=n[0]-B,z=n[1]-F,U=a.site,Z=U[0]-B,Q=U[1]-F,G=2*(O*Q-z*Z),rt=O*O+z*z,et=Z*Z+Q*Q,ct=[(Q*rt-z*et)/G+B,(O*et-Z*rt)/G+F];_d(a.edge,A,U,ct),T.edge=Rl(A,n,null,ct),a.edge=Rl(n,U,null,ct),yc(i),yc(a)}else T.edge=Rl(i.site,T.site)}}function W3(n,i){var a=n.site,s=a[0],l=a[1],f=l-i;if(!f)return s;var b=n.P;if(!b)return-1/0;var v=(a=b.site)[0],T=a[1],A=T-i;if(!A)return v;var B=v-s,F=1/f-1/A,O=B/A;return F?(-O+Math.sqrt(O*O-2*F*(B*B/(-2*A)-T+A/2+l-f/2)))/F+s:(s+v)/2}function y_(n,i){var a=n.N;if(a)return W3(a,i);var s=n.site;return s[1]===i?s[0]:1/0}var jl,ea,Sf,Xr,Lr=1e-6;function m_(n,i,a){return(n[0]-a[0])*(i[1]-n[1])-(n[0]-i[0])*(a[1]-n[1])}function v_(n,i){return i[1]-n[1]||i[0]-n[0]}function Td(n,i){var a,s,l,f=n.sort(v_).pop();for(Xr=[],ea=new Array(n.length),jl=new X2,Sf=new X2;;)if(l=xd,f&&(!l||f[1]<l.y||f[1]===l.y&&f[0]<l.x))f[0]===a&&f[1]===s||(g_(f),a=f[0],s=f[1]),f=n.pop();else{if(!l)break;$3(l.arc)}if((function(){for(var B,F,O,z,U=0,Z=ea.length;U<Z;++U)if((B=ea[U])&&(z=(F=B.halfedges).length)){var Q=new Array(z),G=new Array(z);for(O=0;O<z;++O)Q[O]=O,G[O]=gc(B,Xr[F[O]]);for(Q.sort((function(rt,et){return G[et]-G[rt]})),O=0;O<z;++O)G[O]=F[Q[O]];for(O=0;O<z;++O)F[O]=G[O]}})(),i){var b=+i[0][0],v=+i[0][1],T=+i[1][0],A=+i[1][1];(function(B,F,O,z){for(var U,Z=Xr.length;Z--;)Cf(U=Xr[Z],B,F,O,z)&&Ms(U,B,F,O,z)&&(Math.abs(U[0][0]-U[1][0])>Lr||Math.abs(U[0][1]-U[1][1])>Lr)||delete Xr[Z]})(b,v,T,A),(function(B,F,O,z){var U,Z,Q,G,rt,et,ct,Lt,qt,ne,ve,zt,ue=ea.length,ut=!0;for(U=0;U<ue;++U)if(Z=ea[U]){for(Q=Z.site,G=(rt=Z.halfedges).length;G--;)Xr[rt[G]]||rt.splice(G,1);for(G=0,et=rt.length;G<et;)ve=(ne=q3(Z,Xr[rt[G]]))[0],zt=ne[1],Lt=(ct=Fl(Z,Xr[rt[++G%et]]))[0],qt=ct[1],(Math.abs(ve-Lt)>Lr||Math.abs(zt-qt)>Lr)&&(rt.splice(G,0,Xr.push(pc(Q,ne,Math.abs(ve-B)<Lr&&z-zt>Lr?[B,Math.abs(Lt-B)<Lr?qt:z]:Math.abs(zt-z)<Lr&&O-ve>Lr?[Math.abs(qt-z)<Lr?Lt:O,z]:Math.abs(ve-O)<Lr&&zt-F>Lr?[O,Math.abs(Lt-O)<Lr?qt:F]:Math.abs(zt-F)<Lr&&ve-B>Lr?[Math.abs(qt-F)<Lr?Lt:B,F]:null))-1),++et);et&&(ut=!1)}if(ut){var xt,ae,Jt,Kt=1/0;for(U=0,ut=null;U<ue;++U)(Z=ea[U])&&(Jt=(xt=(Q=Z.site)[0]-B)*xt+(ae=Q[1]-F)*ae)<Kt&&(Kt=Jt,ut=Z);if(ut){var Le=[B,F],Ie=[B,z],vn=[O,z],tr=[O,F];ut.halfedges.push(Xr.push(pc(Q=ut.site,Le,Ie))-1,Xr.push(pc(Q,Ie,vn))-1,Xr.push(pc(Q,vn,tr))-1,Xr.push(pc(Q,tr,Le))-1)}}for(U=0;U<ue;++U)(Z=ea[U])&&(Z.halfedges.length||delete ea[U])})(b,v,T,A)}this.edges=Xr,this.cells=ea,jl=Sf=Xr=ea=null}function b_(){var n=en,i=p_,a=null;function s(l){return new Td(l.map((function(f,b){var v=[Math.round(n(f,b,l)/Lr)*Lr,Math.round(i(f,b,l)/Lr)*Lr];return v.index=b,v.data=f,v})),a)}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:U3(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:U3(+l),s):i},s.extent=function(l){return arguments.length?(a=l==null?null:[[+l[0][0],+l[0][1]],[+l[1][0],+l[1][1]]],s):a&&[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},s.size=function(l){return arguments.length?(a=l==null?null:[[0,0],[+l[0],+l[1]]],s):a&&[a[1][0]-a[0][0],a[1][1]-a[0][1]]},s}function Ed(n){return function(){return n}}function __(n,i,a){this.target=n,this.type=i,this.transform=a}function Ns(n,i,a){this.k=n,this.x=i,this.y=a}Td.prototype={constructor:Td,polygons:function(){var n=this.edges;return this.cells.map((function(i){var a=i.halfedges.map((function(s){return Fl(i,n[s])}));return a.data=i.site.data,a}))},triangles:function(){var n=[],i=this.edges;return this.cells.forEach((function(a,s){if(f=(l=a.halfedges).length)for(var l,f,b,v=a.site,T=-1,A=i[l[f-1]],B=A.left===v?A.right:A.left;++T<f;)b=B,B=(A=i[l[T]]).left===v?A.right:A.left,b&&B&&s<b.index&&s<B.index&&m_(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,a){for(var s,l,f=this,b=f._found||0,v=f.cells.length;!(l=f.cells[b]);)if(++b>=v)return null;var T=n-l.site[0],A=i-l.site[1],B=T*T+A*A;do l=f.cells[s=b],b=null,l.halfedges.forEach((function(F){var O=f.edges[F],z=O.left;if(z!==l.site&&z||(z=O.right)){var U=n-z[0],Z=i-z[1],Q=U*U+Z*Z;Q<B&&(B=Q,b=z.index)}}));while(b!==null);return f._found=s,a==null||B<=a*a?l.site:null}},Ns.prototype={constructor:Ns,scale:function(n){return n===1?this:new Ns(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new Ns(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 Cd=new Ns(1,0,0);function V3(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Cd;return n.__zoom}function Yl(){pt.stopImmediatePropagation()}function Af(){pt.preventDefault(),pt.stopImmediatePropagation()}function x_(){return!pt.ctrlKey&&!pt.button}function w_(){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 G3(){return this.__zoom||Cd}function k_(){return-pt.deltaY*(pt.deltaMode===1?.05:pt.deltaMode?1:.002)}function T_(){return navigator.maxTouchPoints||"ontouchstart"in this}function E_(n,i,a){var s=n.invertX(i[0][0])-a[0][0],l=n.invertX(i[1][0])-a[1][0],f=n.invertY(i[0][1])-a[0][1],b=n.invertY(i[1][1])-a[1][1];return n.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),b>f?(f+b)/2:Math.min(0,f)||Math.max(0,b))}function C_(){var n,i,a=x_,s=w_,l=E_,f=k_,b=T_,v=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],A=250,B=av,F=rn("start","zoom","end"),O=500,z=0;function U(ut){ut.property("__zoom",G3).on("wheel.zoom",Lt).on("mousedown.zoom",qt).on("dblclick.zoom",ne).filter(b).on("touchstart.zoom",ve).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",ue).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(ut,xt){return(xt=Math.max(v[0],Math.min(v[1],xt)))===ut.k?ut:new Ns(xt,ut.x,ut.y)}function Q(ut,xt,ae){var Jt=xt[0]-ae[0]*ut.k,Kt=xt[1]-ae[1]*ut.k;return Jt===ut.x&&Kt===ut.y?ut:new Ns(ut.k,Jt,Kt)}function G(ut){return[(+ut[0][0]+ +ut[1][0])/2,(+ut[0][1]+ +ut[1][1])/2]}function rt(ut,xt,ae){ut.on("start.zoom",(function(){et(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){et(this,arguments).end()})).tween("zoom",(function(){var Jt=this,Kt=arguments,Le=et(Jt,Kt),Ie=s.apply(Jt,Kt),vn=ae==null?G(Ie):typeof ae=="function"?ae.apply(Jt,Kt):ae,tr=Math.max(Ie[1][0]-Ie[0][0],Ie[1][1]-Ie[0][1]),ir=Jt.__zoom,nn=typeof xt=="function"?xt.apply(Jt,Kt):xt,sr=B(ir.invert(vn).concat(tr/ir.k),nn.invert(vn).concat(tr/nn.k));return function(Mn){if(Mn===1)Mn=nn;else{var Sn=sr(Mn),ur=tr/Sn[2];Mn=new Ns(ur,vn[0]-Sn[0]*ur,vn[1]-Sn[1]*ur)}Le.zoom(null,Mn)}}))}function et(ut,xt,ae){return!ae&&ut.__zooming||new ct(ut,xt)}function ct(ut,xt){this.that=ut,this.args=xt,this.active=0,this.extent=s.apply(ut,xt),this.taps=0}function Lt(){if(a.apply(this,arguments)){var ut=et(this,arguments),xt=this.__zoom,ae=Math.max(v[0],Math.min(v[1],xt.k*Math.pow(2,f.apply(this,arguments)))),Jt=ss(this);if(ut.wheel)ut.mouse[0][0]===Jt[0]&&ut.mouse[0][1]===Jt[1]||(ut.mouse[1]=xt.invert(ut.mouse[0]=Jt)),clearTimeout(ut.wheel);else{if(xt.k===ae)return;ut.mouse=[Jt,xt.invert(Jt)],ya(this),ut.start()}Af(),ut.wheel=setTimeout(Kt,150),ut.zoom("mouse",l(Q(Z(xt,ae),ut.mouse[0],ut.mouse[1]),ut.extent,T))}function Kt(){ut.wheel=null,ut.end()}}function qt(){if(!i&&a.apply(this,arguments)){var ut=et(this,arguments,!0),xt=gr(pt.view).on("mousemove.zoom",Le,!0).on("mouseup.zoom",Ie,!0),ae=ss(this),Jt=pt.clientX,Kt=pt.clientY;Jr(pt.view),Yl(),ut.mouse=[ae,this.__zoom.invert(ae)],ya(this),ut.start()}function Le(){if(Af(),!ut.moved){var vn=pt.clientX-Jt,tr=pt.clientY-Kt;ut.moved=vn*vn+tr*tr>z}ut.zoom("mouse",l(Q(ut.that.__zoom,ut.mouse[0]=ss(ut.that),ut.mouse[1]),ut.extent,T))}function Ie(){xt.on("mousemove.zoom mouseup.zoom",null),Rr(pt.view,ut.moved),Af(),ut.end()}}function ne(){if(a.apply(this,arguments)){var ut=this.__zoom,xt=ss(this),ae=ut.invert(xt),Jt=ut.k*(pt.shiftKey?.5:2),Kt=l(Q(Z(ut,Jt),xt,ae),s.apply(this,arguments),T);Af(),A>0?gr(this).transition().duration(A).call(rt,Kt,xt):gr(this).call(U.transform,Kt)}}function ve(){if(a.apply(this,arguments)){var ut,xt,ae,Jt,Kt=pt.touches,Le=Kt.length,Ie=et(this,arguments,pt.changedTouches.length===Le);for(Yl(),xt=0;xt<Le;++xt)Jt=[Jt=ga(this,Kt,(ae=Kt[xt]).identifier),this.__zoom.invert(Jt),ae.identifier],Ie.touch0?Ie.touch1||Ie.touch0[2]===Jt[2]||(Ie.touch1=Jt,Ie.taps=0):(Ie.touch0=Jt,ut=!0,Ie.taps=1+!!n);n&&(n=clearTimeout(n)),ut&&(Ie.taps<2&&(n=setTimeout((function(){n=null}),O)),ya(this),Ie.start())}}function zt(){if(this.__zooming){var ut,xt,ae,Jt,Kt=et(this,arguments),Le=pt.changedTouches,Ie=Le.length;for(Af(),n&&(n=clearTimeout(n)),Kt.taps=0,ut=0;ut<Ie;++ut)ae=ga(this,Le,(xt=Le[ut]).identifier),Kt.touch0&&Kt.touch0[2]===xt.identifier?Kt.touch0[0]=ae:Kt.touch1&&Kt.touch1[2]===xt.identifier&&(Kt.touch1[0]=ae);if(xt=Kt.that.__zoom,Kt.touch1){var vn=Kt.touch0[0],tr=Kt.touch0[1],ir=Kt.touch1[0],nn=Kt.touch1[1],sr=(sr=ir[0]-vn[0])*sr+(sr=ir[1]-vn[1])*sr,Mn=(Mn=nn[0]-tr[0])*Mn+(Mn=nn[1]-tr[1])*Mn;xt=Z(xt,Math.sqrt(sr/Mn)),ae=[(vn[0]+ir[0])/2,(vn[1]+ir[1])/2],Jt=[(tr[0]+nn[0])/2,(tr[1]+nn[1])/2]}else{if(!Kt.touch0)return;ae=Kt.touch0[0],Jt=Kt.touch0[1]}Kt.zoom("touch",l(Q(xt,ae,Jt),Kt.extent,T))}}function ue(){if(this.__zooming){var ut,xt,ae=et(this,arguments),Jt=pt.changedTouches,Kt=Jt.length;for(Yl(),i&&clearTimeout(i),i=setTimeout((function(){i=null}),O),ut=0;ut<Kt;++ut)xt=Jt[ut],ae.touch0&&ae.touch0[2]===xt.identifier?delete ae.touch0:ae.touch1&&ae.touch1[2]===xt.identifier&&delete ae.touch1;if(ae.touch1&&!ae.touch0&&(ae.touch0=ae.touch1,delete ae.touch1),ae.touch0)ae.touch0[1]=this.__zoom.invert(ae.touch0[0]);else if(ae.end(),ae.taps===2){var Le=gr(this).on("dblclick.zoom");Le&&Le.apply(this,arguments)}}}return U.transform=function(ut,xt,ae){var Jt=ut.selection?ut.selection():ut;Jt.property("__zoom",G3),ut!==Jt?rt(ut,xt,ae):Jt.interrupt().each((function(){et(this,arguments).start().zoom(null,typeof xt=="function"?xt.apply(this,arguments):xt).end()}))},U.scaleBy=function(ut,xt,ae){U.scaleTo(ut,(function(){var Jt=this.__zoom.k,Kt=typeof xt=="function"?xt.apply(this,arguments):xt;return Jt*Kt}),ae)},U.scaleTo=function(ut,xt,ae){U.transform(ut,(function(){var Jt=s.apply(this,arguments),Kt=this.__zoom,Le=ae==null?G(Jt):typeof ae=="function"?ae.apply(this,arguments):ae,Ie=Kt.invert(Le),vn=typeof xt=="function"?xt.apply(this,arguments):xt;return l(Q(Z(Kt,vn),Le,Ie),Jt,T)}),ae)},U.translateBy=function(ut,xt,ae){U.transform(ut,(function(){return l(this.__zoom.translate(typeof xt=="function"?xt.apply(this,arguments):xt,typeof ae=="function"?ae.apply(this,arguments):ae),s.apply(this,arguments),T)}))},U.translateTo=function(ut,xt,ae,Jt){U.transform(ut,(function(){var Kt=s.apply(this,arguments),Le=this.__zoom,Ie=Jt==null?G(Kt):typeof Jt=="function"?Jt.apply(this,arguments):Jt;return l(Cd.translate(Ie[0],Ie[1]).scale(Le.k).translate(typeof xt=="function"?-xt.apply(this,arguments):-xt,typeof ae=="function"?-ae.apply(this,arguments):-ae),Kt,T)}),Jt)},ct.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ut,xt){return this.mouse&&ut!=="mouse"&&(this.mouse[1]=xt.invert(this.mouse[0])),this.touch0&&ut!=="touch"&&(this.touch0[1]=xt.invert(this.touch0[0])),this.touch1&&ut!=="touch"&&(this.touch1[1]=xt.invert(this.touch1[0])),this.that.__zoom=xt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ut){io(new __(U,ut,this.that.__zoom),F.apply,F,[ut,this.that,this.args])}},U.wheelDelta=function(ut){return arguments.length?(f=typeof ut=="function"?ut:Ed(+ut),U):f},U.filter=function(ut){return arguments.length?(a=typeof ut=="function"?ut:Ed(!!ut),U):a},U.touchable=function(ut){return arguments.length?(b=typeof ut=="function"?ut:Ed(!!ut),U):b},U.extent=function(ut){return arguments.length?(s=typeof ut=="function"?ut:Ed([[+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?(A=+ut,U):A},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}V3.prototype=Ns.prototype},681:(M,N,p)=>{M.exports={graphlib:p(574),layout:p(8123),debug:p(7570),util:{time:p(1138).time,notime:p(1138).notime},version:p(8177)}},1207:(M,N,p)=>{var m=p(8436),d=p(4079);M.exports={run:function(x){var y=x.graph().acyclicer==="greedy"?d(x,(function(k){return function(C){return k.edge(C).weight}})(x)):(function(k){var C=[],S={},I={};return m.forEach(k.nodes(),(function L(Y){m.has(I,Y)||(I[Y]=!0,S[Y]=!0,m.forEach(k.outEdges(Y),(function(W){m.has(S,W.w)?C.push(W):L(W.w)})),delete S[Y])})),C})(x);m.forEach(y,(function(k){var C=x.edge(k);x.removeEdge(k),C.forwardName=k.name,C.reversed=!0,x.setEdge(k.w,k.v,C,m.uniqueId("rev"))}))},undo:function(x){m.forEach(x.edges(),(function(y){var k=x.edge(y);if(k.reversed){x.removeEdge(y);var C=k.forwardName;delete k.reversed,delete k.forwardName,x.setEdge(y.w,y.v,k,C)}}))}}},1133:(M,N,p)=>{var m=p(8436),d=p(1138);function x(y,k,C,S,I,L){var Y={width:0,height:0,rank:L,borderType:k},W=I[k][L-1],H=d.addDummyNode(y,"border",Y,C);I[k][L]=H,y.setParent(H,S),W&&y.setEdge(W,H,{weight:1})}M.exports=function(y){m.forEach(y.children(),(function k(C){var S=y.children(C),I=y.node(C);if(S.length&&m.forEach(S,k),m.has(I,"minRank")){I.borderLeft=[],I.borderRight=[];for(var L=I.minRank,Y=I.maxRank+1;L<Y;++L)x(y,"borderLeft","_bl",C,I,L),x(y,"borderRight","_br",C,I,L)}}))}},3258:(M,N,p)=>{var m=p(8436);function d(C){m.forEach(C.nodes(),(function(S){x(C.node(S))})),m.forEach(C.edges(),(function(S){x(C.edge(S))}))}function x(C){var S=C.width;C.width=C.height,C.height=S}function y(C){C.y=-C.y}function k(C){var S=C.x;C.x=C.y,C.y=S}M.exports={adjust:function(C){var S=C.graph().rankdir.toLowerCase();S!=="lr"&&S!=="rl"||d(C)},undo:function(C){var S=C.graph().rankdir.toLowerCase();S!=="bt"&&S!=="rl"||(function(I){m.forEach(I.nodes(),(function(L){y(I.node(L))})),m.forEach(I.edges(),(function(L){var Y=I.edge(L);m.forEach(Y.points,y),m.has(Y,"y")&&y(Y)}))})(C),S!=="lr"&&S!=="rl"||((function(I){m.forEach(I.nodes(),(function(L){k(I.node(L))})),m.forEach(I.edges(),(function(L){var Y=I.edge(L);m.forEach(Y.points,k),m.has(Y,"x")&&k(Y)}))})(C),d(C))}}},7822:M=>{function N(){var d={};d._next=d._prev=d,this._sentinel=d}function p(d){d._prev._next=d._next,d._next._prev=d._prev,delete d._next,delete d._prev}function m(d,x){if(d!=="_next"&&d!=="_prev")return x}M.exports=N,N.prototype.dequeue=function(){var d=this._sentinel,x=d._prev;if(x!==d)return p(x),x},N.prototype.enqueue=function(d){var x=this._sentinel;d._prev&&d._next&&p(d),d._next=x._next,x._next._prev=d,x._next=d,d._prev=x},N.prototype.toString=function(){for(var d=[],x=this._sentinel,y=x._prev;y!==x;)d.push(JSON.stringify(y,m)),y=y._prev;return"["+d.join(", ")+"]"}},7570:(M,N,p)=>{var m=p(8436),d=p(1138),x=p(574).Graph;M.exports={debugOrdering:function(y){var k=d.buildLayerMatrix(y),C=new x({compound:!0,multigraph:!0}).setGraph({});return m.forEach(y.nodes(),(function(S){C.setNode(S,{label:S}),C.setParent(S,"layer"+y.node(S).rank)})),m.forEach(y.edges(),(function(S){C.setEdge(S.v,S.w,{},S.name)})),m.forEach(k,(function(S,I){var L="layer"+I;C.setNode(L,{rank:"same"}),m.reduce(S,(function(Y,W){return C.setEdge(Y,W,{style:"invis"}),W}))})),C}}},574:(M,N,p)=>{var m;try{m=p(8282)}catch{}m||(m=window.graphlib),M.exports=m},4079:(M,N,p)=>{var m=p(8436),d=p(574).Graph,x=p(7822);M.exports=function(S,I){if(S.nodeCount()<=1)return[];var L=(function(W,H){var V=new d,X=0,J=0;m.forEach(W.nodes(),(function(_t){V.setNode(_t,{v:_t,in:0,out:0})})),m.forEach(W.edges(),(function(_t){var dt=V.edge(_t.v,_t.w)||0,At=H(_t),st=dt+At;V.setEdge(_t.v,_t.w,st),J=Math.max(J,V.node(_t.v).out+=At),X=Math.max(X,V.node(_t.w).in+=At)}));var lt=m.range(J+X+3).map((function(){return new x})),nt=X+1;return m.forEach(V.nodes(),(function(_t){C(lt,nt,V.node(_t))})),{graph:V,buckets:lt,zeroIdx:nt}})(S,I||y),Y=(function(W,H,V){for(var X,J=[],lt=H[H.length-1],nt=H[0];W.nodeCount();){for(;X=nt.dequeue();)k(W,H,V,X);for(;X=lt.dequeue();)k(W,H,V,X);if(W.nodeCount()){for(var _t=H.length-2;_t>0;--_t)if(X=H[_t].dequeue()){J=J.concat(k(W,H,V,X,!0));break}}}return J})(L.graph,L.buckets,L.zeroIdx);return m.flatten(m.map(Y,(function(W){return S.outEdges(W.v,W.w)})),!0)};var y=m.constant(1);function k(S,I,L,Y,W){var H=W?[]:void 0;return m.forEach(S.inEdges(Y.v),(function(V){var X=S.edge(V),J=S.node(V.v);W&&H.push({v:V.v,w:V.w}),J.out-=X,C(I,L,J)})),m.forEach(S.outEdges(Y.v),(function(V){var X=S.edge(V),J=V.w,lt=S.node(J);lt.in-=X,C(I,L,lt)})),S.removeNode(Y.v),H}function C(S,I,L){L.out?L.in?S[L.out-L.in+I].enqueue(L):S[S.length-1].enqueue(L):S[0].enqueue(L)}},8123:(M,N,p)=>{var m=p(8436),d=p(1207),x=p(5995),y=p(8093),k=p(1138).normalizeRanks,C=p(4219),S=p(1138).removeEmptyRanks,I=p(2981),L=p(1133),Y=p(3258),W=p(3408),H=p(7873),V=p(1138),X=p(574).Graph;M.exports=function(Rt,ft){var vt=ft&&ft.debugTiming?V.time:V.notime;vt("layout",(function(){var $t=vt(" buildLayoutGraph",(function(){return(function(jt){var ye=new X({multigraph:!0,compound:!0}),pe=St(jt.graph());return ye.setGraph(m.merge({},lt,mt(pe,J),m.pick(pe,nt))),m.forEach(jt.nodes(),(function(de){var Dt=St(jt.node(de));ye.setNode(de,m.defaults(mt(Dt,_t),dt)),ye.setParent(de,jt.parent(de))})),m.forEach(jt.edges(),(function(de){var Dt=St(jt.edge(de));ye.setEdge(de,m.merge({},st,mt(Dt,At),m.pick(Dt,K)))})),ye})(Rt)}));vt(" runLayout",(function(){(function(jt,ye){ye(" makeSpaceForEdgeLabels",(function(){(function(pe){var de=pe.graph();de.ranksep/=2,m.forEach(pe.edges(),(function(Dt){var Xt=pe.edge(Dt);Xt.minlen*=2,Xt.labelpos.toLowerCase()!=="c"&&(de.rankdir==="TB"||de.rankdir==="BT"?Xt.width+=Xt.labeloffset:Xt.height+=Xt.labeloffset)}))})(jt)})),ye(" removeSelfEdges",(function(){(function(pe){m.forEach(pe.edges(),(function(de){if(de.v===de.w){var Dt=pe.node(de.v);Dt.selfEdges||(Dt.selfEdges=[]),Dt.selfEdges.push({e:de,label:pe.edge(de)}),pe.removeEdge(de)}}))})(jt)})),ye(" acyclic",(function(){d.run(jt)})),ye(" nestingGraph.run",(function(){I.run(jt)})),ye(" rank",(function(){y(V.asNonCompoundGraph(jt))})),ye(" injectEdgeLabelProxies",(function(){(function(pe){m.forEach(pe.edges(),(function(de){var Dt=pe.edge(de);if(Dt.width&&Dt.height){var Xt=pe.node(de.v),se={rank:(pe.node(de.w).rank-Xt.rank)/2+Xt.rank,e:de};V.addDummyNode(pe,"edge-proxy",se,"_ep")}}))})(jt)})),ye(" removeEmptyRanks",(function(){S(jt)})),ye(" nestingGraph.cleanup",(function(){I.cleanup(jt)})),ye(" normalizeRanks",(function(){k(jt)})),ye(" assignRankMinMax",(function(){(function(pe){var de=0;m.forEach(pe.nodes(),(function(Dt){var Xt=pe.node(Dt);Xt.borderTop&&(Xt.minRank=pe.node(Xt.borderTop).rank,Xt.maxRank=pe.node(Xt.borderBottom).rank,de=m.max(de,Xt.maxRank))})),pe.graph().maxRank=de})(jt)})),ye(" removeEdgeLabelProxies",(function(){(function(pe){m.forEach(pe.nodes(),(function(de){var Dt=pe.node(de);Dt.dummy==="edge-proxy"&&(pe.edge(Dt.e).labelRank=Dt.rank,pe.removeNode(de))}))})(jt)})),ye(" normalize.run",(function(){x.run(jt)})),ye(" parentDummyChains",(function(){C(jt)})),ye(" addBorderSegments",(function(){L(jt)})),ye(" order",(function(){W(jt)})),ye(" insertSelfEdges",(function(){(function(pe){var de=V.buildLayerMatrix(pe);m.forEach(de,(function(Dt){var Xt=0;m.forEach(Dt,(function(se,ce){var ge=pe.node(se);ge.order=ce+Xt,m.forEach(ge.selfEdges,(function(Ot){V.addDummyNode(pe,"selfedge",{width:Ot.label.width,height:Ot.label.height,rank:ge.rank,order:ce+ ++Xt,e:Ot.e,label:Ot.label},"_se")})),delete ge.selfEdges}))}))})(jt)})),ye(" adjustCoordinateSystem",(function(){Y.adjust(jt)})),ye(" position",(function(){H(jt)})),ye(" positionSelfEdges",(function(){(function(pe){m.forEach(pe.nodes(),(function(de){var Dt=pe.node(de);if(Dt.dummy==="selfedge"){var Xt=pe.node(Dt.e.v),se=Xt.x+Xt.width/2,ce=Xt.y,ge=Dt.x-se,Ot=Xt.height/2;pe.setEdge(Dt.e,Dt.label),pe.removeNode(de),Dt.label.points=[{x:se+2*ge/3,y:ce-Ot},{x:se+5*ge/6,y:ce-Ot},{x:se+ge,y:ce},{x:se+5*ge/6,y:ce+Ot},{x:se+2*ge/3,y:ce+Ot}],Dt.label.x=Dt.x,Dt.label.y=Dt.y}}))})(jt)})),ye(" removeBorderNodes",(function(){(function(pe){m.forEach(pe.nodes(),(function(de){if(pe.children(de).length){var Dt=pe.node(de),Xt=pe.node(Dt.borderTop),se=pe.node(Dt.borderBottom),ce=pe.node(m.last(Dt.borderLeft)),ge=pe.node(m.last(Dt.borderRight));Dt.width=Math.abs(ge.x-ce.x),Dt.height=Math.abs(se.y-Xt.y),Dt.x=ce.x+Dt.width/2,Dt.y=Xt.y+Dt.height/2}})),m.forEach(pe.nodes(),(function(de){pe.node(de).dummy==="border"&&pe.removeNode(de)}))})(jt)})),ye(" normalize.undo",(function(){x.undo(jt)})),ye(" fixupEdgeLabelCoords",(function(){(function(pe){m.forEach(pe.edges(),(function(de){var Dt=pe.edge(de);if(m.has(Dt,"x"))switch(Dt.labelpos!=="l"&&Dt.labelpos!=="r"||(Dt.width-=Dt.labeloffset),Dt.labelpos){case"l":Dt.x-=Dt.width/2+Dt.labeloffset;break;case"r":Dt.x+=Dt.width/2+Dt.labeloffset}}))})(jt)})),ye(" undoCoordinateSystem",(function(){Y.undo(jt)})),ye(" translateGraph",(function(){(function(pe){var de=Number.POSITIVE_INFINITY,Dt=0,Xt=Number.POSITIVE_INFINITY,se=0,ce=pe.graph(),ge=ce.marginx||0,Ot=ce.marginy||0;function $e(le){var Yt=le.x,te=le.y,at=le.width,re=le.height;de=Math.min(de,Yt-at/2),Dt=Math.max(Dt,Yt+at/2),Xt=Math.min(Xt,te-re/2),se=Math.max(se,te+re/2)}m.forEach(pe.nodes(),(function(le){$e(pe.node(le))})),m.forEach(pe.edges(),(function(le){var Yt=pe.edge(le);m.has(Yt,"x")&&$e(Yt)})),de-=ge,Xt-=Ot,m.forEach(pe.nodes(),(function(le){var Yt=pe.node(le);Yt.x-=de,Yt.y-=Xt})),m.forEach(pe.edges(),(function(le){var Yt=pe.edge(le);m.forEach(Yt.points,(function(te){te.x-=de,te.y-=Xt})),m.has(Yt,"x")&&(Yt.x-=de),m.has(Yt,"y")&&(Yt.y-=Xt)})),ce.width=Dt-de+ge,ce.height=se-Xt+Ot})(jt)})),ye(" assignNodeIntersects",(function(){(function(pe){m.forEach(pe.edges(),(function(de){var Dt,Xt,se=pe.edge(de),ce=pe.node(de.v),ge=pe.node(de.w);se.points?(Dt=se.points[0],Xt=se.points[se.points.length-1]):(se.points=[],Dt=ge,Xt=ce),se.points.unshift(V.intersectRect(ce,Dt)),se.points.push(V.intersectRect(ge,Xt))}))})(jt)})),ye(" reversePoints",(function(){(function(pe){m.forEach(pe.edges(),(function(de){var Dt=pe.edge(de);Dt.reversed&&Dt.points.reverse()}))})(jt)})),ye(" acyclic.undo",(function(){d.undo(jt)}))})($t,vt)})),vt(" updateInputGraph",(function(){(function(jt,ye){m.forEach(jt.nodes(),(function(pe){var de=jt.node(pe),Dt=ye.node(pe);de&&(de.x=Dt.x,de.y=Dt.y,ye.children(pe).length&&(de.width=Dt.width,de.height=Dt.height))})),m.forEach(jt.edges(),(function(pe){var de=jt.edge(pe),Dt=ye.edge(pe);de.points=Dt.points,m.has(Dt,"x")&&(de.x=Dt.x,de.y=Dt.y)})),jt.graph().width=ye.graph().width,jt.graph().height=ye.graph().height})(Rt,$t)}))}))};var J=["nodesep","edgesep","ranksep","marginx","marginy"],lt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},nt=["acyclicer","ranker","rankdir","align"],_t=["width","height"],dt={width:0,height:0},At=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function mt(Rt,ft){return m.mapValues(m.pick(Rt,ft),Number)}function St(Rt){var ft={};return m.forEach(Rt,(function(vt,$t){ft[$t.toLowerCase()]=vt})),ft}},8436:(M,N,p)=>{var m;try{m={cloneDeep:p(361),constant:p(5703),defaults:p(1747),each:p(6073),filter:p(3105),find:p(3311),flatten:p(5564),forEach:p(4486),forIn:p(2620),has:p(8721),isUndefined:p(2353),last:p(928),map:p(5161),mapValues:p(6604),max:p(6162),merge:p(3857),min:p(3632),minBy:p(2762),now:p(7771),pick:p(9722),range:p(6026),reduce:p(4061),sortBy:p(9734),uniqueId:p(3955),values:p(2628),zipObject:p(7287)}}catch{}m||(m=window._),M.exports=m},2981:(M,N,p)=>{var m=p(8436),d=p(1138);function x(y,k,C,S,I,L,Y){var W=y.children(Y);if(W.length){var H=d.addBorderNode(y,"_bt"),V=d.addBorderNode(y,"_bb"),X=y.node(Y);y.setParent(H,Y),X.borderTop=H,y.setParent(V,Y),X.borderBottom=V,m.forEach(W,(function(J){x(y,k,C,S,I,L,J);var lt=y.node(J),nt=lt.borderTop?lt.borderTop:J,_t=lt.borderBottom?lt.borderBottom:J,dt=lt.borderTop?S:2*S,At=nt!==_t?1:I-L[Y]+1;y.setEdge(H,nt,{weight:dt,minlen:At,nestingEdge:!0}),y.setEdge(_t,V,{weight:dt,minlen:At,nestingEdge:!0})})),y.parent(Y)||y.setEdge(k,H,{weight:0,minlen:I+L[Y]})}else Y!==k&&y.setEdge(k,Y,{weight:0,minlen:C})}M.exports={run:function(y){var k=d.addDummyNode(y,"root",{},"_root"),C=(function(Y){var W={};function H(V,X){var J=Y.children(V);J&&J.length&&m.forEach(J,(function(lt){H(lt,X+1)})),W[V]=X}return m.forEach(Y.children(),(function(V){H(V,1)})),W})(y),S=m.max(m.values(C))-1,I=2*S+1;y.graph().nestingRoot=k,m.forEach(y.edges(),(function(Y){y.edge(Y).minlen*=I}));var L=(function(Y){return m.reduce(Y.edges(),(function(W,H){return W+Y.edge(H).weight}),0)})(y)+1;m.forEach(y.children(),(function(Y){x(y,k,I,L,S,C,Y)})),y.graph().nodeRankFactor=I},cleanup:function(y){var k=y.graph();y.removeNode(k.nestingRoot),delete k.nestingRoot,m.forEach(y.edges(),(function(C){y.edge(C).nestingEdge&&y.removeEdge(C)}))}}},5995:(M,N,p)=>{var m=p(8436),d=p(1138);M.exports={run:function(x){x.graph().dummyChains=[],m.forEach(x.edges(),(function(y){(function(k,C){var S,I,L,Y=C.v,W=k.node(Y).rank,H=C.w,V=k.node(H).rank,X=C.name,J=k.edge(C),lt=J.labelRank;if(V!==W+1){for(k.removeEdge(C),L=0,++W;W<V;++L,++W)J.points=[],I={width:0,height:0,edgeLabel:J,edgeObj:C,rank:W},S=d.addDummyNode(k,"edge",I,"_d"),W===lt&&(I.width=J.width,I.height=J.height,I.dummy="edge-label",I.labelpos=J.labelpos),k.setEdge(Y,S,{weight:J.weight},X),L===0&&k.graph().dummyChains.push(S),Y=S;k.setEdge(Y,H,{weight:J.weight},X)}})(x,y)}))},undo:function(x){m.forEach(x.graph().dummyChains,(function(y){var k,C=x.node(y),S=C.edgeLabel;for(x.setEdge(C.edgeObj,S);C.dummy;)k=x.successors(y)[0],x.removeNode(y),S.points.push({x:C.x,y:C.y}),C.dummy==="edge-label"&&(S.x=C.x,S.y=C.y,S.width=C.width,S.height=C.height),y=k,C=x.node(y)}))}}},5093:(M,N,p)=>{var m=p(8436);M.exports=function(d,x,y){var k,C={};m.forEach(y,(function(S){for(var I,L,Y=d.parent(S);Y;){if((I=d.parent(Y))?(L=C[I],C[I]=Y):(L=k,k=Y),L&&L!==Y)return void x.setEdge(L,Y);Y=I}}))}},5439:(M,N,p)=>{var m=p(8436);M.exports=function(d,x){return m.map(x,(function(y){var k=d.inEdges(y);if(k.length){var C=m.reduce(k,(function(S,I){var L=d.edge(I),Y=d.node(I.v);return{sum:S.sum+L.weight*Y.order,weight:S.weight+L.weight}}),{sum:0,weight:0});return{v:y,barycenter:C.sum/C.weight,weight:C.weight}}return{v:y}}))}},3128:(M,N,p)=>{var m=p(8436),d=p(574).Graph;M.exports=function(x,y,k){var C=(function(I){for(var L;I.hasNode(L=m.uniqueId("_root")););return L})(x),S=new d({compound:!0}).setGraph({root:C}).setDefaultNodeLabel((function(I){return x.node(I)}));return m.forEach(x.nodes(),(function(I){var L=x.node(I),Y=x.parent(I);(L.rank===y||L.minRank<=y&&y<=L.maxRank)&&(S.setNode(I),S.setParent(I,Y||C),m.forEach(x[k](I),(function(W){var H=W.v===I?W.w:W.v,V=S.edge(H,I),X=m.isUndefined(V)?0:V.weight;S.setEdge(H,I,{weight:x.edge(W).weight+X})})),m.has(L,"minRank")&&S.setNode(I,{borderLeft:L.borderLeft[y],borderRight:L.borderRight[y]}))})),S}},6630:(M,N,p)=>{var m=p(8436);function d(x,y,k){for(var C=m.zipObject(k,m.map(k,(function(H,V){return V}))),S=m.flatten(m.map(y,(function(H){return m.sortBy(m.map(x.outEdges(H),(function(V){return{pos:C[V.w],weight:x.edge(V).weight}})),"pos")})),!0),I=1;I<k.length;)I<<=1;var L=2*I-1;I-=1;var Y=m.map(new Array(L),(function(){return 0})),W=0;return m.forEach(S.forEach((function(H){var V=H.pos+I;Y[V]+=H.weight;for(var X=0;V>0;)V%2&&(X+=Y[V+1]),Y[V=V-1>>1]+=H.weight;W+=H.weight*X}))),W}M.exports=function(x,y){for(var k=0,C=1;C<y.length;++C)k+=d(x,y[C-1],y[C]);return k}},3408:(M,N,p)=>{var m=p(8436),d=p(2588),x=p(6630),y=p(1026),k=p(3128),C=p(5093),S=p(574).Graph,I=p(1138);function L(H,V,X){return m.map(V,(function(J){return k(H,J,X)}))}function Y(H,V){var X=new S;m.forEach(H,(function(J){var lt=J.graph().root,nt=y(J,lt,X,V);m.forEach(nt.vs,(function(_t,dt){J.node(_t).order=dt})),C(J,X,nt.vs)}))}function W(H,V){m.forEach(V,(function(X){m.forEach(X,(function(J,lt){H.node(J).order=lt}))}))}M.exports=function(H){var V=I.maxRank(H),X=L(H,m.range(1,V+1),"inEdges"),J=L(H,m.range(V-1,-1,-1),"outEdges"),lt=d(H);W(H,lt);for(var nt,_t=Number.POSITIVE_INFINITY,dt=0,At=0;At<4;++dt,++At){Y(dt%2?X:J,dt%4>=2),lt=I.buildLayerMatrix(H);var st=x(H,lt);st<_t&&(At=0,nt=m.cloneDeep(lt),_t=st)}W(H,nt)}},2588:(M,N,p)=>{var m=p(8436);M.exports=function(d){var x={},y=m.filter(d.nodes(),(function(I){return!d.children(I).length})),k=m.max(m.map(y,(function(I){return d.node(I).rank}))),C=m.map(m.range(k+1),(function(){return[]})),S=m.sortBy(y,(function(I){return d.node(I).rank}));return m.forEach(S,(function I(L){if(!m.has(x,L)){x[L]=!0;var Y=d.node(L);C[Y.rank].push(L),m.forEach(d.successors(L),I)}})),C}},9567:(M,N,p)=>{var m=p(8436);M.exports=function(d,x){var y={};return m.forEach(d,(function(k,C){var S=y[k.v]={indegree:0,in:[],out:[],vs:[k.v],i:C};m.isUndefined(k.barycenter)||(S.barycenter=k.barycenter,S.weight=k.weight)})),m.forEach(x.edges(),(function(k){var C=y[k.v],S=y[k.w];m.isUndefined(C)||m.isUndefined(S)||(S.indegree++,C.out.push(y[k.w]))})),(function(k){var C=[];function S(Y){return function(W){var H,V,X,J;W.merged||(m.isUndefined(W.barycenter)||m.isUndefined(Y.barycenter)||W.barycenter>=Y.barycenter)&&(V=W,X=0,J=0,(H=Y).weight&&(X+=H.barycenter*H.weight,J+=H.weight),V.weight&&(X+=V.barycenter*V.weight,J+=V.weight),H.vs=V.vs.concat(H.vs),H.barycenter=X/J,H.weight=J,H.i=Math.min(V.i,H.i),V.merged=!0)}}function I(Y){return function(W){W.in.push(Y),--W.indegree==0&&k.push(W)}}for(;k.length;){var L=k.pop();C.push(L),m.forEach(L.in.reverse(),S(L)),m.forEach(L.out,I(L))}return m.map(m.filter(C,(function(Y){return!Y.merged})),(function(Y){return m.pick(Y,["vs","i","barycenter","weight"])}))})(m.filter(y,(function(k){return!k.indegree})))}},1026:(M,N,p)=>{var m=p(8436),d=p(5439),x=p(9567),y=p(7304);M.exports=function k(C,S,I,L){var Y=C.children(S),W=C.node(S),H=W?W.borderLeft:void 0,V=W?W.borderRight:void 0,X={};H&&(Y=m.filter(Y,(function(At){return At!==H&&At!==V})));var J=d(C,Y);m.forEach(J,(function(At){if(C.children(At.v).length){var st=k(C,At.v,I,L);X[At.v]=st,m.has(st,"barycenter")&&(K=At,mt=st,m.isUndefined(K.barycenter)?(K.barycenter=mt.barycenter,K.weight=mt.weight):(K.barycenter=(K.barycenter*K.weight+mt.barycenter*mt.weight)/(K.weight+mt.weight),K.weight+=mt.weight))}var K,mt}));var lt=x(J,I);(function(At,st){m.forEach(At,(function(K){K.vs=m.flatten(K.vs.map((function(mt){return st[mt]?st[mt].vs:mt})),!0)}))})(lt,X);var nt=y(lt,L);if(H&&(nt.vs=m.flatten([H,nt.vs,V],!0),C.predecessors(H).length)){var _t=C.node(C.predecessors(H)[0]),dt=C.node(C.predecessors(V)[0]);m.has(nt,"barycenter")||(nt.barycenter=0,nt.weight=0),nt.barycenter=(nt.barycenter*nt.weight+_t.order+dt.order)/(nt.weight+2),nt.weight+=2}return nt}},7304:(M,N,p)=>{var m=p(8436),d=p(1138);function x(y,k,C){for(var S;k.length&&(S=m.last(k)).i<=C;)k.pop(),y.push(S.vs),C++;return C}M.exports=function(y,k){var C,S=d.partition(y,(function(J){return m.has(J,"barycenter")})),I=S.lhs,L=m.sortBy(S.rhs,(function(J){return-J.i})),Y=[],W=0,H=0,V=0;I.sort((C=!!k,function(J,lt){return J.barycenter<lt.barycenter?-1:J.barycenter>lt.barycenter?1:C?lt.i-J.i:J.i-lt.i})),V=x(Y,L,V),m.forEach(I,(function(J){V+=J.vs.length,Y.push(J.vs),W+=J.barycenter*J.weight,H+=J.weight,V=x(Y,L,V)}));var X={vs:m.flatten(Y,!0)};return H&&(X.barycenter=W/H,X.weight=H),X}},4219:(M,N,p)=>{var m=p(8436);M.exports=function(d){var x=(function(y){var k={},C=0;return m.forEach(y.children(),(function S(I){var L=C;m.forEach(y.children(I),S),k[I]={low:L,lim:C++}})),k})(d);m.forEach(d.graph().dummyChains,(function(y){for(var k=d.node(y),C=k.edgeObj,S=(function(V,X,J,lt){var nt,_t,dt=[],At=[],st=Math.min(X[J].low,X[lt].low),K=Math.max(X[J].lim,X[lt].lim);nt=J;do nt=V.parent(nt),dt.push(nt);while(nt&&(X[nt].low>st||K>X[nt].lim));for(_t=nt,nt=lt;(nt=V.parent(nt))!==_t;)At.push(nt);return{path:dt.concat(At.reverse()),lca:_t}})(d,x,C.v,C.w),I=S.path,L=S.lca,Y=0,W=I[Y],H=!0;y!==C.w;){if(k=d.node(y),H){for(;(W=I[Y])!==L&&d.node(W).maxRank<k.rank;)Y++;W===L&&(H=!1)}if(!H){for(;Y<I.length-1&&d.node(W=I[Y+1]).minRank<=k.rank;)Y++;W=I[Y]}d.setParent(y,W),y=d.successors(y)[0]}}))}},3573:(M,N,p)=>{var m=p(8436),d=p(574).Graph,x=p(1138);function y(V,X){var J={};return m.reduce(X,(function(lt,nt){var _t=0,dt=0,At=lt.length,st=m.last(nt);return m.forEach(nt,(function(K,mt){var St=(function(ft,vt){if(ft.node(vt).dummy)return m.find(ft.predecessors(vt),(function($t){return ft.node($t).dummy}))})(V,K),Rt=St?V.node(St).order:At;(St||K===st)&&(m.forEach(nt.slice(dt,mt+1),(function(ft){m.forEach(V.predecessors(ft),(function(vt){var $t=V.node(vt),jt=$t.order;!(jt<_t||Rt<jt)||$t.dummy&&V.node(ft).dummy||C(J,vt,ft)}))})),dt=mt+1,_t=Rt)})),nt})),J}function k(V,X){var J={};function lt(nt,_t,dt,At,st){var K;m.forEach(m.range(_t,dt),(function(mt){K=nt[mt],V.node(K).dummy&&m.forEach(V.predecessors(K),(function(St){var Rt=V.node(St);Rt.dummy&&(Rt.order<At||Rt.order>st)&&C(J,St,K)}))}))}return m.reduce(X,(function(nt,_t){var dt,At=-1,st=0;return m.forEach(_t,(function(K,mt){if(V.node(K).dummy==="border"){var St=V.predecessors(K);St.length&&(dt=V.node(St[0]).order,lt(_t,st,mt,At,dt),st=mt,At=dt)}lt(_t,st,_t.length,dt,nt.length)})),_t})),J}function C(V,X,J){if(X>J){var lt=X;X=J,J=lt}var nt=V[X];nt||(V[X]=nt={}),nt[J]=!0}function S(V,X,J){if(X>J){var lt=X;X=J,J=lt}return m.has(V[X],J)}function I(V,X,J,lt){var nt={},_t={},dt={};return m.forEach(X,(function(At){m.forEach(At,(function(st,K){nt[st]=st,_t[st]=st,dt[st]=K}))})),m.forEach(X,(function(At){var st=-1;m.forEach(At,(function(K){var mt=lt(K);if(mt.length){mt=m.sortBy(mt,(function($t){return dt[$t]}));for(var St=(mt.length-1)/2,Rt=Math.floor(St),ft=Math.ceil(St);Rt<=ft;++Rt){var vt=mt[Rt];_t[K]===K&&st<dt[vt]&&!S(J,K,vt)&&(_t[vt]=K,_t[K]=nt[K]=nt[vt],st=dt[vt])}}}))})),{root:nt,align:_t}}function L(V,X,J,lt,nt){var _t={},dt=(function(K,mt,St,Rt){var ft=new d,vt=K.graph(),$t=(function(jt,ye,pe){return function(de,Dt,Xt){var se,ce=de.node(Dt),ge=de.node(Xt),Ot=0;if(Ot+=ce.width/2,m.has(ce,"labelpos"))switch(ce.labelpos.toLowerCase()){case"l":se=-ce.width/2;break;case"r":se=ce.width/2}if(se&&(Ot+=pe?se:-se),se=0,Ot+=(ce.dummy?ye:jt)/2,Ot+=(ge.dummy?ye:jt)/2,Ot+=ge.width/2,m.has(ge,"labelpos"))switch(ge.labelpos.toLowerCase()){case"l":se=ge.width/2;break;case"r":se=-ge.width/2}return se&&(Ot+=pe?se:-se),se=0,Ot}})(vt.nodesep,vt.edgesep,Rt);return m.forEach(mt,(function(jt){var ye;m.forEach(jt,(function(pe){var de=St[pe];if(ft.setNode(de),ye){var Dt=St[ye],Xt=ft.edge(Dt,de);ft.setEdge(Dt,de,Math.max($t(K,pe,ye),Xt||0))}ye=pe}))})),ft})(V,X,J,nt),At=nt?"borderLeft":"borderRight";function st(K,mt){for(var St=dt.nodes(),Rt=St.pop(),ft={};Rt;)ft[Rt]?K(Rt):(ft[Rt]=!0,St.push(Rt),St=St.concat(mt(Rt))),Rt=St.pop()}return st((function(K){_t[K]=dt.inEdges(K).reduce((function(mt,St){return Math.max(mt,_t[St.v]+dt.edge(St))}),0)}),dt.predecessors.bind(dt)),st((function(K){var mt=dt.outEdges(K).reduce((function(Rt,ft){return Math.min(Rt,_t[ft.w]-dt.edge(ft))}),Number.POSITIVE_INFINITY),St=V.node(K);mt!==Number.POSITIVE_INFINITY&&St.borderType!==At&&(_t[K]=Math.max(_t[K],mt))}),dt.successors.bind(dt)),m.forEach(lt,(function(K){_t[K]=_t[J[K]]})),_t}function Y(V,X){return m.minBy(m.values(X),(function(J){var lt=Number.NEGATIVE_INFINITY,nt=Number.POSITIVE_INFINITY;return m.forIn(J,(function(_t,dt){var At=(function(st,K){return st.node(K).width})(V,dt)/2;lt=Math.max(_t+At,lt),nt=Math.min(_t-At,nt)})),lt-nt}))}function W(V,X){var J=m.values(X),lt=m.min(J),nt=m.max(J);m.forEach(["u","d"],(function(_t){m.forEach(["l","r"],(function(dt){var At,st=_t+dt,K=V[st];if(K!==X){var mt=m.values(K);(At=dt==="l"?lt-m.min(mt):nt-m.max(mt))&&(V[st]=m.mapValues(K,(function(St){return St+At})))}}))}))}function H(V,X){return m.mapValues(V.ul,(function(J,lt){if(X)return V[X.toLowerCase()][lt];var nt=m.sortBy(m.map(V,lt));return(nt[1]+nt[2])/2}))}M.exports={positionX:function(V){var X,J=x.buildLayerMatrix(V),lt=m.merge(y(V,J),k(V,J)),nt={};m.forEach(["u","d"],(function(dt){X=dt==="u"?J:m.values(J).reverse(),m.forEach(["l","r"],(function(At){At==="r"&&(X=m.map(X,(function(St){return m.values(St).reverse()})));var st=(dt==="u"?V.predecessors:V.successors).bind(V),K=I(0,X,lt,st),mt=L(V,X,K.root,K.align,At==="r");At==="r"&&(mt=m.mapValues(mt,(function(St){return-St}))),nt[dt+At]=mt}))}));var _t=Y(V,nt);return W(nt,_t),H(nt,V.graph().align)},findType1Conflicts:y,findType2Conflicts:k,addConflict:C,hasConflict:S,verticalAlignment:I,horizontalCompaction:L,alignCoordinates:W,findSmallestWidthAlignment:Y,balance:H}},7873:(M,N,p)=>{var m=p(8436),d=p(1138),x=p(3573).positionX;M.exports=function(y){(function(k){var C=d.buildLayerMatrix(k),S=k.graph().ranksep,I=0;m.forEach(C,(function(L){var Y=m.max(m.map(L,(function(W){return k.node(W).height})));m.forEach(L,(function(W){k.node(W).y=I+Y/2})),I+=Y+S}))})(y=d.asNonCompoundGraph(y)),m.forEach(x(y),(function(k,C){y.node(C).x=k}))}},300:(M,N,p)=>{var m=p(8436),d=p(574).Graph,x=p(6681).slack;function y(S,I){return m.forEach(S.nodes(),(function L(Y){m.forEach(I.nodeEdges(Y),(function(W){var H=W.v,V=Y===H?W.w:H;S.hasNode(V)||x(I,W)||(S.setNode(V,{}),S.setEdge(Y,V,{}),L(V))}))})),S.nodeCount()}function k(S,I){return m.minBy(I.edges(),(function(L){if(S.hasNode(L.v)!==S.hasNode(L.w))return x(I,L)}))}function C(S,I,L){m.forEach(S.nodes(),(function(Y){I.node(Y).rank+=L}))}M.exports=function(S){var I,L,Y=new d({directed:!1}),W=S.nodes()[0],H=S.nodeCount();for(Y.setNode(W,{});y(Y,S)<H;)I=k(Y,S),L=Y.hasNode(I.v)?x(S,I):-x(S,I),C(Y,S,L);return Y}},8093:(M,N,p)=>{var m=p(6681).longestPath,d=p(300),x=p(2472);M.exports=function(k){switch(k.graph().ranker){case"network-simplex":default:(function(C){x(C)})(k);break;case"tight-tree":(function(C){m(C),d(C)})(k);break;case"longest-path":y(k)}};var y=m},2472:(M,N,p)=>{var m=p(8436),d=p(300),x=p(6681).slack,y=p(6681).longestPath,k=p(574).alg.preorder,C=p(574).alg.postorder,S=p(1138).simplify;function I(nt){nt=S(nt),y(nt);var _t,dt=d(nt);for(W(dt),L(dt,nt);_t=V(dt);)J(dt,nt,_t,X(dt,nt,_t))}function L(nt,_t){var dt=C(nt,nt.nodes());dt=dt.slice(0,dt.length-1),m.forEach(dt,(function(At){(function(st,K,mt){var St=st.node(mt).parent;st.edge(mt,St).cutvalue=Y(st,K,mt)})(nt,_t,At)}))}function Y(nt,_t,dt){var At=nt.node(dt).parent,st=!0,K=_t.edge(dt,At),mt=0;return K||(st=!1,K=_t.edge(At,dt)),mt=K.weight,m.forEach(_t.nodeEdges(dt),(function(St){var Rt,ft,vt=St.v===dt,$t=vt?St.w:St.v;if($t!==At){var jt=vt===st,ye=_t.edge(St).weight;if(mt+=jt?ye:-ye,Rt=dt,ft=$t,nt.hasEdge(Rt,ft)){var pe=nt.edge(dt,$t).cutvalue;mt+=jt?-pe:pe}}})),mt}function W(nt,_t){arguments.length<2&&(_t=nt.nodes()[0]),H(nt,{},1,_t)}function H(nt,_t,dt,At,st){var K=dt,mt=nt.node(At);return _t[At]=!0,m.forEach(nt.neighbors(At),(function(St){m.has(_t,St)||(dt=H(nt,_t,dt,St,At))})),mt.low=K,mt.lim=dt++,st?mt.parent=st:delete mt.parent,dt}function V(nt){return m.find(nt.edges(),(function(_t){return nt.edge(_t).cutvalue<0}))}function X(nt,_t,dt){var At=dt.v,st=dt.w;_t.hasEdge(At,st)||(At=dt.w,st=dt.v);var K=nt.node(At),mt=nt.node(st),St=K,Rt=!1;K.lim>mt.lim&&(St=mt,Rt=!0);var ft=m.filter(_t.edges(),(function(vt){return Rt===lt(0,nt.node(vt.v),St)&&Rt!==lt(0,nt.node(vt.w),St)}));return m.minBy(ft,(function(vt){return x(_t,vt)}))}function J(nt,_t,dt,At){var st=dt.v,K=dt.w;nt.removeEdge(st,K),nt.setEdge(At.v,At.w,{}),W(nt),L(nt,_t),(function(mt,St){var Rt=m.find(mt.nodes(),(function(vt){return!St.node(vt).parent})),ft=k(mt,Rt);ft=ft.slice(1),m.forEach(ft,(function(vt){var $t=mt.node(vt).parent,jt=St.edge(vt,$t),ye=!1;jt||(jt=St.edge($t,vt),ye=!0),St.node(vt).rank=St.node($t).rank+(ye?jt.minlen:-jt.minlen)}))})(nt,_t)}function lt(nt,_t,dt){return dt.low<=_t.lim&&_t.lim<=dt.lim}M.exports=I,I.initLowLimValues=W,I.initCutValues=L,I.calcCutValue=Y,I.leaveEdge=V,I.enterEdge=X,I.exchangeEdges=J},6681:(M,N,p)=>{var m=p(8436);M.exports={longestPath:function(d){var x={};m.forEach(d.sources(),(function y(k){var C=d.node(k);if(m.has(x,k))return C.rank;x[k]=!0;var S=m.min(m.map(d.outEdges(k),(function(I){return y(I.w)-d.edge(I).minlen})));return S!==Number.POSITIVE_INFINITY&&S!=null||(S=0),C.rank=S}))},slack:function(d,x){return d.node(x.w).rank-d.node(x.v).rank-d.edge(x).minlen}}},1138:(M,N,p)=>{var m=p(8436),d=p(574).Graph;function x(k,C,S,I){var L;do L=m.uniqueId(I);while(k.hasNode(L));return S.dummy=C,k.setNode(L,S),L}function y(k){return m.max(m.map(k.nodes(),(function(C){var S=k.node(C).rank;if(!m.isUndefined(S))return S})))}M.exports={addDummyNode:x,simplify:function(k){var C=new d().setGraph(k.graph());return m.forEach(k.nodes(),(function(S){C.setNode(S,k.node(S))})),m.forEach(k.edges(),(function(S){var I=C.edge(S.v,S.w)||{weight:0,minlen:1},L=k.edge(S);C.setEdge(S.v,S.w,{weight:I.weight+L.weight,minlen:Math.max(I.minlen,L.minlen)})})),C},asNonCompoundGraph:function(k){var C=new d({multigraph:k.isMultigraph()}).setGraph(k.graph());return m.forEach(k.nodes(),(function(S){k.children(S).length||C.setNode(S,k.node(S))})),m.forEach(k.edges(),(function(S){C.setEdge(S,k.edge(S))})),C},successorWeights:function(k){var C=m.map(k.nodes(),(function(S){var I={};return m.forEach(k.outEdges(S),(function(L){I[L.w]=(I[L.w]||0)+k.edge(L).weight})),I}));return m.zipObject(k.nodes(),C)},predecessorWeights:function(k){var C=m.map(k.nodes(),(function(S){var I={};return m.forEach(k.inEdges(S),(function(L){I[L.v]=(I[L.v]||0)+k.edge(L).weight})),I}));return m.zipObject(k.nodes(),C)},intersectRect:function(k,C){var S,I,L=k.x,Y=k.y,W=C.x-L,H=C.y-Y,V=k.width/2,X=k.height/2;if(!W&&!H)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(H)*V>Math.abs(W)*X?(H<0&&(X=-X),S=X*W/H,I=X):(W<0&&(V=-V),S=V,I=V*H/W),{x:L+S,y:Y+I}},buildLayerMatrix:function(k){var C=m.map(m.range(y(k)+1),(function(){return[]}));return m.forEach(k.nodes(),(function(S){var I=k.node(S),L=I.rank;m.isUndefined(L)||(C[L][I.order]=S)})),C},normalizeRanks:function(k){var C=m.min(m.map(k.nodes(),(function(S){return k.node(S).rank})));m.forEach(k.nodes(),(function(S){var I=k.node(S);m.has(I,"rank")&&(I.rank-=C)}))},removeEmptyRanks:function(k){var C=m.min(m.map(k.nodes(),(function(Y){return k.node(Y).rank}))),S=[];m.forEach(k.nodes(),(function(Y){var W=k.node(Y).rank-C;S[W]||(S[W]=[]),S[W].push(Y)}));var I=0,L=k.graph().nodeRankFactor;m.forEach(S,(function(Y,W){m.isUndefined(Y)&&W%L!=0?--I:I&&m.forEach(Y,(function(H){k.node(H).rank+=I}))}))},addBorderNode:function(k,C,S,I){var L={width:0,height:0};return arguments.length>=4&&(L.rank=S,L.order=I),x(k,"border",L,C)},maxRank:y,partition:function(k,C){var S={lhs:[],rhs:[]};return m.forEach(k,(function(I){C(I)?S.lhs.push(I):S.rhs.push(I)})),S},time:function(k,C){var S=m.now();try{return C()}finally{console.log(k+" time: "+(m.now()-S)+"ms")}},notime:function(k,C){return C()}}},8177:M=>{M.exports="0.8.5"},7856:function(M){M.exports=(function(){var N=Object.hasOwnProperty,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor,y=Object.freeze,k=Object.seal,C=Object.create,S=typeof Reflect<"u"&&Reflect,I=S.apply,L=S.construct;I||(I=function(Ht,Nt,oe){return Ht.apply(Nt,oe)}),y||(y=function(Ht){return Ht}),k||(k=function(Ht){return Ht}),L||(L=function(Ht,Nt){return new(Function.prototype.bind.apply(Ht,[null].concat((function(oe){if(Array.isArray(oe)){for(var Je=0,me=Array(oe.length);Je<oe.length;Je++)me[Je]=oe[Je];return me}return Array.from(oe)})(Nt))))});var Y,W=st(Array.prototype.forEach),H=st(Array.prototype.pop),V=st(Array.prototype.push),X=st(String.prototype.toLowerCase),J=st(String.prototype.match),lt=st(String.prototype.replace),nt=st(String.prototype.indexOf),_t=st(String.prototype.trim),dt=st(RegExp.prototype.test),At=(Y=TypeError,function(){for(var Ht=arguments.length,Nt=Array(Ht),oe=0;oe<Ht;oe++)Nt[oe]=arguments[oe];return L(Y,Nt)});function st(Ht){return function(Nt){for(var oe=arguments.length,Je=Array(oe>1?oe-1:0),me=1;me<oe;me++)Je[me-1]=arguments[me];return I(Ht,Nt,Je)}}function K(Ht,Nt){p&&p(Ht,null);for(var oe=Nt.length;oe--;){var Je=Nt[oe];if(typeof Je=="string"){var me=X(Je);me!==Je&&(m(Nt)||(Nt[oe]=me),Je=me)}Ht[Je]=!0}return Ht}function mt(Ht){var Nt=C(null),oe=void 0;for(oe in Ht)I(N,Ht,[oe])&&(Nt[oe]=Ht[oe]);return Nt}function St(Ht,Nt){for(;Ht!==null;){var oe=x(Ht,Nt);if(oe){if(oe.get)return st(oe.get);if(typeof oe.value=="function")return st(oe.value)}Ht=d(Ht)}return function(Je){return console.warn("fallback value for",Je),null}}var Rt=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ft=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vt=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$t=y(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jt=y(["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"]),ye=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=y(["#text"]),de=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Dt=y(["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"]),Xt=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),se=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ce=k(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ge=k(/<%[\s\S]*|[\s\S]*%>/gm),Ot=k(/^data-[\-\w.\u00B7-\uFFFF]/),$e=k(/^aria-[\-\w]+$/),le=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yt=k(/^(?:\w+script|data):/i),te=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ht){return typeof Ht}:function(Ht){return Ht&&typeof Symbol=="function"&&Ht.constructor===Symbol&&Ht!==Symbol.prototype?"symbol":typeof Ht};function re(Ht){if(Array.isArray(Ht)){for(var Nt=0,oe=Array(Ht.length);Nt<Ht.length;Nt++)oe[Nt]=Ht[Nt];return oe}return Array.from(Ht)}var Mt=function(){return typeof window>"u"?null:window},Vt=function(Ht,Nt){if((Ht===void 0?"undefined":at(Ht))!=="object"||typeof Ht.createPolicy!="function")return null;var oe=null,Je="data-tt-policy-suffix";Nt.currentScript&&Nt.currentScript.hasAttribute(Je)&&(oe=Nt.currentScript.getAttribute(Je));var me="dompurify"+(oe?"#"+oe:"");try{return Ht.createPolicy(me,{createHTML:function(Me){return Me}})}catch{return console.warn("TrustedTypes policy "+me+" could not be created."),null}};return(function Ht(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mt(),oe=function(Bt){return Ht(Bt)};if(oe.version="2.3.5",oe.removed=[],!Nt||!Nt.document||Nt.document.nodeType!==9)return oe.isSupported=!1,oe;var Je=Nt.document,me=Nt.document,Me=Nt.DocumentFragment,un=Nt.HTMLTemplateElement,Ge=Nt.Node,Oe=Nt.Element,Ce=Nt.NodeFilter,tn=Nt.NamedNodeMap,ze=tn===void 0?Nt.NamedNodeMap||Nt.MozNamedAttrMap:tn,Xe=Nt.HTMLFormElement,Ze=Nt.DOMParser,De=Nt.trustedTypes,Pn=Oe.prototype,Se=St(Pn,"cloneNode"),rn=St(Pn,"nextSibling"),gn=St(Pn,"childNodes"),Dr=St(Pn,"parentNode");if(typeof un=="function"){var yn=me.createElement("template");yn.content&&yn.content.ownerDocument&&(me=yn.content.ownerDocument)}var Zn=Vt(De,Je),on=Zn?Zn.createHTML(""):"",fn=me,Qe=fn.implementation,wn=fn.createNodeIterator,bn=fn.createDocumentFragment,jn=fn.getElementsByTagName,Yn=Je.importNode,Cr={};try{Cr=mt(me).documentMode?me.documentMode:{}}catch{}var _n={};oe.isSupported=typeof Dr=="function"&&Qe&&Qe.createHTMLDocument!==void 0&&Cr!==9;var Un=ce,Rn=ge,qn=Ot,Hn=$e,Qn=Yt,Cn=te,Bn=le,sn=null,Fn=K({},[].concat(re(Rt),re(ft),re(vt),re(jt),re(pe))),pn=null,ri=K({},[].concat(re(de),re(Dt),re(Xt),re(se))),pr=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}})),Li=null,Ln=null,wo=!0,ha=!0,ii=!1,Or=!1,Ir=!1,$r=!1,Zr=!1,Sr=!1,Qr=!1,Br=!1,ki=!0,si=!0,er=!1,qr={},fa=null,Kr=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),da=null,ro=K({},["audio","video","img","source","image","track"]),ui=null,an=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$n="http://www.w3.org/1998/Math/MathML",Tn="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml",Wn=Be,pt=!1,Wr=void 0,Zt=["application/xhtml+xml","text/html"],Ti="text/html",$i=void 0,ja=null,io=me.createElement("form"),ko=function(Bt){return Bt instanceof RegExp||Bt instanceof Function},To=function(Bt){ja&&ja===Bt||(Bt&&(Bt===void 0?"undefined":at(Bt))==="object"||(Bt={}),Bt=mt(Bt),sn="ALLOWED_TAGS"in Bt?K({},Bt.ALLOWED_TAGS):Fn,pn="ALLOWED_ATTR"in Bt?K({},Bt.ALLOWED_ATTR):ri,ui="ADD_URI_SAFE_ATTR"in Bt?K(mt(an),Bt.ADD_URI_SAFE_ATTR):an,da="ADD_DATA_URI_TAGS"in Bt?K(mt(ro),Bt.ADD_DATA_URI_TAGS):ro,fa="FORBID_CONTENTS"in Bt?K({},Bt.FORBID_CONTENTS):Kr,Li="FORBID_TAGS"in Bt?K({},Bt.FORBID_TAGS):{},Ln="FORBID_ATTR"in Bt?K({},Bt.FORBID_ATTR):{},qr="USE_PROFILES"in Bt&&Bt.USE_PROFILES,wo=Bt.ALLOW_ARIA_ATTR!==!1,ha=Bt.ALLOW_DATA_ATTR!==!1,ii=Bt.ALLOW_UNKNOWN_PROTOCOLS||!1,Or=Bt.SAFE_FOR_TEMPLATES||!1,Ir=Bt.WHOLE_DOCUMENT||!1,Sr=Bt.RETURN_DOM||!1,Qr=Bt.RETURN_DOM_FRAGMENT||!1,Br=Bt.RETURN_TRUSTED_TYPE||!1,Zr=Bt.FORCE_BODY||!1,ki=Bt.SANITIZE_DOM!==!1,si=Bt.KEEP_CONTENT!==!1,er=Bt.IN_PLACE||!1,Bn=Bt.ALLOWED_URI_REGEXP||Bn,Wn=Bt.NAMESPACE||Be,Bt.CUSTOM_ELEMENT_HANDLING&&ko(Bt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pr.tagNameCheck=Bt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Bt.CUSTOM_ELEMENT_HANDLING&&ko(Bt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pr.attributeNameCheck=Bt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Bt.CUSTOM_ELEMENT_HANDLING&&typeof Bt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(pr.allowCustomizedBuiltInElements=Bt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wr=Wr=Zt.indexOf(Bt.PARSER_MEDIA_TYPE)===-1?Ti:Bt.PARSER_MEDIA_TYPE,$i=Wr==="application/xhtml+xml"?function(Ue){return Ue}:X,Or&&(ha=!1),Qr&&(Sr=!0),qr&&(sn=K({},[].concat(re(pe))),pn=[],qr.html===!0&&(K(sn,Rt),K(pn,de)),qr.svg===!0&&(K(sn,ft),K(pn,Dt),K(pn,se)),qr.svgFilters===!0&&(K(sn,vt),K(pn,Dt),K(pn,se)),qr.mathMl===!0&&(K(sn,jt),K(pn,Xt),K(pn,se))),Bt.ADD_TAGS&&(sn===Fn&&(sn=mt(sn)),K(sn,Bt.ADD_TAGS)),Bt.ADD_ATTR&&(pn===ri&&(pn=mt(pn)),K(pn,Bt.ADD_ATTR)),Bt.ADD_URI_SAFE_ATTR&&K(ui,Bt.ADD_URI_SAFE_ATTR),Bt.FORBID_CONTENTS&&(fa===Kr&&(fa=mt(fa)),K(fa,Bt.FORBID_CONTENTS)),si&&(sn["#text"]=!0),Ir&&K(sn,["html","head","body"]),sn.table&&(K(sn,["tbody"]),delete Li.tbody),y&&y(Bt),ja=Bt)},Hr=K({},["mi","mo","mn","ms","mtext"]),Wi=K({},["foreignobject","desc","title","annotation-xml"]),En=K({},ft);K(En,vt),K(En,$t);var Ta=K({},jt);K(Ta,ye);var Ya=function(Bt){var Ue=Dr(Bt);Ue&&Ue.tagName||(Ue={namespaceURI:Be,tagName:"template"});var je=X(Bt.tagName),yr=X(Ue.tagName);if(Bt.namespaceURI===Tn)return Ue.namespaceURI===Be?je==="svg":Ue.namespaceURI===$n?je==="svg"&&(yr==="annotation-xml"||Hr[yr]):!!En[je];if(Bt.namespaceURI===$n)return Ue.namespaceURI===Be?je==="math":Ue.namespaceURI===Tn?je==="math"&&Wi[yr]:!!Ta[je];if(Bt.namespaceURI===Be){if(Ue.namespaceURI===Tn&&!Wi[yr]||Ue.namespaceURI===$n&&!Hr[yr])return!1;var _r=K({},["title","style","font","a","script"]);return!Ta[je]&&(_r[je]||!En[je])}return!1},gr=function(Bt){V(oe.removed,{element:Bt});try{Bt.parentNode.removeChild(Bt)}catch{try{Bt.outerHTML=on}catch{Bt.remove()}}},kr=function(Bt,Ue){try{V(oe.removed,{attribute:Ue.getAttributeNode(Bt),from:Ue})}catch{V(oe.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(Bt),Bt==="is"&&!pn[Bt])if(Sr||Qr)try{gr(Ue)}catch{}else try{Ue.setAttribute(Bt,"")}catch{}},di=function(Bt){var Ue=void 0,je=void 0;if(Zr)Bt="<remove></remove>"+Bt;else{var yr=J(Bt,/^[\r\n\t ]+/);je=yr&&yr[0]}Wr==="application/xhtml+xml"&&(Bt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Bt+"</body></html>");var _r=Zn?Zn.createHTML(Bt):Bt;if(Wn===Be)try{Ue=new Ze().parseFromString(_r,Wr)}catch{}if(!Ue||!Ue.documentElement){Ue=Qe.createDocument(Wn,"template",null);try{Ue.documentElement.innerHTML=pt?"":_r}catch{}}var pi=Ue.body||Ue.documentElement;return Bt&&je&&pi.insertBefore(me.createTextNode(je),pi.childNodes[0]||null),Wn===Be?jn.call(Ue,Ir?"html":"body")[0]:Ir?Ue.documentElement:pi},Jr=function(Bt){return wn.call(Bt.ownerDocument||Bt,Bt,Ce.SHOW_ELEMENT|Ce.SHOW_COMMENT|Ce.SHOW_TEXT,null,!1)},Rr=function(Bt){return Bt instanceof Xe&&(typeof Bt.nodeName!="string"||typeof Bt.textContent!="string"||typeof Bt.removeChild!="function"||!(Bt.attributes instanceof ze)||typeof Bt.removeAttribute!="function"||typeof Bt.setAttribute!="function"||typeof Bt.namespaceURI!="string"||typeof Bt.insertBefore!="function")},Fr=function(Bt){return(Ge===void 0?"undefined":at(Ge))==="object"?Bt instanceof Ge:Bt&&(Bt===void 0?"undefined":at(Bt))==="object"&&typeof Bt.nodeType=="number"&&typeof Bt.nodeName=="string"},ci=function(Bt,Ue,je){_n[Bt]&&W(_n[Bt],(function(yr){yr.call(oe,Ue,je,ja)}))},Vr=function(Bt){var Ue=void 0;if(ci("beforeSanitizeElements",Bt,null),Rr(Bt)||J(Bt.nodeName,/[\u0080-\uFFFF]/))return gr(Bt),!0;var je=$i(Bt.nodeName);if(ci("uponSanitizeElement",Bt,{tagName:je,allowedTags:sn}),!Fr(Bt.firstElementChild)&&(!Fr(Bt.content)||!Fr(Bt.content.firstElementChild))&&dt(/<[/\w]/g,Bt.innerHTML)&&dt(/<[/\w]/g,Bt.textContent)||je==="select"&&dt(/<template/i,Bt.innerHTML))return gr(Bt),!0;if(!sn[je]||Li[je]){if(si&&!fa[je]){var yr=Dr(Bt)||Bt.parentNode,_r=gn(Bt)||Bt.childNodes;if(_r&&yr)for(var pi=_r.length-1;pi>=0;--pi)yr.insertBefore(Se(_r[pi],!0),rn(Bt))}return!Li[je]&&Ii(je)&&(pr.tagNameCheck instanceof RegExp&&dt(pr.tagNameCheck,je)||pr.tagNameCheck instanceof Function&&pr.tagNameCheck(je))?!1:(gr(Bt),!0)}return Bt instanceof Oe&&!Ya(Bt)?(gr(Bt),!0):je!=="noscript"&&je!=="noembed"||!dt(/<\/no(script|embed)/i,Bt.innerHTML)?(Or&&Bt.nodeType===3&&(Ue=Bt.textContent,Ue=lt(Ue,Un," "),Ue=lt(Ue,Rn," "),Bt.textContent!==Ue&&(V(oe.removed,{element:Bt.cloneNode()}),Bt.textContent=Ue)),ci("afterSanitizeElements",Bt,null),!1):(gr(Bt),!0)},Vi=function(Bt,Ue,je){if(ki&&(Ue==="id"||Ue==="name")&&(je in me||je in io))return!1;if(!(ha&&!Ln[Ue]&&dt(qn,Ue))){if(!(wo&&dt(Hn,Ue))){if(!pn[Ue]||Ln[Ue]){if(!(Ii(Bt)&&(pr.tagNameCheck instanceof RegExp&&dt(pr.tagNameCheck,Bt)||pr.tagNameCheck instanceof Function&&pr.tagNameCheck(Bt))&&(pr.attributeNameCheck instanceof RegExp&&dt(pr.attributeNameCheck,Ue)||pr.attributeNameCheck instanceof Function&&pr.attributeNameCheck(Ue))||Ue==="is"&&pr.allowCustomizedBuiltInElements&&(pr.tagNameCheck instanceof RegExp&&dt(pr.tagNameCheck,je)||pr.tagNameCheck instanceof Function&&pr.tagNameCheck(je))))return!1}else if(!ui[Ue]){if(!dt(Bn,lt(je,Cn,""))){if((Ue!=="src"&&Ue!=="xlink:href"&&Ue!=="href"||Bt==="script"||nt(je,"data:")!==0||!da[Bt])&&!(ii&&!dt(Qn,lt(je,Cn,"")))){if(je)return!1}}}}}return!0},Ii=function(Bt){return Bt.indexOf("-")>0},Ei=function(Bt){var Ue=void 0,je=void 0,yr=void 0,_r=void 0;ci("beforeSanitizeAttributes",Bt,null);var pi=Bt.attributes;if(pi){var ti={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pn};for(_r=pi.length;_r--;){var os=Ue=pi[_r],ia=os.name,Pr=os.namespaceURI;if(je=_t(Ue.value),yr=$i(ia),ti.attrName=yr,ti.attrValue=je,ti.keepAttr=!0,ti.forceKeepAttr=void 0,ci("uponSanitizeAttribute",Bt,ti),je=ti.attrValue,!ti.forceKeepAttr&&(kr(ia,Bt),ti.keepAttr))if(dt(/\/>/i,je))kr(ia,Bt);else{Or&&(je=lt(je,Un," "),je=lt(je,Rn," "));var Ds=$i(Bt.nodeName);if(Vi(Ds,yr,je))try{Pr?Bt.setAttributeNS(Pr,ia,je):Bt.setAttribute(ia,je),H(oe.removed)}catch{}}}ci("afterSanitizeAttributes",Bt,null)}},ao=function Bt(Ue){var je=void 0,yr=Jr(Ue);for(ci("beforeSanitizeShadowDOM",Ue,null);je=yr.nextNode();)ci("uponSanitizeShadowNode",je,null),Vr(je)||(je.content instanceof Me&&Bt(je.content),Ei(je));ci("afterSanitizeShadowDOM",Ue,null)};return oe.sanitize=function(Bt,Ue){var je=void 0,yr=void 0,_r=void 0,pi=void 0,ti=void 0;if((pt=!Bt)&&(Bt="<!-->"),typeof Bt!="string"&&!Fr(Bt)){if(typeof Bt.toString!="function")throw At("toString is not a function");if(typeof(Bt=Bt.toString())!="string")throw At("dirty is not a string, aborting")}if(!oe.isSupported){if(at(Nt.toStaticHTML)==="object"||typeof Nt.toStaticHTML=="function"){if(typeof Bt=="string")return Nt.toStaticHTML(Bt);if(Fr(Bt))return Nt.toStaticHTML(Bt.outerHTML)}return Bt}if($r||To(Ue),oe.removed=[],typeof Bt=="string"&&(er=!1),er){if(Bt.nodeName){var os=$i(Bt.nodeName);if(!sn[os]||Li[os])throw At("root node is forbidden and cannot be sanitized in-place")}}else if(Bt instanceof Ge)(yr=(je=di("<!---->")).ownerDocument.importNode(Bt,!0)).nodeType===1&&yr.nodeName==="BODY"||yr.nodeName==="HTML"?je=yr:je.appendChild(yr);else{if(!Sr&&!Or&&!Ir&&Bt.indexOf("<")===-1)return Zn&&Br?Zn.createHTML(Bt):Bt;if(!(je=di(Bt)))return Sr?null:Br?on:""}je&&Zr&&gr(je.firstChild);for(var ia=Jr(er?Bt:je);_r=ia.nextNode();)_r.nodeType===3&&_r===pi||Vr(_r)||(_r.content instanceof Me&&ao(_r.content),Ei(_r),pi=_r);if(pi=null,er)return Bt;if(Sr){if(Qr)for(ti=bn.call(je.ownerDocument);je.firstChild;)ti.appendChild(je.firstChild);else ti=je;return pn.shadowroot&&(ti=Yn.call(Je,ti,!0)),ti}var Pr=Ir?je.outerHTML:je.innerHTML;return Or&&(Pr=lt(Pr,Un," "),Pr=lt(Pr,Rn," ")),Zn&&Br?Zn.createHTML(Pr):Pr},oe.setConfig=function(Bt){To(Bt),$r=!0},oe.clearConfig=function(){ja=null,$r=!1},oe.isValidAttribute=function(Bt,Ue,je){ja||To({});var yr=$i(Bt),_r=$i(Ue);return Vi(yr,_r,je)},oe.addHook=function(Bt,Ue){typeof Ue=="function"&&(_n[Bt]=_n[Bt]||[],V(_n[Bt],Ue))},oe.removeHook=function(Bt){_n[Bt]&&H(_n[Bt])},oe.removeHooks=function(Bt){_n[Bt]&&(_n[Bt]=[])},oe.removeAllHooks=function(){_n={}},oe})()})()},8282:(M,N,p)=>{var m=p(2354);M.exports={Graph:m.Graph,json:p(8974),alg:p(2440),version:m.version}},2842:(M,N,p)=>{var m=p(9126);M.exports=function(d){var x,y={},k=[];function C(S){m.has(y,S)||(y[S]=!0,x.push(S),m.each(d.successors(S),C),m.each(d.predecessors(S),C))}return m.each(d.nodes(),(function(S){x=[],C(S),x.length&&k.push(x)})),k}},3984:(M,N,p)=>{var m=p(9126);function d(x,y,k,C,S,I){m.has(C,y)||(C[y]=!0,k||I.push(y),m.each(S(y),(function(L){d(x,L,k,C,S,I)})),k&&I.push(y))}M.exports=function(x,y,k){m.isArray(y)||(y=[y]);var C=(x.isDirected()?x.successors:x.neighbors).bind(x),S=[],I={};return m.each(y,(function(L){if(!x.hasNode(L))throw new Error("Graph does not have node: "+L);d(x,L,k==="post",I,C,S)})),S}},4847:(M,N,p)=>{var m=p(3763),d=p(9126);M.exports=function(x,y,k){return d.transform(x.nodes(),(function(C,S){C[S]=m(x,S,y,k)}),{})}},3763:(M,N,p)=>{var m=p(9126),d=p(9675);M.exports=function(y,k,C,S){return(function(I,L,Y,W){var H,V,X={},J=new d,lt=function(nt){var _t=nt.v!==H?nt.v:nt.w,dt=X[_t],At=Y(nt),st=V.distance+At;if(At<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+nt+" Weight: "+At);st<dt.distance&&(dt.distance=st,dt.predecessor=H,J.decrease(_t,st))};for(I.nodes().forEach((function(nt){var _t=nt===L?0:Number.POSITIVE_INFINITY;X[nt]={distance:_t},J.add(nt,_t)}));J.size()>0&&(H=J.removeMin(),(V=X[H]).distance!==Number.POSITIVE_INFINITY);)W(H).forEach(lt);return X})(y,String(k),C||x,S||function(I){return y.outEdges(I)})};var x=m.constant(1)},9096:(M,N,p)=>{var m=p(9126),d=p(5023);M.exports=function(x){return m.filter(d(x),(function(y){return y.length>1||y.length===1&&x.hasEdge(y[0],y[0])}))}},8924:(M,N,p)=>{var m=p(9126);M.exports=function(x,y,k){return(function(C,S,I){var L={},Y=C.nodes();return Y.forEach((function(W){L[W]={},L[W][W]={distance:0},Y.forEach((function(H){W!==H&&(L[W][H]={distance:Number.POSITIVE_INFINITY})})),I(W).forEach((function(H){var V=H.v===W?H.w:H.v,X=S(H);L[W][V]={distance:X,predecessor:W}}))})),Y.forEach((function(W){var H=L[W];Y.forEach((function(V){var X=L[V];Y.forEach((function(J){var lt=X[W],nt=H[J],_t=X[J],dt=lt.distance+nt.distance;dt<_t.distance&&(_t.distance=dt,_t.predecessor=nt.predecessor)}))}))})),L})(x,y||d,k||function(C){return x.outEdges(C)})};var d=m.constant(1)},2440:(M,N,p)=>{M.exports={components:p(2842),dijkstra:p(3763),dijkstraAll:p(4847),findCycles:p(9096),floydWarshall:p(8924),isAcyclic:p(2707),postorder:p(8828),preorder:p(2648),prim:p(514),tarjan:p(5023),topsort:p(2166)}},2707:(M,N,p)=>{var m=p(2166);M.exports=function(d){try{m(d)}catch(x){if(x instanceof m.CycleException)return!1;throw x}return!0}},8828:(M,N,p)=>{var m=p(3984);M.exports=function(d,x){return m(d,x,"post")}},2648:(M,N,p)=>{var m=p(3984);M.exports=function(d,x){return m(d,x,"pre")}},514:(M,N,p)=>{var m=p(9126),d=p(771),x=p(9675);M.exports=function(y,k){var C,S=new d,I={},L=new x;function Y(H){var V=H.v===C?H.w:H.v,X=L.priority(V);if(X!==void 0){var J=k(H);J<X&&(I[V]=C,L.decrease(V,J))}}if(y.nodeCount()===0)return S;m.each(y.nodes(),(function(H){L.add(H,Number.POSITIVE_INFINITY),S.setNode(H)})),L.decrease(y.nodes()[0],0);for(var W=!1;L.size()>0;){if(C=L.removeMin(),m.has(I,C))S.setEdge(C,I[C]);else{if(W)throw new Error("Input graph is not connected: "+y);W=!0}y.nodeEdges(C).forEach(Y)}return S}},5023:(M,N,p)=>{var m=p(9126);M.exports=function(d){var x=0,y=[],k={},C=[];function S(I){var L=k[I]={onStack:!0,lowlink:x,index:x++};if(y.push(I),d.successors(I).forEach((function(H){m.has(k,H)?k[H].onStack&&(L.lowlink=Math.min(L.lowlink,k[H].index)):(S(H),L.lowlink=Math.min(L.lowlink,k[H].lowlink))})),L.lowlink===L.index){var Y,W=[];do Y=y.pop(),k[Y].onStack=!1,W.push(Y);while(I!==Y);C.push(W)}}return d.nodes().forEach((function(I){m.has(k,I)||S(I)})),C}},2166:(M,N,p)=>{var m=p(9126);function d(y){var k={},C={},S=[];if(m.each(y.sinks(),(function I(L){if(m.has(C,L))throw new x;m.has(k,L)||(C[L]=!0,k[L]=!0,m.each(y.predecessors(L),I),delete C[L],S.push(L))})),m.size(k)!==y.nodeCount())throw new x;return S}function x(){}M.exports=d,d.CycleException=x,x.prototype=new Error},9675:(M,N,p)=>{var m=p(9126);function d(){this._arr=[],this._keyIndices={}}M.exports=d,d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map((function(x){return x.key}))},d.prototype.has=function(x){return m.has(this._keyIndices,x)},d.prototype.priority=function(x){var y=this._keyIndices[x];if(y!==void 0)return this._arr[y].priority},d.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(x,y){var k=this._keyIndices;if(x=String(x),!m.has(k,x)){var C=this._arr,S=C.length;return k[x]=S,C.push({key:x,priority:y}),this._decrease(S),!0}return!1},d.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},d.prototype.decrease=function(x,y){var k=this._keyIndices[x];if(y>this._arr[k].priority)throw new Error("New priority is greater than current priority. Key: "+x+" Old: "+this._arr[k].priority+" New: "+y);this._arr[k].priority=y,this._decrease(k)},d.prototype._heapify=function(x){var y=this._arr,k=2*x,C=k+1,S=x;k<y.length&&(S=y[k].priority<y[S].priority?k:S,C<y.length&&(S=y[C].priority<y[S].priority?C:S),S!==x&&(this._swap(x,S),this._heapify(S)))},d.prototype._decrease=function(x){for(var y,k=this._arr,C=k[x].priority;x!==0&&!(k[y=x>>1].priority<C);)this._swap(x,y),x=y},d.prototype._swap=function(x,y){var k=this._arr,C=this._keyIndices,S=k[x],I=k[y];k[x]=I,k[y]=S,C[I.key]=x,C[S.key]=y}},771:(M,N,p)=>{var m=p(9126);M.exports=x;var d="\0";function x(L){this._isDirected=!m.has(L,"directed")||L.directed,this._isMultigraph=!!m.has(L,"multigraph")&&L.multigraph,this._isCompound=!!m.has(L,"compound")&&L.compound,this._label=void 0,this._defaultNodeLabelFn=m.constant(void 0),this._defaultEdgeLabelFn=m.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function y(L,Y){L[Y]?L[Y]++:L[Y]=1}function k(L,Y){--L[Y]||delete L[Y]}function C(L,Y,W,H){var V=""+Y,X=""+W;if(!L&&V>X){var J=V;V=X,X=J}return V+""+X+""+(m.isUndefined(H)?"\0":H)}function S(L,Y,W,H){var V=""+Y,X=""+W;if(!L&&V>X){var J=V;V=X,X=J}var lt={v:V,w:X};return H&&(lt.name=H),lt}function I(L,Y){return C(L,Y.v,Y.w,Y.name)}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(L){return this._label=L,this},x.prototype.graph=function(){return this._label},x.prototype.setDefaultNodeLabel=function(L){return m.isFunction(L)||(L=m.constant(L)),this._defaultNodeLabelFn=L,this},x.prototype.nodeCount=function(){return this._nodeCount},x.prototype.nodes=function(){return m.keys(this._nodes)},x.prototype.sources=function(){var L=this;return m.filter(this.nodes(),(function(Y){return m.isEmpty(L._in[Y])}))},x.prototype.sinks=function(){var L=this;return m.filter(this.nodes(),(function(Y){return m.isEmpty(L._out[Y])}))},x.prototype.setNodes=function(L,Y){var W=arguments,H=this;return m.each(L,(function(V){W.length>1?H.setNode(V,Y):H.setNode(V)})),this},x.prototype.setNode=function(L,Y){return m.has(this._nodes,L)?(arguments.length>1&&(this._nodes[L]=Y),this):(this._nodes[L]=arguments.length>1?Y:this._defaultNodeLabelFn(L),this._isCompound&&(this._parent[L]=d,this._children[L]={},this._children["\0"][L]=!0),this._in[L]={},this._preds[L]={},this._out[L]={},this._sucs[L]={},++this._nodeCount,this)},x.prototype.node=function(L){return this._nodes[L]},x.prototype.hasNode=function(L){return m.has(this._nodes,L)},x.prototype.removeNode=function(L){var Y=this;if(m.has(this._nodes,L)){var W=function(H){Y.removeEdge(Y._edgeObjs[H])};delete this._nodes[L],this._isCompound&&(this._removeFromParentsChildList(L),delete this._parent[L],m.each(this.children(L),(function(H){Y.setParent(H)})),delete this._children[L]),m.each(m.keys(this._in[L]),W),delete this._in[L],delete this._preds[L],m.each(m.keys(this._out[L]),W),delete this._out[L],delete this._sucs[L],--this._nodeCount}return this},x.prototype.setParent=function(L,Y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(Y))Y=d;else{for(var W=Y+="";!m.isUndefined(W);W=this.parent(W))if(W===L)throw new Error("Setting "+Y+" as parent of "+L+" would create a cycle");this.setNode(Y)}return this.setNode(L),this._removeFromParentsChildList(L),this._parent[L]=Y,this._children[Y][L]=!0,this},x.prototype._removeFromParentsChildList=function(L){delete this._children[this._parent[L]][L]},x.prototype.parent=function(L){if(this._isCompound){var Y=this._parent[L];if(Y!==d)return Y}},x.prototype.children=function(L){if(m.isUndefined(L)&&(L=d),this._isCompound){var Y=this._children[L];if(Y)return m.keys(Y)}else{if(L===d)return this.nodes();if(this.hasNode(L))return[]}},x.prototype.predecessors=function(L){var Y=this._preds[L];if(Y)return m.keys(Y)},x.prototype.successors=function(L){var Y=this._sucs[L];if(Y)return m.keys(Y)},x.prototype.neighbors=function(L){var Y=this.predecessors(L);if(Y)return m.union(Y,this.successors(L))},x.prototype.isLeaf=function(L){return(this.isDirected()?this.successors(L):this.neighbors(L)).length===0},x.prototype.filterNodes=function(L){var Y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});Y.setGraph(this.graph());var W=this;m.each(this._nodes,(function(X,J){L(J)&&Y.setNode(J,X)})),m.each(this._edgeObjs,(function(X){Y.hasNode(X.v)&&Y.hasNode(X.w)&&Y.setEdge(X,W.edge(X))}));var H={};function V(X){var J=W.parent(X);return J===void 0||Y.hasNode(J)?(H[X]=J,J):J in H?H[J]:V(J)}return this._isCompound&&m.each(Y.nodes(),(function(X){Y.setParent(X,V(X))})),Y},x.prototype.setDefaultEdgeLabel=function(L){return m.isFunction(L)||(L=m.constant(L)),this._defaultEdgeLabelFn=L,this},x.prototype.edgeCount=function(){return this._edgeCount},x.prototype.edges=function(){return m.values(this._edgeObjs)},x.prototype.setPath=function(L,Y){var W=this,H=arguments;return m.reduce(L,(function(V,X){return H.length>1?W.setEdge(V,X,Y):W.setEdge(V,X),X})),this},x.prototype.setEdge=function(){var L,Y,W,H,V=!1,X=arguments[0];typeof X=="object"&&X!==null&&"v"in X?(L=X.v,Y=X.w,W=X.name,arguments.length===2&&(H=arguments[1],V=!0)):(L=X,Y=arguments[1],W=arguments[3],arguments.length>2&&(H=arguments[2],V=!0)),L=""+L,Y=""+Y,m.isUndefined(W)||(W=""+W);var J=C(this._isDirected,L,Y,W);if(m.has(this._edgeLabels,J))return V&&(this._edgeLabels[J]=H),this;if(!m.isUndefined(W)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(L),this.setNode(Y),this._edgeLabels[J]=V?H:this._defaultEdgeLabelFn(L,Y,W);var lt=S(this._isDirected,L,Y,W);return L=lt.v,Y=lt.w,Object.freeze(lt),this._edgeObjs[J]=lt,y(this._preds[Y],L),y(this._sucs[L],Y),this._in[Y][J]=lt,this._out[L][J]=lt,this._edgeCount++,this},x.prototype.edge=function(L,Y,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,W);return this._edgeLabels[H]},x.prototype.hasEdge=function(L,Y,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,W);return m.has(this._edgeLabels,H)},x.prototype.removeEdge=function(L,Y,W){var H=arguments.length===1?I(this._isDirected,arguments[0]):C(this._isDirected,L,Y,W),V=this._edgeObjs[H];return V&&(L=V.v,Y=V.w,delete this._edgeLabels[H],delete this._edgeObjs[H],k(this._preds[Y],L),k(this._sucs[L],Y),delete this._in[Y][H],delete this._out[L][H],this._edgeCount--),this},x.prototype.inEdges=function(L,Y){var W=this._in[L];if(W){var H=m.values(W);return Y?m.filter(H,(function(V){return V.v===Y})):H}},x.prototype.outEdges=function(L,Y){var W=this._out[L];if(W){var H=m.values(W);return Y?m.filter(H,(function(V){return V.w===Y})):H}},x.prototype.nodeEdges=function(L,Y){var W=this.inEdges(L,Y);if(W)return W.concat(this.outEdges(L,Y))}},2354:(M,N,p)=>{M.exports={Graph:p(771),version:p(9631)}},8974:(M,N,p)=>{var m=p(9126),d=p(771);function x(k){return m.map(k.nodes(),(function(C){var S=k.node(C),I=k.parent(C),L={v:C};return m.isUndefined(S)||(L.value=S),m.isUndefined(I)||(L.parent=I),L}))}function y(k){return m.map(k.edges(),(function(C){var S=k.edge(C),I={v:C.v,w:C.w};return m.isUndefined(C.name)||(I.name=C.name),m.isUndefined(S)||(I.value=S),I}))}M.exports={write:function(k){var C={options:{directed:k.isDirected(),multigraph:k.isMultigraph(),compound:k.isCompound()},nodes:x(k),edges:y(k)};return m.isUndefined(k.graph())||(C.value=m.clone(k.graph())),C},read:function(k){var C=new d(k.options).setGraph(k.value);return m.each(k.nodes,(function(S){C.setNode(S.v,S.value),S.parent&&C.setParent(S.v,S.parent)})),m.each(k.edges,(function(S){C.setEdge({v:S.v,w:S.w,name:S.name},S.value)})),C}}},9126:(M,N,p)=>{var m;try{m={clone:p(6678),constant:p(5703),each:p(6073),filter:p(3105),has:p(8721),isArray:p(1469),isEmpty:p(1609),isFunction:p(3560),isUndefined:p(2353),keys:p(3674),map:p(5161),reduce:p(4061),size:p(4238),transform:p(8718),union:p(3386),values:p(2628)}}catch{}m||(m=window._),M.exports=m},9631:M=>{M.exports="2.1.8"},1773:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(7628),x=(function(){function y(k,C){this.color=C,this.changed=!1,this.data=k,this.type=new d.default}return y.prototype.set=function(k,C){return this.color=C,this.changed=!1,this.data=k,this.type.type=0,this},y.prototype._ensureHSL=function(){var k=this.data,C=k.h,S=k.s,I=k.l;C===void 0&&(k.h=m.default.channel.rgb2hsl(k,"h")),S===void 0&&(k.s=m.default.channel.rgb2hsl(k,"s")),I===void 0&&(k.l=m.default.channel.rgb2hsl(k,"l"))},y.prototype._ensureRGB=function(){var k=this.data,C=k.r,S=k.g,I=k.b;C===void 0&&(k.r=m.default.channel.hsl2rgb(k,"r")),S===void 0&&(k.g=m.default.channel.hsl2rgb(k,"g")),I===void 0&&(k.b=m.default.channel.hsl2rgb(k,"b"))},Object.defineProperty(y.prototype,"r",{get:function(){var k=this.data,C=k.r;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"r")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.r=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"g",{get:function(){var k=this.data,C=k.g;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"g")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.g=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"b",{get:function(){var k=this.data,C=k.b;return this.type.is(2)||C===void 0?(this._ensureHSL(),m.default.channel.hsl2rgb(k,"b")):C},set:function(k){this.type.set(1),this.changed=!0,this.data.b=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"h",{get:function(){var k=this.data,C=k.h;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"h")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.h=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"s",{get:function(){var k=this.data,C=k.s;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"s")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.s=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"l",{get:function(){var k=this.data,C=k.l;return this.type.is(1)||C===void 0?(this._ensureRGB(),m.default.channel.rgb2hsl(k,"l")):C},set:function(k){this.type.set(2),this.changed=!0,this.data.l=k},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"a",{get:function(){return this.data.a},set:function(k){this.changed=!0,this.data.a=k},enumerable:!0,configurable:!0}),y})();N.default=x},8167:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=new(p(1773)).default({r:0,g:0,b:0,a:0},"transparent");N.default=m},7628:(M,N)=>{Object.defineProperty(N,"__esModule",{value:!0});var p=(function(){function m(){this.type=0}return m.prototype.get=function(){return this.type},m.prototype.set=function(d){if(this.type&&this.type!==d)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=d},m.prototype.reset=function(){this.type=0},m.prototype.is=function(d){return this.type===d},m})();N.default=p},1655:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(8167),d=p(6061),x={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(y){if(y.charCodeAt(0)===35){var k=y.match(x.re);if(k){var C=k[1],S=parseInt(C,16),I=C.length,L=I%4==0,Y=I>4,W=Y?1:17,H=Y?8:4,V=L?0:-1,X=Y?255:15;return m.default.set({r:(S>>H*(V+3)&X)*W,g:(S>>H*(V+2)&X)*W,b:(S>>H*(V+1)&X)*W,a:L?(S&X)*W/255:1},y)}}},stringify:function(y){var k=y.r,C=y.g,S=y.b,I=y.a;return I<1?"#"+d.DEC2HEX[Math.round(k)]+d.DEC2HEX[Math.round(C)]+d.DEC2HEX[Math.round(S)]+d.DEC2HEX[Math.round(255*I)]:"#"+d.DEC2HEX[Math.round(k)]+d.DEC2HEX[Math.round(C)]+d.DEC2HEX[Math.round(S)]}};N.default=x},8589:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(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(y){var k=y.match(x.hueRe);if(k){var C=k[1];switch(k[2]){case"grad":return m.default.channel.clamp.h(.9*parseFloat(C));case"rad":return m.default.channel.clamp.h(180*parseFloat(C)/Math.PI);case"turn":return m.default.channel.clamp.h(360*parseFloat(C))}}return m.default.channel.clamp.h(parseFloat(y))},parse:function(y){var k=y.charCodeAt(0);if(k===104||k===72){var C=y.match(x.re);if(C){var S=C[1],I=C[2],L=C[3],Y=C[4],W=C[5];return d.default.set({h:x._hue2deg(S),s:m.default.channel.clamp.s(parseFloat(I)),l:m.default.channel.clamp.l(parseFloat(L)),a:Y?m.default.channel.clamp.a(W?parseFloat(Y)/100:parseFloat(Y)):1},y)}}},stringify:function(y){var k=y.h,C=y.s,S=y.l,I=y.a;return I<1?"hsla("+m.default.lang.round(k)+", "+m.default.lang.round(C)+"%, "+m.default.lang.round(S)+"%, "+I+")":"hsl("+m.default.lang.round(k)+", "+m.default.lang.round(C)+"%, "+m.default.lang.round(S)+"%)"}};N.default=x},2191:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1655),d=p(7538),x=p(6762),y=p(8589),k={format:{keyword:d.default,hex:m.default,rgb:x.default,rgba:x.default,hsl:y.default,hsla:y.default},parse:function(C){if(typeof C!="string")return C;var S=m.default.parse(C)||x.default.parse(C)||y.default.parse(C)||d.default.parse(C);if(S)return S;throw new Error('Unsupported color format: "'+C+'"')},stringify:function(C){return!C.changed&&C.color?C.color:C.type.is(2)||C.data.r===void 0?y.default.stringify(C):C.a<1||!Number.isInteger(C.r)||!Number.isInteger(C.g)||!Number.isInteger(C.b)?x.default.stringify(C):m.default.stringify(C)}};N.default=k},7538:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1655),d={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(x){x=x.toLowerCase();var y=d.colors[x];if(y)return m.default.parse(y)},stringify:function(x){var y=m.default.stringify(x);for(var k in d.colors)if(d.colors[k]===y)return k}};N.default=d},6762:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(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(y){var k=y.charCodeAt(0);if(k===114||k===82){var C=y.match(x.re);if(C){var S=C[1],I=C[2],L=C[3],Y=C[4],W=C[5],H=C[6],V=C[7],X=C[8];return d.default.set({r:m.default.channel.clamp.r(I?2.55*parseFloat(S):parseFloat(S)),g:m.default.channel.clamp.g(Y?2.55*parseFloat(L):parseFloat(L)),b:m.default.channel.clamp.b(H?2.55*parseFloat(W):parseFloat(W)),a:V?m.default.channel.clamp.a(X?parseFloat(V)/100:parseFloat(V)):1},y)}}},stringify:function(y){var k=y.r,C=y.g,S=y.b,I=y.a;return I<1?"rgba("+m.default.lang.round(k)+", "+m.default.lang.round(C)+", "+m.default.lang.round(S)+", "+m.default.lang.round(I)+")":"rgb("+m.default.lang.round(k)+", "+m.default.lang.round(C)+", "+m.default.lang.round(S)+")"}};N.default=x},6061:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d={};N.DEC2HEX=d;for(var x=0;x<=255;x++)d[x]=m.default.unit.dec2hex(x)},8613:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0}),(function(m){for(var d in m)N.hasOwnProperty(d)||(N[d]=m[d])})(p(1203))},5371:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191),d=p(418);N.default=function(x,y){var k=m.default.parse(x),C={};for(var S in y)y[S]&&(C[S]=k[S]+y[S]);return d.default(x,C)}},1416:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(2191);N.default=function(x,y,k){var C=d.default.parse(x),S=C[y],I=m.default.channel.clamp[y](S+k);return S!==I&&(C[y]=I),d.default.stringify(C)}},9353:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"a")}},3394:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"b")}},418:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(2191);N.default=function(x,y){var k=d.default.parse(x);for(var C in y)k[C]=m.default.channel.clamp[C](y[C]);return d.default.stringify(k)}},6197:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(2191);N.default=function(x,y){return m.default.lang.round(d.default.parse(x)[y])}},7361:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d){return m.default(d,"h",180)}},3042:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(8346);N.default=function(x,y){var k=d.default(x),C=d.default(y),S=Math.max(k,C),I=Math.min(k,C),L=(S+Number.EPSILON)/(I+Number.EPSILON);return m.default.lang.round(m.default.lang.clamp(L,1,10))}},1364:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"l",-x)}},9610:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"s",-x)}},572:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(418);N.default=function(d){return m.default(d,{s:0})}},2299:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"g")}},3116:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(8167),x=p(2191);N.default=function(y,k,C,S){S===void 0&&(S=1);var I=d.default.set({h:m.default.channel.clamp.h(y),s:m.default.channel.clamp.s(k),l:m.default.channel.clamp.l(C),a:m.default.channel.clamp.a(S)});return x.default.stringify(I)}},3008:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"h")}},1203:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6538);N.hex=m.default;var d=p(6538);N.rgb=d.default;var x=p(6538);N.rgba=x.default;var y=p(3116);N.hsl=y.default;var k=p(3116);N.hsla=k.default;var C=p(2619);N.toKeyword=C.default;var S=p(4307);N.toHex=S.default;var I=p(4125);N.toRgba=I.default;var L=p(7329);N.toHsla=L.default;var Y=p(6197);N.channel=Y.default;var W=p(9640);N.red=W.default;var H=p(2299);N.green=H.default;var V=p(3394);N.blue=V.default;var X=p(3008);N.hue=X.default;var J=p(6451);N.saturation=J.default;var lt=p(9235);N.lightness=lt.default;var nt=p(9353);N.alpha=nt.default;var _t=p(9353);N.opacity=_t.default;var dt=p(3042);N.contrast=dt.default;var At=p(8346);N.luminance=At.default;var st=p(4117);N.isDark=st.default;var K=p(2224);N.isLight=K.default;var mt=p(585);N.isValid=mt.default;var St=p(1080);N.saturate=St.default;var Rt=p(9610);N.desaturate=Rt.default;var ft=p(3235);N.lighten=ft.default;var vt=p(1364);N.darken=vt.default;var $t=p(7189);N.opacify=$t.default;var jt=p(7189);N.fadeIn=jt.default;var ye=p(4989);N.transparentize=ye.default;var pe=p(4989);N.fadeOut=pe.default;var de=p(7361);N.complement=de.default;var Dt=p(572);N.grayscale=Dt.default;var Xt=p(5371);N.adjust=Xt.default;var se=p(418);N.change=se.default;var ce=p(566);N.invert=ce.default;var ge=p(1861);N.mix=ge.default;var Ot=p(7081);N.scale=Ot.default},566:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191),d=p(1861);N.default=function(x,y){y===void 0&&(y=100);var k=m.default.parse(x);return k.r=255-k.r,k.g=255-k.g,k.b=255-k.b,d.default(k,x,y)}},4117:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2224);N.default=function(d){return!m.default(d)}},2224:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(8346);N.default=function(d){return m.default(d)>=.5}},585:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191);N.default=function(d){try{return m.default.parse(d),!0}catch{return!1}}},3235:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"l",x)}},9235:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"l")}},8346:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(2191);N.default=function(x){var y=d.default.parse(x),k=y.r,C=y.g,S=y.b,I=.2126*m.default.channel.toLinear(k)+.7152*m.default.channel.toLinear(C)+.0722*m.default.channel.toLinear(S);return m.default.lang.round(I)}},1861:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191),d=p(6538);N.default=function(x,y,k){k===void 0&&(k=50);var C=m.default.parse(x),S=C.r,I=C.g,L=C.b,Y=C.a,W=m.default.parse(y),H=W.r,V=W.g,X=W.b,J=W.a,lt=k/100,nt=2*lt-1,_t=Y-J,dt=((nt*_t==-1?nt:(nt+_t)/(1+nt*_t))+1)/2,At=1-dt,st=S*dt+H*At,K=I*dt+V*At,mt=L*dt+X*At,St=Y*lt+J*(1-lt);return d.default(st,K,mt,St)}},7189:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"a",x)}},9640:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"r")}},6538:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(8167),x=p(2191),y=p(418);N.default=function(k,C,S,I){if(S===void 0&&(S=0),I===void 0&&(I=1),typeof k!="number")return y.default(k,{a:C});var L=d.default.set({r:m.default.channel.clamp.r(k),g:m.default.channel.clamp.g(C),b:m.default.channel.clamp.b(S),a:m.default.channel.clamp.a(I)});return x.default.stringify(L)}},1080:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"s",x)}},6451:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(6197);N.default=function(d){return m.default(d,"s")}},7081:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1083),d=p(2191),x=p(5371);N.default=function(y,k){var C,S,I,L=d.default.parse(y),Y={};for(var W in k)Y[W]=(C=L[W],S=k[W],I=m.default.channel.max[W],S>0?(I-C)*S/100:C*S/100);return x.default(y,Y)}},4307:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191);N.default=function(d){return m.default.format.hex.stringify(m.default.parse(d))}},7329:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191);N.default=function(d){return m.default.format.hsla.stringify(m.default.parse(d))}},2619:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191);N.default=function(d){return m.default.format.keyword.stringify(m.default.parse(d))}},4125:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(2191);N.default=function(d){return m.default.format.rgba.stringify(m.default.parse(d))}},4989:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(1416);N.default=function(d,x){return m.default(d,"a",-x)}},7994:(M,N)=>{Object.defineProperty(N,"__esModule",{value:!0});var p={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(m){return m>=255?255:m<0?0:m},g:function(m){return m>=255?255:m<0?0:m},b:function(m){return m>=255?255:m<0?0:m},h:function(m){return m%360},s:function(m){return m>=100?100:m<0?0:m},l:function(m){return m>=100?100:m<0?0:m},a:function(m){return m>=1?1:m<0?0:m}},toLinear:function(m){var d=m/255;return m>.03928?Math.pow((d+.055)/1.055,2.4):d/12.92},hue2rgb:function(m,d,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?m+6*(d-m)*x:x<.5?d:x<2/3?m+(d-m)*(2/3-x)*6:m},hsl2rgb:function(m,d){var x=m.h,y=m.s,k=m.l;if(!y)return 2.55*k;x/=360,y/=100;var C=(k/=100)<.5?k*(1+y):k+y-k*y,S=2*k-C;switch(d){case"r":return 255*p.hue2rgb(S,C,x+1/3);case"g":return 255*p.hue2rgb(S,C,x);case"b":return 255*p.hue2rgb(S,C,x-1/3)}},rgb2hsl:function(m,d){var x=m.r,y=m.g,k=m.b;x/=255,y/=255,k/=255;var C=Math.max(x,y,k),S=Math.min(x,y,k),I=(C+S)/2;if(d==="l")return 100*I;if(C===S)return 0;var L=C-S;if(d==="s")return 100*(I>.5?L/(2-C-S):L/(C+S));switch(C){case x:return 60*((y-k)/L+(y<k?6:0));case y:return 60*((k-x)/L+2);case k:return 60*((x-y)/L+4);default:return-1}}};N.default=p},1083:(M,N,p)=>{Object.defineProperty(N,"__esModule",{value:!0});var m=p(7994),d=p(4027),x=p(318),y={channel:m.default,lang:d.default,unit:x.default};N.default=y},4027:(M,N)=>{Object.defineProperty(N,"__esModule",{value:!0});var p={clamp:function(m,d,x){return d>x?Math.min(d,Math.max(x,m)):Math.min(x,Math.max(d,m))},round:function(m){return Math.round(1e10*m)/1e10}};N.default=p},318:(M,N)=>{Object.defineProperty(N,"__esModule",{value:!0});var p={dec2hex:function(m){var d=Math.round(m).toString(16);return d.length>1?d:"0"+d}};N.default=p},8552:(M,N,p)=>{var m=p(852)(p(5639),"DataView");M.exports=m},1989:(M,N,p)=>{var m=p(1789),d=p(401),x=p(7667),y=p(1327),k=p(1866);function C(S){var I=-1,L=S==null?0:S.length;for(this.clear();++I<L;){var Y=S[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=x,C.prototype.has=y,C.prototype.set=k,M.exports=C},8407:(M,N,p)=>{var m=p(7040),d=p(2188),x=p(2117),y=p(7518),k=p(4705);function C(S){var I=-1,L=S==null?0:S.length;for(this.clear();++I<L;){var Y=S[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=x,C.prototype.has=y,C.prototype.set=k,M.exports=C},7071:(M,N,p)=>{var m=p(852)(p(5639),"Map");M.exports=m},3369:(M,N,p)=>{var m=p(4785),d=p(1285),x=p(6e3),y=p(9916),k=p(5265);function C(S){var I=-1,L=S==null?0:S.length;for(this.clear();++I<L;){var Y=S[I];this.set(Y[0],Y[1])}}C.prototype.clear=m,C.prototype.delete=d,C.prototype.get=x,C.prototype.has=y,C.prototype.set=k,M.exports=C},3818:(M,N,p)=>{var m=p(852)(p(5639),"Promise");M.exports=m},8525:(M,N,p)=>{var m=p(852)(p(5639),"Set");M.exports=m},8668:(M,N,p)=>{var m=p(3369),d=p(619),x=p(2385);function y(k){var C=-1,S=k==null?0:k.length;for(this.__data__=new m;++C<S;)this.add(k[C])}y.prototype.add=y.prototype.push=d,y.prototype.has=x,M.exports=y},6384:(M,N,p)=>{var m=p(8407),d=p(7465),x=p(3779),y=p(7599),k=p(4758),C=p(4309);function S(I){var L=this.__data__=new m(I);this.size=L.size}S.prototype.clear=d,S.prototype.delete=x,S.prototype.get=y,S.prototype.has=k,S.prototype.set=C,M.exports=S},2705:(M,N,p)=>{var m=p(5639).Symbol;M.exports=m},1149:(M,N,p)=>{var m=p(5639).Uint8Array;M.exports=m},577:(M,N,p)=>{var m=p(852)(p(5639),"WeakMap");M.exports=m},6874:M=>{M.exports=function(N,p,m){switch(m.length){case 0:return N.call(p);case 1:return N.call(p,m[0]);case 2:return N.call(p,m[0],m[1]);case 3:return N.call(p,m[0],m[1],m[2])}return N.apply(p,m)}},7412:M=>{M.exports=function(N,p){for(var m=-1,d=N==null?0:N.length;++m<d&&p(N[m],m,N)!==!1;);return N}},4963:M=>{M.exports=function(N,p){for(var m=-1,d=N==null?0:N.length,x=0,y=[];++m<d;){var k=N[m];p(k,m,N)&&(y[x++]=k)}return y}},7443:(M,N,p)=>{var m=p(2118);M.exports=function(d,x){return!(d==null||!d.length)&&m(d,x,0)>-1}},1196:M=>{M.exports=function(N,p,m){for(var d=-1,x=N==null?0:N.length;++d<x;)if(m(p,N[d]))return!0;return!1}},4636:(M,N,p)=>{var m=p(2545),d=p(5694),x=p(1469),y=p(4144),k=p(5776),C=p(6719),S=Object.prototype.hasOwnProperty;M.exports=function(I,L){var Y=x(I),W=!Y&&d(I),H=!Y&&!W&&y(I),V=!Y&&!W&&!H&&C(I),X=Y||W||H||V,J=X?m(I.length,String):[],lt=J.length;for(var nt in I)!L&&!S.call(I,nt)||X&&(nt=="length"||H&&(nt=="offset"||nt=="parent")||V&&(nt=="buffer"||nt=="byteLength"||nt=="byteOffset")||k(nt,lt))||J.push(nt);return J}},9932:M=>{M.exports=function(N,p){for(var m=-1,d=N==null?0:N.length,x=Array(d);++m<d;)x[m]=p(N[m],m,N);return x}},2488:M=>{M.exports=function(N,p){for(var m=-1,d=p.length,x=N.length;++m<d;)N[x+m]=p[m];return N}},2663:M=>{M.exports=function(N,p,m,d){var x=-1,y=N==null?0:N.length;for(d&&y&&(m=N[++x]);++x<y;)m=p(m,N[x],x,N);return m}},2908:M=>{M.exports=function(N,p){for(var m=-1,d=N==null?0:N.length;++m<d;)if(p(N[m],m,N))return!0;return!1}},8983:(M,N,p)=>{var m=p(371)("length");M.exports=m},6556:(M,N,p)=>{var m=p(9465),d=p(7813);M.exports=function(x,y,k){(k!==void 0&&!d(x[y],k)||k===void 0&&!(y in x))&&m(x,y,k)}},4865:(M,N,p)=>{var m=p(9465),d=p(7813),x=Object.prototype.hasOwnProperty;M.exports=function(y,k,C){var S=y[k];x.call(y,k)&&d(S,C)&&(C!==void 0||k in y)||m(y,k,C)}},8470:(M,N,p)=>{var m=p(7813);M.exports=function(d,x){for(var y=d.length;y--;)if(m(d[y][0],x))return y;return-1}},4037:(M,N,p)=>{var m=p(8363),d=p(3674);M.exports=function(x,y){return x&&m(y,d(y),x)}},3886:(M,N,p)=>{var m=p(8363),d=p(1704);M.exports=function(x,y){return x&&m(y,d(y),x)}},9465:(M,N,p)=>{var m=p(8777);M.exports=function(d,x,y){x=="__proto__"&&m?m(d,x,{configurable:!0,enumerable:!0,value:y,writable:!0}):d[x]=y}},5990:(M,N,p)=>{var m=p(6384),d=p(7412),x=p(4865),y=p(4037),k=p(3886),C=p(4626),S=p(278),I=p(8805),L=p(1911),Y=p(8234),W=p(6904),H=p(4160),V=p(3824),X=p(9148),J=p(8517),lt=p(1469),nt=p(4144),_t=p(6688),dt=p(3218),At=p(2928),st=p(3674),K=p(1704),mt="[object Arguments]",St="[object Function]",Rt="[object Object]",ft={};ft[mt]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object DataView]"]=ft["[object Boolean]"]=ft["[object Date]"]=ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Map]"]=ft["[object Number]"]=ft[Rt]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object Symbol]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Error]"]=ft[St]=ft["[object WeakMap]"]=!1,M.exports=function vt($t,jt,ye,pe,de,Dt){var Xt,se=1&jt,ce=2&jt,ge=4&jt;if(ye&&(Xt=de?ye($t,pe,de,Dt):ye($t)),Xt!==void 0)return Xt;if(!dt($t))return $t;var Ot=lt($t);if(Ot){if(Xt=V($t),!se)return S($t,Xt)}else{var $e=H($t),le=$e==St||$e=="[object GeneratorFunction]";if(nt($t))return C($t,se);if($e==Rt||$e==mt||le&&!de){if(Xt=ce||le?{}:J($t),!se)return ce?L($t,k(Xt,$t)):I($t,y(Xt,$t))}else{if(!ft[$e])return de?$t:{};Xt=X($t,$e,se)}}Dt||(Dt=new m);var Yt=Dt.get($t);if(Yt)return Yt;Dt.set($t,Xt),At($t)?$t.forEach((function(at){Xt.add(vt(at,jt,ye,at,$t,Dt))})):_t($t)&&$t.forEach((function(at,re){Xt.set(re,vt(at,jt,ye,re,$t,Dt))}));var te=Ot?void 0:(ge?ce?W:Y:ce?K:st)($t);return d(te||$t,(function(at,re){te&&(at=$t[re=at]),x(Xt,re,vt(at,jt,ye,re,$t,Dt))})),Xt}},3118:(M,N,p)=>{var m=p(3218),d=Object.create,x=(function(){function y(){}return function(k){if(!m(k))return{};if(d)return d(k);y.prototype=k;var C=new y;return y.prototype=void 0,C}})();M.exports=x},9881:(M,N,p)=>{var m=p(7816),d=p(9291)(m);M.exports=d},6029:(M,N,p)=>{var m=p(3448);M.exports=function(d,x,y){for(var k=-1,C=d.length;++k<C;){var S=d[k],I=x(S);if(I!=null&&(L===void 0?I==I&&!m(I):y(I,L)))var L=I,Y=S}return Y}},760:(M,N,p)=>{var m=p(9881);M.exports=function(d,x){var y=[];return m(d,(function(k,C,S){x(k,C,S)&&y.push(k)})),y}},1848:M=>{M.exports=function(N,p,m,d){for(var x=N.length,y=m+(d?1:-1);d?y--:++y<x;)if(p(N[y],y,N))return y;return-1}},1078:(M,N,p)=>{var m=p(2488),d=p(7285);M.exports=function x(y,k,C,S,I){var L=-1,Y=y.length;for(C||(C=d),I||(I=[]);++L<Y;){var W=y[L];k>0&&C(W)?k>1?x(W,k-1,C,S,I):m(I,W):S||(I[I.length]=W)}return I}},8483:(M,N,p)=>{var m=p(5063)();M.exports=m},7816:(M,N,p)=>{var m=p(8483),d=p(3674);M.exports=function(x,y){return x&&m(x,y,d)}},7786:(M,N,p)=>{var m=p(1811),d=p(327);M.exports=function(x,y){for(var k=0,C=(y=m(y,x)).length;x!=null&&k<C;)x=x[d(y[k++])];return k&&k==C?x:void 0}},8866:(M,N,p)=>{var m=p(2488),d=p(1469);M.exports=function(x,y,k){var C=y(x);return d(x)?C:m(C,k(x))}},4239:(M,N,p)=>{var m=p(2705),d=p(9607),x=p(2333),y=m?m.toStringTag:void 0;M.exports=function(k){return k==null?k===void 0?"[object Undefined]":"[object Null]":y&&y in Object(k)?d(k):x(k)}},3325:M=>{M.exports=function(N,p){return N>p}},8565:M=>{var N=Object.prototype.hasOwnProperty;M.exports=function(p,m){return p!=null&&N.call(p,m)}},13:M=>{M.exports=function(N,p){return N!=null&&p in Object(N)}},2118:(M,N,p)=>{var m=p(1848),d=p(2722),x=p(2351);M.exports=function(y,k,C){return k==k?x(y,k,C):m(y,d,C)}},9454:(M,N,p)=>{var m=p(4239),d=p(7005);M.exports=function(x){return d(x)&&m(x)=="[object Arguments]"}},939:(M,N,p)=>{var m=p(2492),d=p(7005);M.exports=function x(y,k,C,S,I){return y===k||(y==null||k==null||!d(y)&&!d(k)?y!=y&&k!=k:m(y,k,C,S,x,I))}},2492:(M,N,p)=>{var m=p(6384),d=p(7114),x=p(8351),y=p(6096),k=p(4160),C=p(1469),S=p(4144),I=p(6719),L="[object Arguments]",Y="[object Array]",W="[object Object]",H=Object.prototype.hasOwnProperty;M.exports=function(V,X,J,lt,nt,_t){var dt=C(V),At=C(X),st=dt?Y:k(V),K=At?Y:k(X),mt=(st=st==L?W:st)==W,St=(K=K==L?W:K)==W,Rt=st==K;if(Rt&&S(V)){if(!S(X))return!1;dt=!0,mt=!1}if(Rt&&!mt)return _t||(_t=new m),dt||I(V)?d(V,X,J,lt,nt,_t):x(V,X,st,J,lt,nt,_t);if(!(1&J)){var ft=mt&&H.call(V,"__wrapped__"),vt=St&&H.call(X,"__wrapped__");if(ft||vt){var $t=ft?V.value():V,jt=vt?X.value():X;return _t||(_t=new m),nt($t,jt,J,lt,_t)}}return!!Rt&&(_t||(_t=new m),y(V,X,J,lt,nt,_t))}},5588:(M,N,p)=>{var m=p(4160),d=p(7005);M.exports=function(x){return d(x)&&m(x)=="[object Map]"}},2958:(M,N,p)=>{var m=p(6384),d=p(939);M.exports=function(x,y,k,C){var S=k.length,I=S,L=!C;if(x==null)return!I;for(x=Object(x);S--;){var Y=k[S];if(L&&Y[2]?Y[1]!==x[Y[0]]:!(Y[0]in x))return!1}for(;++S<I;){var W=(Y=k[S])[0],H=x[W],V=Y[1];if(L&&Y[2]){if(H===void 0&&!(W in x))return!1}else{var X=new m;if(C)var J=C(H,V,W,x,y,X);if(!(J===void 0?d(V,H,3,C,X):J))return!1}}return!0}},2722:M=>{M.exports=function(N){return N!=N}},8458:(M,N,p)=>{var m=p(3560),d=p(5346),x=p(3218),y=p(346),k=/^\[object .+?Constructor\]$/,C=Function.prototype,S=Object.prototype,I=C.toString,L=S.hasOwnProperty,Y=RegExp("^"+I.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");M.exports=function(W){return!(!x(W)||d(W))&&(m(W)?Y:k).test(y(W))}},9221:(M,N,p)=>{var m=p(4160),d=p(7005);M.exports=function(x){return d(x)&&m(x)=="[object Set]"}},8749:(M,N,p)=>{var m=p(4239),d=p(1780),x=p(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,M.exports=function(k){return x(k)&&d(k.length)&&!!y[m(k)]}},7206:(M,N,p)=>{var m=p(1573),d=p(6432),x=p(6557),y=p(1469),k=p(9601);M.exports=function(C){return typeof C=="function"?C:C==null?x:typeof C=="object"?y(C)?d(C[0],C[1]):m(C):k(C)}},280:(M,N,p)=>{var m=p(5726),d=p(6916),x=Object.prototype.hasOwnProperty;M.exports=function(y){if(!m(y))return d(y);var k=[];for(var C in Object(y))x.call(y,C)&&C!="constructor"&&k.push(C);return k}},313:(M,N,p)=>{var m=p(3218),d=p(5726),x=p(3498),y=Object.prototype.hasOwnProperty;M.exports=function(k){if(!m(k))return x(k);var C=d(k),S=[];for(var I in k)(I!="constructor"||!C&&y.call(k,I))&&S.push(I);return S}},433:M=>{M.exports=function(N,p){return N<p}},9199:(M,N,p)=>{var m=p(9881),d=p(8612);M.exports=function(x,y){var k=-1,C=d(x)?Array(x.length):[];return m(x,(function(S,I,L){C[++k]=y(S,I,L)})),C}},1573:(M,N,p)=>{var m=p(2958),d=p(1499),x=p(2634);M.exports=function(y){var k=d(y);return k.length==1&&k[0][2]?x(k[0][0],k[0][1]):function(C){return C===y||m(C,y,k)}}},6432:(M,N,p)=>{var m=p(939),d=p(1917),x=p(9095),y=p(5403),k=p(9162),C=p(2634),S=p(327);M.exports=function(I,L){return y(I)&&k(L)?C(S(I),L):function(Y){var W=d(Y,I);return W===void 0&&W===L?x(Y,I):m(L,W,3)}}},2980:(M,N,p)=>{var m=p(6384),d=p(6556),x=p(8483),y=p(9783),k=p(3218),C=p(1704),S=p(6390);M.exports=function I(L,Y,W,H,V){L!==Y&&x(Y,(function(X,J){if(V||(V=new m),k(X))y(L,Y,J,W,I,H,V);else{var lt=H?H(S(L,J),X,J+"",L,Y,V):void 0;lt===void 0&&(lt=X),d(L,J,lt)}}),C)}},9783:(M,N,p)=>{var m=p(6556),d=p(4626),x=p(7133),y=p(278),k=p(8517),C=p(5694),S=p(1469),I=p(9246),L=p(4144),Y=p(3560),W=p(3218),H=p(8630),V=p(6719),X=p(6390),J=p(3678);M.exports=function(lt,nt,_t,dt,At,st,K){var mt=X(lt,_t),St=X(nt,_t),Rt=K.get(St);if(Rt)m(lt,_t,Rt);else{var ft=st?st(mt,St,_t+"",lt,nt,K):void 0,vt=ft===void 0;if(vt){var $t=S(St),jt=!$t&&L(St),ye=!$t&&!jt&&V(St);ft=St,$t||jt||ye?S(mt)?ft=mt:I(mt)?ft=y(mt):jt?(vt=!1,ft=d(St,!0)):ye?(vt=!1,ft=x(St,!0)):ft=[]:H(St)||C(St)?(ft=mt,C(mt)?ft=J(mt):W(mt)&&!Y(mt)||(ft=k(St))):vt=!1}vt&&(K.set(St,ft),At(ft,St,dt,st,K),K.delete(St)),m(lt,_t,ft)}}},9556:(M,N,p)=>{var m=p(9932),d=p(7786),x=p(7206),y=p(9199),k=p(1131),C=p(1717),S=p(5022),I=p(6557),L=p(1469);M.exports=function(Y,W,H){W=W.length?m(W,(function(J){return L(J)?function(lt){return d(lt,J.length===1?J[0]:J)}:J})):[I];var V=-1;W=m(W,C(x));var X=y(Y,(function(J,lt,nt){return{criteria:m(W,(function(_t){return _t(J)})),index:++V,value:J}}));return k(X,(function(J,lt){return S(J,lt,H)}))}},5970:(M,N,p)=>{var m=p(3012),d=p(9095);M.exports=function(x,y){return m(x,y,(function(k,C){return d(x,C)}))}},3012:(M,N,p)=>{var m=p(7786),d=p(611),x=p(1811);M.exports=function(y,k,C){for(var S=-1,I=k.length,L={};++S<I;){var Y=k[S],W=m(y,Y);C(W,Y)&&d(L,x(Y,y),W)}return L}},371:M=>{M.exports=function(N){return function(p){return p?.[N]}}},9152:(M,N,p)=>{var m=p(7786);M.exports=function(d){return function(x){return m(x,d)}}},98:M=>{var N=Math.ceil,p=Math.max;M.exports=function(m,d,x,y){for(var k=-1,C=p(N((d-m)/(x||1)),0),S=Array(C);C--;)S[y?C:++k]=m,m+=x;return S}},107:M=>{M.exports=function(N,p,m,d,x){return x(N,(function(y,k,C){m=d?(d=!1,y):p(m,y,k,C)})),m}},5976:(M,N,p)=>{var m=p(6557),d=p(5357),x=p(61);M.exports=function(y,k){return x(d(y,k,m),y+"")}},611:(M,N,p)=>{var m=p(4865),d=p(1811),x=p(5776),y=p(3218),k=p(327);M.exports=function(C,S,I,L){if(!y(C))return C;for(var Y=-1,W=(S=d(S,C)).length,H=W-1,V=C;V!=null&&++Y<W;){var X=k(S[Y]),J=I;if(X==="__proto__"||X==="constructor"||X==="prototype")return C;if(Y!=H){var lt=V[X];(J=L?L(lt,X,V):void 0)===void 0&&(J=y(lt)?lt:x(S[Y+1])?[]:{})}m(V,X,J),V=V[X]}return C}},6560:(M,N,p)=>{var m=p(5703),d=p(8777),x=p(6557),y=d?function(k,C){return d(k,"toString",{configurable:!0,enumerable:!1,value:m(C),writable:!0})}:x;M.exports=y},1131:M=>{M.exports=function(N,p){var m=N.length;for(N.sort(p);m--;)N[m]=N[m].value;return N}},2545:M=>{M.exports=function(N,p){for(var m=-1,d=Array(N);++m<N;)d[m]=p(m);return d}},531:(M,N,p)=>{var m=p(2705),d=p(9932),x=p(1469),y=p(3448),k=m?m.prototype:void 0,C=k?k.toString:void 0;M.exports=function S(I){if(typeof I=="string")return I;if(x(I))return d(I,S)+"";if(y(I))return C?C.call(I):"";var L=I+"";return L=="0"&&1/I==-1/0?"-0":L}},7561:(M,N,p)=>{var m=p(7990),d=/^\s+/;M.exports=function(x){return x&&x.slice(0,m(x)+1).replace(d,"")}},1717:M=>{M.exports=function(N){return function(p){return N(p)}}},5652:(M,N,p)=>{var m=p(8668),d=p(7443),x=p(1196),y=p(4757),k=p(3593),C=p(1814);M.exports=function(S,I,L){var Y=-1,W=d,H=S.length,V=!0,X=[],J=X;if(L)V=!1,W=x;else if(H>=200){var lt=I?null:k(S);if(lt)return C(lt);V=!1,W=y,J=new m}else J=I?[]:X;t:for(;++Y<H;){var nt=S[Y],_t=I?I(nt):nt;if(nt=L||nt!==0?nt:0,V&&_t==_t){for(var dt=J.length;dt--;)if(J[dt]===_t)continue t;I&&J.push(_t),X.push(nt)}else W(J,_t,L)||(J!==X&&J.push(_t),X.push(nt))}return X}},7415:(M,N,p)=>{var m=p(9932);M.exports=function(d,x){return m(x,(function(y){return d[y]}))}},1757:M=>{M.exports=function(N,p,m){for(var d=-1,x=N.length,y=p.length,k={};++d<x;){var C=d<y?p[d]:void 0;m(k,N[d],C)}return k}},4757:M=>{M.exports=function(N,p){return N.has(p)}},4290:(M,N,p)=>{var m=p(6557);M.exports=function(d){return typeof d=="function"?d:m}},1811:(M,N,p)=>{var m=p(1469),d=p(5403),x=p(5514),y=p(9833);M.exports=function(k,C){return m(k)?k:d(k,C)?[k]:x(y(k))}},4318:(M,N,p)=>{var m=p(1149);M.exports=function(d){var x=new d.constructor(d.byteLength);return new m(x).set(new m(d)),x}},4626:(M,N,p)=>{M=p.nmd(M);var m=p(5639),d=N&&!N.nodeType&&N,x=d&&M&&!M.nodeType&&M,y=x&&x.exports===d?m.Buffer:void 0,k=y?y.allocUnsafe:void 0;M.exports=function(C,S){if(S)return C.slice();var I=C.length,L=k?k(I):new C.constructor(I);return C.copy(L),L}},7157:(M,N,p)=>{var m=p(4318);M.exports=function(d,x){var y=x?m(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.byteLength)}},3147:M=>{var N=/\w*$/;M.exports=function(p){var m=new p.constructor(p.source,N.exec(p));return m.lastIndex=p.lastIndex,m}},419:(M,N,p)=>{var m=p(2705),d=m?m.prototype:void 0,x=d?d.valueOf:void 0;M.exports=function(y){return x?Object(x.call(y)):{}}},7133:(M,N,p)=>{var m=p(4318);M.exports=function(d,x){var y=x?m(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.length)}},6393:(M,N,p)=>{var m=p(3448);M.exports=function(d,x){if(d!==x){var y=d!==void 0,k=d===null,C=d==d,S=m(d),I=x!==void 0,L=x===null,Y=x==x,W=m(x);if(!L&&!W&&!S&&d>x||S&&I&&Y&&!L&&!W||k&&I&&Y||!y&&Y||!C)return 1;if(!k&&!S&&!W&&d<x||W&&y&&C&&!k&&!S||L&&y&&C||!I&&C||!Y)return-1}return 0}},5022:(M,N,p)=>{var m=p(6393);M.exports=function(d,x,y){for(var k=-1,C=d.criteria,S=x.criteria,I=C.length,L=y.length;++k<I;){var Y=m(C[k],S[k]);if(Y)return k>=L?Y:Y*(y[k]=="desc"?-1:1)}return d.index-x.index}},278:M=>{M.exports=function(N,p){var m=-1,d=N.length;for(p||(p=Array(d));++m<d;)p[m]=N[m];return p}},8363:(M,N,p)=>{var m=p(4865),d=p(9465);M.exports=function(x,y,k,C){var S=!k;k||(k={});for(var I=-1,L=y.length;++I<L;){var Y=y[I],W=C?C(k[Y],x[Y],Y,k,x):void 0;W===void 0&&(W=x[Y]),S?d(k,Y,W):m(k,Y,W)}return k}},8805:(M,N,p)=>{var m=p(8363),d=p(9551);M.exports=function(x,y){return m(x,d(x),y)}},1911:(M,N,p)=>{var m=p(8363),d=p(1442);M.exports=function(x,y){return m(x,d(x),y)}},4429:(M,N,p)=>{var m=p(5639)["__core-js_shared__"];M.exports=m},1750:(M,N,p)=>{var m=p(5976),d=p(6612);M.exports=function(x){return m((function(y,k){var C=-1,S=k.length,I=S>1?k[S-1]:void 0,L=S>2?k[2]:void 0;for(I=x.length>3&&typeof I=="function"?(S--,I):void 0,L&&d(k[0],k[1],L)&&(I=S<3?void 0:I,S=1),y=Object(y);++C<S;){var Y=k[C];Y&&x(y,Y,C,I)}return y}))}},9291:(M,N,p)=>{var m=p(8612);M.exports=function(d,x){return function(y,k){if(y==null)return y;if(!m(y))return d(y,k);for(var C=y.length,S=x?C:-1,I=Object(y);(x?S--:++S<C)&&k(I[S],S,I)!==!1;);return y}}},5063:M=>{M.exports=function(N){return function(p,m,d){for(var x=-1,y=Object(p),k=d(p),C=k.length;C--;){var S=k[N?C:++x];if(m(y[S],S,y)===!1)break}return p}}},7740:(M,N,p)=>{var m=p(7206),d=p(8612),x=p(3674);M.exports=function(y){return function(k,C,S){var I=Object(k);if(!d(k)){var L=m(C,3);k=x(k),C=function(W){return L(I[W],W,I)}}var Y=y(k,C,S);return Y>-1?I[L?k[Y]:Y]:void 0}}},7445:(M,N,p)=>{var m=p(98),d=p(6612),x=p(8601);M.exports=function(y){return function(k,C,S){return S&&typeof S!="number"&&d(k,C,S)&&(C=S=void 0),k=x(k),C===void 0?(C=k,k=0):C=x(C),S=S===void 0?k<C?1:-1:x(S),m(k,C,S,y)}}},3593:(M,N,p)=>{var m=p(8525),d=p(308),x=p(1814),y=m&&1/x(new m([,-0]))[1]==1/0?function(k){return new m(k)}:d;M.exports=y},8777:(M,N,p)=>{var m=p(852),d=(function(){try{var x=m(Object,"defineProperty");return x({},"",{}),x}catch{}})();M.exports=d},7114:(M,N,p)=>{var m=p(8668),d=p(2908),x=p(4757);M.exports=function(y,k,C,S,I,L){var Y=1&C,W=y.length,H=k.length;if(W!=H&&!(Y&&H>W))return!1;var V=L.get(y),X=L.get(k);if(V&&X)return V==k&&X==y;var J=-1,lt=!0,nt=2&C?new m:void 0;for(L.set(y,k),L.set(k,y);++J<W;){var _t=y[J],dt=k[J];if(S)var At=Y?S(dt,_t,J,k,y,L):S(_t,dt,J,y,k,L);if(At!==void 0){if(At)continue;lt=!1;break}if(nt){if(!d(k,(function(st,K){if(!x(nt,K)&&(_t===st||I(_t,st,C,S,L)))return nt.push(K)}))){lt=!1;break}}else if(_t!==dt&&!I(_t,dt,C,S,L)){lt=!1;break}}return L.delete(y),L.delete(k),lt}},8351:(M,N,p)=>{var m=p(2705),d=p(1149),x=p(7813),y=p(7114),k=p(8776),C=p(1814),S=m?m.prototype:void 0,I=S?S.valueOf:void 0;M.exports=function(L,Y,W,H,V,X,J){switch(W){case"[object DataView]":if(L.byteLength!=Y.byteLength||L.byteOffset!=Y.byteOffset)return!1;L=L.buffer,Y=Y.buffer;case"[object ArrayBuffer]":return!(L.byteLength!=Y.byteLength||!X(new d(L),new d(Y)));case"[object Boolean]":case"[object Date]":case"[object Number]":return x(+L,+Y);case"[object Error]":return L.name==Y.name&&L.message==Y.message;case"[object RegExp]":case"[object String]":return L==Y+"";case"[object Map]":var lt=k;case"[object Set]":var nt=1&H;if(lt||(lt=C),L.size!=Y.size&&!nt)return!1;var _t=J.get(L);if(_t)return _t==Y;H|=2,J.set(L,Y);var dt=y(lt(L),lt(Y),H,V,X,J);return J.delete(L),dt;case"[object Symbol]":if(I)return I.call(L)==I.call(Y)}return!1}},6096:(M,N,p)=>{var m=p(8234),d=Object.prototype.hasOwnProperty;M.exports=function(x,y,k,C,S,I){var L=1&k,Y=m(x),W=Y.length;if(W!=m(y).length&&!L)return!1;for(var H=W;H--;){var V=Y[H];if(!(L?V in y:d.call(y,V)))return!1}var X=I.get(x),J=I.get(y);if(X&&J)return X==y&&J==x;var lt=!0;I.set(x,y),I.set(y,x);for(var nt=L;++H<W;){var _t=x[V=Y[H]],dt=y[V];if(C)var At=L?C(dt,_t,V,y,x,I):C(_t,dt,V,x,y,I);if(!(At===void 0?_t===dt||S(_t,dt,k,C,I):At)){lt=!1;break}nt||(nt=V=="constructor")}if(lt&&!nt){var st=x.constructor,K=y.constructor;st==K||!("constructor"in x)||!("constructor"in y)||typeof st=="function"&&st instanceof st&&typeof K=="function"&&K instanceof K||(lt=!1)}return I.delete(x),I.delete(y),lt}},9021:(M,N,p)=>{var m=p(5564),d=p(5357),x=p(61);M.exports=function(y){return x(d(y,void 0,m),y+"")}},1957:(M,N,p)=>{var m=typeof p.g=="object"&&p.g&&p.g.Object===Object&&p.g;M.exports=m},8234:(M,N,p)=>{var m=p(8866),d=p(9551),x=p(3674);M.exports=function(y){return m(y,x,d)}},6904:(M,N,p)=>{var m=p(8866),d=p(1442),x=p(1704);M.exports=function(y){return m(y,x,d)}},5050:(M,N,p)=>{var m=p(7019);M.exports=function(d,x){var y=d.__data__;return m(x)?y[typeof x=="string"?"string":"hash"]:y.map}},1499:(M,N,p)=>{var m=p(9162),d=p(3674);M.exports=function(x){for(var y=d(x),k=y.length;k--;){var C=y[k],S=x[C];y[k]=[C,S,m(S)]}return y}},852:(M,N,p)=>{var m=p(8458),d=p(7801);M.exports=function(x,y){var k=d(x,y);return m(k)?k:void 0}},5924:(M,N,p)=>{var m=p(5569)(Object.getPrototypeOf,Object);M.exports=m},9607:(M,N,p)=>{var m=p(2705),d=Object.prototype,x=d.hasOwnProperty,y=d.toString,k=m?m.toStringTag:void 0;M.exports=function(C){var S=x.call(C,k),I=C[k];try{C[k]=void 0;var L=!0}catch{}var Y=y.call(C);return L&&(S?C[k]=I:delete C[k]),Y}},9551:(M,N,p)=>{var m=p(4963),d=p(479),x=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,k=y?function(C){return C==null?[]:(C=Object(C),m(y(C),(function(S){return x.call(C,S)})))}:d;M.exports=k},1442:(M,N,p)=>{var m=p(2488),d=p(5924),x=p(9551),y=p(479),k=Object.getOwnPropertySymbols?function(C){for(var S=[];C;)m(S,x(C)),C=d(C);return S}:y;M.exports=k},4160:(M,N,p)=>{var m=p(8552),d=p(7071),x=p(3818),y=p(8525),k=p(577),C=p(4239),S=p(346),I="[object Map]",L="[object Promise]",Y="[object Set]",W="[object WeakMap]",H="[object DataView]",V=S(m),X=S(d),J=S(x),lt=S(y),nt=S(k),_t=C;(m&&_t(new m(new ArrayBuffer(1)))!=H||d&&_t(new d)!=I||x&&_t(x.resolve())!=L||y&&_t(new y)!=Y||k&&_t(new k)!=W)&&(_t=function(dt){var At=C(dt),st=At=="[object Object]"?dt.constructor:void 0,K=st?S(st):"";if(K)switch(K){case V:return H;case X:return I;case J:return L;case lt:return Y;case nt:return W}return At}),M.exports=_t},7801:M=>{M.exports=function(N,p){return N?.[p]}},222:(M,N,p)=>{var m=p(1811),d=p(5694),x=p(1469),y=p(5776),k=p(1780),C=p(327);M.exports=function(S,I,L){for(var Y=-1,W=(I=m(I,S)).length,H=!1;++Y<W;){var V=C(I[Y]);if(!(H=S!=null&&L(S,V)))break;S=S[V]}return H||++Y!=W?H:!!(W=S==null?0:S.length)&&k(W)&&y(V,W)&&(x(S)||d(S))}},2689:M=>{var N=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");M.exports=function(p){return N.test(p)}},1789:(M,N,p)=>{var m=p(4536);M.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:M=>{M.exports=function(N){var p=this.has(N)&&delete this.__data__[N];return this.size-=p?1:0,p}},7667:(M,N,p)=>{var m=p(4536),d=Object.prototype.hasOwnProperty;M.exports=function(x){var y=this.__data__;if(m){var k=y[x];return k==="__lodash_hash_undefined__"?void 0:k}return d.call(y,x)?y[x]:void 0}},1327:(M,N,p)=>{var m=p(4536),d=Object.prototype.hasOwnProperty;M.exports=function(x){var y=this.__data__;return m?y[x]!==void 0:d.call(y,x)}},1866:(M,N,p)=>{var m=p(4536);M.exports=function(d,x){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=m&&x===void 0?"__lodash_hash_undefined__":x,this}},3824:M=>{var N=Object.prototype.hasOwnProperty;M.exports=function(p){var m=p.length,d=new p.constructor(m);return m&&typeof p[0]=="string"&&N.call(p,"index")&&(d.index=p.index,d.input=p.input),d}},9148:(M,N,p)=>{var m=p(4318),d=p(7157),x=p(3147),y=p(419),k=p(7133);M.exports=function(C,S,I){var L=C.constructor;switch(S){case"[object ArrayBuffer]":return m(C);case"[object Boolean]":case"[object Date]":return new L(+C);case"[object DataView]":return d(C,I);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return k(C,I);case"[object Map]":case"[object Set]":return new L;case"[object Number]":case"[object String]":return new L(C);case"[object RegExp]":return x(C);case"[object Symbol]":return y(C)}}},8517:(M,N,p)=>{var m=p(3118),d=p(5924),x=p(5726);M.exports=function(y){return typeof y.constructor!="function"||x(y)?{}:m(d(y))}},7285:(M,N,p)=>{var m=p(2705),d=p(5694),x=p(1469),y=m?m.isConcatSpreadable:void 0;M.exports=function(k){return x(k)||d(k)||!!(y&&k&&k[y])}},5776:M=>{var N=/^(?:0|[1-9]\d*)$/;M.exports=function(p,m){var d=typeof p;return!!(m=m??9007199254740991)&&(d=="number"||d!="symbol"&&N.test(p))&&p>-1&&p%1==0&&p<m}},6612:(M,N,p)=>{var m=p(7813),d=p(8612),x=p(5776),y=p(3218);M.exports=function(k,C,S){if(!y(S))return!1;var I=typeof C;return!!(I=="number"?d(S)&&x(C,S.length):I=="string"&&C in S)&&m(S[C],k)}},5403:(M,N,p)=>{var m=p(1469),d=p(3448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;M.exports=function(k,C){if(m(k))return!1;var S=typeof k;return!(S!="number"&&S!="symbol"&&S!="boolean"&&k!=null&&!d(k))||y.test(k)||!x.test(k)||C!=null&&k in Object(C)}},7019:M=>{M.exports=function(N){var p=typeof N;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?N!=="__proto__":N===null}},5346:(M,N,p)=>{var m,d=p(4429),x=(m=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";M.exports=function(y){return!!x&&x in y}},5726:M=>{var N=Object.prototype;M.exports=function(p){var m=p&&p.constructor;return p===(typeof m=="function"&&m.prototype||N)}},9162:(M,N,p)=>{var m=p(3218);M.exports=function(d){return d==d&&!m(d)}},7040:M=>{M.exports=function(){this.__data__=[],this.size=0}},2188:(M,N,p)=>{var m=p(8470),d=Array.prototype.splice;M.exports=function(x){var y=this.__data__,k=m(y,x);return!(k<0||(k==y.length-1?y.pop():d.call(y,k,1),--this.size,0))}},2117:(M,N,p)=>{var m=p(8470);M.exports=function(d){var x=this.__data__,y=m(x,d);return y<0?void 0:x[y][1]}},7518:(M,N,p)=>{var m=p(8470);M.exports=function(d){return m(this.__data__,d)>-1}},4705:(M,N,p)=>{var m=p(8470);M.exports=function(d,x){var y=this.__data__,k=m(y,d);return k<0?(++this.size,y.push([d,x])):y[k][1]=x,this}},4785:(M,N,p)=>{var m=p(1989),d=p(8407),x=p(7071);M.exports=function(){this.size=0,this.__data__={hash:new m,map:new(x||d),string:new m}}},1285:(M,N,p)=>{var m=p(5050);M.exports=function(d){var x=m(this,d).delete(d);return this.size-=x?1:0,x}},6e3:(M,N,p)=>{var m=p(5050);M.exports=function(d){return m(this,d).get(d)}},9916:(M,N,p)=>{var m=p(5050);M.exports=function(d){return m(this,d).has(d)}},5265:(M,N,p)=>{var m=p(5050);M.exports=function(d,x){var y=m(this,d),k=y.size;return y.set(d,x),this.size+=y.size==k?0:1,this}},8776:M=>{M.exports=function(N){var p=-1,m=Array(N.size);return N.forEach((function(d,x){m[++p]=[x,d]})),m}},2634:M=>{M.exports=function(N,p){return function(m){return m!=null&&m[N]===p&&(p!==void 0||N in Object(m))}}},4523:(M,N,p)=>{var m=p(8306);M.exports=function(d){var x=m(d,(function(k){return y.size===500&&y.clear(),k})),y=x.cache;return x}},4536:(M,N,p)=>{var m=p(852)(Object,"create");M.exports=m},6916:(M,N,p)=>{var m=p(5569)(Object.keys,Object);M.exports=m},3498:M=>{M.exports=function(N){var p=[];if(N!=null)for(var m in Object(N))p.push(m);return p}},1167:(M,N,p)=>{M=p.nmd(M);var m=p(1957),d=N&&!N.nodeType&&N,x=d&&M&&!M.nodeType&&M,y=x&&x.exports===d&&m.process,k=(function(){try{return x&&x.require&&x.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();M.exports=k},2333:M=>{var N=Object.prototype.toString;M.exports=function(p){return N.call(p)}},5569:M=>{M.exports=function(N,p){return function(m){return N(p(m))}}},5357:(M,N,p)=>{var m=p(6874),d=Math.max;M.exports=function(x,y,k){return y=d(y===void 0?x.length-1:y,0),function(){for(var C=arguments,S=-1,I=d(C.length-y,0),L=Array(I);++S<I;)L[S]=C[y+S];S=-1;for(var Y=Array(y+1);++S<y;)Y[S]=C[S];return Y[y]=k(L),m(x,this,Y)}}},5639:(M,N,p)=>{var m=p(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,x=m||d||Function("return this")();M.exports=x},6390:M=>{M.exports=function(N,p){if((p!=="constructor"||typeof N[p]!="function")&&p!="__proto__")return N[p]}},619:M=>{M.exports=function(N){return this.__data__.set(N,"__lodash_hash_undefined__"),this}},2385:M=>{M.exports=function(N){return this.__data__.has(N)}},1814:M=>{M.exports=function(N){var p=-1,m=Array(N.size);return N.forEach((function(d){m[++p]=d})),m}},61:(M,N,p)=>{var m=p(6560),d=p(1275)(m);M.exports=d},1275:M=>{var N=Date.now;M.exports=function(p){var m=0,d=0;return function(){var x=N(),y=16-(x-d);if(d=x,y>0){if(++m>=800)return arguments[0]}else m=0;return p.apply(void 0,arguments)}}},7465:(M,N,p)=>{var m=p(8407);M.exports=function(){this.__data__=new m,this.size=0}},3779:M=>{M.exports=function(N){var p=this.__data__,m=p.delete(N);return this.size=p.size,m}},7599:M=>{M.exports=function(N){return this.__data__.get(N)}},4758:M=>{M.exports=function(N){return this.__data__.has(N)}},4309:(M,N,p)=>{var m=p(8407),d=p(7071),x=p(3369);M.exports=function(y,k){var C=this.__data__;if(C instanceof m){var S=C.__data__;if(!d||S.length<199)return S.push([y,k]),this.size=++C.size,this;C=this.__data__=new x(S)}return C.set(y,k),this.size=C.size,this}},2351:M=>{M.exports=function(N,p,m){for(var d=m-1,x=N.length;++d<x;)if(N[d]===p)return d;return-1}},8016:(M,N,p)=>{var m=p(8983),d=p(2689),x=p(1903);M.exports=function(y){return d(y)?x(y):m(y)}},5514:(M,N,p)=>{var m=p(4523),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,y=m((function(k){var C=[];return k.charCodeAt(0)===46&&C.push(""),k.replace(d,(function(S,I,L,Y){C.push(L?Y.replace(x,"$1"):I||S)})),C}));M.exports=y},327:(M,N,p)=>{var m=p(3448);M.exports=function(d){if(typeof d=="string"||m(d))return d;var x=d+"";return x=="0"&&1/d==-1/0?"-0":x}},346:M=>{var N=Function.prototype.toString;M.exports=function(p){if(p!=null){try{return N.call(p)}catch{}try{return p+""}catch{}}return""}},7990:M=>{var N=/\s/;M.exports=function(p){for(var m=p.length;m--&&N.test(p.charAt(m)););return m}},1903:M=>{var N="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+N+"|"+p+")?",k="[\\ufe0e\\ufe0f]?",C=k+y+"(?:\\u200d(?:"+[m,d,x].join("|")+")"+k+y+")*",S="(?:"+[m+N+"?",N,d,x,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(p+"(?="+p+")|"+S+C,"g");M.exports=function(L){for(var Y=I.lastIndex=0;I.test(L);)++Y;return Y}},6678:(M,N,p)=>{var m=p(5990);M.exports=function(d){return m(d,4)}},361:(M,N,p)=>{var m=p(5990);M.exports=function(d){return m(d,5)}},5703:M=>{M.exports=function(N){return function(){return N}}},1747:(M,N,p)=>{var m=p(5976),d=p(7813),x=p(6612),y=p(1704),k=Object.prototype,C=k.hasOwnProperty,S=m((function(I,L){I=Object(I);var Y=-1,W=L.length,H=W>2?L[2]:void 0;for(H&&x(L[0],L[1],H)&&(W=1);++Y<W;)for(var V=L[Y],X=y(V),J=-1,lt=X.length;++J<lt;){var nt=X[J],_t=I[nt];(_t===void 0||d(_t,k[nt])&&!C.call(I,nt))&&(I[nt]=V[nt])}return I}));M.exports=S},6073:(M,N,p)=>{M.exports=p(4486)},7813:M=>{M.exports=function(N,p){return N===p||N!=N&&p!=p}},3105:(M,N,p)=>{var m=p(4963),d=p(760),x=p(7206),y=p(1469);M.exports=function(k,C){return(y(k)?m:d)(k,x(C,3))}},3311:(M,N,p)=>{var m=p(7740)(p(998));M.exports=m},998:(M,N,p)=>{var m=p(1848),d=p(7206),x=p(554),y=Math.max;M.exports=function(k,C,S){var I=k==null?0:k.length;if(!I)return-1;var L=S==null?0:x(S);return L<0&&(L=y(I+L,0)),m(k,d(C,3),L)}},5564:(M,N,p)=>{var m=p(1078);M.exports=function(d){return d!=null&&d.length?m(d,1):[]}},4486:(M,N,p)=>{var m=p(7412),d=p(9881),x=p(4290),y=p(1469);M.exports=function(k,C){return(y(k)?m:d)(k,x(C))}},2620:(M,N,p)=>{var m=p(8483),d=p(4290),x=p(1704);M.exports=function(y,k){return y==null?y:m(y,d(k),x)}},1917:(M,N,p)=>{var m=p(7786);M.exports=function(d,x,y){var k=d==null?void 0:m(d,x);return k===void 0?y:k}},8721:(M,N,p)=>{var m=p(8565),d=p(222);M.exports=function(x,y){return x!=null&&d(x,y,m)}},9095:(M,N,p)=>{var m=p(13),d=p(222);M.exports=function(x,y){return x!=null&&d(x,y,m)}},6557:M=>{M.exports=function(N){return N}},5694:(M,N,p)=>{var m=p(9454),d=p(7005),x=Object.prototype,y=x.hasOwnProperty,k=x.propertyIsEnumerable,C=m((function(){return arguments})())?m:function(S){return d(S)&&y.call(S,"callee")&&!k.call(S,"callee")};M.exports=C},1469:M=>{var N=Array.isArray;M.exports=N},8612:(M,N,p)=>{var m=p(3560),d=p(1780);M.exports=function(x){return x!=null&&d(x.length)&&!m(x)}},9246:(M,N,p)=>{var m=p(8612),d=p(7005);M.exports=function(x){return d(x)&&m(x)}},4144:(M,N,p)=>{M=p.nmd(M);var m=p(5639),d=p(5062),x=N&&!N.nodeType&&N,y=x&&M&&!M.nodeType&&M,k=y&&y.exports===x?m.Buffer:void 0,C=(k?k.isBuffer:void 0)||d;M.exports=C},1609:(M,N,p)=>{var m=p(280),d=p(4160),x=p(5694),y=p(1469),k=p(8612),C=p(4144),S=p(5726),I=p(6719),L=Object.prototype.hasOwnProperty;M.exports=function(Y){if(Y==null)return!0;if(k(Y)&&(y(Y)||typeof Y=="string"||typeof Y.splice=="function"||C(Y)||I(Y)||x(Y)))return!Y.length;var W=d(Y);if(W=="[object Map]"||W=="[object Set]")return!Y.size;if(S(Y))return!m(Y).length;for(var H in Y)if(L.call(Y,H))return!1;return!0}},3560:(M,N,p)=>{var m=p(4239),d=p(3218);M.exports=function(x){if(!d(x))return!1;var y=m(x);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:M=>{M.exports=function(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=9007199254740991}},6688:(M,N,p)=>{var m=p(5588),d=p(1717),x=p(1167),y=x&&x.isMap,k=y?d(y):m;M.exports=k},3218:M=>{M.exports=function(N){var p=typeof N;return N!=null&&(p=="object"||p=="function")}},7005:M=>{M.exports=function(N){return N!=null&&typeof N=="object"}},8630:(M,N,p)=>{var m=p(4239),d=p(5924),x=p(7005),y=Function.prototype,k=Object.prototype,C=y.toString,S=k.hasOwnProperty,I=C.call(Object);M.exports=function(L){if(!x(L)||m(L)!="[object Object]")return!1;var Y=d(L);if(Y===null)return!0;var W=S.call(Y,"constructor")&&Y.constructor;return typeof W=="function"&&W instanceof W&&C.call(W)==I}},2928:(M,N,p)=>{var m=p(9221),d=p(1717),x=p(1167),y=x&&x.isSet,k=y?d(y):m;M.exports=k},7037:(M,N,p)=>{var m=p(4239),d=p(1469),x=p(7005);M.exports=function(y){return typeof y=="string"||!d(y)&&x(y)&&m(y)=="[object String]"}},3448:(M,N,p)=>{var m=p(4239),d=p(7005);M.exports=function(x){return typeof x=="symbol"||d(x)&&m(x)=="[object Symbol]"}},6719:(M,N,p)=>{var m=p(8749),d=p(1717),x=p(1167),y=x&&x.isTypedArray,k=y?d(y):m;M.exports=k},2353:M=>{M.exports=function(N){return N===void 0}},3674:(M,N,p)=>{var m=p(4636),d=p(280),x=p(8612);M.exports=function(y){return x(y)?m(y):d(y)}},1704:(M,N,p)=>{var m=p(4636),d=p(313),x=p(8612);M.exports=function(y){return x(y)?m(y,!0):d(y)}},928:M=>{M.exports=function(N){var p=N==null?0:N.length;return p?N[p-1]:void 0}},5161:(M,N,p)=>{var m=p(9932),d=p(7206),x=p(9199),y=p(1469);M.exports=function(k,C){return(y(k)?m:x)(k,d(C,3))}},6604:(M,N,p)=>{var m=p(9465),d=p(7816),x=p(7206);M.exports=function(y,k){var C={};return k=x(k,3),d(y,(function(S,I,L){m(C,I,k(S,I,L))})),C}},6162:(M,N,p)=>{var m=p(6029),d=p(3325),x=p(6557);M.exports=function(y){return y&&y.length?m(y,x,d):void 0}},8306:(M,N,p)=>{var m=p(3369);function d(x,y){if(typeof x!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var k=function(){var C=arguments,S=y?y.apply(this,C):C[0],I=k.cache;if(I.has(S))return I.get(S);var L=x.apply(this,C);return k.cache=I.set(S,L)||I,L};return k.cache=new(d.Cache||m),k}d.Cache=m,M.exports=d},3857:(M,N,p)=>{var m=p(2980),d=p(1750)((function(x,y,k){m(x,y,k)}));M.exports=d},3632:(M,N,p)=>{var m=p(6029),d=p(433),x=p(6557);M.exports=function(y){return y&&y.length?m(y,x,d):void 0}},2762:(M,N,p)=>{var m=p(6029),d=p(7206),x=p(433);M.exports=function(y,k){return y&&y.length?m(y,d(k,2),x):void 0}},308:M=>{M.exports=function(){}},7771:(M,N,p)=>{var m=p(5639);M.exports=function(){return m.Date.now()}},9722:(M,N,p)=>{var m=p(5970),d=p(9021)((function(x,y){return x==null?{}:m(x,y)}));M.exports=d},9601:(M,N,p)=>{var m=p(371),d=p(9152),x=p(5403),y=p(327);M.exports=function(k){return x(k)?m(y(k)):d(k)}},6026:(M,N,p)=>{var m=p(7445)();M.exports=m},4061:(M,N,p)=>{var m=p(2663),d=p(9881),x=p(7206),y=p(107),k=p(1469);M.exports=function(C,S,I){var L=k(C)?m:y,Y=arguments.length<3;return L(C,x(S,4),I,Y,d)}},4238:(M,N,p)=>{var m=p(280),d=p(4160),x=p(8612),y=p(7037),k=p(8016);M.exports=function(C){if(C==null)return 0;if(x(C))return y(C)?k(C):C.length;var S=d(C);return S=="[object Map]"||S=="[object Set]"?C.size:m(C).length}},9734:(M,N,p)=>{var m=p(1078),d=p(9556),x=p(5976),y=p(6612),k=x((function(C,S){if(C==null)return[];var I=S.length;return I>1&&y(C,S[0],S[1])?S=[]:I>2&&y(S[0],S[1],S[2])&&(S=[S[0]]),d(C,m(S,1),[])}));M.exports=k},479:M=>{M.exports=function(){return[]}},5062:M=>{M.exports=function(){return!1}},8601:(M,N,p)=>{var m=p(4841);M.exports=function(d){return d?(d=m(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}},554:(M,N,p)=>{var m=p(8601);M.exports=function(d){var x=m(d),y=x%1;return x==x?y?x-y:x:0}},4841:(M,N,p)=>{var m=p(7561),d=p(3218),x=p(3448),y=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,C=/^0o[0-7]+$/i,S=parseInt;M.exports=function(I){if(typeof I=="number")return I;if(x(I))return NaN;if(d(I)){var L=typeof I.valueOf=="function"?I.valueOf():I;I=d(L)?L+"":L}if(typeof I!="string")return I===0?I:+I;I=m(I);var Y=k.test(I);return Y||C.test(I)?S(I.slice(2),Y?2:8):y.test(I)?NaN:+I}},3678:(M,N,p)=>{var m=p(8363),d=p(1704);M.exports=function(x){return m(x,d(x))}},9833:(M,N,p)=>{var m=p(531);M.exports=function(d){return d==null?"":m(d)}},8718:(M,N,p)=>{var m=p(7412),d=p(3118),x=p(7816),y=p(7206),k=p(5924),C=p(1469),S=p(4144),I=p(3560),L=p(3218),Y=p(6719);M.exports=function(W,H,V){var X=C(W),J=X||S(W)||Y(W);if(H=y(H,4),V==null){var lt=W&&W.constructor;V=J?X?new lt:[]:L(W)&&I(lt)?d(k(W)):{}}return(J?m:x)(W,(function(nt,_t,dt){return H(V,nt,_t,dt)})),V}},3386:(M,N,p)=>{var m=p(1078),d=p(5976),x=p(5652),y=p(9246),k=d((function(C){return x(m(C,1,y,!0))}));M.exports=k},3955:(M,N,p)=>{var m=p(9833),d=0;M.exports=function(x){var y=++d;return m(x)+y}},2628:(M,N,p)=>{var m=p(7415),d=p(3674);M.exports=function(x){return x==null?[]:m(x,d(x))}},7287:(M,N,p)=>{var m=p(4865),d=p(1757);M.exports=function(x,y){return d(x||[],y||[],m)}},9234:()=>{},1748:(M,N,p)=>{var m={"./locale":9234,"./locale.js":9234};function d(y){var k=x(y);return p(k)}function x(y){if(!p.o(m,y)){var k=new Error("Cannot find module '"+y+"'");throw k.code="MODULE_NOT_FOUND",k}return m[y]}d.keys=function(){return Object.keys(m)},d.resolve=x,M.exports=d,d.id=1748},1941:function(M,N,p){(M=p.nmd(M)).exports=(function(){var m,d;function x(){return m.apply(null,arguments)}function y(E){return E instanceof Array||Object.prototype.toString.call(E)==="[object Array]"}function k(E){return E!=null&&Object.prototype.toString.call(E)==="[object Object]"}function C(E){return E===void 0}function S(E){return typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]"}function I(E){return E instanceof Date||Object.prototype.toString.call(E)==="[object Date]"}function L(E,R){var $,it=[];for($=0;$<E.length;++$)it.push(R(E[$],$));return it}function Y(E,R){return Object.prototype.hasOwnProperty.call(E,R)}function W(E,R){for(var $ in R)Y(R,$)&&(E[$]=R[$]);return Y(R,"toString")&&(E.toString=R.toString),Y(R,"valueOf")&&(E.valueOf=R.valueOf),E}function H(E,R,$,it){return Wi(E,R,$,it,!0).utc()}function V(E){return E._pf==null&&(E._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),E._pf}function X(E){if(E._isValid==null){var R=V(E),$=d.call(R.parsedDateParts,(function(Wt){return Wt!=null})),it=!isNaN(E._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&$);if(E._strict&&(it=it&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(E))return it;E._isValid=it}return E._isValid}function J(E){var R=H(NaN);return E!=null?W(V(R),E):V(R).userInvalidated=!0,R}d=Array.prototype.some?Array.prototype.some:function(E){for(var R=Object(this),$=R.length>>>0,it=0;it<$;it++)if(it in R&&E.call(this,R[it],it,R))return!0;return!1};var lt=x.momentProperties=[];function nt(E,R){var $,it,Wt;if(C(R._isAMomentObject)||(E._isAMomentObject=R._isAMomentObject),C(R._i)||(E._i=R._i),C(R._f)||(E._f=R._f),C(R._l)||(E._l=R._l),C(R._strict)||(E._strict=R._strict),C(R._tzm)||(E._tzm=R._tzm),C(R._isUTC)||(E._isUTC=R._isUTC),C(R._offset)||(E._offset=R._offset),C(R._pf)||(E._pf=V(R)),C(R._locale)||(E._locale=R._locale),0<lt.length)for($=0;$<lt.length;$++)C(Wt=R[it=lt[$]])||(E[it]=Wt);return E}var _t=!1;function dt(E){nt(this,E),this._d=new Date(E._d!=null?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_t===!1&&(_t=!0,x.updateOffset(this),_t=!1)}function At(E){return E instanceof dt||E!=null&&E._isAMomentObject!=null}function st(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function K(E){var R=+E,$=0;return R!==0&&isFinite(R)&&($=st(R)),$}function mt(E,R,$){var it,Wt=Math.min(E.length,R.length),fe=Math.abs(E.length-R.length),xe=0;for(it=0;it<Wt;it++)($&&E[it]!==R[it]||!$&&K(E[it])!==K(R[it]))&&xe++;return xe+fe}function St(E){x.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+E)}function Rt(E,R){var $=!0;return W((function(){if(x.deprecationHandler!=null&&x.deprecationHandler(null,E),$){for(var it,Wt=[],fe=0;fe<arguments.length;fe++){if(it="",typeof arguments[fe]=="object"){for(var xe in it+=`
|
|
1181
|
+
[`+fe+"] ",arguments[0])it+=xe+": "+arguments[0][xe]+", ";it=it.slice(0,-2)}else it=arguments[fe];Wt.push(it)}St(E+`
|
|
1182
|
+
Arguments: `+Array.prototype.slice.call(Wt).join("")+`
|
|
1183
|
+
`+new Error().stack),$=!1}return R.apply(this,arguments)}),R)}var ft,vt={};function $t(E,R){x.deprecationHandler!=null&&x.deprecationHandler(E,R),vt[E]||(St(R),vt[E]=!0)}function jt(E){return E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function ye(E,R){var $,it=W({},E);for($ in R)Y(R,$)&&(k(E[$])&&k(R[$])?(it[$]={},W(it[$],E[$]),W(it[$],R[$])):R[$]!=null?it[$]=R[$]:delete it[$]);for($ in E)Y(E,$)&&!Y(R,$)&&k(E[$])&&(it[$]=W({},it[$]));return it}function pe(E){E!=null&&this.set(E)}x.suppressDeprecationWarnings=!1,x.deprecationHandler=null,ft=Object.keys?Object.keys:function(E){var R,$=[];for(R in E)Y(E,R)&&$.push(R);return $};var de={};function Dt(E,R){var $=E.toLowerCase();de[$]=de[$+"s"]=de[R]=E}function Xt(E){return typeof E=="string"?de[E]||de[E.toLowerCase()]:void 0}function se(E){var R,$,it={};for($ in E)Y(E,$)&&(R=Xt($))&&(it[R]=E[$]);return it}var ce={};function ge(E,R){ce[E]=R}function Ot(E,R,$){var it=""+Math.abs(E),Wt=R-it.length;return(0<=E?$?"+":"":"-")+Math.pow(10,Math.max(0,Wt)).toString().substr(1)+it}var $e=/(\[[^\[]*\])|(\\)?([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,le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Yt={},te={};function at(E,R,$,it){var Wt=it;typeof it=="string"&&(Wt=function(){return this[it]()}),E&&(te[E]=Wt),R&&(te[R[0]]=function(){return Ot(Wt.apply(this,arguments),R[1],R[2])}),$&&(te[$]=function(){return this.localeData().ordinal(Wt.apply(this,arguments),E)})}function re(E,R){return E.isValid()?(R=Mt(R,E.localeData()),Yt[R]=Yt[R]||(function($){var it,Wt,fe,xe=$.match($e);for(it=0,Wt=xe.length;it<Wt;it++)te[xe[it]]?xe[it]=te[xe[it]]:xe[it]=(fe=xe[it]).match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"");return function(Ae){var Ne,Ye="";for(Ne=0;Ne<Wt;Ne++)Ye+=jt(xe[Ne])?xe[Ne].call(Ae,$):xe[Ne];return Ye}})(R),Yt[R](E)):E.localeData().invalidDate()}function Mt(E,R){var $=5;function it(Wt){return R.longDateFormat(Wt)||Wt}for(le.lastIndex=0;0<=$&&le.test(E);)E=E.replace(le,it),le.lastIndex=0,$-=1;return E}var Vt=/\d/,Ht=/\d\d/,Nt=/\d{3}/,oe=/\d{4}/,Je=/[+-]?\d{6}/,me=/\d\d?/,Me=/\d\d\d\d?/,un=/\d\d\d\d\d\d?/,Ge=/\d{1,3}/,Oe=/\d{1,4}/,Ce=/[+-]?\d{1,6}/,tn=/\d+/,ze=/[+-]?\d+/,Xe=/Z|[+-]\d\d:?\d\d/gi,Ze=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[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,Pn={};function Se(E,R,$){Pn[E]=jt(R)?R:function(it,Wt){return it&&$?$:R}}function rn(E,R){return Y(Pn,E)?Pn[E](R._strict,R._locale):new RegExp(gn(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function($,it,Wt,fe,xe){return it||Wt||fe||xe}))))}function gn(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Dr={};function yn(E,R){var $,it=R;for(typeof E=="string"&&(E=[E]),S(R)&&(it=function(Wt,fe){fe[R]=K(Wt)}),$=0;$<E.length;$++)Dr[E[$]]=it}function Zn(E,R){yn(E,(function($,it,Wt,fe){Wt._w=Wt._w||{},R($,Wt._w,Wt,fe)}))}function on(E){return fn(E)?366:365}function fn(E){return E%4==0&&E%100!=0||E%400==0}at("Y",0,0,(function(){var E=this.year();return E<=9999?""+E:"+"+E})),at(0,["YY",2],0,(function(){return this.year()%100})),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),Dt("year","y"),ge("year",1),Se("Y",ze),Se("YY",me,Ht),Se("YYYY",Oe,oe),Se("YYYYY",Ce,Je),Se("YYYYYY",Ce,Je),yn(["YYYYY","YYYYYY"],0),yn("YYYY",(function(E,R){R[0]=E.length===2?x.parseTwoDigitYear(E):K(E)})),yn("YY",(function(E,R){R[0]=x.parseTwoDigitYear(E)})),yn("Y",(function(E,R){R[0]=parseInt(E,10)})),x.parseTwoDigitYear=function(E){return K(E)+(68<K(E)?1900:2e3)};var Qe,wn=bn("FullYear",!0);function bn(E,R){return function($){return $!=null?(Yn(this,E,$),x.updateOffset(this,R),this):jn(this,E)}}function jn(E,R){return E.isValid()?E._d["get"+(E._isUTC?"UTC":"")+R]():NaN}function Yn(E,R,$){E.isValid()&&!isNaN($)&&(R==="FullYear"&&fn(E.year())&&E.month()===1&&E.date()===29?E._d["set"+(E._isUTC?"UTC":"")+R]($,E.month(),Cr($,E.month())):E._d["set"+(E._isUTC?"UTC":"")+R]($))}function Cr(E,R){if(isNaN(E)||isNaN(R))return NaN;var $=(R%12+12)%12;return E+=(R-$)/12,$===1?fn(E)?29:28:31-$%7%2}Qe=Array.prototype.indexOf?Array.prototype.indexOf:function(E){var R;for(R=0;R<this.length;++R)if(this[R]===E)return R;return-1},at("M",["MM",2],"Mo",(function(){return this.month()+1})),at("MMM",0,0,(function(E){return this.localeData().monthsShort(this,E)})),at("MMMM",0,0,(function(E){return this.localeData().months(this,E)})),Dt("month","M"),ge("month",8),Se("M",me),Se("MM",me,Ht),Se("MMM",(function(E,R){return R.monthsShortRegex(E)})),Se("MMMM",(function(E,R){return R.monthsRegex(E)})),yn(["M","MM"],(function(E,R){R[1]=K(E)-1})),yn(["MMM","MMMM"],(function(E,R,$,it){var Wt=$._locale.monthsParse(E,it,$._strict);Wt!=null?R[1]=Wt:V($).invalidMonth=E}));var _n=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Un="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function qn(E,R){var $;if(!E.isValid())return E;if(typeof R=="string"){if(/^\d+$/.test(R))R=K(R);else if(!S(R=E.localeData().monthsParse(R)))return E}return $=Math.min(E.date(),Cr(E.year(),R)),E._d["set"+(E._isUTC?"UTC":"")+"Month"](R,$),E}function Hn(E){return E!=null?(qn(this,E),x.updateOffset(this,!0),this):jn(this,"Month")}var Qn=De,Cn=De;function Bn(){function E(xe,Ae){return Ae.length-xe.length}var R,$,it=[],Wt=[],fe=[];for(R=0;R<12;R++)$=H([2e3,R]),it.push(this.monthsShort($,"")),Wt.push(this.months($,"")),fe.push(this.months($,"")),fe.push(this.monthsShort($,""));for(it.sort(E),Wt.sort(E),fe.sort(E),R=0;R<12;R++)it[R]=gn(it[R]),Wt[R]=gn(Wt[R]);for(R=0;R<24;R++)fe[R]=gn(fe[R]);this._monthsRegex=new RegExp("^("+fe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Wt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+it.join("|")+")","i")}function sn(E){var R;if(E<100&&0<=E){var $=Array.prototype.slice.call(arguments);$[0]=E+400,R=new Date(Date.UTC.apply(null,$)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(E)}else R=new Date(Date.UTC.apply(null,arguments));return R}function Fn(E,R,$){var it=7+R-$;return-(7+sn(E,0,it).getUTCDay()-R)%7+it-1}function pn(E,R,$,it,Wt){var fe,xe,Ae=1+7*(R-1)+(7+$-it)%7+Fn(E,it,Wt);return xe=Ae<=0?on(fe=E-1)+Ae:Ae>on(E)?(fe=E+1,Ae-on(E)):(fe=E,Ae),{year:fe,dayOfYear:xe}}function ri(E,R,$){var it,Wt,fe=Fn(E.year(),R,$),xe=Math.floor((E.dayOfYear()-fe-1)/7)+1;return xe<1?it=xe+pr(Wt=E.year()-1,R,$):xe>pr(E.year(),R,$)?(it=xe-pr(E.year(),R,$),Wt=E.year()+1):(Wt=E.year(),it=xe),{week:it,year:Wt}}function pr(E,R,$){var it=Fn(E,R,$),Wt=Fn(E+1,R,$);return(on(E)-it+Wt)/7}function Li(E,R){return E.slice(R,7).concat(E.slice(0,R))}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),Dt("week","w"),Dt("isoWeek","W"),ge("week",5),ge("isoWeek",5),Se("w",me),Se("ww",me,Ht),Se("W",me),Se("WW",me,Ht),Zn(["w","ww","W","WW"],(function(E,R,$,it){R[it.substr(0,1)]=K(E)})),at("d",0,"do","day"),at("dd",0,0,(function(E){return this.localeData().weekdaysMin(this,E)})),at("ddd",0,0,(function(E){return this.localeData().weekdaysShort(this,E)})),at("dddd",0,0,(function(E){return this.localeData().weekdays(this,E)})),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),Dt("day","d"),Dt("weekday","e"),Dt("isoWeekday","E"),ge("day",11),ge("weekday",11),ge("isoWeekday",11),Se("d",me),Se("e",me),Se("E",me),Se("dd",(function(E,R){return R.weekdaysMinRegex(E)})),Se("ddd",(function(E,R){return R.weekdaysShortRegex(E)})),Se("dddd",(function(E,R){return R.weekdaysRegex(E)})),Zn(["dd","ddd","dddd"],(function(E,R,$,it){var Wt=$._locale.weekdaysParse(E,it,$._strict);Wt!=null?R.d=Wt:V($).invalidWeekday=E})),Zn(["d","e","E"],(function(E,R,$,it){R[it]=K(E)}));var Ln="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ha="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ii=De,Or=De,Ir=De;function $r(){function E(We,mn){return mn.length-We.length}var R,$,it,Wt,fe,xe=[],Ae=[],Ne=[],Ye=[];for(R=0;R<7;R++)$=H([2e3,1]).day(R),it=this.weekdaysMin($,""),Wt=this.weekdaysShort($,""),fe=this.weekdays($,""),xe.push(it),Ae.push(Wt),Ne.push(fe),Ye.push(it),Ye.push(Wt),Ye.push(fe);for(xe.sort(E),Ae.sort(E),Ne.sort(E),Ye.sort(E),R=0;R<7;R++)Ae[R]=gn(Ae[R]),Ne[R]=gn(Ne[R]),Ye[R]=gn(Ye[R]);this._weekdaysRegex=new RegExp("^("+Ye.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ne.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ae.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+xe.join("|")+")","i")}function Zr(){return this.hours()%12||12}function Sr(E,R){at(E,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)}))}function Qr(E,R){return R._meridiemParse}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Zr),at("k",["kk",2],0,(function(){return this.hours()||24})),at("hmm",0,0,(function(){return""+Zr.apply(this)+Ot(this.minutes(),2)})),at("hmmss",0,0,(function(){return""+Zr.apply(this)+Ot(this.minutes(),2)+Ot(this.seconds(),2)})),at("Hmm",0,0,(function(){return""+this.hours()+Ot(this.minutes(),2)})),at("Hmmss",0,0,(function(){return""+this.hours()+Ot(this.minutes(),2)+Ot(this.seconds(),2)})),Sr("a",!0),Sr("A",!1),Dt("hour","h"),ge("hour",13),Se("a",Qr),Se("A",Qr),Se("H",me),Se("h",me),Se("k",me),Se("HH",me,Ht),Se("hh",me,Ht),Se("kk",me,Ht),Se("hmm",Me),Se("hmmss",un),Se("Hmm",Me),Se("Hmmss",un),yn(["H","HH"],3),yn(["k","kk"],(function(E,R,$){var it=K(E);R[3]=it===24?0:it})),yn(["a","A"],(function(E,R,$){$._isPm=$._locale.isPM(E),$._meridiem=E})),yn(["h","hh"],(function(E,R,$){R[3]=K(E),V($).bigHour=!0})),yn("hmm",(function(E,R,$){var it=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it)),V($).bigHour=!0})),yn("hmmss",(function(E,R,$){var it=E.length-4,Wt=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it,2)),R[5]=K(E.substr(Wt)),V($).bigHour=!0})),yn("Hmm",(function(E,R,$){var it=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it))})),yn("Hmmss",(function(E,R,$){var it=E.length-4,Wt=E.length-2;R[3]=K(E.substr(0,it)),R[4]=K(E.substr(it,2)),R[5]=K(E.substr(Wt))}));var Br,ki=bn("Hours",!0),si={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:Un,monthsShort:Rn,week:{dow:0,doy:6},weekdays:Ln,weekdaysMin:ha,weekdaysShort:wo,meridiemParse:/[ap]\.?m?\.?/i},er={},qr={};function fa(E){return E&&E.toLowerCase().replace("_","-")}function Kr(E){var R=null;if(!er[E]&&M&&M.exports)try{R=Br._abbr,p(1748)("./"+E),da(R)}catch{}return er[E]}function da(E,R){var $;return E&&(($=C(R)?ui(E):ro(E,R))?Br=$:typeof console<"u"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Br._abbr}function ro(E,R){if(R===null)return delete er[E],null;var $,it=si;if(R.abbr=E,er[E]!=null)$t("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),it=er[E]._config;else if(R.parentLocale!=null)if(er[R.parentLocale]!=null)it=er[R.parentLocale]._config;else{if(($=Kr(R.parentLocale))==null)return qr[R.parentLocale]||(qr[R.parentLocale]=[]),qr[R.parentLocale].push({name:E,config:R}),null;it=$._config}return er[E]=new pe(ye(it,R)),qr[E]&&qr[E].forEach((function(Wt){ro(Wt.name,Wt.config)})),da(E),er[E]}function ui(E){var R;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Br;if(!y(E)){if(R=Kr(E))return R;E=[E]}return(function($){for(var it,Wt,fe,xe,Ae=0;Ae<$.length;){for(it=(xe=fa($[Ae]).split("-")).length,Wt=(Wt=fa($[Ae+1]))?Wt.split("-"):null;0<it;){if(fe=Kr(xe.slice(0,it).join("-")))return fe;if(Wt&&Wt.length>=it&&mt(xe,Wt,!0)>=it-1)break;it--}Ae++}return Br})(E)}function an(E){var R,$=E._a;return $&&V(E).overflow===-2&&(R=$[1]<0||11<$[1]?1:$[2]<1||$[2]>Cr($[0],$[1])?2:$[3]<0||24<$[3]||$[3]===24&&($[4]!==0||$[5]!==0||$[6]!==0)?3:$[4]<0||59<$[4]?4:$[5]<0||59<$[5]?5:$[6]<0||999<$[6]?6:-1,V(E)._overflowDayOfYear&&(R<0||2<R)&&(R=2),V(E)._overflowWeeks&&R===-1&&(R=7),V(E)._overflowWeekday&&R===-1&&(R=8),V(E).overflow=R),E}function $n(E,R,$){return E??R??$}function Tn(E){var R,$,it,Wt,fe,xe=[];if(!E._d){var Ae,Ne;for(Ae=E,Ne=new Date(x.now()),it=Ae._useUTC?[Ne.getUTCFullYear(),Ne.getUTCMonth(),Ne.getUTCDate()]:[Ne.getFullYear(),Ne.getMonth(),Ne.getDate()],E._w&&E._a[2]==null&&E._a[1]==null&&(function(Ye){var We,mn,cn,or,cr,Mr,ar,ya;if((We=Ye._w).GG!=null||We.W!=null||We.E!=null)cr=1,Mr=4,mn=$n(We.GG,Ye._a[0],ri(En(),1,4).year),cn=$n(We.W,1),((or=$n(We.E,1))<1||7<or)&&(ya=!0);else{cr=Ye._locale._week.dow,Mr=Ye._locale._week.doy;var us=ri(En(),cr,Mr);mn=$n(We.gg,Ye._a[0],us.year),cn=$n(We.w,us.week),We.d!=null?((or=We.d)<0||6<or)&&(ya=!0):We.e!=null?(or=We.e+cr,(We.e<0||6<We.e)&&(ya=!0)):or=cr}cn<1||cn>pr(mn,cr,Mr)?V(Ye)._overflowWeeks=!0:ya!=null?V(Ye)._overflowWeekday=!0:(ar=pn(mn,cn,or,cr,Mr),Ye._a[0]=ar.year,Ye._dayOfYear=ar.dayOfYear)})(E),E._dayOfYear!=null&&(fe=$n(E._a[0],it[0]),(E._dayOfYear>on(fe)||E._dayOfYear===0)&&(V(E)._overflowDayOfYear=!0),$=sn(fe,0,E._dayOfYear),E._a[1]=$.getUTCMonth(),E._a[2]=$.getUTCDate()),R=0;R<3&&E._a[R]==null;++R)E._a[R]=xe[R]=it[R];for(;R<7;R++)E._a[R]=xe[R]=E._a[R]==null?R===2?1:0:E._a[R];E._a[3]===24&&E._a[4]===0&&E._a[5]===0&&E._a[6]===0&&(E._nextDay=!0,E._a[3]=0),E._d=(E._useUTC?sn:function(Ye,We,mn,cn,or,cr,Mr){var ar;return Ye<100&&0<=Ye?(ar=new Date(Ye+400,We,mn,cn,or,cr,Mr),isFinite(ar.getFullYear())&&ar.setFullYear(Ye)):ar=new Date(Ye,We,mn,cn,or,cr,Mr),ar}).apply(null,xe),Wt=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[3]=24),E._w&&E._w.d!==void 0&&E._w.d!==Wt&&(V(E).weekdayMismatch=!0)}}var Be=/^\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)?)?$/,Wn=/^\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)?/,Wr=[["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}/]],Zt=[["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/]],Ti=/^\/?Date\((\-?\d+)/i;function $i(E){var R,$,it,Wt,fe,xe,Ae=E._i,Ne=Be.exec(Ae)||Wn.exec(Ae);if(Ne){for(V(E).iso=!0,R=0,$=Wr.length;R<$;R++)if(Wr[R][1].exec(Ne[1])){Wt=Wr[R][0],it=Wr[R][2]!==!1;break}if(Wt==null)return void(E._isValid=!1);if(Ne[3]){for(R=0,$=Zt.length;R<$;R++)if(Zt[R][1].exec(Ne[3])){fe=(Ne[2]||" ")+Zt[R][0];break}if(fe==null)return void(E._isValid=!1)}if(!it&&fe!=null)return void(E._isValid=!1);if(Ne[4]){if(!pt.exec(Ne[4]))return void(E._isValid=!1);xe="Z"}E._f=Wt+(fe||"")+(xe||""),To(E)}else E._isValid=!1}var ja=/^(?:(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}))$/,io={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ko(E){var R,$,it,Wt=ja.exec(E._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Wt){var fe=(function(xe,Ae,Ne,Ye,We,mn){var cn=[(function(or){var cr=parseInt(or,10);return cr<=49?2e3+cr:cr<=999?1900+cr:cr})(xe),Rn.indexOf(Ae),parseInt(Ne,10),parseInt(Ye,10),parseInt(We,10)];return mn&&cn.push(parseInt(mn,10)),cn})(Wt[4],Wt[3],Wt[2],Wt[5],Wt[6],Wt[7]);if($=fe,it=E,(R=Wt[1])&&wo.indexOf(R)!==new Date($[0],$[1],$[2]).getDay()&&(V(it).weekdayMismatch=!0,!(it._isValid=!1)))return;E._a=fe,E._tzm=(function(xe,Ae,Ne){if(xe)return io[xe];if(Ae)return 0;var Ye=parseInt(Ne,10),We=Ye%100;return(Ye-We)/100*60+We})(Wt[8],Wt[9],Wt[10]),E._d=sn.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),V(E).rfc2822=!0}else E._isValid=!1}function To(E){if(E._f!==x.ISO_8601)if(E._f!==x.RFC_2822){E._a=[],V(E).empty=!0;var R,$,it,Wt,fe,xe,Ae,Ne,Ye=""+E._i,We=Ye.length,mn=0;for(it=Mt(E._f,E._locale).match($e)||[],R=0;R<it.length;R++)Wt=it[R],($=(Ye.match(rn(Wt,E))||[])[0])&&(0<(fe=Ye.substr(0,Ye.indexOf($))).length&&V(E).unusedInput.push(fe),Ye=Ye.slice(Ye.indexOf($)+$.length),mn+=$.length),te[Wt]?($?V(E).empty=!1:V(E).unusedTokens.push(Wt),xe=Wt,Ne=E,(Ae=$)!=null&&Y(Dr,xe)&&Dr[xe](Ae,Ne._a,Ne,xe)):E._strict&&!$&&V(E).unusedTokens.push(Wt);V(E).charsLeftOver=We-mn,0<Ye.length&&V(E).unusedInput.push(Ye),E._a[3]<=12&&V(E).bigHour===!0&&0<E._a[3]&&(V(E).bigHour=void 0),V(E).parsedDateParts=E._a.slice(0),V(E).meridiem=E._meridiem,E._a[3]=(function(cn,or,cr){var Mr;return cr==null?or:cn.meridiemHour!=null?cn.meridiemHour(or,cr):(cn.isPM!=null&&((Mr=cn.isPM(cr))&&or<12&&(or+=12),Mr||or!==12||(or=0)),or)})(E._locale,E._a[3],E._meridiem),Tn(E),an(E)}else ko(E);else $i(E)}function Hr(E){var R,$,it,Wt,fe=E._i,xe=E._f;return E._locale=E._locale||ui(E._l),fe===null||xe===void 0&&fe===""?J({nullInput:!0}):(typeof fe=="string"&&(E._i=fe=E._locale.preparse(fe)),At(fe)?new dt(an(fe)):(I(fe)?E._d=fe:y(xe)?(function(Ae){var Ne,Ye,We,mn,cn;if(Ae._f.length===0)return V(Ae).invalidFormat=!0,Ae._d=new Date(NaN);for(mn=0;mn<Ae._f.length;mn++)cn=0,Ne=nt({},Ae),Ae._useUTC!=null&&(Ne._useUTC=Ae._useUTC),Ne._f=Ae._f[mn],To(Ne),X(Ne)&&(cn+=V(Ne).charsLeftOver,cn+=10*V(Ne).unusedTokens.length,V(Ne).score=cn,(We==null||cn<We)&&(We=cn,Ye=Ne));W(Ae,Ye||Ne)})(E):xe?To(E):C($=(R=E)._i)?R._d=new Date(x.now()):I($)?R._d=new Date($.valueOf()):typeof $=="string"?(it=R,(Wt=Ti.exec(it._i))===null?($i(it),it._isValid===!1&&(delete it._isValid,ko(it),it._isValid===!1&&(delete it._isValid,x.createFromInputFallback(it)))):it._d=new Date(+Wt[1])):y($)?(R._a=L($.slice(0),(function(Ae){return parseInt(Ae,10)})),Tn(R)):k($)?(function(Ae){if(!Ae._d){var Ne=se(Ae._i);Ae._a=L([Ne.year,Ne.month,Ne.day||Ne.date,Ne.hour,Ne.minute,Ne.second,Ne.millisecond],(function(Ye){return Ye&&parseInt(Ye,10)})),Tn(Ae)}})(R):S($)?R._d=new Date($):x.createFromInputFallback(R),X(E)||(E._d=null),E))}function Wi(E,R,$,it,Wt){var fe,xe={};return $!==!0&&$!==!1||(it=$,$=void 0),(k(E)&&(function(Ae){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ae).length===0;var Ne;for(Ne in Ae)if(Ae.hasOwnProperty(Ne))return!1;return!0})(E)||y(E)&&E.length===0)&&(E=void 0),xe._isAMomentObject=!0,xe._useUTC=xe._isUTC=Wt,xe._l=$,xe._i=E,xe._f=R,xe._strict=it,(fe=new dt(an(Hr(xe))))._nextDay&&(fe.add(1,"d"),fe._nextDay=void 0),fe}function En(E,R,$,it){return Wi(E,R,$,it,!1)}x.createFromInputFallback=Rt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(E){E._d=new Date(E._i+(E._useUTC?" UTC":""))})),x.ISO_8601=function(){},x.RFC_2822=function(){};var Ta=Rt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var E=En.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:J()})),Ya=Rt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var E=En.apply(null,arguments);return this.isValid()&&E.isValid()?this<E?this:E:J()}));function gr(E,R){var $,it;if(R.length===1&&y(R[0])&&(R=R[0]),!R.length)return En();for($=R[0],it=1;it<R.length;++it)R[it].isValid()&&!R[it][E]($)||($=R[it]);return $}var kr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function di(E){var R=se(E),$=R.year||0,it=R.quarter||0,Wt=R.month||0,fe=R.week||R.isoWeek||0,xe=R.day||0,Ae=R.hour||0,Ne=R.minute||0,Ye=R.second||0,We=R.millisecond||0;this._isValid=(function(mn){for(var cn in mn)if(Qe.call(kr,cn)===-1||mn[cn]!=null&&isNaN(mn[cn]))return!1;for(var or=!1,cr=0;cr<kr.length;++cr)if(mn[kr[cr]]){if(or)return!1;parseFloat(mn[kr[cr]])!==K(mn[kr[cr]])&&(or=!0)}return!0})(R),this._milliseconds=+We+1e3*Ye+6e4*Ne+1e3*Ae*60*60,this._days=+xe+7*fe,this._months=+Wt+3*it+12*$,this._data={},this._locale=ui(),this._bubble()}function Jr(E){return E instanceof di}function Rr(E){return E<0?-1*Math.round(-1*E):Math.round(E)}function Fr(E,R){at(E,0,0,(function(){var $=this.utcOffset(),it="+";return $<0&&($=-$,it="-"),it+Ot(~~($/60),2)+R+Ot(~~$%60,2)}))}Fr("Z",":"),Fr("ZZ",""),Se("Z",Ze),Se("ZZ",Ze),yn(["Z","ZZ"],(function(E,R,$){$._useUTC=!0,$._tzm=Vr(Ze,E)}));var ci=/([\+\-]|\d\d)/gi;function Vr(E,R){var $=(R||"").match(E);if($===null)return null;var it=(($[$.length-1]||[])+"").match(ci)||["-",0,0],Wt=60*it[1]+K(it[2]);return Wt===0?0:it[0]==="+"?Wt:-Wt}function Vi(E,R){var $,it;return R._isUTC?($=R.clone(),it=(At(E)||I(E)?E.valueOf():En(E).valueOf())-$.valueOf(),$._d.setTime($._d.valueOf()+it),x.updateOffset($,!1),$):En(E).local()}function Ii(E){return 15*-Math.round(E._d.getTimezoneOffset()/15)}function Ei(){return!!this.isValid()&&this._isUTC&&this._offset===0}x.updateOffset=function(){};var ao=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ue(E,R){var $,it,Wt,fe=E,xe=null;return Jr(E)?fe={ms:E._milliseconds,d:E._days,M:E._months}:S(E)?(fe={},R?fe[R]=E:fe.milliseconds=E):(xe=ao.exec(E))?($=xe[1]==="-"?-1:1,fe={y:0,d:K(xe[2])*$,h:K(xe[3])*$,m:K(xe[4])*$,s:K(xe[5])*$,ms:K(Rr(1e3*xe[6]))*$}):(xe=Bt.exec(E))?($=xe[1]==="-"?-1:1,fe={y:je(xe[2],$),M:je(xe[3],$),w:je(xe[4],$),d:je(xe[5],$),h:je(xe[6],$),m:je(xe[7],$),s:je(xe[8],$)}):fe==null?fe={}:typeof fe=="object"&&("from"in fe||"to"in fe)&&(Wt=(function(Ae,Ne){var Ye;return Ae.isValid()&&Ne.isValid()?(Ne=Vi(Ne,Ae),Ae.isBefore(Ne)?Ye=yr(Ae,Ne):((Ye=yr(Ne,Ae)).milliseconds=-Ye.milliseconds,Ye.months=-Ye.months),Ye):{milliseconds:0,months:0}})(En(fe.from),En(fe.to)),(fe={}).ms=Wt.milliseconds,fe.M=Wt.months),it=new di(fe),Jr(E)&&Y(E,"_locale")&&(it._locale=E._locale),it}function je(E,R){var $=E&&parseFloat(E.replace(",","."));return(isNaN($)?0:$)*R}function yr(E,R){var $={};return $.months=R.month()-E.month()+12*(R.year()-E.year()),E.clone().add($.months,"M").isAfter(R)&&--$.months,$.milliseconds=+R-+E.clone().add($.months,"M"),$}function _r(E,R){return function($,it){var Wt;return it===null||isNaN(+it)||($t(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."),Wt=$,$=it,it=Wt),pi(this,Ue($=typeof $=="string"?+$:$,it),E),this}}function pi(E,R,$,it){var Wt=R._milliseconds,fe=Rr(R._days),xe=Rr(R._months);E.isValid()&&(it=it==null||it,xe&&qn(E,jn(E,"Month")+xe*$),fe&&Yn(E,"Date",jn(E,"Date")+fe*$),Wt&&E._d.setTime(E._d.valueOf()+Wt*$),it&&x.updateOffset(E,fe||xe))}Ue.fn=di.prototype,Ue.invalid=function(){return Ue(NaN)};var ti=_r(1,"add"),os=_r(-1,"subtract");function ia(E,R){var $=12*(R.year()-E.year())+(R.month()-E.month()),it=E.clone().add($,"months");return-($+(R-it<0?(R-it)/(it-E.clone().add($-1,"months")):(R-it)/(E.clone().add($+1,"months")-it)))||0}function Pr(E){var R;return E===void 0?this._locale._abbr:((R=ui(E))!=null&&(this._locale=R),this)}x.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",x.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ds=Rt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(E){return E===void 0?this.localeData():this.locale(E)}));function za(){return this._locale}var hu=126227808e5;function oo(E,R){return(E%R+R)%R}function fu(E,R,$){return E<100&&0<=E?new Date(E+400,R,$)-hu:new Date(E,R,$).valueOf()}function Ri(E,R,$){return E<100&&0<=E?Date.UTC(E+400,R,$)-hu:Date.UTC(E,R,$)}function ei(E,R){at(0,[E,E.length],0,R)}function xc(E,R,$,it,Wt){var fe;return E==null?ri(this,it,Wt).year:((fe=pr(E,it,Wt))<R&&(R=fe),(function(xe,Ae,Ne,Ye,We){var mn=pn(xe,Ae,Ne,Ye,We),cn=sn(mn.year,0,mn.dayOfYear);return this.year(cn.getUTCFullYear()),this.month(cn.getUTCMonth()),this.date(cn.getUTCDate()),this}).call(this,E,R,$,it,Wt))}at(0,["gg",2],0,(function(){return this.weekYear()%100})),at(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),Dt("weekYear","gg"),Dt("isoWeekYear","GG"),ge("weekYear",1),ge("isoWeekYear",1),Se("G",ze),Se("g",ze),Se("GG",me,Ht),Se("gg",me,Ht),Se("GGGG",Oe,oe),Se("gggg",Oe,oe),Se("GGGGG",Ce,Je),Se("ggggg",Ce,Je),Zn(["gggg","ggggg","GGGG","GGGGG"],(function(E,R,$,it){R[it.substr(0,2)]=K(E)})),Zn(["gg","GG"],(function(E,R,$,it){R[it]=x.parseTwoDigitYear(E)})),at("Q",0,"Qo","quarter"),Dt("quarter","Q"),ge("quarter",7),Se("Q",Vt),yn("Q",(function(E,R){R[1]=3*(K(E)-1)})),at("D",["DD",2],"Do","date"),Dt("date","D"),ge("date",9),Se("D",me),Se("DD",me,Ht),Se("Do",(function(E,R){return E?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient})),yn(["D","DD"],2),yn("Do",(function(E,R){R[2]=K(E.match(me)[0])}));var wc=bn("Date",!0);at("DDD",["DDDD",3],"DDDo","dayOfYear"),Dt("dayOfYear","DDD"),ge("dayOfYear",4),Se("DDD",Ge),Se("DDDD",Nt),yn(["DDD","DDDD"],(function(E,R,$){$._dayOfYear=K(E)})),at("m",["mm",2],0,"minute"),Dt("minute","m"),ge("minute",14),Se("m",me),Se("mm",me,Ht),yn(["m","mm"],4);var kc=bn("Minutes",!1);at("s",["ss",2],0,"second"),Dt("second","s"),ge("second",15),Se("s",me),Se("ss",me,Ht),yn(["s","ss"],5);var Ua,Tc=bn("Seconds",!1);for(at("S",0,0,(function(){return~~(this.millisecond()/100)})),at(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),at(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),at(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),at(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),at(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),at(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Dt("millisecond","ms"),ge("millisecond",16),Se("S",Ge,Vt),Se("SS",Ge,Ht),Se("SSS",Ge,Nt),Ua="SSSS";Ua.length<=9;Ua+="S")Se(Ua,tn);function Ec(E,R){R[6]=K(1e3*("0."+E))}for(Ua="S";Ua.length<=9;Ua+="S")yn(Ua,Ec);var qa=bn("Milliseconds",!1);at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var Fe=dt.prototype;function ql(E){return E}Fe.add=ti,Fe.calendar=function(E,R){var $=E||En(),it=Vi($,this).startOf("day"),Wt=x.calendarFormat(this,it)||"sameElse",fe=R&&(jt(R[Wt])?R[Wt].call(this,$):R[Wt]);return this.format(fe||this.localeData().calendar(Wt,this,En($)))},Fe.clone=function(){return new dt(this)},Fe.diff=function(E,R,$){var it,Wt,fe;if(!this.isValid())return NaN;if(!(it=Vi(E,this)).isValid())return NaN;switch(Wt=6e4*(it.utcOffset()-this.utcOffset()),R=Xt(R)){case"year":fe=ia(this,it)/12;break;case"month":fe=ia(this,it);break;case"quarter":fe=ia(this,it)/3;break;case"second":fe=(this-it)/1e3;break;case"minute":fe=(this-it)/6e4;break;case"hour":fe=(this-it)/36e5;break;case"day":fe=(this-it-Wt)/864e5;break;case"week":fe=(this-it-Wt)/6048e5;break;default:fe=this-it}return $?fe:st(fe)},Fe.endOf=function(E){var R;if((E=Xt(E))===void 0||E==="millisecond"||!this.isValid())return this;var $=this._isUTC?Ri:fu;switch(E){case"year":R=$(this.year()+1,0,1)-1;break;case"quarter":R=$(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=$(this.year(),this.month()+1,1)-1;break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=$(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=36e5-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},Fe.format=function(E){E||(E=this.isUtc()?x.defaultFormatUtc:x.defaultFormat);var R=re(this,E);return this.localeData().postformat(R)},Fe.from=function(E,R){return this.isValid()&&(At(E)&&E.isValid()||En(E).isValid())?Ue({to:this,from:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Fe.fromNow=function(E){return this.from(En(),E)},Fe.to=function(E,R){return this.isValid()&&(At(E)&&E.isValid()||En(E).isValid())?Ue({from:this,to:E}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Fe.toNow=function(E){return this.to(En(),E)},Fe.get=function(E){return jt(this[E=Xt(E)])?this[E]():this},Fe.invalidAt=function(){return V(this).overflow},Fe.isAfter=function(E,R){var $=At(E)?E:En(E);return!(!this.isValid()||!$.isValid())&&((R=Xt(R)||"millisecond")==="millisecond"?this.valueOf()>$.valueOf():$.valueOf()<this.clone().startOf(R).valueOf())},Fe.isBefore=function(E,R){var $=At(E)?E:En(E);return!(!this.isValid()||!$.isValid())&&((R=Xt(R)||"millisecond")==="millisecond"?this.valueOf()<$.valueOf():this.clone().endOf(R).valueOf()<$.valueOf())},Fe.isBetween=function(E,R,$,it){var Wt=At(E)?E:En(E),fe=At(R)?R:En(R);return!!(this.isValid()&&Wt.isValid()&&fe.isValid())&&((it=it||"()")[0]==="("?this.isAfter(Wt,$):!this.isBefore(Wt,$))&&(it[1]===")"?this.isBefore(fe,$):!this.isAfter(fe,$))},Fe.isSame=function(E,R){var $,it=At(E)?E:En(E);return!(!this.isValid()||!it.isValid())&&((R=Xt(R)||"millisecond")==="millisecond"?this.valueOf()===it.valueOf():($=it.valueOf(),this.clone().startOf(R).valueOf()<=$&&$<=this.clone().endOf(R).valueOf()))},Fe.isSameOrAfter=function(E,R){return this.isSame(E,R)||this.isAfter(E,R)},Fe.isSameOrBefore=function(E,R){return this.isSame(E,R)||this.isBefore(E,R)},Fe.isValid=function(){return X(this)},Fe.lang=Ds,Fe.locale=Pr,Fe.localeData=za,Fe.max=Ya,Fe.min=Ta,Fe.parsingFlags=function(){return W({},V(this))},Fe.set=function(E,R){if(typeof E=="object")for(var $=(function(Wt){var fe=[];for(var xe in Wt)fe.push({unit:xe,priority:ce[xe]});return fe.sort((function(Ae,Ne){return Ae.priority-Ne.priority})),fe})(E=se(E)),it=0;it<$.length;it++)this[$[it].unit](E[$[it].unit]);else if(jt(this[E=Xt(E)]))return this[E](R);return this},Fe.startOf=function(E){var R;if((E=Xt(E))===void 0||E==="millisecond"||!this.isValid())return this;var $=this._isUTC?Ri:fu;switch(E){case"year":R=$(this.year(),0,1);break;case"quarter":R=$(this.year(),this.month()-this.month()%3,1);break;case"month":R=$(this.year(),this.month(),1);break;case"week":R=$(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=$(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=$(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=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},Fe.subtract=os,Fe.toArray=function(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]},Fe.toObject=function(){var E=this;return{years:E.year(),months:E.month(),date:E.date(),hours:E.hours(),minutes:E.minutes(),seconds:E.seconds(),milliseconds:E.milliseconds()}},Fe.toDate=function(){return new Date(this.valueOf())},Fe.toISOString=function(E){if(!this.isValid())return null;var R=E!==!0,$=R?this.clone().utc():this;return $.year()<0||9999<$.year()?re($,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jt(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re($,"Z")):re($,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",R="";this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z");var $="["+E+'("]',it=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Wt=R+'[")]';return this.format($+it+"-MM-DD[T]HH:mm:ss.SSS"+Wt)},Fe.toJSON=function(){return this.isValid()?this.toISOString():null},Fe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.year=wn,Fe.isLeapYear=function(){return fn(this.year())},Fe.weekYear=function(E){return xc.call(this,E,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Fe.isoWeekYear=function(E){return xc.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)},Fe.quarter=Fe.quarters=function(E){return E==null?Math.ceil((this.month()+1)/3):this.month(3*(E-1)+this.month()%3)},Fe.month=Hn,Fe.daysInMonth=function(){return Cr(this.year(),this.month())},Fe.week=Fe.weeks=function(E){var R=this.localeData().week(this);return E==null?R:this.add(7*(E-R),"d")},Fe.isoWeek=Fe.isoWeeks=function(E){var R=ri(this,1,4).week;return E==null?R:this.add(7*(E-R),"d")},Fe.weeksInYear=function(){var E=this.localeData()._week;return pr(this.year(),E.dow,E.doy)},Fe.isoWeeksInYear=function(){return pr(this.year(),1,4)},Fe.date=wc,Fe.day=Fe.days=function(E){if(!this.isValid())return E!=null?this:NaN;var R,$,it=this._isUTC?this._d.getUTCDay():this._d.getDay();return E!=null?(R=E,$=this.localeData(),E=typeof R!="string"?R:isNaN(R)?typeof(R=$.weekdaysParse(R))=="number"?R:null:parseInt(R,10),this.add(E-it,"d")):it},Fe.weekday=function(E){if(!this.isValid())return E!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return E==null?R:this.add(E-R,"d")},Fe.isoWeekday=function(E){if(!this.isValid())return E!=null?this:NaN;if(E==null)return this.day()||7;var R,$,it=(R=E,$=this.localeData(),typeof R=="string"?$.weekdaysParse(R)%7||7:isNaN(R)?null:R);return this.day(this.day()%7?it:it-7)},Fe.dayOfYear=function(E){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?R:this.add(E-R,"d")},Fe.hour=Fe.hours=ki,Fe.minute=Fe.minutes=kc,Fe.second=Fe.seconds=Tc,Fe.millisecond=Fe.milliseconds=qa,Fe.utcOffset=function(E,R,$){var it,Wt=this._offset||0;if(!this.isValid())return E!=null?this:NaN;if(E==null)return this._isUTC?Wt:Ii(this);if(typeof E=="string"){if((E=Vr(Ze,E))===null)return this}else Math.abs(E)<16&&!$&&(E*=60);return!this._isUTC&&R&&(it=Ii(this)),this._offset=E,this._isUTC=!0,it!=null&&this.add(it,"m"),Wt!==E&&(!R||this._changeInProgress?pi(this,Ue(E-Wt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,x.updateOffset(this,!0),this._changeInProgress=null)),this},Fe.utc=function(E){return this.utcOffset(0,E)},Fe.local=function(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Ii(this),"m")),this},Fe.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=Vr(Xe,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this},Fe.hasAlignedHourOffset=function(E){return!!this.isValid()&&(E=E?En(E).utcOffset():0,(this.utcOffset()-E)%60==0)},Fe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Ei,Fe.isUTC=Ei,Fe.zoneAbbr=function(){return this._isUTC?"UTC":""},Fe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Rt("dates accessor is deprecated. Use date instead.",wc),Fe.months=Rt("months accessor is deprecated. Use month instead",Hn),Fe.years=Rt("years accessor is deprecated. Use year instead",wn),Fe.zone=Rt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(E,R){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,R),this):-this.utcOffset()})),Fe.isDSTShifted=Rt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!C(this._isDSTShifted))return this._isDSTShifted;var E={};if(nt(E,this),(E=Hr(E))._a){var R=E._isUTC?H(E._a):En(E._a);this._isDSTShifted=this.isValid()&&0<mt(E._a,R.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var Ar=pe.prototype;function du(E,R,$,it){var Wt=ui(),fe=H().set(it,R);return Wt[$](fe,E)}function pu(E,R,$){if(S(E)&&(R=E,E=void 0),E=E||"",R!=null)return du(E,R,$,"month");var it,Wt=[];for(it=0;it<12;it++)Wt[it]=du(E,it,$,"month");return Wt}function Cc(E,R,$,it){typeof E=="boolean"?S(R)&&($=R,R=void 0):(R=E,E=!1,S($=R)&&($=R,R=void 0)),R=R||"";var Wt,fe=ui(),xe=E?fe._week.dow:0;if($!=null)return du(R,($+xe)%7,it,"day");var Ae=[];for(Wt=0;Wt<7;Wt++)Ae[Wt]=du(R,(Wt+xe)%7,it,"day");return Ae}Ar.calendar=function(E,R,$){var it=this._calendar[E]||this._calendar.sameElse;return jt(it)?it.call(R,$):it},Ar.longDateFormat=function(E){var R=this._longDateFormat[E],$=this._longDateFormat[E.toUpperCase()];return R||!$?R:(this._longDateFormat[E]=$.replace(/MMMM|MM|DD|dddd/g,(function(it){return it.slice(1)})),this._longDateFormat[E])},Ar.invalidDate=function(){return this._invalidDate},Ar.ordinal=function(E){return this._ordinal.replace("%d",E)},Ar.preparse=ql,Ar.postformat=ql,Ar.relativeTime=function(E,R,$,it){var Wt=this._relativeTime[$];return jt(Wt)?Wt(E,R,$,it):Wt.replace(/%d/i,E)},Ar.pastFuture=function(E,R){var $=this._relativeTime[0<E?"future":"past"];return jt($)?$(R):$.replace(/%s/i,R)},Ar.set=function(E){var R,$;for($ in E)jt(R=E[$])?this[$]=R:this["_"+$]=R;this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ar.months=function(E,R){return E?y(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||_n).test(R)?"format":"standalone"][E.month()]:y(this._months)?this._months:this._months.standalone},Ar.monthsShort=function(E,R){return E?y(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[_n.test(R)?"format":"standalone"][E.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ar.monthsParse=function(E,R,$){var it,Wt,fe;if(this._monthsParseExact)return(function(xe,Ae,Ne){var Ye,We,mn,cn=xe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Ye=0;Ye<12;++Ye)mn=H([2e3,Ye]),this._shortMonthsParse[Ye]=this.monthsShort(mn,"").toLocaleLowerCase(),this._longMonthsParse[Ye]=this.months(mn,"").toLocaleLowerCase();return Ne?Ae==="MMM"?(We=Qe.call(this._shortMonthsParse,cn))!==-1?We:null:(We=Qe.call(this._longMonthsParse,cn))!==-1?We:null:Ae==="MMM"?(We=Qe.call(this._shortMonthsParse,cn))!==-1||(We=Qe.call(this._longMonthsParse,cn))!==-1?We:null:(We=Qe.call(this._longMonthsParse,cn))!==-1||(We=Qe.call(this._shortMonthsParse,cn))!==-1?We:null}).call(this,E,R,$);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),it=0;it<12;it++)if(Wt=H([2e3,it]),$&&!this._longMonthsParse[it]&&(this._longMonthsParse[it]=new RegExp("^"+this.months(Wt,"").replace(".","")+"$","i"),this._shortMonthsParse[it]=new RegExp("^"+this.monthsShort(Wt,"").replace(".","")+"$","i")),$||this._monthsParse[it]||(fe="^"+this.months(Wt,"")+"|^"+this.monthsShort(Wt,""),this._monthsParse[it]=new RegExp(fe.replace(".",""),"i")),$&&R==="MMMM"&&this._longMonthsParse[it].test(E)||$&&R==="MMM"&&this._shortMonthsParse[it].test(E)||!$&&this._monthsParse[it].test(E))return it},Ar.monthsRegex=function(E){return this._monthsParseExact?(Y(this,"_monthsRegex")||Bn.call(this),E?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=Cn),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)},Ar.monthsShortRegex=function(E){return this._monthsParseExact?(Y(this,"_monthsRegex")||Bn.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Qn),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)},Ar.week=function(E){return ri(E,this._week.dow,this._week.doy).week},Ar.firstDayOfYear=function(){return this._week.doy},Ar.firstDayOfWeek=function(){return this._week.dow},Ar.weekdays=function(E,R){var $=y(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return E===!0?Li($,this._week.dow):E?$[E.day()]:$},Ar.weekdaysMin=function(E){return E===!0?Li(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin},Ar.weekdaysShort=function(E){return E===!0?Li(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort},Ar.weekdaysParse=function(E,R,$){var it,Wt,fe;if(this._weekdaysParseExact)return(function(xe,Ae,Ne){var Ye,We,mn,cn=xe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ye=0;Ye<7;++Ye)mn=H([2e3,1]).day(Ye),this._minWeekdaysParse[Ye]=this.weekdaysMin(mn,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ye]=this.weekdaysShort(mn,"").toLocaleLowerCase(),this._weekdaysParse[Ye]=this.weekdays(mn,"").toLocaleLowerCase();return Ne?Ae==="dddd"?(We=Qe.call(this._weekdaysParse,cn))!==-1?We:null:Ae==="ddd"?(We=Qe.call(this._shortWeekdaysParse,cn))!==-1?We:null:(We=Qe.call(this._minWeekdaysParse,cn))!==-1?We:null:Ae==="dddd"?(We=Qe.call(this._weekdaysParse,cn))!==-1||(We=Qe.call(this._shortWeekdaysParse,cn))!==-1||(We=Qe.call(this._minWeekdaysParse,cn))!==-1?We:null:Ae==="ddd"?(We=Qe.call(this._shortWeekdaysParse,cn))!==-1||(We=Qe.call(this._weekdaysParse,cn))!==-1||(We=Qe.call(this._minWeekdaysParse,cn))!==-1?We:null:(We=Qe.call(this._minWeekdaysParse,cn))!==-1||(We=Qe.call(this._weekdaysParse,cn))!==-1||(We=Qe.call(this._shortWeekdaysParse,cn))!==-1?We:null}).call(this,E,R,$);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),it=0;it<7;it++)if(Wt=H([2e3,1]).day(it),$&&!this._fullWeekdaysParse[it]&&(this._fullWeekdaysParse[it]=new RegExp("^"+this.weekdays(Wt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[it]=new RegExp("^"+this.weekdaysShort(Wt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[it]=new RegExp("^"+this.weekdaysMin(Wt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[it]||(fe="^"+this.weekdays(Wt,"")+"|^"+this.weekdaysShort(Wt,"")+"|^"+this.weekdaysMin(Wt,""),this._weekdaysParse[it]=new RegExp(fe.replace(".",""),"i")),$&&R==="dddd"&&this._fullWeekdaysParse[it].test(E)||$&&R==="ddd"&&this._shortWeekdaysParse[it].test(E)||$&&R==="dd"&&this._minWeekdaysParse[it].test(E)||!$&&this._weekdaysParse[it].test(E))return it},Ar.weekdaysRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=ii),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)},Ar.weekdaysShortRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Or),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ar.weekdaysMinRegex=function(E){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||$r.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ir),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ar.isPM=function(E){return(E+"").toLowerCase().charAt(0)==="p"},Ar.meridiem=function(E,R,$){return 11<E?$?"pm":"PM":$?"am":"AM"},da("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var R=E%10;return E+(K(E%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th")}}),x.lang=Rt("moment.lang is deprecated. Use moment.locale instead.",da),x.langData=Rt("moment.langData is deprecated. Use moment.localeData instead.",ui);var Ea=Math.abs;function gi(E,R,$,it){var Wt=Ue(R,$);return E._milliseconds+=it*Wt._milliseconds,E._days+=it*Wt._days,E._months+=it*Wt._months,E._bubble()}function Os(E){return E<0?Math.floor(E):Math.ceil(E)}function Hl(E){return 4800*E/146097}function Sc(E){return 146097*E/4800}function Eo(E){return function(){return this.as(E)}}var $l=Eo("ms"),Of=Eo("s"),Ad=Eo("m"),Bf=Eo("h"),Lf=Eo("d"),pa=Eo("w"),If=Eo("M"),Wl=Eo("Q"),Vl=Eo("y");function Co(E){return function(){return this.isValid()?this._data[E]:NaN}}var gu=Co("milliseconds"),Ha=Co("seconds"),yu=Co("minutes"),ga=Co("hours"),ss=Co("days"),Ac=Co("months"),So=Co("years"),Fi=Math.round,li={ss:44,s:45,m:45,h:22,d:26,M:11},$a=Math.abs;function Ca(E){return(0<E)-(E<0)||+E}function Gi(){if(!this.isValid())return this.localeData().invalidDate();var E,R,$=$a(this._milliseconds)/1e3,it=$a(this._days),Wt=$a(this._months);R=st((E=st($/60))/60),$%=60,E%=60;var fe=st(Wt/12),xe=Wt%=12,Ae=it,Ne=R,Ye=E,We=$?$.toFixed(3).replace(/\.?0+$/,""):"",mn=this.asSeconds();if(!mn)return"P0D";var cn=mn<0?"-":"",or=Ca(this._months)!==Ca(mn)?"-":"",cr=Ca(this._days)!==Ca(mn)?"-":"",Mr=Ca(this._milliseconds)!==Ca(mn)?"-":"";return cn+"P"+(fe?or+fe+"Y":"")+(xe?or+xe+"M":"")+(Ae?cr+Ae+"D":"")+(Ne||Ye||We?"T":"")+(Ne?Mr+Ne+"H":"")+(Ye?Mr+Ye+"M":"")+(We?Mr+We+"S":"")}var zn=di.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var E=this._data;return this._milliseconds=Ea(this._milliseconds),this._days=Ea(this._days),this._months=Ea(this._months),E.milliseconds=Ea(E.milliseconds),E.seconds=Ea(E.seconds),E.minutes=Ea(E.minutes),E.hours=Ea(E.hours),E.months=Ea(E.months),E.years=Ea(E.years),this},zn.add=function(E,R){return gi(this,E,R,1)},zn.subtract=function(E,R){return gi(this,E,R,-1)},zn.as=function(E){if(!this.isValid())return NaN;var R,$,it=this._milliseconds;if((E=Xt(E))==="month"||E==="quarter"||E==="year")switch(R=this._days+it/864e5,$=this._months+Hl(R),E){case"month":return $;case"quarter":return $/3;case"year":return $/12}else switch(R=this._days+Math.round(Sc(this._months)),E){case"week":return R/7+it/6048e5;case"day":return R+it/864e5;case"hour":return 24*R+it/36e5;case"minute":return 1440*R+it/6e4;case"second":return 86400*R+it/1e3;case"millisecond":return Math.floor(864e5*R)+it;default:throw new Error("Unknown unit "+E)}},zn.asMilliseconds=$l,zn.asSeconds=Of,zn.asMinutes=Ad,zn.asHours=Bf,zn.asDays=Lf,zn.asWeeks=pa,zn.asMonths=If,zn.asQuarters=Wl,zn.asYears=Vl,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},zn._bubble=function(){var E,R,$,it,Wt,fe=this._milliseconds,xe=this._days,Ae=this._months,Ne=this._data;return 0<=fe&&0<=xe&&0<=Ae||fe<=0&&xe<=0&&Ae<=0||(fe+=864e5*Os(Sc(Ae)+xe),Ae=xe=0),Ne.milliseconds=fe%1e3,E=st(fe/1e3),Ne.seconds=E%60,R=st(E/60),Ne.minutes=R%60,$=st(R/60),Ne.hours=$%24,Ae+=Wt=st(Hl(xe+=st($/24))),xe-=Os(Sc(Wt)),it=st(Ae/12),Ae%=12,Ne.days=xe,Ne.months=Ae,Ne.years=it,this},zn.clone=function(){return Ue(this)},zn.get=function(E){return E=Xt(E),this.isValid()?this[E+"s"]():NaN},zn.milliseconds=gu,zn.seconds=Ha,zn.minutes=yu,zn.hours=ga,zn.days=ss,zn.weeks=function(){return st(this.days()/7)},zn.months=Ac,zn.years=So,zn.humanize=function(E){if(!this.isValid())return this.localeData().invalidDate();var R,$,it,Wt,fe,xe,Ae,Ne,Ye,We,mn=this.localeData(),cn=(R=!E,$=mn,it=Ue(this).abs(),Wt=Fi(it.as("s")),fe=Fi(it.as("m")),xe=Fi(it.as("h")),Ae=Fi(it.as("d")),Ne=Fi(it.as("M")),Ye=Fi(it.as("y")),(We=Wt<=li.ss&&["s",Wt]||Wt<li.s&&["ss",Wt]||fe<=1&&["m"]||fe<li.m&&["mm",fe]||xe<=1&&["h"]||xe<li.h&&["hh",xe]||Ae<=1&&["d"]||Ae<li.d&&["dd",Ae]||Ne<=1&&["M"]||Ne<li.M&&["MM",Ne]||Ye<=1&&["y"]||["yy",Ye])[2]=R,We[3]=0<+this,We[4]=$,(function(or,cr,Mr,ar,ya){return ya.relativeTime(cr||1,!!Mr,or,ar)}).apply(null,We));return E&&(cn=mn.pastFuture(+this,cn)),mn.postformat(cn)},zn.toISOString=Gi,zn.toString=Gi,zn.toJSON=Gi,zn.locale=Pr,zn.localeData=za,zn.toIsoString=Rt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gi),zn.lang=Ds,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Se("x",ze),Se("X",/[+-]?\d+(\.\d{1,3})?/),yn("X",(function(E,R,$){$._d=new Date(1e3*parseFloat(E,10))})),yn("x",(function(E,R,$){$._d=new Date(K(E))})),x.version="2.24.0",m=En,x.fn=Fe,x.min=function(){return gr("isBefore",[].slice.call(arguments,0))},x.max=function(){return gr("isAfter",[].slice.call(arguments,0))},x.now=function(){return Date.now?Date.now():+new Date},x.utc=H,x.unix=function(E){return En(1e3*E)},x.months=function(E,R){return pu(E,R,"months")},x.isDate=I,x.locale=da,x.invalid=J,x.duration=Ue,x.isMoment=At,x.weekdays=function(E,R,$){return Cc(E,R,$,"weekdays")},x.parseZone=function(){return En.apply(null,arguments).parseZone()},x.localeData=ui,x.isDuration=Jr,x.monthsShort=function(E,R){return pu(E,R,"monthsShort")},x.weekdaysMin=function(E,R,$){return Cc(E,R,$,"weekdaysMin")},x.defineLocale=ro,x.updateLocale=function(E,R){if(R!=null){var $,it,Wt=si;(it=Kr(E))!=null&&(Wt=it._config),($=new pe(R=ye(Wt,R))).parentLocale=er[E],er[E]=$,da(E)}else er[E]!=null&&(er[E].parentLocale!=null?er[E]=er[E].parentLocale:er[E]!=null&&delete er[E]);return er[E]},x.locales=function(){return ft(er)},x.weekdaysShort=function(E,R,$){return Cc(E,R,$,"weekdaysShort")},x.normalizeUnits=Xt,x.relativeTimeRounding=function(E){return E===void 0?Fi:typeof E=="function"&&(Fi=E,!0)},x.relativeTimeThreshold=function(E,R){return li[E]!==void 0&&(R===void 0?li[E]:(li[E]=R,E==="s"&&(li.ss=R-1),!0))},x.calendarFormat=function(E,R){var $=E.diff(R,"days",!0);return $<-6?"sameElse":$<-1?"lastWeek":$<0?"lastDay":$<1?"sameDay":$<2?"nextDay":$<7?"nextWeek":"sameElse"},x.prototype=Fe,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:M=>{function N(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}function p(d,x){for(var y,k="",C=0,S=-1,I=0,L=0;L<=d.length;++L){if(L<d.length)y=d.charCodeAt(L);else{if(y===47)break;y=47}if(y===47){if(!(S===L-1||I===1))if(S!==L-1&&I===2){if(k.length<2||C!==2||k.charCodeAt(k.length-1)!==46||k.charCodeAt(k.length-2)!==46){if(k.length>2){var Y=k.lastIndexOf("/");if(Y!==k.length-1){Y===-1?(k="",C=0):C=(k=k.slice(0,Y)).length-1-k.lastIndexOf("/"),S=L,I=0;continue}}else if(k.length===2||k.length===1){k="",C=0,S=L,I=0;continue}}x&&(k.length>0?k+="/..":k="..",C=2)}else k.length>0?k+="/"+d.slice(S+1,L):k=d.slice(S+1,L),C=L-S-1;S=L,I=0}else y===46&&I!==-1?++I:I=-1}return k}var m={resolve:function(){for(var d,x="",y=!1,k=arguments.length-1;k>=-1&&!y;k--){var C;k>=0?C=arguments[k]:(d===void 0&&(d=process.cwd()),C=d),N(C),C.length!==0&&(x=C+"/"+x,y=C.charCodeAt(0)===47)}return x=p(x,!y),y?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(d){if(N(d),d.length===0)return".";var x=d.charCodeAt(0)===47,y=d.charCodeAt(d.length-1)===47;return(d=p(d,!x)).length!==0||x||(d="."),d.length>0&&y&&(d+="/"),x?"/"+d:d},isAbsolute:function(d){return N(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,x=0;x<arguments.length;++x){var y=arguments[x];N(y),y.length>0&&(d===void 0?d=y:d+="/"+y)}return d===void 0?".":m.normalize(d)},relative:function(d,x){if(N(d),N(x),d===x||(d=m.resolve(d))===(x=m.resolve(x)))return"";for(var y=1;y<d.length&&d.charCodeAt(y)===47;++y);for(var k=d.length,C=k-y,S=1;S<x.length&&x.charCodeAt(S)===47;++S);for(var I=x.length-S,L=C<I?C:I,Y=-1,W=0;W<=L;++W){if(W===L){if(I>L){if(x.charCodeAt(S+W)===47)return x.slice(S+W+1);if(W===0)return x.slice(S+W)}else C>L&&(d.charCodeAt(y+W)===47?Y=W:W===0&&(Y=0));break}var H=d.charCodeAt(y+W);if(H!==x.charCodeAt(S+W))break;H===47&&(Y=W)}var V="";for(W=y+Y+1;W<=k;++W)W!==k&&d.charCodeAt(W)!==47||(V.length===0?V+="..":V+="/..");return V.length>0?V+x.slice(S+Y):(S+=Y,x.charCodeAt(S)===47&&++S,x.slice(S))},_makeLong:function(d){return d},dirname:function(d){if(N(d),d.length===0)return".";for(var x=d.charCodeAt(0),y=x===47,k=-1,C=!0,S=d.length-1;S>=1;--S)if((x=d.charCodeAt(S))===47){if(!C){k=S;break}}else C=!1;return k===-1?y?"/":".":y&&k===1?"//":d.slice(0,k)},basename:function(d,x){if(x!==void 0&&typeof x!="string")throw new TypeError('"ext" argument must be a string');N(d);var y,k=0,C=-1,S=!0;if(x!==void 0&&x.length>0&&x.length<=d.length){if(x.length===d.length&&x===d)return"";var I=x.length-1,L=-1;for(y=d.length-1;y>=0;--y){var Y=d.charCodeAt(y);if(Y===47){if(!S){k=y+1;break}}else L===-1&&(S=!1,L=y+1),I>=0&&(Y===x.charCodeAt(I)?--I==-1&&(C=y):(I=-1,C=L))}return k===C?C=L:C===-1&&(C=d.length),d.slice(k,C)}for(y=d.length-1;y>=0;--y)if(d.charCodeAt(y)===47){if(!S){k=y+1;break}}else C===-1&&(S=!1,C=y+1);return C===-1?"":d.slice(k,C)},extname:function(d){N(d);for(var x=-1,y=0,k=-1,C=!0,S=0,I=d.length-1;I>=0;--I){var L=d.charCodeAt(I);if(L!==47)k===-1&&(C=!1,k=I+1),L===46?x===-1?x=I:S!==1&&(S=1):x!==-1&&(S=-1);else if(!C){y=I+1;break}}return x===-1||k===-1||S===0||S===1&&x===k-1&&x===y+1?"":d.slice(x,k)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return(function(x,y){var k=y.dir||y.root,C=y.base||(y.name||"")+(y.ext||"");return k?k===y.root?k+C:k+"/"+C:C})(0,d)},parse:function(d){N(d);var x={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return x;var y,k=d.charCodeAt(0),C=k===47;C?(x.root="/",y=1):y=0;for(var S=-1,I=0,L=-1,Y=!0,W=d.length-1,H=0;W>=y;--W)if((k=d.charCodeAt(W))!==47)L===-1&&(Y=!1,L=W+1),k===46?S===-1?S=W:H!==1&&(H=1):S!==-1&&(H=-1);else if(!Y){I=W+1;break}return S===-1||L===-1||H===0||H===1&&S===L-1&&S===I+1?L!==-1&&(x.base=x.name=I===0&&C?d.slice(1,L):d.slice(I,L)):(I===0&&C?(x.name=d.slice(1,S),x.base=d.slice(1,L)):(x.name=d.slice(I,S),x.base=d.slice(I,L)),x.ext=d.slice(S,L)),I>0?x.dir=d.slice(0,I-1):C&&(x.dir="/"),x},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,M.exports=m},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},D_={};function $o(M){var N=D_[M];if(N!==void 0)return N.exports;var p=D_[M]={id:M,loaded:!1,exports:{}};return t6[M].call(p.exports,p,p.exports,$o),p.loaded=!0,p.exports}$o.c=D_,$o.n=M=>{var N=M&&M.__esModule?()=>M.default:()=>M;return $o.d(N,{a:N}),N},$o.d=(M,N)=>{for(var p in N)$o.o(N,p)&&!$o.o(M,p)&&Object.defineProperty(M,p,{enumerable:!0,get:N[p]})},$o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),$o.o=(M,N)=>Object.prototype.hasOwnProperty.call(M,N),$o.r=M=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},$o.nmd=M=>(M.paths=[],M.children||(M.children=[]),M);var e6=$o($o.s=7458).Z;export{e6 as r};
|