var qx=Object.defineProperty,Wx=Object.defineProperties;var $x=Object.getOwnPropertyDescriptors;var rx=Object.getOwnPropertySymbols;var Hx=Object.prototype.hasOwnProperty,Vx=Object.prototype.propertyIsEnumerable;var ix=(A,F,y)=>F in A?qx(A,F,{enumerable:!0,configurable:!0,writable:!0,value:y}):A[F]=y,p_=(A,F)=>{for(var y in F||(F={}))Hx.call(F,y)&&ix(A,y,F[y]);if(rx)for(var y of rx(F))Vx.call(F,y)&&ix(A,y,F[y]);return A},g_=(A,F)=>Wx(A,$x(F));import{S as Gx,i as Xx,s as Zx,e as ax,c as ox,a as sx,d as y_,b as Rv,Y as Pv,g as Qx,J as Jx,E as cx,N as Kx,v as t7,a5 as e7,Q as lx,O as v_}from"./index-b06f7db9.js";import{w as by,d as n7}from"./preload-helper-29d322af.js";import{c as m_,p as k_,a as T_,h as b_,i as gx,j as r7,k as i7,m as a7,b as o7,n as s7}from"./state-3a19ae0b.js";const c7=by(void 0);/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var l7={2536:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(Ue,Pe,Ie,Xe){for(Ie=Ie||{},Xe=Ue.length;Xe--;Ie[Ue[Xe]]=Pe);return Ie},T=[1,6],v=[1,7],C=[1,8],N=[1,9],D=[1,16],Y=[1,11],L=[1,12],j=[1,13],V=[1,14],K=[1,15],tt=[1,27],dt=[1,33],rt=[1,34],Ot=[1,66],ot=[1,67],_t=[1,68],Dt=[1,69],Xt=[1,70],jt=[1,71],Nt=[1,72],Yt=[1,35],Bt=[1,36],Tt=[1,37],Q=[1,38],lt=[1,39],U=[1,40],kt=[1,41],W=[1,42],At=[1,43],Ft=[1,44],Ut=[1,45],pe=[1,46],je=[1,47],_e=[1,48],ue=[1,49],de=[1,50],Me=[1,51],Se=[1,52],ge=[1,53],bn=[1,54],ye=[1,56],qe=[1,57],It=[1,58],se=[1,59],ne=[1,60],Ct=[1,61],Ee=[1,62],X=[1,63],Ce=[24,47],nt=[24,39,41,42,43,44,45,46,47,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],ke=[15,24,39,41,42,43,44,45,46,47,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],ee=[1,86],me=[1,87],Re=[1,88],Le=[15,24,47],an=[7,8,9,10,18,22,25,26,27,28],Ae=[15,24,38,47],Ve=[15,24,38,47,78,79,80],Ke=[15,38],en=[39,41,42,43,44,45,46,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],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,boundaryStatement:34,boundaryStartStatement:35,boundaryStopStatement:36,boundaryStart:37,LBRACE:38,ENTERPRISE_BOUNDARY:39,attributes:40,SYSTEM_BOUNDARY:41,BOUNDARY:42,CONTAINER_BOUNDARY:43,NODE:44,NODE_L:45,NODE_R:46,RBRACE:47,diagramStatement:48,PERSON:49,PERSON_EXT:50,SYSTEM:51,SYSTEM_DB:52,SYSTEM_QUEUE:53,SYSTEM_EXT:54,SYSTEM_EXT_DB:55,SYSTEM_EXT_QUEUE:56,CONTAINER:57,CONTAINER_DB:58,CONTAINER_QUEUE:59,CONTAINER_EXT:60,CONTAINER_EXT_DB:61,CONTAINER_EXT_QUEUE:62,COMPONENT:63,COMPONENT_DB:64,COMPONENT_QUEUE:65,COMPONENT_EXT:66,COMPONENT_EXT_DB:67,COMPONENT_EXT_QUEUE:68,REL:69,BIREL:70,REL_U:71,REL_D:72,REL_L:73,REL_R:74,REL_B:75,REL_INDEX:76,attribute:77,STR:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY: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:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",38:"LBRACE",39:"ENTERPRISE_BOUNDARY",41:"SYSTEM_BOUNDARY",42:"BOUNDARY",43:"CONTAINER_BOUNDARY",44:"NODE",45:"NODE_L",46:"NODE_R",47:"RBRACE",49:"PERSON",50:"PERSON_EXT",51:"SYSTEM",52:"SYSTEM_DB",53:"SYSTEM_QUEUE",54:"SYSTEM_EXT",55:"SYSTEM_EXT_DB",56:"SYSTEM_EXT_QUEUE",57:"CONTAINER",58:"CONTAINER_DB",59:"CONTAINER_QUEUE",60:"CONTAINER_EXT",61:"CONTAINER_EXT_DB",62:"CONTAINER_EXT_QUEUE",63:"COMPONENT",64:"COMPONENT_DB",65:"COMPONENT_QUEUE",66:"COMPONENT_EXT",67:"COMPONENT_EXT_DB",68:"COMPONENT_EXT_QUEUE",69:"REL",70:"BIREL",71:"REL_U",72:"REL_D",73:"REL_L",74:"REL_R",75:"REL_B",76:"REL_INDEX",78:"STR",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[34,3],[35,3],[35,3],[35,4],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[36,1],[30,1],[30,2],[30,3],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,1],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[48,2],[40,1],[40,2],[77,1],[77,1],[77,1]],performAction:function(Ue,Pe,Ie,Xe,jn,Lt,An){var Pt=Lt.length-1;switch(jn){case 4:Xe.setDirection("TB");break;case 5:Xe.setDirection("BT");break;case 6:Xe.setDirection("RL");break;case 7:Xe.setDirection("LR");break;case 11:console.log("open_directive: ",Lt[Pt]),Xe.parseDirective("%%{","open_directive");break;case 12:break;case 13:Lt[Pt]=Lt[Pt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Lt[Pt]),Xe.parseDirective(Lt[Pt],"arg_directive");break;case 14:console.log("close_directive: ",Lt[Pt]),Xe.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Xe.setC4Type(Lt[Pt-3]);break;case 26:Xe.setTitle(Lt[Pt].substring(6)),this.$=Lt[Pt].substring(6);break;case 27:Xe.setAccDescription(Lt[Pt].substring(15)),this.$=Lt[Pt].substring(15);break;case 32:case 33:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Lt[Pt].splice(2,0,"ENTERPRISE"),Xe.addPersonOrSystemBoundary(...Lt[Pt]),this.$=Lt[Pt];break;case 34:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystemBoundary(...Lt[Pt]),this.$=Lt[Pt];break;case 35:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Lt[Pt].splice(2,0,"CONTAINER"),Xe.addContainerBoundary(...Lt[Pt]),this.$=Lt[Pt];break;case 36:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addDeploymentNode("node",...Lt[Pt]),this.$=Lt[Pt];break;case 37:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addDeploymentNode("nodeL",...Lt[Pt]),this.$=Lt[Pt];break;case 38:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addDeploymentNode("nodeR",...Lt[Pt]),this.$=Lt[Pt];break;case 39:Xe.popBoundaryParseStack();break;case 43:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("person",...Lt[Pt]),this.$=Lt[Pt];break;case 44:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("external_person",...Lt[Pt]),this.$=Lt[Pt];break;case 45:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("system",...Lt[Pt]),this.$=Lt[Pt];break;case 46:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("system_db",...Lt[Pt]),this.$=Lt[Pt];break;case 47:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("system_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 48:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("external_system",...Lt[Pt]),this.$=Lt[Pt];break;case 49:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("external_system_db",...Lt[Pt]),this.$=Lt[Pt];break;case 50:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addPersonOrSystem("external_system_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 51:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("container",...Lt[Pt]),this.$=Lt[Pt];break;case 52:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("container_db",...Lt[Pt]),this.$=Lt[Pt];break;case 53:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("container_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 54:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("external_container",...Lt[Pt]),this.$=Lt[Pt];break;case 55:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("external_container_db",...Lt[Pt]),this.$=Lt[Pt];break;case 56:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addContainer("external_container_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 57:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("component",...Lt[Pt]),this.$=Lt[Pt];break;case 58:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("component_db",...Lt[Pt]),this.$=Lt[Pt];break;case 59:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("component_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 60:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("external_component",...Lt[Pt]),this.$=Lt[Pt];break;case 61:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("external_component_db",...Lt[Pt]),this.$=Lt[Pt];break;case 62:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addComponent("external_component_queue",...Lt[Pt]),this.$=Lt[Pt];break;case 64:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel",...Lt[Pt]),this.$=Lt[Pt];break;case 65:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("birel",...Lt[Pt]),this.$=Lt[Pt];break;case 66:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel_u",...Lt[Pt]),this.$=Lt[Pt];break;case 67:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel_d",...Lt[Pt]),this.$=Lt[Pt];break;case 68:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel_l",...Lt[Pt]),this.$=Lt[Pt];break;case 69:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel_r",...Lt[Pt]),this.$=Lt[Pt];break;case 70:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Xe.addRel("rel_b",...Lt[Pt]),this.$=Lt[Pt];break;case 71:console.log(Lt[Pt-1],JSON.stringify(Lt[Pt])),Lt[Pt].splice(0,1),Xe.addRel("rel",...Lt[Pt]),this.$=Lt[Pt];break;case 72:console.log("PUSH ATTRIBUTE: ",Lt[Pt]),this.$=[Lt[Pt]];break;case 73:console.log("PUSH ATTRIBUTE: ",Lt[Pt-1]),Lt[Pt].unshift(Lt[Pt-1]),this.$=Lt[Pt];break;case 74:case 75:this.$=Lt[Pt].trim();break;case 76:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:T,8:v,9:C,10:N,11:5,12:10,18:D,22:Y,25:L,26:j,27:V,28:K},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:T,8:v,9:C,10:N,11:5,12:10,18:D,22:Y,25:L,26:j,27:V,28:K},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:tt},d([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:dt,33:rt,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{23:73,29:29,30:30,31:31,32:dt,33:rt,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{23:74,29:29,30:30,31:31,32:dt,33:rt,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{23:75,29:29,30:30,31:31,32:dt,33:rt,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{23:76,29:29,30:30,31:31,32:dt,33:rt,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{15:[1,77]},{17:78,20:[1,79]},{15:[2,14]},{24:[1,80]},d(Ce,[2,20],{48:32,34:55,35:64,37:65,30:81,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X}),d(Ce,[2,21]),d(nt,[2,23],{15:[1,82]}),d(Ce,[2,40],{15:[1,83]}),d(ke,[2,26]),d(ke,[2,27]),{40:84,77:85,78:ee,79:me,80:Re},{40:89,77:85,78:ee,79:me,80:Re},{40:90,77:85,78:ee,79:me,80:Re},{40:91,77:85,78:ee,79:me,80:Re},{40:92,77:85,78:ee,79:me,80:Re},{40:93,77:85,78:ee,79:me,80:Re},{40:94,77:85,78:ee,79:me,80:Re},{40:95,77:85,78:ee,79:me,80:Re},{40:96,77:85,78:ee,79:me,80:Re},{40:97,77:85,78:ee,79:me,80:Re},{40:98,77:85,78:ee,79:me,80:Re},{40:99,77:85,78:ee,79:me,80:Re},{40:100,77:85,78:ee,79:me,80:Re},{40:101,77:85,78:ee,79:me,80:Re},{40:102,77:85,78:ee,79:me,80:Re},{40:103,77:85,78:ee,79:me,80:Re},{40:104,77:85,78:ee,79:me,80:Re},{40:105,77:85,78:ee,79:me,80:Re},{40:106,77:85,78:ee,79:me,80:Re},{40:107,77:85,78:ee,79:me,80:Re},d(Le,[2,63]),{40:108,77:85,78:ee,79:me,80:Re},{40:109,77:85,78:ee,79:me,80:Re},{40:110,77:85,78:ee,79:me,80:Re},{40:111,77:85,78:ee,79:me,80:Re},{40:112,77:85,78:ee,79:me,80:Re},{40:113,77:85,78:ee,79:me,80:Re},{40:114,77:85,78:ee,79:me,80:Re},{40:115,77:85,78:ee,79:me,80:Re},{30:116,34:55,35:64,37:65,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,48:32,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X},{15:[1,118],38:[1,117]},{40:119,77:85,78:ee,79:me,80:Re},{40:120,77:85,78:ee,79:me,80:Re},{40:121,77:85,78:ee,79:me,80:Re},{40:122,77:85,78:ee,79:me,80:Re},{40:123,77:85,78:ee,79:me,80:Re},{40:124,77:85,78:ee,79:me,80:Re},{40:125,77:85,78:ee,79:me,80:Re},{24:[1,126]},{24:[1,127]},{24:[1,128]},{24:[1,129]},d(an,[2,9]),{14:130,21:tt},{21:[2,13]},{1:[2,15]},d(Ce,[2,22]),d(nt,[2,24],{31:31,29:131,32:dt,33:rt}),d(Ce,[2,41],{29:29,30:30,31:31,48:32,34:55,35:64,37:65,23:132,32:dt,33:rt,39:Ot,41:ot,42:_t,43:Dt,44:Xt,45:jt,46:Nt,49:Yt,50:Bt,51:Tt,52:Q,53:lt,54:U,55:kt,56:W,57:At,58:Ft,59:Ut,60:pe,61:je,62:_e,63:ue,64:de,65:Me,66:Se,67:ge,68:bn,69:ye,70:qe,71:It,72:se,73:ne,74:Ct,75:Ee,76:X}),d(Le,[2,43]),d(Ae,[2,72],{77:85,40:133,78:ee,79:me,80:Re}),d(Ve,[2,74]),d(Ve,[2,75]),d(Ve,[2,76]),d(Le,[2,44]),d(Le,[2,45]),d(Le,[2,46]),d(Le,[2,47]),d(Le,[2,48]),d(Le,[2,49]),d(Le,[2,50]),d(Le,[2,51]),d(Le,[2,52]),d(Le,[2,53]),d(Le,[2,54]),d(Le,[2,55]),d(Le,[2,56]),d(Le,[2,57]),d(Le,[2,58]),d(Le,[2,59]),d(Le,[2,60]),d(Le,[2,61]),d(Le,[2,62]),d(Le,[2,64]),d(Le,[2,65]),d(Le,[2,66]),d(Le,[2,67]),d(Le,[2,68]),d(Le,[2,69]),d(Le,[2,70]),d(Le,[2,71]),{36:134,47:[1,135]},{15:[1,136]},{38:[1,137]},d(Ke,[2,32]),d(Ke,[2,33]),d(Ke,[2,34]),d(Ke,[2,35]),d(Ke,[2,36]),d(Ke,[2,37]),d(Ke,[2,38]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,138]},d(nt,[2,25]),d(Ce,[2,42]),d(Ae,[2,73]),d(Le,[2,28]),d(Le,[2,39]),d(en,[2,29]),d(en,[2,30],{15:[1,139]}),d(an,[2,10]),d(en,[2,31])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],79:[2,13],80:[2,15],126:[2,16],127:[2,17],128:[2,18],129:[2,19]},parseError:function(Ue,Pe){if(!Pe.recoverable){var Ie=new Error(Ue);throw Ie.hash=Pe,Ie}this.trace(Ue)},parse:function(Ue){var Pe=this,Ie=[0],Xe=[],jn=[null],Lt=[],An=this.table,Pt="",hn=0,Mn=0,on=0,qn=2,Qn=1,Pr=Lt.slice.call(arguments,1),kn=Object.create(this.lexer),Yn={yy:{}};for(var Ln in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ln)&&(Yn.yy[Ln]=this.yy[Ln]);kn.setInput(Ue,Yn.yy),Yn.yy.lexer=kn,Yn.yy.parser=this,kn.yylloc===void 0&&(kn.yylloc={});var Nn=kn.yylloc;Lt.push(Nn);var Fn=kn.options&&kn.options.ranges;function Pn(){var yr;return typeof(yr=Xe.pop()||kn.lex()||Qn)!="number"&&(yr instanceof Array&&(yr=(Xe=yr).pop()),yr=Pe.symbols_[yr]||yr),yr}typeof Yn.yy.parseError=="function"?this.parseError=Yn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Tn,Wn,xn,Cn,$n,oa,fr,Ti,pn,mi={};;){if(xn=Ie[Ie.length-1],this.defaultActions[xn]?Cn=this.defaultActions[xn]:(Tn==null&&(Tn=Pn()),Cn=An[xn]&&An[xn][Tn]),Cn===void 0||!Cn.length||!Cn[0]){var br="";for(oa in pn=[],An[xn])this.terminals_[oa]&&oa>qn&&pn.push("'"+this.terminals_[oa]+"'");br=kn.showPosition?"Parse error on line "+(hn+1)+`: `+kn.showPosition()+` Expecting `+pn.join(", ")+", got '"+(this.terminals_[Tn]||Tn)+"'":"Parse error on line "+(hn+1)+": Unexpected "+(Tn==Qn?"end of input":"'"+(this.terminals_[Tn]||Tn)+"'"),this.parseError(br,{text:kn.match,token:this.terminals_[Tn]||Tn,line:kn.yylineno,loc:Nn,expected:pn})}if(Cn[0]instanceof Array&&Cn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xn+", token: "+Tn);switch(Cn[0]){case 1:Ie.push(Tn),jn.push(kn.yytext),Lt.push(kn.yylloc),Ie.push(Cn[1]),Tn=null,Wn?(Tn=Wn,Wn=null):(Mn=kn.yyleng,Pt=kn.yytext,hn=kn.yylineno,Nn=kn.yylloc,on>0);break;case 2:if(fr=this.productions_[Cn[1]][1],mi.$=jn[jn.length-fr],mi._$={first_line:Lt[Lt.length-(fr||1)].first_line,last_line:Lt[Lt.length-1].last_line,first_column:Lt[Lt.length-(fr||1)].first_column,last_column:Lt[Lt.length-1].last_column},Fn&&(mi._$.range=[Lt[Lt.length-(fr||1)].range[0],Lt[Lt.length-1].range[1]]),($n=this.performAction.apply(mi,[Pt,Mn,hn,Yn.yy,Cn[1],jn,Lt].concat(Pr)))!==void 0)return $n;fr&&(Ie=Ie.slice(0,-1*fr*2),jn=jn.slice(0,-1*fr),Lt=Lt.slice(0,-1*fr)),Ie.push(this.productions_[Cn[1]][0]),jn.push(mi.$),Lt.push(mi._$),Ti=An[Ie[Ie.length-2]][Ie[Ie.length-1]],Ie.push(Ti);break;case 3:return!0}}return!0}},ln={EOF:1,parseError:function(Ue,Pe){if(!this.yy.parser)throw new Error(Ue);this.yy.parser.parseError(Ue,Pe)},setInput:function(Ue,Pe){return this.yy=Pe||this.yy||{},this._input=Ue,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 Ue=this._input[0];return this.yytext+=Ue,this.yyleng++,this.offset++,this.match+=Ue,this.matched+=Ue,Ue.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),Ue},unput:function(Ue){var Pe=Ue.length,Ie=Ue.split(/(?:\r\n?|\n)/g);this._input=Ue+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Pe),this.offset-=Pe;var Xe=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),Ie.length-1&&(this.yylineno-=Ie.length-1);var jn=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:Ie?(Ie.length===Xe.length?this.yylloc.first_column:0)+Xe[Xe.length-Ie.length].length-Ie[0].length:this.yylloc.first_column-Pe},this.options.ranges&&(this.yylloc.range=[jn[0],jn[0]+this.yyleng-Pe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ue){this.unput(this.match.slice(Ue))},pastInput:function(){var Ue=this.matched.substr(0,this.matched.length-this.match.length);return(Ue.length>20?"...":"")+Ue.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ue=this.match;return Ue.length<20&&(Ue+=this._input.substr(0,20-Ue.length)),(Ue.substr(0,20)+(Ue.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ue=this.pastInput(),Pe=new Array(Ue.length+1).join("-");return Ue+this.upcomingInput()+` `+Pe+"^"},test_match:function(Ue,Pe){var Ie,Xe,jn;if(this.options.backtrack_lexer&&(jn={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&&(jn.yylloc.range=this.yylloc.range.slice(0))),(Xe=Ue[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Xe?Xe[Xe.length-1].length-Xe[Xe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ue[0].length},this.yytext+=Ue[0],this.match+=Ue[0],this.matches=Ue,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(Ue[0].length),this.matched+=Ue[0],Ie=this.performAction.call(this,this.yy,this,Pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ie)return Ie;if(this._backtrack){for(var Lt in jn)this[Lt]=jn[Lt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ue,Pe,Ie,Xe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var jn=this._currentRules(),Lt=0;LtPe[0].length)){if(Pe=Ie,Xe=Lt,this.options.backtrack_lexer){if((Ue=this.test_match(Ie,jn[Lt]))!==!1)return Ue;if(this._backtrack){Pe=!1;continue}return!1}if(!this.options.flex)break}return Pe?(Ue=this.test_match(Pe,jn[Xe]))!==!1&&Ue:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ue){this.conditionStack.push(Ue)},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(Ue){return(Ue=this.conditionStack.length-1-Math.abs(Ue||0))>=0?this.conditionStack[Ue]:"INITIAL"},pushState:function(Ue){this.begin(Ue)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ue,Pe,Ie,Xe){switch(Ie){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 14:break;case 10:c;break;case 11:return 32;case 12:return 33;case 13:return 15;case 15:return 22;case 16:return 25;case 17:return 26;case 18:return 27;case 19:return 28;case 20:return this.begin("person_ext"),console.log("begin person_ext"),50;case 21:return this.begin("person"),console.log("begin person"),49;case 22:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),56;case 23:return this.begin("system_ext_db"),console.log("begin system_ext_db"),55;case 24:return this.begin("system_ext"),console.log("begin system_ext"),54;case 25:return this.begin("system_queue"),console.log("begin system_queue"),53;case 26:return this.begin("system_db"),console.log("begin system_db"),52;case 27:return this.begin("system"),console.log("begin system"),51;case 28:return this.begin("boundary"),console.log("begin boundary"),42;case 29:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),39;case 30:return this.begin("system_boundary"),console.log("begin system_boundary"),41;case 31:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),62;case 32:return this.begin("container_ext_db"),console.log("begin container_ext_db"),61;case 33:return this.begin("container_ext"),console.log("begin container_ext"),60;case 34:return this.begin("container_queue"),console.log("begin container_queue"),59;case 35:return this.begin("container_db"),console.log("begin container_db"),58;case 36:return this.begin("container"),console.log("begin container"),57;case 37:return this.begin("container_boundary"),console.log("begin container_boundary"),43;case 38:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),68;case 39:return this.begin("component_ext_db"),console.log("begin component_ext_db"),67;case 40:return this.begin("component_ext"),console.log("begin component_ext"),66;case 41:return this.begin("component_queue"),console.log("begin component_queue"),65;case 42:return this.begin("component_db"),console.log("begin component_db"),64;case 43:return this.begin("component"),console.log("begin component"),63;case 44:case 45:return this.begin("node"),console.log("begin node"),44;case 46:return this.begin("node_l"),console.log("begin node_l"),45;case 47:return this.begin("node_r"),console.log("begin node_r"),46;case 48:return this.begin("rel"),console.log("begin rel"),69;case 49:return this.begin("birel"),console.log("begin birel"),70;case 50:case 51:return this.begin("rel_u"),console.log("begin rel_u"),71;case 52:case 53:return this.begin("rel_d"),console.log("begin rel_d"),72;case 54:case 55:return this.begin("rel_l"),console.log("begin rel_l"),73;case 56:case 57:return this.begin("rel_r"),console.log("begin rel_r"),74;case 58:return this.begin("rel_b"),console.log("begin rel_b"),75;case 59:return this.begin("rel_index"),console.log("begin rel_index"),76;case 60:return"EOF_IN_STRUCT";case 61:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 62:console.log("begin attribute"),this.begin("attribute");break;case 63:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 64:return console.log(",,"),80;case 65:console.log(",");break;case 66:return console.log("ATTRIBUTE_EMPTY"),80;case 67:console.log("begin string"),this.begin("string");break;case 68:console.log("STOP string"),this.popState();break;case 69:return console.log("STR"),"STR";case 70:return console.log("not STR"),"STR";case 71:return console.log("begin boundary block"),"LBRACE";case 72:return console.log("STOP boundary block"),"RBRACE";case 73:return"SPACE";case 74:return"EOL";case 75: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)*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string:{rules:[68,69],inclusive:!1},attribute:{rules:[63,64,65,66,67,70],inclusive:!1},rel_b:{rules:[60,61,62,63],inclusive:!1},rel_r:{rules:[60,61,62,63],inclusive:!1},rel_l:{rules:[60,61,62,63],inclusive:!1},rel_d:{rules:[60,61,62,63],inclusive:!1},rel_u:{rules:[60,61,62,63],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[60,61,62,63],inclusive:!1},node_r:{rules:[60,61,62,63],inclusive:!1},node_l:{rules:[60,61,62,63],inclusive:!1},node:{rules:[60,61,62,63],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[60,61,62,63],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[60,61,62,63],inclusive:!1},component_ext:{rules:[60,61,62,63],inclusive:!1},component_queue:{rules:[60,61,62,63],inclusive:!1},component_db:{rules:[60,61,62,63],inclusive:!1},component:{rules:[60,61,62,63],inclusive:!1},container_boundary:{rules:[60,61,62,63],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[60,61,62,63],inclusive:!1},container_ext:{rules:[60,61,62,63],inclusive:!1},container_queue:{rules:[60,61,62,63],inclusive:!1},container_db:{rules:[60,61,62,63],inclusive:!1},container:{rules:[60,61,62,63],inclusive:!1},birel:{rules:[60,61,62,63],inclusive:!1},system_boundary:{rules:[60,61,62,63],inclusive:!1},enterprise_boundary:{rules:[60,61,62,63],inclusive:!1},boundary:{rules:[60,61,62,63],inclusive:!1},system_ext_queue:{rules:[60,61,62,63],inclusive:!1},system_ext_db:{rules:[60,61,62,63],inclusive:!1},system_ext:{rules:[60,61,62,63],inclusive:!1},system_queue:{rules:[60,61,62,63],inclusive:!1},system_db:{rules:[60,61,62,63],inclusive:!1},system:{rules:[60,61,62,63],inclusive:!1},person_ext:{rules:[60,61,62,63],inclusive:!1},person:{rules:[60,61,62,63],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,71,72,73,74,75],inclusive:!0}}};function dn(){this.yy={}}return Ne.lexer=ln,dn.prototype=Ne,Ne.Parser=dn,new dn}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(555).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},1362:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(It,se,ne,Ct){for(ne=ne||{},Ct=It.length;Ct--;ne[It[Ct]]=se);return ne},T=[1,3],v=[1,7],C=[1,8],N=[1,9],D=[1,10],Y=[1,13],L=[1,12],j=[1,16,25],V=[1,20],K=[1,31],tt=[1,32],dt=[1,33],rt=[1,35],Ot=[1,38],ot=[1,36],_t=[1,37],Dt=[1,39],Xt=[1,40],jt=[1,41],Nt=[1,42],Yt=[1,45],Bt=[1,46],Tt=[1,47],Q=[1,48],lt=[16,25],U=[1,62],kt=[1,63],W=[1,64],At=[1,65],Ft=[1,66],Ut=[1,67],pe=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],je=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],_e=[5,8,9,10,11,16,19,23,25],ue=[53,83,84,85,86],de=[53,60,61,83,84,85,86],Me=[53,56,57,58,59,83,84,85,86],Se=[16,25,32],ge=[1,99],bn={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",74:"TAGSTART",75:"TAGEND",76:"==",77:"--",78:"PCT",79:"DEFAULT",80:"SPACE",81:"MINUS",82:"keywords",83:"UNICODE_TEXT",84:"NUM",85:"ALPHA",86:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(It,se,ne,Ct,Ee,X,Ce){var nt=X.length-1;switch(Ee){case 5:Ct.setDirection("TB");break;case 6:Ct.setDirection("BT");break;case 7:Ct.setDirection("RL");break;case 8:Ct.setDirection("LR");break;case 12:Ct.parseDirective("%%{","open_directive");break;case 13:Ct.parseDirective(X[nt],"type_directive");break;case 14:X[nt]=X[nt].trim().replace(/'/g,'"'),Ct.parseDirective(X[nt],"arg_directive");break;case 15:Ct.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=X[nt];break;case 22:this.$=X[nt-1]+X[nt];break;case 23:case 24:this.$=X[nt-1]+"~"+X[nt];break;case 25:Ct.addRelation(X[nt]);break;case 26:X[nt-1].title=Ct.cleanupLabel(X[nt]),Ct.addRelation(X[nt-1]);break;case 34:this.$=X[nt].trim(),Ct.setAccTitle(this.$);break;case 35:case 36:this.$=X[nt].trim(),Ct.setAccDescription(this.$);break;case 37:Ct.addClass(X[nt]);break;case 38:Ct.addClass(X[nt-2]),Ct.setCssClass(X[nt-2],X[nt]);break;case 39:Ct.addClass(X[nt-3]),Ct.addMembers(X[nt-3],X[nt-1]);break;case 40:Ct.addClass(X[nt-5]),Ct.setCssClass(X[nt-5],X[nt-3]),Ct.addMembers(X[nt-5],X[nt-1]);break;case 41:Ct.addAnnotation(X[nt],X[nt-2]);break;case 42:this.$=[X[nt]];break;case 43:X[nt].push(X[nt-1]),this.$=X[nt];break;case 44:case 46:case 47:break;case 45:Ct.addMember(X[nt-1],Ct.cleanupLabel(X[nt]));break;case 48:this.$={id1:X[nt-2],id2:X[nt],relation:X[nt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:X[nt-3],id2:X[nt],relation:X[nt-1],relationTitle1:X[nt-2],relationTitle2:"none"};break;case 50:this.$={id1:X[nt-3],id2:X[nt],relation:X[nt-2],relationTitle1:"none",relationTitle2:X[nt-1]};break;case 51:this.$={id1:X[nt-4],id2:X[nt],relation:X[nt-2],relationTitle1:X[nt-3],relationTitle2:X[nt-1]};break;case 52:this.$={type1:X[nt-2],type2:X[nt],lineType:X[nt-1]};break;case 53:this.$={type1:"none",type2:X[nt],lineType:X[nt-1]};break;case 54:this.$={type1:X[nt-1],type2:"none",lineType:X[nt]};break;case 55:this.$={type1:"none",type2:"none",lineType:X[nt]};break;case 56:this.$=Ct.relationType.AGGREGATION;break;case 57:this.$=Ct.relationType.EXTENSION;break;case 58:this.$=Ct.relationType.COMPOSITION;break;case 59:this.$=Ct.relationType.DEPENDENCY;break;case 60:this.$=Ct.lineType.LINE;break;case 61:this.$=Ct.lineType.DOTTED_LINE;break;case 62:case 68:this.$=X[nt-2],Ct.setClickEvent(X[nt-1],X[nt]);break;case 63:case 69:this.$=X[nt-3],Ct.setClickEvent(X[nt-2],X[nt-1]),Ct.setTooltip(X[nt-2],X[nt]);break;case 64:case 72:this.$=X[nt-2],Ct.setLink(X[nt-1],X[nt]);break;case 65:case 73:this.$=X[nt-3],Ct.setLink(X[nt-2],X[nt-1],X[nt]);break;case 66:case 74:this.$=X[nt-3],Ct.setLink(X[nt-2],X[nt-1]),Ct.setTooltip(X[nt-2],X[nt]);break;case 67:case 75:this.$=X[nt-4],Ct.setLink(X[nt-3],X[nt-2],X[nt]),Ct.setTooltip(X[nt-3],X[nt-1]);break;case 70:this.$=X[nt-3],Ct.setClickEvent(X[nt-2],X[nt-1],X[nt]);break;case 71:this.$=X[nt-4],Ct.setClickEvent(X[nt-3],X[nt-2],X[nt-1]),Ct.setTooltip(X[nt-3],X[nt]);break;case 76:Ct.setCssClass(X[nt-1],X[nt])}},table:[{3:1,4:2,5:T,6:4,7:5,8:v,9:C,10:N,11:D,12:6,13:11,19:Y,23:L},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:T,6:4,7:5,8:v,9:C,10:N,11:D,12:6,13:11,19:Y,23:L},{1:[2,9]},d(j,[2,5]),d(j,[2,6]),d(j,[2,7]),d(j,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:V},d([17,22],[2,13]),{6:30,7:29,8:v,9:C,10:N,11:D,13:11,19:Y,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:tt,42:dt,43:rt,48:Ot,50:ot,51:_t,62:Dt,63:Xt,65:jt,69:Nt,83:Yt,84:Bt,85:Tt,86:Q},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},d(lt,[2,25],{32:[1,54]}),d(lt,[2,27]),d(lt,[2,28]),d(lt,[2,29]),d(lt,[2,30]),d(lt,[2,31]),d(lt,[2,32]),d(lt,[2,33]),{39:[1,55]},{41:[1,56]},d(lt,[2,36]),d(lt,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:U,57:kt,58:W,59:At,60:Ft,61:Ut}),{27:68,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},d(lt,[2,46]),d(lt,[2,47]),{28:69,83:Yt,84:Bt,85:Tt},{27:70,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},{27:71,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},{27:72,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},{53:[1,73]},d(pe,[2,20],{28:43,29:44,27:74,30:[1,75],83:Yt,84:Bt,85:Tt,86:Q}),d(pe,[2,21],{30:[1,76]}),d(je,[2,90]),d(je,[2,91]),d(je,[2,92]),d([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),d(_e,[2,10]),{15:77,22:V},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:v,9:C,10:N,11:D,13:11,19:Y,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:tt,42:dt,43:rt,48:Ot,50:ot,51:_t,62:Dt,63:Xt,65:jt,69:Nt,83:Yt,84:Bt,85:Tt,86:Q},d(lt,[2,26]),d(lt,[2,34]),d(lt,[2,35]),{27:79,28:43,29:44,53:[1,80],83:Yt,84:Bt,85:Tt,86:Q},{52:81,54:60,55:61,56:U,57:kt,58:W,59:At,60:Ft,61:Ut},d(lt,[2,45]),{55:82,60:Ft,61:Ut},d(ue,[2,55],{54:83,56:U,57:kt,58:W,59:At}),d(de,[2,56]),d(de,[2,57]),d(de,[2,58]),d(de,[2,59]),d(Me,[2,60]),d(Me,[2,61]),d(lt,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:Yt,84:Bt,85:Tt},d(pe,[2,22]),d(pe,[2,23]),d(pe,[2,24]),{16:[1,92]},{25:[2,19]},d(Se,[2,48]),{27:93,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},{27:94,28:43,29:44,53:[1,95],83:Yt,84:Bt,85:Tt,86:Q},d(ue,[2,54],{54:96,56:U,57:kt,58:W,59:At}),d(ue,[2,53]),{28:97,83:Yt,84:Bt,85:Tt},{46:98,50:ge},{27:100,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},d(lt,[2,62],{53:[1,101]}),d(lt,[2,64],{53:[1,103],64:[1,102]}),d(lt,[2,68],{53:[1,104],67:[1,105]}),d(lt,[2,72],{53:[1,107],64:[1,106]}),d(lt,[2,76]),d(_e,[2,11]),d(Se,[2,50]),d(Se,[2,49]),{27:108,28:43,29:44,83:Yt,84:Bt,85:Tt,86:Q},d(ue,[2,52]),d(lt,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:ge},d(lt,[2,41]),d(lt,[2,63]),d(lt,[2,65]),d(lt,[2,66],{64:[1,112]}),d(lt,[2,69]),d(lt,[2,70],{53:[1,113]}),d(lt,[2,73]),d(lt,[2,74],{64:[1,114]}),d(Se,[2,51]),{46:115,50:ge},d(lt,[2,39]),{47:[2,43]},d(lt,[2,67]),d(lt,[2,71]),d(lt,[2,75]),{47:[1,116]},d(lt,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function(It,se){if(!se.recoverable){var ne=new Error(It);throw ne.hash=se,ne}this.trace(It)},parse:function(It){var se=this,ne=[0],Ct=[],Ee=[null],X=[],Ce=this.table,nt="",ke=0,ee=0,me=0,Re=2,Le=1,an=X.slice.call(arguments,1),Ae=Object.create(this.lexer),Ve={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(Ve.yy[Ke]=this.yy[Ke]);Ae.setInput(It,Ve.yy),Ve.yy.lexer=Ae,Ve.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var en=Ae.yylloc;X.push(en);var Ne=Ae.options&&Ae.options.ranges;function ln(){var on;return typeof(on=Ct.pop()||Ae.lex()||Le)!="number"&&(on instanceof Array&&(on=(Ct=on).pop()),on=se.symbols_[on]||on),on}typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var dn,Ue,Pe,Ie,Xe,jn,Lt,An,Pt,hn={};;){if(Pe=ne[ne.length-1],this.defaultActions[Pe]?Ie=this.defaultActions[Pe]:(dn==null&&(dn=ln()),Ie=Ce[Pe]&&Ce[Pe][dn]),Ie===void 0||!Ie.length||!Ie[0]){var Mn="";for(jn in Pt=[],Ce[Pe])this.terminals_[jn]&&jn>Re&&Pt.push("'"+this.terminals_[jn]+"'");Mn=Ae.showPosition?"Parse error on line "+(ke+1)+`: `+Ae.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[dn]||dn)+"'":"Parse error on line "+(ke+1)+": Unexpected "+(dn==Le?"end of input":"'"+(this.terminals_[dn]||dn)+"'"),this.parseError(Mn,{text:Ae.match,token:this.terminals_[dn]||dn,line:Ae.yylineno,loc:en,expected:Pt})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+dn);switch(Ie[0]){case 1:ne.push(dn),Ee.push(Ae.yytext),X.push(Ae.yylloc),ne.push(Ie[1]),dn=null,Ue?(dn=Ue,Ue=null):(ee=Ae.yyleng,nt=Ae.yytext,ke=Ae.yylineno,en=Ae.yylloc,me>0);break;case 2:if(Lt=this.productions_[Ie[1]][1],hn.$=Ee[Ee.length-Lt],hn._$={first_line:X[X.length-(Lt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Lt||1)].first_column,last_column:X[X.length-1].last_column},Ne&&(hn._$.range=[X[X.length-(Lt||1)].range[0],X[X.length-1].range[1]]),(Xe=this.performAction.apply(hn,[nt,ee,ke,Ve.yy,Ie[1],Ee,X].concat(an)))!==void 0)return Xe;Lt&&(ne=ne.slice(0,-1*Lt*2),Ee=Ee.slice(0,-1*Lt),X=X.slice(0,-1*Lt)),ne.push(this.productions_[Ie[1]][0]),Ee.push(hn.$),X.push(hn._$),An=Ce[ne[ne.length-2]][ne[ne.length-1]],ne.push(An);break;case 3:return!0}}return!0}},ye={EOF:1,parseError:function(It,se){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,se)},setInput:function(It,se){return this.yy=se||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.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),It},unput:function(It){var se=It.length,ne=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var Ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),se=new Array(It.length+1).join("-");return It+this.upcomingInput()+` `+se+"^"},test_match:function(It,se){var ne,Ct,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(Ct=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],ne=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var X in Ee)this[X]=Ee[X];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,se,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),X=0;Xse[0].length)){if(se=ne,Ct=X,this.options.backtrack_lexer){if((It=this.test_match(ne,Ee[X]))!==!1)return It;if(this._backtrack){se=!1;continue}return!1}if(!this.options.flex)break}return se?(It=this.test_match(se,Ee[Ct]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},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(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(It,se,ne,Ct){switch(ne){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\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:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,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],inclusive:!0}}};function qe(){this.yy={}}return bn.lexer=ye,qe.prototype=bn,bn.Parser=qe,new qe}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(8218).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},5890:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(Q,lt,U,kt){for(U=U||{},kt=Q.length;kt--;U[Q[kt]]=lt);return U},T=[1,2],v=[1,5],C=[6,9,11,23,25,27,29,30,49],N=[1,17],D=[1,18],Y=[1,19],L=[1,20],j=[1,21],V=[1,24],K=[1,29],tt=[1,30],dt=[1,31],rt=[1,32],Ot=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],ot=[1,45],_t=[30,46,47],Dt=[4,6,9,11,23,25,27,29,30,49],Xt=[42,43,44,45],jt=[22,37],Nt=[1,64],Yt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(Q,lt,U,kt,W,At,Ft){var Ut=At.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:At[Ut-1].push(At[Ut]),this.$=At[Ut-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=At[Ut];break;case 12:kt.addEntity(At[Ut-4]),kt.addEntity(At[Ut-2]),kt.addRelationship(At[Ut-4],At[Ut],At[Ut-2],At[Ut-3]);break;case 13:kt.addEntity(At[Ut-3]),kt.addAttributes(At[Ut-3],At[Ut-1]);break;case 14:kt.addEntity(At[Ut-2]);break;case 15:kt.addEntity(At[Ut]);break;case 16:case 17:this.$=At[Ut].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=At[Ut].trim(),kt.setAccDescription(this.$);break;case 21:this.$=At[Ut-2]+At[Ut-1]+At[Ut];break;case 22:this.$=[At[Ut]];break;case 23:At[Ut].push(At[Ut-1]),this.$=At[Ut];break;case 24:this.$={attributeType:At[Ut-1],attributeName:At[Ut]};break;case 25:this.$={attributeType:At[Ut-2],attributeName:At[Ut-1],attributeKeyType:At[Ut]};break;case 26:this.$={attributeType:At[Ut-2],attributeName:At[Ut-1],attributeComment:At[Ut]};break;case 27:this.$={attributeType:At[Ut-3],attributeName:At[Ut-2],attributeKeyType:At[Ut-1],attributeComment:At[Ut]};break;case 31:case 39:this.$=At[Ut].replace(/"/g,"");break;case 32:this.$={cardA:At[Ut],relType:At[Ut-1],cardB:At[Ut-2]};break;case 33:this.$=kt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=kt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=kt.Cardinality.ONE_OR_MORE;break;case 36:this.$=kt.Cardinality.ONLY_ONE;break;case 37:this.$=kt.Identification.NON_IDENTIFYING;break;case 38:this.$=kt.Identification.IDENTIFYING;break;case 41:kt.parseDirective("%%{","open_directive");break;case 42:kt.parseDirective(At[Ut],"type_directive");break;case 43:At[Ut]=At[Ut].trim().replace(/'/g,'"'),kt.parseDirective(At[Ut],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:T,7:3,12:4,49:v},{1:[3]},d(C,[2,3],{5:6}),{3:7,4:T,7:3,12:4,49:v},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:N,25:D,27:Y,29:L,30:j,49:v},{1:[2,2]},{14:22,15:[1,23],52:V},d([15,52],[2,42]),d(C,[2,8],{1:[2,1]}),d(C,[2,4]),{7:15,10:25,12:4,17:16,23:N,25:D,27:Y,29:L,30:j,49:v},d(C,[2,6]),d(C,[2,7]),d(C,[2,11]),d(C,[2,15],{18:26,40:28,20:[1,27],42:K,43:tt,44:dt,45:rt}),{24:[1,33]},{26:[1,34]},{28:[1,35]},d(C,[2,19]),d(Ot,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},d(C,[2,5]),{17:40,30:j},{21:41,22:[1,42],32:43,33:44,37:ot},{41:46,46:[1,47],47:[1,48]},d(_t,[2,33]),d(_t,[2,34]),d(_t,[2,35]),d(_t,[2,36]),d(C,[2,16]),d(C,[2,17]),d(C,[2,18]),{17:49,30:j},d(Dt,[2,9]),{14:50,52:V},{52:[2,43]},{15:[1,51]},{22:[1,52]},d(C,[2,14]),{21:53,22:[2,22],32:43,33:44,37:ot},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:K,43:tt,44:dt,45:rt},d(Xt,[2,37]),d(Xt,[2,38]),d(Ot,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},d(C,[2,13]),{22:[2,23]},d(jt,[2,24],{35:61,36:62,38:[1,63],39:Nt}),d([22,37,38,39],[2,29]),{30:[2,32]},d(Dt,[2,10]),d(C,[2,12]),d(C,[2,39]),d(C,[2,40]),d(jt,[2,25],{36:65,39:Nt}),d(jt,[2,26]),d([22,37,39],[2,30]),d(jt,[2,31]),d(jt,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(Q,lt){if(!lt.recoverable){var U=new Error(Q);throw U.hash=lt,U}this.trace(Q)},parse:function(Q){var lt=this,U=[0],kt=[],W=[null],At=[],Ft=this.table,Ut="",pe=0,je=0,_e=0,ue=2,de=1,Me=At.slice.call(arguments,1),Se=Object.create(this.lexer),ge={yy:{}};for(var bn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bn)&&(ge.yy[bn]=this.yy[bn]);Se.setInput(Q,ge.yy),ge.yy.lexer=Se,ge.yy.parser=this,Se.yylloc===void 0&&(Se.yylloc={});var ye=Se.yylloc;At.push(ye);var qe=Se.options&&Se.options.ranges;function It(){var Le;return typeof(Le=kt.pop()||Se.lex()||de)!="number"&&(Le instanceof Array&&(Le=(kt=Le).pop()),Le=lt.symbols_[Le]||Le),Le}typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var se,ne,Ct,Ee,X,Ce,nt,ke,ee,me={};;){if(Ct=U[U.length-1],this.defaultActions[Ct]?Ee=this.defaultActions[Ct]:(se==null&&(se=It()),Ee=Ft[Ct]&&Ft[Ct][se]),Ee===void 0||!Ee.length||!Ee[0]){var Re="";for(Ce in ee=[],Ft[Ct])this.terminals_[Ce]&&Ce>ue&&ee.push("'"+this.terminals_[Ce]+"'");Re=Se.showPosition?"Parse error on line "+(pe+1)+`: `+Se.showPosition()+` Expecting `+ee.join(", ")+", got '"+(this.terminals_[se]||se)+"'":"Parse error on line "+(pe+1)+": Unexpected "+(se==de?"end of input":"'"+(this.terminals_[se]||se)+"'"),this.parseError(Re,{text:Se.match,token:this.terminals_[se]||se,line:Se.yylineno,loc:ye,expected:ee})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+se);switch(Ee[0]){case 1:U.push(se),W.push(Se.yytext),At.push(Se.yylloc),U.push(Ee[1]),se=null,ne?(se=ne,ne=null):(je=Se.yyleng,Ut=Se.yytext,pe=Se.yylineno,ye=Se.yylloc,_e>0);break;case 2:if(nt=this.productions_[Ee[1]][1],me.$=W[W.length-nt],me._$={first_line:At[At.length-(nt||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(nt||1)].first_column,last_column:At[At.length-1].last_column},qe&&(me._$.range=[At[At.length-(nt||1)].range[0],At[At.length-1].range[1]]),(X=this.performAction.apply(me,[Ut,je,pe,ge.yy,Ee[1],W,At].concat(Me)))!==void 0)return X;nt&&(U=U.slice(0,-1*nt*2),W=W.slice(0,-1*nt),At=At.slice(0,-1*nt)),U.push(this.productions_[Ee[1]][0]),W.push(me.$),At.push(me._$),ke=Ft[U[U.length-2]][U[U.length-1]],U.push(ke);break;case 3:return!0}}return!0}},Bt={EOF:1,parseError:function(Q,lt){if(!this.yy.parser)throw new Error(Q);this.yy.parser.parseError(Q,lt)},setInput:function(Q,lt){return this.yy=lt||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Q=this._input[0];return this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q,Q.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),Q},unput:function(Q){var lt=Q.length,U=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-lt),this.offset-=lt;var kt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),U.length-1&&(this.yylineno-=U.length-1);var 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:U?(U.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-U.length].length-U[0].length:this.yylloc.first_column-lt},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-lt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),lt=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+` `+lt+"^"},test_match:function(Q,lt){var U,kt,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))),(kt=Q[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],U=this.performAction.call(this,this.yy,this,lt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var At in W)this[At]=W[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var Q,lt,U,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),At=0;Atlt[0].length)){if(lt=U,kt=At,this.options.backtrack_lexer){if((Q=this.test_match(U,W[At]))!==!1)return Q;if(this._backtrack){lt=!1;continue}return!1}if(!this.options.flex)break}return lt?(Q=this.test_match(lt,W[kt]))!==!1&&Q:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Q){this.conditionStack.push(Q)},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(Q){return(Q=this.conditionStack.length-1-Math.abs(Q||0))>=0?this.conditionStack[Q]:"INITIAL"},pushState:function(Q){this.begin(Q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Q,lt,U,kt){switch(U){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:return 37;case 23:return 39;case 25:return this.popState(),22;case 26:case 39:return lt.yytext[0];case 27:case 31:return 42;case 28:case 32:return 43;case 29:case 33:return 44;case 30:return 45;case 34:case 36:case 37:return 46;case 35:return 47;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\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:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function Tt(){this.yy={}}return Yt.lexer=Bt,Tt.prototype=Yt,Yt.Parser=Tt,new Tt}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(8009).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},3602:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(gn,Jn,De,We){for(De=De||{},We=gn.length;We--;De[gn[We]]=Jn);return De},T=[1,9],v=[1,7],C=[1,6],N=[1,8],D=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Y=[2,10],L=[1,20],j=[1,21],V=[1,22],K=[1,23],tt=[1,30],dt=[1,32],rt=[1,33],Ot=[1,34],ot=[1,62],_t=[1,48],Dt=[1,52],Xt=[1,36],jt=[1,37],Nt=[1,38],Yt=[1,39],Bt=[1,40],Tt=[1,56],Q=[1,63],lt=[1,51],U=[1,53],kt=[1,55],W=[1,59],At=[1,60],Ft=[1,41],Ut=[1,42],pe=[1,43],je=[1,44],_e=[1,61],ue=[1,50],de=[1,54],Me=[1,57],Se=[1,58],ge=[1,49],bn=[1,66],ye=[1,71],qe=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],It=[1,75],se=[1,74],ne=[1,76],Ct=[20,21,23,81,82],Ee=[1,99],X=[1,104],Ce=[1,107],nt=[1,108],ke=[1,101],ee=[1,106],me=[1,109],Re=[1,102],Le=[1,114],an=[1,113],Ae=[1,103],Ve=[1,105],Ke=[1,110],en=[1,111],Ne=[1,112],ln=[1,115],dn=[20,21,22,23,81,82],Ue=[20,21,22,23,53,81,82],Pe=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Ie=[20,21,23],Xe=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],jn=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Lt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],An=[1,149],Pt=[1,157],hn=[1,158],Mn=[1,159],on=[1,160],qn=[1,144],Qn=[1,145],Pr=[1,141],kn=[1,152],Yn=[1,153],Ln=[1,154],Nn=[1,155],Fn=[1,156],Pn=[1,161],Tn=[1,162],Wn=[1,147],xn=[1,150],Cn=[1,146],$n=[1,143],oa=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],fr=[1,165],Ti=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],pn=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],mi=[12,21,22,24],br=[22,106],yr=[1,250],ai=[1,245],ei=[1,246],hi=[1,254],Zr=[1,251],fi=[1,248],Qr=[1,247],dr=[1,249],Jr=[1,252],oi=[1,253],si=[1,255],vi=[1,273],to=[20,21,23,106],Tr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Ma={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,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],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(gn,Jn,De,We,_r,qt,ba){var Kt=qt.length-1;switch(_r){case 5:We.parseDirective("%%{","open_directive");break;case 6:We.parseDirective(qt[Kt],"type_directive");break;case 7:qt[Kt]=qt[Kt].trim().replace(/'/g,'"'),We.parseDirective(qt[Kt],"arg_directive");break;case 8:We.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:qt[Kt]!==[]&&qt[Kt-1].push(qt[Kt]),this.$=qt[Kt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=qt[Kt];break;case 19:We.setDirection("TB"),this.$="TB";break;case 20:We.setDirection(qt[Kt-1]),this.$=qt[Kt-1];break;case 35:this.$=qt[Kt-1].nodes;break;case 41:this.$=We.addSubGraph(qt[Kt-6],qt[Kt-1],qt[Kt-4]);break;case 42:this.$=We.addSubGraph(qt[Kt-3],qt[Kt-1],qt[Kt-3]);break;case 43:this.$=We.addSubGraph(void 0,qt[Kt-1],void 0);break;case 45:this.$=qt[Kt].trim(),We.setAccTitle(this.$);break;case 46:case 47:this.$=qt[Kt].trim(),We.setAccDescription(this.$);break;case 51:We.addLink(qt[Kt-2].stmt,qt[Kt],qt[Kt-1]),this.$={stmt:qt[Kt],nodes:qt[Kt].concat(qt[Kt-2].nodes)};break;case 52:We.addLink(qt[Kt-3].stmt,qt[Kt-1],qt[Kt-2]),this.$={stmt:qt[Kt-1],nodes:qt[Kt-1].concat(qt[Kt-3].nodes)};break;case 53:this.$={stmt:qt[Kt-1],nodes:qt[Kt-1]};break;case 54:this.$={stmt:qt[Kt],nodes:qt[Kt]};break;case 55:case 123:case 125:this.$=[qt[Kt]];break;case 56:this.$=qt[Kt-4].concat(qt[Kt]);break;case 57:this.$=[qt[Kt-2]],We.setClass(qt[Kt-2],qt[Kt]);break;case 58:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"square");break;case 59:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"doublecircle");break;case 60:this.$=qt[Kt-5],We.addVertex(qt[Kt-5],qt[Kt-2],"circle");break;case 61:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"ellipse");break;case 62:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"stadium");break;case 63:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"subroutine");break;case 64:this.$=qt[Kt-7],We.addVertex(qt[Kt-7],qt[Kt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[qt[Kt-5],qt[Kt-3]]]));break;case 65:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"cylinder");break;case 66:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"round");break;case 67:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"diamond");break;case 68:this.$=qt[Kt-5],We.addVertex(qt[Kt-5],qt[Kt-2],"hexagon");break;case 69:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"odd");break;case 70:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"trapezoid");break;case 71:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"inv_trapezoid");break;case 72:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"lean_right");break;case 73:this.$=qt[Kt-3],We.addVertex(qt[Kt-3],qt[Kt-1],"lean_left");break;case 74:this.$=qt[Kt],We.addVertex(qt[Kt]);break;case 75:qt[Kt-1].text=qt[Kt],this.$=qt[Kt-1];break;case 76:case 77:qt[Kt-2].text=qt[Kt-1],this.$=qt[Kt-2];break;case 79:var Kr=We.destructLink(qt[Kt],qt[Kt-2]);this.$={type:Kr.type,stroke:Kr.stroke,length:Kr.length,text:qt[Kt-1]};break;case 80:Kr=We.destructLink(qt[Kt]),this.$={type:Kr.type,stroke:Kr.stroke,length:Kr.length};break;case 81:this.$=qt[Kt-1];break;case 83:case 97:case 153:case 151:this.$=qt[Kt-1]+""+qt[Kt];break;case 98:case 99:this.$=qt[Kt-4],We.addClass(qt[Kt-2],qt[Kt]);break;case 100:this.$=qt[Kt-4],We.setClass(qt[Kt-2],qt[Kt]);break;case 101:case 109:this.$=qt[Kt-1],We.setClickEvent(qt[Kt-1],qt[Kt]);break;case 102:case 110:this.$=qt[Kt-3],We.setClickEvent(qt[Kt-3],qt[Kt-2]),We.setTooltip(qt[Kt-3],qt[Kt]);break;case 103:this.$=qt[Kt-2],We.setClickEvent(qt[Kt-2],qt[Kt-1],qt[Kt]);break;case 104:this.$=qt[Kt-4],We.setClickEvent(qt[Kt-4],qt[Kt-3],qt[Kt-2]),We.setTooltip(qt[Kt-4],qt[Kt]);break;case 105:case 111:this.$=qt[Kt-1],We.setLink(qt[Kt-1],qt[Kt]);break;case 106:case 112:this.$=qt[Kt-3],We.setLink(qt[Kt-3],qt[Kt-2]),We.setTooltip(qt[Kt-3],qt[Kt]);break;case 107:case 113:this.$=qt[Kt-3],We.setLink(qt[Kt-3],qt[Kt-2],qt[Kt]);break;case 108:case 114:this.$=qt[Kt-5],We.setLink(qt[Kt-5],qt[Kt-4],qt[Kt]),We.setTooltip(qt[Kt-5],qt[Kt-2]);break;case 115:this.$=qt[Kt-4],We.addVertex(qt[Kt-2],void 0,void 0,qt[Kt]);break;case 116:case 118:this.$=qt[Kt-4],We.updateLink(qt[Kt-2],qt[Kt]);break;case 117:this.$=qt[Kt-4],We.updateLink([qt[Kt-2]],qt[Kt]);break;case 119:this.$=qt[Kt-8],We.updateLinkInterpolate([qt[Kt-6]],qt[Kt-2]),We.updateLink([qt[Kt-6]],qt[Kt]);break;case 120:this.$=qt[Kt-8],We.updateLinkInterpolate(qt[Kt-6],qt[Kt-2]),We.updateLink(qt[Kt-6],qt[Kt]);break;case 121:this.$=qt[Kt-6],We.updateLinkInterpolate([qt[Kt-4]],qt[Kt]);break;case 122:this.$=qt[Kt-6],We.updateLinkInterpolate(qt[Kt-4],qt[Kt]);break;case 124:case 126:qt[Kt-2].push(qt[Kt]),this.$=qt[Kt-2];break;case 128:this.$=qt[Kt-1]+qt[Kt];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:T,16:4,21:v,22:C,24:N},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:T,16:4,21:v,22:C,24:N},d(D,Y,{17:11}),{7:12,13:[1,13]},{16:14,21:v,22:C,24:N},{16:15,21:v,22:C,24:N},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:L,21:j,22:V,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,43:31,44:dt,46:rt,48:Ot,50:35,51:45,52:ot,54:46,66:_t,67:Dt,86:Xt,87:jt,88:Nt,89:Yt,90:Bt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,118:Ft,119:Ut,120:pe,121:je,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},{8:64,10:[1,65],15:bn},d([10,15],[2,6]),d(D,[2,17]),d(D,[2,18]),d(D,[2,19]),{20:[1,68],21:[1,69],22:ye,27:67,30:70},d(qe,[2,11]),d(qe,[2,12]),d(qe,[2,13]),d(qe,[2,14]),d(qe,[2,15]),d(qe,[2,16]),{9:72,20:It,21:se,23:ne,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:It,21:se,23:ne},{9:81,20:It,21:se,23:ne},{9:82,20:It,21:se,23:ne},{9:83,20:It,21:se,23:ne},{9:84,20:It,21:se,23:ne},{9:86,20:It,21:se,22:[1,85],23:ne},d(qe,[2,44]),{45:[1,87]},{47:[1,88]},d(qe,[2,47]),d(Ct,[2,54],{30:89,22:ye}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Ee,52:X,66:Ce,67:nt,84:[1,97],91:ke,97:96,98:[1,94],100:[1,95],105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(qe,[2,158]),d(qe,[2,159]),d(qe,[2,160]),d(qe,[2,161]),d(dn,[2,55],{53:[1,116]}),d(Ue,[2,74],{116:129,40:[1,117],52:ot,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:_t,67:Dt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,122:_e,123:ue,124:de,125:Me,126:Se,127:ge}),d(Pe,[2,150]),d(Pe,[2,175]),d(Pe,[2,176]),d(Pe,[2,177]),d(Pe,[2,178]),d(Pe,[2,179]),d(Pe,[2,180]),d(Pe,[2,181]),d(Pe,[2,182]),d(Pe,[2,183]),d(Pe,[2,184]),d(Pe,[2,185]),d(Pe,[2,186]),d(Pe,[2,187]),d(Pe,[2,188]),d(Pe,[2,189]),d(Pe,[2,190]),{9:130,20:It,21:se,23:ne},{11:131,14:[1,132]},d(Ie,[2,8]),d(D,[2,20]),d(D,[2,26]),d(D,[2,27]),{21:[1,133]},d(Xe,[2,34],{30:134,22:ye}),d(qe,[2,35]),{50:135,51:45,52:ot,54:46,66:_t,67:Dt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},d(jn,[2,48]),d(jn,[2,49]),d(jn,[2,50]),d(Lt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:An,24:Pt,26:hn,38:Mn,39:139,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),d(qe,[2,36]),d(qe,[2,37]),d(qe,[2,38]),d(qe,[2,39]),d(qe,[2,40]),{22:An,24:Pt,26:hn,38:Mn,39:163,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(oa,Y,{17:164}),d(qe,[2,45]),d(qe,[2,46]),d(Ct,[2,53],{52:fr}),{26:Ee,52:X,66:Ce,67:nt,91:ke,97:166,102:[1,167],105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{95:[1,168],103:169,105:[1,170]},{26:Ee,52:X,66:Ce,67:nt,91:ke,95:[1,171],97:172,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{26:Ee,52:X,66:Ce,67:nt,91:ke,97:173,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ie,[2,101],{22:[1,174],99:[1,175]}),d(Ie,[2,105],{22:[1,176]}),d(Ie,[2,109],{115:100,117:178,22:[1,177],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln}),d(Ie,[2,111],{22:[1,179]}),d(Ti,[2,152]),d(Ti,[2,154]),d(Ti,[2,155]),d(Ti,[2,156]),d(Ti,[2,157]),d(pn,[2,162]),d(pn,[2,163]),d(pn,[2,164]),d(pn,[2,165]),d(pn,[2,166]),d(pn,[2,167]),d(pn,[2,168]),d(pn,[2,169]),d(pn,[2,170]),d(pn,[2,171]),d(pn,[2,172]),d(pn,[2,173]),d(pn,[2,174]),{52:ot,54:180,66:_t,67:Dt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},{22:An,24:Pt,26:hn,38:Mn,39:181,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:182,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:184,42:on,52:X,57:[1,183],66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:185,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:186,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:187,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{66:[1,188]},{22:An,24:Pt,26:hn,38:Mn,39:189,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:190,42:on,52:X,66:Ce,67:nt,71:[1,191],73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:192,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:193,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:194,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Pe,[2,151]),d(mi,[2,3]),{8:195,15:bn},{15:[2,7]},d(D,[2,28]),d(Xe,[2,33]),d(Ct,[2,51],{30:196,22:ye}),d(Lt,[2,75],{22:[1,197]}),{22:[1,198]},{22:An,24:Pt,26:hn,38:Mn,39:199,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,82:[1,200],83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(pn,[2,82]),d(pn,[2,84]),d(pn,[2,140]),d(pn,[2,141]),d(pn,[2,142]),d(pn,[2,143]),d(pn,[2,144]),d(pn,[2,145]),d(pn,[2,146]),d(pn,[2,147]),d(pn,[2,148]),d(pn,[2,149]),d(pn,[2,85]),d(pn,[2,86]),d(pn,[2,87]),d(pn,[2,88]),d(pn,[2,89]),d(pn,[2,90]),d(pn,[2,91]),d(pn,[2,92]),d(pn,[2,93]),d(pn,[2,94]),d(pn,[2,95]),{9:203,20:It,21:se,22:An,23:ne,24:Pt,26:hn,38:Mn,40:[1,202],42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{18:18,19:19,20:L,21:j,22:V,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,204],43:31,44:dt,46:rt,48:Ot,50:35,51:45,52:ot,54:46,66:_t,67:Dt,86:Xt,87:jt,88:Nt,89:Yt,90:Bt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,118:Ft,119:Ut,120:pe,121:je,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},{22:ye,30:205},{22:[1,206],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:178,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},d(br,[2,123]),{22:[1,211]},{22:[1,212],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:178,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:[1,213],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:178,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{84:[1,214]},d(Ie,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},d(Ti,[2,153]),{84:[1,219],101:[1,220]},d(dn,[2,57],{116:129,52:ot,66:_t,67:Dt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,122:_e,123:ue,124:de,125:Me,126:Se,127:ge}),{22:An,24:Pt,26:hn,38:Mn,41:[1,221],42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,56:[1,222],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:223,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,58:[1,224],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,60:[1,225],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,62:[1,226],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,64:[1,227],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{67:[1,228]},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,70:[1,229],73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,72:[1,230],73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,39:231,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,41:[1,232],42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,73:qn,75:[1,233],77:[1,234],81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,73:qn,75:[1,236],77:[1,235],81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{9:237,20:It,21:se,23:ne},d(Ct,[2,52],{52:fr}),d(Lt,[2,77]),d(Lt,[2,76]),{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,68:[1,238],73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Lt,[2,79]),d(pn,[2,83]),{22:An,24:Pt,26:hn,38:Mn,39:239,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(oa,Y,{17:240}),d(qe,[2,43]),{51:241,52:ot,54:46,66:_t,67:Dt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},{22:yr,66:ai,67:ei,86:hi,96:242,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{22:yr,66:ai,67:ei,86:hi,96:256,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{22:yr,66:ai,67:ei,86:hi,96:257,102:Zr,104:[1,258],105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{22:yr,66:ai,67:ei,86:hi,96:259,102:Zr,104:[1,260],105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{105:[1,261]},{22:yr,66:ai,67:ei,86:hi,96:262,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{22:yr,66:ai,67:ei,86:hi,96:263,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{26:Ee,52:X,66:Ce,67:nt,91:ke,97:264,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ie,[2,102]),{84:[1,265]},d(Ie,[2,106],{22:[1,266]}),d(Ie,[2,107]),d(Ie,[2,110]),d(Ie,[2,112],{22:[1,267]}),d(Ie,[2,113]),d(Ue,[2,58]),d(Ue,[2,59]),{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,58:[1,268],66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ue,[2,66]),d(Ue,[2,61]),d(Ue,[2,62]),d(Ue,[2,63]),{66:[1,269]},d(Ue,[2,65]),d(Ue,[2,67]),{22:An,24:Pt,26:hn,38:Mn,42:on,52:X,66:Ce,67:nt,72:[1,270],73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ue,[2,69]),d(Ue,[2,70]),d(Ue,[2,72]),d(Ue,[2,71]),d(Ue,[2,73]),d(mi,[2,4]),d([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:An,24:Pt,26:hn,38:Mn,41:[1,271],42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{18:18,19:19,20:L,21:j,22:V,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,272],43:31,44:dt,46:rt,48:Ot,50:35,51:45,52:ot,54:46,66:_t,67:Dt,86:Xt,87:jt,88:Nt,89:Yt,90:Bt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,118:Ft,119:Ut,120:pe,121:je,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},d(dn,[2,56]),d(Ie,[2,115],{106:vi}),d(to,[2,125],{108:274,22:yr,66:ai,67:ei,86:hi,102:Zr,105:fi,109:Qr,110:dr,111:Jr,112:oi,113:si}),d(Tr,[2,127]),d(Tr,[2,129]),d(Tr,[2,130]),d(Tr,[2,131]),d(Tr,[2,132]),d(Tr,[2,133]),d(Tr,[2,134]),d(Tr,[2,135]),d(Tr,[2,136]),d(Tr,[2,137]),d(Tr,[2,138]),d(Tr,[2,139]),d(Ie,[2,116],{106:vi}),d(Ie,[2,117],{106:vi}),{22:[1,275]},d(Ie,[2,118],{106:vi}),{22:[1,276]},d(br,[2,124]),d(Ie,[2,98],{106:vi}),d(Ie,[2,99],{106:vi}),d(Ie,[2,100],{115:100,117:178,26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln}),d(Ie,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:It,21:se,23:ne},d(qe,[2,42]),{22:yr,66:ai,67:ei,86:hi,102:Zr,105:fi,107:283,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},d(Tr,[2,128]),{26:Ee,52:X,66:Ce,67:nt,91:ke,97:284,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{26:Ee,52:X,66:Ce,67:nt,91:ke,97:285,105:ee,106:me,109:Re,111:Le,112:an,115:100,117:98,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ie,[2,108]),d(Ie,[2,114]),d(Ue,[2,60]),{22:An,24:Pt,26:hn,38:Mn,39:286,42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:140,84:Pr,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},d(Ue,[2,68]),d(oa,Y,{17:287}),d(to,[2,126],{108:274,22:yr,66:ai,67:ei,86:hi,102:Zr,105:fi,109:Qr,110:dr,111:Jr,112:oi,113:si}),d(Ie,[2,121],{115:100,117:178,22:[1,288],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln}),d(Ie,[2,122],{115:100,117:178,22:[1,289],26:Ee,52:X,66:Ce,67:nt,91:ke,105:ee,106:me,109:Re,111:Le,112:an,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln}),{22:An,24:Pt,26:hn,38:Mn,41:[1,290],42:on,52:X,66:Ce,67:nt,73:qn,81:Qn,83:201,85:151,86:kn,87:Yn,88:Ln,89:Nn,90:Fn,91:Pn,92:Tn,94:142,95:Wn,105:ee,106:me,109:xn,111:Le,112:an,113:Cn,114:$n,115:148,122:Ae,123:Ve,124:Ke,125:en,126:Ne,127:ln},{18:18,19:19,20:L,21:j,22:V,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,291],43:31,44:dt,46:rt,48:Ot,50:35,51:45,52:ot,54:46,66:_t,67:Dt,86:Xt,87:jt,88:Nt,89:Yt,90:Bt,91:Tt,95:Q,105:lt,106:U,109:kt,111:W,112:At,116:47,118:Ft,119:Ut,120:pe,121:je,122:_e,123:ue,124:de,125:Me,126:Se,127:ge},{22:yr,66:ai,67:ei,86:hi,96:292,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},{22:yr,66:ai,67:ei,86:hi,96:293,102:Zr,105:fi,107:243,108:244,109:Qr,110:dr,111:Jr,112:oi,113:si},d(Ue,[2,64]),d(qe,[2,41]),d(Ie,[2,119],{106:vi}),d(Ie,[2,120],{106:vi})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(gn,Jn){if(!Jn.recoverable){var De=new Error(gn);throw De.hash=Jn,De}this.trace(gn)},parse:function(gn){var Jn=this,De=[0],We=[],_r=[null],qt=[],ba=this.table,Kt="",Kr=0,Mo=0,Ls=0,mc=2,_a=1,Hn=qt.slice.call(arguments,1),Yr=Object.create(this.lexer),Ei={yy:{}};for(var zr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zr)&&(Ei.yy[zr]=this.yy[zr]);Yr.setInput(gn,Ei.yy),Ei.yy.lexer=Yr,Ei.yy.parser=this,Yr.yylloc===void 0&&(Yr.yylloc={});var Di=Yr.yylloc;qt.push(Di);var Gi=Yr.options&&Yr.options.ranges;function Oi(){var la;return typeof(la=We.pop()||Yr.lex()||_a)!="number"&&(la instanceof Array&&(la=(We=la).pop()),la=Jn.symbols_[la]||la),la}typeof Ei.yy.parseError=="function"?this.parseError=Ei.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Nr,ci,ni,jr,ca,Xi,Ci,xa,Gr,li={};;){if(ni=De[De.length-1],this.defaultActions[ni]?jr=this.defaultActions[ni]:(Nr==null&&(Nr=Oi()),jr=ba[ni]&&ba[ni][Nr]),jr===void 0||!jr.length||!jr[0]){var wa="";for(Xi in Gr=[],ba[ni])this.terminals_[Xi]&&Xi>mc&&Gr.push("'"+this.terminals_[Xi]+"'");wa=Yr.showPosition?"Parse error on line "+(Kr+1)+`: `+Yr.showPosition()+` Expecting `+Gr.join(", ")+", got '"+(this.terminals_[Nr]||Nr)+"'":"Parse error on line "+(Kr+1)+": Unexpected "+(Nr==_a?"end of input":"'"+(this.terminals_[Nr]||Nr)+"'"),this.parseError(wa,{text:Yr.match,token:this.terminals_[Nr]||Nr,line:Yr.yylineno,loc:Di,expected:Gr})}if(jr[0]instanceof Array&&jr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ni+", token: "+Nr);switch(jr[0]){case 1:De.push(Nr),_r.push(Yr.yytext),qt.push(Yr.yylloc),De.push(jr[1]),Nr=null,ci?(Nr=ci,ci=null):(Mo=Yr.yyleng,Kt=Yr.yytext,Kr=Yr.yylineno,Di=Yr.yylloc,Ls>0);break;case 2:if(Ci=this.productions_[jr[1]][1],li.$=_r[_r.length-Ci],li._$={first_line:qt[qt.length-(Ci||1)].first_line,last_line:qt[qt.length-1].last_line,first_column:qt[qt.length-(Ci||1)].first_column,last_column:qt[qt.length-1].last_column},Gi&&(li._$.range=[qt[qt.length-(Ci||1)].range[0],qt[qt.length-1].range[1]]),(ca=this.performAction.apply(li,[Kt,Mo,Kr,Ei.yy,jr[1],_r,qt].concat(Hn)))!==void 0)return ca;Ci&&(De=De.slice(0,-1*Ci*2),_r=_r.slice(0,-1*Ci),qt=qt.slice(0,-1*Ci)),De.push(this.productions_[jr[1]][0]),_r.push(li.$),qt.push(li._$),xa=ba[De[De.length-2]][De[De.length-1]],De.push(xa);break;case 3:return!0}}return!0}},sa={EOF:1,parseError:function(gn,Jn){if(!this.yy.parser)throw new Error(gn);this.yy.parser.parseError(gn,Jn)},setInput:function(gn,Jn){return this.yy=Jn||this.yy||{},this._input=gn,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 gn=this._input[0];return this.yytext+=gn,this.yyleng++,this.offset++,this.match+=gn,this.matched+=gn,gn.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),gn},unput:function(gn){var Jn=gn.length,De=gn.split(/(?:\r\n?|\n)/g);this._input=gn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Jn),this.offset-=Jn;var We=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),De.length-1&&(this.yylineno-=De.length-1);var _r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:De?(De.length===We.length?this.yylloc.first_column:0)+We[We.length-De.length].length-De[0].length:this.yylloc.first_column-Jn},this.options.ranges&&(this.yylloc.range=[_r[0],_r[0]+this.yyleng-Jn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(gn){this.unput(this.match.slice(gn))},pastInput:function(){var gn=this.matched.substr(0,this.matched.length-this.match.length);return(gn.length>20?"...":"")+gn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var gn=this.match;return gn.length<20&&(gn+=this._input.substr(0,20-gn.length)),(gn.substr(0,20)+(gn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var gn=this.pastInput(),Jn=new Array(gn.length+1).join("-");return gn+this.upcomingInput()+` `+Jn+"^"},test_match:function(gn,Jn){var De,We,_r;if(this.options.backtrack_lexer&&(_r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_r.yylloc.range=this.yylloc.range.slice(0))),(We=gn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=We.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:We?We[We.length-1].length-We[We.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+gn[0].length},this.yytext+=gn[0],this.match+=gn[0],this.matches=gn,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(gn[0].length),this.matched+=gn[0],De=this.performAction.call(this,this.yy,this,Jn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),De)return De;if(this._backtrack){for(var qt in _r)this[qt]=_r[qt];return!1}return!1},next:function(){if(this.done)return this.EOF;var gn,Jn,De,We;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _r=this._currentRules(),qt=0;qt<_r.length;qt++)if((De=this._input.match(this.rules[_r[qt]]))&&(!Jn||De[0].length>Jn[0].length)){if(Jn=De,We=qt,this.options.backtrack_lexer){if((gn=this.test_match(De,_r[qt]))!==!1)return gn;if(this._backtrack){Jn=!1;continue}return!1}if(!this.options.flex)break}return Jn?(gn=this.test_match(Jn,_r[We]))!==!1&&gn:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(gn){this.conditionStack.push(gn)},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(gn){return(gn=this.conditionStack.length-1-Math.abs(gn||0))>=0?this.conditionStack[gn]:"INITIAL"},pushState:function(gn){this.begin(gn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(gn,Jn,De,We){switch(De){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:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return gn.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?: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:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function Yi(){this.yy={}}return Ma.lexer=sa,Yi.prototype=Ma,Ma.Parser=Yi,new Yi}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(5354).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},9959:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(Tt,Q,lt,U){for(lt=lt||{},U=Tt.length;U--;lt[Tt[U]]=Q);return lt},T=[1,3],v=[1,5],C=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],N=[1,15],D=[1,16],Y=[1,17],L=[1,18],j=[1,19],V=[1,20],K=[1,21],tt=[1,22],dt=[1,23],rt=[1,24],Ot=[1,25],ot=[1,26],_t=[1,28],Dt=[1,30],Xt=[1,33],jt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],Nt={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,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$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:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"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,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(Tt,Q,lt,U,kt,W,At){var Ft=W.length-1;switch(kt){case 2:return W[Ft-1];case 3:case 7:case 8:this.$=[];break;case 4:W[Ft-1].push(W[Ft]),this.$=W[Ft-1];break;case 5:case 6:this.$=W[Ft];break;case 9:U.setDateFormat(W[Ft].substr(11)),this.$=W[Ft].substr(11);break;case 10:U.enableInclusiveEndDates(),this.$=W[Ft].substr(18);break;case 11:U.TopAxis(),this.$=W[Ft].substr(8);break;case 12:U.setAxisFormat(W[Ft].substr(11)),this.$=W[Ft].substr(11);break;case 13:U.setExcludes(W[Ft].substr(9)),this.$=W[Ft].substr(9);break;case 14:U.setIncludes(W[Ft].substr(9)),this.$=W[Ft].substr(9);break;case 15:U.setTodayMarker(W[Ft].substr(12)),this.$=W[Ft].substr(12);break;case 16:U.setDiagramTitle(W[Ft].substr(6)),this.$=W[Ft].substr(6);break;case 17:this.$=W[Ft].trim(),U.setAccTitle(this.$);break;case 18:case 19:this.$=W[Ft].trim(),U.setAccDescription(this.$);break;case 20:U.addSection(W[Ft].substr(8)),this.$=W[Ft].substr(8);break;case 22:U.addTask(W[Ft-1],W[Ft]),this.$="task";break;case 26:this.$=W[Ft-1],U.setClickEvent(W[Ft-1],W[Ft],null);break;case 27:this.$=W[Ft-2],U.setClickEvent(W[Ft-2],W[Ft-1],W[Ft]);break;case 28:this.$=W[Ft-2],U.setClickEvent(W[Ft-2],W[Ft-1],null),U.setLink(W[Ft-2],W[Ft]);break;case 29:this.$=W[Ft-3],U.setClickEvent(W[Ft-3],W[Ft-2],W[Ft-1]),U.setLink(W[Ft-3],W[Ft]);break;case 30:this.$=W[Ft-2],U.setClickEvent(W[Ft-2],W[Ft],null),U.setLink(W[Ft-2],W[Ft-1]);break;case 31:this.$=W[Ft-3],U.setClickEvent(W[Ft-3],W[Ft-1],W[Ft]),U.setLink(W[Ft-3],W[Ft-2]);break;case 32:this.$=W[Ft-1],U.setLink(W[Ft-1],W[Ft]);break;case 33:case 39:this.$=W[Ft-1]+" "+W[Ft];break;case 34:case 35:case 37:this.$=W[Ft-2]+" "+W[Ft-1]+" "+W[Ft];break;case 36:case 38:this.$=W[Ft-3]+" "+W[Ft-2]+" "+W[Ft-1]+" "+W[Ft];break;case 40:U.parseDirective("%%{","open_directive");break;case 41:U.parseDirective(W[Ft],"type_directive");break;case 42:W[Ft]=W[Ft].trim().replace(/'/g,'"'),U.parseDirective(W[Ft],"arg_directive");break;case 43:U.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:T,29:4,39:v},{1:[3]},{3:6,4:2,5:T,29:4,39:v},d(C,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:N,13:D,14:Y,15:L,16:j,17:V,18:K,19:tt,20:dt,22:rt,24:Ot,25:ot,26:27,27:_t,29:4,34:Dt,39:v},{31:31,32:[1,32],42:Xt},d([32,42],[2,41]),d(C,[2,8],{1:[2,2]}),d(C,[2,4]),{4:29,10:34,12:N,13:D,14:Y,15:L,16:j,17:V,18:K,19:tt,20:dt,22:rt,24:Ot,25:ot,26:27,27:_t,29:4,34:Dt,39:v},d(C,[2,6]),d(C,[2,7]),d(C,[2,9]),d(C,[2,10]),d(C,[2,11]),d(C,[2,12]),d(C,[2,13]),d(C,[2,14]),d(C,[2,15]),d(C,[2,16]),{21:[1,35]},{23:[1,36]},d(C,[2,19]),d(C,[2,20]),d(C,[2,21]),{28:[1,37]},d(C,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},d(C,[2,5]),d(C,[2,17]),d(C,[2,18]),d(C,[2,22]),d(C,[2,26],{36:[1,43],37:[1,44]}),d(C,[2,32],{35:[1,45]}),d(jt,[2,24]),{31:46,42:Xt},{42:[2,42]},d(C,[2,27],{37:[1,47]}),d(C,[2,28]),d(C,[2,30],{36:[1,48]}),{11:[1,49]},d(C,[2,29]),d(C,[2,31]),d(jt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(Tt,Q){if(!Q.recoverable){var lt=new Error(Tt);throw lt.hash=Q,lt}this.trace(Tt)},parse:function(Tt){var Q=this,lt=[0],U=[],kt=[null],W=[],At=this.table,Ft="",Ut=0,pe=0,je=0,_e=2,ue=1,de=W.slice.call(arguments,1),Me=Object.create(this.lexer),Se={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(Se.yy[ge]=this.yy[ge]);Me.setInput(Tt,Se.yy),Se.yy.lexer=Me,Se.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var bn=Me.yylloc;W.push(bn);var ye=Me.options&&Me.options.ranges;function qe(){var Re;return typeof(Re=U.pop()||Me.lex()||ue)!="number"&&(Re instanceof Array&&(Re=(U=Re).pop()),Re=Q.symbols_[Re]||Re),Re}typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var It,se,ne,Ct,Ee,X,Ce,nt,ke,ee={};;){if(ne=lt[lt.length-1],this.defaultActions[ne]?Ct=this.defaultActions[ne]:(It==null&&(It=qe()),Ct=At[ne]&&At[ne][It]),Ct===void 0||!Ct.length||!Ct[0]){var me="";for(X in ke=[],At[ne])this.terminals_[X]&&X>_e&&ke.push("'"+this.terminals_[X]+"'");me=Me.showPosition?"Parse error on line "+(Ut+1)+`: `+Me.showPosition()+` Expecting `+ke.join(", ")+", got '"+(this.terminals_[It]||It)+"'":"Parse error on line "+(Ut+1)+": Unexpected "+(It==ue?"end of input":"'"+(this.terminals_[It]||It)+"'"),this.parseError(me,{text:Me.match,token:this.terminals_[It]||It,line:Me.yylineno,loc:bn,expected:ke})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+It);switch(Ct[0]){case 1:lt.push(It),kt.push(Me.yytext),W.push(Me.yylloc),lt.push(Ct[1]),It=null,se?(It=se,se=null):(pe=Me.yyleng,Ft=Me.yytext,Ut=Me.yylineno,bn=Me.yylloc,je>0);break;case 2:if(Ce=this.productions_[Ct[1]][1],ee.$=kt[kt.length-Ce],ee._$={first_line:W[W.length-(Ce||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Ce||1)].first_column,last_column:W[W.length-1].last_column},ye&&(ee._$.range=[W[W.length-(Ce||1)].range[0],W[W.length-1].range[1]]),(Ee=this.performAction.apply(ee,[Ft,pe,Ut,Se.yy,Ct[1],kt,W].concat(de)))!==void 0)return Ee;Ce&&(lt=lt.slice(0,-1*Ce*2),kt=kt.slice(0,-1*Ce),W=W.slice(0,-1*Ce)),lt.push(this.productions_[Ct[1]][0]),kt.push(ee.$),W.push(ee._$),nt=At[lt[lt.length-2]][lt[lt.length-1]],lt.push(nt);break;case 3:return!0}}return!0}},Yt={EOF:1,parseError:function(Tt,Q){if(!this.yy.parser)throw new Error(Tt);this.yy.parser.parseError(Tt,Q)},setInput:function(Tt,Q){return this.yy=Q||this.yy||{},this._input=Tt,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 Tt=this._input[0];return this.yytext+=Tt,this.yyleng++,this.offset++,this.match+=Tt,this.matched+=Tt,Tt.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),Tt},unput:function(Tt){var Q=Tt.length,lt=Tt.split(/(?:\r\n?|\n)/g);this._input=Tt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lt.length-1&&(this.yylineno-=lt.length-1);var kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lt?(lt.length===U.length?this.yylloc.first_column:0)+U[U.length-lt.length].length-lt[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-Q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Tt){this.unput(this.match.slice(Tt))},pastInput:function(){var Tt=this.matched.substr(0,this.matched.length-this.match.length);return(Tt.length>20?"...":"")+Tt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Tt=this.match;return Tt.length<20&&(Tt+=this._input.substr(0,20-Tt.length)),(Tt.substr(0,20)+(Tt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Tt=this.pastInput(),Q=new Array(Tt.length+1).join("-");return Tt+this.upcomingInput()+` `+Q+"^"},test_match:function(Tt,Q){var lt,U,kt;if(this.options.backtrack_lexer&&(kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(kt.yylloc.range=this.yylloc.range.slice(0))),(U=Tt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Tt[0].length},this.yytext+=Tt[0],this.match+=Tt[0],this.matches=Tt,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(Tt[0].length),this.matched+=Tt[0],lt=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var W in kt)this[W]=kt[W];return!1}return!1},next:function(){if(this.done)return this.EOF;var Tt,Q,lt,U;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),W=0;WQ[0].length)){if(Q=lt,U=W,this.options.backtrack_lexer){if((Tt=this.test_match(lt,kt[W]))!==!1)return Tt;if(this._backtrack){Q=!1;continue}return!1}if(!this.options.flex)break}return Q?(Tt=this.test_match(Q,kt[U]))!==!1&&Tt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Tt){this.conditionStack.push(Tt)},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(Tt){return(Tt=this.conditionStack.length-1-Math.abs(Tt||0))>=0?this.conditionStack[Tt]:"INITIAL"},pushState:function(Tt){this.begin(Tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Tt,Q,lt,U){switch(lt){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function Bt(){this.yy={}}return Nt.lexer=Yt,Bt.prototype=Nt,Nt.Parser=Bt,new Bt}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(6878).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},2553:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(Yt,Bt,Tt,Q){for(Tt=Tt||{},Q=Yt.length;Q--;Tt[Yt[Q]]=Bt);return Tt},T=[1,4],v=[1,7],C=[1,5],N=[1,9],D=[1,6],Y=[2,6],L=[1,16],j=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],V=[8,14,20,22,24,25,27,29,32,35,37],K=[8,13,14,20,22,24,25,27,29,32,35,37],tt=[1,26],dt=[6,8,14,49,53],rt=[8,14,53],Ot=[1,64],ot=[1,65],_t=[1,66],Dt=[8,14,33,36,41,53],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TAG:36,COMMIT:37,commit_arg:38,COMMIT_TYPE:39,commitType:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TAG",37:"COMMIT",39:"COMMIT_TYPE",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[38,0],[38,1],[40,1],[40,1],[40,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Yt,Bt,Tt,Q,lt,U,kt){var W=U.length-1;switch(lt){case 3:return U[W];case 4:return U[W-1];case 5:return Q.setDirection(U[W-3]),U[W-1];case 7:Q.setOptions(U[W-1]),this.$=U[W];break;case 8:U[W-1]+=U[W],this.$=U[W-1];break;case 10:this.$=[];break;case 11:U[W-1].push(U[W]),this.$=U[W-1];break;case 12:this.$=U[W-1];break;case 17:this.$=U[W].trim(),Q.setAccTitle(this.$);break;case 18:case 19:this.$=U[W].trim(),Q.setAccDescription(this.$);break;case 20:Q.addSection(U[W].substr(8)),this.$=U[W].substr(8);break;case 22:Q.checkout(U[W]);break;case 23:Q.branch(U[W]);break;case 24:Q.branch(U[W-2],U[W]);break;case 25:Q.cherryPick(U[W]);break;case 26:Q.merge(U[W]);break;case 27:Q.merge(U[W-2],U[W]);break;case 28:Q.commit(U[W]);break;case 29:Q.commit("","",Q.commitType.NORMAL,U[W]);break;case 30:Q.commit("","",U[W],"");break;case 31:Q.commit("","",U[W],U[W-2]);break;case 32:Q.commit("","",U[W-2],U[W]);break;case 33:Q.commit("",U[W],Q.commitType.NORMAL,"");break;case 34:Q.commit("",U[W-2],Q.commitType.NORMAL,U[W]);break;case 35:Q.commit("",U[W],Q.commitType.NORMAL,U[W-2]);break;case 36:Q.commit("",U[W-2],U[W],"");break;case 37:Q.commit("",U[W],U[W-2],"");break;case 38:Q.commit("",U[W-4],U[W-2],U[W]);break;case 39:Q.commit("",U[W-4],U[W],U[W-2]);break;case 40:Q.commit("",U[W-2],U[W-4],U[W]);break;case 41:Q.commit("",U[W],U[W-4],U[W-2]);break;case 42:Q.commit("",U[W],U[W-2],U[W-4]);break;case 43:Q.commit("",U[W-2],U[W],U[W-4]);break;case 44:Q.commit(U[W],"",Q.commitType.NORMAL,"");break;case 45:Q.commit(U[W],"",Q.commitType.NORMAL,U[W-2]);break;case 46:Q.commit(U[W-2],"",Q.commitType.NORMAL,U[W]);break;case 47:Q.commit(U[W-2],"",U[W],"");break;case 48:Q.commit(U[W],"",U[W-2],"");break;case 49:Q.commit(U[W],U[W-2],Q.commitType.NORMAL,"");break;case 50:Q.commit(U[W-2],U[W],Q.commitType.NORMAL,"");break;case 51:Q.commit(U[W-4],"",U[W-2],U[W]);break;case 52:Q.commit(U[W-4],"",U[W],U[W-2]);break;case 53:Q.commit(U[W-2],"",U[W-4],U[W]);break;case 54:Q.commit(U[W],"",U[W-4],U[W-2]);break;case 55:Q.commit(U[W],"",U[W-2],U[W-4]);break;case 56:Q.commit(U[W-2],"",U[W],U[W-4]);break;case 57:Q.commit(U[W-4],U[W],U[W-2],"");break;case 58:Q.commit(U[W-4],U[W-2],U[W],"");break;case 59:Q.commit(U[W-2],U[W],U[W-4],"");break;case 60:Q.commit(U[W],U[W-2],U[W-4],"");break;case 61:Q.commit(U[W],U[W-4],U[W-2],"");break;case 62:Q.commit(U[W-2],U[W-4],U[W],"");break;case 63:Q.commit(U[W-4],U[W],Q.commitType.NORMAL,U[W-2]);break;case 64:Q.commit(U[W-4],U[W-2],Q.commitType.NORMAL,U[W]);break;case 65:Q.commit(U[W-2],U[W],Q.commitType.NORMAL,U[W-4]);break;case 66:Q.commit(U[W],U[W-2],Q.commitType.NORMAL,U[W-4]);break;case 67:Q.commit(U[W],U[W-4],Q.commitType.NORMAL,U[W-2]);break;case 68:Q.commit(U[W-2],U[W-4],Q.commitType.NORMAL,U[W]);break;case 69:Q.commit(U[W-6],U[W-4],U[W-2],U[W]);break;case 70:Q.commit(U[W-6],U[W-4],U[W],U[W-2]);break;case 71:Q.commit(U[W-6],U[W-2],U[W-4],U[W]);break;case 72:Q.commit(U[W-6],U[W],U[W-4],U[W-2]);break;case 73:Q.commit(U[W-6],U[W-2],U[W],U[W-4]);break;case 74:Q.commit(U[W-6],U[W],U[W-2],U[W-4]);break;case 75:Q.commit(U[W-4],U[W-6],U[W-2],U[W]);break;case 76:Q.commit(U[W-4],U[W-6],U[W],U[W-2]);break;case 77:Q.commit(U[W-2],U[W-6],U[W-4],U[W]);break;case 78:Q.commit(U[W],U[W-6],U[W-4],U[W-2]);break;case 79:Q.commit(U[W-2],U[W-6],U[W],U[W-4]);break;case 80:Q.commit(U[W],U[W-6],U[W-2],U[W-4]);break;case 81:Q.commit(U[W],U[W-4],U[W-2],U[W-6]);break;case 82:Q.commit(U[W-2],U[W-4],U[W],U[W-6]);break;case 83:Q.commit(U[W],U[W-2],U[W-4],U[W-6]);break;case 84:Q.commit(U[W-2],U[W],U[W-4],U[W-6]);break;case 85:Q.commit(U[W-4],U[W-2],U[W],U[W-6]);break;case 86:Q.commit(U[W-4],U[W],U[W-2],U[W-6]);break;case 87:Q.commit(U[W-2],U[W-4],U[W-6],U[W]);break;case 88:Q.commit(U[W],U[W-4],U[W-6],U[W-2]);break;case 89:Q.commit(U[W-2],U[W],U[W-6],U[W-4]);break;case 90:Q.commit(U[W],U[W-2],U[W-6],U[W-4]);break;case 91:Q.commit(U[W-4],U[W-2],U[W-6],U[W]);break;case 92:Q.commit(U[W-4],U[W],U[W-6],U[W-2]);break;case 93:this.$="";break;case 94:this.$=U[W];break;case 95:this.$=Q.commitType.NORMAL;break;case 96:this.$=Q.commitType.REVERSE;break;case 97:this.$=Q.commitType.HIGHLIGHT;break;case 100:Q.parseDirective("%%{","open_directive");break;case 101:Q.parseDirective(U[W],"type_directive");break;case 102:U[W]=U[W].trim().replace(/'/g,'"'),Q.parseDirective(U[W],"arg_directive");break;case 103:Q.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:T,8:v,14:C,45:8,49:N,53:D},{1:[3]},{3:10,4:2,5:3,6:T,8:v,14:C,45:8,49:N,53:D},{3:11,4:2,5:3,6:T,8:v,14:C,45:8,49:N,53:D},{7:12,8:Y,9:[1,13],10:[1,14],11:15,14:L},d(j,[2,104]),d(j,[2,105]),d(j,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:Y,11:15,14:L},{9:[1,21]},d(V,[2,10],{12:22,13:[1,23]}),d(K,[2,9]),{9:[1,25],47:24,52:tt},d([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:Y,11:15,14:L},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],37:[1,41]},d(K,[2,8]),d(dt,[2,98]),{48:45,51:[1,46]},d(dt,[2,103]),{1:[2,4]},{8:[1,47]},d(V,[2,11]),{4:48,8:v,14:C,53:D},d(V,[2,13]),d(rt,[2,14]),d(rt,[2,15]),d(rt,[2,16]),{21:[1,49]},{23:[1,50]},d(rt,[2,19]),d(rt,[2,20]),d(rt,[2,21]),{28:[1,51]},d(rt,[2,93],{38:52,33:[1,55],34:[1,57],36:[1,53],39:[1,54],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:tt},{52:[2,102]},{1:[2,5]},d(V,[2,12]),d(rt,[2,17]),d(rt,[2,18]),d(rt,[2,22]),d(rt,[2,28]),{34:[1,62]},{40:63,42:Ot,43:ot,44:_t},{34:[1,67]},{34:[1,68]},d(rt,[2,94]),d(rt,[2,26],{36:[1,69]}),{34:[1,70]},d(rt,[2,23],{30:[1,71]}),d(dt,[2,99]),d(rt,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),d(rt,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),d(Dt,[2,95]),d(Dt,[2,96]),d(Dt,[2,97]),d(rt,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),d(rt,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},d(rt,[2,25]),{31:[1,85]},{40:86,42:Ot,43:ot,44:_t},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:Ot,43:ot,44:_t},{34:[1,94]},{34:[1,95]},{40:96,42:Ot,43:ot,44:_t},{34:[1,97]},d(rt,[2,27]),d(rt,[2,24]),d(rt,[2,31],{33:[1,98],41:[1,99]}),d(rt,[2,35],{39:[1,100],41:[1,101]}),d(rt,[2,45],{33:[1,103],39:[1,102]}),d(rt,[2,32],{33:[1,104],41:[1,105]}),d(rt,[2,37],{36:[1,106],41:[1,107]}),d(rt,[2,48],{33:[1,109],36:[1,108]}),d(rt,[2,34],{39:[1,110],41:[1,111]}),d(rt,[2,36],{36:[1,112],41:[1,113]}),d(rt,[2,49],{36:[1,115],39:[1,114]}),d(rt,[2,46],{33:[1,117],39:[1,116]}),d(rt,[2,47],{33:[1,119],36:[1,118]}),d(rt,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:Ot,43:ot,44:_t},{34:[1,125]},{40:126,42:Ot,43:ot,44:_t},{34:[1,127]},{34:[1,128]},{34:[1,129]},{34:[1,130]},{34:[1,131]},{34:[1,132]},{34:[1,133]},{40:134,42:Ot,43:ot,44:_t},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:Ot,43:ot,44:_t},{34:[1,139]},{40:140,42:Ot,43:ot,44:_t},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:Ot,43:ot,44:_t},{34:[1,145]},d(rt,[2,42],{41:[1,146]}),d(rt,[2,55],{33:[1,147]}),d(rt,[2,43],{41:[1,148]}),d(rt,[2,66],{39:[1,149]}),d(rt,[2,56],{33:[1,150]}),d(rt,[2,65],{39:[1,151]}),d(rt,[2,41],{41:[1,152]}),d(rt,[2,54],{33:[1,153]}),d(rt,[2,40],{41:[1,154]}),d(rt,[2,60],{36:[1,155]}),d(rt,[2,53],{33:[1,156]}),d(rt,[2,59],{36:[1,157]}),d(rt,[2,39],{41:[1,158]}),d(rt,[2,67],{39:[1,159]}),d(rt,[2,38],{41:[1,160]}),d(rt,[2,61],{36:[1,161]}),d(rt,[2,62],{36:[1,162]}),d(rt,[2,68],{39:[1,163]}),d(rt,[2,52],{33:[1,164]}),d(rt,[2,63],{39:[1,165]}),d(rt,[2,51],{33:[1,166]}),d(rt,[2,57],{36:[1,167]}),d(rt,[2,58],{36:[1,168]}),d(rt,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:Ot,43:ot,44:_t},{34:[1,174]},{40:175,42:Ot,43:ot,44:_t},{34:[1,176]},{34:[1,177]},{34:[1,178]},{34:[1,179]},{34:[1,180]},{34:[1,181]},{34:[1,182]},{40:183,42:Ot,43:ot,44:_t},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:Ot,43:ot,44:_t},{34:[1,188]},{40:189,42:Ot,43:ot,44:_t},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:Ot,43:ot,44:_t},d(rt,[2,83]),d(rt,[2,84]),d(rt,[2,81]),d(rt,[2,82]),d(rt,[2,86]),d(rt,[2,85]),d(rt,[2,90]),d(rt,[2,89]),d(rt,[2,88]),d(rt,[2,87]),d(rt,[2,92]),d(rt,[2,91]),d(rt,[2,80]),d(rt,[2,79]),d(rt,[2,78]),d(rt,[2,77]),d(rt,[2,75]),d(rt,[2,76]),d(rt,[2,74]),d(rt,[2,73]),d(rt,[2,72]),d(rt,[2,71]),d(rt,[2,69]),d(rt,[2,70])],defaultActions:{9:[2,100],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,102],47:[2,5]},parseError:function(Yt,Bt){if(!Bt.recoverable){var Tt=new Error(Yt);throw Tt.hash=Bt,Tt}this.trace(Yt)},parse:function(Yt){var Bt=this,Tt=[0],Q=[],lt=[null],U=[],kt=this.table,W="",At=0,Ft=0,Ut=0,pe=2,je=1,_e=U.slice.call(arguments,1),ue=Object.create(this.lexer),de={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(de.yy[Me]=this.yy[Me]);ue.setInput(Yt,de.yy),de.yy.lexer=ue,de.yy.parser=this,ue.yylloc===void 0&&(ue.yylloc={});var Se=ue.yylloc;U.push(Se);var ge=ue.options&&ue.options.ranges;function bn(){var ee;return typeof(ee=Q.pop()||ue.lex()||je)!="number"&&(ee instanceof Array&&(ee=(Q=ee).pop()),ee=Bt.symbols_[ee]||ee),ee}typeof de.yy.parseError=="function"?this.parseError=de.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ye,qe,It,se,ne,Ct,Ee,X,Ce,nt={};;){if(It=Tt[Tt.length-1],this.defaultActions[It]?se=this.defaultActions[It]:(ye==null&&(ye=bn()),se=kt[It]&&kt[It][ye]),se===void 0||!se.length||!se[0]){var ke="";for(Ct in Ce=[],kt[It])this.terminals_[Ct]&&Ct>pe&&Ce.push("'"+this.terminals_[Ct]+"'");ke=ue.showPosition?"Parse error on line "+(At+1)+`: `+ue.showPosition()+` Expecting `+Ce.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'":"Parse error on line "+(At+1)+": Unexpected "+(ye==je?"end of input":"'"+(this.terminals_[ye]||ye)+"'"),this.parseError(ke,{text:ue.match,token:this.terminals_[ye]||ye,line:ue.yylineno,loc:Se,expected:Ce})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+ye);switch(se[0]){case 1:Tt.push(ye),lt.push(ue.yytext),U.push(ue.yylloc),Tt.push(se[1]),ye=null,qe?(ye=qe,qe=null):(Ft=ue.yyleng,W=ue.yytext,At=ue.yylineno,Se=ue.yylloc,Ut>0);break;case 2:if(Ee=this.productions_[se[1]][1],nt.$=lt[lt.length-Ee],nt._$={first_line:U[U.length-(Ee||1)].first_line,last_line:U[U.length-1].last_line,first_column:U[U.length-(Ee||1)].first_column,last_column:U[U.length-1].last_column},ge&&(nt._$.range=[U[U.length-(Ee||1)].range[0],U[U.length-1].range[1]]),(ne=this.performAction.apply(nt,[W,Ft,At,de.yy,se[1],lt,U].concat(_e)))!==void 0)return ne;Ee&&(Tt=Tt.slice(0,-1*Ee*2),lt=lt.slice(0,-1*Ee),U=U.slice(0,-1*Ee)),Tt.push(this.productions_[se[1]][0]),lt.push(nt.$),U.push(nt._$),X=kt[Tt[Tt.length-2]][Tt[Tt.length-1]],Tt.push(X);break;case 3:return!0}}return!0}},jt={EOF:1,parseError:function(Yt,Bt){if(!this.yy.parser)throw new Error(Yt);this.yy.parser.parseError(Yt,Bt)},setInput:function(Yt,Bt){return this.yy=Bt||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 Bt=Yt.length,Tt=Yt.split(/(?:\r\n?|\n)/g);this._input=Yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bt),this.offset-=Bt;var Q=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),Tt.length-1&&(this.yylineno-=Tt.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:Tt?(Tt.length===Q.length?this.yylloc.first_column:0)+Q[Q.length-Tt.length].length-Tt[0].length:this.yylloc.first_column-Bt},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Bt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(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(),Bt=new Array(Yt.length+1).join("-");return Yt+this.upcomingInput()+` `+Bt+"^"},test_match:function(Yt,Bt){var Tt,Q,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))),(Q=Yt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Q?Q[Q.length-1].length-Q[Q.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],Tt=this.performAction.call(this,this.yy,this,Bt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Tt)return Tt;if(this._backtrack){for(var U in lt)this[U]=lt[U];return!1}return!1},next:function(){if(this.done)return this.EOF;var Yt,Bt,Tt,Q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),U=0;UBt[0].length)){if(Bt=Tt,Q=U,this.options.backtrack_lexer){if((Yt=this.test_match(Tt,lt[U]))!==!1)return Yt;if(this._backtrack){Bt=!1;continue}return!1}if(!this.options.flex)break}return Bt?(Yt=this.test_match(Bt,lt[Q]))!==!1&&Yt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(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:{"case-insensitive":!0},performAction:function(Yt,Bt,Tt,Q){switch(Tt){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 37;case 18:return 33;case 19:return 39;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 36;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function Nt(){this.yy={}}return Xt.lexer=jt,Nt.prototype=Xt,Xt.Parser=Nt,new Nt}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(8183).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},6765:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(D,Y,L,j){for(L=L||{},j=D.length;j--;L[D[j]]=Y);return L},T=[6,9,10],v={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(D,Y,L,j,V,K,tt){switch(K.length,V){case 1:return j;case 4:break;case 6:j.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},d(T,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},d(T,[2,3]),d(T,[2,4]),d(T,[2,5]),d(T,[2,6])],defaultActions:{4:[2,1]},parseError:function(D,Y){if(!Y.recoverable){var L=new Error(D);throw L.hash=Y,L}this.trace(D)},parse:function(D){var Y=this,L=[0],j=[],V=[null],K=[],tt=this.table,dt="",rt=0,Ot=0,ot=0,_t=2,Dt=1,Xt=K.slice.call(arguments,1),jt=Object.create(this.lexer),Nt={yy:{}};for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yt)&&(Nt.yy[Yt]=this.yy[Yt]);jt.setInput(D,Nt.yy),Nt.yy.lexer=jt,Nt.yy.parser=this,jt.yylloc===void 0&&(jt.yylloc={});var Bt=jt.yylloc;K.push(Bt);var Tt=jt.options&&jt.options.ranges;function Q(){var de;return typeof(de=j.pop()||jt.lex()||Dt)!="number"&&(de instanceof Array&&(de=(j=de).pop()),de=Y.symbols_[de]||de),de}typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var lt,U,kt,W,At,Ft,Ut,pe,je,_e={};;){if(kt=L[L.length-1],this.defaultActions[kt]?W=this.defaultActions[kt]:(lt==null&&(lt=Q()),W=tt[kt]&&tt[kt][lt]),W===void 0||!W.length||!W[0]){var ue="";for(Ft in je=[],tt[kt])this.terminals_[Ft]&&Ft>_t&&je.push("'"+this.terminals_[Ft]+"'");ue=jt.showPosition?"Parse error on line "+(rt+1)+`: `+jt.showPosition()+` Expecting `+je.join(", ")+", got '"+(this.terminals_[lt]||lt)+"'":"Parse error on line "+(rt+1)+": Unexpected "+(lt==Dt?"end of input":"'"+(this.terminals_[lt]||lt)+"'"),this.parseError(ue,{text:jt.match,token:this.terminals_[lt]||lt,line:jt.yylineno,loc:Bt,expected:je})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+lt);switch(W[0]){case 1:L.push(lt),V.push(jt.yytext),K.push(jt.yylloc),L.push(W[1]),lt=null,U?(lt=U,U=null):(Ot=jt.yyleng,dt=jt.yytext,rt=jt.yylineno,Bt=jt.yylloc,ot>0);break;case 2:if(Ut=this.productions_[W[1]][1],_e.$=V[V.length-Ut],_e._$={first_line:K[K.length-(Ut||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(Ut||1)].first_column,last_column:K[K.length-1].last_column},Tt&&(_e._$.range=[K[K.length-(Ut||1)].range[0],K[K.length-1].range[1]]),(At=this.performAction.apply(_e,[dt,Ot,rt,Nt.yy,W[1],V,K].concat(Xt)))!==void 0)return At;Ut&&(L=L.slice(0,-1*Ut*2),V=V.slice(0,-1*Ut),K=K.slice(0,-1*Ut)),L.push(this.productions_[W[1]][0]),V.push(_e.$),K.push(_e._$),pe=tt[L[L.length-2]][L[L.length-1]],L.push(pe);break;case 3:return!0}}return!0}},C={EOF:1,parseError:function(D,Y){if(!this.yy.parser)throw new Error(D);this.yy.parser.parseError(D,Y)},setInput:function(D,Y){return this.yy=Y||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var D=this._input[0];return this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D,D.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),D},unput:function(D){var Y=D.length,L=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Y),this.offset-=Y;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),L.length-1&&(this.yylineno-=L.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===j.length?this.yylloc.first_column:0)+j[j.length-L.length].length-L[0].length:this.yylloc.first_column-Y},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-Y]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(D){this.unput(this.match.slice(D))},pastInput:function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var D=this.pastInput(),Y=new Array(D.length+1).join("-");return D+this.upcomingInput()+` `+Y+"^"},test_match:function(D,Y){var L,j,V;if(this.options.backtrack_lexer&&(V={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(V.yylloc.range=this.yylloc.range.slice(0))),(j=D[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+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],L=this.performAction.call(this,this.yy,this,Y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var K in V)this[K]=V[K];return!1}return!1},next:function(){if(this.done)return this.EOF;var D,Y,L,j;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),K=0;KY[0].length)){if(Y=L,j=K,this.options.backtrack_lexer){if((D=this.test_match(L,V[K]))!==!1)return D;if(this._backtrack){Y=!1;continue}return!1}if(!this.options.flex)break}return Y?(D=this.test_match(Y,V[j]))!==!1&&D:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(D){this.conditionStack.push(D)},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(D){return(D=this.conditionStack.length-1-Math.abs(D||0))>=0?this.conditionStack[D]:"INITIAL"},pushState:function(D){this.begin(D)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(D,Y,L,j){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 N(){this.yy={}}return v.lexer=C,N.prototype=v,v.Parser=N,new N}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(1428).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},7062:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(Bt,Tt,Q,lt){for(Q=Q||{},lt=Bt.length;lt--;Q[Bt[lt]]=Tt);return Q},T=[1,4],v=[1,5],C=[1,6],N=[1,7],D=[1,9],Y=[1,11,13,15,17,19,20,26,27,28,29],L=[2,5],j=[1,6,11,13,15,17,19,20,26,27,28,29],V=[26,27,28],K=[2,8],tt=[1,18],dt=[1,19],rt=[1,20],Ot=[1,21],ot=[1,22],_t=[1,23],Dt=[1,28],Xt=[6,26,27,28,29],jt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(Bt,Tt,Q,lt,U,kt,W){var At=kt.length-1;switch(U){case 4:lt.setShowData(!0);break;case 7:this.$=kt[At-1];break;case 9:lt.addSection(kt[At-1],lt.cleanupValue(kt[At]));break;case 10:this.$=kt[At].trim(),lt.setDiagramTitle(this.$);break;case 11:this.$=kt[At].trim(),lt.setAccTitle(this.$);break;case 12:case 13:this.$=kt[At].trim(),lt.setAccDescription(this.$);break;case 14:lt.addSection(kt[At].substr(8)),this.$=kt[At].substr(8);break;case 21:lt.parseDirective("%%{","open_directive");break;case 22:lt.parseDirective(kt[At],"type_directive");break;case 23:kt[At]=kt[At].trim().replace(/'/g,'"'),lt.parseDirective(kt[At],"arg_directive");break;case 24:lt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:T,21:8,26:v,27:C,28:N,29:D},{1:[3]},{3:10,4:2,5:3,6:T,21:8,26:v,27:C,28:N,29:D},{3:11,4:2,5:3,6:T,21:8,26:v,27:C,28:N,29:D},d(Y,L,{7:12,8:[1,13]}),d(j,[2,18]),d(j,[2,19]),d(j,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},d(V,K,{21:8,9:16,10:17,5:24,1:[2,3],11:tt,13:dt,15:rt,17:Ot,19:ot,20:_t,29:D}),d(Y,L,{7:25}),{23:26,24:[1,27],32:Dt},d([24,32],[2,22]),d(Y,[2,6]),{4:29,26:v,27:C,28:N},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},d(V,[2,13]),d(V,[2,14]),d(V,[2,15]),d(V,K,{21:8,9:16,10:17,5:24,1:[2,4],11:tt,13:dt,15:rt,17:Ot,19:ot,20:_t,29:D}),d(Xt,[2,16]),{25:34,31:[1,35]},d(Xt,[2,24]),d(Y,[2,7]),d(V,[2,9]),d(V,[2,10]),d(V,[2,11]),d(V,[2,12]),{23:36,32:Dt},{32:[2,23]},d(Xt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(Bt,Tt){if(!Tt.recoverable){var Q=new Error(Bt);throw Q.hash=Tt,Q}this.trace(Bt)},parse:function(Bt){var Tt=this,Q=[0],lt=[],U=[null],kt=[],W=this.table,At="",Ft=0,Ut=0,pe=0,je=2,_e=1,ue=kt.slice.call(arguments,1),de=Object.create(this.lexer),Me={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(Me.yy[Se]=this.yy[Se]);de.setInput(Bt,Me.yy),Me.yy.lexer=de,Me.yy.parser=this,de.yylloc===void 0&&(de.yylloc={});var ge=de.yylloc;kt.push(ge);var bn=de.options&&de.options.ranges;function ye(){var me;return typeof(me=lt.pop()||de.lex()||_e)!="number"&&(me instanceof Array&&(me=(lt=me).pop()),me=Tt.symbols_[me]||me),me}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var qe,It,se,ne,Ct,Ee,X,Ce,nt,ke={};;){if(se=Q[Q.length-1],this.defaultActions[se]?ne=this.defaultActions[se]:(qe==null&&(qe=ye()),ne=W[se]&&W[se][qe]),ne===void 0||!ne.length||!ne[0]){var ee="";for(Ee in nt=[],W[se])this.terminals_[Ee]&&Ee>je&&nt.push("'"+this.terminals_[Ee]+"'");ee=de.showPosition?"Parse error on line "+(Ft+1)+`: `+de.showPosition()+` Expecting `+nt.join(", ")+", got '"+(this.terminals_[qe]||qe)+"'":"Parse error on line "+(Ft+1)+": Unexpected "+(qe==_e?"end of input":"'"+(this.terminals_[qe]||qe)+"'"),this.parseError(ee,{text:de.match,token:this.terminals_[qe]||qe,line:de.yylineno,loc:ge,expected:nt})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+qe);switch(ne[0]){case 1:Q.push(qe),U.push(de.yytext),kt.push(de.yylloc),Q.push(ne[1]),qe=null,It?(qe=It,It=null):(Ut=de.yyleng,At=de.yytext,Ft=de.yylineno,ge=de.yylloc,pe>0);break;case 2:if(X=this.productions_[ne[1]][1],ke.$=U[U.length-X],ke._$={first_line:kt[kt.length-(X||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(X||1)].first_column,last_column:kt[kt.length-1].last_column},bn&&(ke._$.range=[kt[kt.length-(X||1)].range[0],kt[kt.length-1].range[1]]),(Ct=this.performAction.apply(ke,[At,Ut,Ft,Me.yy,ne[1],U,kt].concat(ue)))!==void 0)return Ct;X&&(Q=Q.slice(0,-1*X*2),U=U.slice(0,-1*X),kt=kt.slice(0,-1*X)),Q.push(this.productions_[ne[1]][0]),U.push(ke.$),kt.push(ke._$),Ce=W[Q[Q.length-2]][Q[Q.length-1]],Q.push(Ce);break;case 3:return!0}}return!0}},Nt={EOF:1,parseError:function(Bt,Tt){if(!this.yy.parser)throw new Error(Bt);this.yy.parser.parseError(Bt,Tt)},setInput:function(Bt,Tt){return this.yy=Tt||this.yy||{},this._input=Bt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Bt=this._input[0];return this.yytext+=Bt,this.yyleng++,this.offset++,this.match+=Bt,this.matched+=Bt,Bt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Bt},unput:function(Bt){var Tt=Bt.length,Q=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Tt),this.offset-=Tt;var lt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Q.length-1&&(this.yylineno-=Q.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Q?(Q.length===lt.length?this.yylloc.first_column:0)+lt[lt.length-Q.length].length-Q[0].length:this.yylloc.first_column-Tt},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-Tt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Bt){this.unput(this.match.slice(Bt))},pastInput:function(){var Bt=this.matched.substr(0,this.matched.length-this.match.length);return(Bt.length>20?"...":"")+Bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bt=this.match;return Bt.length<20&&(Bt+=this._input.substr(0,20-Bt.length)),(Bt.substr(0,20)+(Bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bt=this.pastInput(),Tt=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+` `+Tt+"^"},test_match:function(Bt,Tt){var Q,lt,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),(lt=Bt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lt?lt[lt.length-1].length-lt[lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bt[0].length},this.yytext+=Bt[0],this.match+=Bt[0],this.matches=Bt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Bt[0].length),this.matched+=Bt[0],Q=this.performAction.call(this,this.yy,this,Tt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var kt in U)this[kt]=U[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Bt,Tt,Q,lt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),kt=0;ktTt[0].length)){if(Tt=Q,lt=kt,this.options.backtrack_lexer){if((Bt=this.test_match(Q,U[kt]))!==!1)return Bt;if(this._backtrack){Tt=!1;continue}return!1}if(!this.options.flex)break}return Tt?(Bt=this.test_match(Tt,U[lt]))!==!1&&Bt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Bt){this.conditionStack.push(Bt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Bt){return(Bt=this.conditionStack.length-1-Math.abs(Bt||0))>=0?this.conditionStack[Bt]:"INITIAL"},pushState:function(Bt){this.begin(Bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bt,Tt,Q,lt){switch(Q){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function Yt(){this.yy={}}return jt.lexer=Nt,Yt.prototype=jt,jt.Parser=Yt,new Yt}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(4551).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},3176:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(It,se,ne,Ct){for(ne=ne||{},Ct=It.length;Ct--;ne[It[Ct]]=se);return ne},T=[1,3],v=[1,5],C=[1,6],N=[1,7],D=[1,8],Y=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],L=[1,22],j=[2,13],V=[1,26],K=[1,27],tt=[1,28],dt=[1,29],rt=[1,30],Ot=[1,31],ot=[1,24],_t=[1,32],Dt=[1,33],Xt=[1,36],jt=[71,72],Nt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Yt=[1,56],Bt=[1,57],Tt=[1,58],Q=[1,59],lt=[1,60],U=[1,61],kt=[1,62],W=[62,63],At=[1,74],Ft=[1,70],Ut=[1,71],pe=[1,72],je=[1,73],_e=[1,75],ue=[1,79],de=[1,80],Me=[1,77],Se=[1,78],ge=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],bn={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(It,se,ne,Ct,Ee,X,Ce){var nt=X.length-1;switch(Ee){case 6:this.$=X[nt].trim(),Ct.setAccTitle(this.$);break;case 7:case 8:this.$=X[nt].trim(),Ct.setAccDescription(this.$);break;case 9:Ct.parseDirective("%%{","open_directive");break;case 10:Ct.parseDirective(X[nt],"type_directive");break;case 11:X[nt]=X[nt].trim().replace(/'/g,'"'),Ct.parseDirective(X[nt],"arg_directive");break;case 12:Ct.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Ct.addRequirement(X[nt-3],X[nt-4]);break;case 20:Ct.setNewReqId(X[nt-2]);break;case 21:Ct.setNewReqText(X[nt-2]);break;case 22:Ct.setNewReqRisk(X[nt-2]);break;case 23:Ct.setNewReqVerifyMethod(X[nt-2]);break;case 26:this.$=Ct.RequirementType.REQUIREMENT;break;case 27:this.$=Ct.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Ct.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Ct.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Ct.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Ct.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Ct.RiskLevel.LOW_RISK;break;case 33:this.$=Ct.RiskLevel.MED_RISK;break;case 34:this.$=Ct.RiskLevel.HIGH_RISK;break;case 35:this.$=Ct.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Ct.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Ct.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Ct.VerifyType.VERIFY_TEST;break;case 39:Ct.addElement(X[nt-3]);break;case 40:Ct.setNewElementType(X[nt-2]);break;case 41:Ct.setNewElementDocRef(X[nt-2]);break;case 44:Ct.addRelationship(X[nt-2],X[nt],X[nt-4]);break;case 45:Ct.addRelationship(X[nt-2],X[nt-4],X[nt]);break;case 46:this.$=Ct.Relationships.CONTAINS;break;case 47:this.$=Ct.Relationships.COPIES;break;case 48:this.$=Ct.Relationships.DERIVES;break;case 49:this.$=Ct.Relationships.SATISFIES;break;case 50:this.$=Ct.Relationships.VERIFIES;break;case 51:this.$=Ct.Relationships.REFINES;break;case 52:this.$=Ct.Relationships.TRACES}},table:[{3:1,4:2,6:T,9:4,14:v,16:C,18:N,19:D},{1:[3]},{3:10,4:2,5:[1,9],6:T,9:4,14:v,16:C,18:N,19:D},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},d(Y,[2,8]),{20:[2,9]},{3:16,4:2,6:T,9:4,14:v,16:C,18:N,19:D},{1:[2,2]},{4:21,5:L,7:17,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{11:34,12:[1,35],22:Xt},d([12,22],[2,10]),d(Y,[2,6]),d(Y,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:L,7:38,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{4:21,5:L,7:39,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{4:21,5:L,7:40,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{4:21,5:L,7:41,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{4:21,5:L,7:42,8:j,9:4,14:v,16:C,18:N,19:D,23:18,24:19,25:20,26:23,32:25,40:V,41:K,42:tt,43:dt,44:rt,45:Ot,53:ot,71:_t,72:Dt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},d(jt,[2,26]),d(jt,[2,27]),d(jt,[2,28]),d(jt,[2,29]),d(jt,[2,30]),d(jt,[2,31]),d(Nt,[2,55]),d(Nt,[2,56]),d(Y,[2,4]),{13:51,21:[1,52]},d(Y,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:Yt,65:Bt,66:Tt,67:Q,68:lt,69:U,70:kt},{61:63,64:Yt,65:Bt,66:Tt,67:Q,68:lt,69:U,70:kt},{11:64,22:Xt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},d(W,[2,46]),d(W,[2,47]),d(W,[2,48]),d(W,[2,49]),d(W,[2,50]),d(W,[2,51]),d(W,[2,52]),{63:[1,68]},d(Y,[2,5]),{5:At,29:69,30:Ft,33:Ut,35:pe,37:je,39:_e},{5:ue,39:de,55:76,56:Me,58:Se},{32:81,71:_t,72:Dt},{32:82,71:_t,72:Dt},d(ge,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:At,29:87,30:Ft,33:Ut,35:pe,37:je,39:_e},d(ge,[2,25]),d(ge,[2,39]),{31:[1,88]},{31:[1,89]},{5:ue,39:de,55:90,56:Me,58:Se},d(ge,[2,43]),d(ge,[2,44]),d(ge,[2,45]),{32:91,71:_t,72:Dt},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},d(ge,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},d(ge,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:At,29:116,30:Ft,33:Ut,35:pe,37:je,39:_e},{5:At,29:117,30:Ft,33:Ut,35:pe,37:je,39:_e},{5:At,29:118,30:Ft,33:Ut,35:pe,37:je,39:_e},{5:At,29:119,30:Ft,33:Ut,35:pe,37:je,39:_e},{5:ue,39:de,55:120,56:Me,58:Se},{5:ue,39:de,55:121,56:Me,58:Se},d(ge,[2,20]),d(ge,[2,21]),d(ge,[2,22]),d(ge,[2,23]),d(ge,[2,40]),d(ge,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(It,se){if(!se.recoverable){var ne=new Error(It);throw ne.hash=se,ne}this.trace(It)},parse:function(It){var se=this,ne=[0],Ct=[],Ee=[null],X=[],Ce=this.table,nt="",ke=0,ee=0,me=0,Re=2,Le=1,an=X.slice.call(arguments,1),Ae=Object.create(this.lexer),Ve={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(Ve.yy[Ke]=this.yy[Ke]);Ae.setInput(It,Ve.yy),Ve.yy.lexer=Ae,Ve.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var en=Ae.yylloc;X.push(en);var Ne=Ae.options&&Ae.options.ranges;function ln(){var on;return typeof(on=Ct.pop()||Ae.lex()||Le)!="number"&&(on instanceof Array&&(on=(Ct=on).pop()),on=se.symbols_[on]||on),on}typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var dn,Ue,Pe,Ie,Xe,jn,Lt,An,Pt,hn={};;){if(Pe=ne[ne.length-1],this.defaultActions[Pe]?Ie=this.defaultActions[Pe]:(dn==null&&(dn=ln()),Ie=Ce[Pe]&&Ce[Pe][dn]),Ie===void 0||!Ie.length||!Ie[0]){var Mn="";for(jn in Pt=[],Ce[Pe])this.terminals_[jn]&&jn>Re&&Pt.push("'"+this.terminals_[jn]+"'");Mn=Ae.showPosition?"Parse error on line "+(ke+1)+`: `+Ae.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[dn]||dn)+"'":"Parse error on line "+(ke+1)+": Unexpected "+(dn==Le?"end of input":"'"+(this.terminals_[dn]||dn)+"'"),this.parseError(Mn,{text:Ae.match,token:this.terminals_[dn]||dn,line:Ae.yylineno,loc:en,expected:Pt})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+dn);switch(Ie[0]){case 1:ne.push(dn),Ee.push(Ae.yytext),X.push(Ae.yylloc),ne.push(Ie[1]),dn=null,Ue?(dn=Ue,Ue=null):(ee=Ae.yyleng,nt=Ae.yytext,ke=Ae.yylineno,en=Ae.yylloc,me>0);break;case 2:if(Lt=this.productions_[Ie[1]][1],hn.$=Ee[Ee.length-Lt],hn._$={first_line:X[X.length-(Lt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Lt||1)].first_column,last_column:X[X.length-1].last_column},Ne&&(hn._$.range=[X[X.length-(Lt||1)].range[0],X[X.length-1].range[1]]),(Xe=this.performAction.apply(hn,[nt,ee,ke,Ve.yy,Ie[1],Ee,X].concat(an)))!==void 0)return Xe;Lt&&(ne=ne.slice(0,-1*Lt*2),Ee=Ee.slice(0,-1*Lt),X=X.slice(0,-1*Lt)),ne.push(this.productions_[Ie[1]][0]),Ee.push(hn.$),X.push(hn._$),An=Ce[ne[ne.length-2]][ne[ne.length-1]],ne.push(An);break;case 3:return!0}}return!0}},ye={EOF:1,parseError:function(It,se){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,se)},setInput:function(It,se){return this.yy=se||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.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),It},unput:function(It){var se=It.length,ne=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var Ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),se=new Array(It.length+1).join("-");return It+this.upcomingInput()+` `+se+"^"},test_match:function(It,se){var ne,Ct,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(Ct=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],ne=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var X in Ee)this[X]=Ee[X];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,se,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),X=0;Xse[0].length)){if(se=ne,Ct=X,this.options.backtrack_lexer){if((It=this.test_match(ne,Ee[X]))!==!1)return It;if(this._backtrack){se=!1;continue}return!1}if(!this.options.flex)break}return se?(It=this.test_match(se,Ee[Ct]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},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(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,se,ne,Ct){switch(ne){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return se.yytext=se.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function qe(){this.yy={}}return bn.lexer=ye,qe.prototype=bn,bn.Parser=qe,new qe}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(8800).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},6876:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(It,se,ne,Ct){for(ne=ne||{},Ct=It.length;Ct--;ne[It[Ct]]=se);return ne},T=[1,2],v=[1,3],C=[1,5],N=[1,7],D=[2,5],Y=[1,15],L=[1,17],j=[1,18],V=[1,19],K=[1,21],tt=[1,22],dt=[1,23],rt=[1,29],Ot=[1,30],ot=[1,31],_t=[1,32],Dt=[1,33],Xt=[1,34],jt=[1,35],Nt=[1,36],Yt=[1,37],Bt=[1,38],Tt=[1,39],Q=[1,40],lt=[1,43],U=[1,44],kt=[1,45],W=[1,46],At=[1,47],Ft=[1,48],Ut=[1,51],pe=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],je=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],_e=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],ue=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],de=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Me=[67,68,69],Se=[1,121],ge=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],bn={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,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$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:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"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,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(It,se,ne,Ct,Ee,X,Ce){var nt=X.length-1;switch(Ee){case 4:return Ct.apply(X[nt]),X[nt];case 5:case 9:this.$=[];break;case 6:X[nt-1].push(X[nt]),this.$=X[nt-1];break;case 7:case 8:case 56:this.$=X[nt];break;case 12:X[nt-3].type="addParticipant",X[nt-3].description=Ct.parseMessage(X[nt-1]),this.$=X[nt-3];break;case 13:X[nt-1].type="addParticipant",this.$=X[nt-1];break;case 14:X[nt-3].type="addActor",X[nt-3].description=Ct.parseMessage(X[nt-1]),this.$=X[nt-3];break;case 15:X[nt-1].type="addActor",this.$=X[nt-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(X[nt-2]),sequenceIndexStep:Number(X[nt-1]),sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(X[nt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ct.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ct.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Ct.LINETYPE.ACTIVE_START,actor:X[nt-1]};break;case 22:this.$={type:"activeEnd",signalType:Ct.LINETYPE.ACTIVE_END,actor:X[nt-1]};break;case 28:Ct.setDiagramTitle(X[nt].substring(6)),this.$=X[nt].substring(6);break;case 29:Ct.setDiagramTitle(X[nt].substring(7)),this.$=X[nt].substring(7);break;case 30:this.$=X[nt].trim(),Ct.setAccTitle(this.$);break;case 31:case 32:this.$=X[nt].trim(),Ct.setAccDescription(this.$);break;case 33:X[nt-1].unshift({type:"loopStart",loopText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.LOOP_START}),X[nt-1].push({type:"loopEnd",loopText:X[nt-2],signalType:Ct.LINETYPE.LOOP_END}),this.$=X[nt-1];break;case 34:X[nt-1].unshift({type:"rectStart",color:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.RECT_START}),X[nt-1].push({type:"rectEnd",color:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.RECT_END}),this.$=X[nt-1];break;case 35:X[nt-1].unshift({type:"optStart",optText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.OPT_START}),X[nt-1].push({type:"optEnd",optText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.OPT_END}),this.$=X[nt-1];break;case 36:X[nt-1].unshift({type:"altStart",altText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.ALT_START}),X[nt-1].push({type:"altEnd",signalType:Ct.LINETYPE.ALT_END}),this.$=X[nt-1];break;case 37:X[nt-1].unshift({type:"parStart",parText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.PAR_START}),X[nt-1].push({type:"parEnd",signalType:Ct.LINETYPE.PAR_END}),this.$=X[nt-1];break;case 38:X[nt-1].unshift({type:"criticalStart",criticalText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.CRITICAL_START}),X[nt-1].push({type:"criticalEnd",signalType:Ct.LINETYPE.CRITICAL_END}),this.$=X[nt-1];break;case 39:X[nt-1].unshift({type:"breakStart",breakText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.BREAK_START}),X[nt-1].push({type:"breakEnd",optText:Ct.parseMessage(X[nt-2]),signalType:Ct.LINETYPE.BREAK_END}),this.$=X[nt-1];break;case 42:this.$=X[nt-3].concat([{type:"option",optionText:Ct.parseMessage(X[nt-1]),signalType:Ct.LINETYPE.CRITICAL_OPTION},X[nt]]);break;case 44:this.$=X[nt-3].concat([{type:"and",parText:Ct.parseMessage(X[nt-1]),signalType:Ct.LINETYPE.PAR_AND},X[nt]]);break;case 46:this.$=X[nt-3].concat([{type:"else",altText:Ct.parseMessage(X[nt-1]),signalType:Ct.LINETYPE.ALT_ELSE},X[nt]]);break;case 47:this.$=[X[nt-1],{type:"addNote",placement:X[nt-2],actor:X[nt-1].actor,text:X[nt]}];break;case 48:X[nt-2]=[].concat(X[nt-1],X[nt-1]).slice(0,2),X[nt-2][0]=X[nt-2][0].actor,X[nt-2][1]=X[nt-2][1].actor,this.$=[X[nt-1],{type:"addNote",placement:Ct.PLACEMENT.OVER,actor:X[nt-2].slice(0,2),text:X[nt]}];break;case 49:this.$=[X[nt-1],{type:"addLinks",actor:X[nt-1].actor,text:X[nt]}];break;case 50:this.$=[X[nt-1],{type:"addALink",actor:X[nt-1].actor,text:X[nt]}];break;case 51:this.$=[X[nt-1],{type:"addProperties",actor:X[nt-1].actor,text:X[nt]}];break;case 52:this.$=[X[nt-1],{type:"addDetails",actor:X[nt-1].actor,text:X[nt]}];break;case 55:this.$=[X[nt-2],X[nt]];break;case 57:this.$=Ct.PLACEMENT.LEFTOF;break;case 58:this.$=Ct.PLACEMENT.RIGHTOF;break;case 59:this.$=[X[nt-4],X[nt-1],{type:"addMessage",from:X[nt-4].actor,to:X[nt-1].actor,signalType:X[nt-3],msg:X[nt]},{type:"activeStart",signalType:Ct.LINETYPE.ACTIVE_START,actor:X[nt-1]}];break;case 60:this.$=[X[nt-4],X[nt-1],{type:"addMessage",from:X[nt-4].actor,to:X[nt-1].actor,signalType:X[nt-3],msg:X[nt]},{type:"activeEnd",signalType:Ct.LINETYPE.ACTIVE_END,actor:X[nt-4]}];break;case 61:this.$=[X[nt-3],X[nt-1],{type:"addMessage",from:X[nt-3].actor,to:X[nt-1].actor,signalType:X[nt-2],msg:X[nt]}];break;case 62:this.$={type:"addParticipant",actor:X[nt]};break;case 63:this.$=Ct.LINETYPE.SOLID_OPEN;break;case 64:this.$=Ct.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Ct.LINETYPE.SOLID;break;case 66:this.$=Ct.LINETYPE.DOTTED;break;case 67:this.$=Ct.LINETYPE.SOLID_CROSS;break;case 68:this.$=Ct.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Ct.LINETYPE.SOLID_POINT;break;case 70:this.$=Ct.LINETYPE.DOTTED_POINT;break;case 71:this.$=Ct.parseMessage(X[nt].trim().substring(1));break;case 72:Ct.parseDirective("%%{","open_directive");break;case 73:Ct.parseDirective(X[nt],"type_directive");break;case 74:X[nt]=X[nt].trim().replace(/'/g,'"'),Ct.parseDirective(X[nt],"arg_directive");break;case 75:Ct.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:T,5:v,6:4,7:C,11:6,79:N},{1:[3]},{3:8,4:T,5:v,6:4,7:C,11:6,79:N},{3:9,4:T,5:v,6:4,7:C,11:6,79:N},{3:10,4:T,5:v,6:4,7:C,11:6,79:N},d([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],D,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{13:49,14:[1,50],82:Ut},d([14,82],[2,73]),d(pe,[2,6]),{6:41,10:52,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},d(pe,[2,8]),d(pe,[2,9]),{17:53,69:Ft},{17:54,69:Ft},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Ft},{17:60,69:Ft},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},d(pe,[2,28]),d(pe,[2,29]),{35:[1,66]},{37:[1,67]},d(pe,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},d(pe,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Ft},{17:89,69:Ft},{17:90,69:Ft},{17:91,69:Ft},d([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},d(pe,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},d(pe,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},d(pe,[2,20]),{5:[1,102]},{5:[1,103]},d(pe,[2,23]),d(pe,[2,24]),d(pe,[2,25]),d(pe,[2,26]),d(pe,[2,27]),d(pe,[2,30]),d(pe,[2,31]),d(je,D,{8:104}),d(je,D,{8:105}),d(je,D,{8:106}),d(_e,D,{44:107,8:108}),d(ue,D,{46:109,8:110}),d(de,D,{48:111,8:112}),d(je,D,{8:113}),{17:116,67:[1,114],68:[1,115],69:Ft},d(Me,[2,63]),d(Me,[2,64]),d(Me,[2,65]),d(Me,[2,66]),d(Me,[2,67]),d(Me,[2,68]),d(Me,[2,69]),d(Me,[2,70]),{17:117,69:Ft},{17:119,57:118,69:Ft},{69:[2,57]},{69:[2,58]},{55:120,78:Se},{55:122,78:Se},{55:123,78:Se},{55:124,78:Se},d(ge,[2,10]),{13:125,82:Ut},{82:[2,74]},{19:[1,126]},d(pe,[2,13]),{19:[1,127]},d(pe,[2,15]),{5:[1,128]},d(pe,[2,18]),d(pe,[2,19]),d(pe,[2,21]),d(pe,[2,22]),{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[1,129],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[1,130],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[1,131],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{40:[1,132]},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[2,45],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,52:[1,133],53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{40:[1,134]},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[2,43],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,51:[1,135],53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{40:[1,136]},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[2,41],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,50:[1,137],53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{4:Y,5:L,6:41,9:14,10:16,11:6,16:j,17:42,20:V,21:20,22:K,25:tt,26:dt,27:24,28:25,29:26,30:27,31:28,32:rt,33:Ot,34:ot,36:_t,38:Dt,39:Xt,40:[1,138],41:jt,42:Nt,43:Yt,45:Bt,47:Tt,49:Q,53:lt,58:U,59:kt,60:W,61:At,69:Ft,79:N},{17:139,69:Ft},{17:140,69:Ft},{55:141,78:Se},{55:142,78:Se},{55:143,78:Se},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},d(pe,[2,17]),d(pe,[2,33]),d(pe,[2,34]),d(pe,[2,35]),d(pe,[2,36]),{19:[1,148]},d(pe,[2,37]),{19:[1,149]},d(pe,[2,38]),{19:[1,150]},d(pe,[2,39]),{55:151,78:Se},{55:152,78:Se},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Ft},d(ge,[2,11]),d(pe,[2,12]),d(pe,[2,14]),d(_e,D,{8:108,44:154}),d(ue,D,{8:110,46:155}),d(de,D,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(It,se){if(!se.recoverable){var ne=new Error(It);throw ne.hash=se,ne}this.trace(It)},parse:function(It){var se=this,ne=[0],Ct=[],Ee=[null],X=[],Ce=this.table,nt="",ke=0,ee=0,me=0,Re=2,Le=1,an=X.slice.call(arguments,1),Ae=Object.create(this.lexer),Ve={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(Ve.yy[Ke]=this.yy[Ke]);Ae.setInput(It,Ve.yy),Ve.yy.lexer=Ae,Ve.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var en=Ae.yylloc;X.push(en);var Ne=Ae.options&&Ae.options.ranges;function ln(){var on;return typeof(on=Ct.pop()||Ae.lex()||Le)!="number"&&(on instanceof Array&&(on=(Ct=on).pop()),on=se.symbols_[on]||on),on}typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var dn,Ue,Pe,Ie,Xe,jn,Lt,An,Pt,hn={};;){if(Pe=ne[ne.length-1],this.defaultActions[Pe]?Ie=this.defaultActions[Pe]:(dn==null&&(dn=ln()),Ie=Ce[Pe]&&Ce[Pe][dn]),Ie===void 0||!Ie.length||!Ie[0]){var Mn="";for(jn in Pt=[],Ce[Pe])this.terminals_[jn]&&jn>Re&&Pt.push("'"+this.terminals_[jn]+"'");Mn=Ae.showPosition?"Parse error on line "+(ke+1)+`: `+Ae.showPosition()+` Expecting `+Pt.join(", ")+", got '"+(this.terminals_[dn]||dn)+"'":"Parse error on line "+(ke+1)+": Unexpected "+(dn==Le?"end of input":"'"+(this.terminals_[dn]||dn)+"'"),this.parseError(Mn,{text:Ae.match,token:this.terminals_[dn]||dn,line:Ae.yylineno,loc:en,expected:Pt})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+dn);switch(Ie[0]){case 1:ne.push(dn),Ee.push(Ae.yytext),X.push(Ae.yylloc),ne.push(Ie[1]),dn=null,Ue?(dn=Ue,Ue=null):(ee=Ae.yyleng,nt=Ae.yytext,ke=Ae.yylineno,en=Ae.yylloc,me>0);break;case 2:if(Lt=this.productions_[Ie[1]][1],hn.$=Ee[Ee.length-Lt],hn._$={first_line:X[X.length-(Lt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Lt||1)].first_column,last_column:X[X.length-1].last_column},Ne&&(hn._$.range=[X[X.length-(Lt||1)].range[0],X[X.length-1].range[1]]),(Xe=this.performAction.apply(hn,[nt,ee,ke,Ve.yy,Ie[1],Ee,X].concat(an)))!==void 0)return Xe;Lt&&(ne=ne.slice(0,-1*Lt*2),Ee=Ee.slice(0,-1*Lt),X=X.slice(0,-1*Lt)),ne.push(this.productions_[Ie[1]][0]),Ee.push(hn.$),X.push(hn._$),An=Ce[ne[ne.length-2]][ne[ne.length-1]],ne.push(An);break;case 3:return!0}}return!0}},ye={EOF:1,parseError:function(It,se){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,se)},setInput:function(It,se){return this.yy=se||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.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),It},unput:function(It){var se=It.length,ne=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var Ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ne.length].length-ne[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),se=new Array(It.length+1).join("-");return It+this.upcomingInput()+` `+se+"^"},test_match:function(It,se){var ne,Ct,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(Ct=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],ne=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;if(this._backtrack){for(var X in Ee)this[X]=Ee[X];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,se,ne,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),X=0;Xse[0].length)){if(se=ne,Ct=X,this.options.backtrack_lexer){if((It=this.test_match(ne,Ee[X]))!==!1)return It;if(this._backtrack){se=!1;continue}return!1}if(!this.options.flex)break}return se?(It=this.test_match(se,Ee[Ct]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},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(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,se,ne,Ct){switch(ne){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return se.yytext=se.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return se.yytext=se.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?: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,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function qe(){this.yy={}}return bn.lexer=ye,qe.prototype=bn,bn.Parser=qe,new qe}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(1993).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},3584:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(_e,ue,de,Me){for(de=de||{},Me=_e.length;Me--;de[_e[Me]]=ue);return de},T=[1,2],v=[1,3],C=[1,5],N=[1,7],D=[2,5],Y=[1,15],L=[1,17],j=[1,19],V=[1,20],K=[1,21],tt=[1,22],dt=[1,33],rt=[1,23],Ot=[1,24],ot=[1,25],_t=[1,26],Dt=[1,27],Xt=[1,30],jt=[1,31],Nt=[1,32],Yt=[1,35],Bt=[1,36],Tt=[1,37],Q=[1,38],lt=[1,34],U=[1,41],kt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],W=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],At=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ft=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ut={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,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$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",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"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],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(_e,ue,de,Me,Se,ge,bn){var ye=ge.length-1;switch(Se){case 4:return Me.setRootDoc(ge[ye]),ge[ye];case 5:this.$=[];break;case 6:ge[ye]!="nl"&&(ge[ye-1].push(ge[ye]),this.$=ge[ye-1]);break;case 7:case 8:case 39:case 40:this.$=ge[ye];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:ge[ye],type:"default",description:""};break;case 11:this.$={stmt:"state",id:ge[ye-1],type:"default",description:Me.trimColon(ge[ye])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:ge[ye-2],type:"default",description:""},state2:{stmt:"state",id:ge[ye],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:ge[ye-3],type:"default",description:""},state2:{stmt:"state",id:ge[ye-1],type:"default",description:""},description:ge[ye].substr(1).trim()};break;case 17:this.$={stmt:"state",id:ge[ye-3],type:"default",description:"",doc:ge[ye-1]};break;case 18:var qe=ge[ye],It=ge[ye-2].trim();if(ge[ye].match(":")){var se=ge[ye].split(":");qe=se[0],It=[It,se[1]]}this.$={stmt:"state",id:qe,type:"default",description:It};break;case 19:this.$={stmt:"state",id:ge[ye-3],type:"default",description:ge[ye-5],doc:ge[ye-1]};break;case 20:this.$={stmt:"state",id:ge[ye],type:"fork"};break;case 21:this.$={stmt:"state",id:ge[ye],type:"join"};break;case 22:this.$={stmt:"state",id:ge[ye],type:"choice"};break;case 23:this.$={stmt:"state",id:Me.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:ge[ye-1].trim(),note:{position:ge[ye-2].trim(),text:ge[ye].trim()}};break;case 28:this.$=ge[ye].trim(),Me.setAccTitle(this.$);break;case 29:case 30:this.$=ge[ye].trim(),Me.setAccDescription(this.$);break;case 33:Me.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Me.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Me.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Me.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Me.parseDirective("%%{","open_directive");break;case 44:Me.parseDirective(ge[ye],"type_directive");break;case 45:ge[ye]=ge[ye].trim().replace(/'/g,'"'),Me.parseDirective(ge[ye],"arg_directive");break;case 46:Me.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:T,5:v,6:4,7:C,36:6,50:N},{1:[3]},{3:8,4:T,5:v,6:4,7:C,36:6,50:N},{3:9,4:T,5:v,6:4,7:C,36:6,50:N},{3:10,4:T,5:v,6:4,7:C,36:6,50:N},d([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],D,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:Y,5:L,6:28,9:14,10:16,11:18,14:j,15:V,17:K,20:tt,22:dt,23:rt,24:Ot,25:ot,26:_t,27:Dt,30:29,31:Xt,33:jt,35:Nt,36:6,41:Yt,42:Bt,43:Tt,44:Q,47:lt,50:N},{38:39,39:[1,40],53:U},d([39,53],[2,44]),d(kt,[2,6]),{6:28,10:42,11:18,14:j,15:V,17:K,20:tt,22:dt,23:rt,24:Ot,25:ot,26:_t,27:Dt,30:29,31:Xt,33:jt,35:Nt,36:6,41:Yt,42:Bt,43:Tt,44:Q,47:lt,50:N},d(kt,[2,8]),d(kt,[2,9]),d(kt,[2,10],{12:[1,43],13:[1,44]}),d(kt,[2,14]),{16:[1,45]},d(kt,[2,16],{18:[1,46]}),{21:[1,47]},d(kt,[2,20]),d(kt,[2,21]),d(kt,[2,22]),d(kt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},d(kt,[2,26]),d(kt,[2,27]),{32:[1,52]},{34:[1,53]},d(kt,[2,30]),d(W,[2,39]),d(W,[2,40]),d(kt,[2,33]),d(kt,[2,34]),d(kt,[2,35]),d(kt,[2,36]),d(At,[2,31]),{40:54,52:[1,55]},d(At,[2,46]),d(kt,[2,7]),d(kt,[2,11]),{11:56,22:dt,47:lt},d(kt,[2,15]),d(Ft,D,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},d(kt,[2,28]),d(kt,[2,29]),{38:61,53:U},{53:[2,45]},d(kt,[2,12],{12:[1,62]}),{4:Y,5:L,6:28,9:14,10:16,11:18,14:j,15:V,17:K,19:[1,63],20:tt,22:dt,23:rt,24:Ot,25:ot,26:_t,27:Dt,30:29,31:Xt,33:jt,35:Nt,36:6,41:Yt,42:Bt,43:Tt,44:Q,47:lt,50:N},d(kt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},d(At,[2,32]),d(kt,[2,13]),d(kt,[2,17]),d(Ft,D,{8:67}),d(kt,[2,24]),d(kt,[2,25]),{4:Y,5:L,6:28,9:14,10:16,11:18,14:j,15:V,17:K,19:[1,68],20:tt,22:dt,23:rt,24:Ot,25:ot,26:_t,27:Dt,30:29,31:Xt,33:jt,35:Nt,36:6,41:Yt,42:Bt,43:Tt,44:Q,47:lt,50:N},d(kt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(_e,ue){if(!ue.recoverable){var de=new Error(_e);throw de.hash=ue,de}this.trace(_e)},parse:function(_e){var ue=this,de=[0],Me=[],Se=[null],ge=[],bn=this.table,ye="",qe=0,It=0,se=0,ne=2,Ct=1,Ee=ge.slice.call(arguments,1),X=Object.create(this.lexer),Ce={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Ce.yy[nt]=this.yy[nt]);X.setInput(_e,Ce.yy),Ce.yy.lexer=X,Ce.yy.parser=this,X.yylloc===void 0&&(X.yylloc={});var ke=X.yylloc;ge.push(ke);var ee=X.options&&X.options.ranges;function me(){var Pe;return typeof(Pe=Me.pop()||X.lex()||Ct)!="number"&&(Pe instanceof Array&&(Pe=(Me=Pe).pop()),Pe=ue.symbols_[Pe]||Pe),Pe}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Re,Le,an,Ae,Ve,Ke,en,Ne,ln,dn={};;){if(an=de[de.length-1],this.defaultActions[an]?Ae=this.defaultActions[an]:(Re==null&&(Re=me()),Ae=bn[an]&&bn[an][Re]),Ae===void 0||!Ae.length||!Ae[0]){var Ue="";for(Ke in ln=[],bn[an])this.terminals_[Ke]&&Ke>ne&&ln.push("'"+this.terminals_[Ke]+"'");Ue=X.showPosition?"Parse error on line "+(qe+1)+`: `+X.showPosition()+` Expecting `+ln.join(", ")+", got '"+(this.terminals_[Re]||Re)+"'":"Parse error on line "+(qe+1)+": Unexpected "+(Re==Ct?"end of input":"'"+(this.terminals_[Re]||Re)+"'"),this.parseError(Ue,{text:X.match,token:this.terminals_[Re]||Re,line:X.yylineno,loc:ke,expected:ln})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+an+", token: "+Re);switch(Ae[0]){case 1:de.push(Re),Se.push(X.yytext),ge.push(X.yylloc),de.push(Ae[1]),Re=null,Le?(Re=Le,Le=null):(It=X.yyleng,ye=X.yytext,qe=X.yylineno,ke=X.yylloc,se>0);break;case 2:if(en=this.productions_[Ae[1]][1],dn.$=Se[Se.length-en],dn._$={first_line:ge[ge.length-(en||1)].first_line,last_line:ge[ge.length-1].last_line,first_column:ge[ge.length-(en||1)].first_column,last_column:ge[ge.length-1].last_column},ee&&(dn._$.range=[ge[ge.length-(en||1)].range[0],ge[ge.length-1].range[1]]),(Ve=this.performAction.apply(dn,[ye,It,qe,Ce.yy,Ae[1],Se,ge].concat(Ee)))!==void 0)return Ve;en&&(de=de.slice(0,-1*en*2),Se=Se.slice(0,-1*en),ge=ge.slice(0,-1*en)),de.push(this.productions_[Ae[1]][0]),Se.push(dn.$),ge.push(dn._$),Ne=bn[de[de.length-2]][de[de.length-1]],de.push(Ne);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(_e,ue){if(!this.yy.parser)throw new Error(_e);this.yy.parser.parseError(_e,ue)},setInput:function(_e,ue){return this.yy=ue||this.yy||{},this._input=_e,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 _e=this._input[0];return this.yytext+=_e,this.yyleng++,this.offset++,this.match+=_e,this.matched+=_e,_e.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),_e},unput:function(_e){var ue=_e.length,de=_e.split(/(?:\r\n?|\n)/g);this._input=_e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ue),this.offset-=ue;var Me=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),de.length-1&&(this.yylineno-=de.length-1);var Se=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:de?(de.length===Me.length?this.yylloc.first_column:0)+Me[Me.length-de.length].length-de[0].length:this.yylloc.first_column-ue},this.options.ranges&&(this.yylloc.range=[Se[0],Se[0]+this.yyleng-ue]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(_e){this.unput(this.match.slice(_e))},pastInput:function(){var _e=this.matched.substr(0,this.matched.length-this.match.length);return(_e.length>20?"...":"")+_e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _e=this.match;return _e.length<20&&(_e+=this._input.substr(0,20-_e.length)),(_e.substr(0,20)+(_e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _e=this.pastInput(),ue=new Array(_e.length+1).join("-");return _e+this.upcomingInput()+` `+ue+"^"},test_match:function(_e,ue){var de,Me,Se;if(this.options.backtrack_lexer&&(Se={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&&(Se.yylloc.range=this.yylloc.range.slice(0))),(Me=_e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Me?Me[Me.length-1].length-Me[Me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_e[0].length},this.yytext+=_e[0],this.match+=_e[0],this.matches=_e,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(_e[0].length),this.matched+=_e[0],de=this.performAction.call(this,this.yy,this,ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),de)return de;if(this._backtrack){for(var ge in Se)this[ge]=Se[ge];return!1}return!1},next:function(){if(this.done)return this.EOF;var _e,ue,de,Me;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Se=this._currentRules(),ge=0;geue[0].length)){if(ue=de,Me=ge,this.options.backtrack_lexer){if((_e=this.test_match(de,Se[ge]))!==!1)return _e;if(this._backtrack){ue=!1;continue}return!1}if(!this.options.flex)break}return ue?(_e=this.test_match(ue,Se[Me]))!==!1&&_e:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(_e){this.conditionStack.push(_e)},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(_e){return(_e=this.conditionStack.length-1-Math.abs(_e||0))>=0?this.conditionStack[_e]:"INITIAL"},pushState:function(_e){this.begin(_e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_e,ue,de,Me){switch(de){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),ue.yytext=ue.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),ue.yytext=ue.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),ue.yytext=ue.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),ue.yytext=ue.yytext.substr(2).trim(),29;case 57:return this.popState(),ue.yytext=ue.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return ue.yytext=ue.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67: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,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/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,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function je(){this.yy={}}return Ut.lexer=pe,je.prototype=Ut,Ut.Parser=je,new je}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(3069).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},9763:(A,F,y)=>{A=y.nmd(A);var x=function(){var d=function(ot,_t,Dt,Xt){for(Dt=Dt||{},Xt=ot.length;Xt--;Dt[ot[Xt]]=_t);return Dt},T=[1,2],v=[1,5],C=[6,9,11,17,18,20,22,23,24,26],N=[1,15],D=[1,16],Y=[1,17],L=[1,18],j=[1,19],V=[1,20],K=[1,24],tt=[4,6,9,11,17,18,20,22,23,24,26],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(ot,_t,Dt,Xt,jt,Nt,Yt){var Bt=Nt.length-1;switch(jt){case 1:return Nt[Bt-1];case 3:case 7:case 8:this.$=[];break;case 4:Nt[Bt-1].push(Nt[Bt]),this.$=Nt[Bt-1];break;case 5:case 6:this.$=Nt[Bt];break;case 11:Xt.setDiagramTitle(Nt[Bt].substr(6)),this.$=Nt[Bt].substr(6);break;case 12:this.$=Nt[Bt].trim(),Xt.setAccTitle(this.$);break;case 13:case 14:this.$=Nt[Bt].trim(),Xt.setAccDescription(this.$);break;case 15:Xt.addSection(Nt[Bt].substr(8)),this.$=Nt[Bt].substr(8);break;case 16:Xt.addTask(Nt[Bt-1],Nt[Bt]),this.$="task";break;case 18:Xt.parseDirective("%%{","open_directive");break;case 19:Xt.parseDirective(Nt[Bt],"type_directive");break;case 20:Nt[Bt]=Nt[Bt].trim().replace(/'/g,'"'),Xt.parseDirective(Nt[Bt],"arg_directive");break;case 21:Xt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:T,7:3,12:4,26:v},{1:[3]},d(C,[2,3],{5:6}),{3:7,4:T,7:3,12:4,26:v},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:N,18:D,20:Y,22:L,23:j,24:V,26:v},{1:[2,2]},{14:22,15:[1,23],29:K},d([15,29],[2,19]),d(C,[2,8],{1:[2,1]}),d(C,[2,4]),{7:21,10:25,12:4,17:N,18:D,20:Y,22:L,23:j,24:V,26:v},d(C,[2,6]),d(C,[2,7]),d(C,[2,11]),{19:[1,26]},{21:[1,27]},d(C,[2,14]),d(C,[2,15]),{25:[1,28]},d(C,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},d(C,[2,5]),d(C,[2,12]),d(C,[2,13]),d(C,[2,16]),d(tt,[2,9]),{14:32,29:K},{29:[2,20]},{11:[1,33]},d(tt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(ot,_t){if(!_t.recoverable){var Dt=new Error(ot);throw Dt.hash=_t,Dt}this.trace(ot)},parse:function(ot){var _t=this,Dt=[0],Xt=[],jt=[null],Nt=[],Yt=this.table,Bt="",Tt=0,Q=0,lt=0,U=2,kt=1,W=Nt.slice.call(arguments,1),At=Object.create(this.lexer),Ft={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(Ft.yy[Ut]=this.yy[Ut]);At.setInput(ot,Ft.yy),Ft.yy.lexer=At,Ft.yy.parser=this,At.yylloc===void 0&&(At.yylloc={});var pe=At.yylloc;Nt.push(pe);var je=At.options&&At.options.ranges;function _e(){var Ct;return typeof(Ct=Xt.pop()||At.lex()||kt)!="number"&&(Ct instanceof Array&&(Ct=(Xt=Ct).pop()),Ct=_t.symbols_[Ct]||Ct),Ct}typeof Ft.yy.parseError=="function"?this.parseError=Ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ue,de,Me,Se,ge,bn,ye,qe,It,se={};;){if(Me=Dt[Dt.length-1],this.defaultActions[Me]?Se=this.defaultActions[Me]:(ue==null&&(ue=_e()),Se=Yt[Me]&&Yt[Me][ue]),Se===void 0||!Se.length||!Se[0]){var ne="";for(bn in It=[],Yt[Me])this.terminals_[bn]&&bn>U&&It.push("'"+this.terminals_[bn]+"'");ne=At.showPosition?"Parse error on line "+(Tt+1)+`: `+At.showPosition()+` Expecting `+It.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":"Parse error on line "+(Tt+1)+": Unexpected "+(ue==kt?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(ne,{text:At.match,token:this.terminals_[ue]||ue,line:At.yylineno,loc:pe,expected:It})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+ue);switch(Se[0]){case 1:Dt.push(ue),jt.push(At.yytext),Nt.push(At.yylloc),Dt.push(Se[1]),ue=null,de?(ue=de,de=null):(Q=At.yyleng,Bt=At.yytext,Tt=At.yylineno,pe=At.yylloc,lt>0);break;case 2:if(ye=this.productions_[Se[1]][1],se.$=jt[jt.length-ye],se._$={first_line:Nt[Nt.length-(ye||1)].first_line,last_line:Nt[Nt.length-1].last_line,first_column:Nt[Nt.length-(ye||1)].first_column,last_column:Nt[Nt.length-1].last_column},je&&(se._$.range=[Nt[Nt.length-(ye||1)].range[0],Nt[Nt.length-1].range[1]]),(ge=this.performAction.apply(se,[Bt,Q,Tt,Ft.yy,Se[1],jt,Nt].concat(W)))!==void 0)return ge;ye&&(Dt=Dt.slice(0,-1*ye*2),jt=jt.slice(0,-1*ye),Nt=Nt.slice(0,-1*ye)),Dt.push(this.productions_[Se[1]][0]),jt.push(se.$),Nt.push(se._$),qe=Yt[Dt[Dt.length-2]][Dt[Dt.length-1]],Dt.push(qe);break;case 3:return!0}}return!0}},rt={EOF:1,parseError:function(ot,_t){if(!this.yy.parser)throw new Error(ot);this.yy.parser.parseError(ot,_t)},setInput:function(ot,_t){return this.yy=_t||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 _t=ot.length,Dt=ot.split(/(?:\r\n?|\n)/g);this._input=ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_t),this.offset-=_t;var Xt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Dt.length-1&&(this.yylineno-=Dt.length-1);var jt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Dt?(Dt.length===Xt.length?this.yylloc.first_column:0)+Xt[Xt.length-Dt.length].length-Dt[0].length:this.yylloc.first_column-_t},this.options.ranges&&(this.yylloc.range=[jt[0],jt[0]+this.yyleng-_t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ot){this.unput(this.match.slice(ot))},pastInput:function(){var ot=this.matched.substr(0,this.matched.length-this.match.length);return(ot.length>20?"...":"")+ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ot=this.match;return ot.length<20&&(ot+=this._input.substr(0,20-ot.length)),(ot.substr(0,20)+(ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ot=this.pastInput(),_t=new Array(ot.length+1).join("-");return ot+this.upcomingInput()+` `+_t+"^"},test_match:function(ot,_t){var Dt,Xt,jt;if(this.options.backtrack_lexer&&(jt={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&&(jt.yylloc.range=this.yylloc.range.slice(0))),(Xt=ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Xt?Xt[Xt.length-1].length-Xt[Xt.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],Dt=this.performAction.call(this,this.yy,this,_t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dt)return Dt;if(this._backtrack){for(var Nt in jt)this[Nt]=jt[Nt];return!1}return!1},next:function(){if(this.done)return this.EOF;var ot,_t,Dt,Xt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var jt=this._currentRules(),Nt=0;Nt_t[0].length)){if(_t=Dt,Xt=Nt,this.options.backtrack_lexer){if((ot=this.test_match(Dt,jt[Nt]))!==!1)return ot;if(this._backtrack){_t=!1;continue}return!1}if(!this.options.flex)break}return _t?(ot=this.test_match(_t,jt[Xt]))!==!1&&ot:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ot){this.conditionStack.push(ot)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ot){return(ot=this.conditionStack.length-1-Math.abs(ot||0))>=0?this.conditionStack[ot]:"INITIAL"},pushState:function(ot){this.begin(ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ot,_t,Dt,Xt){switch(Dt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function Ot(){this.yy={}}return dt.lexer=rt,Ot.prototype=dt,dt.Parser=Ot,new Ot}();F.parser=x,F.Parser=x.Parser,F.parse=function(){return x.parse.apply(x,arguments)},F.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var T=y(9143).readFileSync(y(6470).normalize(d[1]),"utf8");return F.parser.parse(T)},y.c[y.s]===A&&F.main(process.argv.slice(1))},7967:(A,F)=>{F.N=void 0;var y=/^([^\w]*)(javascript|data|vbscript)/im,x=/&#(\w+)(^\w|;)?/g,d=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,T=/^([^:]+):/gm,v=[".","/"];F.N=function(C){var N,D=(N=C||"",N.replace(x,function(j,V){return String.fromCharCode(V)})).replace(d,"").trim();if(!D)return"about:blank";if(function(j){return v.indexOf(j[0])>-1}(D))return D;var Y=D.match(T);if(!Y)return D;var L=Y[0];return y.test(L)?"about:blank":D}},3841:A=>{A.exports=function(F,y){return F.intersect(y)}},1689:(A,F,y)=>{y.d(F,{Z:()=>Fv});var x=y(1941),d=y.n(x),T={debug:1,info:2,warn:3,error:4,fatal:5},v={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},C=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),T[t]!==void 0&&(t=T[t])),v.trace=function(){},v.debug=function(){},v.info=function(){},v.warn=function(){},v.error=function(){},v.fatal=function(){},t<=T.fatal&&(v.fatal=console.error?console.error.bind(console,N("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",N("FATAL"))),t<=T.error&&(v.error=console.error?console.error.bind(console,N("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",N("ERROR"))),t<=T.warn&&(v.warn=console.warn?console.warn.bind(console,N("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",N("WARN"))),t<=T.info&&(v.info=console.info?console.info.bind(console,N("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",N("INFO"))),t<=T.debug&&(v.debug=console.debug?console.debug.bind(console,N("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",N("DEBUG")))},N=function(t){var e=d()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function D(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r=a)&&(r=a);else{let a=-1;for(let s of t)(s=e(s,++a,t))!=null&&(r=s)&&(r=s)}return r}function Y(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of t)(s=e(s,++a,t))!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}return r}function L(t){return t}var j=1e-6;function V(t){return"translate("+t+",0)"}function K(t){return"translate(0,"+t+")"}function tt(t){return e=>+t(e)}function dt(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function rt(){return!this.__axis}function Ot(t,e){var r=[],a=null,s=null,h=6,u=6,p=3,_=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,b=t===1||t===4?-1:1,M=t===4||t===2?"x":"y",I=t===1||t===3?V:K;function R($){var ht=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,it=s==null?e.tickFormat?e.tickFormat.apply(e,r):L:s,pt=Math.max(h,0)+p,ft=e.range(),xt=+ft[0]+_,mt=+ft[ft.length-1]+_,Wt=(e.bandwidth?dt:tt)(e.copy(),_),re=$.selection?$.selection():$,Rt=re.selectAll(".domain").data([null]),Jt=re.selectAll(".tick").data(ht,e).order(),te=Jt.exit(),Et=Jt.enter().append("g").attr("class","tick"),wt=Jt.select("line"),vt=Jt.select("text");Rt=Rt.merge(Rt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Jt=Jt.merge(Et),wt=wt.merge(Et.append("line").attr("stroke","currentColor").attr(M+"2",b*h)),vt=vt.merge(Et.append("text").attr("fill","currentColor").attr(M,b*pt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),$!==re&&(Rt=Rt.transition($),Jt=Jt.transition($),wt=wt.transition($),vt=vt.transition($),te=te.transition($).attr("opacity",j).attr("transform",function(ct){return isFinite(ct=Wt(ct))?I(ct+_):this.getAttribute("transform")}),Et.attr("opacity",j).attr("transform",function(ct){var Mt=this.parentNode.__axis;return I((Mt&&isFinite(Mt=Mt(ct))?Mt:Wt(ct))+_)})),te.remove(),Rt.attr("d",t===4||t===2?u?"M"+b*u+","+xt+"H"+_+"V"+mt+"H"+b*u:"M"+_+","+xt+"V"+mt:u?"M"+xt+","+b*u+"V"+_+"H"+mt+"V"+b*u:"M"+xt+","+_+"H"+mt),Jt.attr("opacity",1).attr("transform",function(ct){return I(Wt(ct)+_)}),wt.attr(M+"2",b*h),vt.attr(M,b*pt).text(it),re.filter(rt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),re.each(function(){this.__axis=Wt})}return R.scale=function($){return arguments.length?(e=$,R):e},R.ticks=function(){return r=Array.from(arguments),R},R.tickArguments=function($){return arguments.length?(r=$==null?[]:Array.from($),R):r.slice()},R.tickValues=function($){return arguments.length?(a=$==null?null:Array.from($),R):a&&a.slice()},R.tickFormat=function($){return arguments.length?(s=$,R):s},R.tickSize=function($){return arguments.length?(h=u=+$,R):h},R.tickSizeInner=function($){return arguments.length?(h=+$,R):h},R.tickSizeOuter=function($){return arguments.length?(u=+$,R):u},R.tickPadding=function($){return arguments.length?(p=+$,R):p},R.offset=function($){return arguments.length?(_=+$,R):_},R}function ot(){}function _t(t){return t==null?ot:function(){return this.querySelector(t)}}function Dt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xt(){return[]}function jt(t){return t==null?Xt:function(){return this.querySelectorAll(t)}}function Nt(t){return function(){return this.matches(t)}}function Yt(t){return function(e){return e.matches(t)}}var Bt=Array.prototype.find;function Tt(){return this.firstElementChild}var Q=Array.prototype.filter;function lt(){return Array.from(this.children)}function U(t){return new Array(t.length)}function kt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function W(t){return function(){return t}}function At(t,e,r,a,s,h){for(var u,p=0,_=e.length,b=h.length;pe?1:t>=e?0:NaN}kt.prototype={constructor:kt,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 _e="http://www.w3.org/1999/xhtml";const ue={svg:"http://www.w3.org/2000/svg",xhtml:_e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function de(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ue.hasOwnProperty(e)?{space:ue[e],local:t}:t}function Me(t){return function(){this.removeAttribute(t)}}function Se(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ge(t,e){return function(){this.setAttribute(t,e)}}function bn(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ye(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function qe(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 It(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function se(t){return function(){this.style.removeProperty(t)}}function ne(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Ct(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Ee(t,e){return t.style.getPropertyValue(e)||It(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return function(){delete this[t]}}function Ce(t,e){return function(){this[t]=e}}function nt(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function ke(t){return t.trim().split(/^|\s+/)}function ee(t){return t.classList||new me(t)}function me(t){this._node=t,this._names=ke(t.getAttribute("class")||"")}function Re(t,e){for(var r=ee(t),a=-1,s=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function qn(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ln=[null];function Nn(t,e){this._groups=t,this._parents=e}function Fn(){return new Nn([[document.documentElement]],Ln)}Nn.prototype=Fn.prototype={constructor:Nn,select:function(t){typeof t!="function"&&(t=_t(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s=re&&(re=Wt+1);!(mt=pt[re])&&++re=0;)(a=s[h])&&(u&&4^a.compareDocumentPosition(u)&&u.parentNode.insertBefore(a,u),u=a);return this},sort:function(t){function e(I,R){return I&&R?t(I.__data__,R.__data__):!I-!R}t||(t=je);for(var r=this._groups,a=r.length,s=new Array(a),h=0;h1?this.each((e==null?se:typeof e=="function"?Ct:ne)(t,e,r==null?"":r)):Ee(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?X:typeof e=="function"?nt:Ce)(t,e)):this.node()[t]},classed:function(t,e){var r=ke(t+"");if(arguments.length<2){for(var a=ee(this.node()),s=-1,h=r.length;++s{}};function Wn(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function $n(t,e){for(var r,a=0,s=t.length;a0)for(var r,a,s=new Array(r),h=0;h=0&&e._call.call(void 0,t),e=e._next;--mi})()}finally{mi=0,function(){for(var t,e,r=Ti,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ti=e);pn=t,to(a)}(),ei=0}}function vi(){var t=Zr.now(),e=t-ai;e>1e3&&(hi-=e,ai=t)}function to(t){mi||(br&&(br=clearTimeout(br)),t-ei>24?(t<1/0&&(br=setTimeout(si,t-Zr.now()-hi)),yr&&(yr=clearInterval(yr))):(yr||(ai=Zr.now(),yr=setInterval(vi,1e3)),mi=1,fi(si)))}function Tr(t,e,r){var a=new Jr;return e=e==null?0:+e,a.restart(s=>{a.stop(),t(s+e)},e,r),a}Jr.prototype=oi.prototype={constructor:Jr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Qr():+r)+(e==null?0:+e),this._next||pn===this||(pn?pn._next=this:Ti=this,pn=this),this._call=t,this._time=r,to()},stop:function(){this._call&&(this._call=null,this._time=1/0,to())}};var Ma=fr("start","end","cancel","interrupt"),sa=[];function Yi(t,e,r,a,s,h){var u=t.__transition;if(u){if(r in u)return}else t.__transition={};(function(p,_,b){var M,I=p.__transition;function R(it){var pt,ft,xt,mt;if(b.state!==1)return ht();for(pt in I)if((mt=I[pt]).name===b.name){if(mt.state===3)return Tr(R);mt.state===4?(mt.state=6,mt.timer.stop(),mt.on.call("interrupt",p,p.__data__,mt.index,mt.group),delete I[pt]):+pt<_&&(mt.state=6,mt.timer.stop(),mt.on.call("cancel",p,p.__data__,mt.index,mt.group),delete I[pt])}if(Tr(function(){b.state===3&&(b.state=4,b.timer.restart($,b.delay,b.time),$(it))}),b.state=2,b.on.call("start",p,p.__data__,b.index,b.group),b.state===2){for(b.state=3,M=new Array(xt=b.tween.length),pt=0,ft=-1;pt0)throw new Error("too late; already scheduled");return r}function Jn(t,e){var r=De(t,e);if(r.state>3)throw new Error("too late; already running");return r}function De(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function We(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var _r,qt=180/Math.PI,ba={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Kt(t,e,r,a,s,h){var u,p,_;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(_=t*r+e*a)&&(r-=t*_,a-=e*_),(p=Math.sqrt(r*r+a*a))&&(r/=p,a/=p,_/=p),t*a180?M+=360:M-b>180&&(b+=360),R.push({i:I.push(s(I)+"rotate(",null,a)-2,x:We(b,M)})):M&&I.push(s(I)+"rotate("+M+a)}(h.rotate,u.rotate,p,_),function(b,M,I,R){b!==M?R.push({i:I.push(s(I)+"skewX(",null,a)-2,x:We(b,M)}):M&&I.push(s(I)+"skewX("+M+a)}(h.skewX,u.skewX,p,_),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push(s($)+"scale(",null,",",null,")");ht.push({i:it-4,x:We(b,I)},{i:it-2,x:We(M,R)})}else I===1&&R===1||$.push(s($)+"scale("+I+","+R+")")}(h.scaleX,h.scaleY,u.scaleX,u.scaleY,p,_),h=u=null,function(b){for(var M,I=-1,R=_.length;++I>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Ht(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Ht(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=jr.exec(t))?new Kn(e[1],e[2],e[3],1):(e=ca.exec(t))?new Kn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Xi.exec(t))?Ht(e[1],e[2],e[3],e[4]):(e=Ci.exec(t))?Ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xa.exec(t))?Zi(e[1],e[2]/100,e[3]/100,1):(e=Gr.exec(t))?Zi(e[1],e[2]/100,e[3]/100,e[4]):li.hasOwnProperty(t)?tl(li[t]):t==="transparent"?new Kn(NaN,NaN,NaN,0):null}function tl(t){return new Kn(t>>16&255,t>>8&255,255&t,1)}function Ht(t,e,r,a){return a<=0&&(t=e=r=NaN),new Kn(t,e,r,a)}function un(t){return t instanceof zr||(t=No(t)),t?new Kn((t=t.rgb()).r,t.g,t.b,t.opacity):new Kn}function Qe(t,e,r,a){return arguments.length===1?un(t):new Kn(t,e,r,a==null?1:a)}function Kn(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Ur(){return"#"+ri(this.r)+ri(this.g)+ri(this.b)}function qr(){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 ri(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Zi(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Dr(t,e,r,a)}function ka(t){if(t instanceof Dr)return new Dr(t.h,t.s,t.l,t.opacity);if(t instanceof zr||(t=No(t)),!t)return new Dr;if(t instanceof Dr)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),h=Math.max(e,r,a),u=NaN,p=h-s,_=(h+s)/2;return p?(u=e===h?(r-a)/p+6*(r0&&_<1?0:u,new Dr(u,p,_,t.opacity)}function Dr(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ti(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Yr(zr,No,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:wa,formatHex:wa,formatHsl:function(){return ka(this).formatHsl()},formatRgb:la,toString:la}),Yr(Kn,Qe,Ei(zr,{brighter:function(t){return t=t==null?Gi:Math.pow(Gi,t),new Kn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Di:Math.pow(Di,t),new Kn(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:Ur,formatHex:Ur,formatRgb:qr,toString:qr})),Yr(Dr,function(t,e,r,a){return arguments.length===1?ka(t):new Dr(t,e,r,a==null?1:a)},Ei(zr,{brighter:function(t){return t=t==null?Gi:Math.pow(Gi,t),new Dr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Di:Math.pow(Di,t),new Dr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new Kn(ti(t>=240?t-240:t+120,s,a),ti(t,s,a),ti(t<120?t+240:t-120,s,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const el=t=>()=>t;function ql(t,e){var r=e-t;return r?function(a,s){return function(h){return a+h*s}}(t,r):el(isNaN(t)?e:t)}const Wl=function t(e){var r=function(s){return(s=+s)==1?ql:function(h,u){return u-h?function(p,_,b){return p=Math.pow(p,b),_=Math.pow(_,b)-p,b=1/b,function(M){return Math.pow(p+M*_,b)}}(h,u,s):el(isNaN(h)?u:h)}}(e);function a(s,h){var u=r((s=Qe(s)).r,(h=Qe(h)).r),p=r(s.g,h.g),_=r(s.b,h.b),b=ql(s.opacity,h.opacity);return function(M){return s.r=u(M),s.g=p(M),s.b=_(M),s.opacity=b(M),s+""}}return a.gamma=t,a}(1);var eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$l=new RegExp(eo.source,"g");function Hl(t,e){var r,a,s,h=eo.lastIndex=$l.lastIndex=0,u=-1,p=[],_=[];for(t+="",e+="";(r=eo.exec(t))&&(a=$l.exec(e));)(s=a.index)>h&&(s=e.slice(h,s),p[u]?p[u]+=s:p[++u]=s),(r=r[0])===(a=a[0])?p[u]?p[u]+=a:p[++u]=a:(p[++u]=null,_.push({i:u,x:We(r,a)})),h=$l.lastIndex;return h=0&&(p=p.slice(0,_)),!p||p==="start"})}(e)?gn:Jn;return function(){var u=h(this,t),p=u.on;p!==a&&(s=(a=p).copy()).on(e,r),u.on=s}}var Q1=Pn.prototype.constructor;function Na(t){return function(){this.style.removeProperty(t)}}function J1(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function lh(t,e,r){var a,s;function h(){var u=e.apply(this,arguments);return u!==s&&(a=(s=u)&&J1(t,u,r)),a}return h._value=e,h}function uh(t){return function(e){this.textContent=t.call(this,e)}}function Oo(t){var e,r;function a(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&uh(s)),e}return a._value=t,a}var il=0;function ro(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function al(){return++il}var Da=Pn.prototype;ro.prototype={constructor:ro,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=_t(t));for(var a=this._groups,s=a.length,h=new Array(s),u=0;u2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete u[h]):p=!1;p&&delete e.__transition}})(this,t)})},Pn.prototype.transition=function(t){var e,r;t instanceof ro?(e=t._id,t=t._name):(e=al(),(r=Is).time=Qr(),t=t==null?null:t+"");for(var a=this._groups,s=a.length,h=0;h>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?mr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?mr(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=G.exec(t))?new pr(e[1],e[2],e[3],1):(e=ut.exec(t))?new pr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zt.exec(t))?mr(e[1],e[2],e[3],e[4]):(e=we.exec(t))?mr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Be.exec(t))?Ud(e[1],e[2]/100,e[3]/100,1):(e=$e.exec(t))?Ud(e[1],e[2]/100,e[3]/100,e[4]):He.hasOwnProperty(t)?Dn(He[t]):t==="transparent"?new pr(NaN,NaN,NaN,0):null}function Dn(t){return new pr(t>>16&255,t>>8&255,255&t,1)}function mr(t,e,r,a){return a<=0&&(t=e=r=NaN),new pr(t,e,r,a)}function xr(t){return t instanceof bi||(t=In(t)),t?new pr((t=t.rgb()).r,t.g,t.b,t.opacity):new pr}function Ir(t,e,r,a){return arguments.length===1?xr(t):new pr(t,e,r,a==null?1:a)}function pr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Oa(){return"#"+hh(this.r)+hh(this.g)+hh(this.b)}function Fs(){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 hh(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ud(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Lo(t,e,r,a)}function fh(t){if(t instanceof Lo)return new Lo(t.h,t.s,t.l,t.opacity);if(t instanceof bi||(t=In(t)),!t)return new Lo;if(t instanceof Lo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),h=Math.max(e,r,a),u=NaN,p=h-s,_=(h+s)/2;return p?(u=e===h?(r-a)/p+6*(r0&&_<1?0:u,new Lo(u,p,_,t.opacity)}function Lo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function dh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Bo(bi,In,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:tn,formatHex:tn,formatHsl:function(){return fh(this).formatHsl()},formatRgb:sn,toString:sn}),Bo(pr,Ir,Qi(bi,{brighter:function(t){return t=t==null?$a:Math.pow($a,t),new pr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?io:Math.pow(io,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:Oa,formatHex:Oa,formatRgb:Fs,toString:Fs})),Bo(Lo,function(t,e,r,a){return arguments.length===1?fh(t):new Lo(t,e,r,a==null?1:a)},Qi(bi,{brighter:function(t){return t=t==null?$a:Math.pow($a,t),new Lo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?io:Math.pow(io,t),new Lo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new pr(dh(t>=240?t-240:t+120,s,a),dh(t,s,a),dh(t<120?t+240:t-120,s,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const _y=Math.PI/180,xy=180/Math.PI,qd=.96422,Wd=.82521,wy=4/29,$d=6/29,K1=3*$d*$d;function Hd(t){if(t instanceof as)return new as(t.l,t.a,t.b,t.opacity);if(t instanceof Rs)return ky(t);t instanceof pr||(t=xr(t));var e,r,a=Zd(t.r),s=Zd(t.g),h=Zd(t.b),u=Vd((.2225045*a+.7168786*s+.0606169*h)/1);return a===s&&s===h?e=r=u:(e=Vd((.4360747*a+.3850649*s+.1430804*h)/qd),r=Vd((.0139322*a+.0971045*s+.7141733*h)/Wd)),new as(116*u-16,500*(e-u),200*(u-r),t.opacity)}function as(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Vd(t){return t>.008856451679035631?Math.pow(t,1/3):t/K1+wy}function Gd(t){return t>$d?t*t*t:K1*(t-wy)}function Xd(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Zd(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function qv(t){if(t instanceof Rs)return new Rs(t.h,t.c,t.l,t.opacity);if(t instanceof as||(t=Hd(t)),t.a===0&&t.b===0)return new Rs(NaN,0()=>t;function Ty(t,e){return function(r){return t+r*e}}function ph(t,e){var r=e-t;return r?Ty(t,r):Jd(isNaN(t)?e:t)}function Wv(t){return function(e,r){var a=t((e=Qd(e)).h,(r=Qd(r)).h),s=ph(e.c,r.c),h=ph(e.l,r.l),u=ph(e.opacity,r.opacity);return function(p){return e.h=a(p),e.c=s(p),e.l=h(p),e.opacity=u(p),e+""}}}const $v=Wv(function(t,e){var r=e-t;return r?Ty(t,r>180||r<-180?r-360*Math.round(r/360):r):Jd(isNaN(t)?e:t)});var Kd=Math.sqrt(50),tp=Math.sqrt(10),ep=Math.sqrt(2);function np(t,e,r){var a=(e-t)/Math.max(0,r),s=Math.floor(Math.log(a)/Math.LN10),h=a/Math.pow(10,s);return s>=0?(h>=Kd?10:h>=tp?5:h>=ep?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(h>=Kd?10:h>=tp?5:h>=ep?2:1)}function rp(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),h=a/s;return h>=Kd?s*=10:h>=tp?s*=5:h>=ep&&(s*=2),ee?1:t>=e?0:NaN}function ap(t){let e=t,r=t,a=t;function s(h,u,p=0,_=h.length){if(p<_){if(r(u,u)!==0)return _;do{const b=p+_>>>1;a(h[b],u)<0?p=b+1:_=b}while(p<_)}return p}return t.length!==2&&(e=(h,u)=>t(h)-u,r=ip,a=(h,u)=>ip(t(h),u)),{left:s,center:function(h,u,p=0,_=h.length){const b=s(h,u,p,_-1);return b>p&&e(h[b-1],u)>-e(h[b],u)?b-1:b},right:function(h,u,p=0,_=h.length){if(p<_){if(r(u,u)!==0)return _;do{const b=p+_>>>1;a(h[b],u)<=0?p=b+1:_=b}while(p<_)}return p}}}const Hv=ap(ip),Vv=Hv.right,os=(ap(function(t){return t===null?NaN:+t}).center,Vv);function t0(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function op(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function ss(){}var e0=.7,n0=1.4285714285714286,bc="\\s*([+-]?\\d+)\\s*",ol="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",cs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gv=/^#([0-9a-f]{3,8})$/,Xv=new RegExp("^rgb\\("+[bc,bc,bc]+"\\)$"),sp=new RegExp("^rgb\\("+[cs,cs,cs]+"\\)$"),Zv=new RegExp("^rgba\\("+[bc,bc,bc,ol]+"\\)$"),Ey=new RegExp("^rgba\\("+[cs,cs,cs,ol]+"\\)$"),cp=new RegExp("^hsl\\("+[ol,cs,cs]+"\\)$"),Cy=new RegExp("^hsla\\("+[ol,cs,cs,ol]+"\\)$"),r0={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 sl(){return this.rgb().formatHex()}function cl(){return this.rgb().formatRgb()}function Zl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Gv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?i0(e):r===3?new ao(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?a0(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?a0(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=Xv.exec(t))?new ao(e[1],e[2],e[3],1):(e=sp.exec(t))?new ao(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zv.exec(t))?a0(e[1],e[2],e[3],e[4]):(e=Ey.exec(t))?a0(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cp.exec(t))?Sy(e[1],e[2]/100,e[3]/100,1):(e=Cy.exec(t))?Sy(e[1],e[2]/100,e[3]/100,e[4]):r0.hasOwnProperty(t)?i0(r0[t]):t==="transparent"?new ao(NaN,NaN,NaN,0):null}function i0(t){return new ao(t>>16&255,t>>8&255,255&t,1)}function a0(t,e,r,a){return a<=0&&(t=e=r=NaN),new ao(t,e,r,a)}function o0(t){return t instanceof ss||(t=Zl(t)),t?new ao((t=t.rgb()).r,t.g,t.b,t.opacity):new ao}function Ql(t,e,r,a){return arguments.length===1?o0(t):new ao(t,e,r,a==null?1:a)}function ao(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function ls(){return"#"+s0(this.r)+s0(this.g)+s0(this.b)}function lp(){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 s0(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Sy(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ha(t,e,r,a)}function Ay(t){if(t instanceof Ha)return new Ha(t.h,t.s,t.l,t.opacity);if(t instanceof ss||(t=Zl(t)),!t)return new Ha;if(t instanceof Ha)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),h=Math.max(e,r,a),u=NaN,p=h-s,_=(h+s)/2;return p?(u=e===h?(r-a)/p+6*(r0&&_<1?0:u,new Ha(u,p,_,t.opacity)}function Ha(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function up(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}t0(ss,Zl,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:sl,formatHex:sl,formatHsl:function(){return Ay(this).formatHsl()},formatRgb:cl,toString:cl}),t0(ao,Ql,op(ss,{brighter:function(t){return t=t==null?n0:Math.pow(n0,t),new ao(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?e0:Math.pow(e0,t),new ao(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:ls,formatHex:ls,formatRgb:lp,toString:lp})),t0(Ha,function(t,e,r,a){return arguments.length===1?Ay(t):new Ha(t,e,r,a==null?1:a)},op(ss,{brighter:function(t){return t=t==null?n0:Math.pow(n0,t),new Ha(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?e0:Math.pow(e0,t),new Ha(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new ao(up(t>=240?t-240:t+120,s,a),up(t,s,a),up(t<120?t+240:t-120,s,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const hp=t=>()=>t;function My(t,e){var r=e-t;return r?function(a,s){return function(h){return a+h*s}}(t,r):hp(isNaN(t)?e:t)}const c0=function t(e){var r=function(s){return(s=+s)==1?My:function(h,u){return u-h?function(p,_,b){return p=Math.pow(p,b),_=Math.pow(_,b)-p,b=1/b,function(M){return Math.pow(p+M*_,b)}}(h,u,s):hp(isNaN(h)?u:h)}}(e);function a(s,h){var u=r((s=Ql(s)).r,(h=Ql(h)).r),p=r(s.g,h.g),_=r(s.b,h.b),b=My(s.opacity,h.opacity);return function(M){return s.r=u(M),s.g=p(M),s.b=_(M),s.opacity=b(M),s+""}}return a.gamma=t,a}(1);function Qv(t,e){var r,a=e?e.length:0,s=t?Math.min(a,t.length):0,h=new Array(s),u=new Array(a);for(r=0;rh&&(s=e.slice(h,s),p[u]?p[u]+=s:p[++u]=s),(r=r[0])===(a=a[0])?p[u]?p[u]+=a:p[++u]=a:(p[++u]=null,_.push({i:u,x:l0(r,a)})),h=gh.lastIndex;return h$&&(ht=R,R=$,$=ht),b=function(pt){return Math.max(R,Math.min($,pt))}),a=it>2?gp:t5,s=h=null,I}function I(R){return R==null||isNaN(R=+R)?r:(s||(s=a(u.map(t),p,_)))(t(b(R)))}return I.invert=function(R){return b(e((h||(h=a(p,u.map(t),l0)))(R)))},I.domain=function(R){return arguments.length?(u=Array.from(R,Oy),M()):u.slice()},I.range=function(R){return arguments.length?(p=Array.from(R),M()):p.slice()},I.rangeRound=function(R){return p=Array.from(R),_=h0,M()},I.clamp=function(R){return arguments.length?(b=!!R||Jl,M()):b!==Jl},I.interpolate=function(R){return arguments.length?(_=R,M()):_},I.unknown=function(R){return arguments.length?(r=R,I):r},function(R,$){return t=R,e=$,M()}}()(Jl,Jl)}function Ps(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var By,yp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yh(t){if(!(e=yp.exec(t)))throw new Error("invalid format: "+t);var e;return new Ys({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 Ys(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 p0(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function Kl(t){return(t=p0(Math.abs(t)))?t[1]:NaN}function Ly(t,e){var r=p0(t,e);if(!r)return t+"";var a=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}yh.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 Iy={"%":(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)=>Ly(100*t,e),r:Ly,s:function(t,e){var r=p0(t,e);if(!r)return t+"";var a=r[0],s=r[1],h=s-(By=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,u=a.length;return h===u?a:h>u?a+new Array(h-u+1).join("0"):h>0?a.slice(0,h)+"."+a.slice(h):"0."+new Array(1-h).join("0")+p0(t,Math.max(0,e+h-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Fy(t){return t}var mp,oo,mh,vp=Array.prototype.map,zs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function e5(t){var e=t.domain;return t.ticks=function(r){var a=e();return function(s,h,u){var p,_,b,M,I=-1;if(u=+u,(s=+s)==(h=+h)&&u>0)return[s];if((p=h0){let R=Math.round(s/M),$=Math.round(h/M);for(R*Mh&&--$,b=new Array(_=$-R+1);++I<_;)b[I]=(R+I)*M}else{M=-M;let R=Math.round(s*M),$=Math.round(h*M);for(R/Mh&&--$,b=new Array(_=$-R+1);++I<_;)b[I]=(R+I)/M}return p&&b.reverse(),b}(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var s=e();return function(h,u,p,_){var b,M=rp(h,u,p);switch((_=yh(_==null?",f":_)).type){case"s":var I=Math.max(Math.abs(h),Math.abs(u));return _.precision!=null||isNaN(b=function(R,$){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Kl($)/3)))-Kl(Math.abs(R)))}(M,I))||(_.precision=b),mh(_,I);case"":case"e":case"g":case"p":case"r":_.precision!=null||isNaN(b=function(R,$){return R=Math.abs(R),$=Math.abs($)-R,Math.max(0,Kl($)-Kl(R))+1}(M,Math.max(Math.abs(h),Math.abs(u))))||(_.precision=b-(_.type==="e"));break;case"f":case"%":_.precision!=null||isNaN(b=function(R){return Math.max(0,-Kl(Math.abs(R)))}(M))||(_.precision=b-2*(_.type==="%"))}return oo(_)}(s[0],s[s.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a,s,h=e(),u=0,p=h.length-1,_=h[u],b=h[p],M=10;for(b<_&&(s=_,_=b,b=s,s=u,u=p,p=s);M-- >0;){if((s=np(_,b,r))===a)return h[u]=_,h[p]=b,e(h);if(s>0)_=Math.floor(_/s)*s,b=Math.ceil(b/s)*s;else{if(!(s<0))break;_=Math.ceil(_*s)/s,b=Math.floor(b*s)/s}a=s}return t},t}function Ry(){var t=d0();return t.copy=function(){return f0(t,Ry())},Ps.apply(t,arguments),e5(t)}mp=function(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?Fy:(e=vp.call(t.grouping,Number),r=t.thousands+"",function(R,$){for(var ht=R.length,it=[],pt=0,ft=e[0],xt=0;ht>0&&ft>0&&(xt+ft+1>$&&(ft=Math.max(1,$-xt)),it.push(R.substring(ht-=ft,ht+ft)),!((xt+=ft+1)>$));)ft=e[pt=(pt+1)%e.length];return it.reverse().join(r)}),s=t.currency===void 0?"":t.currency[0]+"",h=t.currency===void 0?"":t.currency[1]+"",u=t.decimal===void 0?".":t.decimal+"",p=t.numerals===void 0?Fy:function(R){return function($){return $.replace(/[0-9]/g,function(ht){return R[+ht]})}}(vp.call(t.numerals,String)),_=t.percent===void 0?"%":t.percent+"",b=t.minus===void 0?"\u2212":t.minus+"",M=t.nan===void 0?"NaN":t.nan+"";function I(R){var $=(R=yh(R)).fill,ht=R.align,it=R.sign,pt=R.symbol,ft=R.zero,xt=R.width,mt=R.comma,Wt=R.precision,re=R.trim,Rt=R.type;Rt==="n"?(mt=!0,Rt="g"):Iy[Rt]||(Wt===void 0&&(Wt=12),re=!0,Rt="g"),(ft||$==="0"&&ht==="=")&&(ft=!0,$="0",ht="=");var Jt=pt==="$"?s:pt==="#"&&/[boxX]/.test(Rt)?"0"+Rt.toLowerCase():"",te=pt==="$"?h:/[%p]/.test(Rt)?_:"",Et=Iy[Rt],wt=/[defgprs%]/.test(Rt);function vt(ct){var Mt,yt,xe,Te=Jt,Gt=te;if(Rt==="c")Gt=Et(ct)+Gt,ct="";else{var ve=(ct=+ct)<0||1/ct<0;if(ct=isNaN(ct)?M:Et(Math.abs(ct),Wt),re&&(ct=function(Fe){t:for(var Ye,fn=Fe.length,rn=1,Sn=-1;rn0&&(Sn=0)}return Sn>0?Fe.slice(0,Sn)+Fe.slice(Ye+1):Fe}(ct)),ve&&+ct==0&&it!=="+"&&(ve=!1),Te=(ve?it==="("?it:b:it==="-"||it==="("?"":it)+Te,Gt=(Rt==="s"?zs[8+By/3]:"")+Gt+(ve&&it==="("?")":""),wt){for(Mt=-1,yt=ct.length;++Mt(xe=ct.charCodeAt(Mt))||xe>57){Gt=(xe===46?u+ct.slice(Mt+1):ct.slice(Mt))+Gt,ct=ct.slice(0,Mt);break}}}mt&&!ft&&(ct=a(ct,1/0));var le=Te.length+ct.length+Gt.length,be=le>1)+Te+ct+Gt+be.slice(le);break;default:ct=be+Te+ct+Gt}return p(ct)}return Wt=Wt===void 0?6:/[gprs]/.test(Rt)?Math.max(1,Math.min(21,Wt)):Math.max(0,Math.min(20,Wt)),vt.toString=function(){return R+""},vt}return{format:I,formatPrefix:function(R,$){var ht=I(((R=yh(R)).type="f",R)),it=3*Math.max(-8,Math.min(8,Math.floor(Kl($)/3))),pt=Math.pow(10,-it),ft=zs[8+it/3];return function(xt){return ht(pt*xt)+ft}}}}({thousands:",",grouping:[3],currency:["$",""]}),oo=mp.format,mh=mp.formatPrefix;class Py extends Map{constructor(e,r=Yy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,s]of e)this.set(a,s)}get(e){return super.get(bp(this,e))}has(e){return super.has(bp(this,e))}set(e,r){return super.set(function({_intern:a,_key:s},h){const u=s(h);return a.has(u)?a.get(u):(a.set(u,h),h)}(this,e),r)}delete(e){return super.delete(function({_intern:r,_key:a},s){const h=a(s);return r.has(h)&&(s=r.get(h),r.delete(h)),s}(this,e))}}function bp({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function Yy(t){return t!==null&&typeof t=="object"?t.valueOf():t}const vh=Symbol("implicit");function _c(){var t=new Py,e=[],r=[],a=vh;function s(h){let u=t.get(h);if(u===void 0){if(a!==vh)return a;t.set(h,u=e.push(h)-1)}return r[u%r.length]}return s.domain=function(h){if(!arguments.length)return e.slice();e=[],t=new Py;for(const u of h)t.has(u)||t.set(u,e.push(u)-1);return s},s.range=function(h){return arguments.length?(r=Array.from(h),s):r.slice()},s.unknown=function(h){return arguments.length?(a=h,s):a},s.copy=function(){return _c(e,r).unknown(a)},Ps.apply(s,arguments),s}const tu=1e3,xc=6e4,bh=36e5,_p=864e5,xp=6048e5,g0=31536e6;var y0=new Date,m0=new Date;function zi(t,e,r,a){function s(h){return t(h=arguments.length===0?new Date:new Date(+h)),h}return s.floor=function(h){return t(h=new Date(+h)),h},s.ceil=function(h){return t(h=new Date(h-1)),e(h,1),t(h),h},s.round=function(h){var u=s(h),p=s.ceil(h);return h-u0))return b;do b.push(_=new Date(+h)),e(h,p),t(h);while(_=u)for(;t(u),!h(u);)u.setTime(u-1)},function(u,p){if(u>=u)if(p<0)for(;++p<=0;)for(;e(u,-1),!h(u););else for(;--p>=0;)for(;e(u,1),!h(u););})},r&&(s.count=function(h,u){return y0.setTime(+h),m0.setTime(+u),t(y0),t(m0),Math.floor(r(y0,m0))},s.every=function(h){return h=Math.floor(h),isFinite(h)&&h>0?h>1?s.filter(a?function(u){return a(u)%h==0}:function(u){return s.count(0,u)%h==0}):s:null}),s}var v0=zi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});v0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?zi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):v0:null};const wp=v0;var zy=zi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*tu)},function(t,e){return(e-t)/tu},function(t){return t.getUTCSeconds()});const eu=zy;var n5=zi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tu)},function(t,e){t.setTime(+t+e*xc)},function(t,e){return(e-t)/xc},function(t){return t.getMinutes()});const _h=n5;var Io=zi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tu-t.getMinutes()*xc)},function(t,e){t.setTime(+t+e*bh)},function(t,e){return(e-t)/bh},function(t){return t.getHours()});const b0=Io;var kp=zi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xc)/_p,t=>t.getDate()-1);const nu=kp;function js(t){return zi(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())*xc)/xp})}var _0=js(0),Tp=js(1);js(2),js(3);var wc=js(4);js(5),js(6);var us=zi(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 Ep=us;var Cp=zi(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()});Cp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zi(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 Us=Cp;zi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*xc)},function(t,e){return(e-t)/xc},function(t){return t.getUTCMinutes()}),zi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*bh)},function(t,e){return(e-t)/bh},function(t){return t.getUTCHours()});var Sp=zi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/_p},function(t){return t.getUTCDate()-1});const xh=Sp;function Fo(t){return zi(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)/xp})}var jy=Fo(0),x0=Fo(1);Fo(2),Fo(3);var ru=Fo(4);Fo(5),Fo(6),zi(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var Uy=zi(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()});Uy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?zi(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 Ba=Uy;function ll(t,e,r,a,s,h){const u=[[eu,1,tu],[eu,5,5e3],[eu,15,15e3],[eu,30,3e4],[h,1,xc],[h,5,3e5],[h,15,9e5],[h,30,18e5],[s,1,bh],[s,3,108e5],[s,6,216e5],[s,12,432e5],[a,1,_p],[a,2,1728e5],[r,1,xp],[e,1,2592e6],[e,3,7776e6],[t,1,g0]];function p(_,b,M){const I=Math.abs(b-_)/M,R=ap(([,,it])=>it).right(u,I);if(R===u.length)return t.every(rp(_/g0,b/g0,M));if(R===0)return wp.every(Math.max(rp(_,b,M),1));const[$,ht]=u[I/u[R-1][2][e.toLowerCase(),r]))}function w0(t,e,r){var a=ji.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function Dp(t,e,r){var a=ji.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function a5(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function o5(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function s5(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function $y(t,e,r){var a=ji.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Hy(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function Vy(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function Op(t,e,r){var a=ji.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Gy(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function Bp(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Va(t,e,r){var a=ji.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Ch(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function ul(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Xy(t,e,r){var a=ji.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function c5(t,e,r){var a=ji.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function l5(t,e,r){var a=ji.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function u5(t,e,r){var a=Mp.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function h5(t,e,r){var a=ji.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function f5(t,e,r){var a=ji.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Zy(t,e){return Er(t.getDate(),e,2)}function hl(t,e){return Er(t.getHours(),e,2)}function Qy(t,e){return Er(t.getHours()%12||12,e,2)}function d5(t,e){return Er(1+nu.count(Us(t),t),e,3)}function Jy(t,e){return Er(t.getMilliseconds(),e,3)}function p5(t,e){return Jy(t,e)+"000"}function g5(t,e){return Er(t.getMonth()+1,e,2)}function y5(t,e){return Er(t.getMinutes(),e,2)}function m5(t,e){return Er(t.getSeconds(),e,2)}function v5(t){var e=t.getDay();return e===0?7:e}function b5(t,e){return Er(_0.count(Us(t)-1,t),e,2)}function Ky(t){var e=t.getDay();return e>=4||e===0?wc(t):wc.ceil(t)}function _5(t,e){return t=Ky(t),Er(wc.count(Us(t),t)+(Us(t).getDay()===4),e,2)}function x5(t){return t.getDay()}function tm(t,e){return Er(Tp.count(Us(t)-1,t),e,2)}function w5(t,e){return Er(t.getFullYear()%100,e,2)}function k5(t,e){return Er((t=Ky(t)).getFullYear()%100,e,2)}function em(t,e){return Er(t.getFullYear()%1e4,e,4)}function nm(t,e){var r=t.getDay();return Er((t=r>=4||r===0?wc(t):wc.ceil(t)).getFullYear()%1e4,e,4)}function rm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Er(e/60|0,"0",2)+Er(e%60,"0",2)}function im(t,e){return Er(t.getUTCDate(),e,2)}function T5(t,e){return Er(t.getUTCHours(),e,2)}function am(t,e){return Er(t.getUTCHours()%12||12,e,2)}function kc(t,e){return Er(1+xh.count(Ba(t),t),e,3)}function om(t,e){return Er(t.getUTCMilliseconds(),e,3)}function E5(t,e){return om(t,e)+"000"}function sm(t,e){return Er(t.getUTCMonth()+1,e,2)}function C5(t,e){return Er(t.getUTCMinutes(),e,2)}function S5(t,e){return Er(t.getUTCSeconds(),e,2)}function cm(t){var e=t.getUTCDay();return e===0?7:e}function k0(t,e){return Er(jy.count(Ba(t)-1,t),e,2)}function lm(t){var e=t.getUTCDay();return e>=4||e===0?ru(t):ru.ceil(t)}function Sh(t,e){return t=lm(t),Er(ru.count(Ba(t),t)+(Ba(t).getUTCDay()===4),e,2)}function A5(t){return t.getUTCDay()}function Lp(t,e){return Er(x0.count(Ba(t)-1,t),e,2)}function M5(t,e){return Er(t.getUTCFullYear()%100,e,2)}function N5(t,e){return Er((t=lm(t)).getUTCFullYear()%100,e,2)}function um(t,e){return Er(t.getUTCFullYear()%1e4,e,4)}function iu(t,e){var r=t.getUTCDay();return Er((t=r>=4||r===0?ru(t):ru.ceil(t)).getUTCFullYear()%1e4,e,4)}function D5(){return"+0000"}function Ip(){return"%"}function hm(t){return+t}function fm(t){return Math.floor(+t/1e3)}function O5(t){return new Date(t)}function B5(t){return t instanceof Date?+t:+new Date(+t)}function dm(t,e,r,a,s,h,u,p,_,b){var M=d0(),I=M.invert,R=M.domain,$=b(".%L"),ht=b(":%S"),it=b("%I:%M"),pt=b("%I %p"),ft=b("%a %d"),xt=b("%b %d"),mt=b("%B"),Wt=b("%Y");function re(Rt){return(_(Rt)=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:hm,s:fm,S:m5,u:v5,U:b5,V:_5,w:x5,W:tm,x:null,X:null,y:w5,Y:em,Z:rm,"%":Ip},Wt={a:function(Et){return u[Et.getUTCDay()]},A:function(Et){return h[Et.getUTCDay()]},b:function(Et){return _[Et.getUTCMonth()]},B:function(Et){return p[Et.getUTCMonth()]},c:null,d:im,e:im,f:E5,g:N5,G:iu,H:T5,I:am,j:kc,L:om,m:sm,M:C5,p:function(Et){return s[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:hm,s:fm,S:S5,u:cm,U:k0,V:Sh,w:A5,W:Lp,x:null,X:null,y:M5,Y:um,Z:D5,"%":Ip},re={a:function(Et,wt,vt){var ct=$.exec(wt.slice(vt));return ct?(Et.w=ht.get(ct[0].toLowerCase()),vt+ct[0].length):-1},A:function(Et,wt,vt){var ct=I.exec(wt.slice(vt));return ct?(Et.w=R.get(ct[0].toLowerCase()),vt+ct[0].length):-1},b:function(Et,wt,vt){var ct=ft.exec(wt.slice(vt));return ct?(Et.m=xt.get(ct[0].toLowerCase()),vt+ct[0].length):-1},B:function(Et,wt,vt){var ct=it.exec(wt.slice(vt));return ct?(Et.m=pt.get(ct[0].toLowerCase()),vt+ct[0].length):-1},c:function(Et,wt,vt){return te(Et,e,wt,vt)},d:Bp,e:Bp,f:l5,g:Hy,G:$y,H:Ch,I:Ch,j:Va,L:c5,m:Gy,M:ul,p:function(Et,wt,vt){var ct=b.exec(wt.slice(vt));return ct?(Et.p=M.get(ct[0].toLowerCase()),vt+ct[0].length):-1},q:Op,Q:h5,s:f5,S:Xy,u:Dp,U:a5,V:o5,w:w0,W:s5,x:function(Et,wt,vt){return te(Et,r,wt,vt)},X:function(Et,wt,vt){return te(Et,a,wt,vt)},y:Hy,Y:$y,Z:Vy,"%":u5};function Rt(Et,wt){return function(vt){var ct,Mt,yt,xe=[],Te=-1,Gt=0,ve=Et.length;for(vt instanceof Date||(vt=new Date(+vt));++Te53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Mt=(ct=Ap(wh(yt.y,0,1))).getUTCDay(),ct=Mt>4||Mt===0?x0.ceil(ct):x0(ct),ct=xh.offset(ct,7*(yt.V-1)),yt.y=ct.getUTCFullYear(),yt.m=ct.getUTCMonth(),yt.d=ct.getUTCDate()+(yt.w+6)%7):(Mt=(ct=hs(wh(yt.y,0,1))).getDay(),ct=Mt>4||Mt===0?Tp.ceil(ct):Tp(ct),ct=nu.offset(ct,7*(yt.V-1)),yt.y=ct.getFullYear(),yt.m=ct.getMonth(),yt.d=ct.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Mt="Z"in yt?Ap(wh(yt.y,0,1)).getUTCDay():hs(wh(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Mt+5)%7:yt.w+7*yt.U-(Mt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,Ap(yt)):hs(yt)}}function te(Et,wt,vt,ct){for(var Mt,yt,xe=0,Te=wt.length,Gt=vt.length;xe=Gt)return-1;if((Mt=wt.charCodeAt(xe++))===37){if(Mt=wt.charAt(xe++),!(yt=re[Mt in fs?wt.charAt(xe++):Mt])||(ct=yt(Et,vt,ct))<0)return-1}else if(Mt!=vt.charCodeAt(ct++))return-1}return ct}return mt.x=Rt(r,mt),mt.X=Rt(a,mt),mt.c=Rt(e,mt),Wt.x=Rt(r,Wt),Wt.X=Rt(a,Wt),Wt.c=Rt(e,Wt),{format:function(Et){var wt=Rt(Et+="",mt);return wt.toString=function(){return Et},wt},parse:function(Et){var wt=Jt(Et+="",!1);return wt.toString=function(){return Et},wt},utcFormat:function(Et){var wt=Rt(Et+="",Wt);return wt.toString=function(){return Et},wt},utcParse:function(Et){var wt=Jt(Et+="",!0);return wt.toString=function(){return Et},wt}}}({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"]}),Wy=kh.format,kh.parse,kh.utcFormat,kh.utcParse;var F5=Array.prototype.find;function R5(){return this.firstElementChild}var Rp=Array.prototype.filter;function P5(){return Array.from(this.children)}function mm(t){return new Array(t.length)}function T0(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Y5(t){return function(){return t}}function Ui(t,e,r,a,s,h){for(var u,p=0,_=e.length,b=h.length;pe?1:t>=e?0:NaN}T0.prototype={constructor:T0,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 Pp="http://www.w3.org/1999/xhtml";const Ah={svg:"http://www.w3.org/2000/svg",xhtml:Pp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ou(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Ah.hasOwnProperty(e)?{space:Ah[e],local:t}:t}function bm(t){return function(){this.removeAttribute(t)}}function Ia(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j5(t,e){return function(){this.setAttribute(t,e)}}function U5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function q5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function W5(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 Yp(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $5(t){return function(){this.style.removeProperty(t)}}function H5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function V5(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function su(t,e){return t.style.getPropertyValue(e)||Yp(t).getComputedStyle(t,null).getPropertyValue(e)}function G5(t){return function(){delete this[t]}}function X5(t,e){return function(){this[t]=e}}function Z5(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function _m(t){return t.trim().split(/^|\s+/)}function zp(t){return t.classList||new Mh(t)}function Mh(t){this._node=t,this._names=_m(t.getAttribute("class")||"")}function fl(t,e){for(var r=zp(t),a=-1,s=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Nm(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var cu=[null];function Fr(t,e){this._groups=t,this._parents=e}function Wr(){return new Fr([[document.documentElement]],cu)}Fr.prototype=Wr.prototype={constructor:Fr,select:function(t){typeof t!="function"&&(t=au(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s=re&&(re=Wt+1);!(mt=pt[re])&&++re=0;)(a=s[h])&&(u&&4^a.compareDocumentPosition(u)&&u.parentNode.insertBefore(a,u),u=a);return this},sort:function(t){function e(I,R){return I&&R?t(I.__data__,R.__data__):!I-!R}t||(t=z5);for(var r=this._groups,a=r.length,s=new Array(a),h=0;h1?this.each((e==null?$5:typeof e=="function"?V5:H5)(t,e,r==null?"":r)):su(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?G5:typeof e=="function"?Z5:X5)(t,e)):this.node()[t]},classed:function(t,e){var r=_m(t+"");if(arguments.length<2){for(var a=zp(this.node()),s=-1,h=r.length;++sds)if(Math.abs(M*p-_*b)>ds&&s){var R=r-h,$=a-u,ht=p*p+_*_,it=R*R+$*$,pt=Math.sqrt(ht),ft=Math.sqrt(I),xt=s*Math.tan((ha-Math.acos((ht+I-it)/(2*pt*ft)))/2),mt=xt/ft,Wt=xt/pt;Math.abs(mt-1)>ds&&(this._+="L"+(t+mt*b)+","+(e+mt*M)),this._+="A"+s+","+s+",0,0,"+ +(M*R>b*$)+","+(this._x1=t+Wt*p)+","+(this._y1=e+Wt*_)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,s,h){t=+t,e=+e,h=!!h;var u=(r=+r)*Math.cos(a),p=r*Math.sin(a),_=t+u,b=e+p,M=1^h,I=h?a-s:s-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+_+","+b:(Math.abs(this._x1-_)>ds||Math.abs(this._y1-b)>ds)&&(this._+="L"+_+","+b),r&&(I<0&&(I=I%En+En),I>Dm?this._+="A"+r+","+r+",0,1,"+M+","+(t-u)+","+(e-p)+"A"+r+","+r+",0,1,"+M+","+(this._x1=_)+","+(this._y1=b):I>ds&&(this._+="A"+r+","+r+",0,"+ +(I>=ha)+","+M+","+(this._x1=t+r*Math.cos(s))+","+(this._y1=e+r*Math.sin(s))))},rect:function(t,e,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};const mn=N0;function Cr(t){return function(){return t}}var Ai=Math.abs,Ji=Math.atan2,Sc=Math.cos,Fa=Math.max,D0=Math.min,Sr=Math.sin,qs=Math.sqrt,Ra=1e-12,uu=Math.PI,hu=uu/2,Oh=2*uu;function Ro(t){return t>1?0:t<-1?uu:Math.acos(t)}function Wp(t){return t>=1?hu:t<=-1?-hu:Math.asin(t)}function Om(t){return t.innerRadius}function $p(t){return t.outerRadius}function Hp(t){return t.startAngle}function Vp(t){return t.endAngle}function O0(t){return t&&t.padAngle}function B0(t,e,r,a,s,h,u,p){var _=r-t,b=a-e,M=u-s,I=p-h,R=I*_-M*b;if(!(R*Ryt*yt+xe*xe&&(te=wt,Et=vt),{cx:te,cy:Et,x01:-M,y01:-I,x11:te*(s/re-1),y11:Et*(s/re-1)}}function Gp(){var t=Om,e=$p,r=Cr(0),a=null,s=Hp,h=Vp,u=O0,p=null;function _(){var b,M,I=+t.apply(this,arguments),R=+e.apply(this,arguments),$=s.apply(this,arguments)-hu,ht=h.apply(this,arguments)-hu,it=Ai(ht-$),pt=ht>$;if(p||(p=b=mn()),RRa)if(it>Oh-Ra)p.moveTo(R*Sc($),R*Sr($)),p.arc(0,0,R,$,ht,!pt),I>Ra&&(p.moveTo(I*Sc(ht),I*Sr(ht)),p.arc(0,0,I,ht,$,pt));else{var ft,xt,mt=$,Wt=ht,re=$,Rt=ht,Jt=it,te=it,Et=u.apply(this,arguments)/2,wt=Et>Ra&&(a?+a.apply(this,arguments):qs(I*I+R*R)),vt=D0(Ai(R-I)/2,+r.apply(this,arguments)),ct=vt,Mt=vt;if(wt>Ra){var yt=Wp(wt/I*Sr(Et)),xe=Wp(wt/R*Sr(Et));(Jt-=2*yt)>Ra?(re+=yt*=pt?1:-1,Rt-=yt):(Jt=0,re=Rt=($+ht)/2),(te-=2*xe)>Ra?(mt+=xe*=pt?1:-1,Wt-=xe):(te=0,mt=Wt=($+ht)/2)}var Te=R*Sc(mt),Gt=R*Sr(mt),ve=I*Sc(Rt),le=I*Sr(Rt);if(vt>Ra){var be,Fe=R*Sc(Wt),Ye=R*Sr(Wt),fn=I*Sc(re),rn=I*Sr(re);if(itRa?Mt>Ra?(ft=so(fn,rn,Te,Gt,R,Mt,pt),xt=so(Fe,Ye,ve,le,R,Mt,pt),p.moveTo(ft.cx+ft.x01,ft.cy+ft.y01),MtRa&&Jt>Ra?ct>Ra?(ft=so(ve,le,Fe,Ye,I,-ct,pt),xt=so(Te,Gt,fn,rn,I,-ct,pt),p.lineTo(ft.cx+ft.x01,ft.cy+ft.y01),ctt?1:e>=t?0:NaN}function fu(t){return t}function du(){}function dl(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 Bh(t){this._context=t}function Xr(t){return new Bh(t)}function Pa(t){this._context=t}function di(t){this._context=t}function Ga(t){this._context=t}function Ac(t){return t<0?-1:1}function Xp(t,e,r){var a=t._x1-t._x0,s=e-t._x1,h=(t._y1-t._y0)/(a||s<0&&-0),u=(r-t._y1)/(s||a<0&&-0),p=(h*s+u*a)/(a+s);return(Ac(h)+Ac(u))*Math.min(Math.abs(h),Math.abs(u),.5*Math.abs(p))||0}function Zp(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Mc(t,e,r){var a=t._x0,s=t._y0,h=t._x1,u=t._y1,p=(h-a)/3;t._context.bezierCurveTo(a+p,s+p*e,h-p,u-p*r,h,u)}function Yo(t){this._context=t}function ps(t){this._context=new pu(t)}function pu(t){this._context=t}function Lh(t){this._context=t}function Ih(t){var e,r,a=t.length-1,s=new Array(a),h=new Array(a),u=new Array(a);for(s[0]=0,h[0]=2,u[0]=t[0]+2*t[1],e=1;e=0;--e)s[e]=(u[e]-s[e+1])/h[e];for(h[a-1]=(t[a]+s[a-1])/2,e=0;e=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 gu=new Date,yu=new Date;function vo(t,e,r,a){function s(h){return t(h=arguments.length===0?new Date:new Date(+h)),h}return s.floor=function(h){return t(h=new Date(+h)),h},s.ceil=function(h){return t(h=new Date(h-1)),e(h,1),t(h),h},s.round=function(h){var u=s(h),p=s.ceil(h);return h-u0))return b;do b.push(_=new Date(+h)),e(h,p),t(h);while(_=u)for(;t(u),!h(u);)u.setTime(u-1)},function(u,p){if(u>=u)if(p<0)for(;++p<=0;)for(;e(u,-1),!h(u););else for(;--p>=0;)for(;e(u,1),!h(u););})},r&&(s.count=function(h,u){return gu.setTime(+h),yu.setTime(+u),t(gu),t(yu),Math.floor(r(gu,yu))},s.every=function(h){return h=Math.floor(h),isFinite(h)&&h>0?h>1?s.filter(a?function(u){return a(u)%h==0}:function(u){return s.count(0,u)%h==0}):s:null}),s}const Fh=864e5,F0=6048e5;function Ws(t){return vo(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)/F0})}var Qp=Ws(0),R0=Ws(1);Ws(2),Ws(3);var mu=Ws(4);Ws(5),Ws(6);var Ya=vo(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Fh},function(t){return t.getUTCDate()-1});const Ta=Ya;function Mi(t){return vo(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()))/F0})}var Rh=Mi(0),zo=Mi(1);Mi(2),Mi(3);var gl=Mi(4);Mi(5),Mi(6);var Im=vo(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Fh,t=>t.getDate()-1);const Jp=Im;var Kp=vo(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()});Kp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vo(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 vu=Kp;var Fm=vo(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()});Fm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vo(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const Ph=Fm;function za(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 t2(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 bu(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Yh,co,P0={"-":"",_:" ",0:"0"},xi=/^\s*\d+/,Rm=/^%/,K5=/[\\^$*+?|[\]().{}]/g;function Ar(t,e,r){var a=t<0?"-":"",s=(a?-t:t)+"",h=s.length;return a+(h[e.toLowerCase(),r]))}function tb(t,e,r){var a=xi.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function Ym(t,e,r){var a=xi.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function eb(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function _u(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function e2(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Y0(t,e,r){var a=xi.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function z0(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function zm(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function jm(t,e,r){var a=xi.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Um(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function n2(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function qm(t,e,r){var a=xi.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function r2(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function nb(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Wm(t,e,r){var a=xi.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function j0(t,e,r){var a=xi.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function U0(t,e,r){var a=xi.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function $m(t,e,r){var a=Rm.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Hm(t,e,r){var a=xi.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function i2(t,e,r){var a=xi.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function q0(t,e){return Ar(t.getDate(),e,2)}function Vm(t,e){return Ar(t.getHours(),e,2)}function Gm(t,e){return Ar(t.getHours()%12||12,e,2)}function rb(t,e){return Ar(1+Jp.count(vu(t),t),e,3)}function Xm(t,e){return Ar(t.getMilliseconds(),e,3)}function a2(t,e){return Xm(t,e)+"000"}function Zm(t,e){return Ar(t.getMonth()+1,e,2)}function Uh(t,e){return Ar(t.getMinutes(),e,2)}function W0(t,e){return Ar(t.getSeconds(),e,2)}function $0(t){var e=t.getDay();return e===0?7:e}function ib(t,e){return Ar(Rh.count(vu(t)-1,t),e,2)}function H0(t){var e=t.getDay();return e>=4||e===0?gl(t):gl.ceil(t)}function V0(t,e){return t=H0(t),Ar(gl.count(vu(t),t)+(vu(t).getDay()===4),e,2)}function G0(t){return t.getDay()}function o2(t,e){return Ar(zo.count(vu(t)-1,t),e,2)}function xu(t,e){return Ar(t.getFullYear()%100,e,2)}function ab(t,e){return Ar((t=H0(t)).getFullYear()%100,e,2)}function ob(t,e){return Ar(t.getFullYear()%1e4,e,4)}function sb(t,e){var r=t.getDay();return Ar((t=r>=4||r===0?gl(t):gl.ceil(t)).getFullYear()%1e4,e,4)}function Qm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ar(e/60|0,"0",2)+Ar(e%60,"0",2)}function X0(t,e){return Ar(t.getUTCDate(),e,2)}function cb(t,e){return Ar(t.getUTCHours(),e,2)}function Z0(t,e){return Ar(t.getUTCHours()%12||12,e,2)}function Jm(t,e){return Ar(1+Ta.count(Ph(t),t),e,3)}function s2(t,e){return Ar(t.getUTCMilliseconds(),e,3)}function Q0(t,e){return s2(t,e)+"000"}function Km(t,e){return Ar(t.getUTCMonth()+1,e,2)}function t3(t,e){return Ar(t.getUTCMinutes(),e,2)}function e3(t,e){return Ar(t.getUTCSeconds(),e,2)}function lb(t){var e=t.getUTCDay();return e===0?7:e}function n3(t,e){return Ar(Qp.count(Ph(t)-1,t),e,2)}function r3(t){var e=t.getUTCDay();return e>=4||e===0?mu(t):mu.ceil(t)}function i3(t,e){return t=r3(t),Ar(mu.count(Ph(t),t)+(Ph(t).getUTCDay()===4),e,2)}function a3(t){return t.getUTCDay()}function o3(t,e){return Ar(R0.count(Ph(t)-1,t),e,2)}function ub(t,e){return Ar(t.getUTCFullYear()%100,e,2)}function hb(t,e){return Ar((t=r3(t)).getUTCFullYear()%100,e,2)}function qh(t,e){return Ar(t.getUTCFullYear()%1e4,e,4)}function s3(t,e){var r=t.getUTCDay();return Ar((t=r>=4||r===0?mu(t):mu.ceil(t)).getUTCFullYear()%1e4,e,4)}function c3(){return"+0000"}function J0(){return"%"}function K0(t){return+t}function tf(t){return Math.floor(+t/1e3)}Yh=function(t){var e=t.dateTime,r=t.date,a=t.time,s=t.periods,h=t.days,u=t.shortDays,p=t.months,_=t.shortMonths,b=zh(s),M=jh(s),I=zh(h),R=jh(h),$=zh(u),ht=jh(u),it=zh(p),pt=jh(p),ft=zh(_),xt=jh(_),mt={a:function(Et){return u[Et.getDay()]},A:function(Et){return h[Et.getDay()]},b:function(Et){return _[Et.getMonth()]},B:function(Et){return p[Et.getMonth()]},c:null,d:q0,e:q0,f:a2,g:ab,G:sb,H:Vm,I:Gm,j:rb,L:Xm,m:Zm,M:Uh,p:function(Et){return s[+(Et.getHours()>=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:K0,s:tf,S:W0,u:$0,U:ib,V:V0,w:G0,W:o2,x:null,X:null,y:xu,Y:ob,Z:Qm,"%":J0},Wt={a:function(Et){return u[Et.getUTCDay()]},A:function(Et){return h[Et.getUTCDay()]},b:function(Et){return _[Et.getUTCMonth()]},B:function(Et){return p[Et.getUTCMonth()]},c:null,d:X0,e:X0,f:Q0,g:hb,G:s3,H:cb,I:Z0,j:Jm,L:s2,m:Km,M:t3,p:function(Et){return s[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:K0,s:tf,S:e3,u:lb,U:n3,V:i3,w:a3,W:o3,x:null,X:null,y:ub,Y:qh,Z:c3,"%":J0},re={a:function(Et,wt,vt){var ct=$.exec(wt.slice(vt));return ct?(Et.w=ht.get(ct[0].toLowerCase()),vt+ct[0].length):-1},A:function(Et,wt,vt){var ct=I.exec(wt.slice(vt));return ct?(Et.w=R.get(ct[0].toLowerCase()),vt+ct[0].length):-1},b:function(Et,wt,vt){var ct=ft.exec(wt.slice(vt));return ct?(Et.m=xt.get(ct[0].toLowerCase()),vt+ct[0].length):-1},B:function(Et,wt,vt){var ct=it.exec(wt.slice(vt));return ct?(Et.m=pt.get(ct[0].toLowerCase()),vt+ct[0].length):-1},c:function(Et,wt,vt){return te(Et,e,wt,vt)},d:n2,e:n2,f:U0,g:z0,G:Y0,H:r2,I:r2,j:qm,L:j0,m:Um,M:nb,p:function(Et,wt,vt){var ct=b.exec(wt.slice(vt));return ct?(Et.p=M.get(ct[0].toLowerCase()),vt+ct[0].length):-1},q:jm,Q:Hm,s:i2,S:Wm,u:Ym,U:eb,V:_u,w:tb,W:e2,x:function(Et,wt,vt){return te(Et,r,wt,vt)},X:function(Et,wt,vt){return te(Et,a,wt,vt)},y:z0,Y:Y0,Z:zm,"%":$m};function Rt(Et,wt){return function(vt){var ct,Mt,yt,xe=[],Te=-1,Gt=0,ve=Et.length;for(vt instanceof Date||(vt=new Date(+vt));++Te53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Mt=(ct=t2(bu(yt.y,0,1))).getUTCDay(),ct=Mt>4||Mt===0?R0.ceil(ct):R0(ct),ct=Ta.offset(ct,7*(yt.V-1)),yt.y=ct.getUTCFullYear(),yt.m=ct.getUTCMonth(),yt.d=ct.getUTCDate()+(yt.w+6)%7):(Mt=(ct=za(bu(yt.y,0,1))).getDay(),ct=Mt>4||Mt===0?zo.ceil(ct):zo(ct),ct=Jp.offset(ct,7*(yt.V-1)),yt.y=ct.getFullYear(),yt.m=ct.getMonth(),yt.d=ct.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Mt="Z"in yt?t2(bu(yt.y,0,1)).getUTCDay():za(bu(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Mt+5)%7:yt.w+7*yt.U-(Mt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,t2(yt)):za(yt)}}function te(Et,wt,vt,ct){for(var Mt,yt,xe=0,Te=wt.length,Gt=vt.length;xe=Gt)return-1;if((Mt=wt.charCodeAt(xe++))===37){if(Mt=wt.charAt(xe++),!(yt=re[Mt in P0?wt.charAt(xe++):Mt])||(ct=yt(Et,vt,ct))<0)return-1}else if(Mt!=vt.charCodeAt(ct++))return-1}return ct}return mt.x=Rt(r,mt),mt.X=Rt(a,mt),mt.c=Rt(e,mt),Wt.x=Rt(r,Wt),Wt.X=Rt(a,Wt),Wt.c=Rt(e,Wt),{format:function(Et){var wt=Rt(Et+="",mt);return wt.toString=function(){return Et},wt},parse:function(Et){var wt=Jt(Et+="",!1);return wt.toString=function(){return Et},wt},utcFormat:function(Et){var wt=Rt(Et+="",Wt);return wt.toString=function(){return Et},wt},utcParse:function(Et){var wt=Jt(Et+="",!0);return wt.toString=function(){return Et},wt}}}({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"]}),co=Yh.format,Yh.parse,Yh.utcFormat,Yh.utcParse;var c2={value:()=>{}};function $s(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function l3(t,e){for(var r,a=0,s=t.length;a0)for(var r,a,s=new Array(r),h=0;h=0&&e._call.call(void 0,t),e=e._next;--gs})()}finally{gs=0,function(){for(var t,e,r=Hs,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Hs=e);Nc=t,Xh(a)}(),Oc=0}}function wu(){var t=Xa.now(),e=t-yl;e>1e3&&($h-=e,yl=t)}function Xh(t){gs||(Dc&&(Dc=clearTimeout(Dc)),t-Oc>24?(t<1/0&&(Dc=setTimeout(Gh,t-Xa.now()-$h)),Wh&&(Wh=clearInterval(Wh))):(Wh||(yl=Xa.now(),Wh=setInterval(wu,1e3)),gs=1,jo(Gh)))}function nf(t,e,r){var a=new Bc;return e=e==null?0:+e,a.restart(s=>{a.stop(),t(s+e)},e,r),a}Bc.prototype=Vh.prototype={constructor:Bc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Hh():+r)+(e==null?0:+e),this._next||Nc===this||(Nc?Nc._next=this:Hs=this,Nc=this),this._call=t,this._time=r,Xh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xh())}};var Zh=h3("start","end","cancel","interrupt"),Uo=[];function ys(t,e,r,a,s,h){var u=t.__transition;if(u){if(r in u)return}else t.__transition={};(function(p,_,b){var M,I=p.__transition;function R(it){var pt,ft,xt,mt;if(b.state!==1)return ht();for(pt in I)if((mt=I[pt]).name===b.name){if(mt.state===3)return nf(R);mt.state===4?(mt.state=6,mt.timer.stop(),mt.on.call("interrupt",p,p.__data__,mt.index,mt.group),delete I[pt]):+pt<_&&(mt.state=6,mt.timer.stop(),mt.on.call("cancel",p,p.__data__,mt.index,mt.group),delete I[pt])}if(nf(function(){b.state===3&&(b.state=4,b.timer.restart($,b.delay,b.time),$(it))}),b.state=2,b.on.call("start",p,p.__data__,b.index,b.group),b.state===2){for(b.state=3,M=new Array(xt=b.tween.length),pt=0,ft=-1;pt0)throw new Error("too late; already scheduled");return r}function ms(t,e){var r=qo(t,e);if(r.state>3)throw new Error("too late; already running");return r}function qo(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Vs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var af,f3=180/Math.PI,u2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h2(t,e,r,a,s,h){var u,p,_;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(_=t*r+e*a)&&(r-=t*_,a-=e*_),(p=Math.sqrt(r*r+a*a))&&(r/=p,a/=p,_/=p),t*a180?M+=360:M-b>180&&(b+=360),R.push({i:I.push(s(I)+"rotate(",null,a)-2,x:Vs(b,M)})):M&&I.push(s(I)+"rotate("+M+a)}(h.rotate,u.rotate,p,_),function(b,M,I,R){b!==M?R.push({i:I.push(s(I)+"skewX(",null,a)-2,x:Vs(b,M)}):M&&I.push(s(I)+"skewX("+M+a)}(h.skewX,u.skewX,p,_),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push(s($)+"scale(",null,",",null,")");ht.push({i:it-4,x:Vs(b,I)},{i:it-2,x:Vs(M,R)})}else I===1&&R===1||$.push(s($)+"scale("+I+","+R+")")}(h.scaleX,h.scaleY,u.scaleX,u.scaleY,p,_),h=u=null,function(b){for(var M,I=-1,R=_.length;++Ih&&(s=e.slice(h,s),p[u]?p[u]+=s:p[++u]=s),(r=r[0])===(a=a[0])?p[u]?p[u]+=a:p[++u]=a:(p[++u]=null,_.push({i:u,x:Vs(r,a)})),h=Tu.lastIndex;return h=0&&(p=p.slice(0,_)),!p||p==="start"})}(e)?rf:ms;return function(){var u=h(this,t),p=u.on;p!==a&&(s=(a=p).copy()).on(e,r),u.on=s}}var _3=Bn.prototype.constructor;function Wo(t){return function(){this.style.removeProperty(t)}}function _2(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function x2(t,e,r){var a,s;function h(){var u=e.apply(this,arguments);return u!==s&&(a=(s=u)&&_2(t,u,r)),a}return h._value=e,h}function x3(t){return function(e){this.textContent=t.call(this,e)}}function sf(t){var e,r;function a(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&x3(s)),e}return a._value=t,a}var w3=0;function Gs(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function w2(){return++w3}var lo=Bn.prototype;Gs.prototype={constructor:Gs,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=au(t));for(var a=this._groups,s=a.length,h=new Array(s),u=0;u2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete u[h]):p=!1;p&&delete e.__transition}})(this,t)})},Bn.prototype.transition=function(t){var e,r;t instanceof Gs?(e=t._id,t=t._name):(e=w2(),(r=k2).time=Hh(),t=t==null?null:t+"");for(var a=this._groups,s=a.length,h=0;he?1:t>=e?0:NaN}Lc.prototype={constructor:Lc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var a1="http://www.w3.org/1999/xhtml";const E3={svg:"http://www.w3.org/2000/svg",xhtml:a1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lf(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),E3.hasOwnProperty(e)?{space:E3[e],local:t}:t}function M2(t){return function(){this.removeAttribute(t)}}function Tb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N2(t,e){return function(){this.setAttribute(t,e)}}function Eb(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function D2(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Cb(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 uf(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Sb(t){return function(){this.style.removeProperty(t)}}function Ab(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Mb(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Eu(t,e){return t.style.getPropertyValue(e)||uf(t).getComputedStyle(t,null).getPropertyValue(e)}function Nb(t){return function(){delete this[t]}}function Db(t,e){return function(){this[t]=e}}function O2(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function C3(t){return t.trim().split(/^|\s+/)}function B2(t){return t.classList||new L2(t)}function L2(t){this._node=t,this._names=C3(t.getAttribute("class")||"")}function vl(t,e){for(var r=B2(t),a=-1,s=e.length;++a=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Fb(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var s1=[null];function $o(t,e){this._groups=t,this._parents=e}function Y3(){return new $o([[document.documentElement]],s1)}$o.prototype=Y3.prototype={constructor:$o,select:function(t){typeof t!="function"&&(t=E2(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s=re&&(re=Wt+1);!(mt=pt[re])&&++re=0;)(a=s[h])&&(u&&4^a.compareDocumentPosition(u)&&u.parentNode.insertBefore(a,u),u=a);return this},sort:function(t){function e(I,R){return I&&R?t(I.__data__,R.__data__):!I-!R}t||(t=kb);for(var r=this._groups,a=r.length,s=new Array(a),h=0;h1?this.each((e==null?Sb:typeof e=="function"?Mb:Ab)(t,e,r==null?"":r)):Eu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?Nb:typeof e=="function"?O2:Db)(t,e)):this.node()[t]},classed:function(t,e){var r=C3(t+"");if(arguments.length<2){for(var a=B2(this.node()),s=-1,h=r.length;++s{}};function z3(){for(var t,e=0,r=arguments.length,a={};e=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function F2(t,e){for(var r,a=0,s=t.length;a0)for(var r,a,s=new Array(r),h=0;h=0&&e._call.call(void 0,t),e=e._next;--Su})()}finally{Su=0,function(){for(var t,e,r=mf,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:mf=e);Ic=t,_f(a)}(),Rc=0}}function U3(){var t=u1.now(),e=t-l1;e>1e3&&(vf-=e,l1=t)}function _f(t){Su||(Fc&&(Fc=clearTimeout(Fc)),t-Rc>24?(t<1/0&&(Fc=setTimeout(Mu,t-u1.now()-vf)),Au&&(Au=clearInterval(Au))):(Au||(l1=u1.now(),Au=setInterval(U3,1e3)),Su=1,j3(Mu)))}function Y2(t,e,r){var a=new bf;return e=e==null?0:+e,a.restart(s=>{a.stop(),t(s+e)},e,r),a}bf.prototype=P2.prototype={constructor:bf,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?R2():+r)+(e==null?0:+e),this._next||Ic===this||(Ic?Ic._next=this:mf=this,Ic=this),this._call=t,this._time=r,_f()},stop:function(){this._call&&(this._call=null,this._time=1/0,_f())}};var jb=Yb("start","end","cancel","interrupt"),Ub=[];function xf(t,e,r,a,s,h){var u=t.__transition;if(u){if(r in u)return}else t.__transition={};(function(p,_,b){var M,I=p.__transition;function R(it){var pt,ft,xt,mt;if(b.state!==1)return ht();for(pt in I)if((mt=I[pt]).name===b.name){if(mt.state===3)return Y2(R);mt.state===4?(mt.state=6,mt.timer.stop(),mt.on.call("interrupt",p,p.__data__,mt.index,mt.group),delete I[pt]):+pt<_&&(mt.state=6,mt.timer.stop(),mt.on.call("cancel",p,p.__data__,mt.index,mt.group),delete I[pt])}if(Y2(function(){b.state===3&&(b.state=4,b.timer.restart($,b.delay,b.time),$(it))}),b.state=2,b.on.call("start",p,p.__data__,b.index,b.group),b.state===2){for(b.state=3,M=new Array(xt=b.tween.length),pt=0,ft=-1;pt0)throw new Error("too late; already scheduled");return r}function vs(t,e){var r=Ho(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Ho(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Xs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var kf,h1=180/Math.PI,z2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function q3(t,e,r,a,s,h){var u,p,_;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(_=t*r+e*a)&&(r-=t*_,a-=e*_),(p=Math.sqrt(r*r+a*a))&&(r/=p,a/=p,_/=p),t*a180?M+=360:M-b>180&&(b+=360),R.push({i:I.push(s(I)+"rotate(",null,a)-2,x:Xs(b,M)})):M&&I.push(s(I)+"rotate("+M+a)}(h.rotate,u.rotate,p,_),function(b,M,I,R){b!==M?R.push({i:I.push(s(I)+"skewX(",null,a)-2,x:Xs(b,M)}):M&&I.push(s(I)+"skewX("+M+a)}(h.skewX,u.skewX,p,_),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push(s($)+"scale(",null,",",null,")");ht.push({i:it-4,x:Xs(b,I)},{i:it-2,x:Xs(M,R)})}else I===1&&R===1||$.push(s($)+"scale("+I+","+R+")")}(h.scaleX,h.scaleY,u.scaleX,u.scaleY,p,_),h=u=null,function(b){for(var M,I=-1,R=_.length;++I>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?p1(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?p1(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=Vo.exec(t))?new Za(e[1],e[2],e[3],1):(e=Zs.exec(t))?new Za(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=V3.exec(t))?p1(e[1],e[2],e[3],e[4]):(e=Ef.exec(t))?p1(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_l.exec(t))?y1(e[1],e[2]/100,e[3]/100,1):(e=q2.exec(t))?y1(e[1],e[2]/100,e[3]/100,e[4]):Cf.hasOwnProperty(t)?Af(Cf[t]):t==="transparent"?new Za(NaN,NaN,NaN,0):null}function Af(t){return new Za(t>>16&255,t>>8&255,255&t,1)}function p1(t,e,r,a){return a<=0&&(t=e=r=NaN),new Za(t,e,r,a)}function fa(t){return t instanceof bs||(t=d1(t)),t?new Za((t=t.rgb()).r,t.g,t.b,t.opacity):new Za}function g1(t,e,r,a){return arguments.length===1?fa(t):new Za(t,e,r,a==null?1:a)}function Za(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function G3(){return"#"+xl(this.r)+xl(this.g)+xl(this.b)}function X3(){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 xl(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function y1(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Go(t,e,r,a)}function $2(t){if(t instanceof Go)return new Go(t.h,t.s,t.l,t.opacity);if(t instanceof bs||(t=d1(t)),!t)return new Go;if(t instanceof Go)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),h=Math.max(e,r,a),u=NaN,p=h-s,_=(h+s)/2;return p?(u=e===h?(r-a)/p+6*(r0&&_<1?0:u,new Go(u,p,_,t.opacity)}function Go(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function Qs(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}U2(bs,d1,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Sf,formatHex:Sf,formatHsl:function(){return $2(this).formatHsl()},formatRgb:W2,toString:W2}),U2(Za,g1,H3(bs,{brighter:function(t){return t=t==null?f1:Math.pow(f1,t),new Za(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Tf:Math.pow(Tf,t),new Za(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:G3,formatHex:G3,formatRgb:X3,toString:X3})),U2(Go,function(t,e,r,a){return arguments.length===1?$2(t):new Go(t,e,r,a==null?1:a)},H3(bs,{brighter:function(t){return t=t==null?f1:Math.pow(f1,t),new Go(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Tf:Math.pow(Tf,t),new Go(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new Za(Qs(t>=240?t-240:t+120,s,a),Qs(t,s,a),Qs(t<120?t+240:t-120,s,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const H2=t=>()=>t;function V2(t,e){var r=e-t;return r?function(a,s){return function(h){return a+h*s}}(t,r):H2(isNaN(t)?e:t)}const G2=function t(e){var r=function(s){return(s=+s)==1?V2:function(h,u){return u-h?function(p,_,b){return p=Math.pow(p,b),_=Math.pow(_,b)-p,b=1/b,function(M){return Math.pow(p+M*_,b)}}(h,u,s):H2(isNaN(h)?u:h)}}(e);function a(s,h){var u=r((s=g1(s)).r,(h=g1(h)).r),p=r(s.g,h.g),_=r(s.b,h.b),b=V2(s.opacity,h.opacity);return function(M){return s.r=u(M),s.g=p(M),s.b=_(M),s.opacity=b(M),s+""}}return a.gamma=t,a}(1);var Mf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nf=new RegExp(Mf.source,"g");function Vb(t,e){var r,a,s,h=Mf.lastIndex=Nf.lastIndex=0,u=-1,p=[],_=[];for(t+="",e+="";(r=Mf.exec(t))&&(a=Nf.exec(e));)(s=a.index)>h&&(s=e.slice(h,s),p[u]?p[u]+=s:p[++u]=s),(r=r[0])===(a=a[0])?p[u]?p[u]+=a:p[++u]=a:(p[++u]=null,_.push({i:u,x:Xs(r,a)})),h=Nf.lastIndex;return h=0&&(p=p.slice(0,_)),!p||p==="start"})}(e)?wf:vs;return function(){var u=h(this,t),p=u.on;p!==a&&(s=(a=p).copy()).on(e,r),u.on=s}}var a4=c1.prototype.constructor;function Df(t){return function(){this.style.removeProperty(t)}}function K2(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function qi(t,e,r){var a,s;function h(){var u=e.apply(this,arguments);return u!==s&&(a=(s=u)&&K2(t,u,r)),a}return h._value=e,h}function tg(t){return function(e){this.textContent=t.call(this,e)}}function wl(t){var e,r;function a(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&tg(s)),e}return a._value=t,a}var Jb=0;function xs(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function eg(){return++Jb}var Js=c1.prototype;xs.prototype={constructor:xs,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=E2(t));for(var a=this._groups,s=a.length,h=new Array(s),u=0;u2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete u[h]):p=!1;p&&delete e.__transition}})(this,t)})},c1.prototype.transition=function(t){var e,r;t instanceof xs?(e=t._id,t=t._name):(e=eg(),(r=Of).time=R2(),t=t==null?null:t+"");for(var a=this._groups,s=a.length,h=0;h0?Ks(Iu,--uo):0,Lu--,pi===10&&(Lu=1,If--),pi}function Xo(){return pi=uo2||Pf(pi)>3?"":" "}function Yf(t,e){for(;--e&&Xo()&&!(pi<48||pi>102||pi>57&&pi<65||pi>70&&pi<97););return Rf(t,v1()+(e<6&&Pc()==32&&Xo()==32))}function Ru(t){for(;Xo();)switch(pi){case t:return uo;case 34:case 39:t!==34&&t!==39&&Ru(pi);break;case 40:t===41&&Ru(t);break;case 92:Xo()}return uo}function u4(t,e){for(;Xo()&&t+pi!==57&&(t+pi!==84||Pc()!==47););return"/*"+Rf(e,uo-1)+"*"+El(t===47?t:Xo())}function Cl(t){for(;!Pf(Pc());)Xo();return Rf(t,uo)}function b1(t){return function(e){return Iu="",e}(Yc("",null,null,null,[""],t=function(e){return If=Lu=1,s4=tc(Iu=e),uo=0,[]}(t),0,[0],t))}function Yc(t,e,r,a,s,h,u,p,_){for(var b=0,M=0,I=u,R=0,$=0,ht=0,it=1,pt=1,ft=1,xt=0,mt="",Wt=s,re=h,Rt=a,Jt=mt;pt;)switch(ht=xt,xt=Xo()){case 40:if(ht!=108&&Jt.charCodeAt(I-1)==58){o4(Jt+=Bf(Fu(xt),"&","&\f"),"&\f")!=-1&&(ft=-1);break}case 34:case 39:case 91:Jt+=Fu(xt);break;case 9:case 10:case 13:case 32:Jt+=l4(ht);break;case 92:Jt+=Yf(v1()-1,7);continue;case 47:switch(Pc()){case 42:case 47:Lf(h4(u4(Xo(),v1()),e,r),_);break;default:Jt+="/"}break;case 123*it:p[b++]=tc(Jt)*ft;case 125*it:case 59:case 0:switch(xt){case 0:case 125:pt=0;case 59+M:$>0&&tc(Jt)-I&&Lf($>32?zc(Jt+";",a,r,I-1):zc(Bf(Jt," ","")+";",a,r,I-2),_);break;case 59:Jt+=";";default:if(Lf(Rt=og(Jt,e,r,b,M,s,p,mt,Wt=[],re=[],I),h),xt===123)if(M===0)Yc(Jt,e,Rt,Rt,Wt,h,I,p,re);else switch(R){case 100:case 109:case 115:Yc(t,Rt,Rt,a&&Lf(og(t,Rt,Rt,0,0,s,p,mt,s,Wt=[],I),re),s,re,I,p,a?Wt:re);break;default:Yc(Jt,Rt,Rt,Rt,[""],re,0,p,re)}}b=M=$=0,it=ft=1,mt=Jt="",I=u;break;case 58:I=1+tc(Jt),$=ht;default:if(it<1){if(xt==123)--it;else if(xt==125&&it++==0&&c4()==125)continue}switch(Jt+=El(xt),xt*it){case 38:ft=M>0?1:(Jt+="\f",-1);break;case 44:p[b++]=(tc(Jt)-1)*ft,ft=1;break;case 64:Pc()===45&&(Jt+=Fu(Xo())),R=Pc(),M=I=tc(mt=Jt+=Cl(v1())),xt++;break;case 45:ht===45&&tc(Jt)==2&&(it=0)}}return h}function og(t,e,r,a,s,h,u,p,_,b,M){for(var I=s-1,R=s===0?h:[""],$=ig(R),ht=0,it=0,pt=0;ht0?R[ft]+" "+xt:Bf(xt,/&\f/g,R[ft])))&&(_[pt++]=mt);return Ff(t,e,r,s===0?ng:p,_,b,M)}function h4(t,e,r){return Ff(t,e,r,m1,El(pi),Bu(t,2,-2),0)}function zc(t,e,r,a){return Ff(t,e,r,rg,Bu(t,0,a),Bu(t,a+1,-1),a)}const sg="9.1.2";var ec=y(7967),f4=y(7856),cg=y.n(f4),d4=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\u/g,""),16))});return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(r,a){return String.fromCharCode(parseInt(a,16))})).replace(/\\[\d\d\d]{3}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})},p4=function(t){for(var e="",r=0;r>=0;){if(!((r=t.indexOf("=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}var a=d4(e);return(a=(a=(a=(a=a.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/`)}else u.securityLevel!=="loose"&&(Jt=cg().sanitize(Jt,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(r!==void 0)switch(ht){case"flowchart":case"flowchart-v2":r(Jt,cr.bindFunctions);break;case"gantt":r(Jt,Ku.bindFunctions);break;case"class":case"classDiagram":r(Jt,Zo.bindFunctions);break;default:r(Jt)}else v.debug("CB = undefined!");gt.forEach(function(ct){ct()}),gt=[];var wt=u.securityLevel==="sandbox"?"#i"+t:"#d"+t,vt=ze(wt).node();return vt!==null&&typeof vt.remove=="function"&&ze(wt).node().remove(),Jt},parse:function(t){var e=!1;try{t+=` `;var r=Vt(),a=ir.detectInit(t,r);a&&v.info("reinit ",a);var s,h=ir.detectType(t,r);switch(v.debug("Type "+h),h){case"c4":B4.clear(),(s=F4()).parser.yy=F4();break;case"gitGraph":Xc.clear(),(s=wv()).parser.yy=Xc;break;case"flowchart":case"flowchart-v2":cr.clear(),(s=kd()).parser.yy=cr;break;case"sequence":fe.clear(),(s=k()).parser.yy=fe;break;case"gantt":(s=G6()).parser.yy=Ku;break;case"class":case"classDiagram":(s=U4()).parser.yy=Zo;break;case"state":case"stateDiagram":(s=M_()).parser.yy=aa;break;case"info":v.debug("info info info"),(s=th()).parser.yy=jl;break;case"pie":v.debug("pie"),(s=Ev()).parser.yy=fy;break;case"er":v.debug("er"),(s=Z4()).parser.yy=qa;break;case"journey":v.debug("Journey"),(s=Lx()).parser.yy=j_;break;case"requirement":case"requirementDiagram":v.debug("RequirementDiagram"),(s=Cv()).parser.yy=nh}s.parser.yy.graphType=h,s.parser.yy.parseError=function(u,p){throw{str:u,hash:p}},s.parse(t)}catch(u){if(e=!0,!Fv.parseError)throw u;u.str!=null?Fv.parseError(u.str,u.hash):Fv.parseError(u)}return!e},parseDirective:function(t,e,r,a){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":yy={};break;case"type_directive":yy.type=e.toLowerCase();break;case"arg_directive":yy.args=JSON.parse(e);break;case"close_directive":(function(s,h,u){switch(v.debug("Directive type=".concat(h.type," with args:"),h.args),h.type){case"init":case"initialize":["config"].forEach(function(p){h.args[p]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),h.args[u]=h.args[p],delete h.args[p])}),v.debug("sanitize in handleDirective",h.args),Vf(h.args),v.debug("sanitize in handleDirective (done)",h.args),h.args,Cg(h.args);break;case"wrap":case"nowrap":s&&s.setWrap&&s.setWrap(h.type==="wrap");break;case"themeCss":v.warn("themeCss encountered");break;default:v.warn("Unhandled directive: source: '%%{".concat(h.type,": ").concat(JSON.stringify(h.args?h.args:{}),"}%%"),h)}})(t,yy,a),yy=null}}catch(s){v.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),v.error(s.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){kg=$i({},r)}(t),t&&t.theme&&rc[t.theme]?t.themeVariables=rc[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=rc.default.getThemeVariables(t.themeVariables));var e=d_(t)==="object"?function(r){return Ki=$i({},Dl),Ki=$i(Ki,r),r.theme&&rc[r.theme]&&(Ki.themeVariables=rc[r.theme].getThemeVariables(r.themeVariables)),zu=Xf(Ki,k1),Ki}(t):Eg();Q_(e),C(e.logLevel)},reinitialize:function(){},getConfig:Vt,setConfig:function(t){return $i(zu,t),Vt()},getSiteConfig:Eg,updateSiteConfig:function(t){return Ki=$i(Ki,t),Xf(Ki,k1),Ki},reset:function(){T1()},globalReset:function(){T1(),Q_(Vt())},defaultConfig:Dl});C(Vt().logLevel),T1(Vt());const Ni=Ux;var J_=function(){var t,e,r=Ni.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(yo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],v.debug("Callback function found")):r.mermaid!==void 0&&(typeof r.mermaid.callback=="function"?(e=r.mermaid.callback,v.debug("Callback function found")):v.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,v.debug("Start On Load before: "+yo.startOnLoad),yo.startOnLoad!==void 0&&(v.debug("Start On Load inner: "+yo.startOnLoad),Ni.updateSiteConfig({startOnLoad:yo.startOnLoad})),yo.ganttConfig!==void 0&&Ni.updateSiteConfig({gantt:yo.ganttConfig});for(var a,s=new ir.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed),h=function(p){var _=t[p];if(_.getAttribute("data-processed"))return"continue";_.setAttribute("data-processed",!0);var b="mermaid-".concat(s.next());a=_.innerHTML,a=ir.entityDecode(a).trim().replace(//gi,"
");var M=ir.detectInit(a);M&&v.debug("Detected early reinit: ",M),Ni.render(b,a,function(I,R){_.innerHTML=I,e!==void 0&&e(b),R&&R(_)},_)},u=0;u{A.exports={graphlib:y(6614),dagre:y(1463),intersect:y(8114),render:y(5787),util:y(8355),version:y(5689)}},9144:(A,F,y)=>{var x=y(8355);function d(T,v,C,N){var D=T.append("marker").attr("id",v).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");x.applyStyle(D,C[N+"Style"]),C[N+"Class"]&&D.attr("class",C[N+"Class"])}A.exports={default:d,normal:d,vee:function(T,v,C,N){var D=T.append("marker").attr("id",v).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");x.applyStyle(D,C[N+"Style"]),C[N+"Class"]&&D.attr("class",C[N+"Class"])},undirected:function(T,v,C,N){var D=T.append("marker").attr("id",v).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");x.applyStyle(D,C[N+"Style"]),C[N+"Class"]&&D.attr("class",C[N+"Class"])}}},5632:(A,F,y)=>{var x=y(8355),d=y(4322),T=y(1322);A.exports=function(v,C){var N,D=C.nodes().filter(function(L){return x.isSubgraph(C,L)}),Y=v.selectAll("g.cluster").data(D,function(L){return L});return Y.selectAll("*").remove(),Y.enter().append("g").attr("class","cluster").attr("id",function(L){return C.node(L).id}).style("opacity",0),Y=v.selectAll("g.cluster"),x.applyTransition(Y,C).style("opacity",1),Y.each(function(L){var j=C.node(L),V=d.select(this);d.select(this).append("rect");var K=V.append("g").attr("class","label");T(K,j,j.clusterLabelPos)}),Y.selectAll("rect").each(function(L){var j=C.node(L),V=d.select(this);x.applyStyle(V,j.style)}),N=Y.exit?Y.exit():Y.selectAll(null),x.applyTransition(N,C).style("opacity",0).remove(),Y}},6315:(A,F,y)=>{var x=y(1034),d=y(1322),T=y(8355),v=y(4322);A.exports=function(C,N){var D,Y=C.selectAll("g.edgeLabel").data(N.edges(),function(L){return T.edgeToId(L)}).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(Y=C.selectAll("g.edgeLabel")).each(function(L){var j=v.select(this);j.select(".label").remove();var V=N.edge(L),K=d(j,N.edge(L),0,0).classed("label",!0),tt=K.node().getBBox();V.labelId&&K.attr("id",V.labelId),x.has(V,"width")||(V.width=tt.width),x.has(V,"height")||(V.height=tt.height)}),D=Y.exit?Y.exit():Y.selectAll(null),T.applyTransition(D,N).style("opacity",0).remove(),Y}},940:(A,F,y)=>{var x=y(1034),d=y(3042),T=y(8355),v=y(4322);function C(N,D){var Y=(v.line||v.svg.line)().x(function(L){return L.x}).y(function(L){return L.y});return(Y.curve||Y.interpolate)(N.curve),Y(D)}A.exports=function(N,D,Y){var L=N.selectAll("g.edgePath").data(D.edges(),function(K){return T.edgeToId(K)}).classed("update",!0),j=function(K,tt){var dt=K.enter().append("g").attr("class","edgePath").style("opacity",0);return dt.append("path").attr("class","path").attr("d",function(rt){var Ot=tt.edge(rt),ot=tt.node(rt.v).elem;return C(Ot,x.range(Ot.points.length).map(function(){return Dt=(_t=ot).getBBox(),{x:(Xt=_t.ownerSVGElement.getScreenCTM().inverse().multiply(_t.getScreenCTM()).translate(Dt.width/2,Dt.height/2)).e,y:Xt.f};var _t,Dt,Xt}))}),dt.append("defs"),dt}(L,D);(function(K,tt){var dt=K.exit();T.applyTransition(dt,tt).style("opacity",0).remove()})(L,D);var V=L.merge!==void 0?L.merge(j):L;return T.applyTransition(V,D).style("opacity",1),V.each(function(K){var tt=v.select(this),dt=D.edge(K);dt.elem=this,dt.id&&tt.attr("id",dt.id),T.applyClass(tt,dt.class,(tt.classed("update")?"update ":"")+"edgePath")}),V.selectAll("path.path").each(function(K){var tt=D.edge(K);tt.arrowheadId=x.uniqueId("arrowhead");var dt=v.select(this).attr("marker-end",function(){return"url("+(rt=location.href,Ot=tt.arrowheadId,rt.split("#")[0]+"#"+Ot+")");var rt,Ot}).style("fill","none");T.applyTransition(dt,D).attr("d",function(rt){return function(Ot,ot){var _t=Ot.edge(ot),Dt=Ot.node(ot.v),Xt=Ot.node(ot.w),jt=_t.points.slice(1,_t.points.length-1);return jt.unshift(d(Dt,jt[0])),jt.push(d(Xt,jt[jt.length-1])),C(_t,jt)}(D,rt)}),T.applyStyle(dt,tt.style)}),V.selectAll("defs *").remove(),V.selectAll("defs").each(function(K){var tt=D.edge(K);(0,Y[tt.arrowhead])(v.select(this),tt.arrowheadId,tt,"arrowhead")}),V}},607:(A,F,y)=>{var x=y(1034),d=y(1322),T=y(8355),v=y(4322);A.exports=function(C,N,D){var Y,L=N.nodes().filter(function(V){return!T.isSubgraph(N,V)}),j=C.selectAll("g.node").data(L,function(V){return V}).classed("update",!0);return j.exit().remove(),j.enter().append("g").attr("class","node").style("opacity",0),(j=C.selectAll("g.node")).each(function(V){var K=N.node(V),tt=v.select(this);T.applyClass(tt,K.class,(tt.classed("update")?"update ":"")+"node"),tt.select("g.label").remove();var dt=tt.append("g").attr("class","label"),rt=d(dt,K),Ot=D[K.shape],ot=x.pick(rt.node().getBBox(),"width","height");K.elem=this,K.id&&tt.attr("id",K.id),K.labelId&&dt.attr("id",K.labelId),x.has(K,"width")&&(ot.width=K.width),x.has(K,"height")&&(ot.height=K.height),ot.width+=K.paddingLeft+K.paddingRight,ot.height+=K.paddingTop+K.paddingBottom,dt.attr("transform","translate("+(K.paddingLeft-K.paddingRight)/2+","+(K.paddingTop-K.paddingBottom)/2+")");var _t=v.select(this);_t.select(".label-container").remove();var Dt=Ot(_t,ot,K).classed("label-container",!0);T.applyStyle(Dt,K.style);var Xt=Dt.node().getBBox();K.width=Xt.width,K.height=Xt.height}),Y=j.exit?j.exit():j.selectAll(null),T.applyTransition(Y,N).style("opacity",0).remove(),j}},4322:(A,F,y)=>{var x;if(!x)try{x=y(7188)}catch{}x||(x=window.d3),A.exports=x},1463:(A,F,y)=>{var x;try{x=y(681)}catch{}x||(x=window.dagre),A.exports=x},6614:(A,F,y)=>{var x;try{x=y(8282)}catch{}x||(x=window.graphlib),A.exports=x},8114:(A,F,y)=>{A.exports={node:y(3042),circle:y(6587),ellipse:y(3260),polygon:y(5337),rect:y(8049)}},6587:(A,F,y)=>{var x=y(3260);A.exports=function(d,T,v){return x(d,T,T,v)}},3260:A=>{A.exports=function(F,y,x,d){var T=F.x,v=F.y,C=T-d.x,N=v-d.y,D=Math.sqrt(y*y*N*N+x*x*C*C),Y=Math.abs(y*x*C/D);d.x{function F(y,x){return y*x>0}A.exports=function(y,x,d,T){var v,C,N,D,Y,L,j,V,K,tt,dt,rt,Ot;if(v=x.y-y.y,N=y.x-x.x,Y=x.x*y.y-y.x*x.y,K=v*d.x+N*d.y+Y,tt=v*T.x+N*T.y+Y,!(K!==0&&tt!==0&&F(K,tt)||(C=T.y-d.y,D=d.x-T.x,L=T.x*d.y-d.x*T.y,j=C*y.x+D*y.y+L,V=C*x.x+D*x.y+L,j!==0&&V!==0&&F(j,V)||(dt=v*D-C*N)==0)))return rt=Math.abs(dt/2),{x:(Ot=N*L-D*Y)<0?(Ot-rt)/dt:(Ot+rt)/dt,y:(Ot=C*Y-v*L)<0?(Ot-rt)/dt:(Ot+rt)/dt}}},3042:A=>{A.exports=function(F,y){return F.intersect(y)}},5337:(A,F,y)=>{var x=y(6808);A.exports=function(d,T,v){var C=d.x,N=d.y,D=[],Y=Number.POSITIVE_INFINITY,L=Number.POSITIVE_INFINITY;T.forEach(function(Ot){Y=Math.min(Y,Ot.x),L=Math.min(L,Ot.y)});for(var j=C-d.width/2-Y,V=N-d.height/2-L,K=0;K1&&D.sort(function(Ot,ot){var _t=Ot.x-v.x,Dt=Ot.y-v.y,Xt=Math.sqrt(_t*_t+Dt*Dt),jt=ot.x-v.x,Nt=ot.y-v.y,Yt=Math.sqrt(jt*jt+Nt*Nt);return Xt{A.exports=function(F,y){var x,d,T=F.x,v=F.y,C=y.x-T,N=y.y-v,D=F.width/2,Y=F.height/2;return Math.abs(N)*D>Math.abs(C)*Y?(N<0&&(Y=-Y),x=N===0?0:Y*C/N,d=Y):(C<0&&(D=-D),x=D,d=C===0?0:D*N/C),{x:T+x,y:v+d}}},8284:(A,F,y)=>{var x=y(8355);A.exports=function(d,T){var v=d.append("foreignObject").attr("width","100000"),C=v.append("xhtml:div");C.attr("xmlns","http://www.w3.org/1999/xhtml");var N=T.label;switch(typeof N){case"function":C.insert(N);break;case"object":C.insert(function(){return N});break;default:C.html(N)}x.applyStyle(C,T.labelStyle),C.style("display","inline-block"),C.style("white-space","nowrap");var D=C.node().getBoundingClientRect();return v.attr("width",D.width).attr("height",D.height),v}},1322:(A,F,y)=>{var x=y(7318),d=y(8284),T=y(8287);A.exports=function(v,C,N){var D=C.label,Y=v.append("g");C.labelType==="svg"?T(Y,C):typeof D!="string"||C.labelType==="html"?d(Y,C):x(Y,C);var L,j=Y.node().getBBox();switch(N){case"top":L=-C.height/2;break;case"bottom":L=C.height/2-j.height;break;default:L=-j.height/2}return Y.attr("transform","translate("+-j.width/2+","+L+")"),Y}},8287:(A,F,y)=>{var x=y(8355);A.exports=function(d,T){var v=d;return v.node().appendChild(T.label),x.applyStyle(v,T.labelStyle),v}},7318:(A,F,y)=>{var x=y(8355);A.exports=function(d,T){for(var v=d.append("text"),C=function(D){for(var Y,L="",j=!1,V=0;V{var x;try{x={defaults:y(1747),each:y(6073),isFunction:y(3560),isPlainObject:y(8630),pick:y(9722),has:y(8721),range:y(6026),uniqueId:y(3955)}}catch{}x||(x=window._),A.exports=x},6381:(A,F,y)=>{var x=y(8355),d=y(4322);A.exports=function(T,v){var C=T.filter(function(){return!d.select(this).classed("update")});function N(D){var Y=v.node(D);return"translate("+Y.x+","+Y.y+")"}C.attr("transform",N),x.applyTransition(T,v).style("opacity",1).attr("transform",N),x.applyTransition(C.selectAll("rect"),v).attr("width",function(D){return v.node(D).width}).attr("height",function(D){return v.node(D).height}).attr("x",function(D){return-v.node(D).width/2}).attr("y",function(D){return-v.node(D).height/2})}},4577:(A,F,y)=>{var x=y(8355),d=y(4322),T=y(1034);A.exports=function(v,C){function N(D){var Y=C.edge(D);return T.has(Y,"x")?"translate("+Y.x+","+Y.y+")":""}v.filter(function(){return!d.select(this).classed("update")}).attr("transform",N),x.applyTransition(v,C).style("opacity",1).attr("transform",N)}},4849:(A,F,y)=>{var x=y(8355),d=y(4322);A.exports=function(T,v){function C(N){var D=v.node(N);return"translate("+D.x+","+D.y+")"}T.filter(function(){return!d.select(this).classed("update")}).attr("transform",C),x.applyTransition(T,v).style("opacity",1).attr("transform",C)}},5787:(A,F,y)=>{var x=y(1034),d=y(4322),T=y(1463).layout;A.exports=function(){var D=y(607),Y=y(5632),L=y(6315),j=y(940),V=y(4849),K=y(4577),tt=y(6381),dt=y(4418),rt=y(9144),Ot=function(ot,_t){(function(Tt){Tt.nodes().forEach(function(Q){var lt=Tt.node(Q);x.has(lt,"label")||Tt.children(Q).length||(lt.label=Q),x.has(lt,"paddingX")&&x.defaults(lt,{paddingLeft:lt.paddingX,paddingRight:lt.paddingX}),x.has(lt,"paddingY")&&x.defaults(lt,{paddingTop:lt.paddingY,paddingBottom:lt.paddingY}),x.has(lt,"padding")&&x.defaults(lt,{paddingLeft:lt.padding,paddingRight:lt.padding,paddingTop:lt.padding,paddingBottom:lt.padding}),x.defaults(lt,v),x.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(U){lt[U]=Number(lt[U])}),x.has(lt,"width")&&(lt._prevWidth=lt.width),x.has(lt,"height")&&(lt._prevHeight=lt.height)}),Tt.edges().forEach(function(Q){var lt=Tt.edge(Q);x.has(lt,"label")||(lt.label=""),x.defaults(lt,C)})})(_t);var Dt=N(ot,"output"),Xt=N(Dt,"clusters"),jt=N(Dt,"edgePaths"),Nt=L(N(Dt,"edgeLabels"),_t),Yt=D(N(Dt,"nodes"),_t,dt);T(_t),V(Yt,_t),K(Nt,_t),j(jt,_t,rt);var Bt=Y(Xt,_t);tt(Bt,_t),function(Tt){x.each(Tt.nodes(),function(Q){var lt=Tt.node(Q);x.has(lt,"_prevWidth")?lt.width=lt._prevWidth:delete lt.width,x.has(lt,"_prevHeight")?lt.height=lt._prevHeight:delete lt.height,delete lt._prevWidth,delete lt._prevHeight})}(_t)};return Ot.createNodes=function(ot){return arguments.length?(D=ot,Ot):D},Ot.createClusters=function(ot){return arguments.length?(Y=ot,Ot):Y},Ot.createEdgeLabels=function(ot){return arguments.length?(L=ot,Ot):L},Ot.createEdgePaths=function(ot){return arguments.length?(j=ot,Ot):j},Ot.shapes=function(ot){return arguments.length?(dt=ot,Ot):dt},Ot.arrows=function(ot){return arguments.length?(rt=ot,Ot):rt},Ot};var v={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},C={arrowhead:"normal",curve:d.curveLinear};function N(D,Y){var L=D.select("g."+Y);return L.empty()&&(L=D.append("g").attr("class",Y)),L}},4418:(A,F,y)=>{var x=y(8049),d=y(3260),T=y(6587),v=y(5337);A.exports={rect:function(C,N,D){var Y=C.insert("rect",":first-child").attr("rx",D.rx).attr("ry",D.ry).attr("x",-N.width/2).attr("y",-N.height/2).attr("width",N.width).attr("height",N.height);return D.intersect=function(L){return x(D,L)},Y},ellipse:function(C,N,D){var Y=N.width/2,L=N.height/2,j=C.insert("ellipse",":first-child").attr("x",-N.width/2).attr("y",-N.height/2).attr("rx",Y).attr("ry",L);return D.intersect=function(V){return d(D,Y,L,V)},j},circle:function(C,N,D){var Y=Math.max(N.width,N.height)/2,L=C.insert("circle",":first-child").attr("x",-N.width/2).attr("y",-N.height/2).attr("r",Y);return D.intersect=function(j){return T(D,Y,j)},L},diamond:function(C,N,D){var Y=N.width*Math.SQRT2/2,L=N.height*Math.SQRT2/2,j=[{x:0,y:-L},{x:-Y,y:0},{x:0,y:L},{x:Y,y:0}],V=C.insert("polygon",":first-child").attr("points",j.map(function(K){return K.x+","+K.y}).join(" "));return D.intersect=function(K){return v(D,j,K)},V}}},8355:(A,F,y)=>{var x=y(1034);A.exports={isSubgraph:function(v,C){return!!v.children(C).length},edgeToId:function(v){return T(v.v)+":"+T(v.w)+":"+T(v.name)},applyStyle:function(v,C){C&&v.attr("style",C)},applyClass:function(v,C,N){C&&v.attr("class",C).attr("class",N+" "+v.attr("class"))},applyTransition:function(v,C){var N=C.graph();if(x.isPlainObject(N)){var D=N.transition;if(x.isFunction(D))return D(v)}return v}};var d=/:/g;function T(v){return v?String(v).replace(d,"\\:"):""}},5689:A=>{A.exports="0.6.4"},7188:(A,F,y)=>{y.r(F),y.d(F,{FormatSpecifier:()=>E0,active:()=>Xv,arc:()=>$g,area:()=>qa,areaRadial:()=>Q4,ascending:()=>d,autoType:()=>v5,axisBottom:()=>Re,axisLeft:()=>Le,axisRight:()=>me,axisTop:()=>ee,bisect:()=>D,bisectLeft:()=>N,bisectRight:()=>C,bisector:()=>T,blob:()=>O5,brush:()=>fp,brushSelection:()=>Jv,brushX:()=>l0,brushY:()=>Kv,buffer:()=>dm,chord:()=>pp,clientPoint:()=>al,cluster:()=>Nb,color:()=>qr,contourDensity:()=>Eh,contours:()=>ji,create:()=>D6,creator:()=>Tr,cross:()=>j,csv:()=>pm,csvFormat:()=>l5,csvFormatBody:()=>u5,csvFormatRow:()=>f5,csvFormatRows:()=>h5,csvFormatValue:()=>Zy,csvParse:()=>Xy,csvParseRows:()=>c5,cubehelix:()=>Ba,curveBasis:()=>tv,curveBasisClosed:()=>j6,curveBasisOpen:()=>U6,curveBundle:()=>q6,curveCardinal:()=>W6,curveCardinalClosed:()=>$6,curveCardinalOpen:()=>H6,curveCatmullRom:()=>V6,curveCatmullRomClosed:()=>iv,curveCatmullRomOpen:()=>ry,curveLinear:()=>O1,curveLinearClosed:()=>Ad,curveMonotoneX:()=>iy,curveMonotoneY:()=>Xu,curveNatural:()=>P1,curveStep:()=>oy,curveStepAfter:()=>sv,curveStepBefore:()=>ov,customEvent:()=>Kr,descending:()=>V,deviation:()=>dt,dispatch:()=>ln,drag:()=>Hy,dragDisable:()=>Oi,dragEnable:()=>Nr,dsv:()=>I5,dsvFormat:()=>Ch,easeBack:()=>um,easeBackIn:()=>M5,easeBackInOut:()=>um,easeBackOut:()=>N5,easeBounce:()=>Sh,easeBounceIn:()=>lm,easeBounceInOut:()=>A5,easeBounceOut:()=>Sh,easeCircle:()=>cm,easeCircleIn:()=>C5,easeCircleInOut:()=>cm,easeCircleOut:()=>S5,easeCubic:()=>bc,easeCubicIn:()=>e0,easeCubicInOut:()=>bc,easeCubicOut:()=>n0,easeElastic:()=>Ip,easeElasticIn:()=>D5,easeElasticInOut:()=>hm,easeElasticOut:()=>Ip,easeExp:()=>sm,easeExpIn:()=>om,easeExpInOut:()=>sm,easeExpOut:()=>E5,easeLinear:()=>Ky,easePoly:()=>em,easePolyIn:()=>w5,easePolyInOut:()=>em,easePolyOut:()=>k5,easeQuad:()=>tm,easeQuadIn:()=>_5,easeQuadInOut:()=>tm,easeQuadOut:()=>x5,easeSin:()=>am,easeSinIn:()=>im,easeSinInOut:()=>am,easeSinOut:()=>T5,entries:()=>xp,event:()=>De,extent:()=>rt,forceCenter:()=>Y5,forceCollide:()=>q5,forceLink:()=>$5,forceManyBody:()=>X5,forceRadial:()=>Z5,forceSimulation:()=>G5,forceX:()=>_m,forceY:()=>zp,format:()=>S0,formatDefaultLocale:()=>Sm,formatLocale:()=>Cm,formatPrefix:()=>Up,formatSpecifier:()=>Nh,geoAlbers:()=>w3,geoAlbersUsa:()=>Gs,geoArea:()=>J5,geoAzimuthalEqualArea:()=>bb,geoAzimuthalEqualAreaRaw:()=>k2,geoAzimuthalEquidistant:()=>E2,geoAzimuthalEquidistantRaw:()=>T2,geoBounds:()=>Yh,geoCentroid:()=>eb,geoCircle:()=>nb,geoClipAntimeridian:()=>a2,geoClipCircle:()=>Zm,geoClipExtent:()=>ib,geoClipRectangle:()=>$0,geoConicConformal:()=>xb,geoConicConformalRaw:()=>S2,geoConicEqualArea:()=>sf,geoConicEqualAreaRaw:()=>x3,geoConicEquidistant:()=>T3,geoConicEquidistantRaw:()=>k3,geoContains:()=>r3,geoDistance:()=>Z0,geoEqualEarth:()=>kb,geoEqualEarthRaw:()=>A2,geoEquirectangular:()=>wb,geoEquirectangularRaw:()=>e1,geoGnomonic:()=>E3,geoGnomonicRaw:()=>a1,geoGraticule:()=>o3,geoGraticule10:()=>ub,geoIdentity:()=>lf,geoInterpolate:()=>hb,geoLength:()=>Qm,geoMercator:()=>_b,geoMercatorRaw:()=>Kh,geoNaturalEarth1:()=>Tb,geoNaturalEarth1Raw:()=>M2,geoOrthographic:()=>Eb,geoOrthographicRaw:()=>N2,geoPath:()=>pb,geoProjection:()=>Wo,geoProjectionMutator:()=>_2,geoRotation:()=>n2,geoStereographic:()=>Cb,geoStereographicRaw:()=>D2,geoStream:()=>Ro,geoTransform:()=>gb,geoTransverseMercator:()=>Sb,geoTransverseMercatorRaw:()=>uf,gray:()=>n5,hcl:()=>wc,hierarchy:()=>O2,histogram:()=>kt,hsl:()=>Hl,html:()=>mm,image:()=>ym,interpolate:()=>il,interpolateArray:()=>jd,interpolateBasis:()=>Lr,interpolateBasisClosed:()=>nl,interpolateBlues:()=>k6,interpolateBrBG:()=>R4,interpolateBuGn:()=>Fg,interpolateBuPu:()=>Hi,interpolateCividis:()=>C6,interpolateCool:()=>Ug,interpolateCubehelix:()=>kf,interpolateCubehelixDefault:()=>S6,interpolateCubehelixLong:()=>h1,interpolateDate:()=>Q1,interpolateDiscrete:()=>zb,interpolateGnBu:()=>nd,interpolateGreens:()=>T6,interpolateGreys:()=>$u,interpolateHcl:()=>vs,interpolateHclLong:()=>Ho,interpolateHsl:()=>jb,interpolateHslLong:()=>Ub,interpolateHue:()=>bf,interpolateInferno:()=>ld,interpolateLab:()=>xf,interpolateMagma:()=>N6,interpolateNumber:()=>Na,interpolateNumberArray:()=>ch,interpolateObject:()=>J1,interpolateOrRd:()=>M1,interpolateOranges:()=>$4,interpolatePRGn:()=>Jf,interpolatePiYG:()=>wn,interpolatePlasma:()=>ud,interpolatePuBu:()=>Yg,interpolatePuBuGn:()=>id,interpolatePuOr:()=>Og,interpolatePuRd:()=>N1,interpolatePurples:()=>E6,interpolateRainbow:()=>Ea,interpolateRdBu:()=>Kf,interpolateRdGy:()=>P4,interpolateRdPu:()=>j4,interpolateRdYlBu:()=>Eo,interpolateRdYlGn:()=>_6,interpolateReds:()=>cd,interpolateRgb:()=>vc,interpolateRgbBasis:()=>Gl,interpolateRgbBasisClosed:()=>Do,interpolateRound:()=>P2,interpolateSinebow:()=>Qo,interpolateSpectral:()=>Y4,interpolateString:()=>Oo,interpolateTransformCss:()=>qd,interpolateTransformSvg:()=>Wd,interpolateTurbo:()=>H4,interpolateViridis:()=>M6,interpolateWarm:()=>A6,interpolateYlGn:()=>w6,interpolateYlGnBu:()=>x6,interpolateYlOrBr:()=>qc,interpolateYlOrRd:()=>q4,interpolateZoom:()=>_f,interrupt:()=>Oa,interval:()=>yv,isoFormat:()=>pv,isoParse:()=>gv,json:()=>R5,keys:()=>bh,lab:()=>_h,lch:()=>Tp,line:()=>pd,lineRadial:()=>Vg,linkHorizontal:()=>Fl,linkRadial:()=>Ns,linkVertical:()=>Vu,local:()=>V4,map:()=>zs,matcher:()=>Xe,max:()=>Ut,mean:()=>pe,median:()=>je,merge:()=>_e,min:()=>ue,mouse:()=>Is,namespace:()=>qn,namespaces:()=>on,nest:()=>e5,now:()=>G,pack:()=>Fb,packEnclose:()=>A3,packSiblings:()=>I3,pairs:()=>Y,partition:()=>$o,path:()=>Ys,permute:()=>de,pie:()=>hc,piecewise:()=>z2,pointRadial:()=>Il,polygonArea:()=>W3,polygonCentroid:()=>qb,polygonContains:()=>U2,polygonHull:()=>j2,polygonLength:()=>H3,precisionFixed:()=>qp,precisionPrefix:()=>Am,precisionRound:()=>Mm,quadtree:()=>Ah,quantile:()=>W,quantize:()=>q3,radialArea:()=>Q4,radialLine:()=>Vg,randomBates:()=>_s,randomExponential:()=>Hb,randomIrwinHall:()=>Du,randomLogNormal:()=>Nu,randomNormal:()=>f1,randomUniform:()=>Tf,range:()=>jt,rgb:()=>Dr,ribbon:()=>mp,scaleBand:()=>Sf,scaleDiverging:()=>ko,scaleDivergingLog:()=>As,scaleDivergingPow:()=>Qf,scaleDivergingSqrt:()=>O4,scaleDivergingSymlog:()=>S1,scaleIdentity:()=>V2,scaleImplicit:()=>q2,scaleLinear:()=>H2,scaleLog:()=>J3,scaleOrdinal:()=>Cf,scalePoint:()=>d1,scalePow:()=>J2,scaleQuantile:()=>r4,scaleQuantize:()=>i4,scaleSequential:()=>xo,scaleSequentialLog:()=>wo,scaleSequentialPow:()=>ju,scaleSequentialQuantile:()=>jc,scaleSequentialSqrt:()=>Ss,scaleSequentialSymlog:()=>C1,scaleSqrt:()=>Qb,scaleSymlog:()=>e4,scaleThreshold:()=>a4,scaleTime:()=>Xf,scaleUtc:()=>Cs,scan:()=>Me,schemeAccent:()=>B4,schemeBlues:()=>ad,schemeBrBG:()=>Mg,schemeBuGn:()=>td,schemeBuPu:()=>ed,schemeCategory10:()=>Uc,schemeDark2:()=>L4,schemeGnBu:()=>Rg,schemeGreens:()=>W4,schemeGreys:()=>jg,schemeOrRd:()=>qu,schemeOranges:()=>D1,schemePRGn:()=>Ng,schemePaired:()=>I4,schemePastel1:()=>ac,schemePastel2:()=>v6,schemePiYG:()=>A1,schemePuBu:()=>Pg,schemePuBuGn:()=>rd,schemePuOr:()=>Dg,schemePuRd:()=>z4,schemePurples:()=>od,schemeRdBu:()=>Uu,schemeRdGy:()=>To,schemeRdPu:()=>zg,schemeRdYlBu:()=>Bg,schemeRdYlGn:()=>Lg,schemeReds:()=>sd,schemeSet1:()=>b6,schemeSet2:()=>pa,schemeSet3:()=>F4,schemeSpectral:()=>Ig,schemeTableau10:()=>Qa,schemeYlGn:()=>Wu,schemeYlGnBu:()=>Zo,schemeYlOrBr:()=>Bi,schemeYlOrRd:()=>U4,select:()=>zr,selectAll:()=>B6,selection:()=>Ei,selector:()=>Ue,selectorAll:()=>Ie,set:()=>xc,shuffle:()=>Se,stack:()=>lv,stackOffsetDiverging:()=>Ju,stackOffsetExpand:()=>uv,stackOffsetNone:()=>Qu,stackOffsetSilhouette:()=>Ii,stackOffsetWiggle:()=>hv,stackOrderAppearance:()=>Pl,stackOrderAscending:()=>sy,stackOrderDescending:()=>Ku,stackOrderInsideOut:()=>dv,stackOrderNone:()=>Hc,stackOrderReverse:()=>Vc,stratify:()=>gf,style:()=>xn,sum:()=>ge,svg:()=>T0,symbol:()=>kd,symbolCircle:()=>Gu,symbolCross:()=>md,symbolDiamond:()=>I1,symbolSquare:()=>Qg,symbolStar:()=>_d,symbolTriangle:()=>xd,symbolWye:()=>cr,symbols:()=>z6,text:()=>au,thresholdFreedmanDiaconis:()=>At,thresholdScott:()=>Ft,thresholdSturges:()=>U,tickFormat:()=>Go,tickIncrement:()=>Q,tickStep:()=>lt,ticks:()=>Tt,timeDay:()=>pi,timeDays:()=>Iu,timeFormat:()=>Al,timeFormatDefaultLocale:()=>Tg,timeFormatLocale:()=>x1,timeFriday:()=>Bu,timeFridays:()=>Lu,timeHour:()=>c4,timeHours:()=>Xo,timeInterval:()=>qi,timeMillisecond:()=>Ru,timeMilliseconds:()=>u4,timeMinute:()=>v1,timeMinutes:()=>Rf,timeMonday:()=>Ou,timeMondays:()=>Lf,timeMonth:()=>eg,timeMonths:()=>Js,timeParse:()=>w1,timeSaturday:()=>tc,timeSaturdays:()=>s4,timeSecond:()=>Fu,timeSeconds:()=>l4,timeSunday:()=>El,timeSundays:()=>ig,timeThursday:()=>Ks,timeThursdays:()=>If,timeTuesday:()=>Bf,timeTuesdays:()=>ag,timeWednesday:()=>o4,timeWednesdays:()=>Kb,timeWeek:()=>El,timeWeeks:()=>ig,timeYear:()=>wl,timeYears:()=>Jb,timeout:()=>sn,timer:()=>we,timerFlush:()=>Be,touch:()=>Da,touches:()=>L6,transition:()=>t0,transpose:()=>bn,tree:()=>Su,treemap:()=>vf,treemapBinary:()=>u1,treemapDice:()=>s1,treemapResquarify:()=>R2,treemapSlice:()=>Fc,treemapSliceDice:()=>j3,treemapSquarify:()=>Rc,tsv:()=>gm,tsvFormat:()=>Jy,tsvFormatBody:()=>p5,tsvFormatRow:()=>y5,tsvFormatRows:()=>g5,tsvFormatValue:()=>m5,tsvParse:()=>Qy,tsvParseRows:()=>d5,utcDay:()=>_1,utcDays:()=>da,utcFormat:()=>Ml,utcFriday:()=>sg,utcFridays:()=>ws,utcHour:()=>T1,utcHours:()=>Sg,utcMillisecond:()=>Ru,utcMilliseconds:()=>u4,utcMinute:()=>Zf,utcMinutes:()=>Ag,utcMonday:()=>Yc,utcMondays:()=>cg,utcMonth:()=>Vt,utcMonths:()=>m6,utcParse:()=>Pu,utcSaturday:()=>ec,utcSaturdays:()=>zf,utcSecond:()=>Fu,utcSeconds:()=>l4,utcSunday:()=>b1,utcSundays:()=>f4,utcThursday:()=>zc,utcThursdays:()=>g4,utcTuesday:()=>og,utcTuesdays:()=>d4,utcWednesday:()=>h4,utcWednesdays:()=>p4,utcWeek:()=>b1,utcWeeks:()=>f4,utcYear:()=>ks,utcYears:()=>t6,values:()=>_p,variance:()=>tt,version:()=>x,voronoi:()=>fy,window:()=>Fn,xml:()=>P5,zip:()=>qe,zoom:()=>Ri,zoomIdentity:()=>Zc,zoomTransform:()=>Cv});var x="5.16.0";function d(n,i){return ni?1:n>=i?0:NaN}function T(n){var i;return n.length===1&&(i=n,n=function(o,l){return d(i(o),l)}),{left:function(o,l,f,g){for(f==null&&(f=0),g==null&&(g=o.length);f>>1;n(o[w],l)<0?f=w+1:g=w}return f},right:function(o,l,f,g){for(f==null&&(f=0),g==null&&(g=o.length);f>>1;n(o[w],l)>0?g=w:f=w+1}return f}}}var v=T(d),C=v.right,N=v.left;const D=C;function Y(n,i){i==null&&(i=L);for(var o=0,l=n.length-1,f=n[0],g=new Array(l<0?0:l);on?1:i>=n?0:NaN}function K(n){return n===null?NaN:+n}function tt(n,i){var o,l,f=n.length,g=0,w=-1,m=0,k=0;if(i==null)for(;++w1)return k/(g-1)}function dt(n,i){var o=tt(n,i);return o&&Math.sqrt(o)}function rt(n,i){var o,l,f,g=n.length,w=-1;if(i==null){for(;++w=o)for(l=f=o;++wo&&(l=o),f=o)for(l=f=o;++wo&&(l=o),f0)return[n];if((l=i0)for(n=Math.ceil(n/w),i=Math.floor(i/w),g=new Array(f=Math.ceil(i-n+1));++m=0?(g>=Nt?10:g>=Yt?5:g>=Bt?2:1)*Math.pow(10,f):-Math.pow(10,-f)/(g>=Nt?10:g>=Yt?5:g>=Bt?2:1)}function lt(n,i,o){var l=Math.abs(i-n)/Math.max(0,o),f=Math.pow(10,Math.floor(Math.log(l)/Math.LN10)),g=l/f;return g>=Nt?f*=10:g>=Yt?f*=5:g>=Bt&&(f*=2),iz;)O.pop(),--q;var H,et=new Array(q+1);for(g=0;g<=q;++g)(H=et[g]=[]).x0=g>0?O[g-1]:B,H.x1=g=1)return+o(n[l-1],l-1,n);var l,f=(l-1)*i,g=Math.floor(f),w=+o(n[g],g,n);return w+(+o(n[g+1],g+1,n)-w)*(f-g)}}function At(n,i,o){return n=_t.call(n,K).sort(d),Math.ceil((o-i)/(2*(W(n,.75)-W(n,.25))*Math.pow(n.length,-1/3)))}function Ft(n,i,o){return Math.ceil((o-i)/(3.5*dt(n)*Math.pow(n.length,-1/3)))}function Ut(n,i){var o,l,f=n.length,g=-1;if(i==null){for(;++g=o)for(l=o;++gl&&(l=o)}else for(;++g=o)for(l=o;++gl&&(l=o);return l}function pe(n,i){var o,l=n.length,f=l,g=-1,w=0;if(i==null)for(;++g=0;)for(i=(l=n[f]).length;--i>=0;)o[--w]=l[i];return o}function ue(n,i){var o,l,f=n.length,g=-1;if(i==null){for(;++g=o)for(l=o;++go&&(l=o)}else for(;++g=o)for(l=o;++go&&(l=o);return l}function de(n,i){for(var o=i.length,l=new Array(o);o--;)l[o]=n[i[o]];return l}function Me(n,i){if(o=n.length){var o,l,f=0,g=0,w=n[g];for(i==null&&(i=d);++f=0&&(l=o.slice(f+1),o=o.slice(0,f)),o&&!i.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:l}})}function en(n,i){for(var o,l=0,f=n.length;l0)for(var o,l,f=new Array(o),g=0;gi?1:n>=i?0:NaN}Lt.prototype={constructor:Lt,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 Mn="http://www.w3.org/1999/xhtml";const on={svg:"http://www.w3.org/2000/svg",xhtml:Mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qn(n){var i=n+="",o=i.indexOf(":");return o>=0&&(i=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),on.hasOwnProperty(i)?{space:on[i],local:n}:n}function Qn(n){return function(){this.removeAttribute(n)}}function Pr(n){return function(){this.removeAttributeNS(n.space,n.local)}}function kn(n,i){return function(){this.setAttribute(n,i)}}function Yn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Ln(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttribute(n):this.setAttribute(n,o)}}function Nn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,o)}}function Fn(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Pn(n){return function(){this.style.removeProperty(n)}}function Tn(n,i,o){return function(){this.style.setProperty(n,i,o)}}function Wn(n,i,o){return function(){var l=i.apply(this,arguments);l==null?this.style.removeProperty(n):this.style.setProperty(n,l,o)}}function xn(n,i){return n.style.getPropertyValue(i)||Fn(n).getComputedStyle(n,null).getPropertyValue(i)}function Cn(n){return function(){delete this[n]}}function $n(n,i){return function(){this[n]=i}}function oa(n,i){return function(){var o=i.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function fr(n){return n.trim().split(/^|\s+/)}function Ti(n){return n.classList||new pn(n)}function pn(n){this._node=n,this._names=fr(n.getAttribute("class")||"")}function mi(n,i){for(var o=Ti(n),l=-1,f=i.length;++l=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Jn={},De=null;function We(n,i,o){return n=_r(n,i,o),function(l){var f=l.relatedTarget;f&&(f===this||8&f.compareDocumentPosition(this))||n.call(this,l)}}function _r(n,i,o){return function(l){var f=De;De=l;try{n.call(this,this.__data__,i,o)}finally{De=f}}}function qt(n){return n.trim().split(/^|\s+/).map(function(i){var o="",l=i.indexOf(".");return l>=0&&(o=i.slice(l+1),i=i.slice(0,l)),{type:i,name:o}})}function ba(n){return function(){var i=this.__on;if(i){for(var o,l=0,f=-1,g=i.length;l=zt&&(zt=bt+1);!(at=Z[zt])&&++zt=0;)(l=f[g])&&(w&&4^l.compareDocumentPosition(w)&&w.parentNode.insertBefore(l,w),w=l);return this},sort:function(n){function i(z,O){return z&&O?n(z.__data__,O.__data__):!z-!O}n||(n=hn);for(var o=this._groups,l=o.length,f=new Array(l),g=0;g1?this.each((i==null?Pn:typeof i=="function"?Wn:Tn)(n,i,o==null?"":o)):xn(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?Cn:typeof i=="function"?oa:$n)(n,i)):this.node()[n]},classed:function(n,i){var o=fr(n+"");if(arguments.length<2){for(var l=Ti(this.node()),f=-1,g=o.length;++f>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):o===8?Zi(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):o===4?Zi(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=wa.exec(n))?new ti(i[1],i[2],i[3],1):(i=la.exec(n))?new ti(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=No.exec(n))?Zi(i[1],i[2],i[3],i[4]):(i=tl.exec(n))?Zi(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=Ht.exec(n))?eo(i[1],i[2]/100,i[3]/100,1):(i=un.exec(n))?eo(i[1],i[2]/100,i[3]/100,i[4]):Qe.hasOwnProperty(n)?ri(Qe[n]):n==="transparent"?new ti(NaN,NaN,NaN,0):null}function ri(n){return new ti(n>>16&255,n>>8&255,255&n,1)}function Zi(n,i,o,l){return l<=0&&(n=i=o=NaN),new ti(n,i,o,l)}function ka(n){return n instanceof jr||(n=qr(n)),n?new ti((n=n.rgb()).r,n.g,n.b,n.opacity):new ti}function Dr(n,i,o,l){return arguments.length===1?ka(n):new ti(n,i,o,l==null?1:l)}function ti(n,i,o,l){this.r=+n,this.g=+i,this.b=+o,this.opacity=+l}function el(){return"#"+Wl(this.r)+Wl(this.g)+Wl(this.b)}function ql(){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 Wl(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function eo(n,i,o,l){return l<=0?n=i=o=NaN:o<=0||o>=1?n=i=NaN:i<=0&&(n=NaN),new no(n,i,o,l)}function $l(n){if(n instanceof no)return new no(n.h,n.s,n.l,n.opacity);if(n instanceof jr||(n=qr(n)),!n)return new no;if(n instanceof no)return n;var i=(n=n.rgb()).r/255,o=n.g/255,l=n.b/255,f=Math.min(i,o,l),g=Math.max(i,o,l),w=NaN,m=g-f,k=(g+f)/2;return m?(w=i===g?(o-l)/m+6*(o0&&k<1?0:w,new no(w,m,k,n.opacity)}function Hl(n,i,o,l){return arguments.length===1?$l(n):new no(n,i,o,l==null?1:l)}function no(n,i,o,l){this.h=+n,this.s=+i,this.l=+o,this.opacity=+l}function Je(n,i,o){return 255*(n<60?i+(o-i)*n/60:n<180?o:n<240?i+(o-i)*(240-n)/60:i)}function oh(n,i,o,l,f){var g=n*n,w=g*n;return((1-3*n+3*g-w)*i+(4-6*g+3*w)*o+(1+3*n+3*g-3*w)*l+w*f)/6}function Lr(n){var i=n.length-1;return function(o){var l=o<=0?o=0:o>=1?(o=1,i-1):Math.floor(o*i),f=n[l],g=n[l+1],w=l>0?n[l-1]:2*f-g,m=l180||o<-180?o-360*Math.round(o/360):o):rl(isNaN(n)?i:n)}function Si(n,i){var o=i-n;return o?Vl(n,o):rl(isNaN(n)?i:n)}ci(jr,qr,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Kn,formatHex:Kn,formatHsl:function(){return $l(this).formatHsl()},formatRgb:Ur,toString:Ur}),ci(ti,Dr,ni(jr,{brighter:function(n){return n=n==null?Xi:Math.pow(Xi,n),new ti(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?ca:Math.pow(ca,n),new ti(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:el,formatHex:el,formatRgb:ql,toString:ql})),ci(no,Hl,ni(jr,{brighter:function(n){return n=n==null?Xi:Math.pow(Xi,n),new no(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ca:Math.pow(ca,n),new no(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),i=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,l=o+(o<.5?o:1-o)*i,f=2*o-l;return new ti(Je(n>=240?n-240:n+120,f,l),Je(n,f,l),Je(n<120?n+240:n-120,f,l),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 vc=function n(i){var o=function(f){return(f=+f)==1?Si:function(g,w){return w-g?function(m,k,S){return m=Math.pow(m,S),k=Math.pow(k,S)-m,S=1/S,function(B){return Math.pow(m+B*k,S)}}(g,w,f):rl(isNaN(g)?w:g)}}(i);function l(f,g){var w=o((f=Dr(f)).r,(g=Dr(g)).r),m=o(f.g,g.g),k=o(f.b,g.b),S=Si(f.opacity,g.opacity);return function(B){return f.r=w(B),f.g=m(B),f.b=k(B),f.opacity=S(B),f+""}}return l.gamma=n,l}(1);function sh(n){return function(i){var o,l,f=i.length,g=new Array(f),w=new Array(f),m=new Array(f);for(o=0;og&&(f=i.slice(g,f),m[w]?m[w]+=f:m[++w]=f),(o=o[0])===(l=l[0])?m[w]?m[w]+=l:m[++w]=l:(m[++w]=null,k.push({i:w,x:Na(o,l)})),g=uh.lastIndex;return g=0&&i._call.call(null,n),i=i._next;--Qi}function $e(){ua=($a=E.now())+rr,Qi=bi=0;try{Be()}finally{Qi=0,function(){for(var n,i,o=Xl,l=1/0;o;)o._call?(l>o._time&&(l=o._time),n=o,o=o._next):(i=o._next,o._next=null,o=n?n._next=i:Xl=i);Bo=n,tn(l)}(),ua=0}}function He(){var n=E.now(),i=n-$a;i>1e3&&(rr-=i,$a=n)}function tn(n){Qi||(bi&&(bi=clearTimeout(bi)),n-ua>24?(n<1/0&&(bi=setTimeout($e,n-E.now()-rr)),io&&(io=clearInterval(io))):(io||($a=E.now(),io=setInterval(He,1e3)),Qi=1,P($e)))}function sn(n,i,o){var l=new Zt;return i=i==null?0:+i,l.restart(function(f){l.stop(),n(f+i)},i,o),l}Zt.prototype=we.prototype={constructor:Zt,restart:function(n,i,o){if(typeof n!="function")throw new TypeError("callback is not a function");o=(o==null?G():+o)+(i==null?0:+i),this._next||Bo===this||(Bo?Bo._next=this:Xl=this,Bo=this),this._call=n,this._time=o,tn()},stop:function(){this._call&&(this._call=null,this._time=1/0,tn())}};var In=ln("start","end","cancel","interrupt"),Dn=[];function mr(n,i,o,l,f,g){var w=n.__transition;if(w){if(o in w)return}else n.__transition={};(function(m,k,S){var B,z=m.__transition;function O(et){var J,Z,st,at;if(S.state!==1)return H();for(J in z)if((at=z[J]).name===S.name){if(at.state===3)return sn(O);at.state===4?(at.state=6,at.timer.stop(),at.on.call("interrupt",m,m.__data__,at.index,at.group),delete z[J]):+J0)throw new Error("too late; already scheduled");return o}function Ir(n,i){var o=pr(n,i);if(o.state>3)throw new Error("too late; already running");return o}function pr(n,i){var o=n.__transition;if(!o||!(o=o[i]))throw new Error("transition not found");return o}function Oa(n,i){var o,l,f,g=n.__transition,w=!0;if(g){for(f in i=i==null?null:i+"",g)(o=g[f]).name===i?(l=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(l?"interrupt":"cancel",n,n.__data__,o.index,o.group),delete g[f]):w=!1;w&&delete n.__transition}}var Fs,hh,Ud,fh,Lo=180/Math.PI,dh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _y(n,i,o,l,f,g){var w,m,k;return(w=Math.sqrt(n*n+i*i))&&(n/=w,i/=w),(k=n*o+i*l)&&(o-=n*k,l-=i*k),(m=Math.sqrt(o*o+l*l))&&(o/=m,l/=m,k/=m),n*l180?B+=360:B-S>180&&(S+=360),O.push({i:z.push(f(z)+"rotate(",null,l)-2,x:Na(S,B)})):B&&z.push(f(z)+"rotate("+B+l)}(g.rotate,w.rotate,m,k),function(S,B,z,O){S!==B?O.push({i:z.push(f(z)+"skewX(",null,l)-2,x:Na(S,B)}):B&&z.push(f(z)+"skewX("+B+l)}(g.skewX,w.skewX,m,k),function(S,B,z,O,q,H){if(S!==z||B!==O){var et=q.push(f(q)+"scale(",null,",",null,")");H.push({i:et-4,x:Na(S,z)},{i:et-2,x:Na(B,O)})}else z===1&&O===1||q.push(f(q)+"scale("+z+","+O+")")}(g.scaleX,g.scaleY,w.scaleX,w.scaleY,m,k),g=w=null,function(S){for(var B,z=-1,O=k.length;++z=0&&(m=m.slice(0,k)),!m||m==="start"})}(i)?xr:Ir;return function(){var w=g(this,n),m=w.on;m!==l&&(f=(l=m).copy()).on(i,o),w.on=f}}var ep=Ei.prototype.constructor;function np(n){return function(){this.style.removeProperty(n)}}function rp(n,i,o){return function(l){this.style.setProperty(n,i.call(this,l),o)}}function ip(n,i,o){var l,f;function g(){var w=i.apply(this,arguments);return w!==f&&(l=(f=w)&&rp(n,w,o)),l}return g._value=i,g}function ap(n){return function(i){this.textContent=n.call(this,i)}}function Hv(n){var i,o;function l(){var f=n.apply(this,arguments);return f!==o&&(i=(o=f)&&ap(f)),i}return l._value=n,l}var Vv=0;function os(n,i,o,l){this._groups=n,this._parents=i,this._name=o,this._id=l}function t0(n){return Ei().transition(n)}function op(){return++Vv}var ss=Ei.prototype;function e0(n){return n*n*n}function n0(n){return--n*n*n+1}function bc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}os.prototype=t0.prototype={constructor:os,select:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=Ue(n));for(var l=this._groups,f=l.length,g=new Array(f),w=0;w1&&o.name===i)return new os([[n]],Gv,i,+l)}return null}function sp(n){return function(){return n}}function Zv(n,i,o){this.target=n,this.type=i,this.selection=o}function Ey(){De.stopImmediatePropagation()}function cp(){De.preventDefault(),De.stopImmediatePropagation()}var Cy={name:"drag"},r0={name:"space"},sl={name:"handle"},cl={name:"center"};function Zl(n){return[+n[0],+n[1]]}function i0(n){return[Zl(n[0]),Zl(n[1])]}function a0(n){return function(i){return Da(i,De.touches,n)}}var o0={name:"x",handles:["w","e"].map(Ha),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]]}},Ql={name:"y",handles:["n","s"].map(Ha),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]]}},ao={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ha),input:function(n){return n==null?null:i0(n)},output:function(n){return n}},ls={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"},lp={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},s0={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Sy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ay={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ha(n){return{type:n}}function up(){return!De.ctrlKey&&!De.button}function hp(){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 My(){return navigator.maxTouchPoints||"ontouchstart"in this}function c0(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function Qv(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Jv(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function l0(){return gh(o0)}function Kv(){return gh(Ql)}function fp(){return gh(ao)}function gh(n){var i,o=hp,l=up,f=My,g=!0,w=ln("start","brush","end"),m=6;function k(J){var Z=J.property("__brush",et).selectAll(".overlay").data([Ha("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ls.overlay).merge(Z).each(function(){var at=c0(this).extent;zr(this).attr("x",at[0][0]).attr("y",at[0][1]).attr("width",at[1][0]-at[0][0]).attr("height",at[1][1]-at[0][1])}),J.selectAll(".selection").data([Ha("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ls.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var st=J.selectAll(".handle").data(n.handles,function(at){return at.type});st.exit().remove(),st.enter().append("rect").attr("class",function(at){return"handle handle--"+at.type}).attr("cursor",function(at){return ls[at.type]}),J.each(S).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",O).filter(f).on("touchstart.brush",O).on("touchmove.brush",q).on("touchend.brush touchcancel.brush",H).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(){var J=zr(this),Z=c0(this).selection;Z?(J.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),J.selectAll(".handle").style("display",null).attr("x",function(st){return st.type[st.type.length-1]==="e"?Z[1][0]-m/2:Z[0][0]-m/2}).attr("y",function(st){return st.type[0]==="s"?Z[1][1]-m/2:Z[0][1]-m/2}).attr("width",function(st){return st.type==="n"||st.type==="s"?Z[1][0]-Z[0][0]+m:m}).attr("height",function(st){return st.type==="e"||st.type==="w"?Z[1][1]-Z[0][1]+m:m})):J.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(J,Z,st){var at=J.__brush.emitter;return!at||st&&at.clean?new z(J,Z,st):at}function z(J,Z,st){this.that=J,this.args=Z,this.state=J.__brush,this.active=0,this.clean=st}function O(){if((!i||De.touches)&&l.apply(this,arguments)){var J,Z,st,at,bt,zt,Qt,ae,Oe,$t,fe,gt=this,St=De.target.__data__.type,oe=(g&&De.metaKey?St="overlay":St)==="selection"?Cy:g&&De.altKey?cl:sl,ie=n===Ql?null:Sy[St],ce=n===o0?null:Ay[St],Ze=c0(gt),cn=Ze.extent,On=Ze.selection,lr=cn[0][0],Vn=cn[0][1],yn=cn[1][0],kr=cn[1][1],Un=0,zn=0,vr=ie&&ce&&g&&De.shiftKey,va=De.touches?a0(De.changedTouches[0].identifier):Is,Pi=va(gt),yc=Pi,Jc=B(gt,arguments,!0).beforestart();St==="overlay"?(On&&(Oe=!0),Ze.selection=On=[[J=n===Ql?lr:Pi[0],st=n===o0?Vn:Pi[1]],[bt=n===Ql?yn:J,Qt=n===o0?kr:st]]):(J=On[0][0],st=On[0][1],bt=On[1][0],Qt=On[1][1]),Z=J,at=st,zt=bt,ae=Qt;var H1=zr(gt).attr("pointer-events","none"),Os=H1.selectAll(".overlay").attr("cursor",ls[St]);if(De.touches)Jc.moved=Av,Jc.ended=Mv;else{var Sv=zr(De.view).on("mousemove.brush",Av,!0).on("mouseup.brush",Mv,!0);g&&Sv.on("keydown.brush",t_,!0).on("keyup.brush",e_,!0),Oi(De.view)}Ey(),Oa(gt),S.call(gt),Jc.start()}function Av(){var So=va(gt);!vr||$t||fe||(Math.abs(So[0]-yc[0])>Math.abs(So[1]-yc[1])?fe=!0:$t=!0),yc=So,Oe=!0,cp(),rh()}function rh(){var So;switch(Un=yc[0]-Pi[0],zn=yc[1]-Pi[1],oe){case r0:case Cy:ie&&(Un=Math.max(lr-J,Math.min(yn-bt,Un)),Z=J+Un,zt=bt+Un),ce&&(zn=Math.max(Vn-st,Math.min(kr-Qt,zn)),at=st+zn,ae=Qt+zn);break;case sl:ie<0?(Un=Math.max(lr-J,Math.min(yn-J,Un)),Z=J+Un,zt=bt):ie>0&&(Un=Math.max(lr-bt,Math.min(yn-bt,Un)),Z=J,zt=bt+Un),ce<0?(zn=Math.max(Vn-st,Math.min(kr-st,zn)),at=st+zn,ae=Qt):ce>0&&(zn=Math.max(Vn-Qt,Math.min(kr-Qt,zn)),at=st,ae=Qt+zn);break;case cl:ie&&(Z=Math.max(lr,Math.min(yn,J-Un*ie)),zt=Math.max(lr,Math.min(yn,bt+Un*ie))),ce&&(at=Math.max(Vn,Math.min(kr,st-zn*ce)),ae=Math.max(Vn,Math.min(kr,Qt+zn*ce)))}zt0&&(J=Z-Un),ce<0?Qt=ae-zn:ce>0&&(st=at-zn),oe=r0,Os.attr("cursor",ls.selection),rh());break;default:return}cp()}function e_(){switch(De.keyCode){case 16:vr&&($t=fe=vr=!1,rh());break;case 18:oe===cl&&(ie<0?bt=zt:ie>0&&(J=Z),ce<0?Qt=ae:ce>0&&(st=at),oe=sl,rh());break;case 32:oe===r0&&(De.altKey?(ie&&(bt=zt-Un*ie,J=Z+Un*ie),ce&&(Qt=ae-zn*ce,st=at+zn*ce),oe=cl):(ie<0?bt=zt:ie>0&&(J=Z),ce<0?Qt=ae:ce>0&&(st=at),oe=sl),Os.attr("cursor",ls[St]),rh());break;default:return}cp()}}function q(){B(this,arguments).moved()}function H(){B(this,arguments).ended()}function et(){var J=this.__brush||{selection:null};return J.extent=i0(o.apply(this,arguments)),J.dim=n,J}return k.move=function(J,Z){J.selection?J.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var st=this,at=st.__brush,bt=B(st,arguments),zt=at.selection,Qt=n.input(typeof Z=="function"?Z.apply(this,arguments):Z,at.extent),ae=il(zt,Qt);function Oe($t){at.selection=$t===1&&Qt===null?null:ae($t),S.call(st),bt.brush()}return zt!==null&&Qt!==null?Oe:Oe(1)}):J.each(function(){var st=this,at=arguments,bt=st.__brush,zt=n.input(typeof Z=="function"?Z.apply(st,at):Z,bt.extent),Qt=B(st,at).beforestart();Oa(st),bt.selection=zt===null?null:zt,S.call(st),Qt.start().brush().end()})},k.clear=function(J){k.move(J,null)},z.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(J){Kr(new Zv(k,J,n.output(this.state.selection)),w.apply,w,[J,this.that,this.args])}},k.extent=function(J){return arguments.length?(o=typeof J=="function"?J:sp(i0(J)),k):o},k.filter=function(J){return arguments.length?(l=typeof J=="function"?J:sp(!!J),k):l},k.touchable=function(J){return arguments.length?(f=typeof J=="function"?J:sp(!!J),k):f},k.handleSize=function(J){return arguments.length?(m=+J,k):m},k.keyModifiers=function(J){return arguments.length?(g=!!J,k):g},k.on=function(){var J=w.on.apply(w,arguments);return J===w?k:J},k}var Ny=Math.cos,Dy=Math.sin,u0=Math.PI,h0=u0/2,Oy=2*u0,dp=Math.max;function Jl(n){return function(i,o){return n(i.source.value+i.target.value,o.source.value+o.target.value)}}function pp(){var n=0,i=null,o=null,l=null;function f(g){var w,m,k,S,B,z,O=g.length,q=[],H=jt(O),et=[],J=[],Z=J.groups=new Array(O),st=new Array(O*O);for(w=0,B=-1;++BPs)if(Math.abs(B*m-k*S)>Ps&&f){var O=o-g,q=l-w,H=m*m+k*k,et=O*O+q*q,J=Math.sqrt(H),Z=Math.sqrt(z),st=f*Math.tan((f0-Math.acos((H+z-et)/(2*J*Z)))/2),at=st/Z,bt=st/J;Math.abs(at-1)>Ps&&(this._+="L"+(n+at*S)+","+(i+at*B)),this._+="A"+f+","+f+",0,0,"+ +(B*O>S*q)+","+(this._x1=n+bt*m)+","+(this._y1=i+bt*k)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,o,l,f,g){n=+n,i=+i,g=!!g;var w=(o=+o)*Math.cos(l),m=o*Math.sin(l),k=n+w,S=i+m,B=1^g,z=g?l-f:f-l;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+k+","+S:(Math.abs(this._x1-k)>Ps||Math.abs(this._y1-S)>Ps)&&(this._+="L"+k+","+S),o&&(z<0&&(z=z%d0+d0),z>By?this._+="A"+o+","+o+",0,1,"+B+","+(n-w)+","+(i-m)+"A"+o+","+o+",0,1,"+B+","+(this._x1=k)+","+(this._y1=S):z>Ps&&(this._+="A"+o+","+o+",0,"+ +(z>=f0)+","+B+","+(this._x1=n+o*Math.cos(f))+","+(this._y1=i+o*Math.sin(f))))},rect:function(n,i,o,l){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +o+"v"+ +l+"h"+-o+"Z"},toString:function(){return this._}};const Ys=yh;function p0(n){return n.source}function Kl(n){return n.target}function Ly(n){return n.radius}function Iy(n){return n.startAngle}function Fy(n){return n.endAngle}function mp(){var n=p0,i=Kl,o=Ly,l=Iy,f=Fy,g=null;function w(){var m,k=t5.call(arguments),S=n.apply(this,k),B=i.apply(this,k),z=+o.apply(this,(k[0]=S,k)),O=l.apply(this,k)-h0,q=f.apply(this,k)-h0,H=z*Ny(O),et=z*Dy(O),J=+o.apply(this,(k[0]=B,k)),Z=l.apply(this,k)-h0,st=f.apply(this,k)-h0;if(g||(g=m=Ys()),g.moveTo(H,et),g.arc(0,0,z,O,q),O===Z&&q===st||(g.quadraticCurveTo(0,0,J*Ny(Z),J*Dy(Z)),g.arc(0,0,J,Z,st)),g.quadraticCurveTo(0,0,H,et),g.closePath(),m)return g=null,m+""||null}return w.radius=function(m){return arguments.length?(o=typeof m=="function"?m:gp(+m),w):o},w.startAngle=function(m){return arguments.length?(l=typeof m=="function"?m:gp(+m),w):l},w.endAngle=function(m){return arguments.length?(f=typeof m=="function"?m:gp(+m),w):f},w.source=function(m){return arguments.length?(n=m,w):n},w.target=function(m){return arguments.length?(i=m,w):i},w.context=function(m){return arguments.length?(g=m==null?null:m,w):g},w}var oo="$";function mh(){}function vp(n,i){var o=new mh;if(n instanceof mh)n.each(function(m,k){o.set(k,m)});else if(Array.isArray(n)){var l,f=-1,g=n.length;if(i==null)for(;++f=l.length)return n!=null&&m.sort(n),i!=null?i(m):m;for(var z,O,q,H=-1,et=m.length,J=l[k++],Z=zs(),st=S();++Hl.length)return m;var S,B=f[k-1];return i!=null&&k>=l.length?S=m.entries():(S=[],m.each(function(z,O){S.push({key:O,values:w(z,k)})})),B!=null?S.sort(function(z,O){return B(z.key,O.key)}):S}return o={object:function(m){return g(m,0,Ry,Py)},map:function(m){return g(m,0,bp,Yy)},entries:function(m){return w(g(m,0,bp,Yy),0)},key:function(m){return l.push(m),o},sortKeys:function(m){return f[l.length-1]=m,o},sortValues:function(m){return n=m,o},rollup:function(m){return i=m,o}}}function Ry(){return{}}function Py(n,i,o){n[i]=o}function bp(){return zs()}function Yy(n,i,o){n.set(i,o)}function vh(){}var _c=zs.prototype;function tu(n,i){var o=new vh;if(n instanceof vh)n.each(function(g){o.add(g)});else if(n){var l=-1,f=n.length;if(i==null)for(;++l.008856451679035631?Math.pow(n,1/3):n/zy+v0}function kp(n){return n>wp?n*n*n:zy*(n-v0)}function nu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function js(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _0(n){if(n instanceof us)return new us(n.h,n.c,n.l,n.opacity);if(n instanceof Io||(n=eu(n)),n.a===0&&n.b===0)return new us(NaN,0l!=q>l&&o<(O-S)*(l-B)/(q-B)+S&&(f=-f)}return f}function kh(n,i,o){var l,f,g,w;return function(m,k,S){return(k[0]-m[0])*(S[1]-m[1])==(S[0]-m[0])*(k[1]-m[1])}(n,i,o)&&(f=n[l=+(n[0]===i[0])],g=o[l],w=i[l],f<=g&&g<=w||w<=g&&g<=f)}function Wy(){}var fs=[[],[[[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 ji(){var n=1,i=1,o=U,l=m;function f(k){var S=o(k);if(Array.isArray(S))S=S.slice().sort(r5);else{var B=rt(k),z=B[0],O=B[1];S=lt(z,O,S),S=jt(Math.floor(z/S)*S,Math.floor(O/S)*S,S)}return S.map(function(q){return g(k,q)})}function g(k,S){var B=[],z=[];return function(O,q,H){var et,J,Z,st,at,bt,zt=new Array,Qt=new Array;for(et=J=-1,st=O[0]>=q,fs[st<<1].forEach(ae);++et=q,fs[Z|st<<1].forEach(ae);for(fs[st<<0].forEach(ae);++J=q,at=O[J*n]>=q,fs[st<<1|at<<2].forEach(ae);++et=q,bt=at,at=O[J*n+et+1]>=q,fs[Z|st<<1|at<<2|bt<<3].forEach(ae);fs[st|at<<3].forEach(ae)}for(et=-1,at=O[J*n]>=q,fs[at<<2].forEach(ae);++et=q,fs[at<<2|bt<<3].forEach(ae);function ae(Oe){var $t,fe,gt=[Oe[0][0]+et,Oe[0][1]+J],St=[Oe[1][0]+et,Oe[1][1]+J],oe=w(gt),ie=w(St);($t=Qt[oe])?(fe=zt[ie])?(delete Qt[$t.end],delete zt[fe.start],$t===fe?($t.ring.push(St),H($t.ring)):zt[$t.start]=Qt[fe.end]={start:$t.start,end:fe.end,ring:$t.ring.concat(fe.ring)}):(delete Qt[$t.end],$t.ring.push(St),Qt[$t.end=ie]=$t):($t=zt[ie])?(fe=Qt[oe])?(delete zt[$t.start],delete Qt[fe.end],$t===fe?($t.ring.push(St),H($t.ring)):zt[fe.start]=Qt[$t.end]={start:fe.start,end:$t.end,ring:fe.ring.concat($t.ring)}):(delete zt[$t.start],$t.ring.unshift(gt),zt[$t.start=oe]=$t):zt[oe]=Qt[ie]={start:oe,end:ie,ring:[gt,St]}}fs[at<<3].forEach(ae)}(k,S,function(O){l(O,k,S),function(q){for(var H=0,et=q.length,J=q[et-1][1]*q[0][0]-q[et-1][0]*q[0][1];++H0?B.push([O]):z.push(O)}),z.forEach(function(O){for(var q,H=0,et=B.length;H0&&q0&&H0&&B>0))throw new Error("invalid size");return n=S,i=B,f},f.thresholds=function(k){return arguments.length?(o=typeof k=="function"?k:Array.isArray(k)?hs(qy.call(k)):hs(k),f):o},f.smooth=function(k){return arguments.length?(l=k?m:Wy,f):l===m},f}function Mp(n,i,o){for(var l=n.width,f=n.height,g=1+(o<<1),w=0;w=o&&(m>=g&&(k-=n.data[m-g+w*l]),i.data[m-o+w*l]=k/Math.min(m+1,l-1+g-m,g))}function Np(n,i,o){for(var l=n.width,f=n.height,g=1+(o<<1),w=0;w=o&&(m>=g&&(k-=n.data[w+(m-g)*l]),i.data[w+(m-o)*l]=k/Math.min(m+1,f-1+g-m,g))}function Er(n){return n[0]}function i5(n){return n[1]}function Th(){return 1}function Eh(){var n=Er,i=i5,o=Th,l=960,f=500,g=20,w=2,m=3*g,k=l+2*m>>w,S=f+2*m>>w,B=hs(20);function z(Z){var st=new Float32Array(k*S),at=new Float32Array(k*S);Z.forEach(function(Qt,ae,Oe){var $t=+n(Qt,ae,Oe)+m>>w,fe=+i(Qt,ae,Oe)+m>>w,gt=+o(Qt,ae,Oe);$t>=0&&$t=0&&fe>w),Np({width:k,height:S,data:at},{width:k,height:S,data:st},g>>w),Mp({width:k,height:S,data:st},{width:k,height:S,data:at},g>>w),Np({width:k,height:S,data:at},{width:k,height:S,data:st},g>>w),Mp({width:k,height:S,data:st},{width:k,height:S,data:at},g>>w),Np({width:k,height:S,data:at},{width:k,height:S,data:st},g>>w);var bt=B(st);if(!Array.isArray(bt)){var zt=Ut(st);bt=lt(0,zt,bt),(bt=jt(0,Math.floor(zt/bt)*bt,bt)).shift()}return ji().thresholds(bt).size([k,S])(st).map(O)}function O(Z){return Z.value*=Math.pow(2,-2*w),Z.coordinates.forEach(q),Z}function q(Z){Z.forEach(H)}function H(Z){Z.forEach(et)}function et(Z){Z[0]=Z[0]*Math.pow(2,w)-m,Z[1]=Z[1]*Math.pow(2,w)-m}function J(){return k=l+2*(m=3*g)>>w,S=f+2*m>>w,z}return z.x=function(Z){return arguments.length?(n=typeof Z=="function"?Z:hs(+Z),z):n},z.y=function(Z){return arguments.length?(i=typeof Z=="function"?Z:hs(+Z),z):i},z.weight=function(Z){return arguments.length?(o=typeof Z=="function"?Z:hs(+Z),z):o},z.size=function(Z){if(!arguments.length)return[l,f];var st=Math.ceil(Z[0]),at=Math.ceil(Z[1]);if(!(st>=0||st>=0))throw new Error("invalid size");return l=st,f=at,J()},z.cellSize=function(Z){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return w=Math.floor(Math.log(Z)/Math.LN2),J()},z.thresholds=function(Z){return arguments.length?(B=typeof Z=="function"?Z:Array.isArray(Z)?hs(qy.call(Z)):hs(Z),z):B},z.bandwidth=function(Z){if(!arguments.length)return Math.sqrt(g*(g+1));if(!((Z=+Z)>=0))throw new Error("invalid bandwidth");return g=Math.round((Math.sqrt(4*Z*Z+1)-1)/2),J()},z}function w0(n){return function(){return n}}function Dp(n,i,o,l,f,g,w,m,k,S){this.target=n,this.type=i,this.subject=o,this.identifier=l,this.active=f,this.x=g,this.y=w,this.dx=m,this.dy=k,this._=S}function a5(){return!De.ctrlKey&&!De.button}function o5(){return this.parentNode}function s5(n){return n==null?{x:De.x,y:De.y}:n}function $y(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hy(){var n,i,o,l,f=a5,g=o5,w=s5,m=$y,k={},S=ln("start","drag","end"),B=0,z=0;function O(bt){bt.on("mousedown.drag",q).filter(m).on("touchstart.drag",J).on("touchmove.drag",Z).on("touchend.drag touchcancel.drag",st).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function q(){if(!l&&f.apply(this,arguments)){var bt=at("mouse",g.apply(this,arguments),Is,this,arguments);bt&&(zr(De.view).on("mousemove.drag",H,!0).on("mouseup.drag",et,!0),Oi(De.view),Di(),o=!1,n=De.clientX,i=De.clientY,bt("start"))}}function H(){if(Gi(),!o){var bt=De.clientX-n,zt=De.clientY-i;o=bt*bt+zt*zt>z}k.mouse("drag")}function et(){zr(De.view).on("mousemove.drag mouseup.drag",null),Nr(De.view,o),Gi(),k.mouse("end")}function J(){if(f.apply(this,arguments)){var bt,zt,Qt=De.changedTouches,ae=g.apply(this,arguments),Oe=Qt.length;for(bt=0;bt=z?H=!0:(at=m.charCodeAt(O++))===10?et=!0:at===13&&(et=!0,m.charCodeAt(O)===10&&++O),m.slice(bt+1,st-1).replace(/""/g,'"')}for(;O9999?"+"+Va(q,6):Va(q,4)}(k.getUTCFullYear())+"-"+Va(k.getUTCMonth()+1,2)+"-"+Va(k.getUTCDate(),2)+(O?"T"+Va(S,2)+":"+Va(B,2)+":"+Va(z,2)+"."+Va(O,3)+"Z":z?"T"+Va(S,2)+":"+Va(B,2)+":"+Va(z,2)+"Z":B||S?"T"+Va(S,2)+":"+Va(B,2)+"Z":"")}(m):i.test(m+="")?'"'+m.replace(/"/g,'""')+'"':m}return{parse:function(m,k){var S,B,z=l(m,function(O,q){if(S)return S(O,q-1);B=O,S=k?function(H,et){var J=Gy(H);return function(Z,st){return et(J(Z),st,H)}}(O,k):Gy(O)});return z.columns=B||[],z},parseRows:l,format:function(m,k){return k==null&&(k=Bp(m)),[k.map(w).join(n)].concat(f(m,k)).join(` `)},formatBody:function(m,k){return k==null&&(k=Bp(m)),f(m,k).join(` `)},formatRows:function(m){return m.map(g).join(` `)},formatRow:g,formatValue:w}}var ul=Ch(","),Xy=ul.parse,c5=ul.parseRows,l5=ul.format,u5=ul.formatBody,h5=ul.formatRows,f5=ul.formatRow,Zy=ul.formatValue,hl=Ch(" "),Qy=hl.parse,d5=hl.parseRows,Jy=hl.format,p5=hl.formatBody,g5=hl.formatRows,y5=hl.formatRow,m5=hl.formatValue;function v5(n){for(var i in n){var o,l,f=n[i].trim();if(f)if(f==="true")f=!0;else if(f==="false")f=!1;else if(f==="NaN")f=NaN;else if(isNaN(o=+f)){if(!(l=f.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;b5&&l[4]&&!l[7]&&(f=f.replace(/-/g,"/").replace(/T/," ")),f=new Date(f)}else f=o;else f=null;n[i]=f}return n}var b5=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Ky(n){return+n}function _5(n){return n*n}function x5(n){return n*(2-n)}function tm(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var w5=function n(i){function o(l){return Math.pow(l,i)}return i=+i,o.exponent=n,o}(3),k5=function n(i){function o(l){return 1-Math.pow(1-l,i)}return i=+i,o.exponent=n,o}(3),em=function n(i){function o(l){return((l*=2)<=1?Math.pow(l,i):2-Math.pow(2-l,i))/2}return i=+i,o.exponent=n,o}(3),nm=Math.PI,rm=nm/2;function im(n){return+n==1?1:1-Math.cos(n*rm)}function T5(n){return Math.sin(n*rm)}function am(n){return(1-Math.cos(nm*n))/2}function kc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function om(n){return kc(1-+n)}function E5(n){return 1-kc(n)}function sm(n){return((n*=2)<=1?kc(1-n):2-kc(n-1))/2}function C5(n){return 1-Math.sqrt(1-n*n)}function S5(n){return Math.sqrt(1- --n*n)}function cm(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var k0=7.5625;function lm(n){return 1-Sh(1-n)}function Sh(n){return(n=+n)<.36363636363636365?k0*n*n:n<.7272727272727273?k0*(n-=.5454545454545454)*n+.75:n<.9090909090909091?k0*(n-=.8181818181818182)*n+.9375:k0*(n-=.9545454545454546)*n+.984375}function A5(n){return((n*=2)<=1?1-Sh(1-n):Sh(n-1)+1)/2}var Lp=1.70158,M5=function n(i){function o(l){return(l=+l)*l*(i*(l-1)+l)}return i=+i,o.overshoot=n,o}(Lp),N5=function n(i){function o(l){return--l*l*((l+1)*i+l)+1}return i=+i,o.overshoot=n,o}(Lp),um=function n(i){function o(l){return((l*=2)<1?l*l*((i+1)*l-i):(l-=2)*l*((i+1)*l+i)+2)/2}return i=+i,o.overshoot=n,o}(Lp),iu=2*Math.PI,D5=function n(i,o){var l=Math.asin(1/(i=Math.max(1,i)))*(o/=iu);function f(g){return i*kc(- --g)*Math.sin((l-g)/o)}return f.amplitude=function(g){return n(g,o*iu)},f.period=function(g){return n(i,g)},f}(1,.3),Ip=function n(i,o){var l=Math.asin(1/(i=Math.max(1,i)))*(o/=iu);function f(g){return 1-i*kc(g=+g)*Math.sin((g+l)/o)}return f.amplitude=function(g){return n(g,o*iu)},f.period=function(g){return n(i,g)},f}(1,.3),hm=function n(i,o){var l=Math.asin(1/(i=Math.max(1,i)))*(o/=iu);function f(g){return((g=2*g-1)<0?i*kc(-g)*Math.sin((l-g)/o):2-i*kc(g)*Math.sin((l+g)/o))/2}return f.amplitude=function(g){return n(g,o*iu)},f.period=function(g){return n(i,g)},f}(1,.3);function fm(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function O5(n,i){return fetch(n,i).then(fm)}function B5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function dm(n,i){return fetch(n,i).then(B5)}function L5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function au(n,i){return fetch(n,i).then(L5)}function Fp(n){return function(i,o,l){return arguments.length===2&&typeof o=="function"&&(l=o,o=void 0),au(i,o).then(function(f){return n(f,l)})}}function I5(n,i,o,l){arguments.length===3&&typeof o=="function"&&(l=o,o=void 0);var f=Ch(n);return au(i,o).then(function(g){return f.parse(g,l)})}var pm=Fp(Xy),gm=Fp(Qy);function ym(n,i){return new Promise(function(o,l){var f=new Image;for(var g in i)f[g]=i[g];f.onerror=l,f.onload=function(){o(f)},f.src=n})}function F5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function R5(n,i){return fetch(n,i).then(F5)}function Rp(n){return function(i,o){return au(i,o).then(function(l){return new DOMParser().parseFromString(l,n)})}}const P5=Rp("application/xml");var mm=Rp("text/html"),T0=Rp("image/svg+xml");function Y5(n,i){var o;function l(){var f,g,w=o.length,m=0,k=0;for(f=0;f=(g=(et+Z)/2))?et=g:Z=g,(B=o>=(w=(J+st)/2))?J=w:st=w,f=q,!(q=q[z=B<<1|S]))return f[z]=H,n;if(m=+n._x.call(null,q.data),k=+n._y.call(null,q.data),i===m&&o===k)return H.next=q,f?f[z]=H:n._root=H,n;do f=f?f[z]=new Array(4):n._root=new Array(4),(S=i>=(g=(et+Z)/2))?et=g:Z=g,(B=o>=(w=(J+st)/2))?J=w:st=w;while((z=B<<1|S)==(O=(k>=w)<<1|m>=g));return f[O]=q,f[z]=H,n}function La(n,i,o,l,f){this.node=n,this.x0=i,this.y0=o,this.x1=l,this.y1=f}function z5(n){return n[0]}function Pp(n){return n[1]}function Ah(n,i,o){var l=new ou(i==null?z5:i,o==null?Pp:o,NaN,NaN,NaN,NaN);return n==null?l:l.addAll(n)}function ou(n,i,o,l,f,g){this._x=n,this._y=i,this._x0=o,this._y0=l,this._x1=f,this._y1=g,this._root=void 0}function bm(n){for(var i={data:n.data},o=i;n=n.next;)o=o.next={data:n.data};return i}var Ia=Ah.prototype=ou.prototype;function j5(n){return n.x+n.vx}function U5(n){return n.y+n.vy}function q5(n){var i,o,l=1,f=1;function g(){for(var k,S,B,z,O,q,H,et=i.length,J=0;Jz+$t||ztO+$t||QtB.index){var fe=z-ae.x-ae.vx,gt=O-ae.y-ae.vy,St=fe*fe+gt*gt;St<$t*$t&&(fe===0&&(St+=(fe=Tc())*fe),gt===0&&(St+=(gt=Tc())*gt),St=($t-(St=Math.sqrt(St)))/St*l,B.vx+=(fe*=St)*($t=(Oe*=Oe)/(H+Oe)),B.vy+=(gt*=St)*$t,ae.vx-=fe*($t=1-$t),ae.vy-=gt*$t)}}}function w(k){if(k.data)return k.r=o[k.data.index];for(var S=k.r=0;S<4;++S)k[S]&&k[S].r>k.r&&(k.r=k[S].r)}function m(){if(i){var k,S,B=i.length;for(o=new Array(B),k=0;kB&&(B=l),fz&&(z=f));if(k>B||S>z)return this;for(this.cover(k,S).cover(B,z),o=0;on||n>=f||l>i||i>=g;)switch(m=(iO||(g=k.y0)>q||(w=k.x1)=Z)<<1|n>=J)&&(k=H[H.length-1],H[H.length-1]=H[H.length-1-S],H[H.length-1-S]=k)}else{var st=n-+this._x.call(null,et.data),at=i-+this._y.call(null,et.data),bt=st*st+at*at;if(bt=(m=(H+J)/2))?H=m:J=m,(B=w>=(k=(et+Z)/2))?et=k:Z=k,i=q,!(q=q[z=B<<1|S]))return this;if(!q.length)break;(i[z+1&3]||i[z+2&3]||i[z+3&3])&&(o=i,O=z)}for(;q.data!==n;)if(l=q,!(q=q.next))return this;return(f=q.next)&&delete q.next,l?(f?l.next=f:delete l.next,this):i?(f?i[z]=f:delete i[z],(q=i[0]||i[1]||i[2]||i[3])&&q===(i[3]||i[2]||i[1]||i[0])&&!q.length&&(o?o[O]=q:this._root=q),this):(this._root=f,this)},Ia.removeAll=function(n){for(var i=0,o=n.length;i1?(et==null?m.remove(H):m.set(H,q(et)),i):m.get(H)},find:function(H,et,J){var Z,st,at,bt,zt,Qt=0,ae=n.length;for(J==null?J=1/0:J*=J,Qt=0;Qt1?(S.on(H,et),i):S.on(H)}}}function X5(){var n,i,o,l,f=Ui(-30),g=1,w=1/0,m=.81;function k(O){var q,H=n.length,et=Ah(n,H5,V5).visitAfter(B);for(o=O,q=0;q=w)){(O.data!==i||O.next)&&(J===0&&(at+=(J=Tc())*J),Z===0&&(at+=(Z=Tc())*Z),at1?l[0]+l.slice(2):l,+n.slice(o+1)]}function fl(n){return(n=Mh(Math.abs(n)))?n[1]:NaN}var jp,Q5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nh(n){if(!(i=Q5.exec(n)))throw new Error("invalid format: "+n);var i;return new E0({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 E0(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 xm(n,i){var o=Mh(n,i);if(!o)return n+"";var l=o[0],f=o[1];return f<0?"0."+new Array(-f).join("0")+l:l.length>f+1?l.slice(0,f+1)+"."+l.slice(f+1):l+new Array(f-l.length+2).join("0")}Nh.prototype=E0.prototype,E0.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 wm={"%":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 xm(100*n,i)},r:xm,s:function(n,i){var o=Mh(n,i);if(!o)return n+"";var l=o[0],f=o[1],g=f-(jp=3*Math.max(-8,Math.min(8,Math.floor(f/3))))+1,w=l.length;return g===w?l:g>w?l+new Array(g-w+1).join("0"):g>0?l.slice(0,g)+"."+l.slice(g):"0."+new Array(1-g).join("0")+Mh(n,Math.max(0,i+g-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function km(n){return n}var C0,S0,Up,Tm=Array.prototype.map,Em=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Cm(n){var i,o,l=n.grouping===void 0||n.thousands===void 0?km:(i=Tm.call(n.grouping,Number),o=n.thousands+"",function(O,q){for(var H=O.length,et=[],J=0,Z=i[0],st=0;H>0&&Z>0&&(st+Z+1>q&&(Z=Math.max(1,q-st)),et.push(O.substring(H-=Z,H+Z)),!((st+=Z+1)>q));)Z=i[J=(J+1)%i.length];return et.reverse().join(o)}),f=n.currency===void 0?"":n.currency[0]+"",g=n.currency===void 0?"":n.currency[1]+"",w=n.decimal===void 0?".":n.decimal+"",m=n.numerals===void 0?km:function(O){return function(q){return q.replace(/[0-9]/g,function(H){return O[+H]})}}(Tm.call(n.numerals,String)),k=n.percent===void 0?"%":n.percent+"",S=n.minus===void 0?"-":n.minus+"",B=n.nan===void 0?"NaN":n.nan+"";function z(O){var q=(O=Nh(O)).fill,H=O.align,et=O.sign,J=O.symbol,Z=O.zero,st=O.width,at=O.comma,bt=O.precision,zt=O.trim,Qt=O.type;Qt==="n"?(at=!0,Qt="g"):wm[Qt]||(bt===void 0&&(bt=12),zt=!0,Qt="g"),(Z||q==="0"&&H==="=")&&(Z=!0,q="0",H="=");var ae=J==="$"?f:J==="#"&&/[boxX]/.test(Qt)?"0"+Qt.toLowerCase():"",Oe=J==="$"?g:/[%p]/.test(Qt)?k:"",$t=wm[Qt],fe=/[defgprs%]/.test(Qt);function gt(St){var oe,ie,ce,Ze=ae,cn=Oe;if(Qt==="c")cn=$t(St)+cn,St="";else{var On=(St=+St)<0||1/St<0;if(St=isNaN(St)?B:$t(Math.abs(St),bt),zt&&(St=function(yn){t:for(var kr,Un=yn.length,zn=1,vr=-1;zn0&&(vr=0)}return vr>0?yn.slice(0,vr)+yn.slice(kr+1):yn}(St)),On&&+St==0&&et!=="+"&&(On=!1),Ze=(On?et==="("?et:S:et==="-"||et==="("?"":et)+Ze,cn=(Qt==="s"?Em[8+jp/3]:"")+cn+(On&&et==="("?")":""),fe){for(oe=-1,ie=St.length;++oe(ce=St.charCodeAt(oe))||ce>57){cn=(ce===46?w+St.slice(oe+1):St.slice(oe))+cn,St=St.slice(0,oe);break}}}at&&!Z&&(St=l(St,1/0));var lr=Ze.length+St.length+cn.length,Vn=lr>1)+Ze+St+cn+Vn.slice(lr);break;default:St=Vn+Ze+St+cn}return m(St)}return bt=bt===void 0?6:/[gprs]/.test(Qt)?Math.max(1,Math.min(21,bt)):Math.max(0,Math.min(20,bt)),gt.toString=function(){return O+""},gt}return{format:z,formatPrefix:function(O,q){var H=z(((O=Nh(O)).type="f",O)),et=3*Math.max(-8,Math.min(8,Math.floor(fl(q)/3))),J=Math.pow(10,-et),Z=Em[8+et/3];return function(st){return H(J*st)+Z}}}}function Sm(n){return C0=Cm(n),S0=C0.format,Up=C0.formatPrefix,C0}function qp(n){return Math.max(0,-fl(Math.abs(n)))}function Am(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fl(i)/3)))-fl(Math.abs(n)))}function Mm(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,fl(i)-fl(n))+1}function Ec(){return new A0}function A0(){this.reset()}Sm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),A0.prototype={constructor:A0,reset:function(){this.s=this.t=0},add:function(n){Nm(M0,n,this.t),Nm(this,M0.s,this.s),this.s?this.t+=M0.t:this.s=M0.t},valueOf:function(){return this.s}};var M0=new A0;function Nm(n,i,o){var l=n.s=i+o,f=l-i,g=l-f;n.t=i-g+(o-f)}var Gn=1e-6,Dh=1e-12,ur=Math.PI,_i=ur/2,cu=ur/4,Fr=2*ur,Wr=180/ur,Bn=ur/180,ze=Math.abs,Cc=Math.atan,ha=Math.atan2,En=Math.cos,ds=Math.ceil,Dm=Math.exp,lu=Math.log,N0=Math.pow,mn=Math.sin,Cr=Math.sign||function(n){return n>0?1:n<0?-1:0},Ai=Math.sqrt,Ji=Math.tan;function Sc(n){return n>1?0:n<-1?ur:Math.acos(n)}function Fa(n){return n>1?_i:n<-1?-_i:Math.asin(n)}function D0(n){return(n=mn(n/2))*n}function Sr(){}function qs(n,i){n&&uu.hasOwnProperty(n.type)&&uu[n.type](n,i)}var Ra={Feature:function(n,i){qs(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,l=-1,f=o.length;++l=0?1:-1,f=l*o,g=En(i=(i*=Bn)/2+cu),w=mn(i),m=Vp*w,k=Hp*g+m*En(f),S=m*l*mn(f);O0.add(ha(S,k)),$p=n,Hp=g,Vp=w}function J5(n){return B0.reset(),Ro(n,so),2*B0}function L0(n){return[ha(n[1],n[0]),Fa(n[2])]}function Po(n){var i=n[0],o=n[1],l=En(o);return[l*En(i),l*mn(i),mn(o)]}function I0(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function fu(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 du(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function dl(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function Bh(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 Xr,Pa,di,Ga,Ac,Xp,Zp,Mc,Yo,ps,pu,Lh,Ih,pl,gu,yu,vo,Fh,F0,Ws,Qp,R0,mu,Ya,Ta,Mi,Rh=Ec(),zo={point:gl,lineStart:Jp,lineEnd:Kp,polygonStart:function(){zo.point=vu,zo.lineStart=Fm,zo.lineEnd=Ph,Rh.reset(),so.polygonStart()},polygonEnd:function(){so.polygonEnd(),zo.point=gl,zo.lineStart=Jp,zo.lineEnd=Kp,O0<0?(Xr=-(di=180),Pa=-(Ga=90)):Rh>Gn?Ga=90:Rh<-1e-6&&(Pa=-90),ps[0]=Xr,ps[1]=di},sphere:function(){Xr=-(di=180),Pa=-(Ga=90)}};function gl(n,i){Yo.push(ps=[Xr=n,di=n]),iGa&&(Ga=i)}function Im(n,i){var o=Po([n*Bn,i*Bn]);if(Mc){var l=fu(Mc,o),f=fu([l[1],-l[0],0],l);Bh(f),f=L0(f);var g,w=n-Ac,m=w>0?1:-1,k=f[0]*Wr*m,S=ze(w)>180;S^(m*AcGa&&(Ga=g):S^(m*Ac<(k=(k+360)%360-180)&&kGa&&(Ga=i)),S?nza(Xr,di)&&(di=n):za(n,di)>za(Xr,di)&&(Xr=n):di>=Xr?(ndi&&(di=n)):n>Ac?za(Xr,n)>za(Xr,di)&&(di=n):za(n,di)>za(Xr,di)&&(Xr=n)}else Yo.push(ps=[Xr=n,di=n]);iGa&&(Ga=i),Mc=o,Ac=n}function Jp(){zo.point=Im}function Kp(){ps[0]=Xr,ps[1]=di,zo.point=gl,Mc=null}function vu(n,i){if(Mc){var o=n-Ac;Rh.add(ze(o)>180?o+(o>0?360:-360):o)}else Xp=n,Zp=i;so.point(n,i),Im(n,i)}function Fm(){so.lineStart()}function Ph(){vu(Xp,Zp),so.lineEnd(),ze(Rh)>Gn&&(Xr=-(di=180)),ps[0]=Xr,ps[1]=di,Mc=null}function za(n,i){return(i-=n)<0?i+360:i}function t2(n,i){return n[0]-i[0]}function bu(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:iza(l[0],l[1])&&(l[1]=f[1]),za(f[0],l[1])>za(l[0],l[1])&&(l[0]=f[0])):g.push(l=f);for(w=-1/0,i=0,l=g[o=g.length-1];i<=o;l=f,++i)f=g[i],(m=za(l[1],f[0]))>w&&(w=m,Xr=f[0],di=l[1])}return Yo=ps=null,Xr===1/0||Pa===1/0?[[NaN,NaN],[NaN,NaN]]:[[Xr,Pa],[di,Ga]]}var co={sphere:Sr,point:P0,lineStart:Rm,lineEnd:Pm,polygonStart:function(){co.lineStart=zh,co.lineEnd=jh},polygonEnd:function(){co.lineStart=Rm,co.lineEnd=Pm}};function P0(n,i){n*=Bn;var o=En(i*=Bn);xi(o*En(n),o*mn(n),mn(i))}function xi(n,i,o){++pu,Ih+=(n-Ih)/pu,pl+=(i-pl)/pu,gu+=(o-gu)/pu}function Rm(){co.point=K5}function K5(n,i){n*=Bn;var o=En(i*=Bn);Ya=o*En(n),Ta=o*mn(n),Mi=mn(i),co.point=Ar,xi(Ya,Ta,Mi)}function Ar(n,i){n*=Bn;var o=En(i*=Bn),l=o*En(n),f=o*mn(n),g=mn(i),w=ha(Ai((w=Ta*g-Mi*f)*w+(w=Mi*l-Ya*g)*w+(w=Ya*f-Ta*l)*w),Ya*l+Ta*f+Mi*g);Lh+=w,yu+=w*(Ya+(Ya=l)),vo+=w*(Ta+(Ta=f)),Fh+=w*(Mi+(Mi=g)),xi(Ya,Ta,Mi)}function Pm(){co.point=P0}function zh(){co.point=tb}function jh(){Ym(R0,mu),co.point=P0}function tb(n,i){R0=n,mu=i,n*=Bn,i*=Bn,co.point=Ym;var o=En(i);Ya=o*En(n),Ta=o*mn(n),Mi=mn(i),xi(Ya,Ta,Mi)}function Ym(n,i){n*=Bn;var o=En(i*=Bn),l=o*En(n),f=o*mn(n),g=mn(i),w=Ta*g-Mi*f,m=Mi*l-Ya*g,k=Ya*f-Ta*l,S=Ai(w*w+m*m+k*k),B=Fa(S),z=S&&-B/S;F0+=z*w,Ws+=z*m,Qp+=z*k,Lh+=B,yu+=B*(Ya+(Ya=l)),vo+=B*(Ta+(Ta=f)),Fh+=B*(Mi+(Mi=g)),xi(Ya,Ta,Mi)}function eb(n){pu=Lh=Ih=pl=gu=yu=vo=Fh=F0=Ws=Qp=0,Ro(n,co);var i=F0,o=Ws,l=Qp,f=i*i+o*o+l*l;return fur?n+Math.round(-n/Fr)*Fr:n,i]}function z0(n,i,o){return(n%=Fr)?i||o?e2(jm(n),Um(i,o)):jm(n):i||o?Um(i,o):Y0}function zm(n){return function(i,o){return[(i+=n)>ur?i-Fr:i<-ur?i+Fr:i,o]}}function jm(n){var i=zm(n);return i.invert=zm(-n),i}function Um(n,i){var o=En(n),l=mn(n),f=En(i),g=mn(i);function w(m,k){var S=En(k),B=En(m)*S,z=mn(m)*S,O=mn(k),q=O*o+B*l;return[ha(z*f-q*g,B*o-O*l),Fa(q*f+z*g)]}return w.invert=function(m,k){var S=En(k),B=En(m)*S,z=mn(m)*S,O=mn(k),q=O*f-z*g;return[ha(z*f+O*g,B*o+q*l),Fa(q*o-B*l)]},w}function n2(n){function i(o){return(o=n(o[0]*Bn,o[1]*Bn))[0]*=Wr,o[1]*=Wr,o}return n=z0(n[0]*Bn,n[1]*Bn,n.length>2?n[2]*Bn:0),i.invert=function(o){return(o=n.invert(o[0]*Bn,o[1]*Bn))[0]*=Wr,o[1]*=Wr,o},i}function qm(n,i,o,l,f,g){if(o){var w=En(i),m=mn(i),k=l*o;f==null?(f=i+l*Fr,g=i-k/2):(f=r2(w,f),g=r2(w,g),(l>0?fg)&&(f+=l*Fr));for(var S,B=f;l>0?B>g:B1&&i.push(i.pop().concat(i.shift()))},result:function(){var o=i;return i=[],n=null,o}}}function j0(n,i){return ze(n[0]-i[0])=0;--g)f.point((B=S[g])[0],B[1]);else l(O.x,O.p.x,-1,f);O=O.p}S=(O=O.o).z,q=!q}while(!O.v);f.lineEnd()}}}function Hm(n){if(i=n.length){for(var i,o,l=0,f=n[0];++l=0?1:-1,$t=Oe*ae,fe=$t>ur,gt=et*zt;if(i2.add(ha(gt*Oe*mn($t),J*Qt+gt*En($t))),w+=fe?ae+Oe*Fr:ae,fe^q>=o^at>=o){var St=fu(Po(O),Po(st));Bh(St);var oe=fu(g,St);Bh(oe);var ie=(fe^ae>=0?-1:1)*Fa(oe[2]);(l>ie||l===ie&&(St[0]||St[1]))&&(m+=fe^ae>=0?1:-1)}}return(w<-1e-6||w0){for(z||(f.polygonStart(),z=!0),f.lineStart(),bt=0;bt1&&2&Oe&&$t.push($t.pop().concat($t.shift())),w.push($t.filter(rb))}return O}}function rb(n){return n.length>1}function Xm(n,i){return((n=n.x)[0]<0?n[1]-_i-Gn:_i-n[1])-((i=i.x)[0]<0?i[1]-_i-Gn:_i-i[1])}const a2=Gm(function(){return!0},function(n){var i,o=NaN,l=NaN,f=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(g,w){var m=g>0?ur:-ur,k=ze(g-o);ze(k-ur)0?_i:-_i),n.point(f,l),n.lineEnd(),n.lineStart(),n.point(m,l),n.point(g,l),i=0):f!==m&&k>=ur&&(ze(o-f)Gn?Cc((mn(B)*(H=En(O))*mn(z)-mn(O)*(q=En(B))*mn(S))/(q*H*et)):(B+O)/2}(o,l,g,w),n.point(f,l),n.lineEnd(),n.lineStart(),n.point(m,l),i=0),n.point(o=g,l=w),f=m},lineEnd:function(){n.lineEnd(),o=l=NaN},clean:function(){return 2-i}}},function(n,i,o,l){var f;if(n==null)f=o*_i,l.point(-ur,f),l.point(0,f),l.point(ur,f),l.point(ur,0),l.point(ur,-f),l.point(0,-f),l.point(-ur,-f),l.point(-ur,0),l.point(-ur,f);else if(ze(n[0]-i[0])>Gn){var g=n[0]0,f=ze(i)>Gn;function g(k,S){return En(k)*En(S)>i}function w(k,S,B){var z=[1,0,0],O=fu(Po(k),Po(S)),q=I0(O,O),H=O[0],et=q-H*H;if(!et)return!B&&k;var J=i*q/et,Z=-i*H/et,st=fu(z,O),at=dl(z,J);du(at,dl(O,Z));var bt=st,zt=I0(at,bt),Qt=I0(bt,bt),ae=zt*zt-Qt*(I0(at,at)-1);if(!(ae<0)){var Oe=Ai(ae),$t=dl(bt,(-zt-Oe)/Qt);if(du($t,at),$t=L0($t),!B)return $t;var fe,gt=k[0],St=S[0],oe=k[1],ie=S[1];St0^$t[1]<(ze($t[0]-gt)ur^(gt<=$t[0]&&$t[0]<=St)){var cn=dl(bt,(-zt+Oe)/Qt);return du(cn,at),[$t,L0(cn)]}}}function m(k,S){var B=l?n:ur-n,z=0;return k<-B?z|=1:k>B&&(z|=2),S<-B?z|=4:S>B&&(z|=8),z}return Gm(g,function(k){var S,B,z,O,q;return{lineStart:function(){O=z=!1,q=1},point:function(H,et){var J,Z=[H,et],st=g(H,et),at=l?st?0:m(H,et):st?m(H+(H<0?ur:-ur),et):0;if(!S&&(O=z=st)&&k.lineStart(),st!==z&&(!(J=w(S,Z))||j0(S,J)||j0(Z,J))&&(Z[2]=1),st!==z)q=0,st?(k.lineStart(),J=w(Z,S),k.point(J[0],J[1])):(J=w(S,Z),k.point(J[0],J[1],2),k.lineEnd()),S=J;else if(f&&S&&l^st){var bt;at&B||!(bt=w(Z,S,!0))||(q=0,l?(k.lineStart(),k.point(bt[0][0],bt[0][1]),k.point(bt[1][0],bt[1][1]),k.lineEnd()):(k.point(bt[1][0],bt[1][1]),k.lineEnd(),k.lineStart(),k.point(bt[0][0],bt[0][1],3)))}!st||S&&j0(S,Z)||k.point(Z[0],Z[1]),S=Z,z=st,B=at},lineEnd:function(){z&&k.lineEnd(),S=null},clean:function(){return q|(O&&z)<<1}}},function(k,S,B,z){qm(z,n,o,B,k,S)},l?[0,-n]:[-ur,n-ur])}var Uh=1e9,W0=-Uh;function $0(n,i,o,l){function f(S,B){return n<=S&&S<=o&&i<=B&&B<=l}function g(S,B,z,O){var q=0,H=0;if(S==null||(q=w(S,z))!==(H=w(B,z))||k(S,B)<0^z>0)do O.point(q===0||q===3?n:o,q>1?l:i);while((q=(q+z+4)%4)!==H);else O.point(B[0],B[1])}function w(S,B){return ze(S[0]-n)0?0:3:ze(S[0]-o)0?2:1:ze(S[1]-i)0?1:0:B>0?3:2}function m(S,B){return k(S.x,B.x)}function k(S,B){var z=w(S,1),O=w(B,1);return z!==O?z-O:z===0?B[1]-S[1]:z===1?S[0]-B[0]:z===2?S[1]-B[1]:B[0]-S[0]}return function(S){var B,z,O,q,H,et,J,Z,st,at,bt,zt=S,Qt=Wm(),ae={point:Oe,lineStart:function(){ae.point=$t,z&&z.push(O=[]),at=!0,st=!1,J=Z=NaN},lineEnd:function(){B&&($t(q,H),et&&st&&Qt.rejoin(),B.push(Qt.result())),ae.point=Oe,st&&zt.lineEnd()},polygonStart:function(){zt=Qt,B=[],z=[],bt=!0},polygonEnd:function(){var fe=function(){for(var oe=0,ie=0,ce=z.length;iel&&(kr-Ze)*(l-cn)>(Un-cn)*(n-Ze)&&++oe:Un<=l&&(kr-Ze)*(l-cn)<(Un-cn)*(n-Ze)&&--oe;return oe}(),gt=bt&&fe,St=(B=_e(B)).length;(gt||St)&&(S.polygonStart(),gt&&(S.lineStart(),g(null,null,1,S),S.lineEnd()),St&&$m(B,m,fe,g,S),S.polygonEnd()),zt=S,B=z=O=null}};function Oe(fe,gt){f(fe,gt)&&zt.point(fe,gt)}function $t(fe,gt){var St=f(fe,gt);if(z&&O.push([fe,gt]),at)q=fe,H=gt,et=St,at=!1,St&&(zt.lineStart(),zt.point(fe,gt));else if(St&&st)zt.point(fe,gt);else{var oe=[J=Math.max(W0,Math.min(Uh,J)),Z=Math.max(W0,Math.min(Uh,Z))],ie=[fe=Math.max(W0,Math.min(Uh,fe)),gt=Math.max(W0,Math.min(Uh,gt))];(function(ce,Ze,cn,On,lr,Vn){var yn,kr=ce[0],Un=ce[1],zn=0,vr=1,va=Ze[0]-kr,Pi=Ze[1]-Un;if(yn=cn-kr,va||!(yn>0)){if(yn/=va,va<0){if(yn0){if(yn>vr)return;yn>zn&&(zn=yn)}if(yn=lr-kr,va||!(yn<0)){if(yn/=va,va<0){if(yn>vr)return;yn>zn&&(zn=yn)}else if(va>0){if(yn0)){if(yn/=Pi,Pi<0){if(yn0){if(yn>vr)return;yn>zn&&(zn=yn)}if(yn=Vn-Un,Pi||!(yn<0)){if(yn/=Pi,Pi<0){if(yn>vr)return;yn>zn&&(zn=yn)}else if(Pi>0){if(yn0&&(ce[0]=kr+zn*va,ce[1]=Un+zn*Pi),vr<1&&(Ze[0]=kr+vr*va,Ze[1]=Un+vr*Pi),!0}}}}})(oe,ie,n,i,o,l)?(st||(zt.lineStart(),zt.point(oe[0],oe[1])),zt.point(ie[0],ie[1]),St||zt.lineEnd(),bt=!1):St&&(zt.lineStart(),zt.point(fe,gt),bt=!1)}J=fe,Z=gt,st=St}return ae}}function ib(){var n,i,o,l=0,f=0,g=960,w=500;return o={stream:function(m){return n&&i===m?n:n=$0(l,f,g,w)(i=m)},extent:function(m){return arguments.length?(l=+m[0][0],f=+m[0][1],g=+m[1][0],w=+m[1][1],n=i=null,o):[[l,f],[g,w]]}}}var H0,V0,G0,o2=Ec(),xu={sphere:Sr,point:Sr,lineStart:function(){xu.point=ob,xu.lineEnd=ab},lineEnd:Sr,polygonStart:Sr,polygonEnd:Sr};function ab(){xu.point=xu.lineEnd=Sr}function ob(n,i){H0=n*=Bn,V0=mn(i*=Bn),G0=En(i),xu.point=sb}function sb(n,i){n*=Bn;var o=mn(i*=Bn),l=En(i),f=ze(n-H0),g=En(f),w=l*mn(f),m=G0*o-V0*l*g,k=V0*o+G0*l*g;o2.add(ha(Ai(w*w+m*m),k)),H0=n,V0=o,G0=l}function Qm(n){return o2.reset(),Ro(n,xu),+o2}var X0=[null,null],cb={type:"LineString",coordinates:X0};function Z0(n,i){return X0[0]=n,X0[1]=i,Qm(cb)}var Jm={Feature:function(n,i){return Q0(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,l=-1,f=o.length;++l0&&(f=Z0(n[g],n[g-1]))>0&&o<=f&&l<=f&&(o+l-f)*(1-Math.pow((o-l)/f,2))Gn}).map(k)).concat(jt(ds(g/q)*q,f,q).filter(function(at){return ze(at%et)>Gn}).map(S))}return Z.lines=function(){return st().map(function(at){return{type:"LineString",coordinates:at}})},Z.outline=function(){return{type:"Polygon",coordinates:[B(l).concat(z(w).slice(1),B(o).reverse().slice(1),z(m).reverse().slice(1))]}},Z.extent=function(at){return arguments.length?Z.extentMajor(at).extentMinor(at):Z.extentMinor()},Z.extentMajor=function(at){return arguments.length?(l=+at[0][0],o=+at[1][0],m=+at[0][1],w=+at[1][1],l>o&&(at=l,l=o,o=at),m>w&&(at=m,m=w,w=at),Z.precision(J)):[[l,m],[o,w]]},Z.extentMinor=function(at){return arguments.length?(i=+at[0][0],n=+at[1][0],g=+at[0][1],f=+at[1][1],i>n&&(at=i,i=n,n=at),g>f&&(at=g,g=f,f=at),Z.precision(J)):[[i,g],[n,f]]},Z.step=function(at){return arguments.length?Z.stepMajor(at).stepMinor(at):Z.stepMinor()},Z.stepMajor=function(at){return arguments.length?(H=+at[0],et=+at[1],Z):[H,et]},Z.stepMinor=function(at){return arguments.length?(O=+at[0],q=+at[1],Z):[O,q]},Z.precision=function(at){return arguments.length?(J=+at,k=i3(g,f,90),S=a3(i,n,J),B=i3(m,w,90),z=a3(l,o,J),Z):J},Z.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function ub(){return o3()()}function hb(n,i){var o=n[0]*Bn,l=n[1]*Bn,f=i[0]*Bn,g=i[1]*Bn,w=En(l),m=mn(l),k=En(g),S=mn(g),B=w*En(o),z=w*mn(o),O=k*En(f),q=k*mn(f),H=2*Fa(Ai(D0(g-l)+w*k*D0(f-o))),et=mn(H),J=H?function(Z){var st=mn(Z*=H)/et,at=mn(H-Z)/et,bt=at*B+st*O,zt=at*z+st*q,Qt=at*m+st*S;return[ha(zt,bt)*Wr,ha(Qt,Ai(bt*bt+zt*zt))*Wr]}:function(){return[o*Wr,l*Wr]};return J.distance=H,J}function qh(n){return n}var s3,c3,J0,K0,tf=Ec(),c2=Ec(),$s={point:Sr,lineStart:Sr,lineEnd:Sr,polygonStart:function(){$s.lineStart=ef,$s.lineEnd=u3},polygonEnd:function(){$s.lineStart=$s.lineEnd=$s.point=Sr,tf.add(ze(c2)),c2.reset()},result:function(){var n=tf/2;return tf.reset(),n}};function ef(){$s.point=fb}function fb(n,i){$s.point=l3,s3=J0=n,c3=K0=i}function l3(n,i){c2.add(K0*n-J0*i),J0=n,K0=i}function u3(){l3(s3,c3)}const h3=$s;var Hs=1/0,Nc=Hs,gs=-Hs,Dc=gs,Wh={point:function(n,i){ngs&&(gs=n),iDc&&(Dc=i)},lineStart:Sr,lineEnd:Sr,polygonStart:Sr,polygonEnd:Sr,result:function(){var n=[[Hs,Nc],[gs,Dc]];return gs=Dc=-(Nc=Hs=1/0),n}};const yl=Wh;var Oc,$h,Xa,jo,Hh=0,l2=0,Bc=0,Vh=0,Gh=0,wu=0,Xh=0,nf=0,Zh=0,Uo={point:ys,lineStart:rf,lineEnd:Vs,polygonStart:function(){Uo.lineStart=af,Uo.lineEnd=f3},polygonEnd:function(){Uo.point=ys,Uo.lineStart=rf,Uo.lineEnd=Vs},result:function(){var n=Zh?[Xh/Zh,nf/Zh]:wu?[Vh/wu,Gh/wu]:Bc?[Hh/Bc,l2/Bc]:[NaN,NaN];return Hh=l2=Bc=Vh=Gh=wu=Xh=nf=Zh=0,n}};function ys(n,i){Hh+=n,l2+=i,++Bc}function rf(){Uo.point=ms}function ms(n,i){Uo.point=qo,ys(Xa=n,jo=i)}function qo(n,i){var o=n-Xa,l=i-jo,f=Ai(o*o+l*l);Vh+=f*(Xa+n)/2,Gh+=f*(jo+i)/2,wu+=f,ys(Xa=n,jo=i)}function Vs(){Uo.point=ys}function af(){Uo.point=u2}function f3(){h2(Oc,$h)}function u2(n,i){Uo.point=h2,ys(Oc=Xa=n,$h=jo=i)}function h2(n,i){var o=n-Xa,l=i-jo,f=Ai(o*o+l*l);Vh+=f*(Xa+n)/2,Gh+=f*(jo+i)/2,wu+=f,Xh+=(f=jo*n-Xa*i)*(Xa+n),nf+=f*(jo+i),Zh+=3*f,ys(Xa=n,jo=i)}const f2=Uo;function d3(n){this._context=n}d3.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,Fr)}},result:Sr};var d2,p3,g3,ml,ku,Qh=Ec(),Tu={point:Sr,lineStart:function(){Tu.point=db},lineEnd:function(){d2&&p2(p3,g3),Tu.point=Sr},polygonStart:function(){d2=!0},polygonEnd:function(){d2=null},result:function(){var n=+Qh;return Qh.reset(),n}};function db(n,i){Tu.point=p2,p3=ml=n,g3=ku=i}function p2(n,i){ml-=n,ku-=i,Qh.add(Ai(ml*ml+ku*ku)),ml=n,ku=i}const y3=Tu;function m3(){this._string=[]}function v3(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function pb(n,i){var o,l,f=4.5;function g(w){return w&&(typeof f=="function"&&l.pointRadius(+f.apply(this,arguments)),Ro(w,o(l))),l.result()}return g.area=function(w){return Ro(w,o(h3)),h3.result()},g.measure=function(w){return Ro(w,o(y3)),y3.result()},g.bounds=function(w){return Ro(w,o(yl)),yl.result()},g.centroid=function(w){return Ro(w,o(f2)),f2.result()},g.projection=function(w){return arguments.length?(o=w==null?(n=null,qh):(n=w).stream,g):n},g.context=function(w){return arguments.length?(l=w==null?(i=null,new m3):new d3(i=w),typeof f!="function"&&l.pointRadius(f),g):i},g.pointRadius=function(w){return arguments.length?(f=typeof w=="function"?w:(l.pointRadius(+w),+w),g):f},g.projection(n).context(i)}function gb(n){return{stream:Jh(n)}}function Jh(n){return function(i){var o=new g2;for(var l in n)o[l]=n[l];return o.stream=i,o}}function g2(){}function y2(n,i,o){var l=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),l!=null&&n.clipExtent(null),Ro(o,n.stream(yl)),i(yl.result()),l!=null&&n.clipExtent(l),n}function of(n,i,o){return y2(n,function(l){var f=i[1][0]-i[0][0],g=i[1][1]-i[0][1],w=Math.min(f/(l[1][0]-l[0][0]),g/(l[1][1]-l[0][1])),m=+i[0][0]+(f-w*(l[1][0]+l[0][0]))/2,k=+i[0][1]+(g-w*(l[1][1]+l[0][1]))/2;n.scale(150*w).translate([m,k])},o)}function m2(n,i,o){return of(n,[[0,0],i],o)}function v2(n,i,o){return y2(n,function(l){var f=+i,g=f/(l[1][0]-l[0][0]),w=(f-g*(l[1][0]+l[0][0]))/2,m=-g*l[0][1];n.scale(150*g).translate([w,m])},o)}function b2(n,i,o){return y2(n,function(l){var f=+i,g=f/(l[1][1]-l[0][1]),w=-g*l[0][0],m=(f-g*(l[1][1]+l[0][1]))/2;n.scale(150*g).translate([w,m])},o)}m3.prototype={_radius:4.5,_circle:v3(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=v3(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}},g2.prototype={constructor:g2,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 yb=En(30*Bn);function b3(n,i){return+i?function(o,l){function f(g,w,m,k,S,B,z,O,q,H,et,J,Z,st){var at=z-g,bt=O-w,zt=at*at+bt*bt;if(zt>4*l&&Z--){var Qt=k+H,ae=S+et,Oe=B+J,$t=Ai(Qt*Qt+ae*ae+Oe*Oe),fe=Fa(Oe/=$t),gt=ze(ze(Oe)-1)l||ze((at*ce+bt*Ze)/zt-.5)>.3||k*H+S*et+B*J2?ce[2]%360*Bn:0,oe()):[J*Wr,Z*Wr,st*Wr]},gt.angle=function(ce){return arguments.length?(at=ce%360*Bn,oe()):at*Wr},gt.reflectX=function(ce){return arguments.length?(bt=ce?-1:1,oe()):bt<0},gt.reflectY=function(ce){return arguments.length?(zt=ce?-1:1,oe()):zt<0},gt.precision=function(ce){return arguments.length?(w=b3(m,fe=ce*ce),ie()):Ai(fe)},gt.fitExtent=function(ce,Ze){return of(gt,ce,Ze)},gt.fitSize=function(ce,Ze){return m2(gt,ce,Ze)},gt.fitWidth=function(ce,Ze){return v2(gt,ce,Ze)},gt.fitHeight=function(ce,Ze){return b2(gt,ce,Ze)},function(){return i=n.apply(this,arguments),gt.invert=i.invert&&St,oe()}}function x2(n){var i=0,o=ur/3,l=_2(n),f=l(i,o);return f.parallels=function(g){return arguments.length?l(i=g[0]*Bn,o=g[1]*Bn):[i*Wr,o*Wr]},f}function x3(n,i){var o=mn(n),l=(o+mn(i))/2;if(ze(l)=.12&&J<.234&&et>=-.425&&et<-.214?m:J>=.166&&J<.234&&et>=-.214&&et<-.115?k:w).invert(O)},B.stream=function(O){return n&&i===O?n:(q=[w.stream(i=O),m.stream(O),k.stream(O)],H=q.length,n={point:function(et,J){for(var Z=-1;++Z0?m<-_i+Gn&&(m=-_i+Gn):m>_i-Gn&&(m=_i-Gn);var k=f/N0(t1(m),l);return[k*mn(l*w),f-k*En(l*w)]}return g.invert=function(w,m){var k=f-m,S=Cr(l)*Ai(w*w+k*k),B=ha(w,ze(k))*Cr(k);return k*l<0&&(B-=ur*Cr(w)*Cr(k)),[B/l,2*Cc(N0(f/S,1/l))-_i]},g}function xb(){return x2(S2).scale(109.5).parallels([30,30])}function e1(n,i){return[n,i]}function wb(){return Wo(e1).scale(152.63)}function k3(n,i){var o=En(n),l=n===i?mn(n):(o-En(i))/(i-n),f=o/l+n;if(ze(l)2?l[2]+90:90]):[(l=o())[0],l[1],l[2]-90]},o([0,0,90]).scale(159.155)}function Ab(n,i){return n.parent===i.parent?1:2}function Mb(n,i){return n+i.x}function Eu(n,i){return Math.max(n,i.y)}function Nb(){var n=Ab,i=1,o=1,l=!1;function f(g){var w,m=0;g.eachAfter(function(O){var q=O.children;q?(O.x=function(H){return H.reduce(Mb,0)/H.length}(q),O.y=function(H){return 1+H.reduce(Eu,0)}(q)):(O.x=w?m+=n(O,w):0,O.y=0,w=O)});var k=function(O){for(var q;q=O.children;)O=q[0];return O}(g),S=function(O){for(var q;q=O.children;)O=q[q.length-1];return O}(g),B=k.x-n(k,S)/2,z=S.x+n(S,k)/2;return g.eachAfter(l?function(O){O.x=(O.x-g.x)*i,O.y=(g.y-O.y)*o}:function(O){O.x=(O.x-B)/(z-B)*i,O.y=(1-(g.y?O.y/g.y:1))*o})}return f.separation=function(g){return arguments.length?(n=g,f):n},f.size=function(g){return arguments.length?(l=!1,i=+g[0],o=+g[1],f):l?null:[i,o]},f.nodeSize=function(g){return arguments.length?(l=!0,i=+g[0],o=+g[1],f):l?[i,o]:null},f}function Db(n){var i=0,o=n.children,l=o&&o.length;if(l)for(;--l>=0;)i+=o[l].value;else i=1;n.value=i}function O2(n,i){var o,l,f,g,w,m=new vl(n),k=+n.value&&(m.value=n.value),S=[m];for(i==null&&(i=C3);o=S.pop();)if(k&&(o.value=+o.data.value),(f=i(o.data))&&(w=f.length))for(o.children=new Array(w),g=w-1;g>=0;--g)S.push(l=o.children[g]=new vl(f[g])),l.parent=o,l.depth=o.depth+1;return m.eachBefore(L2)}function C3(n){return n.children}function B2(n){n.data=n.data.data}function L2(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function vl(n){this.data=n,this.depth=this.height=0,this.parent=null}A2.invert=function(n,i){for(var o,l=i,f=l*l,g=f*f*f,w=0;w<12&&(g=(f=(l-=o=(l*(Lc+n1*f+g*(r1+i1*f))-i)/(Lc+3*n1*f+g*(7*r1+9*i1*f)))*l)*f*f,!(ze(o)Gn&&--f>0);return[n/(.8707+(g=l*l)*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979)),l]},N2.invert=lo(Fa),D2.invert=lo(function(n){return 2*Cc(n)}),uf.invert=function(n,i){return[-i,2*Cc(Dm(n))-_i]},vl.prototype=O2.prototype={constructor:vl,count:function(){return this.eachAfter(Db)},each:function(n){var i,o,l,f,g=this,w=[g];do for(i=w.reverse(),w=[];g=i.pop();)if(n(g),o=g.children)for(l=0,f=o.length;l=0;--o)f.push(i[o]);return this},sum:function(n){return this.eachAfter(function(i){for(var o=+n(i.data)||0,l=i.children,f=l&&l.length;--f>=0;)o+=l[f].value;i.value=o})},sort:function(n){return this.eachBefore(function(i){i.children&&i.children.sort(n)})},path:function(n){for(var i=this,o=function(g,w){if(g===w)return g;var m=g.ancestors(),k=w.ancestors(),S=null;for(g=m.pop(),w=k.pop();g===w;)S=g,g=m.pop(),w=k.pop();return S}(i,n),l=[i];i!==o;)i=i.parent,l.push(i);for(var f=l.length;n!==o;)l.splice(f,0,n),n=n.parent;return l},ancestors:function(){for(var n=this,i=[n];n=n.parent;)i.push(n);return i},descendants:function(){var n=[];return this.each(function(i){n.push(i)}),n},leaves:function(){var n=[];return this.eachBefore(function(i){i.children||n.push(i)}),n},links:function(){var n=this,i=[];return n.each(function(o){o!==n&&i.push({source:o.parent,target:o})}),i},copy:function(){return O2(this).eachBefore(B2)}};var S3=Array.prototype.slice;function A3(n){for(var i,o,l=0,f=(n=function(w){for(var m,k,S=w.length;S;)k=Math.random()*S--|0,m=w[S],w[S]=w[k],w[k]=m;return w}(S3.call(n))).length,g=[];l0&&o*o>l*l+f*f}function I2(n,i){for(var o=0;o(w*=w)?(l=(S+w-f)/(2*S),g=Math.sqrt(Math.max(0,w/S-l*l)),o.x=n.x-l*m-g*k,o.y=n.y-l*k+g*m):(l=(S+f-w)/(2*S),g=Math.sqrt(Math.max(0,f/S-l*l)),o.x=i.x+l*m-g*k,o.y=i.y+l*k+g*m)):(o.x=i.x+o.r,o.y=i.y)}function O3(n,i){var o=n.r+i.r-1e-6,l=i.x-n.x,f=i.y-n.y;return o>0&&o*o>l*l+f*f}function B3(n){var i=n._,o=n.next._,l=i.r+o.r,f=(i.x*o.r+o.x*i.r)/l,g=(i.y*o.r+o.y*i.r)/l;return f*f+g*g}function ff(n){this._=n,this.next=null,this.previous=null}function L3(n){if(!(f=n.length))return 0;var i,o,l,f,g,w,m,k,S,B,z;if((i=n[0]).x=0,i.y=0,!(f>1))return i.r;if(o=n[1],i.x=-o.r,o.x=i.r,o.y=0,!(f>2))return i.r+o.r;D3(o,i,l=n[2]),i=new ff(i),o=new ff(o),l=new ff(l),i.next=l.previous=o,o.next=i.previous=l,l.next=o.previous=i;t:for(m=3;m0)throw new Error("cycle");return w}return o.id=function(l){return arguments.length?(n=df(l),o):n},o.parentId=function(l){return arguments.length?(i=df(l),o):i},o}function Pb(n,i){return n.parent===i.parent?1:2}function F2(n){var i=n.children;return i?i[0]:n.t}function yf(n){var i=n.children;return i?i[i.length-1]:n.t}function Yb(n,i,o){var l=o/(i.i-n.i);i.c-=l,i.s+=o,n.c+=l,i.z+=o,i.m+=o}function mf(n,i,o){return n.a.parent===i.parent?n.a:o}function Ic(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 Su(){var n=Pb,i=1,o=1,l=null;function f(k){var S=function(Z){for(var st,at,bt,zt,Qt,ae=new Ic(Z,0),Oe=[ae];st=Oe.pop();)if(bt=st._.children)for(st.children=new Array(Qt=bt.length),zt=Qt-1;zt>=0;--zt)Oe.push(at=st.children[zt]=new Ic(bt[zt],zt)),at.parent=st;return(ae.parent=new Ic(null,0)).children=[ae],ae}(k);if(S.eachAfter(g),S.parent.m=-S.z,S.eachBefore(w),l)k.eachBefore(m);else{var B=k,z=k,O=k;k.eachBefore(function(Z){Z.xz.x&&(z=Z),Z.depth>O.depth&&(O=Z)});var q=B===z?1:n(B,z)/2,H=q-B.x,et=i/(z.x+q+H),J=o/(O.depth||1);k.eachBefore(function(Z){Z.x=(Z.x+H)*et,Z.y=Z.depth*J})}return k}function g(k){var S=k.children,B=k.parent.children,z=k.i?B[k.i-1]:null;if(S){(function(q){for(var H,et=0,J=0,Z=q.children,st=Z.length;--st>=0;)(H=Z[st]).z+=et,H.m+=et,et+=H.s+(J+=H.c)})(k);var O=(S[0].z+S[S.length-1].z)/2;z?(k.z=z.z+n(k._,z._),k.m=k.z-O):k.z=O}else z&&(k.z=z.z+n(k._,z._));k.parent.A=function(q,H,et){if(H){for(var J,Z=q,st=q,at=H,bt=Z.parent.children[0],zt=Z.m,Qt=st.m,ae=at.m,Oe=bt.m;at=yf(at),Z=F2(Z),at&&Z;)bt=F2(bt),(st=yf(st)).a=q,(J=at.z+ae-Z.z-zt+n(at._,Z._))>0&&(Yb(mf(at,q,et),q,J),zt+=J,Qt+=J),ae+=at.m,zt+=Z.m,Oe+=bt.m,Qt+=st.m;at&&!yf(st)&&(st.t=at,st.m+=ae-Qt),Z&&!F2(bt)&&(bt.t=Z,bt.m+=zt-Oe,et=q)}return et}(k,z,k.parent.A||B[0])}function w(k){k._.x=k.z+k.parent.m,k.m+=k.parent.m}function m(k){k.x*=i,k.y=k.depth*o}return f.separation=function(k){return arguments.length?(n=k,f):n},f.size=function(k){return arguments.length?(l=!1,i=+k[0],o=+k[1],f):l?null:[i,o]},f.nodeSize=function(k){return arguments.length?(l=!0,i=+k[0],o=+k[1],f):l?[i,o]:null},f}function Fc(n,i,o,l,f){for(var g,w=n.children,m=-1,k=w.length,S=n.value&&(f-o)/n.value;++mO&&(O=m),J=B*B*et,(q=Math.max(O/J,J/z))>H){B-=m;break}H=q}Z.push(w={value:B,dice:k1?l:1)},o}(Au);function vf(){var n=Rc,i=!1,o=1,l=1,f=[0],g=bl,w=bl,m=bl,k=bl,S=bl;function B(O){return O.x0=O.y0=0,O.x1=o,O.y1=l,O.eachBefore(z),f=[0],i&&O.eachBefore(P3),O}function z(O){var q=f[O.depth],H=O.x0+q,et=O.y0+q,J=O.x1-q,Z=O.y1-q;J=O-1){var st=m[z];return st.x0=H,st.y0=et,st.x1=J,void(st.y1=Z)}for(var at=S[z],bt=q/2+at,zt=z+1,Qt=O-1;zt>>1;S[ae]Z-et){var fe=(H*$t+J*Oe)/q;B(z,zt,Oe,H,et,fe,Z),B(zt,O,$t,fe,et,J,Z)}else{var gt=(et*$t+Z*Oe)/q;B(z,zt,Oe,H,et,J,gt),B(zt,O,$t,H,gt,J,Z)}})(0,k,n.value,i,o,l,f)}function j3(n,i,o,l,f){(1&n.depth?Fc:s1)(n,i,o,l,f)}const R2=function n(i){function o(l,f,g,w,m){if((k=l._squarify)&&k.ratio===i)for(var k,S,B,z,O,q=-1,H=k.length,et=l.value;++q1?l:1)},o}(Au);function zb(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}function bf(n,i){var o=Wa(+n,+i);return function(l){var f=o(l);return f-360*Math.floor(f/360)}}function P2(n,i){return n=+n,i=+i,function(o){return Math.round(n*(1-o)+i*o)}}var Mu=Math.SQRT2;function U3(n){return((n=Math.exp(n))+1/n)/2}function _f(n,i){var o,l,f=n[0],g=n[1],w=n[2],m=i[0],k=i[1],S=i[2],B=m-f,z=k-g,O=B*B+z*z;if(O<1e-12)l=Math.log(S/w)/Mu,o=function(st){return[f+st*B,g+st*z,w*Math.exp(Mu*st*l)]};else{var q=Math.sqrt(O),H=(S*S-w*w+4*O)/(2*w*2*q),et=(S*S-w*w-4*O)/(2*S*2*q),J=Math.log(Math.sqrt(H*H+1)-H),Z=Math.log(Math.sqrt(et*et+1)-et);l=(Z-J)/Mu,o=function(st){var at,bt=st*l,zt=U3(J),Qt=w/(2*q)*(zt*(at=Mu*bt+J,((at=Math.exp(2*at))-1)/(at+1))-function(ae){return((ae=Math.exp(ae))-1/ae)/2}(J));return[f+Qt*B,g+Qt*z,w*zt/U3(Mu*bt+J)]}}return o.duration=1e3*l,o}function Y2(n){return function(i,o){var l=n((i=Hl(i)).h,(o=Hl(o)).h),f=Si(i.s,o.s),g=Si(i.l,o.l),w=Si(i.opacity,o.opacity);return function(m){return i.h=l(m),i.s=f(m),i.l=g(m),i.opacity=w(m),i+""}}}const jb=Y2(Wa);var Ub=Y2(Si);function xf(n,i){var o=Si((n=_h(n)).l,(i=_h(i)).l),l=Si(n.a,i.a),f=Si(n.b,i.b),g=Si(n.opacity,i.opacity);return function(w){return n.l=o(w),n.a=l(w),n.b=f(w),n.opacity=g(w),n+""}}function wf(n){return function(i,o){var l=n((i=wc(i)).h,(o=wc(o)).h),f=Si(i.c,o.c),g=Si(i.l,o.l),w=Si(i.opacity,o.opacity);return function(m){return i.h=l(m),i.c=f(m),i.l=g(m),i.opacity=w(m),i+""}}}const vs=wf(Wa);var Ho=wf(Si);function Xs(n){return function i(o){function l(f,g){var w=n((f=Ba(f)).h,(g=Ba(g)).h),m=Si(f.s,g.s),k=Si(f.l,g.l),S=Si(f.opacity,g.opacity);return function(B){return f.h=w(B),f.s=m(B),f.l=k(Math.pow(B,o)),f.opacity=S(B),f+""}}return o=+o,l.gamma=i,l}(1)}const kf=Xs(Wa);var h1=Xs(Si);function z2(n,i){for(var o=0,l=i.length-1,f=i[0],g=new Array(l<0?0:l);o1&&Wb(n[o[l-2]],n[o[l-1]],n[f])<=0;)--l;o[l++]=f}return o.slice(0,l)}function j2(n){if((o=n.length)<3)return null;var i,o,l=new Array(o),f=new Array(o);for(i=0;i=0;--i)S.push(n[l[g[i]][2]]);for(i=+m;im!=S>m&&w<(k-o)*(m-l)/(S-l)+o&&(B=!B),k=o,S=l;return B}function H3(n){for(var i,o,l=-1,f=n.length,g=n[f-1],w=g[0],m=g[1],k=0;++l1);return l+f*m*Math.sqrt(-2*Math.log(w)/w)}}return o.source=n,o}(bs),Nu=function n(i){function o(){var l=f1.source(i).apply(this,arguments);return function(){return Math.exp(l())}}return o.source=n,o}(bs),Du=function n(i){function o(l){return function(){for(var f=0,g=0;gl&&(i=o,o=l,l=i),function(f){return Math.max(o,Math.min(l,f))}}function G3(n,i,o){var l=n[0],f=n[1],g=i[0],w=i[1];return f2?X3:G3,f=g=null,z}function z(O){return isNaN(O=+O)?o:(f||(f=l(w.map(n),m,k)))(n(S(O)))}return z.invert=function(O){return S(i((g||(g=l(m,w.map(n),Na)))(O)))},z.domain=function(O){return arguments.length?(w=Ef.call(O,Af),S===fa||(S=Za(w)),B()):w.slice()},z.range=function(O){return arguments.length?(m=_l.call(O),B()):m.slice()},z.rangeRound=function(O){return m=_l.call(O),k=P2,B()},z.clamp=function(O){return arguments.length?(S=O?Za(w):fa,z):S!==fa},z.interpolate=function(O){return arguments.length?(k=O,B()):k},z.unknown=function(O){return arguments.length?(o=O,z):o},function(O,q){return n=O,i=q,B()}}function $2(n,i){return y1()(n,i)}function Go(n,i,o,l){var f,g=lt(n,i,o);switch((l=Nh(l==null?",f":l)).type){case"s":var w=Math.max(Math.abs(n),Math.abs(i));return l.precision!=null||isNaN(f=Am(g,w))||(l.precision=f),Up(l,w);case"":case"e":case"g":case"p":case"r":l.precision!=null||isNaN(f=Mm(g,Math.max(Math.abs(n),Math.abs(i))))||(l.precision=f-(l.type==="e"));break;case"f":case"%":l.precision!=null||isNaN(f=qp(g))||(l.precision=f-2*(l.type==="%"))}return S0(l)}function Qs(n){var i=n.domain;return n.ticks=function(o){var l=i();return Tt(l[0],l[l.length-1],o==null?10:o)},n.tickFormat=function(o,l){var f=i();return Go(f[0],f[f.length-1],o==null?10:o,l)},n.nice=function(o){o==null&&(o=10);var l,f=i(),g=0,w=f.length-1,m=f[g],k=f[w];return k0?l=Q(m=Math.floor(m/l)*l,k=Math.ceil(k/l)*l,o):l<0&&(l=Q(m=Math.ceil(m*l)/l,k=Math.floor(k*l)/l,o)),l>0?(f[g]=Math.floor(m/l)*l,f[w]=Math.ceil(k/l)*l,i(f)):l<0&&(f[g]=Math.ceil(m*l)/l,f[w]=Math.floor(k*l)/l,i(f)),n},n}function H2(){var n=$2(fa,fa);return n.copy=function(){return xl(n,H2())},Vo.apply(n,arguments),Qs(n)}function V2(n){var i;function o(l){return isNaN(l=+l)?i:l}return o.invert=o,o.domain=o.range=function(l){return arguments.length?(n=Ef.call(l,Af),o):n.slice()},o.unknown=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return V2(n).unknown(i)},n=arguments.length?Ef.call(n,Af):[0,1],Qs(o)}function G2(n,i){var o,l=0,f=(n=n.slice()).length-1,g=n[l],w=n[f];return w0){for(;etz)break;st.push(H)}}else for(;et=1;--q)if(!((H=O*q)z)break;st.push(H)}}else st=Tt(et,J,Math.min(J-et,Z)).map(o);return k?st.reverse():st},l.tickFormat=function(m,k){if(k==null&&(k=g===10?".0e":","),typeof k!="function"&&(k=S0(k)),m===1/0)return k;m==null&&(m=10);var S=Math.max(1,g*m/l.ticks().length);return function(B){var z=B/o(Math.round(i(B)));return z*g0?l[m-1]:i[0],m=l?[f[l-1],o]:[f[S-1],f[S]]},w.unknown=function(k){return arguments.length&&(n=k),w},w.thresholds=function(){return f.slice()},w.copy=function(){return i4().domain([i,o]).range(g).unknown(n)},Vo.apply(Qs(w),arguments)}function a4(){var n,i=[.5],o=[0,1],l=1;function f(g){return g<=g?o[D(i,g,0,l)]:n}return f.domain=function(g){return arguments.length?(i=_l.call(g),l=Math.min(i.length,o.length-1),f):i.slice()},f.range=function(g){return arguments.length?(o=_l.call(g),l=Math.min(i.length,o.length-1),f):o.slice()},f.invertExtent=function(g){var w=o.indexOf(g);return[i[w-1],i[w]]},f.unknown=function(g){return arguments.length?(n=g,f):n},f.copy=function(){return a4().domain(i).range(o).unknown(n)},Vo.apply(f,arguments)}var Df=new Date,K2=new Date;function qi(n,i,o,l){function f(g){return n(g=arguments.length===0?new Date:new Date(+g)),g}return f.floor=function(g){return n(g=new Date(+g)),g},f.ceil=function(g){return n(g=new Date(g-1)),i(g,1),n(g),g},f.round=function(g){var w=f(g),m=f.ceil(g);return g-w0))return S;do S.push(k=new Date(+g)),i(g,m),n(g);while(k=w)for(;n(w),!g(w);)w.setTime(w-1)},function(w,m){if(w>=w)if(m<0)for(;++m<=0;)for(;i(w,-1),!g(w););else for(;--m>=0;)for(;i(w,1),!g(w););})},o&&(f.count=function(g,w){return Df.setTime(+g),K2.setTime(+w),n(Df),n(K2),Math.floor(o(Df,K2))},f.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?f.filter(l?function(w){return l(w)%g==0}:function(w){return f.count(0,w)%g==0}):f:null}),f}var tg=qi(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()});tg.every=function(n){return isFinite(n=Math.floor(n))&&n>0?qi(function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,o){i.setFullYear(i.getFullYear()+o*n)}):null};const wl=tg;var Jb=tg.range,xs=qi(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 eg=xs;var Js=xs.range,Of=1e3,kl=6e4,m1=36e5,ng=864e5,rg=6048e5;function Tl(n){return qi(function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)},function(i,o){i.setDate(i.getDate()+7*o)},function(i,o){return(o-i-(o.getTimezoneOffset()-i.getTimezoneOffset())*kl)/rg})}var El=Tl(0),Ou=Tl(1),Bf=Tl(2),o4=Tl(3),Ks=Tl(4),Bu=Tl(5),tc=Tl(6),ig=El.range,Lf=Ou.range,ag=Bf.range,Kb=o4.range,If=Ks.range,Lu=Bu.range,s4=tc.range,uo=qi(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())*kl)/ng},function(n){return n.getDate()-1});const pi=uo;var Iu=uo.range,Ff=qi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Of-n.getMinutes()*kl)},function(n,i){n.setTime(+n+i*m1)},function(n,i){return(i-n)/m1},function(n){return n.getHours()});const c4=Ff;var Xo=Ff.range,Pc=qi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Of)},function(n,i){n.setTime(+n+i*kl)},function(n,i){return(i-n)/kl},function(n){return n.getMinutes()});const v1=Pc;var Rf=Pc.range,Pf=qi(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*Of)},function(n,i){return(i-n)/Of},function(n){return n.getUTCSeconds()});const Fu=Pf;var l4=Pf.range,Yf=qi(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});Yf.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?qi(function(i){i.setTime(Math.floor(i/n)*n)},function(i,o){i.setTime(+i+o*n)},function(i,o){return(o-i)/n}):Yf:null};const Ru=Yf;var u4=Yf.range;function Cl(n){return qi(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCDate(i.getUTCDate()+7*o)},function(i,o){return(o-i)/rg})}var b1=Cl(0),Yc=Cl(1),og=Cl(2),h4=Cl(3),zc=Cl(4),sg=Cl(5),ec=Cl(6),f4=b1.range,cg=Yc.range,d4=og.range,p4=h4.range,g4=zc.range,ws=sg.range,zf=ec.range,y4=qi(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/ng},function(n){return n.getUTCDate()-1});const _1=y4;var da=y4.range,Xn=qi(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()});Xn.every=function(n){return isFinite(n=Math.floor(n))&&n>0?qi(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCFullYear(i.getUTCFullYear()+o*n)}):null};const ks=Xn;var t6=Xn.range;function lg(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 tr(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 bo(n,i,o){return{y:n,m:i,d:o,H:0,M:0,S:0,L:0}}function x1(n){var i=n.dateTime,o=n.date,l=n.time,f=n.periods,g=n.days,w=n.shortDays,m=n.months,k=n.shortMonths,S=Ge(f),B=nc(f),z=Ge(g),O=nc(g),q=Ge(w),H=nc(w),et=Ge(m),J=nc(m),Z=Ge(k),st=nc(k),at={a:function($t){return w[$t.getDay()]},A:function($t){return g[$t.getDay()]},b:function($t){return k[$t.getMonth()]},B:function($t){return m[$t.getMonth()]},c:null,d:rc,e:rc,f:l6,g:Wf,G:g6,H:gg,I:yg,j:mg,L:Nl,m:u6,M:h6,p:function($t){return f[+($t.getHours()>=12)]},q:function($t){return 1+~~($t.getMonth()/3)},Q:Gf,s:kg,S:f6,u:w4,U:_o,V:k4,w:bg,W:qf,x:null,X:null,y:d6,Y:p6,Z:T4,"%":ir},bt={a:function($t){return w[$t.getUTCDay()]},A:function($t){return g[$t.getUTCDay()]},b:function($t){return k[$t.getUTCMonth()]},B:function($t){return m[$t.getUTCMonth()]},c:null,d:_g,e:_g,f:E4,g:ho,G:Vf,H:$f,I:Ts,j:Yu,L:ic,m:C4,M:S4,p:function($t){return f[+($t.getUTCHours()>=12)]},q:function($t){return 1+~~($t.getUTCMonth()/3)},Q:Gf,s:kg,S:$i,u:y6,U:A4,V:xg,w:Es,W:wg,x:null,X:null,y:N4,Y:Hf,Z:D4,"%":ir},zt={a:function($t,fe,gt){var St=q.exec(fe.slice(gt));return St?($t.w=H[St[0].toLowerCase()],gt+St[0].length):-1},A:function($t,fe,gt){var St=z.exec(fe.slice(gt));return St?($t.w=O[St[0].toLowerCase()],gt+St[0].length):-1},b:function($t,fe,gt){var St=Z.exec(fe.slice(gt));return St?($t.m=st[St[0].toLowerCase()],gt+St[0].length):-1},B:function($t,fe,gt){var St=et.exec(fe.slice(gt));return St?($t.m=J[St[0].toLowerCase()],gt+St[0].length):-1},c:function($t,fe,gt){return Oe($t,i,fe,gt)},d:_4,e:_4,f:o6,g:b4,G:Uf,H:x4,I:x4,j:fg,L:a6,m:r6,M:i6,p:function($t,fe,gt){var St=S.exec(fe.slice(gt));return St?($t.p=B[St[0].toLowerCase()],gt+St[0].length):-1},q:hg,Q:s6,s:c6,S:dg,u:v4,U:wr,V:Zn,w:vn,W:ja,x:function($t,fe,gt){return Oe($t,o,fe,gt)},X:function($t,fe,gt){return Oe($t,l,fe,gt)},y:b4,Y:Uf,Z:n6,"%":pg};function Qt($t,fe){return function(gt){var St,oe,ie,ce=[],Ze=-1,cn=0,On=$t.length;for(gt instanceof Date||(gt=new Date(+gt));++Ze53)return null;"w"in ie||(ie.w=1),"Z"in ie?(oe=(St=tr(bo(ie.y,0,1))).getUTCDay(),St=oe>4||oe===0?Yc.ceil(St):Yc(St),St=_1.offset(St,7*(ie.V-1)),ie.y=St.getUTCFullYear(),ie.m=St.getUTCMonth(),ie.d=St.getUTCDate()+(ie.w+6)%7):(oe=(St=lg(bo(ie.y,0,1))).getDay(),St=oe>4||oe===0?Ou.ceil(St):Ou(St),St=pi.offset(St,7*(ie.V-1)),ie.y=St.getFullYear(),ie.m=St.getMonth(),ie.d=St.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),oe="Z"in ie?tr(bo(ie.y,0,1)).getUTCDay():lg(bo(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+7*ie.W-(oe+5)%7:ie.w+7*ie.U-(oe+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,tr(ie)):lg(ie)}}function Oe($t,fe,gt,St){for(var oe,ie,ce=0,Ze=fe.length,cn=gt.length;ce=cn)return-1;if((oe=fe.charCodeAt(ce++))===37){if(oe=fe.charAt(ce++),!(ie=zt[oe in ug?fe.charAt(ce++):oe])||(St=ie($t,gt,St))<0)return-1}else if(oe!=gt.charCodeAt(St++))return-1}return St}return at.x=Qt(o,at),at.X=Qt(l,at),at.c=Qt(i,at),bt.x=Qt(o,bt),bt.X=Qt(l,bt),bt.c=Qt(i,bt),{format:function($t){var fe=Qt($t+="",at);return fe.toString=function(){return $t},fe},parse:function($t){var fe=ae($t+="",!1);return fe.toString=function(){return $t},fe},utcFormat:function($t){var fe=Qt($t+="",bt);return fe.toString=function(){return $t},fe},utcParse:function($t){var fe=ae($t+="",!0);return fe.toString=function(){return $t},fe}}}var Sl,Al,w1,Ml,Pu,ug={"-":"",_:" ",0:"0"},Wi=/^\s*\d+/,jf=/^%/,e6=/[\\^$*+?|[\]().{}]/g;function sr(n,i,o){var l=n<0?"-":"",f=(l?-n:n)+"",g=f.length;return l+(g68?1900:2e3),o+l[0].length):-1}function n6(n,i,o){var l=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(o,o+6));return l?(n.Z=l[1]?0:-(l[2]+(l[3]||"00")),o+l[0].length):-1}function hg(n,i,o){var l=Wi.exec(i.slice(o,o+1));return l?(n.q=3*l[0]-3,o+l[0].length):-1}function r6(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.m=l[0]-1,o+l[0].length):-1}function _4(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.d=+l[0],o+l[0].length):-1}function fg(n,i,o){var l=Wi.exec(i.slice(o,o+3));return l?(n.m=0,n.d=+l[0],o+l[0].length):-1}function x4(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.H=+l[0],o+l[0].length):-1}function i6(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.M=+l[0],o+l[0].length):-1}function dg(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.S=+l[0],o+l[0].length):-1}function a6(n,i,o){var l=Wi.exec(i.slice(o,o+3));return l?(n.L=+l[0],o+l[0].length):-1}function o6(n,i,o){var l=Wi.exec(i.slice(o,o+6));return l?(n.L=Math.floor(l[0]/1e3),o+l[0].length):-1}function pg(n,i,o){var l=jf.exec(i.slice(o,o+1));return l?o+l[0].length:-1}function s6(n,i,o){var l=Wi.exec(i.slice(o));return l?(n.Q=+l[0],o+l[0].length):-1}function c6(n,i,o){var l=Wi.exec(i.slice(o));return l?(n.s=+l[0],o+l[0].length):-1}function rc(n,i){return sr(n.getDate(),i,2)}function gg(n,i){return sr(n.getHours(),i,2)}function yg(n,i){return sr(n.getHours()%12||12,i,2)}function mg(n,i){return sr(1+pi.count(wl(n),n),i,3)}function Nl(n,i){return sr(n.getMilliseconds(),i,3)}function l6(n,i){return Nl(n,i)+"000"}function u6(n,i){return sr(n.getMonth()+1,i,2)}function h6(n,i){return sr(n.getMinutes(),i,2)}function f6(n,i){return sr(n.getSeconds(),i,2)}function w4(n){var i=n.getDay();return i===0?7:i}function _o(n,i){return sr(El.count(wl(n)-1,n),i,2)}function vg(n){var i=n.getDay();return i>=4||i===0?Ks(n):Ks.ceil(n)}function k4(n,i){return n=vg(n),sr(Ks.count(wl(n),n)+(wl(n).getDay()===4),i,2)}function bg(n){return n.getDay()}function qf(n,i){return sr(Ou.count(wl(n)-1,n),i,2)}function d6(n,i){return sr(n.getFullYear()%100,i,2)}function Wf(n,i){return sr((n=vg(n)).getFullYear()%100,i,2)}function p6(n,i){return sr(n.getFullYear()%1e4,i,4)}function g6(n,i){var o=n.getDay();return sr((n=o>=4||o===0?Ks(n):Ks.ceil(n)).getFullYear()%1e4,i,4)}function T4(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+sr(i/60|0,"0",2)+sr(i%60,"0",2)}function _g(n,i){return sr(n.getUTCDate(),i,2)}function $f(n,i){return sr(n.getUTCHours(),i,2)}function Ts(n,i){return sr(n.getUTCHours()%12||12,i,2)}function Yu(n,i){return sr(1+_1.count(ks(n),n),i,3)}function ic(n,i){return sr(n.getUTCMilliseconds(),i,3)}function E4(n,i){return ic(n,i)+"000"}function C4(n,i){return sr(n.getUTCMonth()+1,i,2)}function S4(n,i){return sr(n.getUTCMinutes(),i,2)}function $i(n,i){return sr(n.getUTCSeconds(),i,2)}function y6(n){var i=n.getUTCDay();return i===0?7:i}function A4(n,i){return sr(b1.count(ks(n)-1,n),i,2)}function M4(n){var i=n.getUTCDay();return i>=4||i===0?zc(n):zc.ceil(n)}function xg(n,i){return n=M4(n),sr(zc.count(ks(n),n)+(ks(n).getUTCDay()===4),i,2)}function Es(n){return n.getUTCDay()}function wg(n,i){return sr(Yc.count(ks(n)-1,n),i,2)}function N4(n,i){return sr(n.getUTCFullYear()%100,i,2)}function ho(n,i){return sr((n=M4(n)).getUTCFullYear()%100,i,2)}function Hf(n,i){return sr(n.getUTCFullYear()%1e4,i,4)}function Vf(n,i){var o=n.getUTCDay();return sr((n=o>=4||o===0?zc(n):zc.ceil(n)).getUTCFullYear()%1e4,i,4)}function D4(){return"+0000"}function ir(){return"%"}function Gf(n){return+n}function kg(n){return Math.floor(+n/1e3)}function Tg(n){return Sl=x1(n),Al=Sl.format,w1=Sl.parse,Ml=Sl.utcFormat,Pu=Sl.utcParse,Sl}Tg({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 Dl=31536e6;function Ki(n){return new Date(n)}function k1(n){return n instanceof Date?+n:+new Date(+n)}function zu(n,i,o,l,f,g,w,m,k){var S=$2(fa,fa),B=S.invert,z=S.domain,O=k(".%L"),q=k(":%S"),H=k("%I:%M"),et=k("%I %p"),J=k("%a %d"),Z=k("%b %d"),st=k("%B"),at=k("%Y"),bt=[[w,1,1e3],[w,5,5e3],[w,15,15e3],[w,30,3e4],[g,1,6e4],[g,5,3e5],[g,15,9e5],[g,30,18e5],[f,1,36e5],[f,3,108e5],[f,6,216e5],[f,12,432e5],[l,1,864e5],[l,2,1728e5],[o,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,Dl]];function zt(ae){return(w(ae)1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return ga.h=360*n-100,ga.s=1.5-1.5*i,ga.l=.8-.9*i,ga+""}var ui=Dr(),oc=Math.PI/3,gr=2*Math.PI/3;function Qo(n){var i;return n=(.5-n)*Math.PI,ui.r=255*(i=Math.sin(n))*i,ui.g=255*(i=Math.sin(n+oc))*i,ui.b=255*(i=Math.sin(n+gr))*i,ui+""}function H4(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 Ol(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}const M6=Ol(or("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var N6=Ol(or("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ld=Ol(or("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ud=Ol(or("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function D6(n){return zr(Tr(n).call(document.documentElement))}var O6=0;function V4(){return new qg}function qg(){this._="@"+(++O6).toString(36)}function B6(n){return typeof n=="string"?new Hn([document.querySelectorAll(n)],[document.documentElement]):new Hn([n==null?[]:n],_a)}function L6(n,i){i==null&&(i=ro().touches);for(var o=0,l=i?i.length:0,f=new Array(l);o1?0:n<-1?cc:Math.acos(n)}function Wg(n){return n>=1?lc:n<=-1?-lc:Math.asin(n)}function hd(n){return n.innerRadius}function ma(n){return n.outerRadius}function F6(n){return n.startAngle}function fd(n){return n.endAngle}function R6(n){return n&&n.padAngle}function X4(n,i,o,l,f,g,w,m){var k=o-n,S=l-i,B=w-f,z=m-g,O=z*k-B*S;if(!(O*Oie*ie+ce*ce&&(Oe=fe,$t=gt),{cx:Oe,cy:$t,x01:-B,y01:-z,x11:Oe*(f/zt-1),y11:$t*(f/zt-1)}}function $g(){var n=hd,i=ma,o=hr(0),l=null,f=F6,g=fd,w=R6,m=null;function k(){var S,B,z=+n.apply(this,arguments),O=+i.apply(this,arguments),q=f.apply(this,arguments)-lc,H=g.apply(this,arguments)-lc,et=G4(H-q),J=H>q;if(m||(m=S=Ys()),Oya)if(et>uc-ya)m.moveTo(O*Jo(q),O*fo(q)),m.arc(0,0,O,q,H,!J),z>ya&&(m.moveTo(z*Jo(H),z*fo(H)),m.arc(0,0,z,H,q,J));else{var Z,st,at=q,bt=H,zt=q,Qt=H,ae=et,Oe=et,$t=w.apply(this,arguments)/2,fe=$t>ya&&(l?+l.apply(this,arguments):Bl(z*z+O*O)),gt=Ms(G4(O-z)/2,+o.apply(this,arguments)),St=gt,oe=gt;if(fe>ya){var ie=Wg(fe/z*fo($t)),ce=Wg(fe/O*fo($t));(ae-=2*ie)>ya?(zt+=ie*=J?1:-1,Qt-=ie):(ae=0,zt=Qt=(q+H)/2),(Oe-=2*ce)>ya?(at+=ce*=J?1:-1,bt-=ce):(Oe=0,at=bt=(q+H)/2)}var Ze=O*Jo(at),cn=O*fo(at),On=z*Jo(Qt),lr=z*fo(Qt);if(gt>ya){var Vn,yn=O*Jo(bt),kr=O*fo(bt),Un=z*Jo(zt),zn=z*fo(zt);if(etya?oe>ya?(Z=dd(Un,zn,Ze,cn,O,oe,J),st=dd(yn,kr,On,lr,O,oe,J),m.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),oeya&&ae>ya?St>ya?(Z=dd(On,lr,yn,kr,z,-St,J),st=dd(Ze,cn,Un,zn,z,-St,J),m.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),St=O;--q)m.point(st[q],at[q]);m.lineEnd(),m.areaEnd()}Z&&(st[z]=+n(H,z,B),at[z]=+o(H,z,B),m.point(i?+i(H,z,B):st[z],l?+l(H,z,B):at[z]))}if(et)return m=null,et+""||null}function S(){return pd().defined(f).curve(w).context(g)}return k.x=function(B){return arguments.length?(n=typeof B=="function"?B:hr(+B),i=null,k):n},k.x0=function(B){return arguments.length?(n=typeof B=="function"?B:hr(+B),k):n},k.x1=function(B){return arguments.length?(i=B==null?null:typeof B=="function"?B:hr(+B),k):i},k.y=function(B){return arguments.length?(o=typeof B=="function"?B:hr(+B),l=null,k):o},k.y0=function(B){return arguments.length?(o=typeof B=="function"?B:hr(+B),k):o},k.y1=function(B){return arguments.length?(l=B==null?null:typeof B=="function"?B:hr(+B),k):l},k.lineX0=k.lineY0=function(){return S().x(n).y(o)},k.lineY1=function(){return S().x(n).y(l)},k.lineX1=function(){return S().x(i).y(o)},k.defined=function(B){return arguments.length?(f=typeof B=="function"?B:hr(!!B),k):f},k.curve=function(B){return arguments.length?(w=B,g!=null&&(m=w(g)),k):w},k.context=function(B){return arguments.length?(B==null?g=m=null:m=w(g=B),k):g},k}function P6(n,i){return in?1:i>=n?0:NaN}function Z4(n){return n}function hc(){var n=Z4,i=P6,o=null,l=hr(0),f=hr(uc),g=hr(0);function w(m){var k,S,B,z,O,q=m.length,H=0,et=new Array(q),J=new Array(q),Z=+l.apply(this,arguments),st=Math.min(uc,Math.max(-uc,f.apply(this,arguments)-Z)),at=Math.min(Math.abs(st)/q,g.apply(this,arguments)),bt=at*(st<0?-1:1);for(k=0;k0&&(H+=O);for(i!=null?et.sort(function(zt,Qt){return i(J[zt],J[Qt])}):o!=null&&et.sort(function(zt,Qt){return o(m[zt],m[Qt])}),k=0,B=H?(st-q*bt)/H:0;k0?O*B:0)+bt,J[S]={data:m[S],index:k,value:O,startAngle:Z,endAngle:z,padAngle:at};return J}return w.value=function(m){return arguments.length?(n=typeof m=="function"?m:hr(+m),w):n},w.sortValues=function(m){return arguments.length?(i=m,o=null,w):i},w.sort=function(m){return arguments.length?(o=m,i=null,w):o},w.startAngle=function(m){return arguments.length?(l=typeof m=="function"?m:hr(+m),w):l},w.endAngle=function(m){return arguments.length?(f=typeof m=="function"?m:hr(+m),w):f},w.padAngle=function(m){return arguments.length?(g=typeof m=="function"?m:hr(+m),w):g},w}Hg.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 fc=gd(O1);function Hr(n){this._curve=n}function gd(n){function i(o){return new Hr(n(o))}return i._curve=n,i}function Hu(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(o){return arguments.length?i(gd(o)):i()._curve},n}function Vg(){return Hu(pd().curve(fc))}function Q4(){var n=qa().curve(fc),i=n.curve,o=n.lineX0,l=n.lineX1,f=n.lineY0,g=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 Hu(o())},delete n.lineX0,n.lineEndAngle=function(){return Hu(l())},delete n.lineX1,n.lineInnerRadius=function(){return Hu(f())},delete n.lineY0,n.lineOuterRadius=function(){return Hu(g())},delete n.lineY1,n.curve=function(w){return arguments.length?i(gd(w)):i()._curve},n}function Il(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}Hr.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 L1=Array.prototype.slice;function dc(n){return n.source}function yd(n){return n.target}function Gg(n){var i=dc,o=yd,l=Ll,f=B1,g=null;function w(){var m,k=L1.call(arguments),S=i.apply(this,k),B=o.apply(this,k);if(g||(g=m=Ys()),n(g,+l.apply(this,(k[0]=S,k)),+f.apply(this,k),+l.apply(this,(k[0]=B,k)),+f.apply(this,k)),m)return g=null,m+""||null}return w.source=function(m){return arguments.length?(i=m,w):i},w.target=function(m){return arguments.length?(o=m,w):o},w.x=function(m){return arguments.length?(l=typeof m=="function"?m:hr(+m),w):l},w.y=function(m){return arguments.length?(f=typeof m=="function"?m:hr(+m),w):f},w.context=function(m){return arguments.length?(g=m==null?null:m,w):g},w}function J4(n,i,o,l,f){n.moveTo(i,o),n.bezierCurveTo(i=(i+l)/2,o,i,f,l,f)}function Xg(n,i,o,l,f){n.moveTo(i,o),n.bezierCurveTo(i,o=(o+f)/2,l,o,l,f)}function wi(n,i,o,l,f){var g=Il(i,o),w=Il(i,o=(o+f)/2),m=Il(l,o),k=Il(l,f);n.moveTo(g[0],g[1]),n.bezierCurveTo(w[0],w[1],m[0],m[1],k[0],k[1])}function Fl(){return Gg(J4)}function Vu(){return Gg(Xg)}function Ns(){var n=Gg(wi);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const Gu={draw:function(n,i){var o=Math.sqrt(i/cc);n.moveTo(o,0),n.arc(0,0,o,0,uc)}},md={draw:function(n,i){var o=Math.sqrt(i/5)/2;n.moveTo(-3*o,-o),n.lineTo(-o,-o),n.lineTo(-o,-3*o),n.lineTo(o,-3*o),n.lineTo(o,-o),n.lineTo(3*o,-o),n.lineTo(3*o,o),n.lineTo(o,o),n.lineTo(o,3*o),n.lineTo(-o,3*o),n.lineTo(-o,o),n.lineTo(-3*o,o),n.closePath()}};var vd=Math.sqrt(1/3),Zg=2*vd;const I1={draw:function(n,i){var o=Math.sqrt(i/Zg),l=o*vd;n.moveTo(0,-o),n.lineTo(l,0),n.lineTo(0,o),n.lineTo(-l,0),n.closePath()}};var F1=Math.sin(cc/10)/Math.sin(7*cc/10),bd=Math.sin(uc/10)*F1,Y6=-Math.cos(uc/10)*F1;const _d={draw:function(n,i){var o=Math.sqrt(.8908130915292852*i),l=bd*o,f=Y6*o;n.moveTo(0,-o),n.lineTo(l,f);for(var g=1;g<5;++g){var w=uc*g/5,m=Math.cos(w),k=Math.sin(w);n.lineTo(k*o,-m*o),n.lineTo(m*l-k*f,k*l+m*f)}n.closePath()}},Qg={draw:function(n,i){var o=Math.sqrt(i),l=-o/2;n.rect(l,l,o,o)}};var Jg=Math.sqrt(3);const xd={draw:function(n,i){var o=-Math.sqrt(i/(3*Jg));n.moveTo(0,2*o),n.lineTo(-Jg*o,-o),n.lineTo(Jg*o,-o),n.closePath()}};var po=-.5,Co=Math.sqrt(3)/2,wd=1/Math.sqrt(12),K4=3*(wd/2+1);const cr={draw:function(n,i){var o=Math.sqrt(i/K4),l=o/2,f=o*wd,g=l,w=o*wd+o,m=-g,k=w;n.moveTo(l,f),n.lineTo(g,w),n.lineTo(m,k),n.lineTo(po*l-Co*f,Co*l+po*f),n.lineTo(po*g-Co*w,Co*g+po*w),n.lineTo(po*m-Co*k,Co*m+po*k),n.lineTo(po*l+Co*f,po*f-Co*l),n.lineTo(po*g+Co*w,po*w-Co*g),n.lineTo(po*m+Co*k,po*k-Co*m),n.closePath()}};var z6=[Gu,md,I1,Qg,_d,xd,cr];function kd(){var n=hr(Gu),i=hr(64),o=null;function l(){var f;if(o||(o=f=Ys()),n.apply(this,arguments).draw(o,+i.apply(this,arguments)),f)return o=null,f+""||null}return l.type=function(f){return arguments.length?(n=typeof f=="function"?f:hr(f),l):n},l.size=function(f){return arguments.length?(i=typeof f=="function"?f:hr(+f),l):i},l.context=function(f){return arguments.length?(o=f==null?null:f,l):o},l}function Wc(){}function Ca(n,i,o){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+i)/6,(n._y0+4*n._y1+o)/6)}function Td(n){this._context=n}function tv(n){return new Td(n)}function ev(n){this._context=n}function j6(n){return new ev(n)}function nv(n){this._context=n}function U6(n){return new nv(n)}function rv(n,i){this._basis=new Td(n),this._beta=i}Td.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:Ca(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:Ca(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},ev.prototype={areaStart:Wc,areaEnd:Wc,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:Ca(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},nv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+n)/6,l=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(o,l):this._context.moveTo(o,l);break;case 3:this._point=4;default:Ca(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},rv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,o=n.length-1;if(o>0)for(var l,f=n[0],g=i[0],w=n[o]-f,m=i[o]-g,k=-1;++k<=o;)l=k/o,this._basis.point(this._beta*n[k]+(1-this._beta)*(f+l*w),this._beta*i[k]+(1-this._beta)*(g+l*m));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const q6=function n(i){function o(l){return i===1?new Td(l):new rv(l,i)}return o.beta=function(l){return n(+l)},o}(.85);function Ed(n,i,o){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-i),n._y2+n._k*(n._y1-o),n._x2,n._y2)}function Kg(n,i){this._context=n,this._k=(1-i)/6}Kg.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:Ed(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:Ed(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 W6=function n(i){function o(l){return new Kg(l,i)}return o.tension=function(l){return n(+l)},o}(0);function ty(n,i){this._context=n,this._k=(1-i)/6}ty.prototype={areaStart:Wc,areaEnd:Wc,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:Ed(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 $6=function n(i){function o(l){return new ty(l,i)}return o.tension=function(l){return n(+l)},o}(0);function Ko(n,i){this._context=n,this._k=(1-i)/6}Ko.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:Ed(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 H6=function n(i){function o(l){return new Ko(l,i)}return o.tension=function(l){return n(+l)},o}(0);function Cd(n,i,o){var l=n._x1,f=n._y1,g=n._x2,w=n._y2;if(n._l01_a>ya){var m=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,k=3*n._l01_a*(n._l01_a+n._l12_a);l=(l*m-n._x0*n._l12_2a+n._x2*n._l01_2a)/k,f=(f*m-n._y0*n._l12_2a+n._y2*n._l01_2a)/k}if(n._l23_a>ya){var S=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);g=(g*S+n._x1*n._l23_2a-i*n._l12_2a)/B,w=(w*S+n._y1*n._l23_2a-o*n._l12_2a)/B}n._context.bezierCurveTo(l,f,g,w,n._x2,n._y2)}function ey(n,i){this._context=n,this._alpha=i}ey.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,l=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+l*l,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:Cd(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 V6=function n(i){function o(l){return i?new ey(l,i):new Kg(l,0)}return o.alpha=function(l){return n(+l)},o}(.5);function ny(n,i){this._context=n,this._alpha=i}ny.prototype={areaStart:Wc,areaEnd:Wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,l=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+l*l,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:Cd(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 iv=function n(i){function o(l){return i?new ny(l,i):new ty(l,0)}return o.alpha=function(l){return n(+l)},o}(.5);function av(n,i){this._context=n,this._alpha=i}av.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,l=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+l*l,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:Cd(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 ry=function n(i){function o(l){return i?new av(l,i):new Ko(l,0)}return o.alpha=function(l){return n(+l)},o}(.5);function Sd(n){this._context=n}function Ad(n){return new Sd(n)}function ts(n){return n<0?-1:1}function Md(n,i,o){var l=n._x1-n._x0,f=i-n._x1,g=(n._y1-n._y0)/(l||f<0&&-0),w=(o-n._y1)/(f||l<0&&-0),m=(g*f+w*l)/(l+f);return(ts(g)+ts(w))*Math.min(Math.abs(g),Math.abs(w),.5*Math.abs(m))||0}function Nd(n,i){var o=n._x1-n._x0;return o?(3*(n._y1-n._y0)/o-i)/2:i}function Rl(n,i,o){var l=n._x0,f=n._y0,g=n._x1,w=n._y1,m=(g-l)/3;n._context.bezierCurveTo(l+m,f+m*i,g-m,w-m*o,g,w)}function $c(n){this._context=n}function Dd(n){this._context=new Od(n)}function Od(n){this._context=n}function iy(n){return new $c(n)}function Xu(n){return new Dd(n)}function ay(n){this._context=n}function R1(n){var i,o,l=n.length-1,f=new Array(l),g=new Array(l),w=new Array(l);for(f[0]=0,g[0]=2,w[0]=n[0]+2*n[1],i=1;i=0;--i)f[i]=(w[i]-f[i+1])/g[i];for(g[l-1]=(n[l]+f[l-1])/2,i=0;i1)for(var o,l,f,g=1,w=n[i[0]],m=w.length;g=0;)o[i]=i;return o}function cv(n,i){return n[i]}function lv(){var n=hr([]),i=Hc,o=Qu,l=cv;function f(g){var w,m,k=n.apply(this,arguments),S=g.length,B=k.length,z=new Array(B);for(w=0;w0){for(var o,l,f,g=0,w=n[0].length;g0)for(var o,l,f,g,w,m,k=0,S=n[i[0]].length;k0?(l[0]=g,l[1]=g+=f):f<0?(l[1]=w,l[0]=w+=f):(l[0]=0,l[1]=f)}function Ii(n,i){if((o=n.length)>0){for(var o,l=0,f=n[i[0]],g=f.length;l0&&(l=(o=n[i[0]]).length)>0){for(var o,l,f,g=0,w=1;wg&&(g=i,l=o);return l}function sy(n){var i=n.map(cy);return Hc(n).sort(function(o,l){return i[o]-i[l]})}function cy(n){for(var i,o=0,l=-1,f=n.length;++l=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var o=this._x*(1-this._t)+n*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,i)}}this._x=n,this._y=i}};var Ja="%Y-%m-%dT%H:%M:%S.%LZ",G6=Date.prototype.toISOString?function(n){return n.toISOString()}:Ml(Ja);const pv=G6;var X6=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Pu(Ja);const gv=X6;function yv(n,i,o){var l=new Zt,f=i;return i==null?(l.restart(n,i,o),l):(i=+i,o=o==null?G():+o,l.restart(function g(w){w+=f,l.restart(g,f+=i,o),n(w)},i,o),l)}function mv(n){return function(){return n}}function Bd(n){return n[0]}function Z6(n){return n[1]}function Fi(){this._=null}function na(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Gc(n,i){var o=i,l=i.R,f=o.U;f?f.L===o?f.L=l:f.R=l:n._=l,l.U=f,o.U=l,o.R=l.L,o.R&&(o.R.U=o),l.L=o}function gi(n,i){var o=i,l=i.L,f=o.U;f?f.L===o?f.L=l:f.R=l:n._=l,l.U=f,o.U=l,o.L=l.R,o.L&&(o.L.U=o),l.R=o}function ra(n){for(;n.L;)n=n.L;return n}Fi.prototype={constructor:Fi,insert:function(n,i){var o,l,f;if(n){if(i.P=n,i.N=n.N,n.N&&(n.N.P=i),n.N=i,n.R){for(n=n.R;n.L;)n=n.L;n.L=i}else n.R=i;o=n}else this._?(n=ra(this._),i.P=null,i.N=n,n.P=n.L=i,o=n):(i.P=i.N=null,this._=i,o=null);for(i.L=i.R=null,i.U=o,i.C=!0,n=i;o&&o.C;)o===(l=o.U).L?(f=l.R)&&f.C?(o.C=f.C=!1,l.C=!0,n=l):(n===o.R&&(Gc(this,o),o=(n=o).U),o.C=!1,l.C=!0,gi(this,l)):(f=l.L)&&f.C?(o.C=f.C=!1,l.C=!0,n=l):(n===o.L&&(gi(this,o),o=(n=o).U),o.C=!1,l.C=!0,Gc(this,l)),o=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var i,o,l,f=n.U,g=n.L,w=n.R;if(o=g?w?ra(w):g:w,f?f.L===n?f.L=o:f.R=o:this._=o,g&&w?(l=o.C,o.C=n.C,o.L=g,g.U=o,o!==w?(f=o.U,o.U=n.U,n=o.R,f.L=n,o.R=w,w.U=o):(o.U=f,f=o,n=o.R)):(l=n.C,n=o),n&&(n.U=f),!l)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===f.L){if((i=f.R).C&&(i.C=!1,f.C=!0,Gc(this,f),i=f.R),i.L&&i.L.C||i.R&&i.R.C){i.R&&i.R.C||(i.L.C=!1,i.C=!0,gi(this,i),i=f.R),i.C=f.C,f.C=i.R.C=!1,Gc(this,f),n=this._;break}}else if((i=f.L).C&&(i.C=!1,f.C=!0,gi(this,f),i=f.L),i.L&&i.L.C||i.R&&i.R.C){i.L&&i.L.C||(i.R.C=!1,i.C=!0,Gc(this,i),i=f.L),i.C=f.C,f.C=i.L.C=!1,gi(this,f),n=this._;break}i.C=!0,n=f,f=f.U}while(!n.C);n&&(n.C=!1)}}};const ly=Fi;function es(n,i,o,l){var f=[null,null],g=Sa.push(f)-1;return f.left=n,f.right=i,o&&Y1(f,n,i,o),l&&Y1(f,i,n,l),go[n.index].halfedges.push(g),go[i.index].halfedges.push(g),f}function Yl(n,i,o){var l=[i,o];return l.left=n,l}function Y1(n,i,o,l){n[0]||n[1]?n.left===o?n[1]=l:n[0]=l:(n[0]=l,n.left=i,n.right=o)}function vv(n,i,o,l,f){var g,w=n[0],m=n[1],k=w[0],S=w[1],B=0,z=1,O=m[0]-k,q=m[1]-S;if(g=i-k,O||!(g>0)){if(g/=O,O<0){if(g0){if(g>z)return;g>B&&(B=g)}if(g=l-k,O||!(g<0)){if(g/=O,O<0){if(g>z)return;g>B&&(B=g)}else if(O>0){if(g0)){if(g/=q,q<0){if(g0){if(g>z)return;g>B&&(B=g)}if(g=f-S,q||!(g<0)){if(g/=q,q<0){if(g>z)return;g>B&&(B=g)}else if(q>0){if(g0||z<1)||(B>0&&(n[0]=[k+B*O,S+B*q]),z<1&&(n[1]=[k+z*O,S+z*q]),!0)}}}}}function bv(n,i,o,l,f){var g=n[1];if(g)return!0;var w,m,k=n[0],S=n.left,B=n.right,z=S[0],O=S[1],q=B[0],H=B[1],et=(z+q)/2,J=(O+H)/2;if(H===O){if(et=l)return;if(z>q){if(k){if(k[1]>=f)return}else k=[et,o];g=[et,f]}else{if(k){if(k[1]1)if(z>q){if(k){if(k[1]>=f)return}else k=[(o-m)/w,o];g=[(f-m)/w,f]}else{if(k){if(k[1]=l)return}else k=[i,w*i+m];g=[l,w*l+m]}else{if(k){if(k[0]=-J6)){var q=k*k+S*S,H=B*B+z*z,et=(z*q-S*H)/O,J=(k*H-B*q)/O,Z=xv.pop()||new wv;Z.arc=n,Z.site=f,Z.x=et+w,Z.y=(Z.cy=J+m)+Math.sqrt(et*et+J*J),n.circle=Z;for(var st=null,at=th._;at;)if(Z.yRr)m=m.L;else{if(!((f=g-Tv(m,w))>Rr)){l>-Rr?(i=m.P,o=m):f>-Rr?(i=m,o=m.N):i=o=m;break}if(!m.R){i=m;break}m=m.R}(function(zt){go[zt.index]={site:zt,halfedges:[]}})(n);var k=U1(n);if(jl.insert(i,k),i||o){if(i===o)return Vi(i),o=U1(i.site),jl.insert(k,o),k.edge=o.edge=es(i.site,k.site),Ds(i),void Ds(o);if(o){Vi(i),Vi(o);var S=i.site,B=S[0],z=S[1],O=n[0]-B,q=n[1]-z,H=o.site,et=H[0]-B,J=H[1]-z,Z=2*(O*J-q*et),st=O*O+q*q,at=et*et+J*J,bt=[(J*st-q*at)/Z+B,(O*at-et*st)/Z+z];Y1(o.edge,S,H,bt),k.edge=es(S,n,null,bt),o.edge=es(n,H,null,bt),Ds(i),Ds(o)}else k.edge=es(i.site,k.site)}}function hy(n,i){var o=n.site,l=o[0],f=o[1],g=f-i;if(!g)return l;var w=n.P;if(!w)return-1/0;var m=(o=w.site)[0],k=o[1],S=k-i;if(!S)return m;var B=m-l,z=1/g-1/S,O=B/S;return z?(-O+Math.sqrt(O*O-2*z*(B*B/(-2*S)-k+S/2+f-g/2)))/z+l:(l+m)/2}function Tv(n,i){var o=n.N;if(o)return hy(o,i);var l=n.site;return l[1]===i?l[0]:1/0}var jl,go,th,Sa,Rr=1e-6,J6=1e-12;function Ev(n,i,o){return(n[0]-o[0])*(i[1]-n[1])-(n[0]-i[0])*(o[1]-n[1])}function Id(n,i){return i[1]-n[1]||i[0]-n[0]}function q1(n,i){var o,l,f,g=n.sort(Id).pop();for(Sa=[],go=new Array(n.length),jl=new ly,th=new ly;;)if(f=Xc,g&&(!f||g[1]Rr||Math.abs(H[0][1]-H[1][1])>Rr)||delete Sa[et]})(w,m,k,S),function(B,z,O,q){var H,et,J,Z,st,at,bt,zt,Qt,ae,Oe,$t,fe=go.length,gt=!0;for(H=0;HRr||Math.abs($t-Qt)>Rr)&&(st.splice(Z,0,Sa.push(Yl(J,ae,Math.abs(Oe-B)Rr?[B,Math.abs(zt-B)Rr?[Math.abs(Qt-q)Rr?[O,Math.abs(zt-O)Rr?[Math.abs(Qt-z)=m)return null;var k=n-f.site[0],S=i-f.site[1],B=k*k+S*S;do f=g.cells[l=w],w=null,f.halfedges.forEach(function(z){var O=g.edges[z],q=O.left;if(q!==f.site&&q||(q=O.right)){var H=n-q[0],et=i-q[1],J=H*H+et*et;Jl?(l+f)/2:Math.min(0,l)||Math.max(0,f),w>g?(g+w)/2:Math.min(0,g)||Math.max(0,w))}function Ri(){var n,i,o=$1,l=Qc,f=K6,g=nh,w=dy,m=[0,1/0],k=[[-1/0,-1/0],[1/0,1/0]],S=250,B=_f,z=ln("start","zoom","end"),O=500,q=0;function H(gt){gt.property("__zoom",eh).on("wheel.zoom",zt).on("mousedown.zoom",Qt).on("dblclick.zoom",ae).filter(w).on("touchstart.zoom",Oe).on("touchmove.zoom",$t).on("touchend.zoom touchcancel.zoom",fe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function et(gt,St){return(St=Math.max(m[0],Math.min(m[1],St)))===gt.k?gt:new gc(St,gt.x,gt.y)}function J(gt,St,oe){var ie=St[0]-oe[0]*gt.k,ce=St[1]-oe[1]*gt.k;return ie===gt.x&&ce===gt.y?gt:new gc(gt.k,ie,ce)}function Z(gt){return[(+gt[0][0]+ +gt[1][0])/2,(+gt[0][1]+ +gt[1][1])/2]}function st(gt,St,oe){gt.on("start.zoom",function(){at(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){at(this,arguments).end()}).tween("zoom",function(){var ie=this,ce=arguments,Ze=at(ie,ce),cn=l.apply(ie,ce),On=oe==null?Z(cn):typeof oe=="function"?oe.apply(ie,ce):oe,lr=Math.max(cn[1][0]-cn[0][0],cn[1][1]-cn[0][1]),Vn=ie.__zoom,yn=typeof St=="function"?St.apply(ie,ce):St,kr=B(Vn.invert(On).concat(lr/Vn.k),yn.invert(On).concat(lr/yn.k));return function(Un){if(Un===1)Un=yn;else{var zn=kr(Un),vr=lr/zn[2];Un=new gc(vr,On[0]-zn[0]*vr,On[1]-zn[1]*vr)}Ze.zoom(null,Un)}})}function at(gt,St,oe){return!oe&>.__zooming||new bt(gt,St)}function bt(gt,St){this.that=gt,this.args=St,this.active=0,this.extent=l.apply(gt,St),this.taps=0}function zt(){if(o.apply(this,arguments)){var gt=at(this,arguments),St=this.__zoom,oe=Math.max(m[0],Math.min(m[1],St.k*Math.pow(2,g.apply(this,arguments)))),ie=Is(this);if(gt.wheel)gt.mouse[0][0]===ie[0]&>.mouse[0][1]===ie[1]||(gt.mouse[1]=St.invert(gt.mouse[0]=ie)),clearTimeout(gt.wheel);else{if(St.k===oe)return;gt.mouse=[ie,St.invert(ie)],Oa(this),gt.start()}ia(),gt.wheel=setTimeout(ce,150),gt.zoom("mouse",f(J(et(St,oe),gt.mouse[0],gt.mouse[1]),gt.extent,k))}function ce(){gt.wheel=null,gt.end()}}function Qt(){if(!i&&o.apply(this,arguments)){var gt=at(this,arguments,!0),St=zr(De.view).on("mousemove.zoom",Ze,!0).on("mouseup.zoom",cn,!0),oe=Is(this),ie=De.clientX,ce=De.clientY;Oi(De.view),W1(),gt.mouse=[oe,this.__zoom.invert(oe)],Oa(this),gt.start()}function Ze(){if(ia(),!gt.moved){var On=De.clientX-ie,lr=De.clientY-ce;gt.moved=On*On+lr*lr>q}gt.zoom("mouse",f(J(gt.that.__zoom,gt.mouse[0]=Is(gt.that),gt.mouse[1]),gt.extent,k))}function cn(){St.on("mousemove.zoom mouseup.zoom",null),Nr(De.view,gt.moved),ia(),gt.end()}}function ae(){if(o.apply(this,arguments)){var gt=this.__zoom,St=Is(this),oe=gt.invert(St),ie=gt.k*(De.shiftKey?.5:2),ce=f(J(et(gt,ie),St,oe),l.apply(this,arguments),k);ia(),S>0?zr(this).transition().duration(S).call(st,ce,St):zr(this).call(H.transform,ce)}}function Oe(){if(o.apply(this,arguments)){var gt,St,oe,ie,ce=De.touches,Ze=ce.length,cn=at(this,arguments,De.changedTouches.length===Ze);for(W1(),St=0;St{A.exports={graphlib:y(574),layout:y(8123),debug:y(7570),util:{time:y(1138).time,notime:y(1138).notime},version:y(8177)}},2188:(A,F,y)=>{var x=y(8436),d=y(4079);A.exports={run:function(T){var v=T.graph().acyclicer==="greedy"?d(T,function(C){return function(N){return C.edge(N).weight}}(T)):function(C){var N=[],D={},Y={};return x.forEach(C.nodes(),function L(j){x.has(Y,j)||(Y[j]=!0,D[j]=!0,x.forEach(C.outEdges(j),function(V){x.has(D,V.w)?N.push(V):L(V.w)}),delete D[j])}),N}(T);x.forEach(v,function(C){var N=T.edge(C);T.removeEdge(C),N.forwardName=C.name,N.reversed=!0,T.setEdge(C.w,C.v,N,x.uniqueId("rev"))})},undo:function(T){x.forEach(T.edges(),function(v){var C=T.edge(v);if(C.reversed){T.removeEdge(v);var N=C.forwardName;delete C.reversed,delete C.forwardName,T.setEdge(v.w,v.v,C,N)}})}}},1133:(A,F,y)=>{var x=y(8436),d=y(1138);function T(v,C,N,D,Y,L){var j={width:0,height:0,rank:L,borderType:C},V=Y[C][L-1],K=d.addDummyNode(v,"border",j,N);Y[C][L]=K,v.setParent(K,D),V&&v.setEdge(V,K,{weight:1})}A.exports=function(v){x.forEach(v.children(),function C(N){var D=v.children(N),Y=v.node(N);if(D.length&&x.forEach(D,C),x.has(Y,"minRank")){Y.borderLeft=[],Y.borderRight=[];for(var L=Y.minRank,j=Y.maxRank+1;L{var x=y(8436);function d(N){x.forEach(N.nodes(),function(D){T(N.node(D))}),x.forEach(N.edges(),function(D){T(N.edge(D))})}function T(N){var D=N.width;N.width=N.height,N.height=D}function v(N){N.y=-N.y}function C(N){var D=N.x;N.x=N.y,N.y=D}A.exports={adjust:function(N){var D=N.graph().rankdir.toLowerCase();D!=="lr"&&D!=="rl"||d(N)},undo:function(N){var D=N.graph().rankdir.toLowerCase();D!=="bt"&&D!=="rl"||function(Y){x.forEach(Y.nodes(),function(L){v(Y.node(L))}),x.forEach(Y.edges(),function(L){var j=Y.edge(L);x.forEach(j.points,v),x.has(j,"y")&&v(j)})}(N),D!=="lr"&&D!=="rl"||(function(Y){x.forEach(Y.nodes(),function(L){C(Y.node(L))}),x.forEach(Y.edges(),function(L){var j=Y.edge(L);x.forEach(j.points,C),x.has(j,"x")&&C(j)})}(N),d(N))}}},7822:A=>{function F(){var d={};d._next=d._prev=d,this._sentinel=d}function y(d){d._prev._next=d._next,d._next._prev=d._prev,delete d._next,delete d._prev}function x(d,T){if(d!=="_next"&&d!=="_prev")return T}A.exports=F,F.prototype.dequeue=function(){var d=this._sentinel,T=d._prev;if(T!==d)return y(T),T},F.prototype.enqueue=function(d){var T=this._sentinel;d._prev&&d._next&&y(d),d._next=T._next,T._next._prev=d,T._next=d,d._prev=T},F.prototype.toString=function(){for(var d=[],T=this._sentinel,v=T._prev;v!==T;)d.push(JSON.stringify(v,x)),v=v._prev;return"["+d.join(", ")+"]"}},7570:(A,F,y)=>{var x=y(8436),d=y(1138),T=y(574).Graph;A.exports={debugOrdering:function(v){var C=d.buildLayerMatrix(v),N=new T({compound:!0,multigraph:!0}).setGraph({});return x.forEach(v.nodes(),function(D){N.setNode(D,{label:D}),N.setParent(D,"layer"+v.node(D).rank)}),x.forEach(v.edges(),function(D){N.setEdge(D.v,D.w,{},D.name)}),x.forEach(C,function(D,Y){var L="layer"+Y;N.setNode(L,{rank:"same"}),x.reduce(D,function(j,V){return N.setEdge(j,V,{style:"invis"}),V})}),N}}},574:(A,F,y)=>{var x;try{x=y(8282)}catch{}x||(x=window.graphlib),A.exports=x},4079:(A,F,y)=>{var x=y(8436),d=y(574).Graph,T=y(7822);A.exports=function(D,Y){if(D.nodeCount()<=1)return[];var L=function(V,K){var tt=new d,dt=0,rt=0;x.forEach(V.nodes(),function(_t){tt.setNode(_t,{v:_t,in:0,out:0})}),x.forEach(V.edges(),function(_t){var Dt=tt.edge(_t.v,_t.w)||0,Xt=K(_t),jt=Dt+Xt;tt.setEdge(_t.v,_t.w,jt),rt=Math.max(rt,tt.node(_t.v).out+=Xt),dt=Math.max(dt,tt.node(_t.w).in+=Xt)});var Ot=x.range(rt+dt+3).map(function(){return new T}),ot=dt+1;return x.forEach(tt.nodes(),function(_t){N(Ot,ot,tt.node(_t))}),{graph:tt,buckets:Ot,zeroIdx:ot}}(D,Y||v),j=function(V,K,tt){for(var dt,rt=[],Ot=K[K.length-1],ot=K[0];V.nodeCount();){for(;dt=ot.dequeue();)C(V,K,tt,dt);for(;dt=Ot.dequeue();)C(V,K,tt,dt);if(V.nodeCount()){for(var _t=K.length-2;_t>0;--_t)if(dt=K[_t].dequeue()){rt=rt.concat(C(V,K,tt,dt,!0));break}}}return rt}(L.graph,L.buckets,L.zeroIdx);return x.flatten(x.map(j,function(V){return D.outEdges(V.v,V.w)}),!0)};var v=x.constant(1);function C(D,Y,L,j,V){var K=V?[]:void 0;return x.forEach(D.inEdges(j.v),function(tt){var dt=D.edge(tt),rt=D.node(tt.v);V&&K.push({v:tt.v,w:tt.w}),rt.out-=dt,N(Y,L,rt)}),x.forEach(D.outEdges(j.v),function(tt){var dt=D.edge(tt),rt=tt.w,Ot=D.node(rt);Ot.in-=dt,N(Y,L,Ot)}),D.removeNode(j.v),K}function N(D,Y,L){L.out?L.in?D[L.out-L.in+Y].enqueue(L):D[D.length-1].enqueue(L):D[0].enqueue(L)}},8123:(A,F,y)=>{var x=y(8436),d=y(2188),T=y(5995),v=y(8093),C=y(1138).normalizeRanks,N=y(4219),D=y(1138).removeEmptyRanks,Y=y(2981),L=y(1133),j=y(3258),V=y(3408),K=y(7873),tt=y(1138),dt=y(574).Graph;A.exports=function(Tt,Q){var lt=Q&&Q.debugTiming?tt.time:tt.notime;lt("layout",function(){var U=lt(" buildLayoutGraph",function(){return function(kt){var W=new dt({multigraph:!0,compound:!0}),At=Bt(kt.graph());return W.setGraph(x.merge({},Ot,Yt(At,rt),x.pick(At,ot))),x.forEach(kt.nodes(),function(Ft){var Ut=Bt(kt.node(Ft));W.setNode(Ft,x.defaults(Yt(Ut,_t),Dt)),W.setParent(Ft,kt.parent(Ft))}),x.forEach(kt.edges(),function(Ft){var Ut=Bt(kt.edge(Ft));W.setEdge(Ft,x.merge({},jt,Yt(Ut,Xt),x.pick(Ut,Nt)))}),W}(Tt)});lt(" runLayout",function(){(function(kt,W){W(" makeSpaceForEdgeLabels",function(){(function(At){var Ft=At.graph();Ft.ranksep/=2,x.forEach(At.edges(),function(Ut){var pe=At.edge(Ut);pe.minlen*=2,pe.labelpos.toLowerCase()!=="c"&&(Ft.rankdir==="TB"||Ft.rankdir==="BT"?pe.width+=pe.labeloffset:pe.height+=pe.labeloffset)})})(kt)}),W(" removeSelfEdges",function(){(function(At){x.forEach(At.edges(),function(Ft){if(Ft.v===Ft.w){var Ut=At.node(Ft.v);Ut.selfEdges||(Ut.selfEdges=[]),Ut.selfEdges.push({e:Ft,label:At.edge(Ft)}),At.removeEdge(Ft)}})})(kt)}),W(" acyclic",function(){d.run(kt)}),W(" nestingGraph.run",function(){Y.run(kt)}),W(" rank",function(){v(tt.asNonCompoundGraph(kt))}),W(" injectEdgeLabelProxies",function(){(function(At){x.forEach(At.edges(),function(Ft){var Ut=At.edge(Ft);if(Ut.width&&Ut.height){var pe=At.node(Ft.v),je={rank:(At.node(Ft.w).rank-pe.rank)/2+pe.rank,e:Ft};tt.addDummyNode(At,"edge-proxy",je,"_ep")}})})(kt)}),W(" removeEmptyRanks",function(){D(kt)}),W(" nestingGraph.cleanup",function(){Y.cleanup(kt)}),W(" normalizeRanks",function(){C(kt)}),W(" assignRankMinMax",function(){(function(At){var Ft=0;x.forEach(At.nodes(),function(Ut){var pe=At.node(Ut);pe.borderTop&&(pe.minRank=At.node(pe.borderTop).rank,pe.maxRank=At.node(pe.borderBottom).rank,Ft=x.max(Ft,pe.maxRank))}),At.graph().maxRank=Ft})(kt)}),W(" removeEdgeLabelProxies",function(){(function(At){x.forEach(At.nodes(),function(Ft){var Ut=At.node(Ft);Ut.dummy==="edge-proxy"&&(At.edge(Ut.e).labelRank=Ut.rank,At.removeNode(Ft))})})(kt)}),W(" normalize.run",function(){T.run(kt)}),W(" parentDummyChains",function(){N(kt)}),W(" addBorderSegments",function(){L(kt)}),W(" order",function(){V(kt)}),W(" insertSelfEdges",function(){(function(At){var Ft=tt.buildLayerMatrix(At);x.forEach(Ft,function(Ut){var pe=0;x.forEach(Ut,function(je,_e){var ue=At.node(je);ue.order=_e+pe,x.forEach(ue.selfEdges,function(de){tt.addDummyNode(At,"selfedge",{width:de.label.width,height:de.label.height,rank:ue.rank,order:_e+ ++pe,e:de.e,label:de.label},"_se")}),delete ue.selfEdges})})})(kt)}),W(" adjustCoordinateSystem",function(){j.adjust(kt)}),W(" position",function(){K(kt)}),W(" positionSelfEdges",function(){(function(At){x.forEach(At.nodes(),function(Ft){var Ut=At.node(Ft);if(Ut.dummy==="selfedge"){var pe=At.node(Ut.e.v),je=pe.x+pe.width/2,_e=pe.y,ue=Ut.x-je,de=pe.height/2;At.setEdge(Ut.e,Ut.label),At.removeNode(Ft),Ut.label.points=[{x:je+2*ue/3,y:_e-de},{x:je+5*ue/6,y:_e-de},{x:je+ue,y:_e},{x:je+5*ue/6,y:_e+de},{x:je+2*ue/3,y:_e+de}],Ut.label.x=Ut.x,Ut.label.y=Ut.y}})})(kt)}),W(" removeBorderNodes",function(){(function(At){x.forEach(At.nodes(),function(Ft){if(At.children(Ft).length){var Ut=At.node(Ft),pe=At.node(Ut.borderTop),je=At.node(Ut.borderBottom),_e=At.node(x.last(Ut.borderLeft)),ue=At.node(x.last(Ut.borderRight));Ut.width=Math.abs(ue.x-_e.x),Ut.height=Math.abs(je.y-pe.y),Ut.x=_e.x+Ut.width/2,Ut.y=pe.y+Ut.height/2}}),x.forEach(At.nodes(),function(Ft){At.node(Ft).dummy==="border"&&At.removeNode(Ft)})})(kt)}),W(" normalize.undo",function(){T.undo(kt)}),W(" fixupEdgeLabelCoords",function(){(function(At){x.forEach(At.edges(),function(Ft){var Ut=At.edge(Ft);if(x.has(Ut,"x"))switch(Ut.labelpos!=="l"&&Ut.labelpos!=="r"||(Ut.width-=Ut.labeloffset),Ut.labelpos){case"l":Ut.x-=Ut.width/2+Ut.labeloffset;break;case"r":Ut.x+=Ut.width/2+Ut.labeloffset}})})(kt)}),W(" undoCoordinateSystem",function(){j.undo(kt)}),W(" translateGraph",function(){(function(At){var Ft=Number.POSITIVE_INFINITY,Ut=0,pe=Number.POSITIVE_INFINITY,je=0,_e=At.graph(),ue=_e.marginx||0,de=_e.marginy||0;function Me(Se){var ge=Se.x,bn=Se.y,ye=Se.width,qe=Se.height;Ft=Math.min(Ft,ge-ye/2),Ut=Math.max(Ut,ge+ye/2),pe=Math.min(pe,bn-qe/2),je=Math.max(je,bn+qe/2)}x.forEach(At.nodes(),function(Se){Me(At.node(Se))}),x.forEach(At.edges(),function(Se){var ge=At.edge(Se);x.has(ge,"x")&&Me(ge)}),Ft-=ue,pe-=de,x.forEach(At.nodes(),function(Se){var ge=At.node(Se);ge.x-=Ft,ge.y-=pe}),x.forEach(At.edges(),function(Se){var ge=At.edge(Se);x.forEach(ge.points,function(bn){bn.x-=Ft,bn.y-=pe}),x.has(ge,"x")&&(ge.x-=Ft),x.has(ge,"y")&&(ge.y-=pe)}),_e.width=Ut-Ft+ue,_e.height=je-pe+de})(kt)}),W(" assignNodeIntersects",function(){(function(At){x.forEach(At.edges(),function(Ft){var Ut,pe,je=At.edge(Ft),_e=At.node(Ft.v),ue=At.node(Ft.w);je.points?(Ut=je.points[0],pe=je.points[je.points.length-1]):(je.points=[],Ut=ue,pe=_e),je.points.unshift(tt.intersectRect(_e,Ut)),je.points.push(tt.intersectRect(ue,pe))})})(kt)}),W(" reversePoints",function(){(function(At){x.forEach(At.edges(),function(Ft){var Ut=At.edge(Ft);Ut.reversed&&Ut.points.reverse()})})(kt)}),W(" acyclic.undo",function(){d.undo(kt)})})(U,lt)}),lt(" updateInputGraph",function(){(function(kt,W){x.forEach(kt.nodes(),function(At){var Ft=kt.node(At),Ut=W.node(At);Ft&&(Ft.x=Ut.x,Ft.y=Ut.y,W.children(At).length&&(Ft.width=Ut.width,Ft.height=Ut.height))}),x.forEach(kt.edges(),function(At){var Ft=kt.edge(At),Ut=W.edge(At);Ft.points=Ut.points,x.has(Ut,"x")&&(Ft.x=Ut.x,Ft.y=Ut.y)}),kt.graph().width=W.graph().width,kt.graph().height=W.graph().height})(Tt,U)})})};var rt=["nodesep","edgesep","ranksep","marginx","marginy"],Ot={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ot=["acyclicer","ranker","rankdir","align"],_t=["width","height"],Dt={width:0,height:0},Xt=["minlen","weight","width","height","labeloffset"],jt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Yt(Tt,Q){return x.mapValues(x.pick(Tt,Q),Number)}function Bt(Tt){var Q={};return x.forEach(Tt,function(lt,U){Q[U.toLowerCase()]=lt}),Q}},8436:(A,F,y)=>{var x;try{x={cloneDeep:y(361),constant:y(5703),defaults:y(1747),each:y(6073),filter:y(3105),find:y(3311),flatten:y(5564),forEach:y(4486),forIn:y(2620),has:y(8721),isUndefined:y(2353),last:y(928),map:y(5161),mapValues:y(6604),max:y(6162),merge:y(3857),min:y(3632),minBy:y(2762),now:y(7771),pick:y(9722),range:y(6026),reduce:y(4061),sortBy:y(9734),uniqueId:y(3955),values:y(2628),zipObject:y(7287)}}catch{}x||(x=window._),A.exports=x},2981:(A,F,y)=>{var x=y(8436),d=y(1138);function T(v,C,N,D,Y,L,j){var V=v.children(j);if(V.length){var K=d.addBorderNode(v,"_bt"),tt=d.addBorderNode(v,"_bb"),dt=v.node(j);v.setParent(K,j),dt.borderTop=K,v.setParent(tt,j),dt.borderBottom=tt,x.forEach(V,function(rt){T(v,C,N,D,Y,L,rt);var Ot=v.node(rt),ot=Ot.borderTop?Ot.borderTop:rt,_t=Ot.borderBottom?Ot.borderBottom:rt,Dt=Ot.borderTop?D:2*D,Xt=ot!==_t?1:Y-L[j]+1;v.setEdge(K,ot,{weight:Dt,minlen:Xt,nestingEdge:!0}),v.setEdge(_t,tt,{weight:Dt,minlen:Xt,nestingEdge:!0})}),v.parent(j)||v.setEdge(C,K,{weight:0,minlen:Y+L[j]})}else j!==C&&v.setEdge(C,j,{weight:0,minlen:N})}A.exports={run:function(v){var C=d.addDummyNode(v,"root",{},"_root"),N=function(j){var V={};function K(tt,dt){var rt=j.children(tt);rt&&rt.length&&x.forEach(rt,function(Ot){K(Ot,dt+1)}),V[tt]=dt}return x.forEach(j.children(),function(tt){K(tt,1)}),V}(v),D=x.max(x.values(N))-1,Y=2*D+1;v.graph().nestingRoot=C,x.forEach(v.edges(),function(j){v.edge(j).minlen*=Y});var L=function(j){return x.reduce(j.edges(),function(V,K){return V+j.edge(K).weight},0)}(v)+1;x.forEach(v.children(),function(j){T(v,C,Y,L,D,N,j)}),v.graph().nodeRankFactor=Y},cleanup:function(v){var C=v.graph();v.removeNode(C.nestingRoot),delete C.nestingRoot,x.forEach(v.edges(),function(N){v.edge(N).nestingEdge&&v.removeEdge(N)})}}},5995:(A,F,y)=>{var x=y(8436),d=y(1138);A.exports={run:function(T){T.graph().dummyChains=[],x.forEach(T.edges(),function(v){(function(C,N){var D,Y,L,j=N.v,V=C.node(j).rank,K=N.w,tt=C.node(K).rank,dt=N.name,rt=C.edge(N),Ot=rt.labelRank;if(tt!==V+1){for(C.removeEdge(N),L=0,++V;V{var x=y(8436);A.exports=function(d,T,v){var C,N={};x.forEach(v,function(D){for(var Y,L,j=d.parent(D);j;){if((Y=d.parent(j))?(L=N[Y],N[Y]=j):(L=C,C=j),L&&L!==j)return void T.setEdge(L,j);j=Y}})}},5439:(A,F,y)=>{var x=y(8436);A.exports=function(d,T){return x.map(T,function(v){var C=d.inEdges(v);if(C.length){var N=x.reduce(C,function(D,Y){var L=d.edge(Y),j=d.node(Y.v);return{sum:D.sum+L.weight*j.order,weight:D.weight+L.weight}},{sum:0,weight:0});return{v,barycenter:N.sum/N.weight,weight:N.weight}}return{v}})}},3128:(A,F,y)=>{var x=y(8436),d=y(574).Graph;A.exports=function(T,v,C){var N=function(Y){for(var L;Y.hasNode(L=x.uniqueId("_root")););return L}(T),D=new d({compound:!0}).setGraph({root:N}).setDefaultNodeLabel(function(Y){return T.node(Y)});return x.forEach(T.nodes(),function(Y){var L=T.node(Y),j=T.parent(Y);(L.rank===v||L.minRank<=v&&v<=L.maxRank)&&(D.setNode(Y),D.setParent(Y,j||N),x.forEach(T[C](Y),function(V){var K=V.v===Y?V.w:V.v,tt=D.edge(K,Y),dt=x.isUndefined(tt)?0:tt.weight;D.setEdge(K,Y,{weight:T.edge(V).weight+dt})}),x.has(L,"minRank")&&D.setNode(Y,{borderLeft:L.borderLeft[v],borderRight:L.borderRight[v]}))}),D}},6630:(A,F,y)=>{var x=y(8436);function d(T,v,C){for(var N=x.zipObject(C,x.map(C,function(K,tt){return tt})),D=x.flatten(x.map(v,function(K){return x.sortBy(x.map(T.outEdges(K),function(tt){return{pos:N[tt.w],weight:T.edge(tt).weight}}),"pos")}),!0),Y=1;Y0;)tt%2&&(dt+=j[tt+1]),j[tt=tt-1>>1]+=K.weight;V+=K.weight*dt})),V}A.exports=function(T,v){for(var C=0,N=1;N{var x=y(8436),d=y(2588),T=y(6630),v=y(1026),C=y(3128),N=y(5093),D=y(574).Graph,Y=y(1138);function L(K,tt,dt){return x.map(tt,function(rt){return C(K,rt,dt)})}function j(K,tt){var dt=new D;x.forEach(K,function(rt){var Ot=rt.graph().root,ot=v(rt,Ot,dt,tt);x.forEach(ot.vs,function(_t,Dt){rt.node(_t).order=Dt}),N(rt,dt,ot.vs)})}function V(K,tt){x.forEach(tt,function(dt){x.forEach(dt,function(rt,Ot){K.node(rt).order=Ot})})}A.exports=function(K){var tt=Y.maxRank(K),dt=L(K,x.range(1,tt+1),"inEdges"),rt=L(K,x.range(tt-1,-1,-1),"outEdges"),Ot=d(K);V(K,Ot);for(var ot,_t=Number.POSITIVE_INFINITY,Dt=0,Xt=0;Xt<4;++Dt,++Xt){j(Dt%2?dt:rt,Dt%4>=2),Ot=Y.buildLayerMatrix(K);var jt=T(K,Ot);jt<_t&&(Xt=0,ot=x.cloneDeep(Ot),_t=jt)}V(K,ot)}},2588:(A,F,y)=>{var x=y(8436);A.exports=function(d){var T={},v=x.filter(d.nodes(),function(Y){return!d.children(Y).length}),C=x.max(x.map(v,function(Y){return d.node(Y).rank})),N=x.map(x.range(C+1),function(){return[]}),D=x.sortBy(v,function(Y){return d.node(Y).rank});return x.forEach(D,function Y(L){if(!x.has(T,L)){T[L]=!0;var j=d.node(L);N[j.rank].push(L),x.forEach(d.successors(L),Y)}}),N}},9567:(A,F,y)=>{var x=y(8436);A.exports=function(d,T){var v={};return x.forEach(d,function(C,N){var D=v[C.v]={indegree:0,in:[],out:[],vs:[C.v],i:N};x.isUndefined(C.barycenter)||(D.barycenter=C.barycenter,D.weight=C.weight)}),x.forEach(T.edges(),function(C){var N=v[C.v],D=v[C.w];x.isUndefined(N)||x.isUndefined(D)||(D.indegree++,N.out.push(v[C.w]))}),function(C){var N=[];function D(j){return function(V){var K,tt,dt,rt;V.merged||(x.isUndefined(V.barycenter)||x.isUndefined(j.barycenter)||V.barycenter>=j.barycenter)&&(tt=V,dt=0,rt=0,(K=j).weight&&(dt+=K.barycenter*K.weight,rt+=K.weight),tt.weight&&(dt+=tt.barycenter*tt.weight,rt+=tt.weight),K.vs=tt.vs.concat(K.vs),K.barycenter=dt/rt,K.weight=rt,K.i=Math.min(tt.i,K.i),tt.merged=!0)}}function Y(j){return function(V){V.in.push(j),--V.indegree==0&&C.push(V)}}for(;C.length;){var L=C.pop();N.push(L),x.forEach(L.in.reverse(),D(L)),x.forEach(L.out,Y(L))}return x.map(x.filter(N,function(j){return!j.merged}),function(j){return x.pick(j,["vs","i","barycenter","weight"])})}(x.filter(v,function(C){return!C.indegree}))}},1026:(A,F,y)=>{var x=y(8436),d=y(5439),T=y(9567),v=y(7304);A.exports=function C(N,D,Y,L){var j=N.children(D),V=N.node(D),K=V?V.borderLeft:void 0,tt=V?V.borderRight:void 0,dt={};K&&(j=x.filter(j,function(Xt){return Xt!==K&&Xt!==tt}));var rt=d(N,j);x.forEach(rt,function(Xt){if(N.children(Xt.v).length){var jt=C(N,Xt.v,Y,L);dt[Xt.v]=jt,x.has(jt,"barycenter")&&(Nt=Xt,Yt=jt,x.isUndefined(Nt.barycenter)?(Nt.barycenter=Yt.barycenter,Nt.weight=Yt.weight):(Nt.barycenter=(Nt.barycenter*Nt.weight+Yt.barycenter*Yt.weight)/(Nt.weight+Yt.weight),Nt.weight+=Yt.weight))}var Nt,Yt});var Ot=T(rt,Y);(function(Xt,jt){x.forEach(Xt,function(Nt){Nt.vs=x.flatten(Nt.vs.map(function(Yt){return jt[Yt]?jt[Yt].vs:Yt}),!0)})})(Ot,dt);var ot=v(Ot,L);if(K&&(ot.vs=x.flatten([K,ot.vs,tt],!0),N.predecessors(K).length)){var _t=N.node(N.predecessors(K)[0]),Dt=N.node(N.predecessors(tt)[0]);x.has(ot,"barycenter")||(ot.barycenter=0,ot.weight=0),ot.barycenter=(ot.barycenter*ot.weight+_t.order+Dt.order)/(ot.weight+2),ot.weight+=2}return ot}},7304:(A,F,y)=>{var x=y(8436),d=y(1138);function T(v,C,N){for(var D;C.length&&(D=x.last(C)).i<=N;)C.pop(),v.push(D.vs),N++;return N}A.exports=function(v,C){var N,D=d.partition(v,function(rt){return x.has(rt,"barycenter")}),Y=D.lhs,L=x.sortBy(D.rhs,function(rt){return-rt.i}),j=[],V=0,K=0,tt=0;Y.sort((N=!!C,function(rt,Ot){return rt.barycenterOt.barycenter?1:N?Ot.i-rt.i:rt.i-Ot.i})),tt=T(j,L,tt),x.forEach(Y,function(rt){tt+=rt.vs.length,j.push(rt.vs),V+=rt.barycenter*rt.weight,K+=rt.weight,tt=T(j,L,tt)});var dt={vs:x.flatten(j,!0)};return K&&(dt.barycenter=V/K,dt.weight=K),dt}},4219:(A,F,y)=>{var x=y(8436);A.exports=function(d){var T=function(v){var C={},N=0;return x.forEach(v.children(),function D(Y){var L=N;x.forEach(v.children(Y),D),C[Y]={low:L,lim:N++}}),C}(d);x.forEach(d.graph().dummyChains,function(v){for(var C=d.node(v),N=C.edgeObj,D=function(tt,dt,rt,Ot){var ot,_t,Dt=[],Xt=[],jt=Math.min(dt[rt].low,dt[Ot].low),Nt=Math.max(dt[rt].lim,dt[Ot].lim);ot=rt;do ot=tt.parent(ot),Dt.push(ot);while(ot&&(dt[ot].low>jt||Nt>dt[ot].lim));for(_t=ot,ot=Ot;(ot=tt.parent(ot))!==_t;)Xt.push(ot);return{path:Dt.concat(Xt.reverse()),lca:_t}}(d,T,N.v,N.w),Y=D.path,L=D.lca,j=0,V=Y[j],K=!0;v!==N.w;){if(C=d.node(v),K){for(;(V=Y[j])!==L&&d.node(V).maxRank{var x=y(8436),d=y(574).Graph,T=y(1138);function v(tt,dt){var rt={};return x.reduce(dt,function(Ot,ot){var _t=0,Dt=0,Xt=Ot.length,jt=x.last(ot);return x.forEach(ot,function(Nt,Yt){var Bt=function(Q,lt){if(Q.node(lt).dummy)return x.find(Q.predecessors(lt),function(U){return Q.node(U).dummy})}(tt,Nt),Tt=Bt?tt.node(Bt).order:Xt;(Bt||Nt===jt)&&(x.forEach(ot.slice(Dt,Yt+1),function(Q){x.forEach(tt.predecessors(Q),function(lt){var U=tt.node(lt),kt=U.order;!(kt<_t||Ttjt)&&N(rt,Bt,Nt)})})}return x.reduce(dt,function(ot,_t){var Dt,Xt=-1,jt=0;return x.forEach(_t,function(Nt,Yt){if(tt.node(Nt).dummy==="border"){var Bt=tt.predecessors(Nt);Bt.length&&(Dt=tt.node(Bt[0]).order,Ot(_t,jt,Yt,Xt,Dt),jt=Yt,Xt=Dt)}Ot(_t,jt,_t.length,Dt,ot.length)}),_t}),rt}function N(tt,dt,rt){if(dt>rt){var Ot=dt;dt=rt,rt=Ot}var ot=tt[dt];ot||(tt[dt]=ot={}),ot[rt]=!0}function D(tt,dt,rt){if(dt>rt){var Ot=dt;dt=rt,rt=Ot}return x.has(tt[dt],rt)}function Y(tt,dt,rt,Ot){var ot={},_t={},Dt={};return x.forEach(dt,function(Xt){x.forEach(Xt,function(jt,Nt){ot[jt]=jt,_t[jt]=jt,Dt[jt]=Nt})}),x.forEach(dt,function(Xt){var jt=-1;x.forEach(Xt,function(Nt){var Yt=Ot(Nt);if(Yt.length){Yt=x.sortBy(Yt,function(U){return Dt[U]});for(var Bt=(Yt.length-1)/2,Tt=Math.floor(Bt),Q=Math.ceil(Bt);Tt<=Q;++Tt){var lt=Yt[Tt];_t[Nt]===Nt&&jt{var x=y(8436),d=y(1138),T=y(3573).positionX;A.exports=function(v){(function(C){var N=d.buildLayerMatrix(C),D=C.graph().ranksep,Y=0;x.forEach(N,function(L){var j=x.max(x.map(L,function(V){return C.node(V).height}));x.forEach(L,function(V){C.node(V).y=Y+j/2}),Y+=j+D})})(v=d.asNonCompoundGraph(v)),x.forEach(T(v),function(C,N){v.node(N).x=C})}},300:(A,F,y)=>{var x=y(8436),d=y(574).Graph,T=y(6681).slack;function v(D,Y){return x.forEach(D.nodes(),function L(j){x.forEach(Y.nodeEdges(j),function(V){var K=V.v,tt=j===K?V.w:K;D.hasNode(tt)||T(Y,V)||(D.setNode(tt,{}),D.setEdge(j,tt,{}),L(tt))})}),D.nodeCount()}function C(D,Y){return x.minBy(Y.edges(),function(L){if(D.hasNode(L.v)!==D.hasNode(L.w))return T(Y,L)})}function N(D,Y,L){x.forEach(D.nodes(),function(j){Y.node(j).rank+=L})}A.exports=function(D){var Y,L,j=new d({directed:!1}),V=D.nodes()[0],K=D.nodeCount();for(j.setNode(V,{});v(j,D){var x=y(6681).longestPath,d=y(300),T=y(2472);A.exports=function(C){switch(C.graph().ranker){case"network-simplex":default:(function(N){T(N)})(C);break;case"tight-tree":(function(N){x(N),d(N)})(C);break;case"longest-path":v(C)}};var v=x},2472:(A,F,y)=>{var x=y(8436),d=y(300),T=y(6681).slack,v=y(6681).longestPath,C=y(574).alg.preorder,N=y(574).alg.postorder,D=y(1138).simplify;function Y(ot){ot=D(ot),v(ot);var _t,Dt=d(ot);for(V(Dt),L(Dt,ot);_t=tt(Dt);)rt(Dt,ot,_t,dt(Dt,ot,_t))}function L(ot,_t){var Dt=N(ot,ot.nodes());Dt=Dt.slice(0,Dt.length-1),x.forEach(Dt,function(Xt){(function(jt,Nt,Yt){var Bt=jt.node(Yt).parent;jt.edge(Yt,Bt).cutvalue=j(jt,Nt,Yt)})(ot,_t,Xt)})}function j(ot,_t,Dt){var Xt=ot.node(Dt).parent,jt=!0,Nt=_t.edge(Dt,Xt),Yt=0;return Nt||(jt=!1,Nt=_t.edge(Xt,Dt)),Yt=Nt.weight,x.forEach(_t.nodeEdges(Dt),function(Bt){var Tt,Q,lt=Bt.v===Dt,U=lt?Bt.w:Bt.v;if(U!==Xt){var kt=lt===jt,W=_t.edge(Bt).weight;if(Yt+=kt?W:-W,Tt=Dt,Q=U,ot.hasEdge(Tt,Q)){var At=ot.edge(Dt,U).cutvalue;Yt+=kt?-At:At}}}),Yt}function V(ot,_t){arguments.length<2&&(_t=ot.nodes()[0]),K(ot,{},1,_t)}function K(ot,_t,Dt,Xt,jt){var Nt=Dt,Yt=ot.node(Xt);return _t[Xt]=!0,x.forEach(ot.neighbors(Xt),function(Bt){x.has(_t,Bt)||(Dt=K(ot,_t,Dt,Bt,Xt))}),Yt.low=Nt,Yt.lim=Dt++,jt?Yt.parent=jt:delete Yt.parent,Dt}function tt(ot){return x.find(ot.edges(),function(_t){return ot.edge(_t).cutvalue<0})}function dt(ot,_t,Dt){var Xt=Dt.v,jt=Dt.w;_t.hasEdge(Xt,jt)||(Xt=Dt.w,jt=Dt.v);var Nt=ot.node(Xt),Yt=ot.node(jt),Bt=Nt,Tt=!1;Nt.lim>Yt.lim&&(Bt=Yt,Tt=!0);var Q=x.filter(_t.edges(),function(lt){return Tt===Ot(0,ot.node(lt.v),Bt)&&Tt!==Ot(0,ot.node(lt.w),Bt)});return x.minBy(Q,function(lt){return T(_t,lt)})}function rt(ot,_t,Dt,Xt){var jt=Dt.v,Nt=Dt.w;ot.removeEdge(jt,Nt),ot.setEdge(Xt.v,Xt.w,{}),V(ot),L(ot,_t),function(Yt,Bt){var Tt=x.find(Yt.nodes(),function(lt){return!Bt.node(lt).parent}),Q=C(Yt,Tt);Q=Q.slice(1),x.forEach(Q,function(lt){var U=Yt.node(lt).parent,kt=Bt.edge(lt,U),W=!1;kt||(kt=Bt.edge(U,lt),W=!0),Bt.node(lt).rank=Bt.node(U).rank+(W?kt.minlen:-kt.minlen)})}(ot,_t)}function Ot(ot,_t,Dt){return Dt.low<=_t.lim&&_t.lim<=Dt.lim}A.exports=Y,Y.initLowLimValues=V,Y.initCutValues=L,Y.calcCutValue=j,Y.leaveEdge=tt,Y.enterEdge=dt,Y.exchangeEdges=rt},6681:(A,F,y)=>{var x=y(8436);A.exports={longestPath:function(d){var T={};x.forEach(d.sources(),function v(C){var N=d.node(C);if(x.has(T,C))return N.rank;T[C]=!0;var D=x.min(x.map(d.outEdges(C),function(Y){return v(Y.w)-d.edge(Y).minlen}));return D!==Number.POSITIVE_INFINITY&&D!=null||(D=0),N.rank=D})},slack:function(d,T){return d.node(T.w).rank-d.node(T.v).rank-d.edge(T).minlen}}},1138:(A,F,y)=>{var x=y(8436),d=y(574).Graph;function T(C,N,D,Y){var L;do L=x.uniqueId(Y);while(C.hasNode(L));return D.dummy=N,C.setNode(L,D),L}function v(C){return x.max(x.map(C.nodes(),function(N){var D=C.node(N).rank;if(!x.isUndefined(D))return D}))}A.exports={addDummyNode:T,simplify:function(C){var N=new d().setGraph(C.graph());return x.forEach(C.nodes(),function(D){N.setNode(D,C.node(D))}),x.forEach(C.edges(),function(D){var Y=N.edge(D.v,D.w)||{weight:0,minlen:1},L=C.edge(D);N.setEdge(D.v,D.w,{weight:Y.weight+L.weight,minlen:Math.max(Y.minlen,L.minlen)})}),N},asNonCompoundGraph:function(C){var N=new d({multigraph:C.isMultigraph()}).setGraph(C.graph());return x.forEach(C.nodes(),function(D){C.children(D).length||N.setNode(D,C.node(D))}),x.forEach(C.edges(),function(D){N.setEdge(D,C.edge(D))}),N},successorWeights:function(C){var N=x.map(C.nodes(),function(D){var Y={};return x.forEach(C.outEdges(D),function(L){Y[L.w]=(Y[L.w]||0)+C.edge(L).weight}),Y});return x.zipObject(C.nodes(),N)},predecessorWeights:function(C){var N=x.map(C.nodes(),function(D){var Y={};return x.forEach(C.inEdges(D),function(L){Y[L.v]=(Y[L.v]||0)+C.edge(L).weight}),Y});return x.zipObject(C.nodes(),N)},intersectRect:function(C,N){var D,Y,L=C.x,j=C.y,V=N.x-L,K=N.y-j,tt=C.width/2,dt=C.height/2;if(!V&&!K)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(K)*tt>Math.abs(V)*dt?(K<0&&(dt=-dt),D=dt*V/K,Y=dt):(V<0&&(tt=-tt),D=tt,Y=tt*K/V),{x:L+D,y:j+Y}},buildLayerMatrix:function(C){var N=x.map(x.range(v(C)+1),function(){return[]});return x.forEach(C.nodes(),function(D){var Y=C.node(D),L=Y.rank;x.isUndefined(L)||(N[L][Y.order]=D)}),N},normalizeRanks:function(C){var N=x.min(x.map(C.nodes(),function(D){return C.node(D).rank}));x.forEach(C.nodes(),function(D){var Y=C.node(D);x.has(Y,"rank")&&(Y.rank-=N)})},removeEmptyRanks:function(C){var N=x.min(x.map(C.nodes(),function(j){return C.node(j).rank})),D=[];x.forEach(C.nodes(),function(j){var V=C.node(j).rank-N;D[V]||(D[V]=[]),D[V].push(j)});var Y=0,L=C.graph().nodeRankFactor;x.forEach(D,function(j,V){x.isUndefined(j)&&V%L!=0?--Y:Y&&x.forEach(j,function(K){C.node(K).rank+=Y})})},addBorderNode:function(C,N,D,Y){var L={width:0,height:0};return arguments.length>=4&&(L.rank=D,L.order=Y),T(C,"border",L,N)},maxRank:v,partition:function(C,N){var D={lhs:[],rhs:[]};return x.forEach(C,function(Y){N(Y)?D.lhs.push(Y):D.rhs.push(Y)}),D},time:function(C,N){var D=x.now();try{return N()}finally{console.log(C+" time: "+(x.now()-D)+"ms")}},notime:function(C,N){return N()}}},8177:A=>{A.exports="0.8.5"},7856:function(A){A.exports=function(){function F(nt){return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},F(nt)}function y(nt,ke){return y=Object.setPrototypeOf||function(ee,me){return ee.__proto__=me,ee},y(nt,ke)}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(nt,ke,ee){return d=x()?Reflect.construct:function(me,Re,Le){var an=[null];an.push.apply(an,Re);var Ae=new(Function.bind.apply(me,an));return Le&&y(Ae,Le.prototype),Ae},d.apply(null,arguments)}function T(nt){return function(ke){if(Array.isArray(ke))return v(ke)}(nt)||function(ke){if(typeof Symbol!="undefined"&&ke[Symbol.iterator]!=null||ke["@@iterator"]!=null)return Array.from(ke)}(nt)||function(ke,ee){if(ke){if(typeof ke=="string")return v(ke,ee);var me=Object.prototype.toString.call(ke).slice(8,-1);return me==="Object"&&ke.constructor&&(me=ke.constructor.name),me==="Map"||me==="Set"?Array.from(ke):me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me)?v(ke,ee):void 0}}(nt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(nt,ke){(ke==null||ke>nt.length)&&(ke=nt.length);for(var ee=0,me=new Array(ke);ee1?ee-1:0),Re=1;Re/gm),qe=V(/^data-[\-\w.\u00B7-\uFFFF]/),It=V(/^aria-[\-\w]+$/),se=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=V(/^(?:\w+script|data):/i),Ct=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ee=V(/^html$/i),X=function(){return typeof window=="undefined"?null:window},Ce=function(nt,ke){if(F(nt)!=="object"||typeof nt.createPolicy!="function")return null;var ee=null,me="data-tt-policy-suffix";ke.currentScript&&ke.currentScript.hasAttribute(me)&&(ee=ke.currentScript.getAttribute(me));var Re="dompurify"+(ee?"#"+ee:"");try{return nt.createPolicy(Re,{createHTML:function(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+Re+" could not be created."),null}};return function nt(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X(),ee=function(Ht){return nt(Ht)};if(ee.version="2.3.8",ee.removed=[],!ke||!ke.document||ke.document.nodeType!==9)return ee.isSupported=!1,ee;var me=ke.document,Re=ke.document,Le=ke.DocumentFragment,an=ke.HTMLTemplateElement,Ae=ke.Node,Ve=ke.Element,Ke=ke.NodeFilter,en=ke.NamedNodeMap,Ne=en===void 0?ke.NamedNodeMap||ke.MozNamedAttrMap:en,ln=ke.HTMLFormElement,dn=ke.DOMParser,Ue=ke.trustedTypes,Pe=Ve.prototype,Ie=W(Pe,"cloneNode"),Xe=W(Pe,"nextSibling"),jn=W(Pe,"childNodes"),Lt=W(Pe,"parentNode");if(typeof an=="function"){var An=Re.createElement("template");An.content&&An.content.ownerDocument&&(Re=An.content.ownerDocument)}var Pt=Ce(Ue,me),hn=Pt?Pt.createHTML(""):"",Mn=Re,on=Mn.implementation,qn=Mn.createNodeIterator,Qn=Mn.createDocumentFragment,Pr=Mn.getElementsByTagName,kn=me.importNode,Yn={};try{Yn=kt(Re).documentMode?Re.documentMode:{}}catch{}var Ln={};ee.isSupported=typeof Lt=="function"&&on&&on.createHTMLDocument!==void 0&&Yn!==9;var Nn,Fn,Pn=bn,Tn=ye,Wn=qe,xn=It,Cn=ne,$n=Ct,oa=se,fr=null,Ti=U({},[].concat(T(At),T(Ft),T(Ut),T(je),T(ue))),pn=null,mi=U({},[].concat(T(de),T(Me),T(Se),T(ge))),br=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}})),yr=null,ai=null,ei=!0,hi=!0,Zr=!1,fi=!1,Qr=!1,dr=!1,Jr=!1,oi=!1,si=!1,vi=!1,to=!0,Tr=!0,Ma=!1,sa={},Yi=null,gn=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Jn=null,De=U({},["audio","video","img","source","image","track"]),We=null,_r=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",ba="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml",Kr=Kt,Mo=!1,Ls=["application/xhtml+xml","text/html"],mc="text/html",_a=null,Hn=Re.createElement("form"),Yr=function(Ht){return Ht instanceof RegExp||Ht instanceof Function},Ei=function(Ht){_a&&_a===Ht||(Ht&&F(Ht)==="object"||(Ht={}),Ht=kt(Ht),fr="ALLOWED_TAGS"in Ht?U({},Ht.ALLOWED_TAGS):Ti,pn="ALLOWED_ATTR"in Ht?U({},Ht.ALLOWED_ATTR):mi,We="ADD_URI_SAFE_ATTR"in Ht?U(kt(_r),Ht.ADD_URI_SAFE_ATTR):_r,Jn="ADD_DATA_URI_TAGS"in Ht?U(kt(De),Ht.ADD_DATA_URI_TAGS):De,Yi="FORBID_CONTENTS"in Ht?U({},Ht.FORBID_CONTENTS):gn,yr="FORBID_TAGS"in Ht?U({},Ht.FORBID_TAGS):{},ai="FORBID_ATTR"in Ht?U({},Ht.FORBID_ATTR):{},sa="USE_PROFILES"in Ht&&Ht.USE_PROFILES,ei=Ht.ALLOW_ARIA_ATTR!==!1,hi=Ht.ALLOW_DATA_ATTR!==!1,Zr=Ht.ALLOW_UNKNOWN_PROTOCOLS||!1,fi=Ht.SAFE_FOR_TEMPLATES||!1,Qr=Ht.WHOLE_DOCUMENT||!1,oi=Ht.RETURN_DOM||!1,si=Ht.RETURN_DOM_FRAGMENT||!1,vi=Ht.RETURN_TRUSTED_TYPE||!1,Jr=Ht.FORCE_BODY||!1,to=Ht.SANITIZE_DOM!==!1,Tr=Ht.KEEP_CONTENT!==!1,Ma=Ht.IN_PLACE||!1,oa=Ht.ALLOWED_URI_REGEXP||oa,Kr=Ht.NAMESPACE||Kt,Ht.CUSTOM_ELEMENT_HANDLING&&Yr(Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(br.tagNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&Yr(Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(br.attributeNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&typeof Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(br.allowCustomizedBuiltInElements=Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nn=Nn=Ls.indexOf(Ht.PARSER_MEDIA_TYPE)===-1?mc:Ht.PARSER_MEDIA_TYPE,Fn=Nn==="application/xhtml+xml"?function(un){return un}:Xt,fi&&(hi=!1),si&&(oi=!0),sa&&(fr=U({},T(ue)),pn=[],sa.html===!0&&(U(fr,At),U(pn,de)),sa.svg===!0&&(U(fr,Ft),U(pn,Me),U(pn,ge)),sa.svgFilters===!0&&(U(fr,Ut),U(pn,Me),U(pn,ge)),sa.mathMl===!0&&(U(fr,je),U(pn,Se),U(pn,ge))),Ht.ADD_TAGS&&(fr===Ti&&(fr=kt(fr)),U(fr,Ht.ADD_TAGS)),Ht.ADD_ATTR&&(pn===mi&&(pn=kt(pn)),U(pn,Ht.ADD_ATTR)),Ht.ADD_URI_SAFE_ATTR&&U(We,Ht.ADD_URI_SAFE_ATTR),Ht.FORBID_CONTENTS&&(Yi===gn&&(Yi=kt(Yi)),U(Yi,Ht.FORBID_CONTENTS)),Tr&&(fr["#text"]=!0),Qr&&U(fr,["html","head","body"]),fr.table&&(U(fr,["tbody"]),delete yr.tbody),j&&j(Ht),_a=Ht)},zr=U({},["mi","mo","mn","ms","mtext"]),Di=U({},["foreignobject","desc","title","annotation-xml"]),Gi=U({},["title","style","font","a","script"]),Oi=U({},Ft);U(Oi,Ut),U(Oi,pe);var Nr=U({},je);U(Nr,_e);var ci=function(Ht){var un=Lt(Ht);un&&un.tagName||(un={namespaceURI:Kt,tagName:"template"});var Qe=Xt(Ht.tagName),Kn=Xt(un.tagName);return Ht.namespaceURI===ba?un.namespaceURI===Kt?Qe==="svg":un.namespaceURI===qt?Qe==="svg"&&(Kn==="annotation-xml"||zr[Kn]):Boolean(Oi[Qe]):Ht.namespaceURI===qt?un.namespaceURI===Kt?Qe==="math":un.namespaceURI===ba?Qe==="math"&&Di[Kn]:Boolean(Nr[Qe]):Ht.namespaceURI===Kt&&!(un.namespaceURI===ba&&!Di[Kn])&&!(un.namespaceURI===qt&&!zr[Kn])&&!Nr[Qe]&&(Gi[Qe]||!Oi[Qe])},ni=function(Ht){Dt(ee.removed,{element:Ht});try{Ht.parentNode.removeChild(Ht)}catch{try{Ht.outerHTML=hn}catch{Ht.remove()}}},jr=function(Ht,un){try{Dt(ee.removed,{attribute:un.getAttributeNode(Ht),from:un})}catch{Dt(ee.removed,{attribute:null,from:un})}if(un.removeAttribute(Ht),Ht==="is"&&!pn[Ht])if(oi||si)try{ni(un)}catch{}else try{un.setAttribute(Ht,"")}catch{}},ca=function(Ht){var un,Qe;if(Jr)Ht=""+Ht;else{var Kn=jt(Ht,/^[\r\n\t ]+/);Qe=Kn&&Kn[0]}Nn==="application/xhtml+xml"&&(Ht=''+Ht+"");var Ur=Pt?Pt.createHTML(Ht):Ht;if(Kr===Kt)try{un=new dn().parseFromString(Ur,Nn)}catch{}if(!un||!un.documentElement){un=on.createDocument(Kr,"template",null);try{un.documentElement.innerHTML=Mo?"":Ur}catch{}}var qr=un.body||un.documentElement;return Ht&&Qe&&qr.insertBefore(Re.createTextNode(Qe),qr.childNodes[0]||null),Kr===Kt?Pr.call(un,Qr?"html":"body")[0]:Qr?un.documentElement:qr},Xi=function(Ht){return qn.call(Ht.ownerDocument||Ht,Ht,Ke.SHOW_ELEMENT|Ke.SHOW_COMMENT|Ke.SHOW_TEXT,null,!1)},Ci=function(Ht){return Ht instanceof ln&&(typeof Ht.nodeName!="string"||typeof Ht.textContent!="string"||typeof Ht.removeChild!="function"||!(Ht.attributes instanceof Ne)||typeof Ht.removeAttribute!="function"||typeof Ht.setAttribute!="function"||typeof Ht.namespaceURI!="string"||typeof Ht.insertBefore!="function")},xa=function(Ht){return F(Ae)==="object"?Ht instanceof Ae:Ht&&F(Ht)==="object"&&typeof Ht.nodeType=="number"&&typeof Ht.nodeName=="string"},Gr=function(Ht,un,Qe){Ln[Ht]&&ot(Ln[Ht],function(Kn){Kn.call(ee,un,Qe,_a)})},li=function(Ht){var un;if(Gr("beforeSanitizeElements",Ht,null),Ci(Ht)||Tt(/[\u0080-\uFFFF]/,Ht.nodeName))return ni(Ht),!0;var Qe=Fn(Ht.nodeName);if(Gr("uponSanitizeElement",Ht,{tagName:Qe,allowedTags:fr}),Ht.hasChildNodes()&&!xa(Ht.firstElementChild)&&(!xa(Ht.content)||!xa(Ht.content.firstElementChild))&&Tt(/<[/\w]/g,Ht.innerHTML)&&Tt(/<[/\w]/g,Ht.textContent)||Qe==="select"&&Tt(/