Files
mermaid-live-editor/_app/immutable/chunks/util-a05fa234.js
T
2022-06-16 05:47:06 +00:00

1245 lines
1.2 MiB
Plaintext

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;Lt<jn.length;Lt++)if((Ie=this._input.match(this.rules[jn[Lt]]))&&(!Pe||Ie[0].length>Pe[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;X<Ee.length;X++)if((ne=this._input.match(this.rules[Ee[X]]))&&(!se||ne[0].length>se[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;At<W.length;At++)if((U=this._input.match(this.rules[W[At]]))&&(!lt||U[0].length>lt[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;W<kt.length;W++)if((lt=this._input.match(this.rules[kt[W]]))&&(!Q||lt[0].length>Q[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;U<lt.length;U++)if((Tt=this._input.match(this.rules[lt[U]]))&&(!Bt||Tt[0].length>Bt[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;K<V.length;K++)if((L=this._input.match(this.rules[V[K]]))&&(!Y||L[0].length>Y[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;kt<U.length;kt++)if((Q=this._input.match(this.rules[U[kt]]))&&(!Tt||Q[0].length>Tt[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;X<Ee.length;X++)if((ne=this._input.match(this.rules[Ee[X]]))&&(!se||ne[0].length>se[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;X<Ee.length;X++)if((ne=this._input.match(this.rules[Ee[X]]))&&(!se||ne[0].length>se[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;ge<Se.length;ge++)if((de=this._input.match(this.rules[Se[ge]]))&&(!ue||de[0].length>ue[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,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,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<jt.length;Nt++)if((Dt=this._input.match(this.rules[jt[Nt]]))&&(!_t||Dt[0].length>_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===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 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;p<b;++p)(u=e[p])?(u.__data__=h[p],a[p]=u):r[p]=new kt(t,h[p]);for(;p<_;++p)(u=e[p])&&(s[p]=u)}function Ft(t,e,r,a,s,h,u){var p,_,b,M=new Map,I=e.length,R=h.length,$=new Array(I);for(p=0;p<I;++p)(_=e[p])&&($[p]=b=u.call(_,_.__data__,p,e)+"",M.has(b)?s[p]=_:M.set(b,_));for(p=0;p<R;++p)b=u.call(t,h[p],p,h)+"",(_=M.get(b))?(a[p]=_,_.__data__=h[p],M.delete(b)):r[p]=new kt(t,h[p]);for(p=0;p<I;++p)(_=e[p])&&M.get($[p])===_&&(s[p]=_)}function Ut(t){return t.__data__}function pe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function je(t,e){return t<e?-1:t>e?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<s;)r.add(e[a])}function Le(t,e){for(var r=ee(t),a=-1,s=e.length;++a<s;)r.remove(e[a])}function an(t){return function(){Re(this,t)}}function Ae(t){return function(){Le(this,t)}}function Ve(t,e){return function(){(e.apply(this,arguments)?Re:Le)(this,t)}}function Ke(){this.textContent=""}function en(t){return function(){this.textContent=t}}function Ne(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function ln(){this.innerHTML=""}function dn(t){return function(){this.innerHTML=t}}function Ue(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Pe(){this.nextSibling&&this.parentNode.appendChild(this)}function Ie(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xe(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===_e&&e.documentElement.namespaceURI===_e?e.createElement(t):e.createElementNS(r,t)}}function jn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Lt(t){var e=de(t);return(e.local?jn:Xe)(e)}function An(){return null}function Pt(){var t=this.parentNode;t&&t.removeChild(this)}function hn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function on(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function qn(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a<h;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++s]=r:this.removeEventListener(r.type,r.listener,r.options);++s?e.length=s:delete this.__on}}}function Qn(t,e,r){return function(){var a,s=this.__on,h=function(_){return function(b){_.call(this,b,this.__data__)}}(e);if(s){for(var u=0,p=s.length;u<p;++u)if((a=s[u]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=h,a.options=r),void(a.value=e)}this.addEventListener(t.type,h,r),a={type:t.type,name:t.name,value:e,listener:h,options:r},s?s.push(a):this.__on=[a]}}function Pr(t,e,r){var a=It(t),s=a.CustomEvent;typeof s=="function"?s=new s(e,r):(s=a.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function kn(t,e){return function(){return Pr(this,t,e)}}function Yn(t,e){return function(){return Pr(this,t,e.apply(this,arguments))}}me.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var 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<r;++s)for(var h,u,p=e[s],_=p.length,b=a[s]=new Array(_),M=0;M<_;++M)(h=p[M])&&(u=t.call(h,h.__data__,M,p))&&("__data__"in h&&(u.__data__=h.__data__),b[M]=u);return new Nn(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(M){return function(){return Dt(M.apply(this,arguments))}}(t):jt(t);for(var e=this._groups,r=e.length,a=[],s=[],h=0;h<r;++h)for(var u,p=e[h],_=p.length,b=0;b<_;++b)(u=p[b])&&(a.push(t.call(u,u.__data__,b,p)),s.push(u));return new Nn(a,s)},selectChild:function(t){return this.select(t==null?Tt:function(e){return function(){return Bt.call(this.children,e)}}(typeof t=="function"?t:Yt(t)))},selectChildren:function(t){return this.selectAll(t==null?lt:function(e){return function(){return Q.call(this.children,e)}}(typeof t=="function"?t:Yt(t)))},filter:function(t){typeof t!="function"&&(t=Nt(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new Nn(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Ut);var r=e?Ft:At,a=this._parents,s=this._groups;typeof t!="function"&&(t=W(t));for(var h=s.length,u=new Array(h),p=new Array(h),_=new Array(h),b=0;b<h;++b){var M=a[b],I=s[b],R=I.length,$=pe(t.call(M,M&&M.__data__,b,a)),ht=$.length,it=p[b]=new Array(ht),pt=u[b]=new Array(ht),ft=_[b]=new Array(R);r(M,I,it,pt,ft,$,e);for(var xt,mt,Wt=0,re=0;Wt<ht;++Wt)if(xt=it[Wt]){for(Wt>=re&&(re=Wt+1);!(mt=pt[re])&&++re<ht;);xt._next=mt||null}}return(u=new Nn(u,a))._enter=p,u._exit=_,u},enter:function(){return new Nn(this._enter||this._groups.map(U),this._parents)},exit:function(){return new Nn(this._exit||this._groups.map(U),this._parents)},join:function(t,e,r){var a=this.enter(),s=this,h=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(s=e(s))&&(s=s.selection()),r==null?h.remove():r(h),a&&s?a.merge(s).order():s},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,s=r.length,h=a.length,u=Math.min(s,h),p=new Array(s),_=0;_<u;++_)for(var b,M=r[_],I=a[_],R=M.length,$=p[_]=new Array(R),ht=0;ht<R;++ht)(b=M[ht]||I[ht])&&($[ht]=b);for(;_<s;++_)p[_]=r[_];return new Nn(p,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,s=t[e],h=s.length-1,u=s[h];--h>=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;h<a;++h){for(var u,p=r[h],_=p.length,b=s[h]=new Array(_),M=0;M<_;++M)(u=p[M])&&(b[M]=u);b.sort(e)}return new Nn(s,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],s=0,h=a.length;s<h;++s){var u=a[s];if(u)return u}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var s,h=e[r],u=0,p=h.length;u<p;++u)(s=h[u])&&t.call(s,s.__data__,u,h);return this},attr:function(t,e){var r=de(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?Se:Me:typeof e=="function"?r.local?qe:ye:r.local?bn:ge)(r,e))},style:function(t,e,r){return arguments.length>1?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<h;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?Ve:e?an:Ae)(r,e))},text:function(t){return arguments.length?this.each(t==null?Ke:(typeof t=="function"?Ne:en)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?ln:(typeof t=="function"?Ue:dn)(t)):this.node().innerHTML},raise:function(){return this.each(Pe)},lower:function(){return this.each(Ie)},append:function(t){var e=typeof t=="function"?t:Lt(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Lt(t),a=e==null?An:typeof e=="function"?e:_t(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(Pt)},clone:function(t){return this.select(t?Mn:hn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,s,h=on(t+""),u=h.length;if(!(arguments.length<2)){for(p=e?Qn:qn,a=0;a<u;++a)this.each(p(h[a],e,r));return this}var p=this.node().__on;if(p){for(var _,b=0,M=p.length;b<M;++b)for(a=0,_=p[b];a<u;++a)if((s=h[a]).type===_.type&&s.name===_.name)return _.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Yn:kn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,s=t[e],h=0,u=s.length;h<u;++h)(a=s[h])&&(yield a)}};const Pn=Fn;var Tn={value:()=>{}};function Wn(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new xn(a)}function xn(t){this._=t}function Cn(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=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;a<s;++a)if((r=t[a]).name===e)return r.value}function oa(t,e,r){for(var a=0,s=t.length;a<s;++a)if(t[a].name===e){t[a]=Tn,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}xn.prototype=Wn.prototype={constructor:xn,on:function(t,e){var r,a=this._,s=Cn(t+"",a),h=-1,u=s.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++h<u;)if(r=(t=s[h]).type)a[r]=oa(a[r],t.name,e);else if(e==null)for(r in a)a[r]=oa(a[r],t.name,null);return this}for(;++h<u;)if((r=(t=s[h]).type)&&(r=$n(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new xn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,s=new Array(r),h=0;h<r;++h)s[h]=arguments[h+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(h=0,r=(a=this._[t]).length;h<r;++h)a[h].value.apply(e,s)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],s=0,h=a.length;s<h;++s)a[s].value.apply(e,r)}};const fr=Wn;var Ti,pn,mi=0,br=0,yr=0,ai=0,ei=0,hi=0,Zr=typeof performance=="object"&&performance.now?performance:Date,fi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Qr(){return ei||(fi(dr),ei=Zr.now()+hi)}function dr(){ei=0}function Jr(){this._call=this._time=this._next=null}function oi(t,e,r){var a=new Jr;return a.restart(t,e,r),a}function si(){ei=(ai=Zr.now())+hi,mi=br=0;try{(function(){Qr(),++mi;for(var t,e=Ti;e;)(t=ei-e._time)>=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;pt<xt;++pt)(mt=b.tween[pt].value.call(p,p.__data__,b.index,b.group))&&(M[++ft]=mt);M.length=ft+1}}function $(it){for(var pt=it<b.duration?b.ease.call(null,it/b.duration):(b.timer.restart(ht),b.state=5,1),ft=-1,xt=M.length;++ft<xt;)M[ft].call(p,pt);b.state===5&&(b.on.call("end",p,p.__data__,b.index,b.group),ht())}function ht(){for(var it in b.state=6,b.timer.stop(),delete I[_],I)return;delete p.__transition}I[_]=b,b.timer=oi(function(it){b.state=1,b.timer.restart(R,b.delay,b.time),b.delay<=it&&R(it-b.delay)},0,b.time)})(t,r,{name:e,index:a,group:s,on:Ma,tween:sa,time:h.time,delay:h.delay,duration:h.duration,ease:h.ease,timer:null,state:0})}function gn(t,e){var r=De(t,e);if(r.state>0)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*a<e*r&&(t=-t,e=-e,_=-_,u=-u),{translateX:s,translateY:h,rotate:Math.atan2(e,t)*qt,skewX:Math.atan(_)*qt,scaleX:u,scaleY:p}}function Kr(t,e,r,a){function s(h){return h.length?h.pop()+" ":""}return function(h,u){var p=[],_=[];return h=t(h),u=t(u),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push("translate(",null,e,null,r);ht.push({i:it-4,x:We(b,I)},{i:it-2,x:We(M,R)})}else(I||R)&&$.push("translate("+I+e+R+r)}(h.translateX,h.translateY,u.translateX,u.translateY,p,_),function(b,M,I,R){b!==M?(b-M>180?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<R;)p[(M=_[I]).i]=M.x(b);return p.join("")}}}var Mo=Kr(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ba:Kt(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Ls=Kr(function(t){return t==null?ba:(_r||(_r=document.createElementNS("http://www.w3.org/2000/svg","g")),_r.setAttribute("transform",t),(t=_r.transform.baseVal.consolidate())?Kt((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ba)},", ",")",")");function mc(t,e){var r,a;return function(){var s=Jn(this,t),h=s.tween;if(h!==r){for(var u=0,p=(a=r=h).length;u<p;++u)if(a[u].name===e){(a=a.slice()).splice(u,1);break}}s.tween=a}}function _a(t,e,r){var a,s;if(typeof r!="function")throw new Error;return function(){var h=Jn(this,t),u=h.tween;if(u!==a){s=(a=u).slice();for(var p={name:e,value:r},_=0,b=s.length;_<b;++_)if(s[_].name===e){s[_]=p;break}_===b&&s.push(p)}h.tween=s}}function Hn(t,e,r){var a=t._id;return t.each(function(){var s=Jn(this,a);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return De(s,a).value[e]}}function Yr(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ei(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function zr(){}var Di=.7,Gi=1/Di,Oi="\\s*([+-]?\\d+)\\s*",Nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ci="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ni=/^#([0-9a-f]{3,8})$/,jr=new RegExp("^rgb\\("+[Oi,Oi,Oi]+"\\)$"),ca=new RegExp("^rgb\\("+[ci,ci,ci]+"\\)$"),Xi=new RegExp("^rgba\\("+[Oi,Oi,Oi,Nr]+"\\)$"),Ci=new RegExp("^rgba\\("+[ci,ci,ci,Nr]+"\\)$"),xa=new RegExp("^hsl\\("+[Nr,ci,ci]+"\\)$"),Gr=new RegExp("^hsla\\("+[Nr,ci,ci,Nr]+"\\)$"),li={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 wa(){return this.rgb().formatHex()}function la(){return this.rgb().formatRgb()}function No(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ni.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?tl(e):r===3?new Kn(e>>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*(r<a):r===h?(a-e)/p+2:(e-r)/p+4,p/=_<.5?h+s:2-h-s,u*=60):p=_>0&&_<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<e.length&&(s=e.slice(h),p[u]?p[u]+=s:p[++u]=s),p.length<2?_[0]?function(b){return function(M){return b(M)+""}}(_[0].x):function(b){return function(){return b}}(e):(e=_.length,function(b){for(var M,I=0;I<e;++I)p[(M=_[I]).i]=M.x(b);return p.join("")})}function no(t,e){var r;return(typeof e=="number"?We:e instanceof No?Wl:(r=No(e))?(e=r,Wl):Hl)(t,e)}function Je(t){return function(){this.removeAttribute(t)}}function oh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lr(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttribute(t);return u===h?null:u===a?s:s=e(a=u,r)}}function nl(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===h?null:u===a?s:s=e(a=u,r)}}function rl(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttribute(t))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttribute(t)}}function Vl(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttributeNS(t.space,t.local))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttributeNS(t.space,t.local)}}function Wa(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Si(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function vc(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&Si(t,h)),r}return s._value=e,s}function sh(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&Wa(t,h)),r}return s._value=e,s}function Gl(t,e){return function(){gn(this,t).delay=+e.apply(this,arguments)}}function Do(t,e){return e=+e,function(){gn(this,t).delay=e}}function ch(t,e){return function(){Jn(this,t).duration=+e.apply(this,arguments)}}function X1(t,e){return e=+e,function(){Jn(this,t).duration=e}}function jd(t,e){if(typeof e!="function")throw new Error;return function(){Jn(this,t).ease=e}}function Z1(t,e,r){var a,s,h=function(u){return(u+"").trim().split(/^|\s+/).every(function(p){var _=p.indexOf(".");return _>=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;u<s;++u)for(var p,_,b=a[u],M=b.length,I=h[u]=new Array(M),R=0;R<M;++R)(p=b[R])&&(_=t.call(p,p.__data__,R,b))&&("__data__"in p&&(_.__data__=p.__data__),I[R]=_,Yi(I[R],e,r,R,I,De(p,r)));return new ro(h,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=jt(t));for(var a=this._groups,s=a.length,h=[],u=[],p=0;p<s;++p)for(var _,b=a[p],M=b.length,I=0;I<M;++I)if(_=b[I]){for(var R,$=t.call(_,_.__data__,I,b),ht=De(_,r),it=0,pt=$.length;it<pt;++it)(R=$[it])&&Yi(R,e,r,it,$,ht);h.push($),u.push(_)}return new ro(h,u,e,r)},selectChild:Da.selectChild,selectChildren:Da.selectChildren,filter:function(t){typeof t!="function"&&(t=Nt(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new ro(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,s=r.length,h=Math.min(a,s),u=new Array(a),p=0;p<h;++p)for(var _,b=e[p],M=r[p],I=b.length,R=u[p]=new Array(I),$=0;$<I;++$)(_=b[$]||M[$])&&(R[$]=_);for(;p<a;++p)u[p]=e[p];return new ro(u,this._parents,this._name,this._id)},selection:function(){return new Q1(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=al(),a=this._groups,s=a.length,h=0;h<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)if(u=p[b]){var M=De(u,e);Yi(u,t,r,b,p,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new ro(a,this._parents,t,r)},call:Da.call,nodes:Da.nodes,node:Da.node,size:Da.size,empty:Da.empty,each:Da.each,on:function(t,e){var r=this._id;return arguments.length<2?De(this.node(),r).on.on(t):this.each(Z1(r,t,e))},attr:function(t,e){var r=de(t),a=r==="transform"?Ls:no;return this.attrTween(t,typeof e=="function"?(r.local?Vl:rl)(r,a,Hn(this,"attr."+t,e)):e==null?(r.local?oh:Je)(r):(r.local?nl:Lr)(r,a,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var a=de(t);return this.tween(r,(a.local?vc:sh)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Mo:no;return e==null?this.styleTween(t,function(s,h){var u,p,_;return function(){var b=Ee(this,s),M=(this.style.removeProperty(s),Ee(this,s));return b===M?null:b===u&&M===p?_:_=h(u=b,p=M)}}(t,a)).on("end.style."+t,Na(t)):typeof e=="function"?this.styleTween(t,function(s,h,u){var p,_,b;return function(){var M=Ee(this,s),I=u(this),R=I+"";return I==null&&(this.style.removeProperty(s),R=I=Ee(this,s)),M===R?null:M===p&&R===_?b:(_=R,b=h(p=M,I))}}(t,a,Hn(this,"style."+t,e))).each(function(s,h){var u,p,_,b,M="style."+h,I="end."+M;return function(){var R=Jn(this,s),$=R.on,ht=R.value[M]==null?b||(b=Na(h)):void 0;$===u&&_===ht||(p=(u=$).copy()).on(I,_=ht),R.on=p}}(this._id,t)):this.styleTween(t,function(s,h,u){var p,_,b=u+"";return function(){var M=Ee(this,s);return M===b?null:M===p?_:_=h(p=M,u)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,lh(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(Hn(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Oo(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,s=De(this.node(),r).tween,h=0,u=s.length;h<u;++h)if((a=s[h]).name===t)return a.value;return null}return this.each((e==null?mc:_a)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Gl:Do)(e,t)):De(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ch:X1)(e,t)):De(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(jd(e,t)):De(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;Jn(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,s=r.size();return new Promise(function(h,u){var p={value:u},_={value:function(){--s==0&&h()}};r.each(function(){var b=Jn(this,a),M=b.on;M!==t&&((e=(t=M).copy())._.cancel.push(p),e._.interrupt.push(p),e._.end.push(_)),b.on=e}),s===0&&h()})},[Symbol.iterator]:Da[Symbol.iterator]};var Is={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Xl(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Pn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,s,h,u=e.__transition,p=!0;if(u){for(h in r=r==null?null:r+"",u)(a=u[h]).name===r?(s=a.state>2&&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<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)(u=p[b])&&Yi(u,t,e,b,p,r||Xl(u,e));return new ro(a,this._parents,t,e)};function Bo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Qi(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function bi(){}var io=.7,$a=1/io,ua="\\s*([+-]?\\d+)\\s*",rr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",E="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P=/^#([0-9a-f]{3,8})$/,G=new RegExp("^rgb\\("+[ua,ua,ua]+"\\)$"),ut=new RegExp("^rgb\\("+[E,E,E]+"\\)$"),Zt=new RegExp("^rgba\\("+[ua,ua,ua,rr]+"\\)$"),we=new RegExp("^rgba\\("+[E,E,E,rr]+"\\)$"),Be=new RegExp("^hsl\\("+[rr,E,E]+"\\)$"),$e=new RegExp("^hsla\\("+[rr,E,E,rr]+"\\)$"),He={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 tn(){return this.rgb().formatHex()}function sn(){return this.rgb().formatRgb()}function In(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=P.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Dn(e):r===3?new pr(e>>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*(r<a):r===h?(a-e)/p+2:(e-r)/p+4,p/=_<.5?h+s:2-h-s,u*=60):p=_>0&&_<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.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xy;return new Rs(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Qd(t,e,r,a){return arguments.length===1?qv(t):new Rs(t,e,r,a==null?1:a)}function Rs(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function ky(t){if(isNaN(t.h))return new as(t.l,0,0,t.opacity);var e=t.h*_y;return new as(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Bo(as,function(t,e,r,a){return arguments.length===1?Hd(t):new as(t,e,r,a==null?1:a)},Qi(bi,{brighter:function(t){return new as(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new as(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new pr(Xd(3.1338561*(e=qd*Gd(e))-1.6168667*(t=1*Gd(t))-.4906146*(r=Wd*Gd(r))),Xd(-.9787684*e+1.9161415*t+.033454*r),Xd(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Bo(Rs,Qd,Qi(bi,{brighter:function(t){return new Rs(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Rs(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return ky(this).rgb()}}));const Jd=t=>()=>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),e<t?-s:s}function ip(t,e){return t==null||e==null?NaN:t<e?-1:t>e?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*(r<a):r===h?(a-e)/p+2:(e-r)/p+4,p/=_<.5?h+s:2-h-s,u*=60):p=_>0&&_<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;r<s;++r)h[r]=u0(t[r],e[r]);for(;r<a;++r)u[r]=e[r];return function(p){for(r=0;r<s;++r)u[r]=h[r](p);return u}}function Jv(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function l0(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Kv(t,e){var r,a={},s={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?a[r]=u0(t[r],e[r]):s[r]=e[r];return function(h){for(r in a)s[r]=a[r](h);return s}}var fp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gh=new RegExp(fp.source,"g");function Ny(t,e){var r,a,s,h=fp.lastIndex=gh.lastIndex=0,u=-1,p=[],_=[];for(t+="",e+="";(r=fp.exec(t))&&(a=gh.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:l0(r,a)})),h=gh.lastIndex;return h<e.length&&(s=e.slice(h),p[u]?p[u]+=s:p[++u]=s),p.length<2?_[0]?function(b){return function(M){return b(M)+""}}(_[0].x):function(b){return function(){return b}}(e):(e=_.length,function(b){for(var M,I=0;I<e;++I)p[(M=_[I]).i]=M.x(b);return p.join("")})}function Dy(t,e){e||(e=[]);var r,a=t?Math.min(e.length,t.length):0,s=e.slice();return function(h){for(r=0;r<a;++r)s[r]=t[r]*(1-h)+e[r]*h;return s}}function u0(t,e){var r,a,s=typeof e;return e==null||s==="boolean"?hp(e):(s==="number"?l0:s==="string"?(r=Zl(e))?(e=r,c0):Ny:e instanceof Zl?c0:e instanceof Date?Jv:(a=e,!ArrayBuffer.isView(a)||a instanceof DataView?Array.isArray(e)?Qv:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Kv:l0:Dy))(t,e)}function h0(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Oy(t){return+t}var dp=[0,1];function Jl(t){return t}function pp(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function t5(t,e,r){var a=t[0],s=t[1],h=e[0],u=e[1];return s<a?(a=pp(s,a),h=r(u,h)):(a=pp(a,s),h=r(h,u)),function(p){return h(a(p))}}function gp(t,e,r){var a=Math.min(t.length,e.length)-1,s=new Array(a),h=new Array(a),u=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<a;)s[u]=pp(t[u],t[u+1]),h[u]=r(e[u],e[u+1]);return function(p){var _=os(t,p,1,a)-1;return h[_](s[_](p))}}function f0(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function d0(){return function(){var t,e,r,a,s,h,u=dp,p=dp,_=u0,b=Jl;function M(){var R,$,ht,it=Math.min(u.length,p.length);return b!==Jl&&(R=u[0],$=u[it-1],R>$&&(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=h<s)&&(_=s,s=h,h=_),(M=np(s,h,u))===0||!isFinite(M))return[];if(M>0){let R=Math.round(s/M),$=Math.round(h/M);for(R*M<s&&++R,$*M>h&&--$,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/M<s&&++R,$/M>h&&--$,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;rn<fn;++rn)switch(Fe[rn]){case".":Sn=Ye=rn;break;case"0":Sn===0&&(Sn=rn),Ye=rn;break;default:if(!+Fe[rn])break t;Sn>0&&(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<yt;)if(48>(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<xt?new Array(xt-le+1).join($):"";switch(mt&&ft&&(ct=a(be+ct,be.length?xt-Gt.length:1/0),be=""),ht){case"<":ct=Te+ct+Gt+be;break;case"=":ct=Te+be+ct+Gt;break;case"^":ct=be.slice(0,le=be.length>>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-u<p-h?u:p},s.offset=function(h,u){return e(h=new Date(+h),u==null?1:Math.floor(u)),h},s.range=function(h,u,p){var _,b=[];if(h=s.ceil(h),p=p==null?1:Math.floor(p),!(h<u&&p>0))return b;do b.push(_=new Date(+h)),e(h,p),t(h);while(_<h&&h<u);return b},s.filter=function(h){return zi(function(u){if(u>=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]<u[R][2]/I?R-1:R];return $.every(ht)}return[function(_,b,M){const I=b<_;I&&([_,b]=[b,_]);const R=M&&typeof M.range=="function"?M:p(_,b,M),$=R?R.range(_,+b+1):[];return I?$.reverse():$},p]}const[qy,r5]=ll(Us,Ep,_0,nu,b0,_h);function hs(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 Ap(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 wh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var kh,Wy,fs={"-":"",_:" ",0:"0"},ji=/^\s*\d+/,Mp=/^%/,Np=/[\\^$*+?|[\]().{}]/g;function Er(t,e,r){var a=t<0?"-":"",s=(a?-t:t)+"",h=s.length;return a+(h<r?new Array(r-h+1).join(e)+s:s)}function i5(t){return t.replace(Np,"\\$&")}function Th(t){return new RegExp("^(?:"+t.map(i5).join("|")+")","i")}function Eh(t){return new Map(t.map((e,r)=>[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)<Rt?$:p(Rt)<Rt?ht:u(Rt)<Rt?it:h(Rt)<Rt?pt:a(Rt)<Rt?s(Rt)<Rt?ft:xt:r(Rt)<Rt?mt:Wt)(Rt)}return M.invert=function(Rt){return new Date(I(Rt))},M.domain=function(Rt){return arguments.length?R(Array.from(Rt,B5)):R().map(O5)},M.ticks=function(Rt){var Jt=R();return t(Jt[0],Jt[Jt.length-1],Rt==null?10:Rt)},M.tickFormat=function(Rt,Jt){return Jt==null?re:b(Jt)},M.nice=function(Rt){var Jt=R();return Rt&&typeof Rt.range=="function"||(Rt=e(Jt[0],Jt[Jt.length-1],Rt==null?10:Rt)),Rt?R(function(te,Et){var wt,vt=0,ct=(te=te.slice()).length-1,Mt=te[vt],yt=te[ct];return yt<Mt&&(wt=vt,vt=ct,ct=wt,wt=Mt,Mt=yt,yt=wt),te[vt]=Et.floor(Mt),te[ct]=Et.ceil(yt),te}(Jt,Rt)):M},M.copy=function(){return f0(M,dm(t,e,r,a,s,h,u,p,_,b))},M}function L5(){}function au(t){return t==null?L5:function(){return this.querySelector(t)}}function Fp(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function I5(){return[]}function pm(t){return t==null?I5:function(){return this.querySelectorAll(t)}}function gm(t){return function(){return this.matches(t)}}function ym(t){return function(e){return e.matches(t)}}kh=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=Th(s),M=Eh(s),I=Th(h),R=Eh(h),$=Th(u),ht=Eh(u),it=Th(p),pt=Eh(p),ft=Th(_),xt=Eh(_),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:Zy,e:Zy,f:p5,g:k5,G:nm,H:hl,I:Qy,j:d5,L:Jy,m:g5,M:y5,p:function(Et){return s[+(Et.getHours()>=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));++Te<ve;)Et.charCodeAt(Te)===37&&(xe.push(Et.slice(Gt,Te)),(Mt=fs[ct=Et.charAt(++Te)])!=null?ct=Et.charAt(++Te):Mt=ct==="e"?" ":"0",(yt=wt[ct])&&(ct=yt(vt,Mt)),xe.push(ct),Gt=Te+1);return xe.push(Et.slice(Gt,Te)),xe.join("")}}function Jt(Et,wt){return function(vt){var ct,Mt,yt=wh(1900,void 0,1);if(te(yt,Et,vt+="",0)!=vt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(wt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(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<Te;){if(ct>=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;p<b;++p)(u=e[p])?(u.__data__=h[p],a[p]=u):r[p]=new T0(t,h[p]);for(;p<_;++p)(u=e[p])&&(s[p]=u)}function Tc(t,e,r,a,s,h,u){var p,_,b,M=new Map,I=e.length,R=h.length,$=new Array(I);for(p=0;p<I;++p)(_=e[p])&&($[p]=b=u.call(_,_.__data__,p,e)+"",M.has(b)?s[p]=_:M.set(b,_));for(p=0;p<R;++p)b=u.call(t,h[p],p,h)+"",(_=M.get(b))?(a[p]=_,_.__data__=h[p],M.delete(b)):r[p]=new T0(t,h[p]);for(p=0;p<I;++p)(_=e[p])&&M.get($[p])===_&&(s[p]=_)}function vm(t){return t.__data__}function La(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function z5(t,e){return t<e?-1:t>e?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<s;)r.add(e[a])}function jp(t,e){for(var r=zp(t),a=-1,s=e.length;++a<s;)r.remove(e[a])}function Q5(t){return function(){fl(this,t)}}function Nh(t){return function(){jp(this,t)}}function E0(t,e){return function(){(e.apply(this,arguments)?fl:jp)(this,t)}}function xm(){this.textContent=""}function wm(t){return function(){this.textContent=t}}function km(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function C0(){this.innerHTML=""}function S0(t){return function(){this.innerHTML=t}}function Up(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Tm(){this.nextSibling&&this.parentNode.appendChild(this)}function Em(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Cm(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Pp&&e.documentElement.namespaceURI===Pp?e.createElement(t):e.createElementNS(r,t)}}function Sm(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qp(t){var e=ou(t);return(e.local?Sm:Cm)(e)}function Am(){return null}function Mm(){var t=this.parentNode;t&&t.removeChild(this)}function Ec(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function A0(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function M0(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Nm(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a<h;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++s]=r:this.removeEventListener(r.type,r.listener,r.options);++s?e.length=s:delete this.__on}}}function Gn(t,e,r){return function(){var a,s=this.__on,h=function(_){return function(b){_.call(this,b,this.__data__)}}(e);if(s){for(var u=0,p=s.length;u<p;++u)if((a=s[u]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=h,a.options=r),void(a.value=e)}this.addEventListener(t.type,h,r),a={type:t.type,name:t.name,value:e,listener:h,options:r},s?s.push(a):this.__on=[a]}}function Dh(t,e,r){var a=Yp(t),s=a.CustomEvent;typeof s=="function"?s=new s(e,r):(s=a.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function ur(t,e){return function(){return Dh(this,t,e)}}function _i(t,e){return function(){return Dh(this,t,e.apply(this,arguments))}}Mh.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var 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<r;++s)for(var h,u,p=e[s],_=p.length,b=a[s]=new Array(_),M=0;M<_;++M)(h=p[M])&&(u=t.call(h,h.__data__,M,p))&&("__data__"in h&&(u.__data__=h.__data__),b[M]=u);return new Fr(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(M){return function(){return Fp(M.apply(this,arguments))}}(t):pm(t);for(var e=this._groups,r=e.length,a=[],s=[],h=0;h<r;++h)for(var u,p=e[h],_=p.length,b=0;b<_;++b)(u=p[b])&&(a.push(t.call(u,u.__data__,b,p)),s.push(u));return new Fr(a,s)},selectChild:function(t){return this.select(t==null?R5:function(e){return function(){return F5.call(this.children,e)}}(typeof t=="function"?t:ym(t)))},selectChildren:function(t){return this.selectAll(t==null?P5:function(e){return function(){return Rp.call(this.children,e)}}(typeof t=="function"?t:ym(t)))},filter:function(t){typeof t!="function"&&(t=gm(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new Fr(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,vm);var r=e?Tc:Ui,a=this._parents,s=this._groups;typeof t!="function"&&(t=Y5(t));for(var h=s.length,u=new Array(h),p=new Array(h),_=new Array(h),b=0;b<h;++b){var M=a[b],I=s[b],R=I.length,$=La(t.call(M,M&&M.__data__,b,a)),ht=$.length,it=p[b]=new Array(ht),pt=u[b]=new Array(ht),ft=_[b]=new Array(R);r(M,I,it,pt,ft,$,e);for(var xt,mt,Wt=0,re=0;Wt<ht;++Wt)if(xt=it[Wt]){for(Wt>=re&&(re=Wt+1);!(mt=pt[re])&&++re<ht;);xt._next=mt||null}}return(u=new Fr(u,a))._enter=p,u._exit=_,u},enter:function(){return new Fr(this._enter||this._groups.map(mm),this._parents)},exit:function(){return new Fr(this._exit||this._groups.map(mm),this._parents)},join:function(t,e,r){var a=this.enter(),s=this,h=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(s=e(s))&&(s=s.selection()),r==null?h.remove():r(h),a&&s?a.merge(s).order():s},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,s=r.length,h=a.length,u=Math.min(s,h),p=new Array(s),_=0;_<u;++_)for(var b,M=r[_],I=a[_],R=M.length,$=p[_]=new Array(R),ht=0;ht<R;++ht)(b=M[ht]||I[ht])&&($[ht]=b);for(;_<s;++_)p[_]=r[_];return new Fr(p,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,s=t[e],h=s.length-1,u=s[h];--h>=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;h<a;++h){for(var u,p=r[h],_=p.length,b=s[h]=new Array(_),M=0;M<_;++M)(u=p[M])&&(b[M]=u);b.sort(e)}return new Fr(s,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],s=0,h=a.length;s<h;++s){var u=a[s];if(u)return u}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var s,h=e[r],u=0,p=h.length;u<p;++u)(s=h[u])&&t.call(s,s.__data__,u,h);return this},attr:function(t,e){var r=ou(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?Ia:bm:typeof e=="function"?r.local?W5:q5:r.local?U5:j5)(r,e))},style:function(t,e,r){return arguments.length>1?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;++s<h;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?E0:e?Q5:Nh)(r,e))},text:function(t){return arguments.length?this.each(t==null?xm:(typeof t=="function"?km:wm)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?C0:(typeof t=="function"?Up:S0)(t)):this.node().innerHTML},raise:function(){return this.each(Tm)},lower:function(){return this.each(Em)},append:function(t){var e=typeof t=="function"?t:qp(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:qp(t),a=e==null?Am:typeof e=="function"?e:au(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(Mm)},clone:function(t){return this.select(t?A0:Ec)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,s,h=M0(t+""),u=h.length;if(!(arguments.length<2)){for(p=e?Gn:Nm,a=0;a<u;++a)this.each(p(h[a],e,r));return this}var p=this.node().__on;if(p){for(var _,b=0,M=p.length;b<M;++b)for(a=0,_=p[b];a<u;++a)if((s=h[a]).type===_.type&&s.name===_.name)return _.value}},dispatch:function(t,e){return this.each((typeof e=="function"?_i:ur)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,s=t[e],h=0,u=s.length;h<u;++h)(a=s[h])&&(yield a)}};const Bn=Wr;function ze(t){return typeof t=="string"?new Fr([[document.querySelector(t)]],[document.documentElement]):new Fr([[t]],cu)}function Cc(t){return typeof t=="string"?new Fr([document.querySelectorAll(t)],[document.documentElement]):new Fr([Fp(t)],cu)}const ha=Math.PI,En=2*ha,ds=1e-6,Dm=En-ds;function lu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function N0(){return new lu}lu.prototype=N0.prototype={constructor:lu,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,e,r,a,s,h){this._+="C"+ +t+","+ +e+","+ +r+","+ +a+","+(this._x1=+s)+","+(this._y1=+h)},arcTo:function(t,e,r,a,s){t=+t,e=+e,r=+r,a=+a,s=+s;var h=this._x1,u=this._y1,p=r-t,_=a-e,b=h-t,M=u-e,I=b*b+M*M;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(I>ds)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*R<Ra))return[t+(R=(M*(e-h)-I*(t-s))/R)*_,e+R*b]}function so(t,e,r,a,s,h,u){var p=t-r,_=e-a,b=(u?h:-h)/qs(p*p+_*_),M=b*_,I=-b*p,R=t+M,$=e+I,ht=r+M,it=a+I,pt=(R+ht)/2,ft=($+it)/2,xt=ht-R,mt=it-$,Wt=xt*xt+mt*mt,re=s-h,Rt=R*it-ht*$,Jt=(mt<0?-1:1)*qs(Fa(0,re*re*Wt-Rt*Rt)),te=(Rt*mt-xt*Jt)/Wt,Et=(-Rt*xt-mt*Jt)/Wt,wt=(Rt*mt+xt*Jt)/Wt,vt=(-Rt*xt+mt*Jt)/Wt,ct=te-pt,Mt=Et-ft,yt=wt-pt,xe=vt-ft;return ct*ct+Mt*Mt>yt*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()),R<I&&(M=R,R=I,I=M),R>Ra)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(it<uu&&(be=B0(Te,Gt,fn,rn,Fe,Ye,ve,le))){var Sn=Te-be[0],er=Gt-be[1],Br=Fe-be[0],_n=Ye-be[1],Vr=1/Sr(Ro((Sn*Br+er*_n)/(qs(Sn*Sn+er*er)*qs(Br*Br+_n*_n)))/2),ii=qs(be[0]*be[0]+be[1]*be[1]);ct=D0(vt,(I-ii)/(Vr-1)),Mt=D0(vt,(R-ii)/(Vr+1))}}te>Ra?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),Mt<vt?p.arc(ft.cx,ft.cy,Mt,Ji(ft.y01,ft.x01),Ji(xt.y01,xt.x01),!pt):(p.arc(ft.cx,ft.cy,Mt,Ji(ft.y01,ft.x01),Ji(ft.y11,ft.x11),!pt),p.arc(0,0,R,Ji(ft.cy+ft.y11,ft.cx+ft.x11),Ji(xt.cy+xt.y11,xt.cx+xt.x11),!pt),p.arc(xt.cx,xt.cy,Mt,Ji(xt.y11,xt.x11),Ji(xt.y01,xt.x01),!pt))):(p.moveTo(Te,Gt),p.arc(0,0,R,mt,Wt,!pt)):p.moveTo(Te,Gt),I>Ra&&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),ct<vt?p.arc(ft.cx,ft.cy,ct,Ji(ft.y01,ft.x01),Ji(xt.y01,xt.x01),!pt):(p.arc(ft.cx,ft.cy,ct,Ji(ft.y01,ft.x01),Ji(ft.y11,ft.x11),!pt),p.arc(0,0,I,Ji(ft.cy+ft.y11,ft.cx+ft.x11),Ji(xt.cy+xt.y11,xt.cx+xt.x11),pt),p.arc(xt.cx,xt.cy,ct,Ji(xt.y11,xt.x11),Ji(xt.y01,xt.x01),!pt))):p.arc(0,0,I,Rt,re,pt):p.lineTo(ve,le)}else p.moveTo(0,0);if(p.closePath(),b)return p=null,b+""||null}return _.centroid=function(){var b=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,M=(+s.apply(this,arguments)+ +h.apply(this,arguments))/2-uu/2;return[Sc(M)*b,Sr(M)*b]},_.innerRadius=function(b){return arguments.length?(t=typeof b=="function"?b:Cr(+b),_):t},_.outerRadius=function(b){return arguments.length?(e=typeof b=="function"?b:Cr(+b),_):e},_.cornerRadius=function(b){return arguments.length?(r=typeof b=="function"?b:Cr(+b),_):r},_.padRadius=function(b){return arguments.length?(a=b==null?null:typeof b=="function"?b:Cr(+b),_):a},_.startAngle=function(b){return arguments.length?(s=typeof b=="function"?b:Cr(+b),_):s},_.endAngle=function(b){return arguments.length?(h=typeof b=="function"?b:Cr(+b),_):h},_.padAngle=function(b){return arguments.length?(u=typeof b=="function"?b:Cr(+b),_):u},_.context=function(b){return arguments.length?(p=b==null?null:b,_):p},_}function Bm(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Lm(t){this._context=t}function mo(t){return new Lm(t)}function J5(t){return t[0]}function L0(t){return t[1]}function Po(t,e){var r=Cr(!0),a=null,s=mo,h=null;function u(p){var _,b,M,I=(p=Bm(p)).length,R=!1;for(a==null&&(h=s(M=mn())),_=0;_<=I;++_)!(_<I&&r(b=p[_],_,p))===R&&((R=!R)?h.lineStart():h.lineEnd()),R&&h.point(+t(b,_,p),+e(b,_,p));if(M)return h=null,M+""||null}return t=typeof t=="function"?t:t===void 0?J5:Cr(t),e=typeof e=="function"?e:e===void 0?L0:Cr(e),u.x=function(p){return arguments.length?(t=typeof p=="function"?p:Cr(+p),u):t},u.y=function(p){return arguments.length?(e=typeof p=="function"?p:Cr(+p),u):e},u.defined=function(p){return arguments.length?(r=typeof p=="function"?p:Cr(!!p),u):r},u.curve=function(p){return arguments.length?(s=p,a!=null&&(h=s(a)),u):s},u.context=function(p){return arguments.length?(p==null?a=h=null:h=s(a=p),u):a},u}function I0(t,e){return e<t?-1:e>t?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<a-1;++e)s[e]=1,h[e]=4,u[e]=4*t[e]+2*t[e+1];for(s[a-1]=2,h[a-1]=7,u[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=s[e]/h[e-1],h[e]-=r,u[e]-=r*u[e-1];for(s[a-1]=u[a-1]/h[a-1],e=a-2;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<a-1;++e)h[e]=2*t[e+1]-s[e+1];return[s,h]}function pl(t,e){this._context=t,this._t=e}Lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Bh.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:dl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:dl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Pa.prototype={areaStart:du,areaEnd:du,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:dl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},di.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:dl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ga.prototype={areaStart:du,areaEnd:du,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Yo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Mc(this,this._t0,Zp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Mc(this,Zp(this,r=Xp(this,t,e)),r);break;default:Mc(this,this._t0,r=Xp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(ps.prototype=Object.create(Yo.prototype)).point=function(t,e){Yo.prototype.point.call(this,e,t)},pu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,a,s,h){this._context.bezierCurveTo(e,t,a,r,h,s)}},Lh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var a=Ih(t),s=Ih(e),h=0,u=1;u<r;++h,++u)this._context.bezierCurveTo(a[0][h],s[0][h],a[1][h],s[1][h],t[u],e[u]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var 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-u<p-h?u:p},s.offset=function(h,u){return e(h=new Date(+h),u==null?1:Math.floor(u)),h},s.range=function(h,u,p){var _,b=[];if(h=s.ceil(h),p=p==null?1:Math.floor(p),!(h<u&&p>0))return b;do b.push(_=new Date(+h)),e(h,p),t(h);while(_<h&&h<u);return b},s.filter=function(h){return vo(function(u){if(u>=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<r?new Array(r-h+1).join(e)+s:s)}function Pm(t){return t.replace(K5,"\\$&")}function zh(t){return new RegExp("^(?:"+t.map(Pm).join("|")+")","i")}function jh(t){return new Map(t.map((e,r)=>[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));++Te<ve;)Et.charCodeAt(Te)===37&&(xe.push(Et.slice(Gt,Te)),(Mt=P0[ct=Et.charAt(++Te)])!=null?ct=Et.charAt(++Te):Mt=ct==="e"?" ":"0",(yt=wt[ct])&&(ct=yt(vt,Mt)),xe.push(ct),Gt=Te+1);return xe.push(Et.slice(Gt,Te)),xe.join("")}}function Jt(Et,wt){return function(vt){var ct,Mt,yt=bu(1900,void 0,1);if(te(yt,Et,vt+="",0)!=vt.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(wt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(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<Te;){if(ct>=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<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new ef(a)}function ef(t){this._=t}function fb(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=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;a<s;++a)if((r=t[a]).name===e)return r.value}function u3(t,e,r){for(var a=0,s=t.length;a<s;++a)if(t[a].name===e){t[a]=c2,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}ef.prototype=$s.prototype={constructor:ef,on:function(t,e){var r,a=this._,s=fb(t+"",a),h=-1,u=s.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++h<u;)if(r=(t=s[h]).type)a[r]=u3(a[r],t.name,e);else if(e==null)for(r in a)a[r]=u3(a[r],t.name,null);return this}for(;++h<u;)if((r=(t=s[h]).type)&&(r=l3(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ef(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,s=new Array(r),h=0;h<r;++h)s[h]=arguments[h+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(h=0,r=(a=this._[t]).length;h<r;++h)a[h].value.apply(e,s)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],s=0,h=a.length;s<h;++s)a[s].value.apply(e,r)}};const h3=$s;var Hs,Nc,gs=0,Dc=0,Wh=0,yl=0,Oc=0,$h=0,Xa=typeof performance=="object"&&performance.now?performance:Date,jo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Hh(){return Oc||(jo(l2),Oc=Xa.now()+$h)}function l2(){Oc=0}function Bc(){this._call=this._time=this._next=null}function Vh(t,e,r){var a=new Bc;return a.restart(t,e,r),a}function Gh(){Oc=(yl=Xa.now())+$h,gs=Dc=0;try{(function(){Hh(),++gs;for(var t,e=Hs;e;)(t=Oc-e._time)>=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;pt<xt;++pt)(mt=b.tween[pt].value.call(p,p.__data__,b.index,b.group))&&(M[++ft]=mt);M.length=ft+1}}function $(it){for(var pt=it<b.duration?b.ease.call(null,it/b.duration):(b.timer.restart(ht),b.state=5,1),ft=-1,xt=M.length;++ft<xt;)M[ft].call(p,pt);b.state===5&&(b.on.call("end",p,p.__data__,b.index,b.group),ht())}function ht(){for(var it in b.state=6,b.timer.stop(),delete I[_],I)return;delete p.__transition}I[_]=b,b.timer=Vh(function(it){b.state=1,b.timer.restart(R,b.delay,b.time),b.delay<=it&&R(it-b.delay)},0,b.time)})(t,r,{name:e,index:a,group:s,on:Zh,tween:Uo,time:h.time,delay:h.delay,duration:h.duration,ease:h.ease,timer:null,state:0})}function rf(t,e){var r=qo(t,e);if(r.state>0)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*a<e*r&&(t=-t,e=-e,_=-_,u=-u),{translateX:s,translateY:h,rotate:Math.atan2(e,t)*f3,skewX:Math.atan(_)*f3,scaleX:u,scaleY:p}}function f2(t,e,r,a){function s(h){return h.length?h.pop()+" ":""}return function(h,u){var p=[],_=[];return h=t(h),u=t(u),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push("translate(",null,e,null,r);ht.push({i:it-4,x:Vs(b,I)},{i:it-2,x:Vs(M,R)})}else(I||R)&&$.push("translate("+I+e+R+r)}(h.translateX,h.translateY,u.translateX,u.translateY,p,_),function(b,M,I,R){b!==M?(b-M>180?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;++I<R;)p[(M=_[I]).i]=M.x(b);return p.join("")}}}var d3=f2(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?u2:h2(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),d2=f2(function(t){return t==null?u2:(af||(af=document.createElementNS("http://www.w3.org/2000/svg","g")),af.setAttribute("transform",t),(t=af.transform.baseVal.consolidate())?h2((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):u2)},", ",")",")");function p3(t,e){var r,a;return function(){var s=ms(this,t),h=s.tween;if(h!==r){for(var u=0,p=(a=r=h).length;u<p;++u)if(a[u].name===e){(a=a.slice()).splice(u,1);break}}s.tween=a}}function g3(t,e,r){var a,s;if(typeof r!="function")throw new Error;return function(){var h=ms(this,t),u=h.tween;if(u!==a){s=(a=u).slice();for(var p={name:e,value:r},_=0,b=s.length;_<b;++_)if(s[_].name===e){s[_]=p;break}_===b&&s.push(p)}h.tween=s}}function ml(t,e,r){var a=t._id;return t.each(function(){var s=ms(this,a);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return qo(s,a).value[e]}}const ku=function t(e){var r=function(s){return(s=+s)==1?ph: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):Jd(isNaN(h)?u:h)}}(e);function a(s,h){var u=r((s=Ir(s)).r,(h=Ir(h)).r),p=r(s.g,h.g),_=r(s.b,h.b),b=ph(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 Qh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tu=new RegExp(Qh.source,"g");function db(t,e){var r,a,s,h=Qh.lastIndex=Tu.lastIndex=0,u=-1,p=[],_=[];for(t+="",e+="";(r=Qh.exec(t))&&(a=Tu.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:Vs(r,a)})),h=Tu.lastIndex;return h<e.length&&(s=e.slice(h),p[u]?p[u]+=s:p[++u]=s),p.length<2?_[0]?function(b){return function(M){return b(M)+""}}(_[0].x):function(b){return function(){return b}}(e):(e=_.length,function(b){for(var M,I=0;I<e;++I)p[(M=_[I]).i]=M.x(b);return p.join("")})}function p2(t,e){var r;return(typeof e=="number"?Vs:e instanceof In?ku:(r=In(e))?(e=r,ku):db)(t,e)}function y3(t){return function(){this.removeAttribute(t)}}function m3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function v3(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttribute(t);return u===h?null:u===a?s:s=e(a=u,r)}}function pb(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===h?null:u===a?s:s=e(a=u,r)}}function gb(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttribute(t))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttribute(t)}}function Jh(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttributeNS(t.space,t.local))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttributeNS(t.space,t.local)}}function g2(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function y2(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function of(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&y2(t,h)),r}return s._value=e,s}function m2(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&g2(t,h)),r}return s._value=e,s}function v2(t,e){return function(){rf(this,t).delay=+e.apply(this,arguments)}}function b2(t,e){return e=+e,function(){rf(this,t).delay=e}}function yb(t,e){return function(){ms(this,t).duration=+e.apply(this,arguments)}}function b3(t,e){return e=+e,function(){ms(this,t).duration=e}}function mb(t,e){if(typeof e!="function")throw new Error;return function(){ms(this,t).ease=e}}function vb(t,e,r){var a,s,h=function(u){return(u+"").trim().split(/^|\s+/).every(function(p){var _=p.indexOf(".");return _>=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;u<s;++u)for(var p,_,b=a[u],M=b.length,I=h[u]=new Array(M),R=0;R<M;++R)(p=b[R])&&(_=t.call(p,p.__data__,R,b))&&("__data__"in p&&(_.__data__=p.__data__),I[R]=_,ys(I[R],e,r,R,I,qo(p,r)));return new Gs(h,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=pm(t));for(var a=this._groups,s=a.length,h=[],u=[],p=0;p<s;++p)for(var _,b=a[p],M=b.length,I=0;I<M;++I)if(_=b[I]){for(var R,$=t.call(_,_.__data__,I,b),ht=qo(_,r),it=0,pt=$.length;it<pt;++it)(R=$[it])&&ys(R,e,r,it,$,ht);h.push($),u.push(_)}return new Gs(h,u,e,r)},selectChild:lo.selectChild,selectChildren:lo.selectChildren,filter:function(t){typeof t!="function"&&(t=gm(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new Gs(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,s=r.length,h=Math.min(a,s),u=new Array(a),p=0;p<h;++p)for(var _,b=e[p],M=r[p],I=b.length,R=u[p]=new Array(I),$=0;$<I;++$)(_=b[$]||M[$])&&(R[$]=_);for(;p<a;++p)u[p]=e[p];return new Gs(u,this._parents,this._name,this._id)},selection:function(){return new _3(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=w2(),a=this._groups,s=a.length,h=0;h<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)if(u=p[b]){var M=qo(u,e);ys(u,t,r,b,p,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new Gs(a,this._parents,t,r)},call:lo.call,nodes:lo.nodes,node:lo.node,size:lo.size,empty:lo.empty,each:lo.each,on:function(t,e){var r=this._id;return arguments.length<2?qo(this.node(),r).on.on(t):this.each(vb(r,t,e))},attr:function(t,e){var r=ou(t),a=r==="transform"?d2:p2;return this.attrTween(t,typeof e=="function"?(r.local?Jh:gb)(r,a,ml(this,"attr."+t,e)):e==null?(r.local?m3:y3)(r):(r.local?pb:v3)(r,a,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var a=ou(t);return this.tween(r,(a.local?of:m2)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?d3:p2;return e==null?this.styleTween(t,function(s,h){var u,p,_;return function(){var b=su(this,s),M=(this.style.removeProperty(s),su(this,s));return b===M?null:b===u&&M===p?_:_=h(u=b,p=M)}}(t,a)).on("end.style."+t,Wo(t)):typeof e=="function"?this.styleTween(t,function(s,h,u){var p,_,b;return function(){var M=su(this,s),I=u(this),R=I+"";return I==null&&(this.style.removeProperty(s),R=I=su(this,s)),M===R?null:M===p&&R===_?b:(_=R,b=h(p=M,I))}}(t,a,ml(this,"style."+t,e))).each(function(s,h){var u,p,_,b,M="style."+h,I="end."+M;return function(){var R=ms(this,s),$=R.on,ht=R.value[M]==null?b||(b=Wo(h)):void 0;$===u&&_===ht||(p=(u=$).copy()).on(I,_=ht),R.on=p}}(this._id,t)):this.styleTween(t,function(s,h,u){var p,_,b=u+"";return function(){var M=su(this,s);return M===b?null:M===p?_:_=h(p=M,u)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,x2(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(ml(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,sf(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,s=qo(this.node(),r).tween,h=0,u=s.length;h<u;++h)if((a=s[h]).name===t)return a.value;return null}return this.each((e==null?p3:g3)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?v2:b2)(e,t)):qo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yb:b3)(e,t)):qo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(mb(e,t)):qo(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;ms(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,s=r.size();return new Promise(function(h,u){var p={value:u},_={value:function(){--s==0&&h()}};r.each(function(){var b=ms(this,a),M=b.on;M!==t&&((e=(t=M).copy())._.cancel.push(p),e._.interrupt.push(p),e._.end.push(_)),b.on=e}),s===0&&h()})},[Symbol.iterator]:lo[Symbol.iterator]};var k2={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function bb(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function T2(){}function E2(t){return t==null?T2:function(){return this.querySelector(t)}}function Kh(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function _b(){return[]}function C2(t){return t==null?_b:function(){return this.querySelectorAll(t)}}function t1(t){return function(){return this.matches(t)}}function S2(t){return function(e){return e.matches(t)}}Bn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,s,h,u=e.__transition,p=!0;if(u){for(h in r=r==null?null:r+"",u)(a=u[h]).name===r?(s=a.state>2&&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;h<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)(u=p[b])&&ys(u,t,e,b,p,r||bb(u,e));return new Gs(a,this._parents,t,e)};var xb=Array.prototype.find;function e1(){return this.firstElementChild}var wb=Array.prototype.filter;function k3(){return Array.from(this.children)}function T3(t){return new Array(t.length)}function Lc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function n1(t){return function(){return t}}function r1(t,e,r,a,s,h){for(var u,p=0,_=e.length,b=h.length;p<b;++p)(u=e[p])?(u.__data__=h[p],a[p]=u):r[p]=new Lc(t,h[p]);for(;p<_;++p)(u=e[p])&&(s[p]=u)}function i1(t,e,r,a,s,h,u){var p,_,b,M=new Map,I=e.length,R=h.length,$=new Array(I);for(p=0;p<I;++p)(_=e[p])&&($[p]=b=u.call(_,_.__data__,p,e)+"",M.has(b)?s[p]=_:M.set(b,_));for(p=0;p<R;++p)b=u.call(t,h[p],p,h)+"",(_=M.get(b))?(a[p]=_,_.__data__=h[p],M.delete(b)):r[p]=new Lc(t,h[p]);for(p=0;p<I;++p)(_=e[p])&&M.get($[p])===_&&(s[p]=_)}function cf(t){return t.__data__}function A2(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function kb(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Lc.prototype={constructor:Lc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var 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<s;)r.add(e[a])}function S3(t,e){for(var r=B2(t),a=-1,s=e.length;++a<s;)r.remove(e[a])}function A3(t){return function(){vl(this,t)}}function Ob(t){return function(){S3(this,t)}}function hf(t,e){return function(){(e.apply(this,arguments)?vl:S3)(this,t)}}function M3(){this.textContent=""}function I2(t){return function(){this.textContent=t}}function Bb(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function o1(){this.innerHTML=""}function N3(t){return function(){this.innerHTML=t}}function D3(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function O3(){this.nextSibling&&this.parentNode.appendChild(this)}function B3(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ff(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===a1&&e.documentElement.namespaceURI===a1?e.createElement(t):e.createElementNS(r,t)}}function L3(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function I3(t){var e=lf(t);return(e.local?L3:ff)(e)}function Lb(){return null}function df(){var t=this.parentNode;t&&t.removeChild(this)}function bl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ib(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Fb(t){return function(){var e=this.__on;if(e){for(var r,a=0,s=-1,h=e.length;a<h;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++s]=r:this.removeEventListener(r.type,r.listener,r.options);++s?e.length=s:delete this.__on}}}function F3(t,e,r){return function(){var a,s=this.__on,h=function(_){return function(b){_.call(this,b,this.__data__)}}(e);if(s){for(var u=0,p=s.length;u<p;++u)if((a=s[u]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=h,a.options=r),void(a.value=e)}this.addEventListener(t.type,h,r),a={type:t.type,name:t.name,value:e,listener:h,options:r},s?s.push(a):this.__on=[a]}}function pf(t,e,r){var a=uf(t),s=a.CustomEvent;typeof s=="function"?s=new s(e,r):(s=a.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function R3(t,e){return function(){return pf(this,t,e)}}function P3(t,e){return function(){return pf(this,t,e.apply(this,arguments))}}L2.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var 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<r;++s)for(var h,u,p=e[s],_=p.length,b=a[s]=new Array(_),M=0;M<_;++M)(h=p[M])&&(u=t.call(h,h.__data__,M,p))&&("__data__"in h&&(u.__data__=h.__data__),b[M]=u);return new $o(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(M){return function(){return Kh(M.apply(this,arguments))}}(t):C2(t);for(var e=this._groups,r=e.length,a=[],s=[],h=0;h<r;++h)for(var u,p=e[h],_=p.length,b=0;b<_;++b)(u=p[b])&&(a.push(t.call(u,u.__data__,b,p)),s.push(u));return new $o(a,s)},selectChild:function(t){return this.select(t==null?e1:function(e){return function(){return xb.call(this.children,e)}}(typeof t=="function"?t:S2(t)))},selectChildren:function(t){return this.selectAll(t==null?k3:function(e){return function(){return wb.call(this.children,e)}}(typeof t=="function"?t:S2(t)))},filter:function(t){typeof t!="function"&&(t=t1(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new $o(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,cf);var r=e?i1:r1,a=this._parents,s=this._groups;typeof t!="function"&&(t=n1(t));for(var h=s.length,u=new Array(h),p=new Array(h),_=new Array(h),b=0;b<h;++b){var M=a[b],I=s[b],R=I.length,$=A2(t.call(M,M&&M.__data__,b,a)),ht=$.length,it=p[b]=new Array(ht),pt=u[b]=new Array(ht),ft=_[b]=new Array(R);r(M,I,it,pt,ft,$,e);for(var xt,mt,Wt=0,re=0;Wt<ht;++Wt)if(xt=it[Wt]){for(Wt>=re&&(re=Wt+1);!(mt=pt[re])&&++re<ht;);xt._next=mt||null}}return(u=new $o(u,a))._enter=p,u._exit=_,u},enter:function(){return new $o(this._enter||this._groups.map(T3),this._parents)},exit:function(){return new $o(this._exit||this._groups.map(T3),this._parents)},join:function(t,e,r){var a=this.enter(),s=this,h=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(s=e(s))&&(s=s.selection()),r==null?h.remove():r(h),a&&s?a.merge(s).order():s},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,s=r.length,h=a.length,u=Math.min(s,h),p=new Array(s),_=0;_<u;++_)for(var b,M=r[_],I=a[_],R=M.length,$=p[_]=new Array(R),ht=0;ht<R;++ht)(b=M[ht]||I[ht])&&($[ht]=b);for(;_<s;++_)p[_]=r[_];return new $o(p,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,s=t[e],h=s.length-1,u=s[h];--h>=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;h<a;++h){for(var u,p=r[h],_=p.length,b=s[h]=new Array(_),M=0;M<_;++M)(u=p[M])&&(b[M]=u);b.sort(e)}return new $o(s,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],s=0,h=a.length;s<h;++s){var u=a[s];if(u)return u}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var s,h=e[r],u=0,p=h.length;u<p;++u)(s=h[u])&&t.call(s,s.__data__,u,h);return this},attr:function(t,e){var r=lf(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?Tb:M2:typeof e=="function"?r.local?Cb:D2:r.local?Eb:N2)(r,e))},style:function(t,e,r){return arguments.length>1?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<h;)if(!a.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?hf:e?A3:Ob)(r,e))},text:function(t){return arguments.length?this.each(t==null?M3:(typeof t=="function"?Bb:I2)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?o1:(typeof t=="function"?D3:N3)(t)):this.node().innerHTML},raise:function(){return this.each(O3)},lower:function(){return this.each(B3)},append:function(t){var e=typeof t=="function"?t:I3(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:I3(t),a=e==null?Lb:typeof e=="function"?e:E2(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(df)},clone:function(t){return this.select(t?Cu:bl)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,s,h=Ib(t+""),u=h.length;if(!(arguments.length<2)){for(p=e?F3:Fb,a=0;a<u;++a)this.each(p(h[a],e,r));return this}var p=this.node().__on;if(p){for(var _,b=0,M=p.length;b<M;++b)for(a=0,_=p[b];a<u;++a)if((s=h[a]).type===_.type&&s.name===_.name)return _.value}},dispatch:function(t,e){return this.each((typeof e=="function"?P3:R3)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,s=t[e],h=0,u=s.length;h<u;++h)(a=s[h])&&(yield a)}};const c1=Y3;var Rb={value:()=>{}};function z3(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new gf(a)}function gf(t){this._=t}function Pb(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",s=r.indexOf(".");if(s>=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;a<s;++a)if((r=t[a]).name===e)return r.value}function yf(t,e,r){for(var a=0,s=t.length;a<s;++a)if(t[a].name===e){t[a]=Rb,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}gf.prototype=z3.prototype={constructor:gf,on:function(t,e){var r,a=this._,s=Pb(t+"",a),h=-1,u=s.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++h<u;)if(r=(t=s[h]).type)a[r]=yf(a[r],t.name,e);else if(e==null)for(r in a)a[r]=yf(a[r],t.name,null);return this}for(;++h<u;)if((r=(t=s[h]).type)&&(r=F2(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new gf(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,s=new Array(r),h=0;h<r;++h)s[h]=arguments[h+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(h=0,r=(a=this._[t]).length;h<r;++h)a[h].value.apply(e,s)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],s=0,h=a.length;s<h;++s)a[s].value.apply(e,r)}};const Yb=z3;var mf,Ic,Su=0,Fc=0,Au=0,l1=0,Rc=0,vf=0,u1=typeof performance=="object"&&performance.now?performance:Date,j3=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function R2(){return Rc||(j3(zb),Rc=u1.now()+vf)}function zb(){Rc=0}function bf(){this._call=this._time=this._next=null}function P2(t,e,r){var a=new bf;return a.restart(t,e,r),a}function Mu(){Rc=(l1=u1.now())+vf,Su=Fc=0;try{(function(){R2(),++Su;for(var t,e=mf;e;)(t=Rc-e._time)>=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;pt<xt;++pt)(mt=b.tween[pt].value.call(p,p.__data__,b.index,b.group))&&(M[++ft]=mt);M.length=ft+1}}function $(it){for(var pt=it<b.duration?b.ease.call(null,it/b.duration):(b.timer.restart(ht),b.state=5,1),ft=-1,xt=M.length;++ft<xt;)M[ft].call(p,pt);b.state===5&&(b.on.call("end",p,p.__data__,b.index,b.group),ht())}function ht(){for(var it in b.state=6,b.timer.stop(),delete I[_],I)return;delete p.__transition}I[_]=b,b.timer=P2(function(it){b.state=1,b.timer.restart(R,b.delay,b.time),b.delay<=it&&R(it-b.delay)},0,b.time)})(t,r,{name:e,index:a,group:s,on:jb,tween:Ub,time:h.time,delay:h.delay,duration:h.duration,ease:h.ease,timer:null,state:0})}function wf(t,e){var r=Ho(t,e);if(r.state>0)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*a<e*r&&(t=-t,e=-e,_=-_,u=-u),{translateX:s,translateY:h,rotate:Math.atan2(e,t)*h1,skewX:Math.atan(_)*h1,scaleX:u,scaleY:p}}function W3(t,e,r,a){function s(h){return h.length?h.pop()+" ":""}return function(h,u){var p=[],_=[];return h=t(h),u=t(u),function(b,M,I,R,$,ht){if(b!==I||M!==R){var it=$.push("translate(",null,e,null,r);ht.push({i:it-4,x:Xs(b,I)},{i:it-2,x:Xs(M,R)})}else(I||R)&&$.push("translate("+I+e+R+r)}(h.translateX,h.translateY,u.translateX,u.translateY,p,_),function(b,M,I,R){b!==M?(b-M>180?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<R;)p[(M=_[I]).i]=M.x(b);return p.join("")}}}var qb=W3(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?z2:q3(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Wb=W3(function(t){return t==null?z2:(kf||(kf=document.createElementNS("http://www.w3.org/2000/svg","g")),kf.setAttribute("transform",t),(t=kf.transform.baseVal.consolidate())?q3((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):z2)},", ",")",")");function $b(t,e){var r,a;return function(){var s=vs(this,t),h=s.tween;if(h!==r){for(var u=0,p=(a=r=h).length;u<p;++u)if(a[u].name===e){(a=a.slice()).splice(u,1);break}}s.tween=a}}function $3(t,e,r){var a,s;if(typeof r!="function")throw new Error;return function(){var h=vs(this,t),u=h.tween;if(u!==a){s=(a=u).slice();for(var p={name:e,value:r},_=0,b=s.length;_<b;++_)if(s[_].name===e){s[_]=p;break}_===b&&s.push(p)}h.tween=s}}function j2(t,e,r){var a=t._id;return t.each(function(){var s=vs(this,a);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return Ho(s,a).value[e]}}function U2(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function H3(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function bs(){}var Tf=.7,f1=1.4285714285714286,Nu="\\s*([+-]?\\d+)\\s*",Du="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hb=/^#([0-9a-f]{3,8})$/,Vo=new RegExp("^rgb\\("+[Nu,Nu,Nu]+"\\)$"),Zs=new RegExp("^rgb\\("+[_s,_s,_s]+"\\)$"),V3=new RegExp("^rgba\\("+[Nu,Nu,Nu,Du]+"\\)$"),Ef=new RegExp("^rgba\\("+[_s,_s,_s,Du]+"\\)$"),_l=new RegExp("^hsl\\("+[Du,_s,_s]+"\\)$"),q2=new RegExp("^hsla\\("+[Du,_s,_s,Du]+"\\)$"),Cf={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 Sf(){return this.rgb().formatHex()}function W2(){return this.rgb().formatRgb()}function d1(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Hb.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Af(e):r===3?new Za(e>>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*(r<a):r===h?(a-e)/p+2:(e-r)/p+4,p/=_<.5?h+s:2-h-s,u*=60):p=_>0&&_<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<e.length&&(s=e.slice(h),p[u]?p[u]+=s:p[++u]=s),p.length<2?_[0]?function(b){return function(M){return b(M)+""}}(_[0].x):function(b){return function(){return b}}(e):(e=_.length,function(b){for(var M,I=0;I<e;++I)p[(M=_[I]).i]=M.x(b);return p.join("")})}function Z3(t,e){var r;return(typeof e=="number"?Xs:e instanceof d1?G2:(r=d1(e))?(e=r,G2):Vb)(t,e)}function Gb(t){return function(){this.removeAttribute(t)}}function Q3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function X2(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttribute(t);return u===h?null:u===a?s:s=e(a=u,r)}}function J3(t,e,r){var a,s,h=r+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===h?null:u===a?s:s=e(a=u,r)}}function K3(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttribute(t))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttribute(t)}}function t4(t,e,r){var a,s,h;return function(){var u,p,_=r(this);if(_!=null)return(u=this.getAttributeNS(t.space,t.local))===(p=_+"")?null:u===a&&p===s?h:(s=p,h=e(a=u,_));this.removeAttributeNS(t.space,t.local)}}function Z2(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function e4(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function n4(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&e4(t,h)),r}return s._value=e,s}function Xb(t,e){var r,a;function s(){var h=e.apply(this,arguments);return h!==a&&(r=(a=h)&&Z2(t,h)),r}return s._value=e,s}function Zb(t,e){return function(){wf(this,t).delay=+e.apply(this,arguments)}}function Q2(t,e){return e=+e,function(){wf(this,t).delay=e}}function J2(t,e){return function(){vs(this,t).duration=+e.apply(this,arguments)}}function Qb(t,e){return e=+e,function(){vs(this,t).duration=e}}function r4(t,e){if(typeof e!="function")throw new Error;return function(){vs(this,t).ease=e}}function i4(t,e,r){var a,s,h=function(u){return(u+"").trim().split(/^|\s+/).every(function(p){var _=p.indexOf(".");return _>=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;u<s;++u)for(var p,_,b=a[u],M=b.length,I=h[u]=new Array(M),R=0;R<M;++R)(p=b[R])&&(_=t.call(p,p.__data__,R,b))&&("__data__"in p&&(_.__data__=p.__data__),I[R]=_,xf(I[R],e,r,R,I,Ho(p,r)));return new xs(h,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=C2(t));for(var a=this._groups,s=a.length,h=[],u=[],p=0;p<s;++p)for(var _,b=a[p],M=b.length,I=0;I<M;++I)if(_=b[I]){for(var R,$=t.call(_,_.__data__,I,b),ht=Ho(_,r),it=0,pt=$.length;it<pt;++it)(R=$[it])&&xf(R,e,r,it,$,ht);h.push($),u.push(_)}return new xs(h,u,e,r)},selectChild:Js.selectChild,selectChildren:Js.selectChildren,filter:function(t){typeof t!="function"&&(t=t1(t));for(var e=this._groups,r=e.length,a=new Array(r),s=0;s<r;++s)for(var h,u=e[s],p=u.length,_=a[s]=[],b=0;b<p;++b)(h=u[b])&&t.call(h,h.__data__,b,u)&&_.push(h);return new xs(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,s=r.length,h=Math.min(a,s),u=new Array(a),p=0;p<h;++p)for(var _,b=e[p],M=r[p],I=b.length,R=u[p]=new Array(I),$=0;$<I;++$)(_=b[$]||M[$])&&(R[$]=_);for(;p<a;++p)u[p]=e[p];return new xs(u,this._parents,this._name,this._id)},selection:function(){return new a4(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=eg(),a=this._groups,s=a.length,h=0;h<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)if(u=p[b]){var M=Ho(u,e);xf(u,t,r,b,p,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new xs(a,this._parents,t,r)},call:Js.call,nodes:Js.nodes,node:Js.node,size:Js.size,empty:Js.empty,each:Js.each,on:function(t,e){var r=this._id;return arguments.length<2?Ho(this.node(),r).on.on(t):this.each(i4(r,t,e))},attr:function(t,e){var r=lf(t),a=r==="transform"?Wb:Z3;return this.attrTween(t,typeof e=="function"?(r.local?t4:K3)(r,a,j2(this,"attr."+t,e)):e==null?(r.local?Q3:Gb)(r):(r.local?J3:X2)(r,a,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var a=lf(t);return this.tween(r,(a.local?n4:Xb)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?qb:Z3;return e==null?this.styleTween(t,function(s,h){var u,p,_;return function(){var b=Eu(this,s),M=(this.style.removeProperty(s),Eu(this,s));return b===M?null:b===u&&M===p?_:_=h(u=b,p=M)}}(t,a)).on("end.style."+t,Df(t)):typeof e=="function"?this.styleTween(t,function(s,h,u){var p,_,b;return function(){var M=Eu(this,s),I=u(this),R=I+"";return I==null&&(this.style.removeProperty(s),R=I=Eu(this,s)),M===R?null:M===p&&R===_?b:(_=R,b=h(p=M,I))}}(t,a,j2(this,"style."+t,e))).each(function(s,h){var u,p,_,b,M="style."+h,I="end."+M;return function(){var R=vs(this,s),$=R.on,ht=R.value[M]==null?b||(b=Df(h)):void 0;$===u&&_===ht||(p=(u=$).copy()).on(I,_=ht),R.on=p}}(this._id,t)):this.styleTween(t,function(s,h,u){var p,_,b=u+"";return function(){var M=Eu(this,s);return M===b?null:M===p?_:_=h(p=M,u)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,qi(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(j2(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,wl(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,s=Ho(this.node(),r).tween,h=0,u=s.length;h<u;++h)if((a=s[h]).name===t)return a.value;return null}return this.each((e==null?$b:$3)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Zb:Q2)(e,t)):Ho(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?J2:Qb)(e,t)):Ho(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(r4(e,t)):Ho(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;vs(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,s=r.size();return new Promise(function(h,u){var p={value:u},_={value:function(){--s==0&&h()}};r.each(function(){var b=vs(this,a),M=b.on;M!==t&&((e=(t=M).copy())._.cancel.push(p),e._.interrupt.push(p),e._.end.push(_)),b.on=e}),s===0&&h()})},[Symbol.iterator]:Js[Symbol.iterator]};var Of={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function kl(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}c1.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,s,h,u=e.__transition,p=!0;if(u){for(h in r=r==null?null:r+"",u)(a=u[h]).name===r?(s=a.state>2&&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;h<s;++h)for(var u,p=a[h],_=p.length,b=0;b<_;++b)(u=p[b])&&xf(u,t,e,b,p,r||kl(u,e));return new xs(a,this._parents,t,e)};var m1="comm",ng="rule",rg="decl",Tl=Math.abs,El=String.fromCharCode;function Ou(t){return t.trim()}function Bf(t,e,r){return t.replace(e,r)}function o4(t,e){return t.indexOf(e)}function Ks(t,e){return 0|t.charCodeAt(e)}function Bu(t,e,r){return t.slice(e,r)}function tc(t){return t.length}function ig(t){return t.length}function Lf(t,e){return e.push(t),t}function ag(t,e){for(var r="",a=ig(t),s=0;s<a;s++)r+=e(t[s],s,t,e)||"";return r}function Kb(t,e,r,a){switch(t.type){case"@import":case rg:return t.return=t.return||t.value;case m1:return"";case"@keyframes":return t.return=t.value+"{"+ag(t.children,a)+"}";case ng:t.value=t.props.join(",")}return tc(r=ag(t.children,a))?t.return=t.value+"{"+r+"}":""}var If=1,Lu=1,s4=0,uo=0,pi=0,Iu="";function Ff(t,e,r,a,s,h,u){return{value:t,root:e,parent:r,type:a,props:s,children:h,line:If,column:Lu,length:u,return:""}}function c4(){return pi=uo>0?Ks(Iu,--uo):0,Lu--,pi===10&&(Lu=1,If--),pi}function Xo(){return pi=uo<s4?Ks(Iu,uo++):0,Lu++,pi===10&&(Lu=1,If++),pi}function Pc(){return Ks(Iu,uo)}function v1(){return uo}function Rf(t,e){return Bu(Iu,t,e)}function Pf(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fu(t){return Ou(Rf(uo-1,Ru(t===91?t+2:t===40?t+1:t)))}function l4(t){for(;(pi=Pc())&&pi<33;)Xo();return Pf(t)>2||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;ht<a;++ht)for(var ft=0,xt=Bu(t,I+1,I=Tl(it=u[ht])),mt=t;ft<$;++ft)(mt=Ou(it>0?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("<script"))>=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}var a=d4(e);return(a=(a=(a=(a=a.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},g4=function(t,e){var r=t,a=!0;if(!e.flowchart||e.flowchart.htmlLabels!==!1&&e.flowchart.htmlLabels!=="false"||(a=!1),a){var s=e.securityLevel;s==="antiscript"||s==="strict"?r=p4(r):s!=="loose"&&(r=(r=(r=_1(r)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),r=y4(r))}return r},ws=function(t,e){return t&&(e.dompurifyConfig?cg().sanitize(g4(t,e),e.dompurifyConfig):cg().sanitize(g4(t,e)))},zf=/<br\s*\/?>/gi,y4=function(t){return t.replace(/#br#/g,"<br/>")},_1=function(t){return t.replace(zf,"#br#")},da=function(t){return t!=="false"&&t!==!1};const Xn={getRows:function(t){if(!t)return 1;var e=_1(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:ws,sanitizeTextOrArray:function(t,e){return typeof t=="string"?ws(t,e):t.flat().map(function(r){return ws(r,e)})},hasBreaks:function(t){return zf.test(t)},splitBreaks:function(t){return t.split(zf)},lineBreakRegex:zf,removeScript:p4,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:da,removeEscapes:d4},ks={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},a)=>{if(!e)return 2.55*r;t/=360,e/=100;const s=(r/=100)<.5?r*(1+e):r+e-r*e,h=2*r-s;switch(a){case"r":return 255*ks.hue2rgb(h,s,t+1/3);case"g":return 255*ks.hue2rgb(h,s,t);case"b":return 255*ks.hue2rgb(h,s,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},a)=>{t/=255,e/=255,r/=255;const s=Math.max(t,e,r),h=Math.min(t,e,r),u=(s+h)/2;if(a==="l")return 100*u;if(s===h)return 0;const p=s-h;if(a==="s")return 100*(u>.5?p/(2-s-h):p/(s+h));switch(s){case t:return 60*((e-r)/p+(e<r?6:0));case e:return 60*((r-t)/p+2);case r:return 60*((t-e)/p+4);default:return-1}}},t6={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},lg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},tr={channel:ks,lang:t6,unit:lg},bo={};for(let t=0;t<=255;t++)bo[t]=tr.unit.dec2hex(t);const x1=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=0}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=0}is(r){return this.type===r}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:a}=t;e===void 0&&(t.h=tr.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=tr.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=tr.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:a}=t;e===void 0&&(t.r=tr.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=tr.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=tr.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||e===void 0?(this._ensureHSL(),tr.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||e===void 0?(this._ensureHSL(),tr.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||e===void 0?(this._ensureHSL(),tr.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||e===void 0?(this._ensureRGB(),tr.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||e===void 0?(this._ensureRGB(),tr.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||e===void 0?(this._ensureRGB(),tr.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),Sl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Sl.re);if(!e)return;const r=e[1],a=parseInt(r,16),s=r.length,h=s%4==0,u=s>4,p=u?1:17,_=u?8:4,b=h?0:-1,M=u?255:15;return x1.set({r:(a>>_*(b+3)&M)*p,g:(a>>_*(b+2)&M)*p,b:(a>>_*(b+1)&M)*p,a:h?(a&M)*p/255:1},t)},stringify:t=>{const{r:e,g:r,b:a,a:s}=t;return s<1?`#${bo[Math.round(e)]}${bo[Math.round(r)]}${bo[Math.round(a)]}${bo[Math.round(255*s)]}`:`#${bo[Math.round(e)]}${bo[Math.round(r)]}${bo[Math.round(a)]}`}},Al=Sl,w1={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(w1.hueRe);if(e){const[,r,a]=e;switch(a){case"grad":return tr.channel.clamp.h(.9*parseFloat(r));case"rad":return tr.channel.clamp.h(180*parseFloat(r)/Math.PI);case"turn":return tr.channel.clamp.h(360*parseFloat(r))}}return tr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(w1.re);if(!r)return;const[,a,s,h,u,p]=r;return x1.set({h:w1._hue2deg(a),s:tr.channel.clamp.s(parseFloat(s)),l:tr.channel.clamp.l(parseFloat(h)),a:u?tr.channel.clamp.a(p?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{h:e,s:r,l:a,a:s}=t;return s<1?`hsla(${tr.lang.round(e)}, ${tr.lang.round(r)}%, ${tr.lang.round(a)}%, ${s})`:`hsl(${tr.lang.round(e)}, ${tr.lang.round(r)}%, ${tr.lang.round(a)}%)`}},Ml=w1,Pu={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Pu.colors[t];if(e)return Al.parse(e)},stringify:t=>{const e=Al.stringify(t);for(const r in Pu.colors)if(Pu.colors[r]===e)return r}},ug=Pu,Wi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(Wi.re);if(!r)return;const[,a,s,h,u,p,_,b,M]=r;return x1.set({r:tr.channel.clamp.r(s?2.55*parseFloat(a):parseFloat(a)),g:tr.channel.clamp.g(u?2.55*parseFloat(h):parseFloat(h)),b:tr.channel.clamp.b(_?2.55*parseFloat(p):parseFloat(p)),a:b?tr.channel.clamp.a(M?parseFloat(b)/100:parseFloat(b)):1},t)},stringify:t=>{const{r:e,g:r,b:a,a:s}=t;return s<1?`rgba(${tr.lang.round(e)}, ${tr.lang.round(r)}, ${tr.lang.round(a)}, ${tr.lang.round(s)})`:`rgb(${tr.lang.round(e)}, ${tr.lang.round(r)}, ${tr.lang.round(a)})`}},jf=Wi,e6={format:{keyword:ug,hex:Al,rgb:jf,rgba:jf,hsl:Ml,hsla:Ml},parse:t=>{if(typeof t!="string")return t;const e=Al.parse(t)||jf.parse(t)||Ml.parse(t)||ug.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(2)||t.data.r===void 0?Ml.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?jf.stringify(t):Al.stringify(t)},sr=e6,m4=(t,e)=>{const r=sr.parse(t);for(const a in e)r[a]=tr.channel.clamp[a](e[a]);return sr.stringify(r)},Ge=(t,e)=>{const r=sr.parse(t),a={};for(const s in e)e[s]&&(a[s]=r[s]+e[s]);return m4(t,a)},nc=(t,e,r=0,a=1)=>{if(typeof t!="number")return m4(t,{a:e});const s=x1.set({r:tr.channel.clamp.r(t),g:tr.channel.clamp.g(e),b:tr.channel.clamp.b(r),a:tr.channel.clamp.a(a)});return sr.stringify(s)},vn=(t,e=100)=>{const r=sr.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((a,s,h=50)=>{const{r:u,g:p,b:_,a:b}=sr.parse(a),{r:M,g:I,b:R,a:$}=sr.parse(s),ht=h/100,it=2*ht-1,pt=b-$,ft=((it*pt==-1?it:(it+pt)/(1+it*pt))+1)/2,xt=1-ft;return nc(u*ft+M*xt,p*ft+I*xt,_*ft+R*xt,b*ht+$*(1-ht))})(r,t,e)},v4=(t,e,r)=>{const a=sr.parse(t),s=a[e],h=tr.channel.clamp[e](s+r);return s!==h&&(a[e]=h),sr.stringify(a)},wr=(t,e)=>v4(t,"l",-e),Zn=(t,e)=>v4(t,"l",e);var ja=function(t,e){return Ge(t,e?{s:-40,l:10}:{s:-40,l:-10})};function Uf(t){return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uf(t)}function b4(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var n6=function(){function t(){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ge(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ge(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ja(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ja(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ja(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ja(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||vn(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||vn(this.tertiaryColor),this.lineColor=this.lineColor||vn(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?wr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||wr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||vn(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Zn(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ge(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ge(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ge(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ge(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ge(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?wr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zn(this.git0,25),this.git1=Zn(this.git1,25),this.git2=Zn(this.git2,25),this.git3=Zn(this.git3,25),this.git4=Zn(this.git4,25),this.git5=Zn(this.git5,25),this.git6=Zn(this.git6,25),this.git7=Zn(this.git7,25)):(this.git0=wr(this.git0,25),this.git1=wr(this.git1,25),this.git2=wr(this.git2,25),this.git3=wr(this.git3,25),this.git4=wr(this.git4,25),this.git5=wr(this.git5,25),this.git6=wr(this.git6,25),this.git7=wr(this.git7,25)),this.gitInv0=this.gitInv0||vn(this.git0),this.gitInv1=this.gitInv1||vn(this.git1),this.gitInv2=this.gitInv2||vn(this.git2),this.gitInv3=this.gitInv3||vn(this.git3),this.gitInv4=this.gitInv4||vn(this.git4),this.gitInv5=this.gitInv5||vn(this.git5),this.gitInv6=this.gitInv6||vn(this.git6),this.gitInv7=this.gitInv7||vn(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var s=this;if(Uf(a)==="object"){var h=Object.keys(a);h.forEach(function(u){s[u]=a[u]}),this.updateColors(),h.forEach(function(u){s[u]=a[u]})}else this.updateColors()}}],r&&b4(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function hg(t){return hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hg(t)}function r6(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var _4=function(){function t(){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Zn(this.primaryColor,16),this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=vn(this.background),this.secondaryBorderColor=ja(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ja(this.tertiaryColor,this.darkMode),this.primaryTextColor=vn(this.primaryColor),this.secondaryTextColor=vn(this.secondaryColor),this.tertiaryTextColor=vn(this.tertiaryColor),this.lineColor=vn(this.background),this.textColor=vn(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Zn(vn("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=nc(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=wr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=nc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=nc(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=Zn(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Zn(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Zn(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?wr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Zn(this.secondaryColor,20),this.git1=Zn(this.pie2||this.secondaryColor,20),this.git2=Zn(this.pie3||this.tertiaryColor,20),this.git3=Zn(this.pie4||Ge(this.primaryColor,{h:-30}),20),this.git4=Zn(this.pie5||Ge(this.primaryColor,{h:-60}),20),this.git5=Zn(this.pie6||Ge(this.primaryColor,{h:-90}),10),this.git6=Zn(this.pie7||Ge(this.primaryColor,{h:60}),10),this.git7=Zn(this.pie8||Ge(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||vn(this.git0),this.gitInv1=this.gitInv1||vn(this.git1),this.gitInv2=this.gitInv2||vn(this.git2),this.gitInv3=this.gitInv3||vn(this.git3),this.gitInv4=this.gitInv4||vn(this.git4),this.gitInv5=this.gitInv5||vn(this.git5),this.gitInv6=this.gitInv6||vn(this.git6),this.gitInv7=this.gitInv7||vn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var s=this;if(hg(a)==="object"){var h=Object.keys(a);h.forEach(function(u){s[u]=a[u]}),this.updateColors(),h.forEach(function(u){s[u]=a[u]})}else this.updateColors()}}],r&&r6(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function fg(t){return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fg(t)}function x4(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var i6=function(){function t(){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ge(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=ja(this.primaryColor,this.darkMode),this.secondaryBorderColor=ja(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ja(this.tertiaryColor,this.darkMode),this.primaryTextColor=vn(this.primaryColor),this.secondaryTextColor=vn(this.secondaryColor),this.tertiaryTextColor=vn(this.tertiaryColor),this.lineColor=vn(this.background),this.textColor=vn(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=nc(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Zn(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ge(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ge(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ge(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zn(this.git0,25),this.git1=Zn(this.git1,25),this.git2=Zn(this.git2,25),this.git3=Zn(this.git3,25),this.git4=Zn(this.git4,25),this.git5=Zn(this.git5,25),this.git6=Zn(this.git6,25),this.git7=Zn(this.git7,25)):(this.git0=wr(this.git0,25),this.git1=wr(this.git1,25),this.git2=wr(this.git2,25),this.git3=wr(this.git3,25),this.git4=wr(this.git4,25),this.git5=wr(this.git5,25),this.git6=wr(this.git6,25),this.git7=wr(this.git7,25)),this.gitInv0=this.gitInv0||wr(vn(this.git0),25),this.gitInv1=this.gitInv1||vn(this.git1),this.gitInv2=this.gitInv2||vn(this.git2),this.gitInv3=this.gitInv3||vn(this.git3),this.gitInv4=this.gitInv4||vn(this.git4),this.gitInv5=this.gitInv5||vn(this.git5),this.gitInv6=this.gitInv6||vn(this.git6),this.gitInv7=this.gitInv7||vn(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||vn(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||vn(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var s=this;if(fg(a)==="object"){var h=Object.keys(a);h.forEach(function(u){s[u]=a[u]}),this.updateColors(),h.forEach(function(u){s[u]=a[u]})}else this.updateColors()}}],r&&x4(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function dg(t){return dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dg(t)}function a6(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var o6=function(){function t(){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Zn("#cde498",10),this.primaryBorderColor=ja(this.primaryColor,this.darkMode),this.secondaryBorderColor=ja(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ja(this.tertiaryColor,this.darkMode),this.primaryTextColor=vn(this.primaryColor),this.secondaryTextColor=vn(this.secondaryColor),this.tertiaryTextColor=vn(this.primaryColor),this.lineColor=vn(this.background),this.textColor=vn(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=wr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ge(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ge(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ge(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ge(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ge(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ge(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ge(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ge(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ge(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ge(this.primaryColor,{h:-30}),this.git4=this.git4||Ge(this.primaryColor,{h:-60}),this.git5=this.git5||Ge(this.primaryColor,{h:-90}),this.git6=this.git6||Ge(this.primaryColor,{h:60}),this.git7=this.git7||Ge(this.primaryColor,{h:120}),this.darkMode?(this.git0=Zn(this.git0,25),this.git1=Zn(this.git1,25),this.git2=Zn(this.git2,25),this.git3=Zn(this.git3,25),this.git4=Zn(this.git4,25),this.git5=Zn(this.git5,25),this.git6=Zn(this.git6,25),this.git7=Zn(this.git7,25)):(this.git0=wr(this.git0,25),this.git1=wr(this.git1,25),this.git2=wr(this.git2,25),this.git3=wr(this.git3,25),this.git4=wr(this.git4,25),this.git5=wr(this.git5,25),this.git6=wr(this.git6,25),this.git7=wr(this.git7,25)),this.gitInv0=this.gitInv0||vn(this.git0),this.gitInv1=this.gitInv1||vn(this.git1),this.gitInv2=this.gitInv2||vn(this.git2),this.gitInv3=this.gitInv3||vn(this.git3),this.gitInv4=this.gitInv4||vn(this.git4),this.gitInv5=this.gitInv5||vn(this.git5),this.gitInv6=this.gitInv6||vn(this.git6),this.gitInv7=this.gitInv7||vn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var s=this;if(dg(a)==="object"){var h=Object.keys(a);h.forEach(function(u){s[u]=a[u]}),this.updateColors(),h.forEach(function(u){s[u]=a[u]})}else this.updateColors()}}],r&&a6(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function pg(t){return pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pg(t)}function s6(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var c6=function(){function t(){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Zn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ge(this.primaryColor,{h:-160}),this.primaryBorderColor=ja(this.primaryColor,this.darkMode),this.secondaryBorderColor=ja(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ja(this.tertiaryColor,this.darkMode),this.primaryTextColor=vn(this.primaryColor),this.secondaryTextColor=vn(this.secondaryColor),this.tertiaryTextColor=vn(this.tertiaryColor),this.lineColor=vn(this.background),this.textColor=vn(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=Zn(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Zn(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=Zn(this.contrast,30),this.sectionBkgColor2=Zn(this.contrast,30),this.taskBorderColor=wr(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Zn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=wr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ge(this.primaryColor,{h:64}),this.fillType3=Ge(this.secondaryColor,{h:64}),this.fillType4=Ge(this.primaryColor,{h:-64}),this.fillType5=Ge(this.secondaryColor,{h:-64}),this.fillType6=Ge(this.primaryColor,{h:128}),this.fillType7=Ge(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=wr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ge(this.primaryColor,{h:-30}),this.git4=this.pie5||Ge(this.primaryColor,{h:-60}),this.git5=this.pie6||Ge(this.primaryColor,{h:-90}),this.git6=this.pie7||Ge(this.primaryColor,{h:60}),this.git7=this.pie8||Ge(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||vn(this.git0),this.gitInv1=this.gitInv1||vn(this.git1),this.gitInv2=this.gitInv2||vn(this.git2),this.gitInv3=this.gitInv3||vn(this.git3),this.gitInv4=this.gitInv4||vn(this.git4),this.gitInv5=this.gitInv5||vn(this.git5),this.gitInv6=this.gitInv6||vn(this.git6),this.gitInv7=this.gitInv7||vn(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var s=this;if(pg(a)==="object"){var h=Object.keys(a);h.forEach(function(u){s[u]=a[u]}),this.updateColors(),h.forEach(function(u){s[u]=a[u]})}else this.updateColors()}}],r&&s6(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const rc={base:{getThemeVariables:function(t){var e=new n6;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new _4;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new i6;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new o6;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new c6;return e.calculate(t),e}}};function gg(t){return function(e){if(Array.isArray(e))return yg(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return yg(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?yg(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function mg(t){return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(t)}var Nl={theme:"default",themeVariables:rc.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};Nl.class.arrowMarkerAbsolute=Nl.arrowMarkerAbsolute,Nl.gitGraph.arrowMarkerAbsolute=Nl.arrowMarkerAbsolute;var l6=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(a,s){return Array.isArray(e[s])?a:mg(e[s])==="object"&&e[s]!==null?[].concat(gg(a),[r+s],gg(t(e[s],""))):[].concat(gg(a),[r+s])},[])}(Nl,"");const u6=Nl;var h6=void 0;function f6(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function w4(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=k4(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(_){throw _},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h,u=!0,p=!1;return{s:function(){r=r.call(t)},n:function(){var _=r.next();return u=_.done,_},e:function(_){p=!0,h=_},f:function(){try{u||r.return==null||r.return()}finally{if(p)throw h}}}}function _o(t){return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(t)}function vg(t){return function(e){if(Array.isArray(e))return bg(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||k4(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k4(t,e){if(t){if(typeof t=="string")return bg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bg(t,e):void 0}}function bg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var qf,d6={curveBasis:Xr,curveBasisClosed:function(t){return new Pa(t)},curveBasisOpen:function(t){return new di(t)},curveLinear:mo,curveLinearClosed:function(t){return new Ga(t)},curveMonotoneX:function(t){return new Yo(t)},curveMonotoneY:function(t){return new ps(t)},curveNatural:function(t){return new Lh(t)},curveStep:function(t){return new pl(t,.5)},curveStepAfter:function(t){return new pl(t,1)},curveStepBefore:function(t){return new pl(t,0)}},Wf=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,p6=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,g6=/\s*%%.*\n/gm,T4=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(p6.source,`)(?=[}][%]{2}).*
`),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),v.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var a,s=[];(a=Wf.exec(t))!==null;)if(a.index===Wf.lastIndex&&Wf.lastIndex++,a&&!e||e&&a[1]&&a[1].match(e)||e&&a[2]&&a[2].match(e)){var h=a[1]?a[1]:a[2],u=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:h,args:u})}return s.length===0&&s.push({type:t,args:null}),s.length===1?s[0]:s}catch(p){return v.error("ERROR: ".concat(p.message,` - Unable to parse directive
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},_g=function(t,e){return(t=t.replace(Wf,"").replace(g6,`
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)?"c4":t.match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"gitGraph":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},$f=function(t,e){var r={};return function(){for(var a=arguments.length,s=new Array(a),h=0;h<a;h++)s[h]=arguments[h];var u=e?e.apply(h6,s):s[0];if(u in r)return r[u];var p=t.apply(void 0,s);return r[u]=p,p}},Ts=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return d6[r]||e},Yu=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},ic=function(t){for(var e="",r="",a=0;a<t.length;a++)t[a]!==void 0&&(t[a].startsWith("color:")||t[a].startsWith("text-align:")?r=r+t[a]+";":e=e+t[a]+";");return{style:e,labelStyle:r}},E4=0,C4=function(){return E4++,"id-"+Math.random().toString(36).substr(2,12)+"-"+E4},S4=function(t){return function(e){for(var r="",a="0123456789abcdef",s=a.length,h=0;h<e;h++)r+=a.charAt(Math.floor(Math.random()*s));return r}(t.length)},$i=function t(e,r,a){var s=Object.assign({depth:2,clobber:!1},a),h=s.depth,u=s.clobber;return Array.isArray(r)&&!Array.isArray(e)?(r.forEach(function(p){return t(e,p,a)}),e):Array.isArray(r)&&Array.isArray(e)?(r.forEach(function(p){e.indexOf(p)===-1&&e.push(p)}),e):e===void 0||h<=0?e!=null&&_o(e)==="object"&&_o(r)==="object"?Object.assign(e,r):r:(r!==void 0&&_o(e)==="object"&&_o(r)==="object"&&Object.keys(r).forEach(function(p){_o(r[p])!=="object"||e[p]!==void 0&&_o(e[p])!=="object"?(u||_o(e[p])!=="object"&&_o(r[p])!=="object")&&(e[p]=r[p]):(e[p]===void 0&&(e[p]=Array.isArray(r[p])?[]:{}),e[p]=t(e[p],r[p],{depth:h-1,clobber:u}))}),e)},y6=function(t,e){var r=e.text.replace(Xn.lineBreakRegex," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",e.fontSize),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);var s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),a},A4=$f(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Xn.lineBreakRegex.test(t)))return t;var a=t.split(" "),s=[],h="";return a.forEach(function(u,p){var _=Es("".concat(u," "),r),b=Es(h,r);if(_>e){var M=M4(u,e,"-",r),I=M.hyphenatedStrings,R=M.remainingWord;s.push.apply(s,[h].concat(vg(I))),h=R}else b+_>=e?(s.push(h),h=u):h=[h,u].filter(Boolean).join(" ");p+1===a.length&&s.push(h)}),s.filter(function(u){return u!==""}).join(r.joinWith)},function(t,e,r){return"".concat(t,"-").concat(e,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)}),M4=$f(function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);var s=t.split(""),h=[],u="";return s.forEach(function(p,_){var b="".concat(u).concat(p);if(Es(b,a)>=e){var M=_+1,I=s.length===M,R="".concat(b).concat(r);h.push(I?b:R),u=""}else u=b}),{hyphenatedStrings:h,remainingWord:u}},function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(r,"-").concat(a.fontSize,"-").concat(a.fontWeight,"-").concat(a.fontFamily)}),xg=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),wg(t,e).height},Es=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),wg(t,e).width},wg=$f(function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),a=r.fontSize,s=r.fontFamily,h=r.fontWeight;if(!t)return{width:0,height:0};var u=["sans-serif",s],p=t.split(Xn.lineBreakRegex),_=[],b=ze("body");if(!b.remove)return{width:0,height:0,lineHeight:0};for(var M=b.append("svg"),I=0,R=u;I<R.length;I++){var $,ht=R[I],it=0,pt={width:0,height:0,lineHeight:0},ft=w4(p);try{for(ft.s();!($=ft.n()).done;){var xt=$.value,mt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};mt.text=xt;var Wt=y6(M,mt).style("font-size",a).style("font-weight",h).style("font-family",ht),re=(Wt._groups||Wt)[0][0].getBBox();pt.width=Math.round(Math.max(pt.width,re.width)),it=Math.round(re.height),pt.height+=it,pt.lineHeight=Math.round(Math.max(pt.lineHeight,it))}}catch(Rt){ft.e(Rt)}finally{ft.f()}_.push(pt)}return M.remove(),_[isNaN(_[1].height)||isNaN(_[1].width)||isNaN(_[1].lineHeight)||_[0].height>_[1].height&&_[0].width>_[1].width&&_[0].lineHeight>_[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),N4=function(t,e,r){var a=new Map;return a.set("height",t),r?(a.set("width","100%"),a.set("style","max-width: ".concat(e,"px;"))):a.set("width",e),a},ho=function(t,e,r,a){(function(s,h){var u,p=w4(h);try{for(p.s();!(u=p.n()).done;){var _=u.value;s.attr(_[0],_[1])}}catch(b){p.e(b)}finally{p.f()}})(t,N4(e,r,a))},Hf=function(t,e,r,a){var s=e.node().getBBox(),h=s.width,u=s.height,p=t._label.width,_=t._label.height,b=0,M=0;h>p&&(b=(h-p)/2+r,p=h+2*r),u>_&&(M=(u-_)/2+r,_=u+2*r),ho(e,_,p,a);var I="0 0 ".concat(p," ").concat(_);v.debug("Grpah.label",t._label,"swidth",h,"sheight",u,"width",p,"height",_,"tx",b,"ty",M,"vBox",I),e.attr("viewBox",I),e.select("g").attr("transform","translate(".concat(b,", ").concat(M,")"))},Vf=function t(e){v.debug("directiveSanitizer called with",e),_o(e)==="object"&&(e.length?e.forEach(function(r){return t(r)}):Object.keys(e).forEach(function(r){v.debug("Checking key",r),r.indexOf("__")===0&&(v.debug("sanitize deleting __ option",r),delete e[r]),r.indexOf("proto")>=0&&(v.debug("sanitize deleting proto option",r),delete e[r]),r.indexOf("constr")>=0&&(v.debug("sanitize deleting constr option",r),delete e[r]),r.indexOf("themeCSS")>=0&&(v.debug("sanitizing themeCss option"),e[r]=D4(e[r])),l6.indexOf(r)<0?(v.debug("sanitize deleting option",r),delete e[r]):_o(e[r])==="object"&&(v.debug("sanitize deleting object",r),t(e[r]))}))},D4=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const ir={assignWithDepth:$i,wrapLabel:A4,calculateTextHeight:xg,calculateTextWidth:Es,calculateTextDimensions:wg,calculateSvgSizeAttrs:N4,configureSvgSize:ho,setupGraphViewbox:Hf,detectInit:function(t,e){var r=T4(t,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(r)){var s=r.map(function(u){return u.args});Vf(s),a=$i(a,vg(s))}else a=r.args;if(a){var h=_g(t,e);["config"].forEach(function(u){a[u]!==void 0&&(h==="flowchart-v2"&&(h="flowchart"),a[h]=a[u],delete a[u])})}return a},detectDirective:T4,detectType:_g,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:Ts,calcLabelPosition:function(t){return t.length===1?t[0]:function(e){var r,a=0;e.forEach(function(u){a+=Yu(u,r),r=u});var s=a/2,h=void 0;return r=void 0,e.forEach(function(u){if(r&&!h){var p=Yu(u,r);if(p<s)s-=p;else{var _=s/p;_<=0&&(h=r),_>=1&&(h={x:u.x,y:u.y}),_>0&&_<1&&(h={x:(1-_)*r.x+_*u.x,y:(1-_)*r.y+_*u.y})}}r=u}),h}(t)},calcCardinalityPosition:function(t,e,r){var a;v.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach(function(b){Yu(b,a),a=b});var s,h=25;a=void 0,e.forEach(function(b){if(a&&!s){var M=Yu(b,a);if(M<h)h-=M;else{var I=h/M;I<=0&&(s=a),I>=1&&(s={x:b.x,y:b.y}),I>0&&I<1&&(s={x:(1-I)*a.x+I*b.x,y:(1-I)*a.y+I*b.y})}}a=b});var u=t?10:5,p=Math.atan2(e[0].y-s.y,e[0].x-s.x),_={x:0,y:0};return _.x=Math.sin(p)*u+(e[0].x+s.x)/2,_.y=-Math.cos(p)*u+(e[0].y+s.y)/2,_},calcTerminalLabelPosition:function(t,e,r){var a,s=JSON.parse(JSON.stringify(r));v.info("our points",s),e!=="start_left"&&e!=="start_right"&&(s=s.reverse()),s.forEach(function(M){Yu(M,a),a=M});var h,u=25+t;a=void 0,s.forEach(function(M){if(a&&!h){var I=Yu(M,a);if(I<u)u-=I;else{var R=u/I;R<=0&&(h=a),R>=1&&(h={x:M.x,y:M.y}),R>0&&R<1&&(h={x:(1-R)*a.x+R*M.x,y:(1-R)*a.y+R*M.y})}}a=M});var p=10+.5*t,_=Math.atan2(s[0].y-h.y,s[0].x-h.x),b={x:0,y:0};return b.x=Math.sin(_)*p+(s[0].x+h.x)/2,b.y=-Math.cos(_)*p+(s[0].y+h.y)/2,e==="start_left"&&(b.x=Math.sin(_+Math.PI)*p+(s[0].x+h.x)/2,b.y=-Math.cos(_+Math.PI)*p+(s[0].y+h.y)/2),e==="end_right"&&(b.x=Math.sin(_-Math.PI)*p+(s[0].x+h.x)/2-5,b.y=-Math.cos(_-Math.PI)*p+(s[0].y+h.y)/2-5),e==="end_left"&&(b.x=Math.sin(_)*p+(s[0].x+h.x)/2-5,b.y=-Math.cos(_)*p+(s[0].y+h.y)/2-5),b},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,ec.N)(r):r},getStylesFromArray:ic,generateId:C4,random:S4,memoize:$f,runFunc:function(t){for(var e,r=t.split("."),a=r.length-1,s=r[a],h=window,u=0;u<a;u++)if(!(h=h[r[u]]))return;for(var p=arguments.length,_=new Array(p>1?p-1:0),b=1;b<p;b++)_[b-1]=arguments[b];(e=h)[s].apply(e,_)},entityDecode:function(t){return qf=qf||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),qf.innerHTML=t,unescape(qf.textContent)},initIdGeneratior:function(){function t(a,s){(function(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=a,this.seed=s,this.count=s?s.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&f6(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:Vf,sanitizeCss:D4};function Gf(t){return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gf(t)}var kg,Tg,Dl=Object.freeze(u6),Ki=$i({},Dl),k1=[],zu=$i({},Dl),Xf=function(t,e){for(var r=$i({},t),a={},s=0;s<e.length;s++){var h=e[s];m6(h),a=$i(a,h)}if(r=$i(r,a),a.theme&&rc[a.theme]){var u=$i({},kg),p=$i(u.themeVariables||{},a.themeVariables);r.themeVariables=rc[r.theme].getThemeVariables(p)}return zu=r,r},Eg=function(){return $i({},Ki)},Vt=function(){return $i({},zu)},m6=function t(e){Object.keys(Ki.secure).forEach(function(r){e[Ki.secure[r]]!==void 0&&(v.debug("Denied attempt to modify a secure key ".concat(Ki.secure[r]),e[Ki.secure[r]]),delete e[Ki.secure[r]])}),Object.keys(e).forEach(function(r){r.indexOf("__")===0&&delete e[r]}),Object.keys(e).forEach(function(r){typeof e[r]=="string"&&(e[r].indexOf("<")>-1||e[r].indexOf(">")>-1||e[r].indexOf("url(data:")>-1)&&delete e[r],Gf(e[r])==="object"&&t(e[r])})},Cg=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),k1.push(t),Xf(Ki,k1)},T1=function(){Xf(Ki,k1=[])},Sg="",E1="",Zf="",Ag=function(t){return ws(t,Vt())},Cs=function(){Sg="",Zf="",E1=""},Ua=function(t){Sg=Ag(t).replace(/^\s+/g,"")},ta=function(){return Sg||E1},xo=function(t){Zf=Ag(t).replace(/\n\s+/g,`
`)},wo=function(){return Zf},C1=function(t){E1=Ag(t)},ju=function(){return E1},Ss=[],jc=[""],ea="global",ko="",As=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],S1=[],Qf="",O4=!1,or=function(t){return t==null?Ss:Ss.filter(function(e){return e.parentBoundary===t})},Uc=function(){return O4};const B4={addPersonOrSystem:function(t,e,r,a,s,h,u){if(e!==null&&r!==null){var p={},_=Ss.find(function(b){return b.alias===e});_&&e===_.alias?p=_:(p.alias=e,Ss.push(p)),p.label=r==null?{text:""}:{text:r},p.descr=a==null?{text:""}:{text:a},p.wrap=Uc(),p.sprite=s,p.tags=h,p.link=u,p.typeC4Shape={text:t},p.parentBoundary=ea}},addPersonOrSystemBoundary:function(t,e,r,a,s){if(t!==null&&e!==null){var h={},u=As.find(function(p){return p.alias===t});u&&t===u.alias?h=u:(h.alias=t,As.push(h)),h.label=e==null?{text:""}:{text:e},h.type=r==null?{text:"system"}:{text:r},h.tags=a,h.link=s,h.parentBoundary=ea,h.wrap=Uc(),ko=ea,ea=t,jc.push(ko)}},addContainer:function(t,e,r,a,s,h,u,p){if(e!==null&&r!==null){var _={},b=Ss.find(function(M){return M.alias===e});b&&e===b.alias?_=b:(_.alias=e,Ss.push(_)),_.label=r==null?{text:""}:{text:r},_.techn=a==null?{text:""}:{text:a},_.descr=s==null?{text:""}:{text:s},_.sprite=h,_.tags=u,_.link=p,_.wrap=Uc(),_.typeC4Shape={text:t},_.parentBoundary=ea}},addContainerBoundary:function(t,e,r,a,s){if(t!==null&&e!==null){var h={},u=As.find(function(p){return p.alias===t});u&&t===u.alias?h=u:(h.alias=t,As.push(h)),h.label=e==null?{text:""}:{text:e},h.type=r==null?{text:"container"}:{text:r},h.tags=a,h.link=s,h.parentBoundary=ea,h.wrap=Uc(),ko=ea,ea=t,jc.push(ko)}},addComponent:function(t,e,r,a,s,h,u,p){if(e!==null&&r!==null){var _={},b=Ss.find(function(M){return M.alias===e});b&&e===b.alias?_=b:(_.alias=e,Ss.push(_)),_.label=r==null?{text:""}:{text:r},_.techn=a==null?{text:""}:{text:a},_.descr=s==null?{text:""}:{text:s},_.sprite=h,_.tags=u,_.link=p,_.wrap=Uc(),_.typeC4Shape={text:t},_.parentBoundary=ea}},addDeploymentNode:function(t,e,r,a,s,h,u,p){if(e!==null&&r!==null){var _={},b=As.find(function(M){return M.alias===e});b&&e===b.alias?_=b:(_.alias=e,As.push(_)),_.label=r==null?{text:""}:{text:r},_.type=a==null?{text:"node"}:{text:a},_.descr=s==null?{text:""}:{text:a},_.tags=u,_.link=p,_.nodeType=t,_.parentBoundary=ea,_.wrap=Uc(),ko=ea,ea=e,jc.push(ko)}},popBoundaryParseStack:function(){ea=ko,jc.pop(),ko=jc.pop(),jc.push(ko)},addRel:function(t,e,r,a,s,h,u,p,_){if(t!=null&&e!=null&&r!=null&&a!=null){var b={},M=S1.find(function(I){return I.from===e&&I.to===r});M?b=M:S1.push(b),b.type=t,b.from=e,b.to=r,b.label={text:a},b.descr=h==null?{text:""}:{text:h},b.techn=s==null?{text:""}:{text:s},b.sprite=u,b.tags=p,b.link=_,b.wrap=Uc()}},autoWrap:Uc,setWrap:function(t){O4=t},getC4ShapeArray:or,getC4Shape:function(t){return Ss.find(function(e){return e.alias===t})},getC4ShapeKeys:function(t){return Object.keys(or(t))},getBoundarys:function(t){return t==null?As:As.filter(function(e){return e.parentBoundary===t})},getCurrentBoundaryParse:function(){return ea},getParentBoundaryParse:function(){return ko},getRels:function(){return S1},getTitle:function(){return Qf},getC4Type:function(){return Tg},setAccTitle:Ua,getAccTitle:ta,getAccDescription:wo,setAccDescription:xo,parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().c4},clear:function(){Ss=[],As=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ko="",ea="global",jc=[""],S1=[]},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){var e=ws(t,Vt());Qf=e},setC4Type:function(t){var e=ws(t,Vt());Tg=e}};function L4(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var I4=function(t,e){var r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.attrs!=="undefined"&&e.attrs!==null)for(var a in e.attrs)r.attr(a,e.attrs[a]);return e.class!=="undefined"&&r.attr("class",e.class),r},ac=function(){function t(s,h,u,p,_,b,M){a(h.append("text").attr("x",u+_/2).attr("y",p+b/2+5).style("text-anchor","middle").text(s),M)}function e(s,h,u,p,_,b,M,I){for(var R=I.fontSize,$=I.fontFamily,ht=I.fontWeight,it=s.split(Xn.lineBreakRegex),pt=0;pt<it.length;pt++){var ft=pt*R-R*(it.length-1)/2,xt=h.append("text").attr("x",u+_/2).attr("y",p).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",R).style("font-weight",ht).style("font-family",$);xt.append("tspan").attr("dy",ft).text(it[pt]).attr("alignment-baseline","mathematical"),a(xt,M)}}function r(s,h,u,p,_,b,M,I){var R=h.append("switch"),$=R.append("foreignObject").attr("x",u).attr("y",p).attr("width",_).attr("height",b).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,R,u,p,_,0,M,I),a($,M)}function a(s,h){for(var u in h)h.hasOwnProperty(u)&&s.attr(u,h[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?t:e}}();const v6=function(t,e,r){var a=r[e.typeC4Shape.text+"_bg_color"],s=r[e.typeC4Shape.text+"_border_color"],h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var u=t.append("g");u.attr("class","person-man");var p={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":p.x=e.x,p.y=e.y,p.fill=a,p.width=e.width,p.height=e.height,p.style="stroke:"+s+";stroke-width:0.5;",p.rx=2.5,p.ry=2.5,I4(u,p);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":u.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),u.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":u.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),u.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}var _,b,M=(_=r,b=e.typeC4Shape.text,{fontFamily:_[b+"FontFamily"],fontSize:_[b+"FontSize"],fontWeight:_[b+"FontWeight"]});switch(u.append("text").attr("fill","#FFFFFF").attr("font-family",M.fontFamily).attr("font-size",M.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":(function(R,$,ht,it,pt,ft){var xt=R.append("image");xt.attr("width",$),xt.attr("height",ht),xt.attr("x",it),xt.attr("y",pt);var mt=ft.startsWith("data:image/png;base64")?ft:(0,ec.N)(ft);xt.attr("xlink:href",mt)})(u,48,48,e.x+e.width/2-24,e.y+e.image.Y,h)}var I=r[e.typeC4Shape.text+"Font"]();return I.fontWeight="bold",I.fontSize=I.fontSize+2,ac(r)(e.label.text,u,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#FFFFFF"},I),I=r[e.typeC4Shape.text+"Font"](),e.thchn&&e.thchn.text!==""?ac(r)(e.thchn.text,u,e.x,e.y+e.thchn.Y,e.width,e.height,{fill:"#FFFFFF","font-style":"italic"},I):e.type&&e.type.text!==""&&ac(r)(e.type.text,u,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#FFFFFF","font-style":"italic"},I),e.descr&&e.descr.text!==""&&(I=r.personFont(),ac(r)(e.descr.text,u,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#FFFFFF"},I)),e.height},b6=function(t,e,r){var a,s=t.append("g"),h=0,u=function(I,R){var $=typeof Symbol!="undefined"&&I[Symbol.iterator]||I["@@iterator"];if(!$){if(Array.isArray(I)||($=function(mt,Wt){if(mt){if(typeof mt=="string")return L4(mt,Wt);var re=Object.prototype.toString.call(mt).slice(8,-1);return re==="Object"&&mt.constructor&&(re=mt.constructor.name),re==="Map"||re==="Set"?Array.from(mt):re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re)?L4(mt,Wt):void 0}}(I))||R&&I&&typeof I.length=="number"){$&&(I=$);var ht=0,it=function(){};return{s:it,n:function(){return ht>=I.length?{done:!0}:{done:!1,value:I[ht++]}},e:function(mt){throw mt},f:it}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pt,ft=!0,xt=!1;return{s:function(){$=$.call(I)},n:function(){var mt=$.next();return ft=mt.done,mt},e:function(mt){xt=!0,pt=mt},f:function(){try{ft||$.return==null||$.return()}finally{if(xt)throw pt}}}}(e);try{for(u.s();!(a=u.n()).done;){var p=a.value;if(h===0){var _=s.append("line");_.attr("x1",p.startPoint.x),_.attr("y1",p.startPoint.y),_.attr("x2",p.endPoint.x),_.attr("y2",p.endPoint.y),_.attr("stroke-width","1"),_.attr("stroke","#444444"),_.style("fill","none"),p.type!=="rel_b"&&_.attr("marker-end","url(#arrowhead)"),p.type!=="birel"&&p.type!=="rel_b"||_.attr("marker-start","url(#arrowend)"),h=-1}else{var b=s.append("path");b.attr("fill","none").attr("stroke-width","1").attr("stroke","#444444").attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",p.startPoint.x).replaceAll("starty",p.startPoint.y).replaceAll("controlx",p.startPoint.x+(p.endPoint.x-p.startPoint.x)/2-(p.endPoint.x-p.startPoint.x)/4).replaceAll("controly",p.startPoint.y+(p.endPoint.y-p.startPoint.y)/2).replaceAll("stopx",p.endPoint.x).replaceAll("stopy",p.endPoint.y)),p.type!=="rel_b"&&b.attr("marker-end","url(#arrowhead)"),p.type!=="birel"&&p.type!=="rel_b"||b.attr("marker-start","url(#arrowend)")}var M=r.messageFont();ac(r)(p.label.text,s,Math.min(p.startPoint.x,p.endPoint.x)+Math.abs(p.endPoint.x-p.startPoint.x)/2,Math.min(p.startPoint.y,p.endPoint.y)+Math.abs(p.endPoint.y-p.startPoint.y)/2,p.label.width,p.label.height,{fill:"#444444"},M),p.techn&&p.techn.text!==""&&(M=r.messageFont(),ac(r)("["+p.techn.text+"]",s,Math.min(p.startPoint.x,p.endPoint.x)+Math.abs(p.endPoint.x-p.startPoint.x)/2,Math.min(p.startPoint.y,p.endPoint.y)+Math.abs(p.endPoint.y-p.startPoint.y)/2+r.messageFontSize+5,Math.max(p.label.width,p.techn.width),p.techn.height,{fill:"#444444","font-style":"italic"},M))}}catch(I){u.e(I)}finally{u.f()}};ec.N;var pa=y(2536),F4=y.n(pa);function Qa(t,e,r){if(e.insert!==void 0){var a=t.getAccTitle(),s=t.getAccDescription();e.attr("role","img").attr("aria-labelledby","chart-title-"+r+" chart-desc-"+r),e.insert("desc",":first-child").attr("id","chart-desc-"+r).text(s),e.insert("title",":first-child").attr("id","chart-title-"+r).text(a)}}function $r(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Mg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R4(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Ng(t,e,r){return e&&R4(t.prototype,e),r&&R4(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Jf=0,A1=0;pa.parser.yy=B4;var wn={},Dg=function(){function t(){Mg(this,t),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Og(pa.parser.yy.getConfig())}return Ng(t,[{key:"setData",value:function(e,r,a,s){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=s}},{key:"updateVal",value:function(e,r,a,s){e[r]===void 0?e[r]=a:e[r]=s(a,e[r])}},{key:"insert",value:function(e){this.nextData.cnt=this.nextData.cnt+1;var r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,a=r+e.width,s=this.nextData.starty+2*e.margin,h=s+e.height;(r>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>wn.c4ShapeInRow)&&(r=this.nextData.startx+e.margin+wn.nextLinePaddingX,s=this.nextData.stopy+2*e.margin,this.nextData.stopx=a=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=h=s+e.height,this.nextData.cnt=1),e.x=r,e.y=s,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",s,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",h,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",s,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",h,Math.max)}},{key:"init",value:function(){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Og(pa.parser.yy.getConfig())}},{key:"bumpLastMargin",value:function(e){this.data.stopx+=e,this.data.stopy+=e}}]),t}(),Og=function(t){$i(wn,t),t.fontFamily&&(wn.personFontFamily=wn.systemFontFamily=wn.messageFontFamily=t.fontFamily),t.fontSize&&(wn.personFontSize=wn.systemFontSize=wn.messageFontSize=t.fontSize),t.fontWeight&&(wn.personFontWeight=wn.systemFontWeight=wn.messageFontWeight=t.fontWeight)},Uu=function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},Kf=function(t){return{fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}};function To(t,e,r,a,s){if(!e[t].width)if(r)e[t].text=A4(e[t].text,s,a),e[t].textLines=e[t].text.split(Xn.lineBreakRegex).length,e[t].width=s,e[t].height=xg(e[t].text,a);else{var h=e[t].text.split(Xn.lineBreakRegex);e[t].textLines=h.length;var u=0;e[t].height=0,e[t].width=0;for(var p=0;p<h.length;p++)e[t].width=Math.max(Es(h[p],a),e[t].width),u=xg(h[p],a),e[t].height=e[t].height+u}}var P4=function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=wn.c4ShapeMargin-35;var a=e.wrap&&wn.wrap,s=Kf(wn);s.fontSize=s.fontSize+2,s.fontWeight="bold",To("label",e,a,s,Es(e.label.text,s)),function(h,u,p){var _=h.append("g"),b={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};u.nodeType&&(b={"stroke-width":1});var M={x:u.x,y:u.y,fill:"none",stroke:"#444444",width:u.width,height:u.height,rx:2.5,ry:2.5,attrs:b};I4(_,M);var I=p.boundaryFont();I.fontWeight="bold",I.fontSize=I.fontSize+2,ac(p)(u.label.text,_,u.x,u.y+u.label.Y,u.width,u.height,{fill:"#444444"},I),u.type&&u.type.text!==""&&(I=p.boundaryFont(),ac(p)(u.type.text,_,u.x,u.y+u.type.Y,u.width,u.height,{fill:"#444444"},I)),u.descr&&u.descr.text!==""&&((I=p.boundaryFont()).fontSize=I.fontSize-2,ac(p)(u.descr.text,_,u.x,u.y+u.descr.Y,u.width,u.height,{fill:"#444444"},I))}(t,e,wn)},Bg=function(t,e,r,a){for(var s=0,h=0;h<a.length;h++){s=0;var u=r[a[h]],p=Uu(wn,u.typeC4Shape.text);switch(p.fontSize=p.fontSize-2,u.typeC4Shape.width=Es("<<"+u.typeC4Shape.text+">>",p),u.typeC4Shape.height=p.fontSize+2,u.typeC4Shape.Y=wn.c4ShapePadding,s=u.typeC4Shape.Y+u.typeC4Shape.height-4,u.image={width:0,height:0,Y:0},u.typeC4Shape.text){case"person":case"external_person":u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height}u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height);var _=u.wrap&&wn.wrap,b=wn.width-2*wn.c4ShapePadding,M=Uu(wn,u.typeC4Shape.text);M.fontSize=M.fontSize+2,M.fontWeight="bold",To("label",u,_,M,b),u.label.Y=s+8,s=u.label.Y+u.label.height,u.type&&u.type.text!==""?(u.type.text="["+u.type.text+"]",To("type",u,_,Uu(wn,u.typeC4Shape.text),b),u.type.Y=s+5,s=u.type.Y+u.type.height):u.techn&&u.techn.text!==""&&(u.techn.text="["+u.techn.text+"]",To("techn",u,_,Uu(wn,u.techn.text),b),u.techn.Y=s+5,s=u.techn.Y+u.techn.height);var I=s,R=u.label.width;u.descr&&u.descr.text!==""&&(To("descr",u,_,Uu(wn,u.typeC4Shape.text),b),u.descr.Y=s+20,s=u.descr.Y+u.descr.height,R=Math.max(u.label.width,u.descr.width),I=s-5*u.descr.textLines),R+=wn.c4ShapePadding,u.width=Math.max(u.width||wn.width,R,wn.width),u.height=Math.max(u.height||wn.height,I,wn.height),u.margin=u.margin||wn.c4ShapeMargin,t.insert(u),v6(e,u,wn)}t.bumpLastMargin(wn.c4ShapeMargin)},Eo=Ng(function t(e,r){Mg(this,t),this.x=e,this.y=r}),Lg=function(t,e){var r=t.x,a=t.y,s=e.x,h=e.y,u=r+t.width/2,p=a+t.height/2,_=Math.abs(r-s),b=Math.abs(a-h),M=b/_,I=t.height/t.width,R=null;return a==h&&r<s?R=new Eo(r+t.width,p):a==h&&r>s?R=new Eo(r,p):r==s&&a<h?R=new Eo(u,a+t.height):r==s&&a>h&&(R=new Eo(u,a)),r>s&&a<h?R=I>=M?new Eo(r,p+M*t.width/2):new Eo(u-_/b*t.height/2,a+t.height):r<s&&a<h?R=I>=M?new Eo(r+t.width,p+M*t.width/2):new Eo(u+_/b*t.height/2,a+t.height):r<s&&a>h?R=I>=M?new Eo(r+t.width,p-M*t.width/2):new Eo(u+t.height/2*_/b,a):r>s&&a>h&&(R=I>=M?new Eo(r,p-t.width/2*M):new Eo(u-t.height/2*_/b,a)),R},_6=function(t,e){var r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;var a=Lg(t,r);return r.x=t.x+t.width/2,r.y=t.y+t.height/2,{startPoint:a,endPoint:Lg(e,r)}};function Ig(t,e,r,a){var s=new Dg;s.data.widthLimit=r.data.widthLimit/Math.min(wn.c4BoundaryInRow,a.length);for(var h=0;h<a.length;h++){var u=a[h],p=0;u.image={width:0,height:0,Y:0},u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=p,p=u.image.Y+u.image.height);var _=u.wrap&&wn.wrap,b=Kf(wn);if(b.fontSize=b.fontSize+2,b.fontWeight="bold",To("label",u,_,b,s.data.widthLimit),u.label.Y=p+8,p=u.label.Y+u.label.height,u.type&&u.type.text!==""&&(u.type.text="["+u.type.text+"]",To("type",u,_,Kf(wn),s.data.widthLimit),u.type.Y=p+5,p=u.type.Y+u.type.height),u.descr&&u.descr.text!==""){var M=Kf(wn);M.fontSize=M.fontSize-2,To("descr",u,_,M,s.data.widthLimit),u.descr.Y=p+20,p=u.descr.Y+u.descr.height}if(h==0||h%wn.c4BoundaryInRow==0){var I=r.data.startx+wn.diagramMarginX,R=r.data.stopy+wn.diagramMarginY+p;s.setData(I,I,R,R)}else{var $=s.data.stopx!==s.data.startx?s.data.stopx+wn.diagramMarginX:s.data.startx,ht=s.data.starty;s.setData($,$,ht,ht)}s.name=u.alias;var it=pa.parser.yy.getC4ShapeArray(u.alias),pt=pa.parser.yy.getC4ShapeKeys(u.alias);pt.length>0&&Bg(s,t,it,pt),e=u.alias;var ft=pa.parser.yy.getBoundarys(e);ft.length>0&&Ig(t,e,s,ft),u.alias!=="global"&&P4(t,u,s),r.data.stopy=Math.max(s.data.stopy+wn.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(s.data.stopx+wn.c4ShapeMargin,r.data.stopx),Jf=Math.max(Jf,r.data.stopx),A1=Math.max(A1,r.data.stopy)}}const Y4={drawPersonOrSystemArray:Bg,drawBoundary:P4,setConf:Og,draw:function(t,e){wn=Vt().c4;var r,a=Vt().securityLevel;a==="sandbox"&&(r=ze("#i"+e));var s=ze(a==="sandbox"?r.nodes()[0].contentDocument.body:"body");a==="sandbox"&&r.nodes()[0].contentDocument,pa.parser.yy.clear(),pa.parser.yy.setWrap(wn.wrap),pa.parser.parse(t+`
`),v.debug("C:".concat(JSON.stringify(wn,null,2)));var h=a==="sandbox"?s.select('[id="'.concat(e,'"]')):ze('[id="'.concat(e,'"]'));h.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"),function(R){R.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(h),function(R){R.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(h);var u=new Dg;u.setData(wn.diagramMarginX,wn.diagramMarginX,wn.diagramMarginY,wn.diagramMarginY),u.data.widthLimit=screen.availWidth,Jf=wn.diagramMarginX,A1=wn.diagramMarginY;var p=pa.parser.yy.getTitle();pa.parser.yy.getC4Type(),Ig(h,"",u,pa.parser.yy.getBoundarys("")),function(R){R.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(h),function(R){R.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(h),function(R){var $=R.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);$.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),$.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(h),function(R){R.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(h),function(R,$,ht){var it,pt,ft=0,xt=function(wt,vt){var ct=typeof Symbol!="undefined"&&wt[Symbol.iterator]||wt["@@iterator"];if(!ct){if(Array.isArray(wt)||(ct=function(ve,le){if(ve){if(typeof ve=="string")return $r(ve,le);var be=Object.prototype.toString.call(ve).slice(8,-1);return be==="Object"&&ve.constructor&&(be=ve.constructor.name),be==="Map"||be==="Set"?Array.from(ve):be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(be)?$r(ve,le):void 0}}(wt))||vt&&wt&&typeof wt.length=="number"){ct&&(wt=ct);var Mt=0,yt=function(){};return{s:yt,n:function(){return Mt>=wt.length?{done:!0}:{done:!1,value:wt[Mt++]}},e:function(ve){throw ve},f:yt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xe,Te=!0,Gt=!1;return{s:function(){ct=ct.call(wt)},n:function(){var ve=ct.next();return Te=ve.done,ve},e:function(ve){Gt=!0,xe=ve},f:function(){try{Te||ct.return==null||ct.return()}finally{if(Gt)throw xe}}}}($);try{for(xt.s();!(it=xt.n()).done;){var mt=it.value;ft+=1;var Wt=mt.wrap&&wn.wrap,re={fontFamily:(pt=wn).messageFontFamily,fontSize:pt.messageFontSize,fontWeight:pt.messageFontWeight};pa.parser.yy.getC4Type()==="C4Dynamic"&&(mt.label.text=ft+": "+mt.label.text);var Rt=Es(mt.label.text,re);To("label",mt,Wt,re,Rt),mt.techn&&mt.techn.text!==""&&To("techn",mt,Wt,re,Rt=Es(mt.techn.text,re)),mt.descr&&mt.descr.text!==""&&To("descr",mt,Wt,re,Rt=Es(mt.descr.text,re));var Jt=ht(mt.from),te=ht(mt.to),Et=_6(Jt,te);mt.startPoint=Et.startPoint,mt.endPoint=Et.endPoint}}catch(wt){xt.e(wt)}finally{xt.f()}b6(R,$,wn)}(h,pa.parser.yy.getRels(),pa.parser.yy.getC4Shape),u.data.stopx=Jf,u.data.stopy=A1;var _=u.data,b=_.stopy-_.starty+2*wn.diagramMarginY,M=_.stopx-_.startx+2*wn.diagramMarginX;p&&h.append("text").text(p).attr("x",(_.stopx-_.startx)/2-4*wn.diagramMarginX).attr("y",_.starty+wn.diagramMarginY),ho(h,b,M,wn.useMaxWidth);var I=p?60:0;h.attr("viewBox",_.startx-wn.diagramMarginX+" -"+(wn.diagramMarginY+I)+" "+M+" "+(b+I)),Qa(pa.parser.yy,h,e),v.debug("models:",_)}};function td(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var Fg="classid-",ed=[],Hi={},Rg=0,nd=[],qu=function(t){return Xn.sanitizeText(t,Vt())},M1=function(t){var e="",r=t;if(t.indexOf("~")>0){var a=t.split("~");r=a[0],e=Xn.sanitizeText(a[1],Vt())}return{className:r,type:e}},rd=function(t){var e=M1(t);Hi[e.className]===void 0&&(Hi[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Fg+e.className+"-"+Rg},Rg++)},id=function(t){for(var e=Object.keys(Hi),r=0;r<e.length;r++)if(Hi[e[r]].id===t)return Hi[e[r]].domId},Pg=function(t,e){var r=M1(t).className,a=Hi[r];if(typeof e=="string"){var s=e.trim();s.startsWith("<<")&&s.endsWith(">>")?a.annotations.push(qu(s.substring(2,s.length-2))):s.indexOf(")")>0?a.methods.push(qu(s)):s&&a.members.push(qu(s))}},Yg=function(t,e){t.split(",").forEach(function(r){var a=r;r[0].match(/\d/)&&(a=Fg+a),Hi[a]!==void 0&&Hi[a].cssClasses.push(e)})},z4=function(t,e,r){var a=Vt(),s=t,h=id(s);if(a.securityLevel==="loose"&&e!==void 0&&Hi[s]!==void 0){var u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var p=0;p<u.length;p++){var _=u[p].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),u[p]=_}}u.length===0&&u.push(h),nd.push(function(){var b=document.querySelector('[id="'.concat(h,'"]'));b!==null&&b.addEventListener("click",function(){var M;ir.runFunc.apply(ir,[e].concat(function(I){if(Array.isArray(I))return td(I)}(M=u)||function(I){if(typeof Symbol!="undefined"&&I[Symbol.iterator]!=null||I["@@iterator"]!=null)return Array.from(I)}(M)||function(I,R){if(I){if(typeof I=="string")return td(I,R);var $=Object.prototype.toString.call(I).slice(8,-1);return $==="Object"&&I.constructor&&($=I.constructor.name),$==="Map"||$==="Set"?Array.from(I):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?td(I,R):void 0}}(M)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},N1={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},zg=function(t){var e=ze(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=ze("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),ze(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=ze(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),ze(this).classed("hover",!1)})};nd.push(zg);var j4="TB";const Zo={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},setAccTitle:Ua,getAccTitle:ta,getAccDescription:wo,setAccDescription:xo,getConfig:function(){return Vt().class},addClass:rd,bindFunctions:function(t){nd.forEach(function(e){e(t)})},clear:function(){ed=[],Hi={},(nd=[]).push(zg),Cs()},getClass:function(t){return Hi[t]},getClasses:function(){return Hi},addAnnotation:function(t,e){var r=M1(t).className;Hi[r].annotations.push(e)},getRelations:function(){return ed},addRelation:function(t){v.debug("Adding relation: "+JSON.stringify(t)),rd(t.id1),rd(t.id2),t.id1=M1(t.id1).className,t.id2=M1(t.id2).className,t.relationTitle1=Xn.sanitizeText(t.relationTitle1.trim(),Vt()),t.relationTitle2=Xn.sanitizeText(t.relationTitle2.trim(),Vt()),ed.push(t)},getDirection:function(){return j4},setDirection:function(t){j4=t},addMember:Pg,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(r){return Pg(t,r)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?Xn.sanitizeText(t.substr(1).trim(),Vt()):qu(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:N1,setClickEvent:function(t,e,r){t.split(",").forEach(function(a){z4(a,e,r),Hi[a].haveCallback=!0}),Yg(t,"clickable")},setCssClass:Yg,setLink:function(t,e,r){var a=Vt();t.split(",").forEach(function(s){var h=s;s[0].match(/\d/)&&(h=Fg+h),Hi[h]!==void 0&&(Hi[h].link=ir.formatUrl(e,a),a.securityLevel==="sandbox"?Hi[h].linkTarget="_top":Hi[h].linkTarget=typeof r=="string"?qu(r):"_blank")}),Yg(t,"clickable")},setTooltip:function(t,e){var r=Vt();t.split(",").forEach(function(a){e!==void 0&&(Hi[a].tooltip=Xn.sanitizeText(e,r))})},lookUpDomId:id};var x6=y(681),Wu=y.n(x6),w6=y(8282),Bi=y.n(w6),qc=y(1362),U4=y.n(qc),q4=0,ad=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?k6(e):r?W4(r):T6(t)},k6=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",s=t[2]?t[2].trim():"",h=t[3]?$u(t[3].trim()):"",u=t[4]?t[4].trim():"",p=t[5]?t[5].trim():"";r=a+s+h+" "+u,e=od(p)}catch{r=t}return{displayText:r,cssStyle:e}},W4=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",s=t[2]?t[2].trim():"",h=t[3]?$u(t[3].trim()):"",u=t[4]?t[4].trim():"";r=a+s+"("+h+")"+(t[5]?" : "+$u(t[5]).trim():""),e=od(u)}catch{r=t}return{displayText:r,cssStyle:e}},T6=function(t){var e="",r="",a="",s=t.indexOf("("),h=t.indexOf(")");if(s>1&&h>s&&h<=t.length){var u="",p="",_=t.substring(0,1);_.match(/\w/)?p=t.substring(0,s).trim():(_.match(/\+|-|~|#/)&&(u=_),p=t.substring(1,s).trim());var b=t.substring(s+1,h),M=t.substring(h+1,1);r=od(M),e=u+p+"("+$u(b.trim())+")",h<0&&(a=t.substring(h+2).trim())!==""&&(a=" : "+$u(a))}else e=$u(t);return{displayText:e,cssStyle:r}},jg=function(t,e,r,a){var s=ad(e),h=t.append("tspan").attr("x",a.padding).text(s.displayText);s.cssStyle!==""&&h.attr("style",s.cssStyle),r||h.attr("dy",a.textHeight)},$u=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},od=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const E6=function(t,e,r){v.info("Rendering class "+e);var a,s=e.id,h={id:s,label:e.id,width:0,height:0},u=t.append("g").attr("id",id(s)).attr("class","classGroup");a=e.link?u.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):u.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var p=!0;e.annotations.forEach(function(mt){var Wt=a.append("tspan").text("\xAB"+mt+"\xBB");p||Wt.attr("dy",r.textHeight),p=!1});var _=e.id;e.type!==void 0&&e.type!==""&&(_+="<"+e.type+">");var b=a.append("tspan").text(_).attr("class","title");p||b.attr("dy",r.textHeight);var M=a.node().getBBox().height,I=u.append("line").attr("x1",0).attr("y1",r.padding+M+r.dividerMargin/2).attr("y2",r.padding+M+r.dividerMargin/2),R=u.append("text").attr("x",r.padding).attr("y",M+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");p=!0,e.members.forEach(function(mt){jg(R,mt,p,r),p=!1});var $=R.node().getBBox(),ht=u.append("line").attr("x1",0).attr("y1",r.padding+M+r.dividerMargin+$.height).attr("y2",r.padding+M+r.dividerMargin+$.height),it=u.append("text").attr("x",r.padding).attr("y",M+2*r.dividerMargin+$.height+r.textHeight).attr("fill","white").attr("class","classText");p=!0,e.methods.forEach(function(mt){jg(it,mt,p,r),p=!1});var pt=u.node().getBBox(),ft=" ";e.cssClasses.length>0&&(ft+=e.cssClasses.join(" "));var xt=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",pt.width+2*r.padding).attr("height",pt.height+r.padding+.5*r.dividerMargin).attr("class",ft).node().getBBox().width;return a.node().childNodes.forEach(function(mt){mt.setAttribute("x",(xt-mt.getBBox().width)/2)}),e.tooltip&&a.insert("title").text(e.tooltip),I.attr("x2",xt),ht.attr("x2",xt),h.width=xt,h.height=pt.height+r.padding+.5*r.dividerMargin,h};qc.parser.yy=Zo;var sd={},cd={dividerMargin:10,padding:5,textHeight:10},D1=function(t){var e=Object.entries(sd).find(function(r){return r[1].label===t});if(e)return e[0]};const $4=function(t){Object.keys(t).forEach(function(e){cd[e]=t[e]})},C6=function(t,e){sd={},qc.parser.yy.clear(),qc.parser.parse(t),v.info("Rendering diagram "+t);var r,a=Vt().securityLevel;a==="sandbox"&&(r=ze("#i"+e));var s,h=ze(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=(a==="sandbox"&&r.nodes()[0].contentDocument,h.select("[id='".concat(e,"']")));u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(s=u).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),s.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),s.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),s.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var p=new(Bi()).Graph({multigraph:!0});p.setGraph({isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});for(var _=Zo.getClasses(),b=Object.keys(_),M=0;M<b.length;M++){var I=_[b[M]],R=E6(u,I,cd);sd[R.id]=R,p.setNode(R.id,R),v.info("Org height: "+R.height)}Zo.getRelations().forEach(function(ft){v.info("tjoho"+D1(ft.id1)+D1(ft.id2)+JSON.stringify(ft)),p.setEdge(D1(ft.id1),D1(ft.id2),{relation:ft},ft.title||"DEFAULT")}),Wu().layout(p),p.nodes().forEach(function(ft){ft!==void 0&&p.node(ft)!==void 0&&(v.debug("Node "+ft+": "+JSON.stringify(p.node(ft))),h.select("#"+id(ft)).attr("transform","translate("+(p.node(ft).x-p.node(ft).width/2)+","+(p.node(ft).y-p.node(ft).height/2)+" )"))}),p.edges().forEach(function(ft){ft!==void 0&&p.edge(ft)!==void 0&&(v.debug("Edge "+ft.v+" -> "+ft.w+": "+JSON.stringify(p.edge(ft))),function(xt,mt,Wt,re){var Rt=function(rn){switch(rn){case N1.AGGREGATION:return"aggregation";case N1.EXTENSION:return"extension";case N1.COMPOSITION:return"composition";case N1.DEPENDENCY:return"dependency"}};mt.points=mt.points.filter(function(rn){return!Number.isNaN(rn.y)});var Jt,te,Et=mt.points,wt=Po().x(function(rn){return rn.x}).y(function(rn){return rn.y}).curve(Xr),vt=xt.append("path").attr("d",wt(Et)).attr("id","edge"+q4).attr("class","relation"),ct="";re.arrowMarkerAbsolute&&(ct=(ct=(ct=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Wt.relation.lineType==1&&vt.attr("class","relation dashed-line"),Wt.relation.type1!=="none"&&vt.attr("marker-start","url("+ct+"#"+Rt(Wt.relation.type1)+"Start)"),Wt.relation.type2!=="none"&&vt.attr("marker-end","url("+ct+"#"+Rt(Wt.relation.type2)+"End)");var Mt,yt,xe,Te,Gt=mt.points.length,ve=ir.calcLabelPosition(mt.points);if(Jt=ve.x,te=ve.y,Gt%2!=0&&Gt>1){var le=ir.calcCardinalityPosition(Wt.relation.type1!=="none",mt.points,mt.points[0]),be=ir.calcCardinalityPosition(Wt.relation.type2!=="none",mt.points,mt.points[Gt-1]);v.debug("cardinality_1_point "+JSON.stringify(le)),v.debug("cardinality_2_point "+JSON.stringify(be)),Mt=le.x,yt=le.y,xe=be.x,Te=be.y}if(Wt.title!==void 0){var Fe=xt.append("g").attr("class","classLabel"),Ye=Fe.append("text").attr("class","label").attr("x",Jt).attr("y",te).attr("fill","red").attr("text-anchor","middle").text(Wt.title);window.label=Ye;var fn=Ye.node().getBBox();Fe.insert("rect",":first-child").attr("class","box").attr("x",fn.x-re.padding/2).attr("y",fn.y-re.padding/2).attr("width",fn.width+re.padding).attr("height",fn.height+re.padding)}v.info("Rendering relation "+JSON.stringify(Wt)),Wt.relationTitle1!==void 0&&Wt.relationTitle1!=="none"&&xt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Mt).attr("y",yt).attr("fill","black").attr("font-size","6").text(Wt.relationTitle1),Wt.relationTitle2!==void 0&&Wt.relationTitle2!=="none"&&xt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",xe).attr("y",Te).attr("fill","black").attr("font-size","6").text(Wt.relationTitle2),q4++}(u,p.edge(ft),p.edge(ft).relation,cd))});var $=u.node().getBBox(),ht=$.width+40,it=$.height+40;ho(u,it,ht,cd.useMaxWidth);var pt="".concat($.x-20," ").concat($.y-20," ").concat(ht," ").concat(it);v.debug("viewBox ".concat(pt)),u.attr("viewBox",pt),Qa(qc.parser.yy,u,e)};var S6={extension:function(t,e,r){v.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const A6=function(t,e,r,a){e.forEach(function(s){S6[s](t,r,a)})};function Ug(t){return Ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ug(t)}const ga=function(t,e,r,a){var s,h,u,p,_,b,M=t||"";if(Ug(M)==="object"&&(M=M[0]),da(Vt().flowchart.htmlLabels))return M=M.replace(/\\n|\n/g,"<br />"),v.info("vertexText"+M),s={isNode:a,label:M.replace(/fa[lrsb]?:fa-[\w-]+/g,function(it){return"<i class='".concat(it.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},u=ze(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),p=u.append("xhtml:div"),_=s.label,b=s.isNode?"nodeLabel":"edgeLabel",p.html('<span class="'+b+'" '+(s.labelStyle?'style="'+s.labelStyle+'"':"")+">"+_+"</span>"),(h=s.labelStyle)&&p.attr("style",h),p.style("display","inline-block"),p.style("white-space","nowrap"),p.attr("xmlns","http://www.w3.org/1999/xhtml"),u.node();var I=document.createElementNS("http://www.w3.org/2000/svg","text");I.setAttribute("style",e.replace("color:","fill:"));var R=[];R=typeof M=="string"?M.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(M)?M:[];for(var $=0;$<R.length;$++){var ht=document.createElementNS("http://www.w3.org/2000/svg","tspan");ht.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ht.setAttribute("dy","1em"),ht.setAttribute("x","0"),r?ht.setAttribute("class","title-row"):ht.setAttribute("class","row"),ht.textContent=R[$].trim(),I.appendChild(ht)}return I};var Ea=function(t,e,r,a){var s;s=r||"node default";var h=t.insert("g").attr("class",s).attr("id",e.domId||e.id),u=h.insert("g").attr("class","label").attr("style",e.labelStyle),p=typeof e.labelText=="string"?e.labelText:e.labelText[0],_=u.node().appendChild(ga(ws(Z_(p),Vt()),e.labelStyle,!1,a)),b=_.getBBox();if(da(Vt().flowchart.htmlLabels)){var M=_.children[0],I=ze(_);b=M.getBoundingClientRect(),I.attr("width",b.width),I.attr("height",b.height)}var R=e.padding/2;return u.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),{shapeSvg:h,bbox:b,halfPadding:R,label:u}},ui=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function oc(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var gr={},Qo={},H4={},Ol=function(t,e){return v.trace("In isDecendant",e," ",t," = ",Qo[e].indexOf(t)>=0),Qo[e].indexOf(t)>=0},M6=function t(e,r,a,s){v.warn("Copying children of ",e,"root",s,"data",r.node(e),s);var h=r.children(e)||[];e!==s&&h.push(e),v.warn("Copying (nodes) clusterId",e,"nodes",h),h.forEach(function(u){if(r.children(u).length>0)t(u,r,a,s);else{var p=r.node(u);v.info("cp ",u," to ",s," with parent ",e),a.setNode(u,p),s!==r.parent(u)&&(v.warn("Setting parent",u,r.parent(u)),a.setParent(u,r.parent(u))),e!==s&&u!==e?(v.debug("Setting parent",u,e),a.setParent(u,e)):(v.info("In copy ",e,"root",s,"data",r.node(e),s),v.debug("Not Setting parent for node=",u,"cluster!==rootId",e!==s,"node!==clusterId",u!==e));var _=r.edges(u);v.debug("Copying Edges",_),_.forEach(function(b){v.info("Edge",b);var M=r.edge(b.v,b.w,b.name);v.info("Edge data",M,s);try{(function(I,R){return v.info("Decendants of ",R," is ",Qo[R]),v.info("Edge is ",I),I.v!==R&&I.w!==R&&(Qo[R]?(v.info("Here "),Qo[R].indexOf(I.v)>=0||!!Ol(I.v,R)||!!Ol(I.w,R)||Qo[R].indexOf(I.w)>=0):(v.debug("Tilt, ",R,",not in decendants"),!1))})(b,s)?(v.info("Copying as ",b.v,b.w,M,b.name),a.setEdge(b.v,b.w,M,b.name),v.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):v.info("Skipping copy of edge ",b.v,"-->",b.w," rootId: ",s," clusterId:",e)}catch(I){v.error(I)}})}v.debug("Removing node",u),r.removeNode(u)})},N6=function t(e,r){for(var a=r.children(e),s=[].concat(a),h=0;h<a.length;h++)H4[a[h]]=e,s=s.concat(t(a[h],r));return s},ld=function t(e,r){v.trace("Searching",e);var a=r.children(e);if(v.trace("Searching children of id ",e,a),a.length<1)return v.trace("This is a valid node",e),e;for(var s=0;s<a.length;s++){var h=t(a[s],r);if(h)return v.trace("Found replacement for",e," => ",h),h}},ud=function(t){return gr[t]&&gr[t].externalConnections&&gr[t]?gr[t].id:t},D6=function(t,e){!t||e>10?v.debug("Opting out, no graph "):(v.debug("Opting in, graph "),t.nodes().forEach(function(r){t.children(r).length>0&&(v.warn("Cluster identified",r," Replacement id in edges: ",ld(r,t)),Qo[r]=N6(r,t),gr[r]={id:ld(r,t),clusterData:t.node(r)})}),t.nodes().forEach(function(r){var a=t.children(r),s=t.edges();a.length>0?(v.debug("Cluster identified",r,Qo),s.forEach(function(h){h.v!==r&&h.w!==r&&Ol(h.v,r)^Ol(h.w,r)&&(v.warn("Edge: ",h," leaves cluster ",r),v.warn("Decendants of XXX ",r,": ",Qo[r]),gr[r].externalConnections=!0)})):v.debug("Not a cluster ",r,Qo)}),t.edges().forEach(function(r){var a=t.edge(r);v.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),v.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));var s=r.v,h=r.w;if(v.warn("Fix XXX",gr,"ids:",r.v,r.w,"Translateing: ",gr[r.v]," --- ",gr[r.w]),gr[r.v]&&gr[r.w]&&gr[r.v]===gr[r.w]){v.warn("Fixing and trixing link to self - removing XXX",r.v,r.w,r.name),v.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=ud(r.v),h=ud(r.w),t.removeEdge(r.v,r.w,r.name);var u=r.w+"---"+r.v;t.setNode(u,{domId:u,id:u,labelStyle:"",labelText:a.label,padding:0,shape:"labelRect",style:""});var p=JSON.parse(JSON.stringify(a)),_=JSON.parse(JSON.stringify(a));p.label="",p.arrowTypeEnd="none",_.label="",p.fromCluster=r.v,_.toCluster=r.v,t.setEdge(s,u,p,r.name+"-cyclic-special"),t.setEdge(u,h,_,r.name+"-cyclic-special")}else(gr[r.v]||gr[r.w])&&(v.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=ud(r.v),h=ud(r.w),t.removeEdge(r.v,r.w,r.name),s!==r.v&&(a.fromCluster=r.v),h!==r.w&&(a.toCluster=r.w),v.warn("Fix Replacing with XXX",s,h,r.name),t.setEdge(s,h,a,r.name))}),v.warn("Adjusted Graph",Bi().json.write(t)),O6(t,0),v.trace(gr))},O6=function t(e,r){if(v.warn("extractor - ",r,Bi().json.write(e),e.children("D")),r>10)v.error("Bailing out");else{for(var a=e.nodes(),s=!1,h=0;h<a.length;h++){var u=a[h],p=e.children(u);s=s||p.length>0}if(s){v.debug("Nodes = ",a,r);for(var _=0;_<a.length;_++){var b=a[_];if(v.debug("Extracting node",b,gr,gr[b]&&!gr[b].externalConnections,!e.parent(b),e.node(b),e.children("D")," Depth ",r),gr[b])if(!gr[b].externalConnections&&e.children(b)&&e.children(b).length>0){v.warn("Cluster without external connections, without a parent and with children",b,r);var M=e.graph().rankdir==="TB"?"LR":"TB";gr[b]&&gr[b].clusterData&&gr[b].clusterData.dir&&(M=gr[b].clusterData.dir,v.warn("Fixing dir",gr[b].clusterData.dir,M));var I=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:M,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});v.warn("Old graph before copy",Bi().json.write(e)),M6(b,e,I,b),e.setNode(b,{clusterNode:!0,id:b,clusterData:gr[b].clusterData,labelText:gr[b].labelText,graph:I}),v.warn("New graph after copy node: (",b,")",Bi().json.write(I)),v.debug("Old graph after copy",Bi().json.write(e))}else v.warn("Cluster ** ",b," **not meeting the criteria !externalConnections:",!gr[b].externalConnections," no parent: ",!e.parent(b)," children ",e.children(b)&&e.children(b).length>0,e.children("D"),r),v.debug(gr);else v.debug("Not a cluster",b,r)}a=e.nodes(),v.warn("New list of nodes",a);for(var R=0;R<a.length;R++){var $=a[R],ht=e.node($);v.warn(" Now next level",$,ht),ht.clusterNode&&t(ht.graph,r+1)}}else v.debug("Done, no node has children",e.nodes())}},V4=function t(e,r){if(r.length===0)return[];var a=Object.assign(r);return r.forEach(function(s){var h=e.children(s),u=t(e,h);a=a.concat(u)}),a},qg=function(t){return V4(t,t.children())},B6=y(3841);const L6=function(t,e,r,a){var s=t.x,h=t.y,u=s-a.x,p=h-a.y,_=Math.sqrt(e*e*p*p+r*r*u*u),b=Math.abs(e*r*u/_);a.x<s&&(b=-b);var M=Math.abs(e*r*p/_);return a.y<h&&(M=-M),{x:s+b,y:h+M}};function hr(t,e){return t*e>0}const G4=function(t,e,r,a){var s,h,u,p,_,b,M,I,R,$,ht,it,pt;if(s=e.y-t.y,u=t.x-e.x,_=e.x*t.y-t.x*e.y,R=s*r.x+u*r.y+_,$=s*a.x+u*a.y+_,!(R!==0&&$!==0&&hr(R,$)||(h=a.y-r.y,p=r.x-a.x,b=a.x*r.y-r.x*a.y,M=h*t.x+p*t.y+b,I=h*e.x+p*e.y+b,M!==0&&I!==0&&hr(M,I)||(ht=s*p-h*u)==0)))return it=Math.abs(ht/2),{x:(pt=u*b-p*_)<0?(pt-it)/ht:(pt+it)/ht,y:(pt=h*_-s*b)<0?(pt-it)/ht:(pt+it)/ht}},Li=function(t,e){var r,a,s=t.x,h=t.y,u=e.x-s,p=e.y-h,_=t.width/2,b=t.height/2;return Math.abs(p)*_>Math.abs(u)*b?(p<0&&(b=-b),r=p===0?0:b*u/p,a=b):(u<0&&(_=-_),r=_,a=u===0?0:_*p/u),{x:s+r,y:h+a}},Jo=(y.n(B6)(),function(t,e,r){return L6(t,e,e,r)}),sc=function(t,e,r){var a=t.x,s=t.y,h=[],u=Number.POSITIVE_INFINITY,p=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ht){u=Math.min(u,ht.x),p=Math.min(p,ht.y)}):(u=Math.min(u,e.x),p=Math.min(p,e.y));for(var _=a-t.width/2-u,b=s-t.height/2-p,M=0;M<e.length;M++){var I=e[M],R=e[M<e.length-1?M+1:0],$=G4(t,r,{x:_+I.x,y:b+I.y},{x:_+R.x,y:b+R.y});$&&h.push($)}return h.length?(h.length>1&&h.sort(function(ht,it){var pt=ht.x-r.x,ft=ht.y-r.y,xt=Math.sqrt(pt*pt+ft*ft),mt=it.x-r.x,Wt=it.y-r.y,re=Math.sqrt(mt*mt+Wt*Wt);return xt<re?-1:xt===re?0:1}),h[0]):t},Ms=Li;function fo(t){return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fo(t)}function Bl(t,e,r,a){var s=[],h=function(p){s.push(p),s.push(0)},u=function(p){s.push(0),s.push(p)};e.includes("t")?(v.debug("add top border"),h(r)):u(r),e.includes("r")?(v.debug("add right border"),h(a)):u(a),e.includes("b")?(v.debug("add bottom border"),h(r)):u(r),e.includes("l")?(v.debug("add left border"),h(a)):u(a),t.attr("stroke-dasharray",s.join(" "))}var ya=function(t,e,r){var a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s=70,h=10;r==="LR"&&(s=10,h=70);var u=a.append("rect").attr("x",-1*s/2).attr("y",-1*h/2).attr("width",s).attr("height",h).attr("class","fork-join");return ui(e,u),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(p){return Ms(e,p)},a},cc={question:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding+(s.height+e.padding),u=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}];v.info("Question main (Circle)");var p=oc(a,h,h,u);return p.attr("style",e.style),ui(e,p),e.intersect=function(_){return v.warn("Intersect called"),sc(e,u,_)},a},rect:function(t,e){var r=Ea(t,e,"node "+e.classes,!0),a=r.shapeSvg,s=r.bbox,h=r.halfPadding;v.trace("Classes = ",e.classes);var u=a.insert("rect",":first-child"),p=s.width+e.padding,_=s.height+e.padding;if(u.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-s.width/2-h).attr("y",-s.height/2-h).attr("width",p).attr("height",_),e.props){var b=new Set(Object.keys(e.props));e.props.borders&&(Bl(u,e.props.borders,p,_),b.delete("borders")),b.forEach(function(M){v.warn("Unknown node property ".concat(M))})}return ui(e,u),e.intersect=function(M){return Ms(e,M)},a},labelRect:function(t,e){var r=Ea(t,e,"label",!0),a=r.shapeSvg;v.trace("Classes = ",e.classes);var s=a.insert("rect",":first-child");if(s.attr("width",0).attr("height",0),a.attr("class","label edgeLabel"),e.props){var h=new Set(Object.keys(e.props));e.props.borders&&(Bl(s,e.props.borders,0,0),h.delete("borders")),h.forEach(function(u){v.warn("Unknown node property ".concat(u))})}return ui(e,s),e.intersect=function(u){return Ms(e,u)},a},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var a,s=t.insert("g").attr("class",r).attr("id",e.domId||e.id),h=s.insert("rect",":first-child"),u=s.insert("line"),p=s.insert("g").attr("class","label"),_=e.labelText.flat?e.labelText.flat():e.labelText;a=fo(_)==="object"?_[0]:_,v.info("Label text abc79",a,_,fo(_)==="object");var b=p.node().appendChild(ga(a,e.labelStyle,!0,!0)),M={width:0,height:0};if(da(Vt().flowchart.htmlLabels)){var I=b.children[0],R=ze(b);M=I.getBoundingClientRect(),R.attr("width",M.width),R.attr("height",M.height)}v.info("Text 2",_);var $=_.slice(1,_.length),ht=b.getBBox(),it=p.node().appendChild(ga($.join?$.join("<br/>"):$,e.labelStyle,!0,!0));if(da(Vt().flowchart.htmlLabels)){var pt=it.children[0],ft=ze(it);M=pt.getBoundingClientRect(),ft.attr("width",M.width),ft.attr("height",M.height)}var xt=e.padding/2;return ze(it).attr("transform","translate( "+(M.width>ht.width?0:(ht.width-M.width)/2)+", "+(ht.height+xt+5)+")"),ze(b).attr("transform","translate( "+(M.width<ht.width?0:-(ht.width-M.width)/2)+", 0)"),M=p.node().getBBox(),p.attr("transform","translate("+-M.width/2+", "+(-M.height/2-xt+3)+")"),h.attr("class","outer title-state").attr("x",-M.width/2-xt).attr("y",-M.height/2-xt).attr("width",M.width+e.padding).attr("height",M.height+e.padding),u.attr("class","divider").attr("x1",-M.width/2-xt).attr("x2",M.width/2+xt).attr("y1",-M.height/2-xt+ht.height+xt).attr("y2",-M.height/2-xt+ht.height+xt),ui(e,h),e.intersect=function(mt){return Ms(e,mt)},s},choice:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(a){return Jo(e,14,a)},r},circle:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=r.halfPadding,u=a.insert("circle",":first-child");return u.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+h).attr("width",s.width+e.padding).attr("height",s.height+e.padding),v.info("Circle main"),ui(e,u),e.intersect=function(p){return v.info("Circle intersect",e,s.width/2+h,p),Jo(e,s.width/2+h,p)},a},doublecircle:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=r.halfPadding,u=a.insert("g",":first-child"),p=u.insert("circle"),_=u.insert("circle");return p.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+h+5).attr("width",s.width+e.padding+10).attr("height",s.height+e.padding+10),_.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+h).attr("width",s.width+e.padding).attr("height",s.height+e.padding),v.info("DoubleCircle main"),ui(e,p),e.intersect=function(b){return v.info("DoubleCircle intersect",e,s.width/2+h+5,b),Jo(e,s.width/2+h+5,b)},a},stadium:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.height+e.padding,u=s.width+h/4+e.padding,p=a.insert("rect",":first-child").attr("style",e.style).attr("rx",h/2).attr("ry",h/2).attr("x",-u/2).attr("y",-h/2).attr("width",u).attr("height",h);return ui(e,p),e.intersect=function(_){return Ms(e,_)},a},hexagon:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.height+e.padding,u=h/4,p=s.width+2*u+e.padding,_=[{x:u,y:0},{x:p-u,y:0},{x:p,y:-h/2},{x:p-u,y:-h},{x:u,y:-h},{x:0,y:-h/2}],b=oc(a,p,h,_);return b.attr("style",e.style),ui(e,b),e.intersect=function(M){return sc(e,_,M)},a},rect_left_inv_arrow:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:-u/2,y:0},{x:h,y:0},{x:h,y:-u},{x:-u/2,y:-u},{x:0,y:-u/2}];return oc(a,h,u,p).attr("style",e.style),e.width=h+u,e.height=u,e.intersect=function(_){return sc(e,p,_)},a},lean_right:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:-2*u/6,y:0},{x:h-u/6,y:0},{x:h+2*u/6,y:-u},{x:u/6,y:-u}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},lean_left:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:2*u/6,y:0},{x:h+u/6,y:0},{x:h-2*u/6,y:-u},{x:-u/6,y:-u}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},trapezoid:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:-2*u/6,y:0},{x:h+2*u/6,y:0},{x:h-u/6,y:-u},{x:u/6,y:-u}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},inv_trapezoid:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:u/6,y:0},{x:h-u/6,y:0},{x:h+2*u/6,y:-u},{x:-2*u/6,y:-u}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},rect_right_inv_arrow:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:0,y:0},{x:h+u/2,y:0},{x:h,y:-u/2},{x:h+u/2,y:-u},{x:0,y:-u}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},cylinder:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=h/2,p=u/(2.5+h/50),_=s.height+p+e.padding,b="M 0,"+p+" a "+u+","+p+" 0,0,0 "+h+" 0 a "+u+","+p+" 0,0,0 "+-h+" 0 l 0,"+_+" a "+u+","+p+" 0,0,0 "+h+" 0 l 0,"+-_,M=a.attr("label-offset-y",p).insert("path",":first-child").attr("style",e.style).attr("d",b).attr("transform","translate("+-h/2+","+-(_/2+p)+")");return ui(e,M),e.intersect=function(I){var R=Ms(e,I),$=R.x-e.x;if(u!=0&&(Math.abs($)<e.width/2||Math.abs($)==e.width/2&&Math.abs(R.y-e.y)>e.height/2-p)){var ht=p*p*(1-$*$/(u*u));ht!=0&&(ht=Math.sqrt(ht)),ht=p-ht,I.y-e.y>0&&(ht=-ht),R.y+=ht}return R},a},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ui(e,a),e.intersect=function(s){return Jo(e,7,s)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ui(e,s),e.intersect=function(h){return Jo(e,7,h)},r},note:function(t,e){var r=Ea(t,e,"node "+e.classes,!0),a=r.shapeSvg,s=r.bbox,h=r.halfPadding;v.info("Classes = ",e.classes);var u=a.insert("rect",":first-child");return u.attr("rx",e.rx).attr("ry",e.ry).attr("x",-s.width/2-h).attr("y",-s.height/2-h).attr("width",s.width+e.padding).attr("height",s.height+e.padding),ui(e,u),e.intersect=function(p){return Ms(e,p)},a},subroutine:function(t,e){var r=Ea(t,e,void 0,!0),a=r.shapeSvg,s=r.bbox,h=s.width+e.padding,u=s.height+e.padding,p=[{x:0,y:0},{x:h,y:0},{x:h,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-u},{x:-8,y:-u},{x:-8,y:0}],_=oc(a,h,u,p);return _.attr("style",e.style),ui(e,_),e.intersect=function(b){return sc(e,p,b)},a},fork:ya,join:ya,class_box:function(t,e){var r,a=e.padding/2;r=e.classes?"node "+e.classes:"node default";var s=t.insert("g").attr("class",r).attr("id",e.domId||e.id),h=s.insert("rect",":first-child"),u=s.insert("line"),p=s.insert("line"),_=0,b=4,M=s.insert("g").attr("class","label"),I=0,R=e.classData.annotations&&e.classData.annotations[0],$=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ht=M.node().appendChild(ga($,e.labelStyle,!0,!0)),it=ht.getBBox();if(da(Vt().flowchart.htmlLabels)){var pt=ht.children[0],ft=ze(ht);it=pt.getBoundingClientRect(),ft.attr("width",it.width),ft.attr("height",it.height)}e.classData.annotations[0]&&(b+=it.height+4,_+=it.width);var xt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(Vt().flowchart.htmlLabels?xt+="&lt;"+e.classData.type+"&gt;":xt+="<"+e.classData.type+">");var mt=M.node().appendChild(ga(xt,e.labelStyle,!0,!0));ze(mt).attr("class","classTitle");var Wt=mt.getBBox();if(da(Vt().flowchart.htmlLabels)){var re=mt.children[0],Rt=ze(mt);Wt=re.getBoundingClientRect(),Rt.attr("width",Wt.width),Rt.attr("height",Wt.height)}b+=Wt.height+4,Wt.width>_&&(_=Wt.width);var Jt=[];e.classData.members.forEach(function(vt){var ct=ad(vt),Mt=ct.displayText;Vt().flowchart.htmlLabels&&(Mt=Mt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var yt=M.node().appendChild(ga(Mt,ct.cssStyle?ct.cssStyle:e.labelStyle,!0,!0)),xe=yt.getBBox();if(da(Vt().flowchart.htmlLabels)){var Te=yt.children[0],Gt=ze(yt);xe=Te.getBoundingClientRect(),Gt.attr("width",xe.width),Gt.attr("height",xe.height)}xe.width>_&&(_=xe.width),b+=xe.height+4,Jt.push(yt)}),b+=8;var te=[];if(e.classData.methods.forEach(function(vt){var ct=ad(vt),Mt=ct.displayText;Vt().flowchart.htmlLabels&&(Mt=Mt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var yt=M.node().appendChild(ga(Mt,ct.cssStyle?ct.cssStyle:e.labelStyle,!0,!0)),xe=yt.getBBox();if(da(Vt().flowchart.htmlLabels)){var Te=yt.children[0],Gt=ze(yt);xe=Te.getBoundingClientRect(),Gt.attr("width",xe.width),Gt.attr("height",xe.height)}xe.width>_&&(_=xe.width),b+=xe.height+4,te.push(yt)}),b+=8,R){var Et=(_-it.width)/2;ze(ht).attr("transform","translate( "+(-1*_/2+Et)+", "+-1*b/2+")"),I=it.height+4}var wt=(_-Wt.width)/2;return ze(mt).attr("transform","translate( "+(-1*_/2+wt)+", "+(-1*b/2+I)+")"),I+=Wt.height+4,u.attr("class","divider").attr("x1",-_/2-a).attr("x2",_/2+a).attr("y1",-b/2-a+8+I).attr("y2",-b/2-a+8+I),I+=8,Jt.forEach(function(vt){ze(vt).attr("transform","translate( "+-_/2+", "+(-1*b/2+I+4)+")"),I+=Wt.height+4}),I+=8,p.attr("class","divider").attr("x1",-_/2-a).attr("x2",_/2+a).attr("y1",-b/2-a+8+I).attr("y2",-b/2-a+8+I),I+=8,te.forEach(function(vt){ze(vt).attr("transform","translate( "+-_/2+", "+(-1*b/2+I)+")"),I+=Wt.height+4}),h.attr("class","outer title-state").attr("x",-_/2-a).attr("y",-b/2-a).attr("width",_+e.padding).attr("height",b+e.padding),ui(e,h),e.intersect=function(vt){return Ms(e,vt)},s}},lc={},uc=function(t){var e=lc[t.id];v.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},I6={rect:function(t,e){v.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),a=r.insert("rect",":first-child"),s=r.insert("g").attr("class","cluster-label"),h=s.node().appendChild(ga(e.labelText,e.labelStyle,void 0,!0)),u=h.getBBox();if(da(Vt().flowchart.htmlLabels)){var p=h.children[0],_=ze(h);u=p.getBoundingClientRect(),_.attr("width",u.width),_.attr("height",u.height)}var b=0*e.padding,M=b/2,I=e.width<=u.width+b?u.width+b:e.width;e.width<=u.width+b?e.diff=(u.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,v.trace("Data ",e,JSON.stringify(e)),a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-I/2).attr("y",e.y-e.height/2-M).attr("width",I).attr("height",e.height+b),s.attr("transform","translate("+(e.x-u.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var R=a.node().getBBox();return e.width=R.width,e.height=R.height,e.intersect=function($){return Li(e,$)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),s=r.insert("g").attr("class","cluster-label"),h=r.append("rect"),u=s.node().appendChild(ga(e.labelText,e.labelStyle,void 0,!0)),p=u.getBBox();if(da(Vt().flowchart.htmlLabels)){var _=u.children[0],b=ze(u);p=_.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}p=u.getBBox();var M=0*e.padding,I=M/2,R=e.width<=p.width+e.padding?p.width+e.padding:e.width;e.width<=p.width+e.padding?e.diff=(p.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,a.attr("class","outer").attr("x",e.x-R/2-I).attr("y",e.y-e.height/2-I).attr("width",R+M).attr("height",e.height+M),h.attr("class","inner").attr("x",e.x-R/2-I).attr("y",e.y-e.height/2-I+p.height-1).attr("width",R+M).attr("height",e.height+M-p.height-3),s.attr("transform","translate("+(e.x-p.width/2)+", "+(e.y-e.height/2-e.padding/3+(da(Vt().flowchart.htmlLabels)?5:3))+")");var $=a.node().getBBox();return e.height=$.height,e.intersect=function(ht){return Li(e,ht)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),a=r.insert("rect",":first-child"),s=0*e.padding,h=s/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-h).attr("y",e.y-e.height/2-h).attr("width",e.width+s).attr("height",e.height+s).attr("fill","none");var u=a.node().getBBox();return e.width=u.width,e.height=u.height,e.intersect=function(p){return Li(e,p)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),s=0*e.padding,h=s/2;a.attr("class","divider").attr("x",e.x-e.width/2-h).attr("y",e.y-e.height/2).attr("width",e.width+s).attr("height",e.height+s);var u=a.node().getBBox();return e.width=u.width,e.height=u.height,e.diff=-e.padding/2,e.intersect=function(p){return Li(e,p)},r}},Wg={},hd={},ma={},F6=function(t,e){var r=ga(e.label,e.labelStyle),a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(r);var h,u=r.getBBox();if(da(Vt().flowchart.htmlLabels)){var p=r.children[0],_=ze(r);u=p.getBoundingClientRect(),_.attr("width",u.width),_.attr("height",u.height)}if(s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),hd[e.id]=a,e.width=u.width,e.height=u.height,e.startLabelLeft){var b=ga(e.startLabelLeft,e.labelStyle),M=t.insert("g").attr("class","edgeTerminals"),I=M.insert("g").attr("class","inner");h=I.node().appendChild(b);var R=b.getBBox();I.attr("transform","translate("+-R.width/2+", "+-R.height/2+")"),ma[e.id]||(ma[e.id]={}),ma[e.id].startLeft=M,fd(h,e.startLabelLeft)}if(e.startLabelRight){var $=ga(e.startLabelRight,e.labelStyle),ht=t.insert("g").attr("class","edgeTerminals"),it=ht.insert("g").attr("class","inner");h=ht.node().appendChild($),it.node().appendChild($);var pt=$.getBBox();it.attr("transform","translate("+-pt.width/2+", "+-pt.height/2+")"),ma[e.id]||(ma[e.id]={}),ma[e.id].startRight=ht,fd(h,e.startLabelRight)}if(e.endLabelLeft){var ft=ga(e.endLabelLeft,e.labelStyle),xt=t.insert("g").attr("class","edgeTerminals"),mt=xt.insert("g").attr("class","inner");h=mt.node().appendChild(ft);var Wt=ft.getBBox();mt.attr("transform","translate("+-Wt.width/2+", "+-Wt.height/2+")"),xt.node().appendChild(ft),ma[e.id]||(ma[e.id]={}),ma[e.id].endLeft=xt,fd(h,e.endLabelLeft)}if(e.endLabelRight){var re=ga(e.endLabelRight,e.labelStyle),Rt=t.insert("g").attr("class","edgeTerminals"),Jt=Rt.insert("g").attr("class","inner");h=Jt.node().appendChild(re);var te=re.getBBox();Jt.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),Rt.node().appendChild(re),ma[e.id]||(ma[e.id]={}),ma[e.id].endRight=Rt,fd(h,e.endLabelRight)}};function fd(t,e){Vt().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var R6=function(t,e){v.info("Moving label abc78 ",t.id,t.label,hd[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var a=hd[t.id],s=t.x,h=t.y;if(r){var u=ir.calcLabelPosition(r);v.info("Moving label from (",s,",",h,") to (",u.x,",",u.y,") abc78")}a.attr("transform","translate("+s+", "+h+")")}if(t.startLabelLeft){var p=ma[t.id].startLeft,_=t.x,b=t.y;if(r){var M=ir.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);_=M.x,b=M.y}p.attr("transform","translate("+_+", "+b+")")}if(t.startLabelRight){var I=ma[t.id].startRight,R=t.x,$=t.y;if(r){var ht=ir.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);R=ht.x,$=ht.y}I.attr("transform","translate("+R+", "+$+")")}if(t.endLabelLeft){var it=ma[t.id].endLeft,pt=t.x,ft=t.y;if(r){var xt=ir.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);pt=xt.x,ft=xt.y}it.attr("transform","translate("+pt+", "+ft+")")}if(t.endLabelRight){var mt=ma[t.id].endRight,Wt=t.x,re=t.y;if(r){var Rt=ir.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);Wt=Rt.x,re=Rt.y}mt.attr("transform","translate("+Wt+", "+re+")")}},X4=function(t,e){v.warn("abc88 cutPathAtIntersect",t,e);var r=[],a=t[0],s=!1;return t.forEach(function(h){if(v.info("abc88 checking point",h,e),function(_,b){var M=_.x,I=_.y,R=Math.abs(b.x-M),$=Math.abs(b.y-I),ht=_.width/2,it=_.height/2;return R>=ht||$>=it}(e,h)||s)v.warn("abc88 outside",h,a),a=h,s||r.push(h);else{var u=function(_,b,M){v.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(b),`
insidePoint : `).concat(JSON.stringify(M),`
node : x:`).concat(_.x," y:").concat(_.y," w:").concat(_.width," h:").concat(_.height));var I=_.x,R=_.y,$=Math.abs(I-M.x),ht=_.width/2,it=M.x<b.x?ht-$:ht+$,pt=_.height/2,ft=Math.abs(b.y-M.y),xt=Math.abs(b.x-M.x);if(Math.abs(R-b.y)*ht>Math.abs(I-b.x)*pt){var mt=M.y<b.y?b.y-pt-R:R-pt-b.y;it=xt*mt/ft;var Wt={x:M.x<b.x?M.x+it:M.x-xt+it,y:M.y<b.y?M.y+ft-mt:M.y-ft+mt};return it===0&&(Wt.x=b.x,Wt.y=b.y),xt===0&&(Wt.x=b.x),ft===0&&(Wt.y=b.y),v.warn("abc89 topp/bott calc, Q ".concat(ft,", q ").concat(mt,", R ").concat(xt,", r ").concat(it),Wt),Wt}var re=ft*(it=M.x<b.x?b.x-ht-I:I-ht-b.x)/xt,Rt=M.x<b.x?M.x+xt-it:M.x-xt+it,Jt=M.y<b.y?M.y+re:M.y-re;return v.warn("sides calc abc89, Q ".concat(ft,", q ").concat(re,", R ").concat(xt,", r ").concat(it),{_x:Rt,_y:Jt}),it===0&&(Rt=b.x,Jt=b.y),xt===0&&(Rt=b.x),ft===0&&(Jt=b.y),{x:Rt,y:Jt}}(e,a,h);v.warn("abc88 inside",h,a,u),v.warn("abc88 intersection",u);var p=!1;r.forEach(function(_){p=p||_.x===u.x&&_.y===u.y}),r.find(function(_){return _.x===u.x&&_.y===u.y})?v.warn("abc88 no intersect",u,r):r.push(u),s=!0}}),v.warn("abc88 returning points",r),r},dd=function t(e,r,a,s){v.info("Graph in recursive render: XXX",Bi().json.write(r),s);var h=r.graph().rankdir;v.trace("Dir in recursive render - dir:",h);var u=e.insert("g").attr("class","root");r.nodes()?v.info("Recursive render XXX",r.nodes()):v.info("No nodes found for",r),r.edges().length>0&&v.trace("Recursive edges",r.edge(r.edges()[0]));var p=u.insert("g").attr("class","clusters"),_=u.insert("g").attr("class","edgePaths"),b=u.insert("g").attr("class","edgeLabels"),M=u.insert("g").attr("class","nodes");r.nodes().forEach(function(R){var $=r.node(R);if(s!==void 0){var ht=JSON.parse(JSON.stringify(s.clusterData));v.info("Setting data for cluster XXX (",R,") ",ht,s),r.setNode(s.id,ht),r.parent(R)||(v.trace("Setting parent",R,s.id),r.setParent(R,s.id,ht))}if(v.info("(Insert) Node XXX"+R+": "+JSON.stringify(r.node(R))),$&&$.clusterNode){v.info("Cluster identified",R,$.width,r.node(R));var it=t(M,$.graph,a,r.node(R)),pt=it.elem;ui($,pt),$.diff=it.diff||0,v.info("Node bounds (abc123)",R,$,$.width,$.x,$.y),function(ft,xt){lc[xt.id]=ft}(pt,$),v.warn("Recursive render complete ",pt,$)}else r.children(R).length>0?(v.info("Cluster - the non recursive path XXX",R,$.id,$,r),v.info(ld($.id,r)),gr[$.id]={id:ld($.id,r),node:$}):(v.info("Node - the non recursive path",R,$.id,$),function(ft,xt,mt){var Wt,re,Rt;xt.link?(Vt().securityLevel==="sandbox"?Rt="_top":xt.linkTarget&&(Rt=xt.linkTarget||"_blank"),Wt=ft.insert("svg:a").attr("xlink:href",xt.link).attr("target",Rt),re=cc[xt.shape](Wt,xt,mt)):Wt=re=cc[xt.shape](ft,xt,mt),xt.tooltip&&re.attr("title",xt.tooltip),xt.class&&re.attr("class","node default "+xt.class),lc[xt.id]=Wt,xt.haveCallback&&lc[xt.id].attr("class",lc[xt.id].attr("class")+" clickable")}(M,r.node(R),h))}),r.edges().forEach(function(R){var $=r.edge(R.v,R.w,R.name);v.info("Edge "+R.v+" -> "+R.w+": "+JSON.stringify(R)),v.info("Edge "+R.v+" -> "+R.w+": ",R," ",JSON.stringify(r.edge(R))),v.info("Fix",gr,"ids:",R.v,R.w,"Translateing: ",gr[R.v],gr[R.w]),F6(b,$)}),r.edges().forEach(function(R){v.info("Edge "+R.v+" -> "+R.w+": "+JSON.stringify(R))}),v.info("#############################################"),v.info("### Layout ###"),v.info("#############################################"),v.info(r),Wu().layout(r),v.info("Graph after layout:",Bi().json.write(r));var I=0;return qg(r).forEach(function(R){var $=r.node(R);v.info("Position "+R+": "+JSON.stringify(r.node(R))),v.info("Position "+R+": ("+$.x,","+$.y,") width: ",$.width," height: ",$.height),$&&$.clusterNode?uc($):r.children(R).length>0?(function(ht,it){v.trace("Inserting cluster");var pt=it.shape||"rect";Wg[it.id]=I6[pt](ht,it)}(p,$),gr[$.id].node=$):uc($)}),r.edges().forEach(function(R){var $=r.edge(R);v.info("Edge "+R.v+" -> "+R.w+": "+JSON.stringify($),$);var ht=function(it,pt,ft,xt,mt,Wt){var re=ft.points,Rt=!1,Jt=Wt.node(pt.v),te=Wt.node(pt.w);v.info("abc88 InsertEdge: ",ft),te.intersect&&Jt.intersect&&((re=re.slice(1,ft.points.length-1)).unshift(Jt.intersect(re[0])),v.info("Last point",re[re.length-1],te,te.intersect(re[re.length-1])),re.push(te.intersect(re[re.length-1]))),ft.toCluster&&(v.info("to cluster abc88",xt[ft.toCluster]),re=X4(ft.points,xt[ft.toCluster].node),Rt=!0),ft.fromCluster&&(v.info("from cluster abc88",xt[ft.fromCluster]),re=X4(re.reverse(),xt[ft.fromCluster].node).reverse(),Rt=!0);var Et,wt=re.filter(function(Te){return!Number.isNaN(Te.y)});Et=(mt==="graph"||mt==="flowchart")&&ft.curve||Xr;var vt,ct=Po().x(function(Te){return Te.x}).y(function(Te){return Te.y}).curve(Et);switch(ft.thickness){case"normal":vt="edge-thickness-normal";break;case"thick":vt="edge-thickness-thick";break;default:vt=""}switch(ft.pattern){case"solid":vt+=" edge-pattern-solid";break;case"dotted":vt+=" edge-pattern-dotted";break;case"dashed":vt+=" edge-pattern-dashed"}var Mt=it.append("path").attr("d",ct(wt)).attr("id",ft.id).attr("class"," "+vt+(ft.classes?" "+ft.classes:"")).attr("style",ft.style),yt="";switch(Vt().state.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),v.info("arrowTypeStart",ft.arrowTypeStart),v.info("arrowTypeEnd",ft.arrowTypeEnd),ft.arrowTypeStart){case"arrow_cross":Mt.attr("marker-start","url("+yt+"#"+mt+"-crossStart)");break;case"arrow_point":Mt.attr("marker-start","url("+yt+"#"+mt+"-pointStart)");break;case"arrow_barb":Mt.attr("marker-start","url("+yt+"#"+mt+"-barbStart)");break;case"arrow_circle":Mt.attr("marker-start","url("+yt+"#"+mt+"-circleStart)");break;case"aggregation":Mt.attr("marker-start","url("+yt+"#"+mt+"-aggregationStart)");break;case"extension":Mt.attr("marker-start","url("+yt+"#"+mt+"-extensionStart)");break;case"composition":Mt.attr("marker-start","url("+yt+"#"+mt+"-compositionStart)");break;case"dependency":Mt.attr("marker-start","url("+yt+"#"+mt+"-dependencyStart)")}switch(ft.arrowTypeEnd){case"arrow_cross":Mt.attr("marker-end","url("+yt+"#"+mt+"-crossEnd)");break;case"arrow_point":Mt.attr("marker-end","url("+yt+"#"+mt+"-pointEnd)");break;case"arrow_barb":Mt.attr("marker-end","url("+yt+"#"+mt+"-barbEnd)");break;case"arrow_circle":Mt.attr("marker-end","url("+yt+"#"+mt+"-circleEnd)");break;case"aggregation":Mt.attr("marker-end","url("+yt+"#"+mt+"-aggregationEnd)");break;case"extension":Mt.attr("marker-end","url("+yt+"#"+mt+"-extensionEnd)");break;case"composition":Mt.attr("marker-end","url("+yt+"#"+mt+"-compositionEnd)");break;case"dependency":Mt.attr("marker-end","url("+yt+"#"+mt+"-dependencyEnd)")}var xe={};return Rt&&(xe.updatedPath=re),xe.originalPath=ft.points,xe}(_,R,$,gr,a,r);R6($,ht)}),r.nodes().forEach(function(R){var $=r.node(R);v.info(R,$.type,$.diff),$.type==="group"&&(I=$.diff)}),{elem:u,diff:I}},$g=function(t,e,r,a,s){A6(t,r,a,s),lc={},hd={},ma={},Wg={},Qo={},H4={},gr={},v.warn("Graph at first:",Bi().json.write(e)),D6(e),v.warn("Graph after:",Bi().json.write(e)),dd(t,e,a)};qc.parser.yy=Zo;var Hg={dividerMargin:10,padding:5,textHeight:10};function O1(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var Ll={},B1=[],pd=function(t){return Ll[t]===void 0&&(Ll[t]={attributes:[]},v.info("Added new entity :",t)),Ll[t]};const qa={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().er},addEntity:pd,addAttributes:function(t,e){var r,a=pd(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),v.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return Ll},addRelationship:function(t,e,r,a){var s={entityA:t,roleA:e,entityB:r,relSpec:a};B1.push(s),v.debug("Added new relationship :",s)},getRelationships:function(){return B1},clear:function(){Ll={},B1=[],Cs()},setAccTitle:Ua,getAccTitle:ta,setAccDescription:xo,getAccDescription:wo};var P6=y(5890),Z4=y.n(P6),hc={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const fc=hc;var Hr={},gd=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},Hu=0;const Vg=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Hr[e[r]]=t[e[r]]},Q4=function(t,e){v.info("Drawing ER diagram"),qa.clear();var r=Z4().parser;r.yy=qa;var a,s=Vt().securityLevel;s==="sandbox"&&(a=ze("#i"+e));var h=ze(s==="sandbox"?a.nodes()[0].contentDocument.body:"body");s==="sandbox"&&a.nodes()[0].contentDocument;try{r.parse(t)}catch{v.debug("Parsing failed")}var u,p=h.select("[id='".concat(e,"']"));(function(ht,it){var pt;ht.append("defs").append("marker").attr("id",hc.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),ht.append("defs").append("marker").attr("id",hc.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(pt=ht.append("defs").append("marker").attr("id",hc.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",it.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),pt.append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(pt=ht.append("defs").append("marker").attr("id",hc.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",it.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),pt.append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M21,0 L21,18"),ht.append("defs").append("marker").attr("id",hc.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),ht.append("defs").append("marker").attr("id",hc.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(pt=ht.append("defs").append("marker").attr("id",hc.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",it.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),pt.append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(pt=ht.append("defs").append("marker").attr("id",hc.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",it.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),pt.append("path").attr("stroke",it.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(p,Hr),u=new(Bi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Hr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var _=function(ht,it,pt){var ft;return Object.keys(it).forEach(function(xt){var mt=ht.append("g").attr("id",xt);ft=ft===void 0?xt:ft;var Wt="entity-"+xt,re=mt.append("text").attr("class","er entityLabel").attr("id",Wt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+Hr.fontSize+"px").text(xt),Rt=function(wt,vt,ct){var Mt=Hr.entityPadding/3,yt=Hr.entityPadding/3,xe=.85*Hr.fontSize,Te=vt.node().getBBox(),Gt=[],ve=!1,le=!1,be=0,Fe=0,Ye=0,fn=0,rn=Te.height+2*Mt,Sn=1;ct.forEach(function(nr){nr.attributeKeyType!==void 0&&(ve=!0),nr.attributeComment!==void 0&&(le=!0)}),ct.forEach(function(nr){var ki="".concat(vt.node().id,"-attr-").concat(Sn),ar=0,Rn=wt.append("text").attr("class","er entityLabel").attr("id","".concat(ki,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+xe+"px").text(nr.attributeType),Aa=wt.append("text").attr("class","er entityLabel").attr("id","".concat(ki,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+xe+"px").text(nr.attributeName),Mr={};Mr.tn=Rn,Mr.nn=Aa;var Ao=Rn.node().getBBox(),G1=Aa.node().getBBox();if(be=Math.max(be,Ao.width),Fe=Math.max(Fe,G1.width),ar=Math.max(Ao.height,G1.height),ve){var my=wt.append("text").attr("class","er entityLabel").attr("id","".concat(ki,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+xe+"px").text(nr.attributeKeyType||"");Mr.kn=my;var tx=my.node().getBBox();Ye=Math.max(Ye,tx.width),ar=Math.max(ar,tx.height)}if(le){var ex=wt.append("text").attr("class","er entityLabel").attr("id","".concat(ki,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+xe+"px").text(nr.attributeComment||"");Mr.cn=ex;var nx=ex.node().getBBox();fn=Math.max(fn,nx.width),ar=Math.max(ar,nx.height)}Mr.height=ar,Gt.push(Mr),rn+=ar+2*Mt,Sn+=1});var er=4;ve&&(er+=2),le&&(er+=2);var Br=be+Fe+Ye+fn,_n={width:Math.max(Hr.minEntityWidth,Math.max(Te.width+2*Hr.entityPadding,Br+yt*er)),height:ct.length>0?rn:Math.max(Hr.minEntityHeight,Te.height+2*Hr.entityPadding)};if(ct.length>0){var Vr=Math.max(0,(_n.width-Br-yt*er)/(er/2));vt.attr("transform","translate("+_n.width/2+","+(Mt+Te.height/2)+")");var ii=Te.height+2*Mt,yi="attributeBoxOdd";Gt.forEach(function(nr){var ki=ii+Mt+nr.height/2;nr.tn.attr("transform","translate("+yt+","+ki+")");var ar=wt.insert("rect","#"+nr.tn.node().id).attr("class","er ".concat(yi)).attr("fill",Hr.fill).attr("fill-opacity","100%").attr("stroke",Hr.stroke).attr("x",0).attr("y",ii).attr("width",be+2*yt+Vr).attr("height",nr.height+2*Mt),Rn=parseFloat(ar.attr("x"))+parseFloat(ar.attr("width"));nr.nn.attr("transform","translate("+(Rn+yt)+","+ki+")");var Aa=wt.insert("rect","#"+nr.nn.node().id).attr("class","er ".concat(yi)).attr("fill",Hr.fill).attr("fill-opacity","100%").attr("stroke",Hr.stroke).attr("x",Rn).attr("y",ii).attr("width",Fe+2*yt+Vr).attr("height",nr.height+2*Mt),Mr=parseFloat(Aa.attr("x"))+parseFloat(Aa.attr("width"));if(ve){nr.kn.attr("transform","translate("+(Mr+yt)+","+ki+")");var Ao=wt.insert("rect","#"+nr.kn.node().id).attr("class","er ".concat(yi)).attr("fill",Hr.fill).attr("fill-opacity","100%").attr("stroke",Hr.stroke).attr("x",Mr).attr("y",ii).attr("width",Ye+2*yt+Vr).attr("height",nr.height+2*Mt);Mr=parseFloat(Ao.attr("x"))+parseFloat(Ao.attr("width"))}le&&(nr.cn.attr("transform","translate("+(Mr+yt)+","+ki+")"),wt.insert("rect","#"+nr.cn.node().id).attr("class","er ".concat(yi)).attr("fill",Hr.fill).attr("fill-opacity","100%").attr("stroke",Hr.stroke).attr("x",Mr).attr("y",ii).attr("width",fn+2*yt+Vr).attr("height",nr.height+2*Mt)),ii+=nr.height+2*Mt,yi=yi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else _n.height=Math.max(Hr.minEntityHeight,rn),vt.attr("transform","translate("+_n.width/2+","+_n.height/2+")");return _n}(mt,re,it[xt].attributes),Jt=Rt.width,te=Rt.height,Et=mt.insert("rect","#"+Wt).attr("class","er entityBox").attr("fill",Hr.fill).attr("fill-opacity","100%").attr("stroke",Hr.stroke).attr("x",0).attr("y",0).attr("width",Jt).attr("height",te).node().getBBox();pt.setNode(xt,{width:Et.width,height:Et.height,shape:"rect",id:xt})}),ft}(p,qa.getEntities(),u),b=function(ht,it){return ht.forEach(function(pt){it.setEdge(pt.entityA,pt.entityB,{relationship:pt},gd(pt))}),ht}(qa.getRelationships(),u);Wu().layout(u),function(ht,it){it.nodes().forEach(function(pt){pt!==void 0&&it.node(pt)!==void 0&&ht.select("#"+pt).attr("transform","translate("+(it.node(pt).x-it.node(pt).width/2)+","+(it.node(pt).y-it.node(pt).height/2)+" )")})}(p,u),b.forEach(function(ht){(function(it,pt,ft,xt){Hu++;var mt=ft.edge(pt.entityA,pt.entityB,gd(pt)),Wt=Po().x(function(vt){return vt.x}).y(function(vt){return vt.y}).curve(Xr),re=it.insert("path","#"+xt).attr("class","er relationshipLine").attr("d",Wt(mt.points)).attr("stroke",Hr.stroke).attr("fill","none");pt.relSpec.relType===qa.Identification.NON_IDENTIFYING&&re.attr("stroke-dasharray","8,8");var Rt="";switch(Hr.arrowMarkerAbsolute&&(Rt=(Rt=(Rt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),pt.relSpec.cardA){case qa.Cardinality.ZERO_OR_ONE:re.attr("marker-end","url("+Rt+"#"+fc.ZERO_OR_ONE_END+")");break;case qa.Cardinality.ZERO_OR_MORE:re.attr("marker-end","url("+Rt+"#"+fc.ZERO_OR_MORE_END+")");break;case qa.Cardinality.ONE_OR_MORE:re.attr("marker-end","url("+Rt+"#"+fc.ONE_OR_MORE_END+")");break;case qa.Cardinality.ONLY_ONE:re.attr("marker-end","url("+Rt+"#"+fc.ONLY_ONE_END+")")}switch(pt.relSpec.cardB){case qa.Cardinality.ZERO_OR_ONE:re.attr("marker-start","url("+Rt+"#"+fc.ZERO_OR_ONE_START+")");break;case qa.Cardinality.ZERO_OR_MORE:re.attr("marker-start","url("+Rt+"#"+fc.ZERO_OR_MORE_START+")");break;case qa.Cardinality.ONE_OR_MORE:re.attr("marker-start","url("+Rt+"#"+fc.ONE_OR_MORE_START+")");break;case qa.Cardinality.ONLY_ONE:re.attr("marker-start","url("+Rt+"#"+fc.ONLY_ONE_START+")")}var Jt=re.node().getTotalLength(),te=re.node().getPointAtLength(.5*Jt),Et="rel"+Hu,wt=it.append("text").attr("class","er relationshipLabel").attr("id",Et).attr("x",te.x).attr("y",te.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Vt().fontFamily+"; font-size: "+Hr.fontSize+"px").text(pt.roleA).node().getBBox();it.insert("rect","#"+Et).attr("class","er relationshipLabelBox").attr("x",te.x-wt.width/2).attr("y",te.y-wt.height/2).attr("width",wt.width).attr("height",wt.height).attr("fill","white").attr("fill-opacity","85%")})(p,ht,u,_)});var M=Hr.diagramPadding,I=p.node().getBBox(),R=I.width+2*M,$=I.height+2*M;ho(p,$,R,Hr.useMaxWidth),p.attr("viewBox","".concat(I.x-M," ").concat(I.y-M," ").concat(R," ").concat($)),Qa(r.yy,p,e)};function Il(t){return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Il(t)}function L1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var dc,yd,Gg="flowchart-",J4=0,Xg=Vt(),wi={},Fl=[],Vu=[],Ns=[],Gu={},md={},vd=0,Zg=!0,I1=[],F1=function(t){return Xn.sanitizeText(t,Xg)},bd=function(t){for(var e=Object.keys(wi),r=0;r<e.length;r++)if(wi[e[r]].id===t)return wi[e[r]].domId;return t},Y6=function(t,e,r,a){var s={start:t,end:e,type:void 0,text:""};(a=r.text)!==void 0&&(s.text=F1(a.trim()),s.text[0]==='"'&&s.text[s.text.length-1]==='"'&&(s.text=s.text.substring(1,s.text.length-1))),r!==void 0&&(s.type=r.type,s.stroke=r.stroke,s.length=r.length),Fl.push(s)},_d=function(t,e){t.split(",").forEach(function(r){var a=r;wi[a]!==void 0&&wi[a].classes.push(e),Gu[a]!==void 0&&Gu[a].classes.push(e)})},Qg=function(t){var e=ze(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=ze("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),ze(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=ze(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),ze(this).classed("hover",!1)})};I1.push(Qg);var Jg=function(t){for(var e=0;e<Ns.length;e++)if(Ns[e].id===t)return e;return-1},xd=-1,po=[],Co=function t(e,r){var a=Ns[r].nodes;if(!((xd+=1)>2e3)){if(po[xd]=r,Ns[r].id===e)return{result:!0,count:0};for(var s=0,h=1;s<a.length;){var u=Jg(a[s]);if(u>=0){var p=t(e,u);if(p.result)return{result:!0,count:h+p.count};h+=p.count}s+=1}return{result:!1,count:h}}},wd=function(t,e){var r=!1;return t.forEach(function(a){a.nodes.indexOf(e)>=0&&(r=!0)}),r},K4=function(t,e){var r=[];return t.nodes.forEach(function(a,s){wd(e,a)||r.push(t.nodes[s])}),{nodes:r}};const cr={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},defaultConfig:function(){return Dl.flowchart},setAccTitle:Ua,getAccTitle:ta,getAccDescription:wo,setAccDescription:xo,addVertex:function(t,e,r,a,s,h){var u,p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},_=t;_!==void 0&&_.trim().length!==0&&(wi[_]===void 0&&(wi[_]={id:_,domId:Gg+_+"-"+J4,styles:[],classes:[]}),J4++,e!==void 0?(Xg=Vt(),(u=F1(e.trim()))[0]==='"'&&u[u.length-1]==='"'&&(u=u.substring(1,u.length-1)),wi[_].text=u):wi[_].text===void 0&&(wi[_].text=t),r!==void 0&&(wi[_].type=r),a!=null&&a.forEach(function(b){wi[_].styles.push(b)}),s!=null&&s.forEach(function(b){wi[_].classes.push(b)}),h!==void 0&&(wi[_].dir=h),wi[_].props=p)},lookUpDomId:bd,addLink:function(t,e,r,a){var s,h;for(s=0;s<t.length;s++)for(h=0;h<e.length;h++)Y6(t[s],e[h],r,a)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?Fl.defaultInterpolate=e:Fl[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?Fl.defaultStyle=e:(ir.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Fl[r].style=e)})},addClass:function(t,e){Vu[t]===void 0&&(Vu[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var a=r.replace("fill","bgFill").replace("color","fill");Vu[t].textStyles.push(a)}Vu[t].styles.push(r)})},setDirection:function(t){(dc=t).match(/.*</)&&(dc="RL"),dc.match(/.*\^/)&&(dc="BT"),dc.match(/.*>/)&&(dc="LR"),dc.match(/.*v/)&&(dc="TB")},setClass:_d,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(md[yd==="gen-1"?bd(r):r]=F1(e))})},getTooltip:function(t){return md[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(s,h,u){var p=bd(s);if(Vt().securityLevel==="loose"&&h!==void 0){var _=[];if(typeof u=="string"){_=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var b=0;b<_.length;b++){var M=_[b].trim();M.charAt(0)==='"'&&M.charAt(M.length-1)==='"'&&(M=M.substr(1,M.length-2)),_[b]=M}}_.length===0&&_.push(s),wi[s]!==void 0&&(wi[s].haveCallback=!0,I1.push(function(){var I=document.querySelector('[id="'.concat(p,'"]'));I!==null&&I.addEventListener("click",function(){var R;ir.runFunc.apply(ir,[h].concat(function($){if(Array.isArray($))return L1($)}(R=_)||function($){if(typeof Symbol!="undefined"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(R)||function($,ht){if($){if(typeof $=="string")return L1($,ht);var it=Object.prototype.toString.call($).slice(8,-1);return it==="Object"&&$.constructor&&(it=$.constructor.name),it==="Map"||it==="Set"?Array.from($):it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it)?L1($,ht):void 0}}(R)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(a,e,r)}),_d(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(a){wi[a]!==void 0&&(wi[a].link=ir.formatUrl(e,Xg),wi[a].linkTarget=r)}),_d(t,"clickable")},bindFunctions:function(t){I1.forEach(function(e){e(t)})},getDirection:function(){return dc.trim()},getVertices:function(){return wi},getEdges:function(){return Fl},getClasses:function(){return Vu},clear:function(t){wi={},Vu={},Fl=[],(I1=[]).push(Qg),Ns=[],Gu={},vd=0,md=[],Zg=!0,yd=t||"gen-1",Cs()},setGen:function(t){yd=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,r){var a=t.trim(),s=r;t===r&&r.match(/\s/)&&(a=void 0);var h=[],u=function(I){var R,$={boolean:{},number:{},string:{}},ht=[],it=I.filter(function(pt){var ft=Il(pt);return pt.stmt&&pt.stmt==="dir"?(R=pt.value,!1):pt.trim()!==""&&(ft in $?!$[ft].hasOwnProperty(pt)&&($[ft][pt]=!0):!(ht.indexOf(pt)>=0)&&ht.push(pt))});return{nodeList:it,dir:R}}(h.concat.apply(h,e)),p=u.nodeList,_=u.dir;if(h=p,yd==="gen-1"){v.warn("LOOKING UP");for(var b=0;b<h.length;b++)h[b]=bd(h[b])}a=a||"subGraph"+vd,s=F1(s=s||""),vd+=1;var M={id:a,nodes:h,title:s.trim(),classes:[],dir:_};return v.info("Adding",M.id,M.nodes,M.dir),M.nodes=K4(M,Ns).nodes,Ns.push(M),Gu[a]=M,a},getDepthFirstPos:function(t){return po[t]},indexNodes:function(){xd=-1,Ns.length>0&&Co("none",Ns.length-1)},getSubGraphs:function(){return Ns},destructLink:function(t,e){var r,a=function(s){var h=s.trim(),u=h.slice(0,-1),p="arrow_open";switch(h.slice(-1)){case"x":p="arrow_cross",h[0]==="x"&&(p="double_"+p,u=u.slice(1));break;case">":p="arrow_point",h[0]==="<"&&(p="double_"+p,u=u.slice(1));break;case"o":p="arrow_circle",h[0]==="o"&&(p="double_"+p,u=u.slice(1))}var _="normal",b=u.length-1;u[0]==="="&&(_="thick");var M=function(I,R){for(var $=R.length,ht=0,it=0;it<$;++it)R[it]==="."&&++ht;return ht}(0,u);return M&&(_="dotted",b=M),{type:p,stroke:_,length:b}}(t);if(e){if(r=function(s){var h=s.trim(),u="arrow_open";switch(h[0]){case"<":u="arrow_point",h=h.slice(1);break;case"x":u="arrow_cross",h=h.slice(1);break;case"o":u="arrow_circle",h=h.slice(1)}var p="normal";return h.indexOf("=")!==-1&&(p="thick"),h.indexOf(".")!==-1&&(p="dotted"),{type:u,stroke:p}}(e),r.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=a.type;else{if(r.type!==a.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=a.length,r}return a},lex:{firstGraph:function(){return!!Zg&&(Zg=!1,!0)}},exists:wd,makeUniq:K4};var z6=y(3602),kd=y.n(z6),Wc=y(4949),Ca=y.n(Wc),Td=y(8284),tv=y.n(Td);function ev(t,e,r){var a=.9*(e.width+e.height),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],h=Ko(t,a,a,s);return r.intersect=function(u){return Ca().intersect.polygon(r,s,u)},h}function j6(t,e,r){var a=e.height,s=a/4,h=e.width+2*s,u=[{x:s,y:0},{x:h-s,y:0},{x:h,y:-a/2},{x:h-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],p=Ko(t,h,a,u);return r.intersect=function(_){return Ca().intersect.polygon(r,u,_)},p}function nv(t,e,r){var a=e.width,s=e.height,h=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function U6(t,e,r){var a=e.width,s=e.height,h=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function rv(t,e,r){var a=e.width,s=e.height,h=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function q6(t,e,r){var a=e.width,s=e.height,h=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function Ed(t,e,r){var a=e.width,s=e.height,h=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function Kg(t,e,r){var a=e.width,s=e.height,h=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function W6(t,e,r){var a=e.height,s=e.width+a/4,h=t.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return r.intersect=function(u){return Ca().intersect.rect(r,u)},h}function ty(t,e,r){var a=e.width,s=e.height,h=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],u=Ko(t,a,s,h);return r.intersect=function(p){return Ca().intersect.polygon(r,h,p)},u}function $6(t,e,r){var a=e.width,s=a/2,h=s/(2.5+a/50),u=e.height+h,p="M 0,"+h+" a "+s+","+h+" 0,0,0 "+a+" 0 a "+s+","+h+" 0,0,0 "+-a+" 0 l 0,"+u+" a "+s+","+h+" 0,0,0 "+a+" 0 l 0,"+-u,_=t.attr("label-offset-y",h).insert("path",":first-child").attr("d",p).attr("transform","translate("+-a/2+","+-(u/2+h)+")");return r.intersect=function(b){var M=Ca().intersect.rect(r,b),I=M.x-r.x;if(s!=0&&(Math.abs(I)<r.width/2||Math.abs(I)==r.width/2&&Math.abs(M.y-r.y)>r.height/2-h)){var R=h*h*(1-I*I/(s*s));R!=0&&(R=Math.sqrt(R)),R=h-R,b.y-r.y>0&&(R=-R),M.y+=R}return M},_}function Ko(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const H6=function(t){t.shapes().question=ev,t.shapes().hexagon=j6,t.shapes().stadium=W6,t.shapes().subroutine=ty,t.shapes().cylinder=$6,t.shapes().rect_left_inv_arrow=nv,t.shapes().lean_right=U6,t.shapes().lean_left=rv,t.shapes().trapezoid=q6,t.shapes().inv_trapezoid=Ed,t.shapes().rect_right_inv_arrow=Kg};var Cd={};const ey=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Cd[e[r]]=t[e[r]]},V6=function(t,e){v.info("Drawing flowchart"),cr.clear(),cr.setGen("gen-1");var r=kd().parser;r.yy=cr;var a,s=Vt().securityLevel;s==="sandbox"&&(a=ze("#i"+e));var h=ze(s==="sandbox"?a.nodes()[0].contentDocument.body:"body"),u=s==="sandbox"?a.nodes()[0].contentDocument:document;r.parse(t);var p=cr.getDirection();p===void 0&&(p="TD");for(var _,b=Vt().flowchart,M=b.nodeSpacing||50,I=b.rankSpacing||50,R=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:M,ranksep:I,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),$=cr.getSubGraphs(),ht=$.length-1;ht>=0;ht--)_=$[ht],cr.addVertex(_.id,_.title,"group",void 0,_.classes);var it=cr.getVertices();v.warn("Get vertices",it);var pt=cr.getEdges(),ft=0;for(ft=$.length-1;ft>=0;ft--){_=$[ft],Cc("cluster").append("text");for(var xt=0;xt<_.nodes.length;xt++)v.warn("Setting subgraph",_.nodes[xt],cr.lookUpDomId(_.nodes[xt]),cr.lookUpDomId(_.id)),R.setParent(cr.lookUpDomId(_.nodes[xt]),cr.lookUpDomId(_.id))}(function(ve,le,be,Fe,Ye){Vt().securityLevel;var fn=Fe?Fe.select('[id="'.concat(be,'"]')):ze('[id="'.concat(be,'"]')),rn=Ye||document;Object.keys(ve).forEach(function(Sn){var er=ve[Sn],Br="default";er.classes.length>0&&(Br=er.classes.join(" "));var _n,Vr=ic(er.styles),ii=er.text!==void 0?er.text:er.id;if(da(Vt().flowchart.htmlLabels)){var yi={label:ii.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Ao){return"<i class='".concat(Ao.replace(":"," "),"'></i>")})};(_n=tv()(fn,yi).node()).parentNode.removeChild(_n)}else{var nr=rn.createElementNS("http://www.w3.org/2000/svg","text");nr.setAttribute("style",Vr.labelStyle.replace("color:","fill:"));for(var ki=ii.split(Xn.lineBreakRegex),ar=0;ar<ki.length;ar++){var Rn=rn.createElementNS("http://www.w3.org/2000/svg","tspan");Rn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Rn.setAttribute("dy","1em"),Rn.setAttribute("x","1"),Rn.textContent=ki[ar],nr.appendChild(Rn)}_n=nr}var Aa=0,Mr="";switch(er.type){case"round":Aa=5,Mr="rect";break;case"square":case"group":default:Mr="rect";break;case"diamond":Mr="question";break;case"hexagon":Mr="hexagon";break;case"odd":case"odd_right":Mr="rect_left_inv_arrow";break;case"lean_right":Mr="lean_right";break;case"lean_left":Mr="lean_left";break;case"trapezoid":Mr="trapezoid";break;case"inv_trapezoid":Mr="inv_trapezoid";break;case"circle":Mr="circle";break;case"ellipse":Mr="ellipse";break;case"stadium":Mr="stadium";break;case"subroutine":Mr="subroutine";break;case"cylinder":Mr="cylinder"}v.warn("Adding node",er.id,er.domId),le.setNode(cr.lookUpDomId(er.id),{labelType:"svg",labelStyle:Vr.labelStyle,shape:Mr,label:_n,rx:Aa,ry:Aa,class:Br,style:Vr.style,id:cr.lookUpDomId(er.id)})})})(it,R,e,h,u),function(ve,le){var be,Fe,Ye=0;if(ve.defaultStyle!==void 0){var fn=ic(ve.defaultStyle);be=fn.style,Fe=fn.labelStyle}ve.forEach(function(rn){Ye++;var Sn="L-"+rn.start+"-"+rn.end,er="LS-"+rn.start,Br="LE-"+rn.end,_n={};rn.type==="arrow_open"?_n.arrowhead="none":_n.arrowhead="normal";var Vr="",ii="";if(rn.style!==void 0){var yi=ic(rn.style);Vr=yi.style,ii=yi.labelStyle}else switch(rn.stroke){case"normal":Vr="fill:none",be!==void 0&&(Vr=be),Fe!==void 0&&(ii=Fe);break;case"dotted":Vr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Vr=" stroke-width: 3.5px;fill:none"}_n.style=Vr,_n.labelStyle=ii,rn.interpolate!==void 0?_n.curve=Ts(rn.interpolate,mo):ve.defaultInterpolate!==void 0?_n.curve=Ts(ve.defaultInterpolate,mo):_n.curve=Ts(Cd.curve,mo),rn.text===void 0?rn.style!==void 0&&(_n.arrowheadStyle="fill: #333"):(_n.arrowheadStyle="fill: #333",_n.labelpos="c",da(Vt().flowchart.htmlLabels)?(_n.labelType="html",_n.label='<span id="L-'.concat(Sn,'" class="edgeLabel L-').concat(er,"' L-").concat(Br,'" style="').concat(_n.labelStyle,'">').concat(rn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(nr){return"<i class='".concat(nr.replace(":"," "),"'></i>")}),"</span>")):(_n.labelType="text",_n.label=rn.text.replace(Xn.lineBreakRegex,`
`),rn.style===void 0&&(_n.style=_n.style||"stroke: #333; stroke-width: 1.5px;fill:none"),_n.labelStyle=_n.labelStyle.replace("color:","fill:"))),_n.id=Sn,_n.class=er+" "+Br,_n.minlen=rn.length||1,le.setEdge(cr.lookUpDomId(rn.start),cr.lookUpDomId(rn.end),_n,Ye)})}(pt,R);var mt=new(Ca()).render;H6(mt),mt.arrows().none=function(ve,le,be,Fe){var Ye=ve.append("marker").attr("id",le).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");Ca().util.applyStyle(Ye,be[Fe+"Style"])},mt.arrows().normal=function(ve,le){ve.append("marker").attr("id",le).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var Wt=h.select('[id="'.concat(e,'"]'));Wt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),Qa(r.yy,Wt,e);var re=h.select("#"+e+" g");for(mt(re,R),re.selectAll("g.node").attr("title",function(){return cr.getTooltip(this.id)}),cr.indexNodes("subGraph"+ft),ft=0;ft<$.length;ft++)if((_=$[ft]).title!=="undefined"){var Rt=u.querySelectorAll("#"+e+' [id="'+cr.lookUpDomId(_.id)+'"] rect'),Jt=u.querySelectorAll("#"+e+' [id="'+cr.lookUpDomId(_.id)+'"]'),te=Rt[0].x.baseVal.value,Et=Rt[0].y.baseVal.value,wt=Rt[0].width.baseVal.value,vt=ze(Jt[0]).select(".label");vt.attr("transform","translate(".concat(te+wt/2,", ").concat(Et+14,")")),vt.attr("id",e+"Text");for(var ct=0;ct<_.classes.length;ct++)Jt[0].classList.add(_.classes[ct])}da(b.htmlLabels);for(var Mt=u.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),yt=0;yt<Mt.length;yt++){var xe=Mt[yt],Te=xe.getBBox(),Gt=u.createElementNS("http://www.w3.org/2000/svg","rect");Gt.setAttribute("rx",0),Gt.setAttribute("ry",0),Gt.setAttribute("width",Te.width),Gt.setAttribute("height",Te.height),xe.insertBefore(Gt,xe.firstChild)}Hf(R,Wt,b.diagramPadding,b.useMaxWidth),Object.keys(it).forEach(function(ve){var le=it[ve];if(le.link){var be=h.select("#"+e+' [id="'+cr.lookUpDomId(ve)+'"]');if(be){var Fe=u.createElementNS("http://www.w3.org/2000/svg","a");Fe.setAttributeNS("http://www.w3.org/2000/svg","class",le.classes.join(" ")),Fe.setAttributeNS("http://www.w3.org/2000/svg","href",le.link),Fe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?Fe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):le.linkTarget&&Fe.setAttributeNS("http://www.w3.org/2000/svg","target",le.linkTarget);var Ye=be.insert(function(){return Fe},":first-child"),fn=be.select(".label-container");fn&&Ye.append(function(){return fn.node()});var rn=be.select(".label");rn&&Ye.append(function(){return rn.node()})}}})};var ny={};const iv=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)ny[e[r]]=t[e[r]]},av=function(t,e){v.info("Drawing flowchart"),cr.clear(),cr.setGen("gen-2");var r=kd().parser;r.yy=cr,r.parse(t);var a=cr.getDirection();a===void 0&&(a="TD");var s,h=Vt().flowchart,u=h.nodeSpacing||50,p=h.rankSpacing||50,_=Vt().securityLevel;_==="sandbox"&&(s=ze("#i"+e));var b,M=ze(_==="sandbox"?s.nodes()[0].contentDocument.body:"body"),I=_==="sandbox"?s.nodes()[0].contentDocument:document,R=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:u,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),$=cr.getSubGraphs();v.info("Subgraphs - ",$);for(var ht=$.length-1;ht>=0;ht--)b=$[ht],v.info("Subgraph - ",b),cr.addVertex(b.id,b.title,"group",void 0,b.classes,b.dir);var it=cr.getVertices(),pt=cr.getEdges();v.info(pt);var ft=0;for(ft=$.length-1;ft>=0;ft--){b=$[ft],Cc("cluster").append("text");for(var xt=0;xt<b.nodes.length;xt++)v.info("Setting up subgraphs",b.nodes[xt],b.id),R.setParent(b.nodes[xt],b.id)}(function(wt,vt,ct,Mt,yt){var xe=Mt.select('[id="'.concat(ct,'"]'));Object.keys(wt).forEach(function(Te){var Gt=wt[Te],ve="default";Gt.classes.length>0&&(ve=Gt.classes.join(" "));var le,be=ic(Gt.styles),Fe=Gt.text!==void 0?Gt.text:Gt.id;if(da(Vt().flowchart.htmlLabels)){var Ye={label:Fe.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Vr){return"<i class='".concat(Vr.replace(":"," "),"'></i>")})};(le=tv()(xe,Ye).node()).parentNode.removeChild(le)}else{var fn=yt.createElementNS("http://www.w3.org/2000/svg","text");fn.setAttribute("style",be.labelStyle.replace("color:","fill:"));for(var rn=Fe.split(Xn.lineBreakRegex),Sn=0;Sn<rn.length;Sn++){var er=yt.createElementNS("http://www.w3.org/2000/svg","tspan");er.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),er.setAttribute("dy","1em"),er.setAttribute("x","1"),er.textContent=rn[Sn],fn.appendChild(er)}le=fn}var Br=0,_n="";switch(Gt.type){case"round":Br=5,_n="rect";break;case"square":case"group":default:_n="rect";break;case"diamond":_n="question";break;case"hexagon":_n="hexagon";break;case"odd":case"odd_right":_n="rect_left_inv_arrow";break;case"lean_right":_n="lean_right";break;case"lean_left":_n="lean_left";break;case"trapezoid":_n="trapezoid";break;case"inv_trapezoid":_n="inv_trapezoid";break;case"circle":_n="circle";break;case"ellipse":_n="ellipse";break;case"stadium":_n="stadium";break;case"subroutine":_n="subroutine";break;case"cylinder":_n="cylinder";break;case"doublecircle":_n="doublecircle"}vt.setNode(Gt.id,{labelStyle:be.labelStyle,shape:_n,labelText:Fe,rx:Br,ry:Br,class:ve,style:be.style,id:Gt.id,link:Gt.link,linkTarget:Gt.linkTarget,tooltip:cr.getTooltip(Gt.id)||"",domId:cr.lookUpDomId(Gt.id),haveCallback:Gt.haveCallback,width:Gt.type==="group"?500:void 0,dir:Gt.dir,type:Gt.type,props:Gt.props,padding:Vt().flowchart.padding}),v.info("setNode",{labelStyle:be.labelStyle,shape:_n,labelText:Fe,rx:Br,ry:Br,class:ve,style:be.style,id:Gt.id,domId:cr.lookUpDomId(Gt.id),width:Gt.type==="group"?500:void 0,type:Gt.type,dir:Gt.dir,props:Gt.props,padding:Vt().flowchart.padding})})})(it,R,e,M,I),function(wt,vt){v.info("abc78 edges = ",wt);var ct,Mt,yt=0,xe={};if(wt.defaultStyle!==void 0){var Te=ic(wt.defaultStyle);ct=Te.style,Mt=Te.labelStyle}wt.forEach(function(Gt){yt++;var ve="L-"+Gt.start+"-"+Gt.end;xe[ve]===void 0?(xe[ve]=0,v.info("abc78 new entry",ve,xe[ve])):(xe[ve]++,v.info("abc78 new entry",ve,xe[ve]));var le=ve+"-"+xe[ve];v.info("abc78 new link id to be used is",ve,le,xe[ve]);var be="LS-"+Gt.start,Fe="LE-"+Gt.end,Ye={style:"",labelStyle:""};switch(Ye.minlen=Gt.length||1,Gt.type==="arrow_open"?Ye.arrowhead="none":Ye.arrowhead="normal",Ye.arrowTypeStart="arrow_open",Ye.arrowTypeEnd="arrow_open",Gt.type){case"double_arrow_cross":Ye.arrowTypeStart="arrow_cross";case"arrow_cross":Ye.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Ye.arrowTypeStart="arrow_point";case"arrow_point":Ye.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Ye.arrowTypeStart="arrow_circle";case"arrow_circle":Ye.arrowTypeEnd="arrow_circle"}var fn="",rn="";switch(Gt.stroke){case"normal":fn="fill:none;",ct!==void 0&&(fn=ct),Mt!==void 0&&(rn=Mt),Ye.thickness="normal",Ye.pattern="solid";break;case"dotted":Ye.thickness="normal",Ye.pattern="dotted",Ye.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Ye.thickness="thick",Ye.pattern="solid",Ye.style="stroke-width: 3.5px;fill:none;"}if(Gt.style!==void 0){var Sn=ic(Gt.style);fn=Sn.style,rn=Sn.labelStyle}Ye.style=Ye.style+=fn,Ye.labelStyle=Ye.labelStyle+=rn,Gt.interpolate!==void 0?Ye.curve=Ts(Gt.interpolate,mo):wt.defaultInterpolate!==void 0?Ye.curve=Ts(wt.defaultInterpolate,mo):Ye.curve=Ts(ny.curve,mo),Gt.text===void 0?Gt.style!==void 0&&(Ye.arrowheadStyle="fill: #333"):(Ye.arrowheadStyle="fill: #333",Ye.labelpos="c"),Ye.labelType="text",Ye.label=Gt.text.replace(Xn.lineBreakRegex,`
`),Gt.style===void 0&&(Ye.style=Ye.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Ye.labelStyle=Ye.labelStyle.replace("color:","fill:"),Ye.id=le,Ye.classes="flowchart-link "+be+" "+Fe,vt.setEdge(Gt.start,Gt.end,Ye,yt)})}(pt,R);var mt=M.select('[id="'.concat(e,'"]'));mt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),Qa(r.yy,mt,e);var Wt=M.select("#"+e+" g");if($g(Wt,R,["point","circle","cross"],"flowchart",e),Hf(R,mt,h.diagramPadding,h.useMaxWidth),cr.indexNodes("subGraph"+ft),!h.htmlLabels)for(var re=I.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Rt=0;Rt<re.length;Rt++){var Jt=re[Rt],te=Jt.getBBox(),Et=I.createElementNS("http://www.w3.org/2000/svg","rect");Et.setAttribute("rx",0),Et.setAttribute("ry",0),Et.setAttribute("width",te.width),Et.setAttribute("height",te.height),Jt.insertBefore(Et,Jt.firstChild)}Object.keys(it).forEach(function(wt){var vt=it[wt];if(vt.link){var ct=ze("#"+e+' [id="'+wt+'"]');if(ct){var Mt=I.createElementNS("http://www.w3.org/2000/svg","a");Mt.setAttributeNS("http://www.w3.org/2000/svg","class",vt.classes.join(" ")),Mt.setAttributeNS("http://www.w3.org/2000/svg","href",vt.link),Mt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),_==="sandbox"?Mt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):vt.linkTarget&&Mt.setAttributeNS("http://www.w3.org/2000/svg","target",vt.linkTarget);var yt=ct.insert(function(){return Mt},":first-child"),xe=ct.select(".label-container");xe&&yt.append(function(){return xe.node()});var Te=ct.select(".label");Te&&yt.append(function(){return Te.node()})}}})};function ry(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var Sd,Ad,ts="",Md="",Nd="",Rl=[],$c=[],Dd={},Od=[],iy=[],Xu="",ay=["active","done","crit","milestone"],R1=[],P1=!1,Zu=!1,oy=0,ov=function(t,e,r,a){return!(a.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&r.indexOf("weekends")>=0||r.indexOf(t.format("dddd").toLowerCase())>=0||r.indexOf(t.format(e.trim()))>=0)},sv=function(t,e,r,a){if(r.length&&!t.manualEndTime){var s=d()(t.startTime,e,!0);s.add(1,"d");var h=d()(t.endTime,e,!0),u=Qu(s,h,e,r,a);t.endTime=h.toDate(),t.renderEndTime=u}},Qu=function(t,e,r,a,s){for(var h=!1,u=null;t<=e;)h||(u=e.toDate()),(h=ov(t,r,a,s))&&e.add(1,"d"),t.add(1,"d");return u},Hc=function(t,e,r){r=r.trim();var a=/^after\s+([\d\w- ]+)/.exec(r.trim());if(a!==null){var s=null;if(a[1].split(" ").forEach(function(p){var _=Pl(p);_!==void 0&&(s?_.endTime>s.endTime&&(s=_):s=_)}),s)return s.endTime;var h=new Date;return h.setHours(0,0,0,0),h}var u=d()(r,e.trim(),!0);return u.isValid()?u.toDate():(v.debug("Invalid date:"+r),v.debug("With date format:"+e.trim()),new Date)},cv=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},lv=function(t,e,r,a){a=a||!1,r=r.trim();var s=d()(r,e.trim(),!0);return s.isValid()?(a&&s.add(1,"d"),s.toDate()):cv(/^([\d]+)([wdhms])/.exec(r.trim()),d()(t))},uv=0,Ju=function(t){return t===void 0?"task"+(uv+=1):t},Ii=[],hv={},Pl=function(t){var e=hv[t];return Ii[e]},fv=function(){for(var t=function(a){var s=Ii[a],h="";switch(Ii[a].raw.startTime.type){case"prevTaskEnd":var u=Pl(s.prevTaskId);s.startTime=u.endTime;break;case"getStartDate":(h=Hc(0,ts,Ii[a].raw.startTime.startData))&&(Ii[a].startTime=h)}return Ii[a].startTime&&(Ii[a].endTime=lv(Ii[a].startTime,ts,Ii[a].raw.endTime.data,P1),Ii[a].endTime&&(Ii[a].processed=!0,Ii[a].manualEndTime=d()(Ii[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),sv(Ii[a],ts,$c,Rl))),Ii[a].processed},e=!0,r=0;r<Ii.length;r++)t(r),e=e&&Ii[r].processed;return e},sy=function(t,e){t.split(",").forEach(function(r){var a=Pl(r);a!==void 0&&a.classes.push(e)})},cy=function(t,e){R1.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),R1.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const Ku={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().gantt},clear:function(){Od=[],iy=[],Xu="",R1=[],uv=0,Sd=void 0,Ad=void 0,Ii=[],ts="",Md="",Nd="",Rl=[],$c=[],P1=!1,Zu=!1,oy=0,Dd={},Cs()},setDateFormat:function(t){ts=t},getDateFormat:function(){return ts},enableInclusiveEndDates:function(){P1=!0},endDatesAreInclusive:function(){return P1},enableTopAxis:function(){Zu=!0},topAxisEnabled:function(){return Zu},setAxisFormat:function(t){Md=t},getAxisFormat:function(){return Md},setTodayMarker:function(t){Nd=t},getTodayMarker:function(){return Nd},setAccTitle:Ua,getAccTitle:ta,setDiagramTitle:C1,getDiagramTitle:ju,setAccDescription:xo,getAccDescription:wo,addSection:function(t){Xu=t,Od.push(t)},getSections:function(){return Od},getTasks:function(){for(var t=fv(),e=0;!t&&e<10;)t=fv(),e++;return iy=Ii},addTask:function(t,e){var r={section:Xu,type:Xu,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},a=function(h,u){var p=(u.substr(0,1)===":"?u.substr(1,u.length):u).split(","),_={};dv(p,_,ay);for(var b=0;b<p.length;b++)p[b]=p[b].trim();switch(p.length){case 1:_.id=Ju(),_.startTime={type:"prevTaskEnd",id:h},_.endTime={data:p[0]};break;case 2:_.id=Ju(),_.startTime={type:"getStartDate",startData:p[0]},_.endTime={data:p[1]};break;case 3:_.id=Ju(p[0]),_.startTime={type:"getStartDate",startData:p[1]},_.endTime={data:p[2]}}return _}(Ad,e);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=Ad,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.order=oy,oy++;var s=Ii.push(r);Ad=r.id,hv[r.id]=s-1},findTaskById:Pl,addTaskOrg:function(t,e){var r={section:Xu,type:Xu,description:t,task:t,classes:[]},a=function(s,h){var u=(h.substr(0,1)===":"?h.substr(1,h.length):h).split(","),p={};dv(u,p,ay);for(var _=0;_<u.length;_++)u[_]=u[_].trim();var b="";switch(u.length){case 1:p.id=Ju(),p.startTime=s.endTime,b=u[0];break;case 2:p.id=Ju(),p.startTime=Hc(0,ts,u[0]),b=u[1];break;case 3:p.id=Ju(u[0]),p.startTime=Hc(0,ts,u[1]),b=u[2]}return b&&(p.endTime=lv(p.startTime,ts,b,P1),p.manualEndTime=d()(b,"YYYY-MM-DD",!0).isValid(),sv(p,ts,$c,Rl)),p}(Sd,e);r.startTime=a.startTime,r.endTime=a.endTime,r.id=a.id,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,Sd=r,iy.push(r)},setIncludes:function(t){Rl=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Rl},setExcludes:function(t){$c=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return $c},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(s,h,u){if(Vt().securityLevel==="loose"&&h!==void 0){var p=[];if(typeof u=="string"){p=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var _=0;_<p.length;_++){var b=p[_].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),p[_]=b}}p.length===0&&p.push(s),Pl(s)!==void 0&&cy(s,function(){var M;ir.runFunc.apply(ir,[h].concat(function(I){if(Array.isArray(I))return ry(I)}(M=p)||function(I){if(typeof Symbol!="undefined"&&I[Symbol.iterator]!=null||I["@@iterator"]!=null)return Array.from(I)}(M)||function(I,R){if(I){if(typeof I=="string")return ry(I,R);var $=Object.prototype.toString.call(I).slice(8,-1);return $==="Object"&&I.constructor&&($=I.constructor.name),$==="Map"||$==="Set"?Array.from(I):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?ry(I,R):void 0}}(M)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(a,e,r)}),sy(t,"clickable")},setLink:function(t,e){var r=e;Vt().securityLevel!=="loose"&&(r=(0,ec.N)(e)),t.split(",").forEach(function(a){Pl(a)!==void 0&&(cy(a,function(){window.open(r,"_self")}),Dd[a]=r)}),sy(t,"clickable")},getLinks:function(){return Dd},bindFunctions:function(t){R1.forEach(function(e){e(t)})},durationToDate:cv,isInvalidDate:ov};function dv(t,e,r){for(var a=!0;a;)a=!1,r.forEach(function(s){var h=new RegExp("^\\s*"+s+"\\s*$");t[0].match(h)&&(e[s]=!0,t.shift(1),a=!0)})}var Vc,Ja=y(9959),G6=y.n(Ja);Ja.parser.yy=Ku;const pv=function(){v.debug("Something is calling, setConf, remove the call")},X6=function(t,e){var r=Vt().gantt;Ja.parser.yy.clear(),Ja.parser.parse(t);var a,s=Vt().securityLevel;s==="sandbox"&&(a=ze("#i"+e));var h=ze(s==="sandbox"?a.nodes()[0].contentDocument.body:"body"),u=s==="sandbox"?a.nodes()[0].contentDocument:document,p=u.getElementById(e);(Vc=p.parentElement.offsetWidth)===void 0&&(Vc=1200),r.useWidth!==void 0&&(Vc=r.useWidth);var _=Ja.parser.yy.getTasks(),b=_.length*(r.barHeight+r.barGap)+2*r.topPadding;p.setAttribute("viewBox","0 0 "+Vc+" "+b);for(var M=h.select('[id="'.concat(e,'"]')),I=function(){return Ps.apply(dm(qy,r5,Us,Ep,_0,nu,b0,_h,eu,Wy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([Y(_,function(it){return it.startTime}),D(_,function(it){return it.endTime})]).rangeRound([0,Vc-r.leftPadding-r.rightPadding]),R=[],$=0;$<_.length;$++)R.push(_[$].type);var ht=R;R=function(it){for(var pt={},ft=[],xt=0,mt=it.length;xt<mt;++xt)Object.prototype.hasOwnProperty.call(pt,it[xt])||(pt[it[xt]]=!0,ft.push(it[xt]));return ft}(R),_.sort(function(it,pt){var ft=it.startTime,xt=pt.startTime,mt=0;return ft>xt?mt=1:ft<xt&&(mt=-1),mt}),function(it,pt,ft){var xt=r.barHeight,mt=xt+r.barGap,Wt=r.topPadding,re=r.leftPadding;Ry().domain([0,R.length]).range(["#00B9FA","#F95002"]).interpolate($v),function(Rt,Jt,te,Et,wt,vt,ct,Mt){var yt=vt.reduce(function(be,Fe){var Ye=Fe.startTime;return be?Math.min(be,Ye):Ye},0),xe=vt.reduce(function(be,Fe){var Ye=Fe.endTime;return be?Math.max(be,Ye):Ye},0),Te=Ja.parser.yy.getDateFormat();if(yt&&xe){for(var Gt=[],ve=null,le=d()(yt);le.valueOf()<=xe;)Ja.parser.yy.isInvalidDate(le,Te,ct,Mt)?ve?ve.end=le.clone():ve={start:le.clone(),end:le.clone()}:ve&&(Gt.push(ve),ve=null),le.add(1,"d");M.append("g").selectAll("rect").data(Gt).enter().append("rect").attr("id",function(be){return"exclude-"+be.start.format("YYYY-MM-DD")}).attr("x",function(be){return I(be.start)+te}).attr("y",r.gridLineStartPadding).attr("width",function(be){var Fe=be.end.clone().add(1,"day");return I(Fe)-I(be.start)}).attr("height",wt-Jt-r.gridLineStartPadding).attr("transform-origin",function(be,Fe){return(I(be.start)+te+.5*(I(be.end)-I(be.start))).toString()+"px "+(Fe*Rt+.5*wt).toString()+"px"}).attr("class","exclude-range")}}(mt,Wt,re,0,ft,it,Ja.parser.yy.getExcludes(),Ja.parser.yy.getIncludes()),function(Rt,Jt,te,Et){var wt,vt=(wt=I,Ot(3,wt)).tickSize(-Et+Jt+r.gridLineStartPadding).tickFormat(co(Ja.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(M.append("g").attr("class","grid").attr("transform","translate("+Rt+", "+(Et-50)+")").call(vt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Ku.topAxisEnabled()||r.topAxis){var ct=function(Mt){return Ot(1,Mt)}(I).tickSize(-Et+Jt+r.gridLineStartPadding).tickFormat(co(Ja.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));M.append("g").attr("class","grid").attr("transform","translate("+Rt+", "+Jt+")").call(ct).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(re,Wt,0,ft),function(Rt,Jt,te,Et,wt,vt,ct){M.append("g").selectAll("rect").data(Rt).enter().append("rect").attr("x",0).attr("y",function(Gt,ve){return Gt.order*Jt+te-2}).attr("width",function(){return ct-r.rightPadding/2}).attr("height",Jt).attr("class",function(Gt){for(var ve=0;ve<R.length;ve++)if(Gt.type===R[ve])return"section section"+ve%r.numberSectionStyles;return"section section0"});var Mt=M.append("g").selectAll("rect").data(Rt).enter(),yt=Ku.getLinks();if(Mt.append("rect").attr("id",function(Gt){return Gt.id}).attr("rx",3).attr("ry",3).attr("x",function(Gt){return Gt.milestone?I(Gt.startTime)+Et+.5*(I(Gt.endTime)-I(Gt.startTime))-.5*wt:I(Gt.startTime)+Et}).attr("y",function(Gt,ve){return Gt.order*Jt+te}).attr("width",function(Gt){return Gt.milestone?wt:I(Gt.renderEndTime||Gt.endTime)-I(Gt.startTime)}).attr("height",wt).attr("transform-origin",function(Gt,ve){return ve=Gt.order,(I(Gt.startTime)+Et+.5*(I(Gt.endTime)-I(Gt.startTime))).toString()+"px "+(ve*Jt+te+.5*wt).toString()+"px"}).attr("class",function(Gt){var ve="";Gt.classes.length>0&&(ve=Gt.classes.join(" "));for(var le=0,be=0;be<R.length;be++)Gt.type===R[be]&&(le=be%r.numberSectionStyles);var Fe="";return Gt.active?Gt.crit?Fe+=" activeCrit":Fe=" active":Gt.done?Fe=Gt.crit?" doneCrit":" done":Gt.crit&&(Fe+=" crit"),Fe.length===0&&(Fe=" task"),Gt.milestone&&(Fe=" milestone "+Fe),"task"+(Fe+=le)+" "+ve}),Mt.append("text").attr("id",function(Gt){return Gt.id+"-text"}).text(function(Gt){return Gt.task}).attr("font-size",r.fontSize).attr("x",function(Gt){var ve=I(Gt.startTime),le=I(Gt.renderEndTime||Gt.endTime);Gt.milestone&&(ve+=.5*(I(Gt.endTime)-I(Gt.startTime))-.5*wt),Gt.milestone&&(le=ve+wt);var be=this.getBBox().width;return be>le-ve?le+be+1.5*r.leftPadding>ct?ve+Et-5:le+Et+5:(le-ve)/2+ve+Et}).attr("y",function(Gt,ve){return Gt.order*Jt+r.barHeight/2+(r.fontSize/2-2)+te}).attr("text-height",wt).attr("class",function(Gt){var ve=I(Gt.startTime),le=I(Gt.endTime);Gt.milestone&&(le=ve+wt);var be=this.getBBox().width,Fe="";Gt.classes.length>0&&(Fe=Gt.classes.join(" "));for(var Ye=0,fn=0;fn<R.length;fn++)Gt.type===R[fn]&&(Ye=fn%r.numberSectionStyles);var rn="";return Gt.active&&(rn=Gt.crit?"activeCritText"+Ye:"activeText"+Ye),Gt.done?rn=Gt.crit?rn+" doneCritText"+Ye:rn+" doneText"+Ye:Gt.crit&&(rn=rn+" critText"+Ye),Gt.milestone&&(rn+=" milestoneText"),be>le-ve?le+be+1.5*r.leftPadding>ct?Fe+" taskTextOutsideLeft taskTextOutside"+Ye+" "+rn:Fe+" taskTextOutsideRight taskTextOutside"+Ye+" "+rn+" width-"+be:Fe+" taskText taskText"+Ye+" "+rn+" width-"+be}),Vt().securityLevel==="sandbox"){var xe;xe=ze("#i"+e),ze(xe.nodes()[0].contentDocument.body);var Te=xe.nodes()[0].contentDocument;Mt.filter(function(Gt){return yt[Gt.id]!==void 0}).each(function(Gt){var ve=Te.querySelector("#"+Gt.id),le=Te.querySelector("#"+Gt.id+"-text"),be=ve.parentNode,Fe=Te.createElement("a");Fe.setAttribute("xlink:href",yt[Gt.id]),Fe.setAttribute("target","_top"),be.appendChild(Fe),Fe.appendChild(ve),Fe.appendChild(le)})}}(it,mt,Wt,re,xt,0,pt),function(Rt,Jt){for(var te=[],Et=0,wt=0;wt<R.length;wt++)te[wt]=[R[wt],(vt=R[wt],ct=ht,function(Mt){for(var yt=Mt.length,xe={};yt;)xe[Mt[--yt]]=(xe[Mt[yt]]||0)+1;return xe}(ct)[vt]||0)];var vt,ct;M.append("g").selectAll("text").data(te).enter().append(function(Mt){var yt=Mt[0].split(Xn.lineBreakRegex),xe=-(yt.length-1)/2,Te=u.createElementNS("http://www.w3.org/2000/svg","text");Te.setAttribute("dy",xe+"em");for(var Gt=0;Gt<yt.length;Gt++){var ve=u.createElementNS("http://www.w3.org/2000/svg","tspan");ve.setAttribute("alignment-baseline","central"),ve.setAttribute("x","10"),Gt>0&&ve.setAttribute("dy","1em"),ve.textContent=yt[Gt],Te.appendChild(ve)}return Te}).attr("x",10).attr("y",function(Mt,yt){if(!(yt>0))return Mt[1]*Rt/2+Jt;for(var xe=0;xe<yt;xe++)return Et+=te[yt-1][1],Mt[1]*Rt/2+Et*Rt+Jt}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(Mt){for(var yt=0;yt<R.length;yt++)if(Mt[0]===R[yt])return"sectionTitle sectionTitle"+yt%r.numberSectionStyles;return"sectionTitle"})}(mt,Wt),function(Rt,Jt,te,Et){var wt=Ku.getTodayMarker();if(wt!=="off"){var vt=M.append("g").attr("class","today"),ct=new Date,Mt=vt.append("line");Mt.attr("x1",I(ct)+Rt).attr("x2",I(ct)+Rt).attr("y1",r.titleTopMargin).attr("y2",Et-r.titleTopMargin).attr("class","today"),wt!==""&&Mt.attr("style",wt.replace(/,/g,";"))}}(re,0,0,ft)}(_,Vc,b),ho(M,b,Vc,r.useMaxWidth),M.append("text").text(Ja.parser.yy.getDiagramTitle()).attr("x",Vc/2).attr("y",r.titleTopMargin).attr("class","titleText"),Qa(Ja.parser.yy,M,e)};function gv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,a)}return r}function yv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gv(Object(r),!0).forEach(function(a){mv(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function mv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bd=Vt().gitGraph.mainBranchName,Z6=Vt().gitGraph.mainBranchOrder,Fi={},na=null,Gc={};Gc[Bd]={name:Bd,order:Z6};var gi={};gi[Bd]=na;var ra=Bd,ly="LR",es=0;function Yl(){return S4({length:7})}var Y1={},vv=function(t){if(t=Xn.sanitizeText(t,Vt()),gi[t]===void 0){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}var r=gi[ra=t];na=Fi[r]};function bv(t,e,r){var a=t.indexOf(e);a===-1?t.push(r):t.splice(a,1,r)}function _v(t){var e=t.reduce(function(M,I){return M.seq>I.seq?M:I},t[0]),r="";t.forEach(function(M){r+=M===e?" *":" |"});var a,s,h,u=[r,e.id,e.seq];for(var p in gi)gi[p]===e.id&&u.push(p);if(v.debug(u.join(" ")),e.parents&&e.parents.length==2){var _=Fi[e.parents[0]];bv(t,e,_),t.push(Fi[e.parents[1]])}else{if(e.parents.length==0)return;var b=Fi[e.parents];bv(t,e,b)}a=t,s=function(M){return M.id},h=Object.create(null),_v(t=a.reduce(function(M,I){var R=s(I);return h[R]||(h[R]=!0,M.push(I)),M},[]))}var uy=function(){var t=Object.keys(Fi).map(function(e){return Fi[e]});return t.forEach(function(e){v.debug(e.id)}),t.sort(function(e,r){return e.seq-r.seq}),t},z1={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Xc={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().gitGraph},setDirection:function(t){ly=t},setOptions:function(t){v.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Y1=JSON.parse(t)}catch(e){v.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return Y1},commit:function(t,e,r,a){v.debug("Entering commit:",t,e,r,a),e=Xn.sanitizeText(e,Vt()),t=Xn.sanitizeText(t,Vt()),a=Xn.sanitizeText(a,Vt());var s={id:e||es+"-"+Yl(),message:t,seq:es++,type:r||z1.NORMAL,tag:a||"",parents:na==null?[]:[na.id],branch:ra};na=s,Fi[s.id]=s,gi[ra]=s.id,v.debug("in pushCommit "+s.id)},branch:function(t,e){if(t=Xn.sanitizeText(t,Vt()),gi[t]!==void 0){var r=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw r.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},r}gi[t]=na!=null?na.id:null,Gc[t]={name:t,order:e?parseInt(e,10):null},vv(t),v.debug("in createBranch")},merge:function(t,e){t=Xn.sanitizeText(t,Vt());var r=Fi[gi[ra]],a=Fi[gi[t]];if(ra===t){var s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},s}if(r===void 0||!r){var h=new Error('Incorrect usage of "merge". Current branch ('+ra+")has no commits");throw h.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},h}if(gi[t]===void 0){var u=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw u.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},u}if(a===void 0||!a){var p=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw p.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},p}if(r===a){var _=new Error('Incorrect usage of "merge". Both branches have same head');throw _.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},_}var b={id:es+"-"+Yl(),message:"merged branch "+t+" into "+ra,seq:es++,parents:[na==null?null:na.id,gi[t]],branch:ra,type:z1.MERGE,tag:e||""};na=b,Fi[b.id]=b,gi[ra]=b.id,v.debug(gi),v.debug("in mergeBranch")},cherryPick:function(t,e){if(t=Xn.sanitizeText(t,Vt()),e=Xn.sanitizeText(e,Vt()),!t||Fi[t]===void 0){var r=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw r.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},r}var a=Fi[t],s=a.branch;if(a.type===z1.MERGE){var h=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw h.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},h}if(!e||Fi[e]===void 0){if(s===ra){var u=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw u.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},u}var p=Fi[gi[ra]];if(p===void 0||!p){var _=new Error('Incorrect usage of "cherry-pick". Current branch ('+ra+")has no commits");throw _.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},_}var b={id:es+"-"+Yl(),message:"cherry-picked "+a+" into "+ra,seq:es++,parents:[na==null?null:na.id,a.id],branch:ra,type:z1.CHERRY_PICK,tag:"cherry-pick:"+a.id};na=b,Fi[b.id]=b,gi[ra]=b.id,v.debug(gi),v.debug("in cheeryPick")}},checkout:vv,prettyPrint:function(){v.debug(Fi),_v([uy()[0]])},clear:function(){Fi={},na=null;var t=Vt().gitGraph.mainBranchName,e=Vt().gitGraph.mainBranchOrder;(gi={})[t]=null,(Gc={})[t]={name:t,order:e},ra=t,es=0,Cs()},getBranchesAsObjArray:function(){return Object.values(Gc).map(function(t,e){return t.order!==null?t:yv(yv({},t),{},{order:parseFloat("0.".concat(e),10)})}).sort(function(t,e){return t.order-e.order}).map(function(t){return{name:t.name}})},getBranches:function(){return gi},getCommits:function(){return Fi},getCommitsArray:uy,getCurrentBranch:function(){return ra},getDirection:function(){return ly},getHead:function(){return na},setAccTitle:Ua,getAccTitle:ta,getAccDescription:wo,setAccDescription:xo,commitType:z1};var xv=y(2553),wv=y.n(xv),Ds={},Vi={},zl={},j1=[],U1=0,Ld=function(t,e,r){var a=Vt().gitGraph,s=t.append("g").attr("class","commit-bullets"),h=t.append("g").attr("class","commit-labels"),u=0;Object.keys(e).sort(function(p,_){return e[p].seq-e[_].seq}).forEach(function(p,_){var b=e[p],M=Vi[b.branch].pos,I=u+10;if(r){var R;switch(b.type){case 0:default:R="commit-normal";break;case 1:R="commit-reverse";break;case 2:R="commit-highlight";break;case 3:R="commit-merge";break;case 4:R="commit-cherry-pick"}if(b.type===2){var $=s.append("rect");$.attr("x",I-10),$.attr("y",M-10),$.attr("height",20),$.attr("width",20),$.attr("class","commit "+b.id+" commit-highlight"+Vi[b.branch].index+" "+R+"-outer"),s.append("rect").attr("x",I-6).attr("y",M-6).attr("height",12).attr("width",12).attr("class","commit "+b.id+" commit"+Vi[b.branch].index+" "+R+"-inner")}else if(b.type===4)s.append("circle").attr("cx",I).attr("cy",M).attr("r",10).attr("class","commit "+b.id+" "+R),s.append("circle").attr("cx",I-3).attr("cy",M+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+b.id+" "+R),s.append("circle").attr("cx",I+3).attr("cy",M+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+b.id+" "+R),s.append("line").attr("x1",I+3).attr("y1",M+1).attr("x2",I).attr("y2",M-5).attr("stroke","#fff").attr("class","commit "+b.id+" "+R),s.append("line").attr("x1",I-3).attr("y1",M+1).attr("x2",I).attr("y2",M-5).attr("stroke","#fff").attr("class","commit "+b.id+" "+R);else{var ht=s.append("circle");if(ht.attr("cx",I),ht.attr("cy",M),ht.attr("r",b.type===3?9:10),ht.attr("class","commit "+b.id+" commit"+Vi[b.branch].index),b.type===3){var it=s.append("circle");it.attr("cx",I),it.attr("cy",M),it.attr("r",6),it.attr("class","commit "+R+" "+b.id+" commit"+Vi[b.branch].index)}b.type===1&&s.append("path").attr("d","M ".concat(I-5,",").concat(M-5,"L").concat(I+5,",").concat(M+5,"M").concat(I-5,",").concat(M+5,"L").concat(I+5,",").concat(M-5)).attr("class","commit "+R+" "+b.id+" commit"+Vi[b.branch].index)}}if(zl[b.id]={x:u+10,y:M},r){if(b.type!==4&&b.type!==3&&a.showCommitLabel){var pt=h.append("g"),ft=pt.insert("rect").attr("class","commit-label-bkg"),xt=pt.append("text").attr("x",u).attr("y",M+25).attr("class","commit-label").text(b.id),mt=xt.node().getBBox();if(ft.attr("x",u+10-mt.width/2-2).attr("y",M+13.5).attr("width",mt.width+4).attr("height",mt.height+4),xt.attr("x",u+10-mt.width/2),a.rotateCommitLabel){var Wt=-7.5-(mt.width+10)/25*9.5,re=10+mt.width/25*8.5;pt.attr("transform","translate("+Wt+", "+re+") rotate(-45, "+u+", "+M+")")}}if(b.tag){var Rt=h.insert("polygon"),Jt=h.append("circle"),te=h.append("text").attr("y",M-16).attr("class","tag-label").text(b.tag),Et=te.node().getBBox();te.attr("x",u+10-Et.width/2);var wt=Et.height/2,vt=M-19.2;Rt.attr("class","tag-label-bkg").attr("points",`
`.concat(u-Et.width/2-2,",").concat(vt+2,`
`).concat(u-Et.width/2-2,",").concat(vt-2,`
`).concat(u+10-Et.width/2-4,",").concat(vt-wt-2,`
`).concat(u+10+Et.width/2+4,",").concat(vt-wt-2,`
`).concat(u+10+Et.width/2+4,",").concat(vt+wt+2,`
`).concat(u+10-Et.width/2-4,",").concat(vt+wt+2)),Jt.attr("cx",u-Et.width/2+2).attr("cy",vt).attr("r",1.5).attr("class","tag-hole")}}(u+=50)>U1&&(U1=u)})},kv=function t(e,r,a){var s=a||0,h=e+Math.abs(e-r)/2;if(s>5)return h;for(var u=!0,p=0;p<j1.length;p++)Math.abs(j1[p]-h)<10&&(u=!1);return u?(j1.push(h),h):t(e,r-Math.abs(e-r)/5,s)};const Q6=function(t,e,r){Vi={},zl={},Ds={},U1=0,j1=[];var a=Vt(),s=Vt().gitGraph,h=wv().parser;h.yy=Xc,h.yy.clear(),v.debug("in gitgraph renderer",t+`
`,"id:",e,r),h.parse(t+`
`),Xc.getDirection(),Ds=Xc.getCommits();var u=Xc.getBranchesAsObjArray(),p=0;u.forEach(function(ht,it){Vi[ht.name]={pos:p,index:it},p+=50+(s.rotateCommitLabel?40:0)});var _=ze('[id="'.concat(e,'"]'));Qa(h.yy,_,e),Ld(_,Ds,!1),s.showBranches&&function(ht,it){var pt=Vt().gitGraph,ft=ht.append("g");it.forEach(function(xt,mt){var Wt=mt>=8?mt-8:mt,re=Vi[xt.name].pos,Rt=ft.append("line");Rt.attr("x1",0),Rt.attr("y1",re),Rt.attr("x2",U1),Rt.attr("y2",re),Rt.attr("class","branch branch"+Wt),j1.push(re);var Jt=function(vt){var ct=document.createElementNS("http://www.w3.org/2000/svg","text"),Mt=[];Mt=typeof vt=="string"?vt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(vt)?vt:[];for(var yt=0;yt<Mt.length;yt++){var xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");xe.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),xe.setAttribute("dy","1em"),xe.setAttribute("x","0"),xe.setAttribute("class","row"),xe.textContent=Mt[yt].trim(),ct.appendChild(xe)}return ct}(xt.name),te=ft.insert("rect"),Et=ft.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Wt);Et.node().appendChild(Jt);var wt=Jt.getBBox();te.attr("class","branchLabelBkg label"+Wt).attr("rx",4).attr("ry",4).attr("x",-wt.width-4-(pt.rotateCommitLabel===!0?30:0)).attr("y",-wt.height/2+8).attr("width",wt.width+18).attr("height",wt.height+4),Et.attr("transform","translate("+(-wt.width-14-(pt.rotateCommitLabel===!0?30:0))+", "+(re-wt.height/2-1)+")"),te.attr("transform","translate(-19, "+(re-wt.height/2)+")")})}(_,u),function(ht,it){var pt=ht.append("g").attr("class","commit-arrows");Object.keys(it).forEach(function(ft,xt){var mt=it[ft];mt.parents&&mt.parents.length>0&&mt.parents.forEach(function(Wt){(function(re,Rt,Jt,te){var Et=Vt(),wt=zl[Rt.id],vt=zl[Jt.id],ct=function(be,Fe,Ye){return zl[Fe.id],zl[be.id],Object.keys(Ye).filter(function(fn){return Ye[fn].branch===Fe.branch&&Ye[fn].seq>be.seq&&Ye[fn].seq<Fe.seq}).length>0}(Rt,Jt,te);Et.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var Mt,yt="",xe="",Te=0,Gt=0,ve=Vi[Jt.branch].index;if(ct){yt="A 10 10, 0, 0, 0,",xe="A 10 10, 0, 0, 1,",Te=10,Gt=10,ve=Vi[Jt.branch].index;var le=wt.y<vt.y?kv(wt.y,vt.y):kv(vt.y,wt.y);Mt=wt.y<vt.y?"M ".concat(wt.x," ").concat(wt.y," L ").concat(wt.x," ").concat(le-Te," ").concat(yt," ").concat(wt.x+Gt," ").concat(le," L ").concat(vt.x-Te," ").concat(le," ").concat(xe," ").concat(vt.x," ").concat(le+Gt," L ").concat(vt.x," ").concat(vt.y):"M ".concat(wt.x," ").concat(wt.y," L ").concat(wt.x," ").concat(le+Te," ").concat(xe," ").concat(wt.x+Gt," ").concat(le," L ").concat(vt.x-Te," ").concat(le," ").concat(yt," ").concat(vt.x," ").concat(le-Gt," L ").concat(vt.x," ").concat(vt.y)}else wt.y<vt.y&&(yt="A 20 20, 0, 0, 0,",Te=20,Gt=20,ve=Vi[Jt.branch].index,Mt="M ".concat(wt.x," ").concat(wt.y," L ").concat(wt.x," ").concat(vt.y-Te," ").concat(yt," ").concat(wt.x+Gt," ").concat(vt.y," L ").concat(vt.x," ").concat(vt.y)),wt.y>vt.y&&(yt="A 20 20, 0, 0, 0,",Te=20,Gt=20,ve=Vi[Rt.branch].index,Mt="M ".concat(wt.x," ").concat(wt.y," L ").concat(vt.x-Te," ").concat(wt.y," ").concat(yt," ").concat(vt.x," ").concat(wt.y-Gt," L ").concat(vt.x," ").concat(vt.y)),wt.y===vt.y&&(ve=Vi[Rt.branch].index,Mt="M ".concat(wt.x," ").concat(wt.y," L ").concat(wt.x," ").concat(vt.y-Te," ").concat(yt," ").concat(wt.x+Gt," ").concat(vt.y," L ").concat(vt.x," ").concat(vt.y));re.append("path").attr("d",Mt).attr("class","arrow arrow"+ve)})(pt,it[Wt],mt,it)})})}(_,Ds),Ld(_,Ds,!0);var b=s.diagramPadding,M=_.node().getBBox(),I=M.width+2*b,R=M.height+2*b;ho(_,R,I,a.useMaxWidth);var $="".concat(M.x-b-(s.showBranches&&s.rotateCommitLabel===!0?30:0)," ").concat(M.y-b," ").concat(I," ").concat(R);_.attr("viewBox",$)};var hy="",Tv=!1;const jl={setMessage:function(t){v.debug("Setting message to: "+t),hy=t},getMessage:function(){return hy},setInfo:function(t){Tv=t},getInfo:function(){return Tv}};var go=y(6765),th=y.n(go),Sa={};const Rr=function(t){Object.keys(t).forEach(function(e){Sa[e]=t[e]})};var J6=y(7062),Ev=y.n(J6),Id={},q1=!1;const fy={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().pie},addSection:function(t,e){t=Xn.sanitizeText(t,Vt()),Id[t]===void 0&&(Id[t]=e,v.debug("Added new section :",t))},getSections:function(){return Id},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){Id={},q1=!1,Cs()},setAccTitle:Ua,getAccTitle:ta,setDiagramTitle:C1,getDiagramTitle:ju,setShowData:function(t){q1=t},getShowData:function(){return q1},getAccDescription:wo,setAccDescription:xo};var ns,pc=Vt();const gc=function(t,e){try{pc=Vt();var r=Ev().parser;r.yy=fy,v.debug(`Rendering info diagram
`+t);var a,s=Vt().securityLevel;s==="sandbox"&&(a=ze("#i"+e));var h=ze(s==="sandbox"?a.nodes()[0].contentDocument.body:"body"),u=s==="sandbox"?a.nodes()[0].contentDocument:document;r.yy.clear(),r.parse(t),v.debug("Parsed info diagram");var p=u.getElementById(e);(ns=p.parentElement.offsetWidth)===void 0&&(ns=1200),pc.useWidth!==void 0&&(ns=pc.useWidth),pc.pie.useWidth!==void 0&&(ns=pc.pie.useWidth);var _=h.select("#"+e);ho(_,450,ns,pc.pie.useMaxWidth),Qa(r.yy,_,e),p.setAttribute("viewBox","0 0 "+ns+" 450");var b=Math.min(ns,450)/2-40,M=_.append("g").attr("transform","translate("+ns/2+",225)"),I=fy.getSections(),R=0;Object.keys(I).forEach(function(Wt){R+=I[Wt]});var $=pc.themeVariables,ht=[$.pie1,$.pie2,$.pie3,$.pie4,$.pie5,$.pie6,$.pie7,$.pie8,$.pie9,$.pie10,$.pie11,$.pie12],it=_c().range(ht),pt=function(){var Wt=fu,re=I0,Rt=null,Jt=Cr(0),te=Cr(Oh),Et=Cr(0);function wt(vt){var ct,Mt,yt,xe,Te,Gt=(vt=Bm(vt)).length,ve=0,le=new Array(Gt),be=new Array(Gt),Fe=+Jt.apply(this,arguments),Ye=Math.min(Oh,Math.max(-Oh,te.apply(this,arguments)-Fe)),fn=Math.min(Math.abs(Ye)/Gt,Et.apply(this,arguments)),rn=fn*(Ye<0?-1:1);for(ct=0;ct<Gt;++ct)(Te=be[le[ct]=ct]=+Wt(vt[ct],ct,vt))>0&&(ve+=Te);for(re!=null?le.sort(function(Sn,er){return re(be[Sn],be[er])}):Rt!=null&&le.sort(function(Sn,er){return Rt(vt[Sn],vt[er])}),ct=0,yt=ve?(Ye-Gt*rn)/ve:0;ct<Gt;++ct,Fe=xe)Mt=le[ct],xe=Fe+((Te=be[Mt])>0?Te*yt:0)+rn,be[Mt]={data:vt[Mt],index:ct,value:Te,startAngle:Fe,endAngle:xe,padAngle:fn};return be}return wt.value=function(vt){return arguments.length?(Wt=typeof vt=="function"?vt:Cr(+vt),wt):Wt},wt.sortValues=function(vt){return arguments.length?(re=vt,Rt=null,wt):re},wt.sort=function(vt){return arguments.length?(Rt=vt,re=null,wt):Rt},wt.startAngle=function(vt){return arguments.length?(Jt=typeof vt=="function"?vt:Cr(+vt),wt):Jt},wt.endAngle=function(vt){return arguments.length?(te=typeof vt=="function"?vt:Cr(+vt),wt):te},wt.padAngle=function(vt){return arguments.length?(Et=typeof vt=="function"?vt:Cr(+vt),wt):Et},wt}().value(function(Wt){return Wt[1]}),ft=pt(Object.entries(I)),xt=Gp().innerRadius(0).outerRadius(b);M.selectAll("mySlices").data(ft).enter().append("path").attr("d",xt).attr("fill",function(Wt){return it(Wt.data[0])}).attr("class","pieCircle"),M.selectAll("mySlices").data(ft).enter().append("text").text(function(Wt){return(Wt.data[1]/R*100).toFixed(0)+"%"}).attr("transform",function(Wt){return"translate("+xt.centroid(Wt)+")"}).style("text-anchor","middle").attr("class","slice"),M.append("text").text(r.yy.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var mt=M.selectAll(".legend").data(it.domain()).enter().append("g").attr("class","legend").attr("transform",function(Wt,re){return"translate(216,"+(22*re-22*it.domain().length/2)+")"});mt.append("rect").attr("width",18).attr("height",18).style("fill",it).style("stroke",it),mt.data(ft).append("text").attr("x",22).attr("y",14).text(function(Wt){return r.yy.getShowData()||pc.showData||pc.pie.showData?Wt.data[0]+" ["+Wt.data[1]+"]":Wt.data[0]})}catch(Wt){v.error("Error while rendering info diagram"),v.error(Wt)}};var Zc=y(3176),Cv=y.n(Zc),W1=[],ia={},$1={},Qc={},eh={};const nh={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().req},addRequirement:function(t,e){return $1[t]===void 0&&($1[t]={name:t,type:e,id:ia.id,text:ia.text,risk:ia.risk,verifyMethod:ia.verifyMethod}),ia={},$1[t]},getRequirements:function(){return $1},setNewReqId:function(t){ia!==void 0&&(ia.id=t)},setNewReqText:function(t){ia!==void 0&&(ia.text=t)},setNewReqRisk:function(t){ia!==void 0&&(ia.risk=t)},setNewReqVerifyMethod:function(t){ia!==void 0&&(ia.verifyMethod=t)},setAccTitle:Ua,getAccTitle:ta,setAccDescription:xo,getAccDescription:wo,addElement:function(t){return eh[t]===void 0&&(eh[t]={name:t,type:Qc.type,docRef:Qc.docRef},v.info("Added new requirement: ",t)),Qc={},eh[t]},getElements:function(){return eh},setNewElementType:function(t){Qc!==void 0&&(Qc.type=t)},setNewElementDocRef:function(t){Qc!==void 0&&(Qc.docRef=t)},addRelationship:function(t,e,r){W1.push({type:t,src:e,dst:r})},getRelationships:function(){return W1},clear:function(){W1=[],ia={},$1={},Qc={},eh={},Cs()}};var dy={CONTAINS:"contains",ARROW:"arrow"};const K6=dy;var Ri={},n=0,i=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Ri.rect_min_width+"px").attr("height",Ri.rect_min_height+"px")},o=function(t,e,r){var a=Ri.rect_min_width/2,s=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",a).attr("y",Ri.rect_padding).attr("dominant-baseline","hanging"),h=0;r.forEach(function(p){h==0?s.append("tspan").attr("text-anchor","middle").attr("x",Ri.rect_min_width/2).attr("dy",0).text(p):s.append("tspan").attr("text-anchor","middle").attr("x",Ri.rect_min_width/2).attr("dy",.75*Ri.line_height).text(p),h++});var u=1.5*Ri.rect_padding+h*Ri.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Ri.rect_min_width).attr("y1",u).attr("y2",u),{titleNode:s,y:u}},l=function(t,e,r,a){var s=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Ri.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),h=0,u=[];return r.forEach(function(p){for(var _=p.length;_>30&&h<3;){var b=p.substring(0,30);_=(p=p.substring(30,p.length)).length,u[u.length]=b,h++}if(h==3){var M=u[u.length-1];u[u.length-1]=M.substring(0,M.length-4)+"..."}else u[u.length]=p;h=0}),u.forEach(function(p){s.append("tspan").attr("x",Ri.rect_padding).attr("dy",Ri.line_height).text(p)}),s},f=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const g=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)Ri[e[r]]=t[e[r]]},w=function(t,e){Zc.parser.yy=nh,Zc.parser.yy.clear(),Zc.parser.parse(t);var r,a=Vt().securityLevel;a==="sandbox"&&(r=ze("#i"+e));var s=ze(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),h=(a==="sandbox"&&r.nodes()[0].contentDocument,s.select("[id='".concat(e,"']")));(function(ht,it){var pt=ht.append("defs").append("marker").attr("id",dy.CONTAINS+"_line_ending").attr("refX",0).attr("refY",it.line_height/2).attr("markerWidth",it.line_height).attr("markerHeight",it.line_height).attr("orient","auto").append("g");pt.append("circle").attr("cx",it.line_height/2).attr("cy",it.line_height/2).attr("r",it.line_height/2).attr("fill","none"),pt.append("line").attr("x1",0).attr("x2",it.line_height).attr("y1",it.line_height/2).attr("y2",it.line_height/2).attr("stroke-width",1),pt.append("line").attr("y1",0).attr("y2",it.line_height).attr("x1",it.line_height/2).attr("x2",it.line_height/2).attr("stroke-width",1),ht.append("defs").append("marker").attr("id",dy.ARROW+"_line_ending").attr("refX",it.line_height).attr("refY",.5*it.line_height).attr("markerWidth",it.line_height).attr("markerHeight",it.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(it.line_height,",").concat(it.line_height/2,`
M`).concat(it.line_height,",").concat(it.line_height/2,`
L0,`).concat(it.line_height)).attr("stroke-width",1)})(h,Ri);var u=new(Bi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Ri.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),p=nh.getRequirements(),_=nh.getElements(),b=nh.getRelationships();(function(ht,it,pt){Object.keys(ht).forEach(function(ft){var xt=ht[ft];ft=f(ft),v.info("Added new requirement: ",ft);var mt=pt.append("g").attr("id",ft),Wt=i(mt,"req-"+ft),re=o(mt,ft+"_title",["<<".concat(xt.type,">>"),"".concat(xt.name)]);l(mt,ft+"_body",["Id: ".concat(xt.id),"Text: ".concat(xt.text),"Risk: ".concat(xt.risk),"Verification: ".concat(xt.verifyMethod)],re.y);var Rt=Wt.node().getBBox();it.setNode(ft,{width:Rt.width,height:Rt.height,shape:"rect",id:ft})})})(p,u,h),function(ht,it,pt){Object.keys(ht).forEach(function(ft){var xt=ht[ft],mt=f(ft),Wt=pt.append("g").attr("id",mt),re="element-"+mt,Rt=i(Wt,re),Jt=o(Wt,re+"_title",["<<Element>>","".concat(ft)]);l(Wt,re+"_body",["Type: ".concat(xt.type||"Not Specified"),"Doc Ref: ".concat(xt.docRef||"None")],Jt.y);var te=Rt.node().getBBox();it.setNode(mt,{width:te.width,height:te.height,shape:"rect",id:mt})})}(_,u,h),function(ht,it){ht.forEach(function(pt){var ft=f(pt.src),xt=f(pt.dst);it.setEdge(ft,xt,{relationship:pt})})}(b,u),Wu().layout(u),function(ht,it){it.nodes().forEach(function(pt){pt!==void 0&&it.node(pt)!==void 0&&(ht.select("#"+pt),ht.select("#"+pt).attr("transform","translate("+(it.node(pt).x-it.node(pt).width/2)+","+(it.node(pt).y-it.node(pt).height/2)+" )"))})}(h,u),b.forEach(function(ht){(function(it,pt,ft,xt){var mt=ft.edge(f(pt.src),f(pt.dst)),Wt=Po().x(function(Rt){return Rt.x}).y(function(Rt){return Rt.y}),re=it.insert("path","#"+xt).attr("class","er relationshipLine").attr("d",Wt(mt.points)).attr("fill","none");pt.type==nh.Relationships.CONTAINS?re.attr("marker-start","url("+Xn.getUrl(Ri.arrowMarkerAbsolute)+"#"+pt.type+"_line_ending)"):(re.attr("stroke-dasharray","10,7"),re.attr("marker-end","url("+Xn.getUrl(Ri.arrowMarkerAbsolute)+"#"+K6.ARROW+"_line_ending)")),function(Rt,Jt,te,Et){var wt=Jt.node().getTotalLength(),vt=Jt.node().getPointAtLength(.5*wt),ct="rel"+n;n++;var Mt=Rt.append("text").attr("class","req relationshipLabel").attr("id",ct).attr("x",vt.x).attr("y",vt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Et).node().getBBox();Rt.insert("rect","#"+ct).attr("class","req reqLabelBox").attr("x",vt.x-Mt.width/2).attr("y",vt.y-Mt.height/2).attr("width",Mt.width).attr("height",Mt.height).attr("fill","white").attr("fill-opacity","85%")}(it,re,0,"<<".concat(pt.type,">>"))})(h,ht,u,e)});var M=Ri.rect_padding,I=h.node().getBBox(),R=I.width+2*M,$=I.height+2*M;ho(h,$,R,Ri.useMaxWidth),h.attr("viewBox","".concat(I.x-M," ").concat(I.y-M," ").concat(R," ").concat($)),Qa(Zc.parser.yy,h,e)};var m=y(6876),k=y.n(m),S=void 0,B={},z=[],O=!1,q=!1,H=function(t,e,r,a){var s=B[t];s&&e===s.name&&r==null||(r!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),a!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),B[t]={name:e,description:r.text,wrap:r.wrap===void 0&&st()||!!r.wrap,prevActor:S,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},S&&B[S]&&(B[S].nextActor=t),S=t)},et=function(t){var e,r=0;for(e=0;e<z.length;e++)z[e].type===at.ACTIVE_START&&z[e].from.actor===t&&r++,z[e].type===at.ACTIVE_END&&z[e].from.actor===t&&r--;return r},J=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},a=arguments.length>3?arguments[3]:void 0;if(a===at.ACTIVE_END){var s=et(t.actor);if(s<1){var h=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw h.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},h}}return z.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&st()||!!r.wrap,type:a}),!0},Z=function(t){return B[t]},st=function(){return q},at={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},bt=function(t,e,r){r.text,r.wrap===void 0&&st()||r.wrap;var a=[].concat(t,t);z.push({from:a[0],to:a[1],message:r.text,wrap:r.wrap===void 0&&st()||!!r.wrap,type:at.NOTE,placement:e})},zt=function(t,e){var r=Z(t);try{var a=ws(e.text,Vt());a=(a=a.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Qt(r,JSON.parse(a))}catch(s){v.error("error while parsing actor link text",s)}};function Qt(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var ae=function(t,e){var r=Z(t);try{var a=ws(e.text,Vt());Oe(r,JSON.parse(a))}catch(s){v.error("error while parsing actor properties text",s)}};function Oe(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var $t=function(t,e){var r=Z(t),a=document.getElementById(e.text);try{var s=a.innerHTML,h=JSON.parse(s);h.properties&&Oe(r,h.properties),h.links&&Qt(r,h.links)}catch(u){v.error("error while parsing actor details text",u)}};const fe={addActor:H,addMessage:function(t,e,r,a){z.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&st()||!!r.wrap,answer:a})},addSignal:J,addLinks:zt,addDetails:$t,addProperties:ae,autoWrap:st,setWrap:function(t){q=t},enableSequenceNumbers:function(){O=!0},disableSequenceNumbers:function(){O=!1},showSequenceNumbers:function(){return O},getMessages:function(){return z},getActors:function(){return B},getActor:Z,getActorKeys:function(){return Object.keys(B)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getAccTitle:ta,getDiagramTitle:ju,setDiagramTitle:C1,parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().sequence},clear:function(){B={},z=[],O=!1,Cs()},parseMessage:function(t){var e=t.trim(),r={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return v.debug("parseMessage:",r),r},LINETYPE:at,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:bt,setAccTitle:Ua,apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"sequenceIndex":z.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":H(e.actor,e.actor,e.description,"participant");break;case"addActor":H(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":J(e.actor,void 0,void 0,e.signalType);break;case"addNote":bt(e.actor,e.placement,e.text);break;case"addLinks":zt(e.actor,e.text);break;case"addALink":(function(r,a){var s=Z(r);try{var h={},u=ws(a.text,Vt()),p=u.indexOf("@"),_=(u=(u=u.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,p-1).trim(),b=u.slice(p+1).trim();h[_]=b,Qt(s,h)}catch(M){v.error("error while parsing actor link text",M)}})(e.actor,e.text);break;case"addProperties":ae(e.actor,e.text);break;case"addDetails":$t(e.actor,e.text);break;case"addMessage":J(e.from,e.to,e.msg,e.signalType);break;case"loopStart":J(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":J(void 0,void 0,void 0,e.signalType);break;case"rectStart":J(void 0,void 0,e.color,e.signalType);break;case"optStart":J(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":J(void 0,void 0,e.altText,e.signalType);break;case"setAccTitle":Ua(e.text);break;case"parStart":case"and":J(void 0,void 0,e.parText,e.signalType);break;case"criticalStart":J(void 0,void 0,e.criticalText,e.signalType);break;case"option":J(void 0,void 0,e.optionText,e.signalType);break;case"breakStart":J(void 0,void 0,e.breakText,e.signalType)}},setAccDescription:xo,getAccDescription:wo};var gt=[],St=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},oe=function(t,e){var r;r=function(){var a=document.querySelectorAll(t);a.length!==0&&(a[0].addEventListener("mouseover",function(){Ze("actor"+e+"_popup")}),a[0].addEventListener("mouseout",function(){cn("actor"+e+"_popup")}))},gt.push(r)},ie=function(t,e,r,a){var s=t.append("image");s.attr("x",e),s.attr("y",r);var h=(0,ec.N)(a);s.attr("xlink:href",h)},ce=function(t,e,r,a){var s=t.append("use");s.attr("x",e),s.attr("y",r);var h=(0,ec.N)(a);s.attr("xlink:href","#"+h)},Ze=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},cn=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},On=function(t,e){var r=0,a=0,s=e.text.split(Xn.lineBreakRegex),h=[],u=0,p=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":p=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":p=function(){return Math.round(e.y+(r+a+e.textMargin)/2)};break;case"bottom":case"end":p=function(){return Math.round(e.y+(r+a+2*e.textMargin)-e.textMargin)}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var _=0;_<s.length;_++){var b=s[_];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(u=_*e.fontSize);var M=t.append("text");if(M.attr("x",e.x),M.attr("y",p()),e.anchor!==void 0&&M.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&M.style("font-family",e.fontFamily),e.fontSize!==void 0&&M.style("font-size",e.fontSize),e.fontWeight!==void 0&&M.style("font-weight",e.fontWeight),e.fill!==void 0&&M.attr("fill",e.fill),e.class!==void 0&&M.attr("class",e.class),e.dy!==void 0?M.attr("dy",e.dy):u!==0&&M.attr("dy",u),e.tspan){var I=M.append("tspan");I.attr("x",e.x),e.fill!==void 0&&I.attr("fill",e.fill),I.text(b)}else M.text(b);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(a+=(M._groups||M)[0][0].getBBox().height,r=a),h.push(M)}return h},lr=function(t,e){var r=t.append("polygon");return r.attr("points",function(a,s,h,u,p){return a+","+s+" "+(a+h)+","+s+" "+(a+h)+","+(s+u-7)+" "+(a+h-8.4)+","+(s+u)+" "+a+","+(s+u)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,On(t,e),r},Vn=-1,yn=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},kr=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Un=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},zn=function(){function t(s,h,u,p,_,b,M){a(h.append("text").attr("x",u+_/2).attr("y",p+b/2+5).style("text-anchor","middle").text(s),M)}function e(s,h,u,p,_,b,M,I){for(var R=I.actorFontSize,$=I.actorFontFamily,ht=I.actorFontWeight,it=s.split(Xn.lineBreakRegex),pt=0;pt<it.length;pt++){var ft=pt*R-R*(it.length-1)/2,xt=h.append("text").attr("x",u+_/2).attr("y",p).style("text-anchor","middle").style("font-size",R).style("font-weight",ht).style("font-family",$);xt.append("tspan").attr("x",u+_/2).attr("dy",ft).text(it[pt]),xt.attr("y",p+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(xt,M)}}function r(s,h,u,p,_,b,M,I){var R=h.append("switch"),$=R.append("foreignObject").attr("x",u).attr("y",p).attr("width",_).attr("height",b).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,R,u,p,_,b,M,I),a($,M)}function a(s,h){for(var u in h)h.hasOwnProperty(u)&&s.attr(u,h[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?t:e}}(),vr=function(){function t(s,h,u,p,_,b,M){a(h.append("text").attr("x",u).attr("y",p).style("text-anchor","start").text(s),M)}function e(s,h,u,p,_,b,M,I){for(var R=I.actorFontSize,$=I.actorFontFamily,ht=I.actorFontWeight,it=s.split(Xn.lineBreakRegex),pt=0;pt<it.length;pt++){var ft=pt*R-R*(it.length-1)/2,xt=h.append("text").attr("x",u).attr("y",p).style("text-anchor","start").style("font-size",R).style("font-weight",ht).style("font-family",$);xt.append("tspan").attr("x",u).attr("dy",ft).text(it[pt]),xt.attr("y",p+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(xt,M)}}function r(s,h,u,p,_,b,M,I){var R=h.append("switch"),$=R.append("foreignObject").attr("x",u).attr("y",p).attr("width",_).attr("height",b).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,R,u,p,0,b,M,I),a($,M)}function a(s,h){for(var u in h)h.hasOwnProperty(u)&&s.attr(u,h[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?t:e}}();const va=St,Pi=function(t,e,r){switch(e.type){case"actor":return function(a,s,h){var u=s.x+s.width/2;s.y===0&&(Vn++,a.append("line").attr("id","actor"+Vn).attr("x1",u).attr("y1",80).attr("x2",u).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var p=a.append("g");p.attr("class","actor-man");var _={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};_.x=s.x,_.y=s.y,_.fill="#eaeaea",_.width=s.width,_.height=s.height,_.class="actor",_.rx=3,_.ry=3,p.append("line").attr("id","actor-man-torso"+Vn).attr("x1",u).attr("y1",s.y+25).attr("x2",u).attr("y2",s.y+45),p.append("line").attr("id","actor-man-arms"+Vn).attr("x1",u-18).attr("y1",s.y+33).attr("x2",u+18).attr("y2",s.y+33),p.append("line").attr("x1",u-18).attr("y1",s.y+60).attr("x2",u).attr("y2",s.y+45),p.append("line").attr("x1",u).attr("y1",s.y+45).attr("x2",u+16).attr("y2",s.y+60);var b=p.append("circle");b.attr("cx",s.x+s.width/2),b.attr("cy",s.y+10),b.attr("r",15),b.attr("width",s.width),b.attr("height",s.height);var M=p.node().getBBox();return s.height=M.height,zn(h)(s.description,p,_.x,_.y+35,_.width,_.height,{class:"actor"},h),s.height}(t,e,r);case"participant":return function(a,s,h){var u=s.x+s.width/2,p=a.append("g"),_=p;s.y===0&&(Vn++,_.append("line").attr("id","actor"+Vn).attr("x1",u).attr("y1",5).attr("x2",u).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),_=p.append("g"),s.actorCnt=Vn,s.links!=null&&(_.attr("id","root-"+Vn),oe("#root-"+Vn,Vn)));var b={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},M="actor";s.properties!=null&&s.properties.class?M=s.properties.class:b.fill="#eaeaea",b.x=s.x,b.y=s.y,b.width=s.width,b.height=s.height,b.class=M,b.rx=3,b.ry=3;var I=St(_,b);if(s.rectData=b,s.properties!=null&&s.properties.icon){var R=s.properties.icon.trim();R.charAt(0)==="@"?ce(_,b.x+b.width-20,b.y+10,R.substr(1)):ie(_,b.x+b.width-20,b.y+10,R)}zn(h)(s.description,_,b.x,b.y,b.width,b.height,{class:"actor"},h);var $=s.height;if(I.node){var ht=I.node().getBBox();s.height=ht.height,$=ht.height}return $}(t,e,r)}},yc=function(t,e,r,a,s){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var h=e.links,u=e.actorCnt,p=e.rectData,_="none";s&&(_="block !important");var b=t.append("g");b.attr("id","actor"+u+"_popup"),b.attr("class","actorPopupMenu"),b.attr("display",_),oe("#actor"+u+"_popup",u);var M="";p.class!==void 0&&(M=" "+p.class);var I=p.width>r?p.width:r,R=b.append("rect");if(R.attr("class","actorPopupMenuPanel"+M),R.attr("x",p.x),R.attr("y",p.height),R.attr("fill",p.fill),R.attr("stroke",p.stroke),R.attr("width",I),R.attr("height",p.height),R.attr("rx",p.rx),R.attr("ry",p.ry),h!=null){var $=20;for(var ht in h){var it=b.append("a"),pt=(0,ec.N)(h[ht]);it.attr("xlink:href",pt),it.attr("target","_blank"),vr(a)(ht,it,p.x+10,p.height+$,I,20,{class:"actor"},a),$+=30}}return R.attr("height",$),{height:p.height+$,width:I}},Jc=function(t){return t.append("g")},H1=function(t,e,r,a,s){var h={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},u=e.anchored;h.x=e.startx,h.y=e.starty,h.class="activation"+s%3,h.width=e.stopx-e.startx,h.height=r-e.starty,St(u,h)},Os=function(t,e,r,a){var s=a.boxMargin,h=a.boxTextMargin,u=a.labelBoxHeight,p=a.labelBoxWidth,_=a.messageFontFamily,b=a.messageFontSize,M=a.messageFontWeight,I=t.append("g"),R=function(it,pt,ft,xt){return I.append("line").attr("x1",it).attr("y1",pt).attr("x2",ft).attr("y2",xt).attr("class","loopLine")};R(e.startx,e.starty,e.stopx,e.starty),R(e.stopx,e.starty,e.stopx,e.stopy),R(e.startx,e.stopy,e.stopx,e.stopy),R(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(it){R(e.startx,it.y,e.stopx,it.y).style("stroke-dasharray","3, 3")});var $={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};$.text=r,$.x=e.startx,$.y=e.starty,$.fontFamily=_,$.fontSize=b,$.fontWeight=M,$.anchor="middle",$.valign="middle",$.tspan=!1,$.width=p||50,$.height=u||20,$.textMargin=h,$.class="labelText",lr(I,$),($={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,$.x=e.startx+p/2+(e.stopx-e.startx)/2,$.y=e.starty+s+h,$.anchor="middle",$.valign="middle",$.textMargin=h,$.class="loopText",$.fontFamily=_,$.fontSize=b,$.fontWeight=M,$.wrap=!0;var ht=On(I,$);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(it,pt){if(it.message){$.text=it.message,$.x=e.startx+(e.stopx-e.startx)/2,$.y=e.sections[pt].y+s+h,$.class="loopText",$.anchor="middle",$.valign="middle",$.tspan=!1,$.fontFamily=_,$.fontSize=b,$.fontWeight=M,$.wrap=e.wrap,ht=On(I,$);var ft=Math.round(ht.map(function(xt){return(xt._groups||xt)[0][0].getBBox().height}).reduce(function(xt,mt){return xt+mt}));e.sections[pt].height+=ft-(s+h)}}),e.height=Math.round(e.stopy-e.starty),I},Sv=function(t,e){St(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},Av=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},rh=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Mv=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},t_=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},e_=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},So=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},wx=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},E_=kr,kx=Un;ec.N,m.parser.yy=fe;var he={},nn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,S_(m.parser.yy.getConfig())},updateVal:function(t,e,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var s=this,h=0;function u(p){return function(_){h++;var b=s.sequenceItems.length-h+1;s.updateVal(_,"starty",e-b*he.boxMargin,Math.min),s.updateVal(_,"stopy",a+b*he.boxMargin,Math.max),s.updateVal(nn.data,"startx",t-b*he.boxMargin,Math.min),s.updateVal(nn.data,"stopx",r+b*he.boxMargin,Math.max),p!=="activation"&&(s.updateVal(_,"startx",t-b*he.boxMargin,Math.min),s.updateVal(_,"stopx",r+b*he.boxMargin,Math.max),s.updateVal(nn.data,"starty",e-b*he.boxMargin,Math.min),s.updateVal(nn.data,"stopy",a+b*he.boxMargin,Math.max))}}this.sequenceItems.forEach(u()),this.activations.forEach(u("activation"))},insert:function(t,e,r,a){var s=Math.min(t,r),h=Math.max(t,r),u=Math.min(e,a),p=Math.max(e,a);this.updateVal(nn.data,"startx",s,Math.min),this.updateVal(nn.data,"starty",u,Math.min),this.updateVal(nn.data,"stopx",h,Math.max),this.updateVal(nn.data,"stopy",p,Math.max),this.updateBounds(s,u,h,p)},newActivation:function(t,e,r){var a=r[t.from.actor],s=Nv(t.from.actor).length||0,h=a.x+a.width/2+(s-1)*he.activationWidth/2;this.activations.push({startx:h,starty:this.verticalPos+2,stopx:h+he.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Jc(e)})},endActivation:function(t){var e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:nn.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Fd=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},Rd=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},n_=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},r_=function(t,e,r,a,s,h){if(s.hideUnusedParticipants===!0){var u=new Set;h.forEach(function($){u.add($.from),u.add($.to)}),r=r.filter(function($){return u.has($)})}for(var p=0,_=0,b=0,M=0;M<r.length;M++){var I=e[r[M]];I.width=I.width||he.width,I.height=Math.max(I.height||he.height,he.height),I.margin=I.margin||he.actorMargin,I.x=p+_,I.y=a;var R=Pi(t,I,he);b=Math.max(b,R),nn.insert(I.x,a,I.x+I.width,I.height),p+=I.width,_+=I.margin,nn.models.addActor(I)}nn.bumpVerticalPos(b)},C_=function(t,e,r,a){for(var s=0,h=0,u=0;u<r.length;u++){var p=e[r[u]],_=Tx(p),b=yc(t,p,_,he,he.forceMenus);b.height>s&&(s=b.height),b.width+p.x>h&&(h=b.width+p.x)}return{maxHeight:s,maxWidth:h}},S_=function(t){$i(he,t),t.fontFamily&&(he.actorFontFamily=he.noteFontFamily=he.messageFontFamily=t.fontFamily),t.fontSize&&(he.actorFontSize=he.noteFontSize=he.messageFontSize=t.fontSize),t.fontWeight&&(he.actorFontWeight=he.noteFontWeight=he.messageFontWeight=t.fontWeight)},Nv=function(t){return nn.activations.filter(function(e){return e.actor===t})},A_=function(t,e){var r=e[t],a=Nv(t);return[a.reduce(function(s,h){return Math.min(s,h.startx)},r.x+r.width/2),a.reduce(function(s,h){return Math.max(s,h.stopx)},r.x+r.width/2)]};function Kc(t,e,r,a,s){nn.bumpVerticalPos(r);var h=a;if(e.id&&e.message&&t[e.id]){var u=t[e.id].width,p=Fd(he);e.message=ir.wrapLabel("[".concat(e.message,"]"),u-2*he.wrapPadding,p),e.width=u,e.wrap=!0;var _=ir.calculateTextDimensions(e.message,p),b=Math.max(_.height,he.labelBoxHeight);h=a+b,v.debug("".concat(b," - ").concat(e.message))}s(e),nn.bumpVerticalPos(h)}var Tx=function(t){var e=0,r=n_(he);for(var a in t.links){var s=ir.calculateTextDimensions(a,r).width+2*he.wrapPadding+2*he.boxMargin;e<s&&(e=s)}return e};const py={bounds:nn,drawActors:r_,drawActorsPopup:C_,setConf:S_,draw:function(t,e){he=Vt().sequence;var r,a=Vt().securityLevel;a==="sandbox"&&(r=ze("#i"+e));var s=ze(a==="sandbox"?r.nodes()[0].contentDocument.body:"body");a==="sandbox"&&r.nodes()[0].contentDocument,m.parser.yy.clear(),m.parser.yy.setWrap(he.wrap),m.parser.parse(t+`
`),nn.init(),v.debug("C:".concat(JSON.stringify(he,null,2)));var h=a==="sandbox"?s.select('[id="'.concat(e,'"]')):ze('[id="'.concat(e,'"]')),u=m.parser.yy.getActors(),p=m.parser.yy.getActorKeys(),_=m.parser.yy.getMessages(),b=m.parser.yy.getDiagramTitle(),M=function(Rt,Jt){var te={};return Jt.forEach(function(Et){if(Rt[Et.to]&&Rt[Et.from]){var wt=Rt[Et.to];if(Et.placement===m.parser.yy.PLACEMENT.LEFTOF&&!wt.prevActor||Et.placement===m.parser.yy.PLACEMENT.RIGHTOF&&!wt.nextActor)return;var vt=Et.placement!==void 0,ct=!vt,Mt=vt?Rd(he):Fd(he),yt=Et.wrap?ir.wrapLabel(Et.message,he.width-2*he.wrapPadding,Mt):Et.message,xe=ir.calculateTextDimensions(yt,Mt).width+2*he.wrapPadding;ct&&Et.from===wt.nextActor?te[Et.to]=Math.max(te[Et.to]||0,xe):ct&&Et.from===wt.prevActor?te[Et.from]=Math.max(te[Et.from]||0,xe):ct&&Et.from===Et.to?(te[Et.from]=Math.max(te[Et.from]||0,xe/2),te[Et.to]=Math.max(te[Et.to]||0,xe/2)):Et.placement===m.parser.yy.PLACEMENT.RIGHTOF?te[Et.from]=Math.max(te[Et.from]||0,xe):Et.placement===m.parser.yy.PLACEMENT.LEFTOF?te[wt.prevActor]=Math.max(te[wt.prevActor]||0,xe):Et.placement===m.parser.yy.PLACEMENT.OVER&&(wt.prevActor&&(te[wt.prevActor]=Math.max(te[wt.prevActor]||0,xe/2)),wt.nextActor&&(te[Et.from]=Math.max(te[Et.from]||0,xe/2)))}}),v.debug("maxMessageWidthPerActor:",te),te}(u,_);he.height=function(Rt,Jt){var te=0;for(var Et in Object.keys(Rt).forEach(function(Mt){var yt=Rt[Mt];yt.wrap&&(yt.description=ir.wrapLabel(yt.description,he.width-2*he.wrapPadding,n_(he)));var xe=ir.calculateTextDimensions(yt.description,n_(he));yt.width=yt.wrap?he.width:Math.max(he.width,xe.width+2*he.wrapPadding),yt.height=yt.wrap?Math.max(xe.height,he.height):he.height,te=Math.max(te,yt.height)}),Jt){var wt=Rt[Et];if(wt){var vt=Rt[wt.nextActor];if(vt){var ct=Jt[Et]+he.actorMargin-wt.width/2-vt.width/2;wt.margin=Math.max(ct,he.actorMargin)}}}return Math.max(te,he.height)}(u,M),So(h),e_(h),wx(h),r_(h,u,p,0,he,_);var I=function(Rt,Jt){var te,Et,wt,vt={},ct=[];return Rt.forEach(function(Mt){switch(Mt.id=ir.random({length:10}),Mt.type){case m.parser.yy.LINETYPE.LOOP_START:case m.parser.yy.LINETYPE.ALT_START:case m.parser.yy.LINETYPE.OPT_START:case m.parser.yy.LINETYPE.PAR_START:case m.parser.yy.LINETYPE.CRITICAL_START:case m.parser.yy.LINETYPE.BREAK_START:ct.push({id:Mt.id,msg:Mt.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case m.parser.yy.LINETYPE.ALT_ELSE:case m.parser.yy.LINETYPE.PAR_AND:case m.parser.yy.LINETYPE.CRITICAL_OPTION:Mt.message&&(te=ct.pop(),vt[te.id]=te,vt[Mt.id]=te,ct.push(te));break;case m.parser.yy.LINETYPE.LOOP_END:case m.parser.yy.LINETYPE.ALT_END:case m.parser.yy.LINETYPE.OPT_END:case m.parser.yy.LINETYPE.PAR_END:case m.parser.yy.LINETYPE.CRITICAL_END:case m.parser.yy.LINETYPE.BREAK_END:te=ct.pop(),vt[te.id]=te;break;case m.parser.yy.LINETYPE.ACTIVE_START:var yt=Jt[Mt.from?Mt.from.actor:Mt.to.actor],xe=Nv(Mt.from?Mt.from.actor:Mt.to.actor).length,Te=yt.x+yt.width/2+(xe-1)*he.activationWidth/2,Gt={startx:Te,stopx:Te+he.activationWidth,actor:Mt.from.actor,enabled:!0};nn.activations.push(Gt);break;case m.parser.yy.LINETYPE.ACTIVE_END:var ve=nn.activations.map(function(le){return le.actor}).lastIndexOf(Mt.from.actor);delete nn.activations.splice(ve,1)[0]}Mt.placement!==void 0?(Et=function(le,be){var Fe=be[le.from].x,Ye=be[le.to].x,fn=le.wrap&&le.message,rn=ir.calculateTextDimensions(fn?ir.wrapLabel(le.message,he.width,Rd(he)):le.message,Rd(he)),Sn={width:fn?he.width:Math.max(he.width,rn.width+2*he.noteMargin),height:0,startx:be[le.from].x,stopx:0,starty:0,stopy:0,message:le.message};return le.placement===m.parser.yy.PLACEMENT.RIGHTOF?(Sn.width=fn?Math.max(he.width,rn.width):Math.max(be[le.from].width/2+be[le.to].width/2,rn.width+2*he.noteMargin),Sn.startx=Fe+(be[le.from].width+he.actorMargin)/2):le.placement===m.parser.yy.PLACEMENT.LEFTOF?(Sn.width=Math.max(fn?he.width:be[le.from].width/2+be[le.to].width/2,rn.width+2*he.noteMargin),Sn.startx=Fe-Sn.width+(be[le.from].width-he.actorMargin)/2):le.to===le.from?(rn=ir.calculateTextDimensions(fn?ir.wrapLabel(le.message,Math.max(he.width,be[le.from].width),Rd(he)):le.message,Rd(he)),Sn.width=fn?Math.max(he.width,be[le.from].width):Math.max(be[le.from].width,he.width,rn.width+2*he.noteMargin),Sn.startx=Fe+(be[le.from].width-Sn.width)/2):(Sn.width=Math.abs(Fe+be[le.from].width/2-(Ye+be[le.to].width/2))+he.actorMargin,Sn.startx=Fe<Ye?Fe+be[le.from].width/2-he.actorMargin/2:Ye+be[le.to].width/2-he.actorMargin/2),fn&&(Sn.message=ir.wrapLabel(le.message,Sn.width-2*he.wrapPadding,Rd(he))),v.debug("NM:[".concat(Sn.startx,",").concat(Sn.stopx,",").concat(Sn.starty,",").concat(Sn.stopy,":").concat(Sn.width,",").concat(Sn.height,"=").concat(le.message,"]")),Sn}(Mt,Jt),Mt.noteModel=Et,ct.forEach(function(le){(te=le).from=Math.min(te.from,Et.startx),te.to=Math.max(te.to,Et.startx+Et.width),te.width=Math.max(te.width,Math.abs(te.from-te.to))-he.labelBoxWidth})):(wt=function(le,be){var Fe=!1;if([m.parser.yy.LINETYPE.SOLID_OPEN,m.parser.yy.LINETYPE.DOTTED_OPEN,m.parser.yy.LINETYPE.SOLID,m.parser.yy.LINETYPE.DOTTED,m.parser.yy.LINETYPE.SOLID_CROSS,m.parser.yy.LINETYPE.DOTTED_CROSS,m.parser.yy.LINETYPE.SOLID_POINT,m.parser.yy.LINETYPE.DOTTED_POINT].includes(le.type)&&(Fe=!0),!Fe)return{};var Ye=A_(le.from,be),fn=A_(le.to,be),rn=Ye[0]<=fn[0]?1:0,Sn=Ye[0]<fn[0]?0:1,er=Ye.concat(fn),Br=Math.abs(fn[Sn]-Ye[rn]);le.wrap&&le.message&&(le.message=ir.wrapLabel(le.message,Math.max(Br+2*he.wrapPadding,he.width),Fd(he)));var _n=ir.calculateTextDimensions(le.message,Fd(he));return{width:Math.max(le.wrap?0:_n.width+2*he.wrapPadding,Br+2*he.wrapPadding,he.width),height:0,startx:Ye[rn],stopx:fn[Sn],starty:0,stopy:0,message:le.message,type:le.type,wrap:le.wrap,fromBounds:Math.min.apply(null,er),toBounds:Math.max.apply(null,er)}}(Mt,Jt),Mt.msgModel=wt,wt.startx&&wt.stopx&&ct.length>0&&ct.forEach(function(le){if(te=le,wt.startx===wt.stopx){var be=Jt[Mt.from],Fe=Jt[Mt.to];te.from=Math.min(be.x-wt.width/2,be.x-be.width/2,te.from),te.to=Math.max(Fe.x+wt.width/2,Fe.x+be.width/2,te.to),te.width=Math.max(te.width,Math.abs(te.to-te.from))-he.labelBoxWidth}else te.from=Math.min(wt.startx,te.from),te.to=Math.max(wt.stopx,te.to),te.width=Math.max(te.width,wt.width)-he.labelBoxWidth}))}),nn.activations=[],v.debug("Loop type widths:",vt),vt}(_,u);Av(h),t_(h),rh(h),Mv(h);var R=1,$=1,ht=Array();_.forEach(function(Rt){var Jt,te,Et;switch(Rt.type){case m.parser.yy.LINETYPE.NOTE:te=Rt.noteModel,function(vt,ct){nn.bumpVerticalPos(he.boxMargin),ct.height=he.boxMargin,ct.starty=nn.getVerticalPos();var Mt=kx();Mt.x=ct.startx,Mt.y=ct.starty,Mt.width=ct.width||he.width,Mt.class="note";var yt=vt.append("g"),xe=va(yt,Mt),Te=E_();Te.x=ct.startx,Te.y=ct.starty,Te.width=Mt.width,Te.dy="1em",Te.text=ct.message,Te.class="noteText",Te.fontFamily=he.noteFontFamily,Te.fontSize=he.noteFontSize,Te.fontWeight=he.noteFontWeight,Te.anchor=he.noteAlign,Te.textMargin=he.noteMargin,Te.valign=he.noteAlign;var Gt=On(yt,Te),ve=Math.round(Gt.map(function(le){return(le._groups||le)[0][0].getBBox().height}).reduce(function(le,be){return le+be}));xe.attr("height",ve+2*he.noteMargin),ct.height+=ve+2*he.noteMargin,nn.bumpVerticalPos(ve+2*he.noteMargin),ct.stopy=ct.starty+ve+2*he.noteMargin,ct.stopx=ct.startx+Mt.width,nn.insert(ct.startx,ct.starty,ct.stopx,ct.stopy),nn.models.addNote(ct)}(h,te);break;case m.parser.yy.LINETYPE.ACTIVE_START:nn.newActivation(Rt,h,u);break;case m.parser.yy.LINETYPE.ACTIVE_END:(function(vt,ct){var Mt=nn.endActivation(vt);Mt.starty+18>ct&&(Mt.starty=ct-6,ct+=12),H1(h,Mt,ct,he,Nv(vt.from.actor).length),nn.insert(Mt.startx,ct-10,Mt.stopx,ct)})(Rt,nn.getVerticalPos());break;case m.parser.yy.LINETYPE.LOOP_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.LOOP_END:Jt=nn.endLoop(),Os(h,Jt,"loop",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;case m.parser.yy.LINETYPE.RECT_START:Kc(I,Rt,he.boxMargin,he.boxMargin,function(vt){return nn.newLoop(void 0,vt.message)});break;case m.parser.yy.LINETYPE.RECT_END:Jt=nn.endLoop(),Sv(h,Jt),nn.models.addLoop(Jt),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos());break;case m.parser.yy.LINETYPE.OPT_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.OPT_END:Jt=nn.endLoop(),Os(h,Jt,"opt",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;case m.parser.yy.LINETYPE.ALT_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.ALT_ELSE:Kc(I,Rt,he.boxMargin+he.boxTextMargin,he.boxMargin,function(vt){return nn.addSectionToLoop(vt)});break;case m.parser.yy.LINETYPE.ALT_END:Jt=nn.endLoop(),Os(h,Jt,"alt",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;case m.parser.yy.LINETYPE.PAR_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.PAR_AND:Kc(I,Rt,he.boxMargin+he.boxTextMargin,he.boxMargin,function(vt){return nn.addSectionToLoop(vt)});break;case m.parser.yy.LINETYPE.PAR_END:Jt=nn.endLoop(),Os(h,Jt,"par",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;case m.parser.yy.LINETYPE.AUTONUMBER:R=Rt.message.start||R,$=Rt.message.step||$,Rt.message.visible?m.parser.yy.enableSequenceNumbers():m.parser.yy.disableSequenceNumbers();break;case m.parser.yy.LINETYPE.CRITICAL_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.CRITICAL_OPTION:Kc(I,Rt,he.boxMargin+he.boxTextMargin,he.boxMargin,function(vt){return nn.addSectionToLoop(vt)});break;case m.parser.yy.LINETYPE.CRITICAL_END:Jt=nn.endLoop(),Os(h,Jt,"critical",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;case m.parser.yy.LINETYPE.BREAK_START:Kc(I,Rt,he.boxMargin,he.boxMargin+he.boxTextMargin,function(vt){return nn.newLoop(vt)});break;case m.parser.yy.LINETYPE.BREAK_END:Jt=nn.endLoop(),Os(h,Jt,"break",he),nn.bumpVerticalPos(Jt.stopy-nn.getVerticalPos()),nn.models.addLoop(Jt);break;default:try{(Et=Rt.msgModel).starty=nn.getVerticalPos(),Et.sequenceIndex=R,Et.sequenceVisible=m.parser.yy.showSequenceNumbers();var wt=function(vt,ct){nn.bumpVerticalPos(10);var Mt,yt=ct.startx,xe=ct.stopx,Te=ct.message,Gt=Xn.splitBreaks(Te).length,ve=ir.calculateTextDimensions(Te,Fd(he)),le=ve.height/Gt;ct.height+=le,nn.bumpVerticalPos(le);var be=ve.height-10,Fe=ve.width;if(yt===xe){Mt=nn.getVerticalPos()+be,he.rightAngles||(be+=he.boxMargin,Mt=nn.getVerticalPos()+be),be+=30;var Ye=Math.max(Fe/2,he.width/2);nn.insert(yt-Ye,nn.getVerticalPos()-10+be,xe+Ye,nn.getVerticalPos()+30+be)}else be+=he.boxMargin,Mt=nn.getVerticalPos()+be,nn.insert(yt,Mt-10,xe,Mt);return nn.bumpVerticalPos(be),ct.height+=be,ct.stopy=ct.starty+ct.height,nn.insert(ct.fromBounds,ct.starty,ct.toBounds,ct.stopy),Mt}(0,Et);ht.push({messageModel:Et,lineStarty:wt}),nn.models.addMessage(Et)}catch(vt){v.error("error while drawing message",vt)}}[m.parser.yy.LINETYPE.SOLID_OPEN,m.parser.yy.LINETYPE.DOTTED_OPEN,m.parser.yy.LINETYPE.SOLID,m.parser.yy.LINETYPE.DOTTED,m.parser.yy.LINETYPE.SOLID_CROSS,m.parser.yy.LINETYPE.DOTTED_CROSS,m.parser.yy.LINETYPE.SOLID_POINT,m.parser.yy.LINETYPE.DOTTED_POINT].includes(Rt.type)&&(R+=$)}),ht.forEach(function(Rt){return function(Jt,te,Et){var wt=te.startx,vt=te.stopx,ct=te.starty,Mt=te.message,yt=te.type,xe=te.sequenceIndex,Te=te.sequenceVisible,Gt=ir.calculateTextDimensions(Mt,Fd(he)),ve=E_();ve.x=wt,ve.y=ct+10,ve.width=vt-wt,ve.class="messageText",ve.dy="1em",ve.text=Mt,ve.fontFamily=he.messageFontFamily,ve.fontSize=he.messageFontSize,ve.fontWeight=he.messageFontWeight,ve.anchor=he.messageAlign,ve.valign=he.messageAlign,ve.textMargin=he.wrapPadding,ve.tspan=!1,On(Jt,ve);var le,be=Gt.width;wt===vt?le=he.rightAngles?Jt.append("path").attr("d","M ".concat(wt,",").concat(Et," H ").concat(wt+Math.max(he.width/2,be/2)," V ").concat(Et+25," H ").concat(wt)):Jt.append("path").attr("d","M "+wt+","+Et+" C "+(wt+60)+","+(Et-10)+" "+(wt+60)+","+(Et+30)+" "+wt+","+(Et+20)):((le=Jt.append("line")).attr("x1",wt),le.attr("y1",Et),le.attr("x2",vt),le.attr("y2",Et)),yt===m.parser.yy.LINETYPE.DOTTED||yt===m.parser.yy.LINETYPE.DOTTED_CROSS||yt===m.parser.yy.LINETYPE.DOTTED_POINT||yt===m.parser.yy.LINETYPE.DOTTED_OPEN?(le.style("stroke-dasharray","3, 3"),le.attr("class","messageLine1")):le.attr("class","messageLine0");var Fe="";he.arrowMarkerAbsolute&&(Fe=(Fe=(Fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),le.attr("stroke-width",2),le.attr("stroke","none"),le.style("fill","none"),yt!==m.parser.yy.LINETYPE.SOLID&&yt!==m.parser.yy.LINETYPE.DOTTED||le.attr("marker-end","url("+Fe+"#arrowhead)"),yt!==m.parser.yy.LINETYPE.SOLID_POINT&&yt!==m.parser.yy.LINETYPE.DOTTED_POINT||le.attr("marker-end","url("+Fe+"#filled-head)"),yt!==m.parser.yy.LINETYPE.SOLID_CROSS&&yt!==m.parser.yy.LINETYPE.DOTTED_CROSS||le.attr("marker-end","url("+Fe+"#crosshead)"),(Te||he.showSequenceNumbers)&&(le.attr("marker-start","url("+Fe+"#sequencenumber)"),Jt.append("text").attr("x",wt).attr("y",Et+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(xe))}(h,Rt.messageModel,Rt.lineStarty)}),he.mirrorActors&&(nn.bumpVerticalPos(2*he.boxMargin),r_(h,u,p,nn.getVerticalPos(),he,_),nn.bumpVerticalPos(he.boxMargin),yn(h,nn.getVerticalPos()));var it=C_(h,u,p),pt=nn.getBounds().bounds;v.debug("For line height fix Querying: #"+e+" .actor-line"),Cc("#"+e+" .actor-line").attr("y2",pt.stopy);var ft=pt.stopy-pt.starty;ft<it.maxHeight&&(ft=it.maxHeight);var xt=ft+2*he.diagramMarginY;he.mirrorActors&&(xt=xt-he.boxMargin+he.bottomMarginAdj);var mt=pt.stopx-pt.startx;mt<it.maxWidth&&(mt=it.maxWidth);var Wt=mt+2*he.diagramMarginX;b&&h.append("text").text(b).attr("x",(pt.stopx-pt.startx)/2-2*he.diagramMarginX).attr("y",-25),ho(h,xt,Wt,he.useMaxWidth);var re=b?40:0;h.attr("viewBox",pt.startx-he.diagramMarginX+" -"+(he.diagramMarginY+re)+" "+Wt+" "+(xt+re)),Qa(m.parser.yy,h,e),v.debug("models:",nn.models)}};var gy=y(3584),M_=y.n(gy);function i_(t){return i_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i_(t)}var Dv=function(t){return JSON.parse(JSON.stringify(t))},Ov=[],Ex=function t(e,r,a){if(r.stmt==="relation")t(e,r.state1,!0),t(e,r.state2,!1);else if(r.stmt==="state"&&r.id==="[*]"&&(r.id=a?e.id+"_start":e.id+"_end",r.start=a),r.doc){var s=[],h=0,u=[];for(h=0;h<r.doc.length;h++)if(r.doc[h].type==="divider"){var p=Dv(r.doc[h]);p.doc=Dv(u),s.push(p),u=[]}else u.push(r.doc[h]);if(s.length>0&&u.length>0){var _={stmt:"state",id:C4(),type:"divider",doc:Dv(u)};s.push(Dv(_)),r.doc=s}r.doc.forEach(function(b){return t(r,b,!0)})}},Bv={root:{relations:[],states:{},documents:{}}},Ka=Bv.root,a_=0,Lv=function(t,e,r,a,s){Ka.states[t]===void 0?Ka.states[t]={id:t,descriptions:[],type:e,doc:r,note:s}:(Ka.states[t].doc||(Ka.states[t].doc=r),Ka.states[t].type||(Ka.states[t].type=e)),a&&(v.info("Adding state ",t,a),typeof a=="string"&&O_(t,a.trim()),i_(a)==="object"&&a.forEach(function(h){return O_(t,h.trim())})),s&&(Ka.states[t].note=s,Ka.states[t].note.text=Xn.sanitizeText(Ka.states[t].note.text,Vt()))},N_=function(t){Ka=(Bv={root:{relations:[],states:{},documents:{}}}).root,Ka=Bv.root,a_=0,B_=[],t||Cs()},D_=function(t,e,r){var a=t,s=e,h="default",u="default";t==="[*]"&&(a="start"+ ++a_,h="start"),e==="[*]"&&(s="end"+a_,u="end"),Lv(a,h),Lv(s,u),Ka.relations.push({id1:a,id2:s,title:Xn.sanitizeText(r,Vt())})},O_=function(t,e){var r=Ka.states[t],a=e;a[0]===":"&&(a=a.substr(1).trim()),r.descriptions.push(Xn.sanitizeText(a,Vt()))},Cx=0,B_=[],L_="TB";const aa={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().state},addState:Lv,clear:N_,getState:function(t){return Ka.states[t]},getStates:function(){return Ka.states},getRelations:function(){return Ka.relations},getClasses:function(){return B_},getDirection:function(){return L_},addRelation:D_,getDividerId:function(){return"divider-id-"+ ++Cx},setDirection:function(t){L_=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){v.info("Documents = ",Bv)},getRootDoc:function(){return Ov},setRootDoc:function(t){v.info("Setting root doc",t),Ov=t},getRootDocV2:function(){return Ex({id:"root"},{id:"root",doc:Ov},!0),{id:"root",doc:Ov}},extract:function(t){var e;e=t.doc?t.doc:t,v.info(e),N_(!0),v.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&Lv(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&D_(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()},getAccTitle:ta,setAccTitle:Ua,getAccDescription:wo,setAccDescription:xo};var Sx={};function I_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var rs,Ax=function(t,e,r){var a,s=Vt().state.padding,h=2*Vt().state.padding,u=t.node().getBBox(),p=u.width,_=u.x,b=t.append("text").attr("x",0).attr("y",Vt().state.titleShift).attr("font-size",Vt().state.fontSize).attr("class","state-title").text(e.id),M=b.node().getBBox().width+h,I=Math.max(M,p);I===p&&(I+=h);var R=t.node().getBBox();e.doc,a=_-s,M>p&&(a=(p-I)/2+s),Math.abs(_-R.x)<s&&M>p&&(a=_-(M-p)/2);var $=1-Vt().state.textHeight;return t.insert("rect",":first-child").attr("x",a).attr("y",$).attr("class",r?"alt-composit":"composit").attr("width",I).attr("height",R.height+Vt().state.textHeight+Vt().state.titleShift+1).attr("rx","0"),b.attr("x",a+s),M<=p&&b.attr("x",_+(I-h)/2-M/2+s),t.insert("rect",":first-child").attr("x",a).attr("y",Vt().state.titleShift-Vt().state.textHeight-Vt().state.padding).attr("width",I).attr("height",3*Vt().state.textHeight).attr("rx",Vt().state.radius),t.insert("rect",":first-child").attr("x",a).attr("y",Vt().state.titleShift-Vt().state.textHeight-Vt().state.padding).attr("width",I).attr("height",R.height+3+2*Vt().state.textHeight).attr("rx",Vt().state.radius),t},Mx=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",Vt().state.padding),a=function(u,p,_,b){var M=0,I=b.append("text");I.style("text-anchor","start"),I.attr("class","noteText");var R,$=u.replace(/\r\n/g,"<br/>"),ht=($=$.replace(/\n/g,"<br/>")).split(Xn.lineBreakRegex),it=1.25*Vt().state.noteMargin,pt=function(mt,Wt){var re=typeof Symbol!="undefined"&&mt[Symbol.iterator]||mt["@@iterator"];if(!re){if(Array.isArray(mt)||(re=function(vt,ct){if(vt){if(typeof vt=="string")return I_(vt,ct);var Mt=Object.prototype.toString.call(vt).slice(8,-1);return Mt==="Object"&&vt.constructor&&(Mt=vt.constructor.name),Mt==="Map"||Mt==="Set"?Array.from(vt):Mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mt)?I_(vt,ct):void 0}}(mt))||Wt&&mt&&typeof mt.length=="number"){re&&(mt=re);var Rt=0,Jt=function(){};return{s:Jt,n:function(){return Rt>=mt.length?{done:!0}:{done:!1,value:mt[Rt++]}},e:function(vt){throw vt},f:Jt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te,Et=!0,wt=!1;return{s:function(){re=re.call(mt)},n:function(){var vt=re.next();return Et=vt.done,vt},e:function(vt){wt=!0,te=vt},f:function(){try{Et||re.return==null||re.return()}finally{if(wt)throw te}}}}(ht);try{for(pt.s();!(R=pt.n()).done;){var ft=R.value.trim();if(ft.length>0){var xt=I.append("tspan");xt.text(ft),it===0&&(it+=xt.node().getBBox().height),M+=it,xt.attr("x",0+Vt().state.noteMargin),xt.attr("y",0+M+1.25*Vt().state.noteMargin)}}}catch(mt){pt.e(mt)}finally{pt.f()}return{textWidth:I.node().getBBox().width,textHeight:M}}(t,0,0,e.append("g")),s=a.textWidth,h=a.textHeight;return r.attr("height",h+2*Vt().state.noteMargin),r.attr("width",s+2*Vt().state.noteMargin),r},F_=function(t,e){var r=e.id,a={id:r,label:e.id,width:0,height:0},s=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&function(p){p.append("circle").attr("class","start-state").attr("r",Vt().state.sizeUnit).attr("cx",Vt().state.padding+Vt().state.sizeUnit).attr("cy",Vt().state.padding+Vt().state.sizeUnit)}(s),e.type==="end"&&function(p){p.append("circle").attr("class","end-state-outer").attr("r",Vt().state.sizeUnit+Vt().state.miniPadding).attr("cx",Vt().state.padding+Vt().state.sizeUnit+Vt().state.miniPadding).attr("cy",Vt().state.padding+Vt().state.sizeUnit+Vt().state.miniPadding),p.append("circle").attr("class","end-state-inner").attr("r",Vt().state.sizeUnit).attr("cx",Vt().state.padding+Vt().state.sizeUnit+2).attr("cy",Vt().state.padding+Vt().state.sizeUnit+2)}(s),e.type!=="fork"&&e.type!=="join"||function(p,_){var b=Vt().state.forkWidth,M=Vt().state.forkHeight;if(_.parentId){var I=b;b=M,M=I}p.append("rect").style("stroke","black").style("fill","black").attr("width",b).attr("height",M).attr("x",Vt().state.padding).attr("y",Vt().state.padding)}(s,e),e.type==="note"&&Mx(e.note.text,s),e.type==="divider"&&function(p){p.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Vt().state.textHeight).attr("class","divider").attr("x2",2*Vt().state.textHeight).attr("y1",0).attr("y2",0)}(s),e.type==="default"&&e.descriptions.length===0&&function(p,_){var b=p.append("text").attr("x",2*Vt().state.padding).attr("y",Vt().state.textHeight+2*Vt().state.padding).attr("font-size",Vt().state.fontSize).attr("class","state-title").text(_.id).node().getBBox();p.insert("rect",":first-child").attr("x",Vt().state.padding).attr("y",Vt().state.padding).attr("width",b.width+2*Vt().state.padding).attr("height",b.height+2*Vt().state.padding).attr("rx",Vt().state.radius)}(s,e),e.type==="default"&&e.descriptions.length>0&&function(p,_){var b=p.append("text").attr("x",2*Vt().state.padding).attr("y",Vt().state.textHeight+1.3*Vt().state.padding).attr("font-size",Vt().state.fontSize).attr("class","state-title").text(_.descriptions[0]).node().getBBox(),M=b.height,I=p.append("text").attr("x",Vt().state.padding).attr("y",M+.4*Vt().state.padding+Vt().state.dividerMargin+Vt().state.textHeight).attr("class","state-description"),R=!0,$=!0;_.descriptions.forEach(function(ft){R||(function(xt,mt,Wt){var re=xt.append("tspan").attr("x",2*Vt().state.padding).text(mt);Wt||re.attr("dy",Vt().state.textHeight)}(I,ft,$),$=!1),R=!1});var ht=p.append("line").attr("x1",Vt().state.padding).attr("y1",Vt().state.padding+M+Vt().state.dividerMargin/2).attr("y2",Vt().state.padding+M+Vt().state.dividerMargin/2).attr("class","descr-divider"),it=I.node().getBBox(),pt=Math.max(it.width,b.width);ht.attr("x2",pt+3*Vt().state.padding),p.insert("rect",":first-child").attr("x",Vt().state.padding).attr("y",Vt().state.padding).attr("width",pt+2*Vt().state.padding).attr("height",it.height+M+2*Vt().state.padding).attr("rx",Vt().state.radius)}(s,e);var h,u=s.node().getBBox();return a.width=u.width+2*Vt().state.padding,a.height=u.height+2*Vt().state.padding,h=a,Sx[r]=h,a},R_=0;gy.parser.yy=aa;var o_={},Nx=function t(e,r,a,s,h,u){var p,_=new(Bi()).Graph({compound:!0,multigraph:!0}),b=!0;for(p=0;p<e.length;p++)if(e[p].stmt==="relation"){b=!1;break}a?_.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:b?1:rs.edgeLengthFactor,nodeSep:b?1:50,isMultiGraph:!0}):_.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:b?1:rs.edgeLengthFactor,nodeSep:b?1:50,ranker:"tight-tree",isMultiGraph:!0}),_.setDefaultEdgeLabel(function(){return{}}),aa.extract(e);for(var M=aa.getStates(),I=aa.getRelations(),R=Object.keys(M),$=0;$<R.length;$++){var ht=M[R[$]];a&&(ht.parentId=a);var it=void 0;if(ht.doc){var pt=r.append("g").attr("id",ht.id).attr("class","stateGroup");it=t(ht.doc,pt,ht.id,!s,h,u);var ft=(pt=Ax(pt,ht,s)).node().getBBox();it.width=ft.width,it.height=ft.height+rs.padding/2,o_[ht.id]={y:rs.compositTitleSize}}else it=F_(r,ht);if(ht.note){var xt={descriptions:[],id:ht.id+"-note",note:ht.note,type:"note"},mt=F_(r,xt);ht.note.position==="left of"?(_.setNode(it.id+"-note",mt),_.setNode(it.id,it)):(_.setNode(it.id,it),_.setNode(it.id+"-note",mt)),_.setParent(it.id,it.id+"-group"),_.setParent(it.id+"-note",it.id+"-group")}else _.setNode(it.id,it)}v.debug("Count=",_.nodeCount(),_);var Wt=0;I.forEach(function(te){var Et;Wt++,v.debug("Setting edge",te),_.setEdge(te.id1,te.id2,{relation:te,width:(Et=te.title,Et?Et.length*rs.fontSizeFactor:1),height:rs.labelHeight*Xn.getRows(te.title).length,labelpos:"c"},"id"+Wt)}),Wu().layout(_),v.debug("Graph after layout",_.nodes());var re=r.node();_.nodes().forEach(function(te){te!==void 0&&_.node(te)!==void 0?(v.warn("Node "+te+": "+JSON.stringify(_.node(te))),h.select("#"+re.id+" #"+te).attr("transform","translate("+(_.node(te).x-_.node(te).width/2)+","+(_.node(te).y+(o_[te]?o_[te].y:0)-_.node(te).height/2)+" )"),h.select("#"+re.id+" #"+te).attr("data-x-shift",_.node(te).x-_.node(te).width/2),u.querySelectorAll("#"+re.id+" #"+te+" .divider").forEach(function(Et){var wt=Et.parentElement,vt=0,ct=0;wt&&(wt.parentElement&&(vt=wt.parentElement.getBBox().width),ct=parseInt(wt.getAttribute("data-x-shift"),10),Number.isNaN(ct)&&(ct=0)),Et.setAttribute("x1",0-ct+8),Et.setAttribute("x2",vt-ct-8)})):v.debug("No Node "+te+": "+JSON.stringify(_.node(te)))});var Rt=re.getBBox();_.edges().forEach(function(te){te!==void 0&&_.edge(te)!==void 0&&(v.debug("Edge "+te.v+" -> "+te.w+": "+JSON.stringify(_.edge(te))),function(Et,wt,vt){wt.points=wt.points.filter(function(nr){return!Number.isNaN(nr.y)});var ct=wt.points,Mt=Po().x(function(nr){return nr.x}).y(function(nr){return nr.y}).curve(Xr),yt=Et.append("path").attr("d",Mt(ct)).attr("id","edge"+R_).attr("class","transition"),xe="";if(Vt().state.arrowMarkerAbsolute&&(xe=(xe=(xe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),yt.attr("marker-end","url("+xe+"#"+function(nr){switch(nr){case aa.relationType.AGGREGATION:return"aggregation";case aa.relationType.EXTENSION:return"extension";case aa.relationType.COMPOSITION:return"composition";case aa.relationType.DEPENDENCY:return"dependency"}}(aa.relationType.DEPENDENCY)+"End)"),vt.title!==void 0){for(var Te=Et.append("g").attr("class","stateLabel"),Gt=ir.calcLabelPosition(wt.points),ve=Gt.x,le=Gt.y,be=Xn.getRows(vt.title),Fe=0,Ye=[],fn=0,rn=0,Sn=0;Sn<=be.length;Sn++){var er=Te.append("text").attr("text-anchor","middle").text(be[Sn]).attr("x",ve).attr("y",le+Fe),Br=er.node().getBBox();if(fn=Math.max(fn,Br.width),rn=Math.min(rn,Br.x),v.info(Br.x,ve,le+Fe),Fe===0){var _n=er.node().getBBox();Fe=_n.height,v.info("Title height",Fe,le)}Ye.push(er)}var Vr=Fe*be.length;if(be.length>1){var ii=(be.length-1)*Fe*.5;Ye.forEach(function(nr,ki){return nr.attr("y",le+ki*Fe-ii)}),Vr=Fe*be.length}var yi=Te.node().getBBox();Te.insert("rect",":first-child").attr("class","box").attr("x",ve-fn/2-Vt().state.padding/2).attr("y",le-Vr/2-Vt().state.padding/2-3.5).attr("width",fn+Vt().state.padding).attr("height",Vr+Vt().state.padding),v.info(yi)}R_++}(r,_.edge(te),_.edge(te).relation))}),Rt=re.getBBox();var Jt={id:a||"root",label:a||"root",width:0,height:0};return Jt.width=Rt.width+2*rs.padding,Jt.height=Rt.height+2*rs.padding,v.debug("Doc rendered",Jt,_),Jt};const Dx=function(t,e){rs=Vt().state;var r,a=Vt().securityLevel;a==="sandbox"&&(r=ze("#i"+e));var s=ze(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),h=a==="sandbox"?r.nodes()[0].contentDocument:document;gy.parser.yy.clear(),gy.parser.parse(t),v.debug("Rendering diagram "+t);var u=s.select("[id='".concat(e,"']"));u.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(Bi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var p=aa.getRootDoc();Nx(p,u,void 0,!1,s,h);var _=rs.padding,b=u.node().getBBox(),M=b.width+2*_,I=b.height+2*_;ho(u,I,1.75*M,rs.useMaxWidth),u.attr("viewBox","".concat(b.x-rs.padding," ").concat(b.y-rs.padding," ")+M+" "+I),Qa(gy.parser.yy,u,e)};var Ox={},Or={},Iv=function(t,e,r,a){if(r.id!=="root"){var s="rect";r.start===!0&&(s="start"),r.start===!1&&(s="end"),r.type!=="default"&&(s=r.type),Or[r.id]||(Or[r.id]={id:r.id,shape:s,description:Xn.sanitizeText(r.id,Vt()),classes:"statediagram-state"}),r.description&&(Array.isArray(Or[r.id].description)?(Or[r.id].shape="rectWithTitle",Or[r.id].description.push(r.description)):Or[r.id].description.length>0?(Or[r.id].shape="rectWithTitle",Or[r.id].description===r.id?Or[r.id].description=[r.description]:Or[r.id].description=[Or[r.id].description,r.description]):(Or[r.id].shape="rect",Or[r.id].description=r.description),Or[r.id].description=Xn.sanitizeTextOrArray(Or[r.id].description,Vt())),Or[r.id].description.length===1&&Or[r.id].shape==="rectWithTitle"&&(Or[r.id].shape="rect"),!Or[r.id].type&&r.doc&&(v.info("Setting cluster for ",r.id,s_(r)),Or[r.id].type="group",Or[r.id].dir=s_(r),Or[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",Or[r.id].classes=Or[r.id].classes+" "+(a?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var h={labelStyle:"",shape:Or[r.id].shape,labelText:Or[r.id].description,classes:Or[r.id].classes,style:"",id:r.id,dir:Or[r.id].dir,domId:"state-"+r.id+"-"+ih,type:Or[r.id].type,padding:15};if(r.note){var u={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+ih,domId:"state-"+r.id+"----note-"+ih,type:Or[r.id].type,padding:15},p={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:Or[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+ih,type:"group",padding:0};ih++,t.setNode(r.id+"----parent",p),t.setNode(u.id,u),t.setNode(r.id,h),t.setParent(r.id,r.id+"----parent"),t.setParent(u.id,r.id+"----parent");var _=r.id,b=u.id;r.note.position==="left of"&&(_=u.id,b=r.id),t.setEdge(_,b,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(r.id,h)}e&&e.id!=="root"&&(v.trace("Setting node ",r.id," to be child of its parent ",e.id),t.setParent(r.id,e.id)),r.doc&&(v.trace("Adding nodes children "),Bx(t,r,r.doc,!a))},ih=0,Bx=function(t,e,r,a){v.trace("items",r),r.forEach(function(s){if(s.stmt==="state"||s.stmt==="default")Iv(t,e,s,a);else if(s.stmt==="relation"){Iv(t,e,s.state1,a),Iv(t,e,s.state2,a);var h={id:"edge"+ih,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:Xn.sanitizeText(s.description,Vt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},u=s.state1.id,p=s.state2.id;t.setEdge(u,p,h,ih),ih++}})},s_=function(t,e){var r=e||"TB";if(t.doc)for(var a=0;a<t.doc.length;a++){var s=t.doc[a];s.stmt==="dir"&&(r=s.value)}return r};const P_=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ox[e[r]]=t[e[r]]};function Y_(t){return function(e){if(Array.isArray(e))return c_(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return c_(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c_(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var Pd="",l_=[],Yd=[],zd=[],z_=function(){for(var t=!0,e=0;e<zd.length;e++)zd[e].processed,t=t&&zd[e].processed;return t};const j_={parseDirective:function(t,e,r){Ni.parseDirective(this,t,e,r)},getConfig:function(){return Vt().journey},clear:function(){l_.length=0,Yd.length=0,Pd="",zd.length=0,Cs()},setDiagramTitle:C1,getDiagramTitle:ju,setAccTitle:Ua,getAccTitle:ta,setAccDescription:xo,getAccDescription:wo,addSection:function(t){Pd=t,l_.push(t)},getSections:function(){return l_},getTasks:function(){for(var t=z_(),e=0;!t&&e<100;)t=z_(),e++;return Yd.push.apply(Yd,zd),Yd},addTask:function(t,e){var r=e.substr(1).split(":"),a=0,s=[];r.length===1?(a=Number(r[0]),s=[]):(a=Number(r[0]),s=r[1].split(","));var h=s.map(function(p){return p.trim()}),u={section:Pd,type:Pd,people:h,task:t,score:a};zd.push(u)},addTaskOrg:function(t){var e={section:Pd,type:Pd,description:t,task:t,classes:[]};Yd.push(e)},getActors:function(){return t=[],Yd.forEach(function(e){e.people&&t.push.apply(t,Y_(e.people))}),Y_(new Set(t)).sort();var t}};var ah=y(9763),Lx=y.n(ah),U_=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},q_=function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},W_=-1,$_=function(){function t(s,h,u,p,_,b,M,I){a(h.append("text").attr("x",u+_/2).attr("y",p+b/2+5).style("font-color",I).style("text-anchor","middle").text(s),M)}function e(s,h,u,p,_,b,M,I,R){for(var $=I.taskFontSize,ht=I.taskFontFamily,it=s.split(/<br\s*\/?>/gi),pt=0;pt<it.length;pt++){var ft=pt*$-$*(it.length-1)/2,xt=h.append("text").attr("x",u+_/2).attr("y",p).attr("fill",R).style("text-anchor","middle").style("font-size",$).style("font-family",ht);xt.append("tspan").attr("x",u+_/2).attr("dy",ft).text(it[pt]),xt.attr("y",p+b/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(xt,M)}}function r(s,h,u,p,_,b,M,I){var R=h.append("switch"),$=R.append("foreignObject").attr("x",u).attr("y",p).attr("width",_).attr("height",b).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");$.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,R,u,p,_,b,M,I),a($,M)}function a(s,h){for(var u in h)u in h&&s.attr(u,h[u])}return function(s){return s.textPlacement==="fo"?r:s.textPlacement==="old"?t:e}}();const Ix=q_,Fx=function(t,e,r){var a=t.append("g"),s={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=r.width,s.height=r.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U_(a,s),$_(r)(e.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},r,e.colour)},Rx=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class!==void 0&&a.attr("class",e.class);var s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(r),a},Px=function(t,e,r){var a,s,h,u=e.x+r.width/2,p=t.append("g");W_++,p.append("line").attr("id","task"+W_).attr("x1",u).attr("y1",e.y).attr("x2",u).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),a=p,s={cx:u,cy:300+30*(5-e.score),score:e.score},a.append("circle").attr("cx",s.cx).attr("cy",s.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(h=a.append("g")).append("circle").attr("cx",s.cx-5).attr("cy",s.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),h.append("circle").attr("cx",s.cx+5).attr("cy",s.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.score>3?function(M){var I=Gp().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);M.append("path").attr("class","mouth").attr("d",I).attr("transform","translate("+s.cx+","+(s.cy+2)+")")}(h):s.score<3?function(M){var I=Gp().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);M.append("path").attr("class","mouth").attr("d",I).attr("transform","translate("+s.cx+","+(s.cy+7)+")")}(h):function(M){M.append("line").attr("class","mouth").attr("stroke",2).attr("x1",s.cx-5).attr("y1",s.cy+7).attr("x2",s.cx+5).attr("y2",s.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(h);var _={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};_.x=e.x,_.y=e.y,_.fill=e.fill,_.width=r.width,_.height=r.height,_.class="task task-type-"+e.num,_.rx=3,_.ry=3,U_(p,_);var b=e.x+14;e.people.forEach(function(M){var I=e.actors[M].color,R={cx:b,cy:e.y,r:7,fill:I,stroke:"#000",title:M,pos:e.actors[M].position};q_(p,R),b+=10}),$_(r)(e.task,p,_.x,_.y,_.width,_.height,{class:"task"},r,e.colour)};ah.parser.yy=j_;var Ul={},u_=Vt().journey,V1=Vt().journey.leftMargin,Bs={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var s=Vt().journey,h=this,u=0;this.sequenceItems.forEach(function(p){u++;var _=h.sequenceItems.length-u+1;h.updateVal(p,"starty",e-_*s.boxMargin,Math.min),h.updateVal(p,"stopy",a+_*s.boxMargin,Math.max),h.updateVal(Bs.data,"startx",t-_*s.boxMargin,Math.min),h.updateVal(Bs.data,"stopx",r+_*s.boxMargin,Math.max),h.updateVal(p,"startx",t-_*s.boxMargin,Math.min),h.updateVal(p,"stopx",r+_*s.boxMargin,Math.max),h.updateVal(Bs.data,"starty",e-_*s.boxMargin,Math.min),h.updateVal(Bs.data,"stopy",a+_*s.boxMargin,Math.max)})},insert:function(t,e,r,a){var s=Math.min(t,r),h=Math.max(t,r),u=Math.min(e,a),p=Math.max(e,a);this.updateVal(Bs.data,"startx",s,Math.min),this.updateVal(Bs.data,"starty",u,Math.min),this.updateVal(Bs.data,"stopx",h,Math.max),this.updateVal(Bs.data,"stopy",p,Math.max),this.updateBounds(s,u,h,p)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},h_=u_.sectionFills,H_=u_.sectionColours;const V_=function(t){Object.keys(t).forEach(function(e){u_[e]=t[e]})},Yx=function(t,e){var r=Vt().journey;ah.parser.yy.clear(),ah.parser.parse(t+`
`);var a,s=Vt().securityLevel;s==="sandbox"&&(a=ze("#i"+e));var h=ze(s==="sandbox"?a.nodes()[0].contentDocument.body:"body");s==="sandbox"&&a.nodes()[0].contentDocument,Bs.init();var u=h.select("#"+e);u.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),u.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var p=ah.parser.yy.getTasks(),_=ah.parser.yy.getDiagramTitle(),b=ah.parser.yy.getActors();for(var M in Ul)delete Ul[M];var I=0;b.forEach(function(pt){Ul[pt]={color:r.actorColours[I%r.actorColours.length],position:I},I++}),function(pt){var ft=Vt().journey,xt=60;Object.keys(Ul).forEach(function(mt){var Wt=Ul[mt].color,re={cx:20,cy:xt,r:7,fill:Wt,stroke:"#000",pos:Ul[mt].position};Ix(pt,re);var Rt={x:40,y:xt+7,fill:"#666",text:mt,textMargin:5|ft.boxTextMargin};Rx(pt,Rt),xt+=20})}(u),Bs.insert(0,0,V1,50*Object.keys(Ul).length),function(pt,ft,xt){for(var mt=Vt().journey,Wt="",re=xt+(2*mt.height+mt.diagramMarginY),Rt=0,Jt="#CCC",te="black",Et=0,wt=0;wt<ft.length;wt++){var vt=ft[wt];if(Wt!==vt.section){Jt=h_[Rt%h_.length],Et=Rt%h_.length,te=H_[Rt%H_.length];var ct={x:wt*mt.taskMargin+wt*mt.width+V1,y:50,text:vt.section,fill:Jt,num:Et,colour:te};Fx(pt,ct,mt),Wt=vt.section,Rt++}var Mt=vt.people.reduce(function(yt,xe){return Ul[xe]&&(yt[xe]=Ul[xe]),yt},{});vt.x=wt*mt.taskMargin+wt*mt.width+V1,vt.y=re,vt.width=mt.diagramMarginX,vt.height=mt.diagramMarginY,vt.colour=te,vt.fill=Jt,vt.num=Et,vt.actors=Mt,Px(pt,vt,mt),Bs.insert(vt.x,vt.y,vt.x+vt.width+mt.taskMargin,450)}}(u,p,0);var R=Bs.getBounds();_&&u.append("text").text(_).attr("x",V1).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var $=R.stopy-R.starty+2*r.diagramMarginY,ht=V1+R.stopx+2*r.diagramMarginX;ho(u,$,ht,r.useMaxWidth),u.append("line").attr("x1",V1).attr("y1",4*r.height).attr("x2",ht-V1-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var it=_?70:0;u.attr("viewBox","".concat(R.startx," -25 ").concat(ht," ").concat($+it)),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",$+it+25),Qa(ah.parser.yy,u,e)};var zx={};const f_=function(t){return`g.classGroup text {
fill: `.concat(t.nodeBorder,`;
fill: `).concat(t.classText,`;
stroke: none;
font-family: `).concat(t.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(t.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(t.mainBkg,`;
}
.label text {
fill: `).concat(t.classText,`;
}
.edgeLabel .label span {
background: `).concat(t.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(t.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(t.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},G_=function(t){return`.label {
font-family: `.concat(t.fontFamily,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.cluster-label text {
fill: `).concat(t.titleColor,`;
}
.cluster-label span {
color: `).concat(t.titleColor,`;
}
.label text,span {
fill: `).concat(t.nodeTextColor||t.textColor,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(t.edgeLabelBackground,`;
fill: `).concat(t.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(t.clusterBkg,`;
stroke: `).concat(t.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
.cluster span {
color: `).concat(t.titleColor,`;
}
/* .cluster div {
color: `).concat(t.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(t.fontFamily,`;
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},X_=function(t){return`
defs #statediagram-barbEnd {
fill: `.concat(t.transitionColor,`;
stroke: `).concat(t.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(t.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(t.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(t.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(t.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(t.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
text {
fill: `).concat(t.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(t.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(t.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(t.innerEndBackground,`;
stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(t.compositeBackground||t.background,`;
// stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(t.stateBkg||t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(t.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(t.compositeTitleBackground,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(t.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(t.compositeBackground||t.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(t.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(t.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(t.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(t.lineColor,`;
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
`)};var jx={flowchart:G_,"flowchart-v2":G_,sequence:function(t){return`.actor {
stroke: `.concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(t.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(t.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(t.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(t.signalColor,`;
}
#arrowhead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.sequenceNumber {
fill: `).concat(t.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(t.signalColor,`;
}
#crosshead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.messageText {
fill: `).concat(t.signalTextColor,`;
stroke: `).concat(t.signalTextColor,`;
}
.labelBox {
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(t.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(t.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(t.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation1 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation2 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(t.actorBkg,`;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(t){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(t.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(t.sectionBkgColor,`;
}
.section2 {
fill: `).concat(t.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(t.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: `).concat(t.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(t.todayLineColor,`;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: `).concat(t.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(t.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(t.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(t.taskBkgColor,`;
stroke: `).concat(t.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(t.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(t.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(t.activeTaskBkgColor,`;
stroke: `).concat(t.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(t.doneTaskBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(t.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:f_,"classDiagram-v2":f_,class:f_,stateDiagram:X_,state:X_,gitGraph:function(t){return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`.concat([0,1,2,3,4,5,6,7].map(function(e){return`
.branch-label`.concat(e," { fill: ").concat(t["gitBranchLabel"+e],`; }
.commit`).concat(e," { stroke: ").concat(t["git"+e],"; fill: ").concat(t["git"+e],`; }
.commit-highlight`).concat(e," { stroke: ").concat(t["gitInv"+e],"; fill: ").concat(t["gitInv"+e],`; }
.label`).concat(e," { fill: ").concat(t["git"+e],`; }
.arrow`).concat(e," { stroke: ").concat(t["git"+e],`; }
`)}).join(`
`),`
.branch {
stroke-width: 1;
stroke: `).concat(t.lineColor,`;
stroke-dasharray: 2;
}
.commit-label { font-size: 10px; fill: `).concat(t.commitLabelColor,`;}
.commit-label-bkg { font-size: 10px; fill: `).concat(t.commitLabelBackground,`; opacity: 0.5; }
.tag-label { font-size: 10px; fill: `).concat(t.tagLabelColor,`;}
.tag-label-bkg { fill: `).concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,`; }
.tag-hole { fill: `).concat(t.textColor,`; }
.commit-merge {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
}
.commit-reverse {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
}
`)},info:function(){return""},pie:function(t){return`
.pieCircle{
stroke: `.concat(t.pieStrokeColor,`;
stroke-width : `).concat(t.pieStrokeWidth,`;
opacity : `).concat(t.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(t.pieTitleTextSize,`;
fill: `).concat(t.pieTitleTextColor,`;
font-family: `).concat(t.fontFamily,`;
}
.slice {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.pieSectionTextColor,`;
font-size:`).concat(t.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(t.pieLegendTextColor,`;
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.pieLegendTextSize,`;
}
`)},er:function(t){return`
.entityBox {
fill: `.concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(t.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(t.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(t.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(t.lineColor,`;
}
`)},journey:function(t){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(t.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(t.textColor,`
}
.legend {
fill: `).concat(t.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(t.textColor,`
}
.face {
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
}
.actor-0 {
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
}
.actor-1 {
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
}
.actor-2 {
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
}
.actor-3 {
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
}
.actor-4 {
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
}
.actor-5 {
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
}
}
`)},requirement:function(t){return`
marker {
fill: `.concat(t.relationColor,`;
stroke: `).concat(t.relationColor,`;
}
marker.cross {
stroke: `).concat(t.lineColor,`;
}
svg {
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.fontSize,`;
}
.reqBox {
fill: `).concat(t.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(t.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(t.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(t.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(t.relationLabelColor,`;
}
`)},c4:function(t){return`.person {
stroke: `.concat(t.personBorder,`;
fill: `).concat(t.personBkg,`;
}
`)}};function d_(t){return d_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d_(t)}var Z_=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},yy={};function Q_(t){var e;ey(t.flowchart),iv(t.flowchart),t.sequenceDiagram!==void 0&&py.setConf($i(t.sequence,t.sequenceDiagram)),py.setConf(t.sequence),pv(t.gantt),$4(t.class),t.state,P_(t.state),Rr(t.class),Vg(t.er),V_(t.journey),g(t.requirement),e=t.class,Object.keys(e).forEach(function(r){zx[r]=e[r]})}var Ux=Object.freeze({render:function(t,e,r,a){T1();var s=e.replace(/\r\n?/g,`
`),h=ir.detectInit(s);h&&(Vf(h),Cg(h));var u=Vt();v.debug(u),e.length>u.maxTextSize&&(s="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var p=ze("body");if(a!==void 0){if(u.securityLevel==="sandbox"){var _=ze("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(p=ze(_.nodes()[0].contentDocument.body)).node().style.margin=0}if(a.innerHTML="",u.securityLevel==="sandbox"){var b=ze(a).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(p=ze(b.nodes()[0].contentDocument.body)).node().style.margin=0}else p=ze(a);p.append("div").attr("id","d"+t).attr("style","font-family: "+u.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var M,I=document.getElementById(t);if(I&&I.remove(),(M=u.securityLevel!=="sandbox"?document.querySelector("#d"+t):document.querySelector("#i"+t))&&M.remove(),u.securityLevel==="sandbox"){var R=ze("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(p=ze(R.nodes()[0].contentDocument.body)).node().style.margin=0}else p=ze("body");p.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}s=s.replace(/style.*:\S*#.*;/g,function(ct){return ct.substring(0,ct.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ct){return ct.substring(0,ct.length-1)}).replace(/#\w+;/g,function(ct){var Mt=ct.substring(1,ct.length-1);return/^\+?\d+$/.test(Mt)?"\uFB02\xB0\xB0"+Mt+"\xB6\xDF":"\uFB02\xB0"+Mt+"\xB6\xDF"});var $=p.select("#d"+t).node(),ht=ir.detectType(s,u),it=$.firstChild,pt=it.firstChild,ft="";if(u.themeCSS!==void 0&&(ft+=`
`.concat(u.themeCSS)),u.fontFamily!==void 0&&(ft+=`
:root { --mermaid-font-family: `.concat(u.fontFamily,"}")),u.altFontFamily!==void 0&&(ft+=`
:root { --mermaid-alt-font-family: `.concat(u.altFontFamily,"}")),ht==="flowchart"||ht==="flowchart-v2"||ht==="graph"){var xt=function(ct){v.info("Extracting classes"),cr.clear();try{var Mt=kd().parser;return Mt.yy=cr,Mt.parse(ct),cr.getClasses()}catch{return}}(s),mt=u.htmlLabels||u.flowchart.htmlLabels;for(var Wt in xt)mt?(ft+=`
.`.concat(Wt," > * { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(Wt," span { ").concat(xt[Wt].styles.join(" !important; ")," !important; }")):(ft+=`
.`.concat(Wt," path { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(Wt," rect { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(Wt," polygon { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(Wt," ellipse { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(Wt," circle { ").concat(xt[Wt].styles.join(" !important; ")," !important; }"),xt[Wt].textStyles&&(ft+=`
.`.concat(Wt," tspan { ").concat(xt[Wt].textStyles.join(" !important; ")," !important; }")))}var re=function(ct,Mt){return ag(b1("".concat(ct,"{").concat(Mt,"}")),Kb)}("#".concat(t),function(ct,Mt,yt){return` {
font-family: `.concat(yt.fontFamily,`;
font-size: `).concat(yt.fontSize,`;
fill: `).concat(yt.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(yt.errorBkgColor,`;
}
.error-text {
fill: `).concat(yt.errorTextColor,`;
stroke: `).concat(yt.errorTextColor,`;
}
.edge-thickness-normal {
stroke-width: 2px;
}
.edge-thickness-thick {
stroke-width: 3.5px
}
.edge-pattern-solid {
stroke-dasharray: 0;
}
.edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
.marker {
fill: `).concat(yt.lineColor,`;
stroke: `).concat(yt.lineColor,`;
}
.marker.cross {
stroke: `).concat(yt.lineColor,`;
}
svg {
font-family: `).concat(yt.fontFamily,`;
font-size: `).concat(yt.fontSize,`;
}
`).concat(jx[ct](yt),`
`).concat(Mt,`
`)}(ht,ft,u.themeVariables)),Rt=document.createElement("style");Rt.innerHTML="#".concat(t," ")+re,it.insertBefore(Rt,pt);try{switch(ht){case"c4":Y4.setConf(u.c4),Y4.draw(s,t);break;case"gitGraph":Q6(s,t,!1);break;case"flowchart":u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,ey(u.flowchart),V6(s,t);break;case"flowchart-v2":u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,iv(u.flowchart),av(s,t);break;case"sequence":u.sequence.arrowMarkerAbsolute=u.arrowMarkerAbsolute,u.sequenceDiagram?(py.setConf(Object.assign(u.sequence,u.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):py.setConf(u.sequence),py.draw(s,t);break;case"gantt":u.gantt.arrowMarkerAbsolute=u.arrowMarkerAbsolute,pv(u.gantt),X6(s,t);break;case"class":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,$4(u.class),C6(s,t);break;case"classDiagram":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,function(ct){Object.keys(ct).forEach(function(Mt){Hg[Mt]=ct[Mt]})}(u.class),function(ct,Mt){v.info("Drawing class - ",Mt),Zo.clear(),qc.parser.parse(ct);var yt=Vt().flowchart,xe=Vt().securityLevel;v.info("config:",yt);var Te,Gt=yt.nodeSpacing||50,ve=yt.rankSpacing||50,le=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Zo.getDirection(),nodesep:Gt,ranksep:ve,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),be=Zo.getClasses(),Fe=Zo.getRelations();v.info(Fe),function(yi,nr){var ki=Object.keys(yi);v.info("keys:",ki),v.info(yi),ki.forEach(function(ar){var Rn=yi[ar],Aa="";Rn.cssClasses.length>0&&(Aa=Aa+" "+Rn.cssClasses.join(" "));var Mr,Ao,G1={labelStyle:""},my=Rn.text!==void 0?Rn.text:Rn.id;Rn.type,Ao="class_box",nr.setNode(Rn.id,{labelStyle:G1.labelStyle,shape:Ao,labelText:(Mr=my,Xn.sanitizeText(Mr,Vt())),classData:Rn,rx:0,ry:0,class:Aa,style:G1.style,id:Rn.id,domId:Rn.domId,haveCallback:Rn.haveCallback,link:Rn.link,width:Rn.type==="group"?500:void 0,type:Rn.type,padding:Vt().flowchart.padding}),v.info("setNode",{labelStyle:G1.labelStyle,shape:Ao,labelText:my,rx:0,ry:0,class:Aa,style:G1.style,id:Rn.id,width:Rn.type==="group"?500:void 0,type:Rn.type,padding:Vt().flowchart.padding})})}(be,le),function(yi,nr){var ki=0;yi.forEach(function(ar){ki++;var Rn={classes:"relation"};Rn.pattern=ar.relation.lineType==1?"dashed":"solid",Rn.id="id"+ki,ar.type==="arrow_open"?Rn.arrowhead="none":Rn.arrowhead="normal",v.info(Rn,ar),Rn.startLabelRight=ar.relationTitle1==="none"?"":ar.relationTitle1,Rn.endLabelLeft=ar.relationTitle2==="none"?"":ar.relationTitle2,Rn.arrowTypeStart=O1(ar.relation.type1),Rn.arrowTypeEnd=O1(ar.relation.type2);var Aa="",Mr="";if(ar.style!==void 0){var Ao=ic(ar.style);Aa=Ao.style,Mr=Ao.labelStyle}else Aa="fill:none";Rn.style=Aa,Rn.labelStyle=Mr,ar.interpolate!==void 0?Rn.curve=Ts(ar.interpolate,mo):yi.defaultInterpolate!==void 0?Rn.curve=Ts(yi.defaultInterpolate,mo):Rn.curve=Ts(Hg.curve,mo),ar.text=ar.title,ar.text===void 0?ar.style!==void 0&&(Rn.arrowheadStyle="fill: #333"):(Rn.arrowheadStyle="fill: #333",Rn.labelpos="c",Vt().flowchart.htmlLabels?(Rn.labelType="html",Rn.label='<span class="edgeLabel">'+ar.text+"</span>"):(Rn.labelType="text",Rn.label=ar.text.replace(Xn.lineBreakRegex,`
`),ar.style===void 0&&(Rn.style=Rn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Rn.labelStyle=Rn.labelStyle.replace("color:","fill:"))),nr.setEdge(ar.id1,ar.id2,Rn,ki)})}(Fe,le),xe==="sandbox"&&(Te=ze("#i"+Mt));var Ye=ze(xe==="sandbox"?Te.nodes()[0].contentDocument.body:"body"),fn=Ye.select('[id="'.concat(Mt,'"]'));fn.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var rn=Ye.select("#"+Mt+" g");if($g(rn,le,["aggregation","extension","composition","dependency"],"classDiagram",Mt),Hf(le,fn,yt.diagramPadding,yt.useMaxWidth),!yt.htmlLabels)for(var Sn=xe==="sandbox"?Te.nodes()[0].contentDocument:document,er=Sn.querySelectorAll('[id="'+Mt+'"] .edgeLabel .label'),Br=0;Br<er.length;Br++){var _n=er[Br],Vr=_n.getBBox(),ii=Sn.createElementNS("http://www.w3.org/2000/svg","rect");ii.setAttribute("rx",0),ii.setAttribute("ry",0),ii.setAttribute("width",Vr.width),ii.setAttribute("height",Vr.height),_n.insertBefore(ii,_n.firstChild)}Qa(qc.parser.yy,fn,Mt)}(s,t);break;case"state":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,u.state,Dx(s,t);break;case"stateDiagram":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,P_(u.state),function(ct,Mt){v.info("Drawing state diagram (v2)",Mt),aa.clear(),Or={};var yt=M_().parser;yt.yy=aa,yt.parse(ct);var xe=aa.getDirection();xe===void 0&&(xe="LR");var Te=Vt().state,Gt=Te.nodeSpacing||50,ve=Te.rankSpacing||50,le=Vt().securityLevel;v.info(aa.getRootDocV2()),aa.extract(aa.getRootDocV2()),v.info(aa.getRootDocV2());var be,Fe=new(Bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:s_(aa.getRootDocV2()),nodesep:Gt,ranksep:ve,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Iv(Fe,void 0,aa.getRootDocV2(),!0),le==="sandbox"&&(be=ze("#i"+Mt));var Ye=ze(le==="sandbox"?be.nodes()[0].contentDocument.body:"body"),fn=(le==="sandbox"&&be.nodes()[0].contentDocument,Ye.select('[id="'.concat(Mt,'"]'))),rn=Ye.select("#"+Mt+" g");$g(rn,Fe,["barb"],"statediagram",Mt);var Sn=fn.node().getBBox(),er=Sn.width+16,Br=Sn.height+16;fn.attr("class","statediagram");var _n=fn.node().getBBox();ho(fn,Br,1.75*er,Te.useMaxWidth);var Vr="".concat(_n.x-8," ").concat(_n.y-8," ").concat(er," ").concat(Br);v.debug("viewBox ".concat(Vr)),fn.attr("viewBox",Vr);for(var ii=document.querySelectorAll('[id="'+Mt+'"] .edgeLabel .label'),yi=0;yi<ii.length;yi++){var nr=ii[yi],ki=nr.getBBox(),ar=document.createElementNS("http://www.w3.org/2000/svg","rect");ar.setAttribute("rx",0),ar.setAttribute("ry",0),ar.setAttribute("width",ki.width),ar.setAttribute("height",ki.height),nr.insertBefore(ar,nr.firstChild)}Qa(yt.yy,fn,Mt)}(s,t);break;case"info":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Rr(u.class),function(ct,Mt,yt){try{var xe=th().parser;xe.yy=jl,v.debug(`Renering info diagram
`+ct);var Te,Gt=Vt().securityLevel;Gt==="sandbox"&&(Te=ze("#i"+Mt));var ve=ze(Gt==="sandbox"?Te.nodes()[0].contentDocument.body:"body");Gt==="sandbox"&&Te.nodes()[0].contentDocument,xe.parse(ct),v.debug("Parsed info diagram");var le=ve.select("#"+Mt);le.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+yt),le.attr("height",100),le.attr("width",400)}catch(be){v.error("Error while rendering info diagram"),v.error(be.message)}}(s,t,sg);break;case"pie":gc(s,t);break;case"er":Vg(u.er),Q4(s,t);break;case"journey":V_(u.journey),Yx(s,t);break;case"requirement":g(u.requirement),w(s,t)}}catch(ct){throw function(Mt,yt){try{v.debug(`Renering svg for syntax error
`);var xe=ze("#"+Mt),Te=xe.append("g");Te.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),Te.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),Te.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),Te.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),Te.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),Te.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),Te.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Te.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+yt),xe.attr("height",100),xe.attr("width",400),xe.attr("viewBox","768 0 512 512")}catch(Gt){v.error("Error while rendering info diagram"),v.error(Gt.message)}}(t,sg),ct}p.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var Jt=p.select("#d"+t).node().innerHTML;if(v.debug("cnf.arrowMarkerAbsolute",u.arrowMarkerAbsolute),u.arrowMarkerAbsolute&&u.arrowMarkerAbsolute!=="false"||u.arrowMarkerAbsolute==="sandbox"||(Jt=Jt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),Jt=(Jt=Z_(Jt)).replace(/<br>/g,"<br/>"),u.securityLevel==="sandbox"){var te=p.select("#d"+t+" svg").node(),Et="100%";te&&(Et=te.viewBox.baseVal.height+"px"),Jt='<iframe style="width:'.concat("100%",";height:").concat(Et,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+Jt+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
The \u201Ciframe\u201D tag is not supported by your browser.
</iframe>`)}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(/<br\s*\/?>/gi,"<br/>");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<t.length;u++)h(u)},K_=function(){yo.startOnLoad?Ni.getConfig().startOnLoad&&yo.init():yo.startOnLoad===void 0&&(v.debug("In start, no config"),Ni.getConfig().startOnLoad&&yo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){K_()},!1);var yo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:Ni,parse:Ni!=null?Ni.parse:null,render:Ni!=null?Ni.render:null,init:function(){try{J_.apply(void 0,arguments)}catch(t){v.warn("Syntax Error rendering"),v.warn(t),this.parseError&&this.parseError(t)}},initThrowsErrors:J_,initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(yo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(yo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),Ni.initialize(t)},contentLoaded:K_,setParseErrorHandler:function(t){yo.parseError=t}};const Fv=yo},4949:(A,F,y)=>{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<T&&(Y=-Y);var L=Math.abs(y*x*N/D);return d.y<v&&(L=-L),{x:T+Y,y:v+L}}},6808:A=>{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;K<T.length;K++){var tt=T[K],dt=T[K<T.length-1?K+1:0],rt=x(d,v,{x:j+tt.x,y:V+tt.y},{x:j+dt.x,y:V+dt.y});rt&&D.push(rt)}return D.length?(D.length>1&&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<Yt?-1:Xt===Yt?0:1}),D[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",d),d)}},8049:A=>{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<D.length;++V)Y=D[V],j?(L+=Y==="n"?`
`:Y,j=!1):Y==="\\"?j=!0:L+=Y;return L}(T.label).split(`
`),N=0;N<C.length;N++)v.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(C[N]);return x.applyStyle(v,T.labelStyle),v}},1034:(A,F,y)=>{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 n<i?-1:n>i?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<g;){var w=f+g>>>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<g;){var w=f+g>>>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);o<l;)g[o]=i(f,f=n[++o]);return g}function L(n,i){return[n,i]}function j(n,i,o){var l,f,g,w,m=n.length,k=i.length,S=new Array(m*k);for(o==null&&(o=L),l=g=0;l<m;++l)for(w=n[l],f=0;f<k;++f,++g)S[g]=o(w,i[f]);return S}function V(n,i){return i<n?-1:i>n?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(;++w<f;)isNaN(o=K(n[w]))||(k+=(l=o-m)*(o-(m+=l/++g)));else for(;++w<f;)isNaN(o=K(i(n[w],w,n)))||(k+=(l=o-m)*(o-(m+=l/++g)));if(g>1)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<g;)if((o=n[w])!=null&&o>=o)for(l=f=o;++w<g;)(o=n[w])!=null&&(l>o&&(l=o),f<o&&(f=o))}else for(;++w<g;)if((o=i(n[w],w,n))!=null&&o>=o)for(l=f=o;++w<g;)(o=i(n[w],w,n))!=null&&(l>o&&(l=o),f<o&&(f=o));return[l,f]}var Ot=Array.prototype,ot=Ot.slice,_t=Ot.map;function Dt(n){return function(){return n}}function Xt(n){return n}function jt(n,i,o){n=+n,i=+i,o=(f=arguments.length)<2?(i=n,n=0,1):f<3?1:+o;for(var l=-1,f=0|Math.max(0,Math.ceil((i-n)/o)),g=new Array(f);++l<f;)g[l]=n+l*o;return g}var Nt=Math.sqrt(50),Yt=Math.sqrt(10),Bt=Math.sqrt(2);function Tt(n,i,o){var l,f,g,w,m=-1;if(o=+o,(n=+n)==(i=+i)&&o>0)return[n];if((l=i<n)&&(f=n,n=i,i=f),(w=Q(n,i,o))===0||!isFinite(w))return[];if(w>0)for(n=Math.ceil(n/w),i=Math.floor(i/w),g=new Array(f=Math.ceil(i-n+1));++m<f;)g[m]=(n+m)*w;else for(n=Math.floor(n*w),i=Math.ceil(i*w),g=new Array(f=Math.ceil(n-i+1));++m<f;)g[m]=(n-m)/w;return l&&g.reverse(),g}function Q(n,i,o){var l=(i-n)/Math.max(0,o),f=Math.floor(Math.log(l)/Math.LN10),g=l/Math.pow(10,f);return f>=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),i<n?-f:f}function U(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function kt(){var n=Xt,i=rt,o=U;function l(f){var g,w,m=f.length,k=new Array(m);for(g=0;g<m;++g)k[g]=n(f[g],g,f);var S=i(k),B=S[0],z=S[1],O=o(k,B,z);Array.isArray(O)||(O=lt(B,z,O),O=jt(Math.ceil(B/O)*O,z,O));for(var q=O.length;O[0]<=B;)O.shift(),--q;for(;O[q-1]>z;)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<q?O[g]:z;for(g=0;g<m;++g)B<=(w=k[g])&&w<=z&&et[D(O,w,0,q)].push(f[g]);return et}return l.value=function(f){return arguments.length?(n=typeof f=="function"?f:Dt(f),l):n},l.domain=function(f){return arguments.length?(i=typeof f=="function"?f:Dt([f[0],f[1]]),l):i},l.thresholds=function(f){return arguments.length?(o=typeof f=="function"?f:Array.isArray(f)?Dt(ot.call(f)):Dt(f),l):o},l}function W(n,i,o){if(o==null&&(o=K),l=n.length){if((i=+i)<=0||l<2)return+o(n[0],0,n);if(i>=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<f;)if((o=n[g])!=null&&o>=o)for(l=o;++g<f;)(o=n[g])!=null&&o>l&&(l=o)}else for(;++g<f;)if((o=i(n[g],g,n))!=null&&o>=o)for(l=o;++g<f;)(o=i(n[g],g,n))!=null&&o>l&&(l=o);return l}function pe(n,i){var o,l=n.length,f=l,g=-1,w=0;if(i==null)for(;++g<l;)isNaN(o=K(n[g]))?--f:w+=o;else for(;++g<l;)isNaN(o=K(i(n[g],g,n)))?--f:w+=o;if(f)return w/f}function je(n,i){var o,l=n.length,f=-1,g=[];if(i==null)for(;++f<l;)isNaN(o=K(n[f]))||g.push(o);else for(;++f<l;)isNaN(o=K(i(n[f],f,n)))||g.push(o);return W(g.sort(d),.5)}function _e(n){for(var i,o,l,f=n.length,g=-1,w=0;++g<f;)w+=n[g].length;for(o=new Array(w);--f>=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<f;)if((o=n[g])!=null&&o>=o)for(l=o;++g<f;)(o=n[g])!=null&&l>o&&(l=o)}else for(;++g<f;)if((o=i(n[g],g,n))!=null&&o>=o)for(l=o;++g<f;)(o=i(n[g],g,n))!=null&&l>o&&(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<o;)(i(l=n[f],w)<0||i(w,w)!==0)&&(w=l,g=f);return i(w,w)===0?g:void 0}}function Se(n,i,o){for(var l,f,g=(o==null?n.length:o)-(i=i==null?0:+i);g;)f=Math.random()*g--|0,l=n[g+i],n[g+i]=n[f+i],n[f+i]=l;return n}function ge(n,i){var o,l=n.length,f=-1,g=0;if(i==null)for(;++f<l;)(o=+n[f])&&(g+=o);else for(;++f<l;)(o=+i(n[f],f,n))&&(g+=o);return g}function bn(n){if(!(f=n.length))return[];for(var i=-1,o=ue(n,ye),l=new Array(o);++i<o;)for(var f,g=-1,w=l[i]=new Array(f);++g<f;)w[g]=n[g][i];return l}function ye(n){return n.length}function qe(){return bn(arguments)}var It=Array.prototype.slice;function se(n){return n}var ne=1e-6;function Ct(n){return"translate("+(n+.5)+",0)"}function Ee(n){return"translate(0,"+(n+.5)+")"}function X(n){return function(i){return+n(i)}}function Ce(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(o){return+n(o)+i}}function nt(){return!this.__axis}function ke(n,i){var o=[],l=null,f=null,g=6,w=6,m=3,k=n===1||n===4?-1:1,S=n===4||n===2?"x":"y",B=n===1||n===3?Ct:Ee;function z(O){var q=l==null?i.ticks?i.ticks.apply(i,o):i.domain():l,H=f==null?i.tickFormat?i.tickFormat.apply(i,o):se:f,et=Math.max(g,0)+m,J=i.range(),Z=+J[0]+.5,st=+J[J.length-1]+.5,at=(i.bandwidth?Ce:X)(i.copy()),bt=O.selection?O.selection():O,zt=bt.selectAll(".domain").data([null]),Qt=bt.selectAll(".tick").data(q,i).order(),ae=Qt.exit(),Oe=Qt.enter().append("g").attr("class","tick"),$t=Qt.select("line"),fe=Qt.select("text");zt=zt.merge(zt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Qt=Qt.merge(Oe),$t=$t.merge(Oe.append("line").attr("stroke","currentColor").attr(S+"2",k*g)),fe=fe.merge(Oe.append("text").attr("fill","currentColor").attr(S,k*et).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),O!==bt&&(zt=zt.transition(O),Qt=Qt.transition(O),$t=$t.transition(O),fe=fe.transition(O),ae=ae.transition(O).attr("opacity",ne).attr("transform",function(gt){return isFinite(gt=at(gt))?B(gt):this.getAttribute("transform")}),Oe.attr("opacity",ne).attr("transform",function(gt){var St=this.parentNode.__axis;return B(St&&isFinite(St=St(gt))?St:at(gt))})),ae.remove(),zt.attr("d",n===4||n==2?w?"M"+k*w+","+Z+"H0.5V"+st+"H"+k*w:"M0.5,"+Z+"V"+st:w?"M"+Z+","+k*w+"V0.5H"+st+"V"+k*w:"M"+Z+",0.5H"+st),Qt.attr("opacity",1).attr("transform",function(gt){return B(at(gt))}),$t.attr(S+"2",k*g),fe.attr(S,k*et).text(H),bt.filter(nt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),bt.each(function(){this.__axis=at})}return z.scale=function(O){return arguments.length?(i=O,z):i},z.ticks=function(){return o=It.call(arguments),z},z.tickArguments=function(O){return arguments.length?(o=O==null?[]:It.call(O),z):o.slice()},z.tickValues=function(O){return arguments.length?(l=O==null?null:It.call(O),z):l&&l.slice()},z.tickFormat=function(O){return arguments.length?(f=O,z):f},z.tickSize=function(O){return arguments.length?(g=w=+O,z):g},z.tickSizeInner=function(O){return arguments.length?(g=+O,z):g},z.tickSizeOuter=function(O){return arguments.length?(w=+O,z):w},z.tickPadding=function(O){return arguments.length?(m=+O,z):m},z}function ee(n){return ke(1,n)}function me(n){return ke(2,n)}function Re(n){return ke(3,n)}function Le(n){return ke(4,n)}var an={value:function(){}};function Ae(){for(var n,i=0,o=arguments.length,l={};i<o;++i){if(!(n=arguments[i]+"")||n in l||/[\s.]/.test(n))throw new Error("illegal type: "+n);l[n]=[]}return new Ve(l)}function Ve(n){this._=n}function Ke(n,i){return n.trim().split(/^|\s+/).map(function(o){var l="",f=o.indexOf(".");if(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;l<f;++l)if((o=n[l]).name===i)return o.value}function Ne(n,i,o){for(var l=0,f=n.length;l<f;++l)if(n[l].name===i){n[l]=an,n=n.slice(0,l).concat(n.slice(l+1));break}return o!=null&&n.push({name:i,value:o}),n}Ve.prototype=Ae.prototype={constructor:Ve,on:function(n,i){var o,l=this._,f=Ke(n+"",l),g=-1,w=f.length;if(!(arguments.length<2)){if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++g<w;)if(o=(n=f[g]).type)l[o]=Ne(l[o],n.name,i);else if(i==null)for(o in l)l[o]=Ne(l[o],n.name,null);return this}for(;++g<w;)if((o=(n=f[g]).type)&&(o=en(l[o],n.name)))return o},copy:function(){var n={},i=this._;for(var o in i)n[o]=i[o].slice();return new Ve(n)},call:function(n,i){if((o=arguments.length-2)>0)for(var o,l,f=new Array(o),g=0;g<o;++g)f[g]=arguments[g+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(g=0,o=(l=this._[n]).length;g<o;++g)l[g].value.apply(i,f)},apply:function(n,i,o){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var l=this._[n],f=0,g=l.length;f<g;++f)l[f].value.apply(i,o)}};const ln=Ae;function dn(){}function Ue(n){return n==null?dn:function(){return this.querySelector(n)}}function Pe(){return[]}function Ie(n){return n==null?Pe:function(){return this.querySelectorAll(n)}}function Xe(n){return function(){return this.matches(n)}}function jn(n){return new Array(n.length)}function Lt(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function An(n,i,o,l,f,g){for(var w,m=0,k=i.length,S=g.length;m<S;++m)(w=i[m])?(w.__data__=g[m],l[m]=w):o[m]=new Lt(n,g[m]);for(;m<k;++m)(w=i[m])&&(f[m]=w)}function Pt(n,i,o,l,f,g,w){var m,k,S,B={},z=i.length,O=g.length,q=new Array(z);for(m=0;m<z;++m)(k=i[m])&&(q[m]=S="$"+w.call(k,k.__data__,m,i),S in B?f[m]=k:B[S]=k);for(m=0;m<O;++m)(k=B[S="$"+w.call(n,g[m],m,g)])?(l[m]=k,k.__data__=g[m],B[S]=null):o[m]=new Lt(n,g[m]);for(m=0;m<z;++m)(k=i[m])&&B[q[m]]===k&&(f[m]=k)}function hn(n,i){return n<i?-1:n>i?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<f;)o.add(i[l])}function br(n,i){for(var o=Ti(n),l=-1,f=i.length;++l<f;)o.remove(i[l])}function yr(n){return function(){mi(this,n)}}function ai(n){return function(){br(this,n)}}function ei(n,i){return function(){(i.apply(this,arguments)?mi:br)(this,n)}}function hi(){this.textContent=""}function Zr(n){return function(){this.textContent=n}}function fi(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function Qr(){this.innerHTML=""}function dr(n){return function(){this.innerHTML=n}}function Jr(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function oi(){this.nextSibling&&this.parentNode.appendChild(this)}function si(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vi(n){return function(){var i=this.ownerDocument,o=this.namespaceURI;return o===Mn&&i.documentElement.namespaceURI===Mn?i.createElement(n):i.createElementNS(o,n)}}function to(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Tr(n){var i=qn(n);return(i.local?to:vi)(i)}function Ma(){return null}function sa(){var n=this.parentNode;n&&n.removeChild(this)}function Yi(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function gn(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}pn.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var 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<g;++l)o=i[l],n.type&&o.type!==n.type||o.name!==n.name?i[++f]=o:this.removeEventListener(o.type,o.listener,o.capture);++f?i.length=f:delete this.__on}}}function Kt(n,i,o){var l=Jn.hasOwnProperty(n.type)?We:_r;return function(f,g,w){var m,k=this.__on,S=l(i,g,w);if(k){for(var B=0,z=k.length;B<z;++B)if((m=k[B]).type===n.type&&m.name===n.name)return this.removeEventListener(m.type,m.listener,m.capture),this.addEventListener(m.type,m.listener=S,m.capture=o),void(m.value=i)}this.addEventListener(n.type,S,o),m={type:n.type,name:n.name,value:i,listener:S,capture:o},k?k.push(m):this.__on=[m]}}function Kr(n,i,o,l){var f=De;n.sourceEvent=De,De=n;try{return i.apply(o,l)}finally{De=f}}function Mo(n,i,o){var l=Fn(n),f=l.CustomEvent;typeof f=="function"?f=new f(i,o):(f=l.document.createEvent("Event"),o?(f.initEvent(i,o.bubbles,o.cancelable),f.detail=o.detail):f.initEvent(i,!1,!1)),n.dispatchEvent(f)}function Ls(n,i){return function(){return Mo(this,n,i)}}function mc(n,i){return function(){return Mo(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Jn={mouseenter:"mouseover",mouseleave:"mouseout"}));var _a=[null];function Hn(n,i){this._groups=n,this._parents=i}function Yr(){return new Hn([[document.documentElement]],_a)}Hn.prototype=Yr.prototype={constructor:Hn,select:function(n){typeof n!="function"&&(n=Ue(n));for(var i=this._groups,o=i.length,l=new Array(o),f=0;f<o;++f)for(var g,w,m=i[f],k=m.length,S=l[f]=new Array(k),B=0;B<k;++B)(g=m[B])&&(w=n.call(g,g.__data__,B,m))&&("__data__"in g&&(w.__data__=g.__data__),S[B]=w);return new Hn(l,this._parents)},selectAll:function(n){typeof n!="function"&&(n=Ie(n));for(var i=this._groups,o=i.length,l=[],f=[],g=0;g<o;++g)for(var w,m=i[g],k=m.length,S=0;S<k;++S)(w=m[S])&&(l.push(n.call(w,w.__data__,S,m)),f.push(w));return new Hn(l,f)},filter:function(n){typeof n!="function"&&(n=Xe(n));for(var i=this._groups,o=i.length,l=new Array(o),f=0;f<o;++f)for(var g,w=i[f],m=w.length,k=l[f]=[],S=0;S<m;++S)(g=w[S])&&n.call(g,g.__data__,S,w)&&k.push(g);return new Hn(l,this._parents)},data:function(n,i){if(!n)return H=new Array(this.size()),B=-1,this.each(function(Qt){H[++B]=Qt}),H;var o,l=i?Pt:An,f=this._parents,g=this._groups;typeof n!="function"&&(o=n,n=function(){return o});for(var w=g.length,m=new Array(w),k=new Array(w),S=new Array(w),B=0;B<w;++B){var z=f[B],O=g[B],q=O.length,H=n.call(z,z&&z.__data__,B,f),et=H.length,J=k[B]=new Array(et),Z=m[B]=new Array(et);l(z,O,J,Z,S[B]=new Array(q),H,i);for(var st,at,bt=0,zt=0;bt<et;++bt)if(st=J[bt]){for(bt>=zt&&(zt=bt+1);!(at=Z[zt])&&++zt<et;);st._next=at||null}}return(m=new Hn(m,f))._enter=k,m._exit=S,m},enter:function(){return new Hn(this._enter||this._groups.map(jn),this._parents)},exit:function(){return new Hn(this._exit||this._groups.map(jn),this._parents)},join:function(n,i,o){var l=this.enter(),f=this,g=this.exit();return l=typeof n=="function"?n(l):l.append(n+""),i!=null&&(f=i(f)),o==null?g.remove():o(g),l&&f?l.merge(f).order():f},merge:function(n){for(var i=this._groups,o=n._groups,l=i.length,f=o.length,g=Math.min(l,f),w=new Array(l),m=0;m<g;++m)for(var k,S=i[m],B=o[m],z=S.length,O=w[m]=new Array(z),q=0;q<z;++q)(k=S[q]||B[q])&&(O[q]=k);for(;m<l;++m)w[m]=i[m];return new Hn(w,this._parents)},order:function(){for(var n=this._groups,i=-1,o=n.length;++i<o;)for(var l,f=n[i],g=f.length-1,w=f[g];--g>=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;g<l;++g){for(var w,m=o[g],k=m.length,S=f[g]=new Array(k),B=0;B<k;++B)(w=m[B])&&(S[B]=w);S.sort(i)}return new Hn(f,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),i=-1;return this.each(function(){n[++i]=this}),n},node:function(){for(var n=this._groups,i=0,o=n.length;i<o;++i)for(var l=n[i],f=0,g=l.length;f<g;++f){var w=l[f];if(w)return w}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var i=this._groups,o=0,l=i.length;o<l;++o)for(var f,g=i[o],w=0,m=g.length;w<m;++w)(f=g[w])&&n.call(f,f.__data__,w,g);return this},attr:function(n,i){var o=qn(n);if(arguments.length<2){var l=this.node();return o.local?l.getAttributeNS(o.space,o.local):l.getAttribute(o)}return this.each((i==null?o.local?Pr:Qn:typeof i=="function"?o.local?Nn:Ln:o.local?Yn:kn)(o,i))},style:function(n,i,o){return arguments.length>1?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<g;)if(!l.contains(o[f]))return!1;return!0}return this.each((typeof i=="function"?ei:i?yr:ai)(o,i))},text:function(n){return arguments.length?this.each(n==null?hi:(typeof n=="function"?fi:Zr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?Qr:(typeof n=="function"?Jr:dr)(n)):this.node().innerHTML},raise:function(){return this.each(oi)},lower:function(){return this.each(si)},append:function(n){var i=typeof n=="function"?n:Tr(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var o=typeof n=="function"?n:Tr(n),l=i==null?Ma:typeof i=="function"?i:Ue(i);return this.select(function(){return this.insertBefore(o.apply(this,arguments),l.apply(this,arguments)||null)})},remove:function(){return this.each(sa)},clone:function(n){return this.select(n?gn:Yi)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,o){var l,f,g=qt(n+""),w=g.length;if(!(arguments.length<2)){for(m=i?Kt:ba,o==null&&(o=!1),l=0;l<w;++l)this.each(m(g[l],i,o));return this}var m=this.node().__on;if(m){for(var k,S=0,B=m.length;S<B;++S)for(l=0,k=m[S];l<w;++l)if((f=g[l]).type===k.type&&f.name===k.name)return k.value}},dispatch:function(n,i){return this.each((typeof i=="function"?mc:Ls)(n,i))}};const Ei=Yr;function zr(n){return typeof n=="string"?new Hn([[document.querySelector(n)]],[document.documentElement]):new Hn([[n]],_a)}function Di(){De.stopImmediatePropagation()}function Gi(){De.preventDefault(),De.stopImmediatePropagation()}function Oi(n){var i=n.document.documentElement,o=zr(n).on("dragstart.drag",Gi,!0);"onselectstart"in i?o.on("selectstart.drag",Gi,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Nr(n,i){var o=n.document.documentElement,l=zr(n).on("dragstart.drag",null);i&&(l.on("click.drag",Gi,!0),setTimeout(function(){l.on("click.drag",null)},0)),"onselectstart"in o?l.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function ci(n,i,o){n.prototype=i.prototype=o,o.constructor=n}function ni(n,i){var o=Object.create(n.prototype);for(var l in i)o[l]=i[l];return o}function jr(){}var ca=.7,Xi=1/ca,Ci="\\s*([+-]?\\d+)\\s*",xa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",li=/^#([0-9a-f]{3,8})$/,wa=new RegExp("^rgb\\("+[Ci,Ci,Ci]+"\\)$"),la=new RegExp("^rgb\\("+[Gr,Gr,Gr]+"\\)$"),No=new RegExp("^rgba\\("+[Ci,Ci,Ci,xa]+"\\)$"),tl=new RegExp("^rgba\\("+[Gr,Gr,Gr,xa]+"\\)$"),Ht=new RegExp("^hsl\\("+[xa,Gr,Gr]+"\\)$"),un=new RegExp("^hsla\\("+[xa,Gr,Gr,xa]+"\\)$"),Qe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Kn(){return this.rgb().formatHex()}function Ur(){return this.rgb().formatRgb()}function qr(n){var i,o;return n=(n+"").trim().toLowerCase(),(i=li.exec(n))?(o=i[1].length,i=parseInt(i[1],16),o===6?ri(i):o===3?new ti(i>>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*(o<l):o===g?(l-i)/m+2:(i-o)/m+4,m/=k<.5?g+f:2-g-f,w*=60):m=k>0&&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=l<i-1?n[l+2]:2*g-f;return oh((o-l/i)*i,w,f,g,m)}}function nl(n){var i=n.length;return function(o){var l=Math.floor(((o%=1)<0?++o:o)*i),f=n[(l+i-1)%i],g=n[l%i],w=n[(l+1)%i],m=n[(l+2)%i];return oh((o-l/i)*i,f,g,w,m)}}function rl(n){return function(){return n}}function Vl(n,i){return function(o){return n+o*i}}function Wa(n,i){var o=i-n;return o?Vl(n,o>180||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;o<f;++o)l=Dr(i[o]),g[o]=l.r||0,w[o]=l.g||0,m[o]=l.b||0;return g=n(g),w=n(w),m=n(m),l.opacity=1,function(k){return l.r=g(k),l.g=w(k),l.b=m(k),l+""}}}var Gl=sh(Lr),Do=sh(nl);function ch(n,i){i||(i=[]);var o,l=n?Math.min(i.length,n.length):0,f=i.slice();return function(g){for(o=0;o<l;++o)f[o]=n[o]*(1-g)+i[o]*g;return f}}function X1(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function jd(n,i){return(X1(i)?ch:Z1)(n,i)}function Z1(n,i){var o,l=i?i.length:0,f=n?Math.min(l,n.length):0,g=new Array(f),w=new Array(l);for(o=0;o<f;++o)g[o]=il(n[o],i[o]);for(;o<l;++o)w[o]=i[o];return function(m){for(o=0;o<f;++o)w[o]=g[o](m);return w}}function Q1(n,i){var o=new Date;return n=+n,i=+i,function(l){return o.setTime(n*(1-l)+i*l),o}}function Na(n,i){return n=+n,i=+i,function(o){return n*(1-o)+i*o}}function J1(n,i){var o,l={},f={};for(o in n!==null&&typeof n=="object"||(n={}),i!==null&&typeof i=="object"||(i={}),i)o in n?l[o]=il(n[o],i[o]):f[o]=i[o];return function(g){for(o in l)f[o]=l[o](g);return f}}var lh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uh=new RegExp(lh.source,"g");function Oo(n,i){var o,l,f,g=lh.lastIndex=uh.lastIndex=0,w=-1,m=[],k=[];for(n+="",i+="";(o=lh.exec(n))&&(l=uh.exec(i));)(f=l.index)>g&&(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<i.length&&(f=i.slice(g),m[w]?m[w]+=f:m[++w]=f),m.length<2?k[0]?function(S){return function(B){return S(B)+""}}(k[0].x):function(S){return function(){return S}}(i):(i=k.length,function(S){for(var B,z=0;z<i;++z)m[(B=k[z]).i]=B.x(S);return m.join("")})}function il(n,i){var o,l=typeof i;return i==null||l==="boolean"?rl(i):(l==="number"?Na:l==="string"?(o=qr(i))?(i=o,vc):Oo:i instanceof qr?vc:i instanceof Date?Q1:X1(i)?ch:Array.isArray(i)?Z1:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?J1:Na)(n,i)}function ro(){for(var n,i=De;n=i.sourceEvent;)i=n;return i}function al(n,i){var o=n.ownerSVGElement||n;if(o.createSVGPoint){var l=o.createSVGPoint();return l.x=i.clientX,l.y=i.clientY,[(l=l.matrixTransform(n.getScreenCTM().inverse())).x,l.y]}var f=n.getBoundingClientRect();return[i.clientX-f.left-n.clientLeft,i.clientY-f.top-n.clientTop]}function Da(n,i,o){arguments.length<3&&(o=i,i=ro().changedTouches);for(var l,f=0,g=i?i.length:0;f<g;++f)if((l=i[f]).identifier===o)return al(n,l);return null}function Is(n){var i=ro();return i.changedTouches&&(i=i.changedTouches[0]),al(n,i)}var Xl,Bo,Qi=0,bi=0,io=0,$a=0,ua=0,rr=0,E=typeof performance=="object"&&performance.now?performance:Date,P=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function G(){return ua||(P(ut),ua=E.now()+rr)}function ut(){ua=0}function Zt(){this._call=this._time=this._next=null}function we(n,i,o){var l=new Zt;return l.restart(n,i,o),l}function Be(){G(),++Qi;for(var n,i=Xl;i;)(n=ua-i._time)>=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]):+J<k&&(at.state=6,at.timer.stop(),at.on.call("cancel",m,m.__data__,at.index,at.group),delete z[J])}if(sn(function(){S.state===3&&(S.state=4,S.timer.restart(q,S.delay,S.time),q(et))}),S.state=2,S.on.call("start",m,m.__data__,S.index,S.group),S.state===2){for(S.state=3,B=new Array(st=S.tween.length),J=0,Z=-1;J<st;++J)(at=S.tween[J].value.call(m,m.__data__,S.index,S.group))&&(B[++Z]=at);B.length=Z+1}}function q(et){for(var J=et<S.duration?S.ease.call(null,et/S.duration):(S.timer.restart(H),S.state=5,1),Z=-1,st=B.length;++Z<st;)B[Z].call(m,J);S.state===5&&(S.on.call("end",m,m.__data__,S.index,S.group),H())}function H(){for(var et in S.state=6,S.timer.stop(),delete z[k],z)return;delete m.__transition}z[k]=S,S.timer=we(function(et){S.state=1,S.timer.restart(O,S.delay,S.time),S.delay<=et&&O(et-S.delay)},0,S.time)})(n,o,{name:i,index:l,group:f,on:In,tween:Dn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function xr(n,i){var o=pr(n,i);if(o.state>0)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*l<i*o&&(n=-n,i=-i,k=-k,w=-w),{translateX:f,translateY:g,rotate:Math.atan2(i,n)*Lo,skewX:Math.atan(k)*Lo,scaleX:w,scaleY:m}}function xy(n,i,o,l){function f(g){return g.length?g.pop()+" ":""}return function(g,w){var m=[],k=[];return g=n(g),w=n(w),function(S,B,z,O,q,H){if(S!==z||B!==O){var et=q.push("translate(",null,i,null,o);H.push({i:et-4,x:Na(S,z)},{i:et-2,x:Na(B,O)})}else(z||O)&&q.push("translate("+z+i+O+o)}(g.translateX,g.translateY,w.translateX,w.translateY,m,k),function(S,B,z,O){S!==B?(S-B>180?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<O;)m[(B=k[z]).i]=B.x(S);return m.join("")}}}var qd=xy(function(n){return n==="none"?dh:(Fs||(Fs=document.createElement("DIV"),hh=document.documentElement,Ud=document.defaultView),Fs.style.transform=n,n=Ud.getComputedStyle(hh.appendChild(Fs),null).getPropertyValue("transform"),hh.removeChild(Fs),_y(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),Wd=xy(function(n){return n==null?dh:(fh||(fh=document.createElementNS("http://www.w3.org/2000/svg","g")),fh.setAttribute("transform",n),(n=fh.transform.baseVal.consolidate())?_y((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):dh)},", ",")",")");function wy(n,i){var o,l;return function(){var f=Ir(this,n),g=f.tween;if(g!==o){for(var w=0,m=(l=o=g).length;w<m;++w)if(l[w].name===i){(l=l.slice()).splice(w,1);break}}f.tween=l}}function $d(n,i,o){var l,f;if(typeof o!="function")throw new Error;return function(){var g=Ir(this,n),w=g.tween;if(w!==l){f=(l=w).slice();for(var m={name:i,value:o},k=0,S=f.length;k<S;++k)if(f[k].name===i){f[k]=m;break}k===S&&f.push(m)}g.tween=f}}function K1(n,i,o){var l=n._id;return n.each(function(){var f=Ir(this,l);(f.value||(f.value={}))[i]=o.apply(this,arguments)}),function(f){return pr(f,l).value[i]}}function Hd(n,i){var o;return(typeof i=="number"?Na:i instanceof qr?vc:(o=qr(i))?(i=o,vc):Oo)(n,i)}function as(n){return function(){this.removeAttribute(n)}}function Vd(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Gd(n,i,o){var l,f,g=o+"";return function(){var w=this.getAttribute(n);return w===g?null:w===l?f:f=i(l=w,o)}}function Xd(n,i,o){var l,f,g=o+"";return function(){var w=this.getAttributeNS(n.space,n.local);return w===g?null:w===l?f:f=i(l=w,o)}}function Zd(n,i,o){var l,f,g;return function(){var w,m,k=o(this);if(k!=null)return(w=this.getAttribute(n))===(m=k+"")?null:w===l&&m===f?g:(f=m,g=i(l=w,k));this.removeAttribute(n)}}function qv(n,i,o){var l,f,g;return function(){var w,m,k=o(this);if(k!=null)return(w=this.getAttributeNS(n.space,n.local))===(m=k+"")?null:w===l&&m===f?g:(f=m,g=i(l=w,k));this.removeAttributeNS(n.space,n.local)}}function Qd(n,i){return function(o){this.setAttribute(n,i.call(this,o))}}function Rs(n,i){return function(o){this.setAttributeNS(n.space,n.local,i.call(this,o))}}function ky(n,i){var o,l;function f(){var g=i.apply(this,arguments);return g!==l&&(o=(l=g)&&Rs(n,g)),o}return f._value=i,f}function Jd(n,i){var o,l;function f(){var g=i.apply(this,arguments);return g!==l&&(o=(l=g)&&Qd(n,g)),o}return f._value=i,f}function Ty(n,i){return function(){xr(this,n).delay=+i.apply(this,arguments)}}function ph(n,i){return i=+i,function(){xr(this,n).delay=i}}function Wv(n,i){return function(){Ir(this,n).duration=+i.apply(this,arguments)}}function $v(n,i){return i=+i,function(){Ir(this,n).duration=i}}function Kd(n,i){if(typeof i!="function")throw new Error;return function(){Ir(this,n).ease=i}}function tp(n,i,o){var l,f,g=function(w){return(w+"").trim().split(/^|\s+/).every(function(m){var k=m.indexOf(".");return k>=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;w<f;++w)for(var m,k,S=l[w],B=S.length,z=g[w]=new Array(B),O=0;O<B;++O)(m=S[O])&&(k=n.call(m,m.__data__,O,S))&&("__data__"in m&&(k.__data__=m.__data__),z[O]=k,mr(z[O],i,o,O,z,pr(m,o)));return new os(g,this._parents,i,o)},selectAll:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=Ie(n));for(var l=this._groups,f=l.length,g=[],w=[],m=0;m<f;++m)for(var k,S=l[m],B=S.length,z=0;z<B;++z)if(k=S[z]){for(var O,q=n.call(k,k.__data__,z,S),H=pr(k,o),et=0,J=q.length;et<J;++et)(O=q[et])&&mr(O,i,o,et,q,H);g.push(q),w.push(k)}return new os(g,w,i,o)},filter:function(n){typeof n!="function"&&(n=Xe(n));for(var i=this._groups,o=i.length,l=new Array(o),f=0;f<o;++f)for(var g,w=i[f],m=w.length,k=l[f]=[],S=0;S<m;++S)(g=w[S])&&n.call(g,g.__data__,S,w)&&k.push(g);return new os(l,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,o=n._groups,l=i.length,f=o.length,g=Math.min(l,f),w=new Array(l),m=0;m<g;++m)for(var k,S=i[m],B=o[m],z=S.length,O=w[m]=new Array(z),q=0;q<z;++q)(k=S[q]||B[q])&&(O[q]=k);for(;m<l;++m)w[m]=i[m];return new os(w,this._parents,this._name,this._id)},selection:function(){return new ep(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,o=op(),l=this._groups,f=l.length,g=0;g<f;++g)for(var w,m=l[g],k=m.length,S=0;S<k;++S)if(w=m[S]){var B=pr(w,i);mr(w,n,o,S,m,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new os(l,this._parents,n,o)},call:ss.call,nodes:ss.nodes,node:ss.node,size:ss.size,empty:ss.empty,each:ss.each,on:function(n,i){var o=this._id;return arguments.length<2?pr(this.node(),o).on.on(n):this.each(tp(o,n,i))},attr:function(n,i){var o=qn(n),l=o==="transform"?Wd:Hd;return this.attrTween(n,typeof i=="function"?(o.local?qv:Zd)(o,l,K1(this,"attr."+n,i)):i==null?(o.local?Vd:as)(o):(o.local?Xd:Gd)(o,l,i))},attrTween:function(n,i){var o="attr."+n;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(i==null)return this.tween(o,null);if(typeof i!="function")throw new Error;var l=qn(n);return this.tween(o,(l.local?ky:Jd)(l,i))},style:function(n,i,o){var l=(n+="")=="transform"?qd:Hd;return i==null?this.styleTween(n,function(f,g){var w,m,k;return function(){var S=xn(this,f),B=(this.style.removeProperty(f),xn(this,f));return S===B?null:S===w&&B===m?k:k=g(w=S,m=B)}}(n,l)).on("end.style."+n,np(n)):typeof i=="function"?this.styleTween(n,function(f,g,w){var m,k,S;return function(){var B=xn(this,f),z=w(this),O=z+"";return z==null&&(this.style.removeProperty(f),O=z=xn(this,f)),B===O?null:B===m&&O===k?S:(k=O,S=g(m=B,z))}}(n,l,K1(this,"style."+n,i))).each(function(f,g){var w,m,k,S,B="style."+g,z="end."+B;return function(){var O=Ir(this,f),q=O.on,H=O.value[B]==null?S||(S=np(g)):void 0;q===w&&k===H||(m=(w=q).copy()).on(z,k=H),O.on=m}}(this._id,n)):this.styleTween(n,function(f,g,w){var m,k,S=w+"";return function(){var B=xn(this,f);return B===S?null:B===m?k:k=g(m=B,w)}}(n,l,i),o).on("end.style."+n,null)},styleTween:function(n,i,o){var l="style."+(n+="");if(arguments.length<2)return(l=this.tween(l))&&l._value;if(i==null)return this.tween(l,null);if(typeof i!="function")throw new Error;return this.tween(l,ip(n,i,o==null?"":o))},text:function(n){return this.tween("text",typeof n=="function"?function(i){return function(){var o=i(this);this.textContent=o==null?"":o}}(K1(this,"text",n)):function(i){return function(){this.textContent=i}}(n==null?"":n+""))},textTween:function(n){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Hv(n))},remove:function(){return this.on("end.remove",function(n){return function(){var i=this.parentNode;for(var o in this.__transition)if(+o!==n)return;i&&i.removeChild(this)}}(this._id))},tween:function(n,i){var o=this._id;if(n+="",arguments.length<2){for(var l,f=pr(this.node(),o).tween,g=0,w=f.length;g<w;++g)if((l=f[g]).name===n)return l.value;return null}return this.each((i==null?wy:$d)(o,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Ty:ph)(i,n)):pr(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Wv:$v)(i,n)):pr(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(Kd(i,n)):pr(this.node(),i).ease},end:function(){var n,i,o=this,l=o._id,f=o.size();return new Promise(function(g,w){var m={value:w},k={value:function(){--f==0&&g()}};o.each(function(){var S=Ir(this,l),B=S.on;B!==n&&((i=(n=B).copy())._.cancel.push(m),i._.interrupt.push(m),i._.end.push(k)),S.on=i})})}};var ol={time:null,delay:0,duration:250,ease:bc};function cs(n,i){for(var o;!(o=n.__transition)||!(o=o[i]);)if(!(n=n.parentNode))return ol.time=G(),ol;return o}Ei.prototype.interrupt=function(n){return this.each(function(){Oa(this,n)})},Ei.prototype.transition=function(n){var i,o;n instanceof os?(i=n._id,n=n._name):(i=op(),(o=ol).time=G(),n=n==null?null:n+"");for(var l=this._groups,f=l.length,g=0;g<f;++g)for(var w,m=l[g],k=m.length,S=0;S<k;++S)(w=m[S])&&mr(w,n,i,S,m,o||cs(w,i));return new os(l,this._parents,n,i)};var Gv=[null];function Xv(n,i){var o,l,f=n.__transition;if(f){for(l in i=i==null?null:i+"",f)if((o=f[l]).state>1&&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)))}zt<Z&&(ie*=-1,So=J,J=bt,bt=So,So=Z,Z=zt,zt=So,St in lp&&Os.attr("cursor",ls[St=lp[St]])),ae<at&&(ce*=-1,So=st,st=Qt,Qt=So,So=at,at=ae,ae=So,St in s0&&Os.attr("cursor",ls[St=s0[St]])),Ze.selection&&(On=Ze.selection),$t&&(Z=On[0][0],zt=On[1][0]),fe&&(at=On[0][1],ae=On[1][1]),On[0][0]===Z&&On[0][1]===at&&On[1][0]===zt&&On[1][1]===ae||(Ze.selection=[[Z,at],[zt,ae]],S.call(gt),Jc.brush())}function Mv(){if(Ey(),De.touches){if(De.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Nr(De.view,Oe),Sv.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);H1.attr("pointer-events","all"),Os.attr("cursor",ls.overlay),Ze.selection&&(On=Ze.selection),Qv(On)&&(Ze.selection=null,S.call(gt)),Jc.end()}function t_(){switch(De.keyCode){case 16:vr=ie&&ce;break;case 18:oe===sl&&(ie&&(bt=zt-Un*ie,J=Z+Un*ie),ce&&(Qt=ae-zn*ce,st=at+zn*ce),oe=cl,rh());break;case 32:oe!==sl&&oe!==cl||(ie<0?bt=zt-Un:ie>0&&(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;++B<O;){for(m=0,z=-1;++z<O;)m+=g[B][z];q.push(m),et.push(jt(O)),w+=m}for(i&&H.sort(function(fe,gt){return i(q[fe],q[gt])}),o&&et.forEach(function(fe,gt){fe.sort(function(St,oe){return o(g[gt][St],g[gt][oe])})}),S=(w=dp(0,Oy-n*O)/w)?n:Oy/O,m=0,B=-1;++B<O;){for(k=m,z=-1;++z<O;){var at=H[B],bt=et[at][z],zt=g[at][bt],Qt=m,ae=m+=zt*w;st[bt*O+at]={index:at,subindex:bt,startAngle:Qt,endAngle:ae,value:zt}}Z[at]={index:at,startAngle:k,endAngle:m,value:q[at]},m+=S}for(B=-1;++B<O;)for(z=B-1;++z<O;){var Oe=st[z*O+B],$t=st[B*O+z];(Oe.value||$t.value)&&J.push(Oe.value<$t.value?{source:$t,target:Oe}:{source:Oe,target:$t})}return l?J.sort(l):J}return f.padAngle=function(g){return arguments.length?(n=dp(0,g),f):n},f.sortGroups=function(g){return arguments.length?(i=g,f):i},f.sortSubgroups=function(g){return arguments.length?(o=g,f):o},f.sortChords=function(g){return arguments.length?(g==null?l=null:(l=Jl(g))._=g,f):l&&l._},f}var t5=Array.prototype.slice;function gp(n){return function(){return n}}var f0=Math.PI,d0=2*f0,Ps=1e-6,By=d0-Ps;function yp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function yh(){return new yp}yp.prototype=yh.prototype={constructor:yp,moveTo:function(n,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,i){this._+="L"+(this._x1=+n)+","+(this._y1=+i)},quadraticCurveTo:function(n,i,o,l){this._+="Q"+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+l)},bezierCurveTo:function(n,i,o,l,f,g){this._+="C"+ +n+","+ +i+","+ +o+","+ +l+","+(this._x1=+f)+","+(this._y1=+g)},arcTo:function(n,i,o,l,f){n=+n,i=+i,o=+o,l=+l,f=+f;var g=this._x1,w=this._y1,m=o-n,k=l-i,S=g-n,B=w-i,z=S*S+B*B;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=i);else if(z>Ps)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<g;)o.set(f,n[f]);else for(;++f<g;)o.set(i(l=n[f],f,n),l)}else if(n)for(var w in n)o.set(w,n[w]);return o}mh.prototype=vp.prototype={constructor:mh,has:function(n){return oo+n in this},get:function(n){return this[oo+n]},set:function(n,i){return this[oo+n]=i,this},remove:function(n){var i=oo+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===oo&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===oo&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===oo&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===oo&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===oo&&++n;return n},empty:function(){for(var n in this)if(n[0]===oo)return!1;return!0},each:function(n){for(var i in this)i[0]===oo&&n(this[i],i.slice(1),this)}};const zs=vp;function e5(){var n,i,o,l=[],f=[];function g(m,k,S,B){if(k>=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();++H<et;)(q=Z.get(z=J(O=m[H])+""))?q.push(O):Z.set(z,[O]);return Z.each(function(at,bt){B(st,bt,g(at,k,S,B))}),st}function w(m,k){if(++k>l.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<f;)o.add(n[l]);else for(;++l<f;)o.add(i(n[l],l,n))}return o}vh.prototype=tu.prototype={constructor:vh,has:_c.has,add:function(n){return this[oo+(n+="")]=n,this},remove:_c.remove,clear:_c.clear,values:_c.keys,size:_c.size,empty:_c.empty,each:_c.each};const xc=tu;function bh(n){var i=[];for(var o in n)i.push(o);return i}function _p(n){var i=[];for(var o in n)i.push(n[o]);return i}function xp(n){var i=[];for(var o in n)i.push({key:o,value:n[o]});return i}var g0=Math.PI/180,y0=180/Math.PI,m0=.96422,zi=.82521,v0=4/29,wp=6/29,zy=3*wp*wp;function eu(n){if(n instanceof Io)return new Io(n.l,n.a,n.b,n.opacity);if(n instanceof us)return Ep(n);n instanceof ti||(n=ka(n));var i,o,l=js(n.r),f=js(n.g),g=js(n.b),w=b0((.2225045*l+.7168786*f+.0606169*g)/1);return l===f&&f===g?i=o=w:(i=b0((.4360747*l+.3850649*f+.1430804*g)/m0),o=b0((.0139322*l+.0971045*f+.7141733*g)/zi)),new Io(116*w-16,500*(i-w),200*(w-o),n.opacity)}function n5(n,i){return new Io(n,0,0,i==null?1:i)}function _h(n,i,o,l){return arguments.length===1?eu(n):new Io(n,i,o,l==null?1:l)}function Io(n,i,o,l){this.l=+n,this.a=+i,this.b=+o,this.opacity=+l}function b0(n){return n>.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,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*y0;return new us(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Tp(n,i,o,l){return arguments.length===1?_0(n):new us(o,i,n,l==null?1:l)}function wc(n,i,o,l){return arguments.length===1?_0(n):new us(n,i,o,l==null?1:l)}function us(n,i,o,l){this.h=+n,this.c=+i,this.l=+o,this.opacity=+l}function Ep(n){if(isNaN(n.h))return new Io(n.l,0,0,n.opacity);var i=n.h*g0;return new Io(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}ci(Io,_h,ni(jr,{brighter:function(n){return new Io(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new Io(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,o=isNaN(this.b)?n:n-this.b/200;return new ti(nu(3.1338561*(i=m0*kp(i))-1.6168667*(n=1*kp(n))-.4906146*(o=zi*kp(o))),nu(-.9787684*i+1.9161415*n+.033454*o),nu(.0719453*i-.2289914*n+1.4052427*o),this.opacity)}})),ci(us,wc,ni(jr,{brighter:function(n){return new us(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new us(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return Ep(this).rgb()}}));var Cp=-.14861,Us=1.78277,Sp=-.29227,xh=-.90649,Fo=1.97294,jy=Fo*xh,x0=Fo*Us,ru=Us*Sp-xh*Cp;function Uy(n){if(n instanceof ll)return new ll(n.h,n.s,n.l,n.opacity);n instanceof ti||(n=ka(n));var i=n.r/255,o=n.g/255,l=n.b/255,f=(ru*l+jy*i-x0*o)/(ru+jy-x0),g=l-f,w=(Fo*(o-f)-Sp*g)/xh,m=Math.sqrt(w*w+g*g)/(Fo*f*(1-f)),k=m?Math.atan2(w,g)*y0-120:NaN;return new ll(k<0?k+360:k,m,f,n.opacity)}function Ba(n,i,o,l){return arguments.length===1?Uy(n):new ll(n,i,o,l==null?1:l)}function ll(n,i,o,l){this.h=+n,this.s=+i,this.l=+o,this.opacity=+l}ci(ll,Ba,ni(jr,{brighter:function(n){return n=n==null?Xi:Math.pow(Xi,n),new ll(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?ca:Math.pow(ca,n),new ll(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*g0,i=+this.l,o=isNaN(this.s)?0:this.s*i*(1-i),l=Math.cos(n),f=Math.sin(n);return new ti(255*(i+o*(Cp*l+Us*f)),255*(i+o*(Sp*l+xh*f)),255*(i+o*(Fo*l)),this.opacity)}}));var qy=Array.prototype.slice;function r5(n,i){return n-i}function hs(n){return function(){return n}}function Ap(n,i){for(var o,l=-1,f=i.length;++l<f;)if(o=wh(n,i[l]))return o;return 0}function wh(n,i){for(var o=i[0],l=i[1],f=-1,g=0,w=n.length,m=w-1;g<w;m=g++){var k=n[g],S=k[0],B=k[1],z=n[m],O=z[0],q=z[1];if(kh(k,z,i))return 0;B>l!=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<n-1;)Z=st,st=O[et+1]>=q,fs[Z|st<<1].forEach(ae);for(fs[st<<0].forEach(ae);++J<i-1;){for(et=-1,st=O[J*n+n]>=q,at=O[J*n]>=q,fs[st<<1|at<<2].forEach(ae);++et<n-1;)Z=st,st=O[J*n+n+et+1]>=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<n-1;)bt=at,at=O[J*n+et+1]>=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];++H<et;)J+=q[H-1][1]*q[H][0]-q[H-1][0]*q[H][1];return J}(O)>0?B.push([O]):z.push(O)}),z.forEach(function(O){for(var q,H=0,et=B.length;H<et;++H)if(Ap((q=B[H])[0],O)!==-1)return void q.push(O)}),{type:"MultiPolygon",value:S,coordinates:B}}function w(k){return 2*k[0]+k[1]*(n+1)*4}function m(k,S,B){k.forEach(function(z){var O,q=z[0],H=z[1],et=0|q,J=0|H,Z=S[J*n+et];q>0&&q<n&&et===q&&(O=S[J*n+et-1],z[0]=q+(B-O)/(Z-O)-.5),H>0&&H<i&&J===H&&(O=S[(J-1)*n+et],z[1]=H+(B-O)/(Z-O)-.5)})}return f.contour=g,f.size=function(k){if(!arguments.length)return[n,i];var S=Math.ceil(k[0]),B=Math.ceil(k[1]);if(!(S>0&&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<f;++w)for(var m=0,k=0;m<l+o;++m)m<l&&(k+=n.data[m+w*l]),m>=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<l;++w)for(var m=0,k=0;m<f+o;++m)m<f&&(k+=n.data[w+m*l]),m>=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<k&&fe>=0&&fe<S&&(st[$t+fe*k]+=gt)}),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),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<<w;if(!((Z=+Z)>=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<Oe;++bt)(zt=at(Qt[bt].identifier,ae,Da,this,arguments))&&(Di(),zt("start"))}}function Z(){var bt,zt,Qt=De.changedTouches,ae=Qt.length;for(bt=0;bt<ae;++bt)(zt=k[Qt[bt].identifier])&&(Gi(),zt("drag"))}function st(){var bt,zt,Qt=De.changedTouches,ae=Qt.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),bt=0;bt<ae;++bt)(zt=k[Qt[bt].identifier])&&(Di(),zt("end"))}function at(bt,zt,Qt,ae,Oe){var $t,fe,gt,St=Qt(zt,bt),oe=S.copy();if(Kr(new Dp(O,"beforestart",$t,bt,B,St[0],St[1],0,0,oe),function(){return(De.subject=$t=w.apply(ae,Oe))!=null&&(fe=$t.x-St[0]||0,gt=$t.y-St[1]||0,!0)}))return function ie(ce){var Ze,cn=St;switch(ce){case"start":k[bt]=ie,Ze=B++;break;case"end":delete k[bt],--B;case"drag":St=Qt(zt,bt),Ze=B}Kr(new Dp(O,ce,$t,bt,Ze,St[0]+fe,St[1]+gt,St[0]-cn[0],St[1]-cn[1],oe),oe.apply,oe,[ce,ae,Oe])}}return O.filter=function(bt){return arguments.length?(f=typeof bt=="function"?bt:w0(!!bt),O):f},O.container=function(bt){return arguments.length?(g=typeof bt=="function"?bt:w0(bt),O):g},O.subject=function(bt){return arguments.length?(w=typeof bt=="function"?bt:w0(bt),O):w},O.touchable=function(bt){return arguments.length?(m=typeof bt=="function"?bt:w0(!!bt),O):m},O.on=function(){var bt=S.on.apply(S,arguments);return bt===S?O:bt},O.clickDistance=function(bt){return arguments.length?(z=(bt=+bt)*bt,O):Math.sqrt(z)},O}Dp.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Vy={},Op={};function Gy(n){return new Function("d","return {"+n.map(function(i,o){return JSON.stringify(i)+": d["+o+'] || ""'}).join(",")+"}")}function Bp(n){var i=Object.create(null),o=[];return n.forEach(function(l){for(var f in l)f in i||o.push(i[f]=f)}),o}function Va(n,i){var o=n+"",l=o.length;return l<i?new Array(i-l+1).join(0)+o:o}function Ch(n){var i=new RegExp('["'+n+`
\r]`),o=n.charCodeAt(0);function l(m,k){var S,B=[],z=m.length,O=0,q=0,H=z<=0,et=!1;function J(){if(H)return Op;if(et)return et=!1,Vy;var st,at,bt=O;if(m.charCodeAt(bt)===34){for(;O++<z&&m.charCodeAt(O)!==34||m.charCodeAt(++O)===34;);return(st=O)>=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(;O<z;){if((at=m.charCodeAt(st=O++))===10)et=!0;else if(at===13)et=!0,m.charCodeAt(O)===10&&++O;else if(at!==o)continue;return m.slice(bt,st)}return H=!0,m.slice(bt,z)}for(m.charCodeAt(z-1)===10&&--z,m.charCodeAt(z-1)===13&&--z;(S=J())!==Op;){for(var Z=[];S!==Vy&&S!==Op;)Z.push(S),S=J();k&&(Z=k(Z,q++))==null||B.push(Z)}return B}function f(m,k){return m.map(function(S){return k.map(function(B){return w(S[B])}).join(n)})}function g(m){return m.map(w).join(n)}function w(m){return m==null?"":m instanceof Date?function(k){var S=k.getUTCHours(),B=k.getUTCMinutes(),z=k.getUTCSeconds(),O=k.getUTCMilliseconds();return isNaN(k)?"Invalid Date":function(q){return q<0?"-"+Va(-q,6):q>9999?"+"+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<w;++f)m+=(g=o[f]).x,k+=g.y;for(m=m/w-n,k=k/w-i,f=0;f<w;++f)(g=o[f]).x-=m,g.y-=k}return n==null&&(n=0),i==null&&(i=0),l.initialize=function(f){o=f},l.x=function(f){return arguments.length?(n=+f,l):n},l.y=function(f){return arguments.length?(i=+f,l):i},l}function Ui(n){return function(){return n}}function Tc(){return 1e-6*(Math.random()-.5)}function vm(n,i,o,l){if(isNaN(i)||isNaN(o))return n;var f,g,w,m,k,S,B,z,O,q=n._root,H={data:l},et=n._x0,J=n._y0,Z=n._x1,st=n._y1;if(!q)return n._root=H,n;for(;q.length;)if((S=i>=(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;J<f;++J)for(S=Ah(i,j5,U5).visitAfter(w),k=0;k<et;++k)B=i[k],q=o[B.index],H=q*q,z=B.x+B.vx,O=B.y+B.vy,S.visit(Z);function Z(st,at,bt,zt,Qt){var ae=st.data,Oe=st.r,$t=q+Oe;if(!ae)return at>z+$t||zt<z-$t||bt>O+$t||Qt<O-$t;if(ae.index>B.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;k<B;++k)S=i[k],o[S.index]=+n(S,k,i)}}return typeof n!="function"&&(n=Ui(n==null?1:+n)),g.initialize=function(k){i=k,m()},g.iterations=function(k){return arguments.length?(f=+k,g):f},g.strength=function(k){return arguments.length?(l=+k,g):l},g.radius=function(k){return arguments.length?(n=typeof k=="function"?k:Ui(+k),m(),g):n},g}function W5(n){return n.index}function Yp(n,i){var o=n.get(i);if(!o)throw new Error("missing: "+i);return o}function $5(n){var i,o,l,f,g,w=W5,m=function(H){return 1/Math.min(f[H.source.index],f[H.target.index])},k=Ui(30),S=1;function B(H){for(var et=0,J=n.length;et<S;++et)for(var Z,st,at,bt,zt,Qt,ae,Oe=0;Oe<J;++Oe)st=(Z=n[Oe]).source,bt=(at=Z.target).x+at.vx-st.x-st.vx||Tc(),zt=at.y+at.vy-st.y-st.vy||Tc(),bt*=Qt=((Qt=Math.sqrt(bt*bt+zt*zt))-o[Oe])/Qt*H*i[Oe],zt*=Qt,at.vx-=bt*(ae=g[Oe]),at.vy-=zt*ae,st.vx+=bt*(ae=1-ae),st.vy+=zt*ae}function z(){if(l){var H,et,J=l.length,Z=n.length,st=zs(l,w);for(H=0,f=new Array(J);H<Z;++H)(et=n[H]).index=H,typeof et.source!="object"&&(et.source=Yp(st,et.source)),typeof et.target!="object"&&(et.target=Yp(st,et.target)),f[et.source.index]=(f[et.source.index]||0)+1,f[et.target.index]=(f[et.target.index]||0)+1;for(H=0,g=new Array(Z);H<Z;++H)et=n[H],g[H]=f[et.source.index]/(f[et.source.index]+f[et.target.index]);i=new Array(Z),O(),o=new Array(Z),q()}}function O(){if(l)for(var H=0,et=n.length;H<et;++H)i[H]=+m(n[H],H,n)}function q(){if(l)for(var H=0,et=n.length;H<et;++H)o[H]=+k(n[H],H,n)}return n==null&&(n=[]),B.initialize=function(H){l=H,z()},B.links=function(H){return arguments.length?(n=H,z(),B):n},B.id=function(H){return arguments.length?(w=H,B):w},B.iterations=function(H){return arguments.length?(S=+H,B):S},B.strength=function(H){return arguments.length?(m=typeof H=="function"?H:Ui(+H),O(),B):m},B.distance=function(H){return arguments.length?(k=typeof H=="function"?H:Ui(+H),q(),B):k},B}function H5(n){return n.x}function V5(n){return n.y}Ia.copy=function(){var n,i,o=new ou(this._x,this._y,this._x0,this._y0,this._x1,this._y1),l=this._root;if(!l)return o;if(!l.length)return o._root=bm(l),o;for(n=[{source:l,target:o._root=new Array(4)}];l=n.pop();)for(var f=0;f<4;++f)(i=l.source[f])&&(i.length?n.push({source:i,target:l.target[f]=new Array(4)}):l.target[f]=bm(i));return o},Ia.add=function(n){var i=+this._x.call(null,n),o=+this._y.call(null,n);return vm(this.cover(i,o),i,o,n)},Ia.addAll=function(n){var i,o,l,f,g=n.length,w=new Array(g),m=new Array(g),k=1/0,S=1/0,B=-1/0,z=-1/0;for(o=0;o<g;++o)isNaN(l=+this._x.call(null,i=n[o]))||isNaN(f=+this._y.call(null,i))||(w[o]=l,m[o]=f,l<k&&(k=l),l>B&&(B=l),f<S&&(S=f),f>z&&(z=f));if(k>B||S>z)return this;for(this.cover(k,S).cover(B,z),o=0;o<g;++o)vm(this,w[o],m[o],n[o]);return this},Ia.cover=function(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var o=this._x0,l=this._y0,f=this._x1,g=this._y1;if(isNaN(o))f=(o=Math.floor(n))+1,g=(l=Math.floor(i))+1;else{for(var w,m,k=f-o,S=this._root;o>n||n>=f||l>i||i>=g;)switch(m=(i<l)<<1|n<o,(w=new Array(4))[m]=S,S=w,k*=2,m){case 0:f=o+k,g=l+k;break;case 1:o=f-k,g=l+k;break;case 2:f=o+k,l=g-k;break;case 3:o=f-k,l=g-k}this._root&&this._root.length&&(this._root=S)}return this._x0=o,this._y0=l,this._x1=f,this._y1=g,this},Ia.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},Ia.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ia.find=function(n,i,o){var l,f,g,w,m,k,S,B=this._x0,z=this._y0,O=this._x1,q=this._y1,H=[],et=this._root;for(et&&H.push(new La(et,B,z,O,q)),o==null?o=1/0:(B=n-o,z=i-o,O=n+o,q=i+o,o*=o);k=H.pop();)if(!(!(et=k.node)||(f=k.x0)>O||(g=k.y0)>q||(w=k.x1)<B||(m=k.y1)<z))if(et.length){var J=(f+w)/2,Z=(g+m)/2;H.push(new La(et[3],J,Z,w,m),new La(et[2],f,Z,J,m),new La(et[1],J,g,w,Z),new La(et[0],f,g,J,Z)),(S=(i>=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<o){var zt=Math.sqrt(o=bt);B=n-zt,z=i-zt,O=n+zt,q=i+zt,l=et.data}}return l},Ia.remove=function(n){if(isNaN(g=+this._x.call(null,n))||isNaN(w=+this._y.call(null,n)))return this;var i,o,l,f,g,w,m,k,S,B,z,O,q=this._root,H=this._x0,et=this._y0,J=this._x1,Z=this._y1;if(!q)return this;if(q.length)for(;;){if((S=g>=(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;i<o;++i)this.remove(n[i]);return this},Ia.root=function(){return this._root},Ia.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},Ia.visit=function(n){var i,o,l,f,g,w,m=[],k=this._root;for(k&&m.push(new La(k,this._x0,this._y0,this._x1,this._y1));i=m.pop();)if(!n(k=i.node,l=i.x0,f=i.y0,g=i.x1,w=i.y1)&&k.length){var S=(l+g)/2,B=(f+w)/2;(o=k[3])&&m.push(new La(o,S,B,g,w)),(o=k[2])&&m.push(new La(o,l,B,S,w)),(o=k[1])&&m.push(new La(o,S,f,g,B)),(o=k[0])&&m.push(new La(o,l,f,S,B))}return this},Ia.visitAfter=function(n){var i,o=[],l=[];for(this._root&&o.push(new La(this._root,this._x0,this._y0,this._x1,this._y1));i=o.pop();){var f=i.node;if(f.length){var g,w=i.x0,m=i.y0,k=i.x1,S=i.y1,B=(w+k)/2,z=(m+S)/2;(g=f[0])&&o.push(new La(g,w,m,B,z)),(g=f[1])&&o.push(new La(g,B,m,k,z)),(g=f[2])&&o.push(new La(g,w,z,B,S)),(g=f[3])&&o.push(new La(g,B,z,k,S))}l.push(i)}for(;i=l.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},Ia.x=function(n){return arguments.length?(this._x=n,this):this._x},Ia.y=function(n){return arguments.length?(this._y=n,this):this._y};var su=Math.PI*(3-Math.sqrt(5));function G5(n){var i,o=1,l=.001,f=1-Math.pow(l,1/300),g=0,w=.6,m=zs(),k=we(B),S=ln("tick","end");function B(){z(),S.call("tick",i),o<l&&(k.stop(),S.call("end",i))}function z(H){var et,J,Z=n.length;H===void 0&&(H=1);for(var st=0;st<H;++st)for(o+=(g-o)*f,m.each(function(at){at(o)}),et=0;et<Z;++et)(J=n[et]).fx==null?J.x+=J.vx*=w:(J.x=J.fx,J.vx=0),J.fy==null?J.y+=J.vy*=w:(J.y=J.fy,J.vy=0);return i}function O(){for(var H,et=0,J=n.length;et<J;++et){if((H=n[et]).index=et,H.fx!=null&&(H.x=H.fx),H.fy!=null&&(H.y=H.fy),isNaN(H.x)||isNaN(H.y)){var Z=10*Math.sqrt(et),st=et*su;H.x=Z*Math.cos(st),H.y=Z*Math.sin(st)}(isNaN(H.vx)||isNaN(H.vy))&&(H.vx=H.vy=0)}}function q(H){return H.initialize&&H.initialize(n),H}return n==null&&(n=[]),O(),i={tick:z,restart:function(){return k.restart(B),i},stop:function(){return k.stop(),i},nodes:function(H){return arguments.length?(n=H,O(),m.each(q),i):n},alpha:function(H){return arguments.length?(o=+H,i):o},alphaMin:function(H){return arguments.length?(l=+H,i):l},alphaDecay:function(H){return arguments.length?(f=+H,i):+f},alphaTarget:function(H){return arguments.length?(g=+H,i):g},velocityDecay:function(H){return arguments.length?(w=1-H,i):1-w},force:function(H,et){return arguments.length>1?(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;Qt<ae;++Qt)(at=(Z=H-(bt=n[Qt]).x)*Z+(st=et-bt.y)*st)<J&&(zt=bt,J=at);return zt},on:function(H,et){return arguments.length>1?(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<H;++q)i=n[q],et.visit(z)}function S(){if(n){var O,q,H=n.length;for(l=new Array(H),O=0;O<H;++O)q=n[O],l[q.index]=+f(q,O,n)}}function B(O){var q,H,et,J,Z,st=0,at=0;if(O.length){for(et=J=Z=0;Z<4;++Z)(q=O[Z])&&(H=Math.abs(q.value))&&(st+=q.value,at+=H,et+=H*q.x,J+=H*q.y);O.x=et/at,O.y=J/at}else{(q=O).x=q.data.x,q.y=q.data.y;do st+=l[q.data.index];while(q=q.next)}O.value=st}function z(O,q,H,et){if(!O.value)return!0;var J=O.x-i.x,Z=O.y-i.y,st=et-q,at=J*J+Z*Z;if(st*st/m<at)return at<w&&(J===0&&(at+=(J=Tc())*J),Z===0&&(at+=(Z=Tc())*Z),at<g&&(at=Math.sqrt(g*at)),i.vx+=J*O.value*o/at,i.vy+=Z*O.value*o/at),!0;if(!(O.length||at>=w)){(O.data!==i||O.next)&&(J===0&&(at+=(J=Tc())*J),Z===0&&(at+=(Z=Tc())*Z),at<g&&(at=Math.sqrt(g*at)));do O.data!==i&&(st=l[O.data.index]*o/at,i.vx+=J*st,i.vy+=Z*st);while(O=O.next)}}return k.initialize=function(O){n=O,S()},k.strength=function(O){return arguments.length?(f=typeof O=="function"?O:Ui(+O),S(),k):f},k.distanceMin=function(O){return arguments.length?(g=O*O,k):Math.sqrt(g)},k.distanceMax=function(O){return arguments.length?(w=O*O,k):Math.sqrt(w)},k.theta=function(O){return arguments.length?(m=O*O,k):Math.sqrt(m)},k}function Z5(n,i,o){var l,f,g,w=Ui(.1);function m(S){for(var B=0,z=l.length;B<z;++B){var O=l[B],q=O.x-i||1e-6,H=O.y-o||1e-6,et=Math.sqrt(q*q+H*H),J=(g[B]-et)*f[B]*S/et;O.vx+=q*J,O.vy+=H*J}}function k(){if(l){var S,B=l.length;for(f=new Array(B),g=new Array(B),S=0;S<B;++S)g[S]=+n(l[S],S,l),f[S]=isNaN(g[S])?0:+w(l[S],S,l)}}return typeof n!="function"&&(n=Ui(+n)),i==null&&(i=0),o==null&&(o=0),m.initialize=function(S){l=S,k()},m.strength=function(S){return arguments.length?(w=typeof S=="function"?S:Ui(+S),k(),m):w},m.radius=function(S){return arguments.length?(n=typeof S=="function"?S:Ui(+S),k(),m):n},m.x=function(S){return arguments.length?(i=+S,m):i},m.y=function(S){return arguments.length?(o=+S,m):o},m}function _m(n){var i,o,l,f=Ui(.1);function g(m){for(var k,S=0,B=i.length;S<B;++S)(k=i[S]).vx+=(l[S]-k.x)*o[S]*m}function w(){if(i){var m,k=i.length;for(o=new Array(k),l=new Array(k),m=0;m<k;++m)o[m]=isNaN(l[m]=+n(i[m],m,i))?0:+f(i[m],m,i)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),g.initialize=function(m){i=m,w()},g.strength=function(m){return arguments.length?(f=typeof m=="function"?m:Ui(+m),w(),g):f},g.x=function(m){return arguments.length?(n=typeof m=="function"?m:Ui(+m),w(),g):n},g}function zp(n){var i,o,l,f=Ui(.1);function g(m){for(var k,S=0,B=i.length;S<B;++S)(k=i[S]).vy+=(l[S]-k.y)*o[S]*m}function w(){if(i){var m,k=i.length;for(o=new Array(k),l=new Array(k),m=0;m<k;++m)o[m]=isNaN(l[m]=+n(i[m],m,i))?0:+f(i[m],m,i)}}return typeof n!="function"&&(n=Ui(n==null?0:+n)),g.initialize=function(m){i=m,w()},g.strength=function(m){return arguments.length?(f=typeof m=="function"?m:Ui(+m),w(),g):f},g.y=function(m){return arguments.length?(n=typeof m=="function"?m:Ui(+m),w(),g):n},g}function Mh(n,i){if((o=(n=i?n.toExponential(i-1):n.toExponential()).indexOf("e"))<0)return null;var o,l=n.slice(0,o);return[l.length>1?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;zn<Un;++zn)switch(yn[zn]){case".":vr=kr=zn;break;case"0":vr===0&&(vr=zn),kr=zn;break;default:if(!+yn[zn])break t;vr>0&&(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<ie;)if(48>(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<st?new Array(st-lr+1).join(q):"";switch(at&&Z&&(St=l(Vn+St,Vn.length?st-cn.length:1/0),Vn=""),H){case"<":St=Ze+St+cn+Vn;break;case"=":St=Ze+Vn+St+cn;break;case"^":St=Vn.slice(0,lr=Vn.length>>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<f;)qs(o[l].geometry,i)}},uu={Sphere:function(n,i){i.sphere()},Point:function(n,i){n=n.coordinates,i.point(n[0],n[1],n[2])},MultiPoint:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)n=o[l],i.point(n[0],n[1],n[2])},LineString:function(n,i){hu(n.coordinates,i,0)},MultiLineString:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)hu(o[l],i,0)},Polygon:function(n,i){Oh(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)Oh(o[l],i)},GeometryCollection:function(n,i){for(var o=n.geometries,l=-1,f=o.length;++l<f;)qs(o[l],i)}};function hu(n,i,o){var l,f=-1,g=n.length-o;for(i.lineStart();++f<g;)l=n[f],i.point(l[0],l[1],l[2]);i.lineEnd()}function Oh(n,i){var o=-1,l=n.length;for(i.polygonStart();++o<l;)hu(n[o],i,1);i.polygonEnd()}function Ro(n,i){n&&Ra.hasOwnProperty(n.type)?Ra[n.type](n,i):qs(n,i)}var Wp,Om,$p,Hp,Vp,O0=Ec(),B0=Ec(),so={point:Sr,lineStart:Sr,lineEnd:Sr,polygonStart:function(){O0.reset(),so.lineStart=Gp,so.lineEnd=Bm},polygonEnd:function(){var n=+O0;B0.add(n<0?Fr+n:n),this.lineStart=this.lineEnd=this.point=Sr},sphere:function(){B0.add(Fr)}};function Gp(){so.point=Lm}function Bm(){mo(Wp,Om)}function Lm(n,i){so.point=mo,Wp=n,Om=i,$p=n*=Bn,Hp=En(i=(i*=Bn)/2+cu),Vp=mn(i)}function mo(n,i){var o=(n*=Bn)-$p,l=o>=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]),i<Pa&&(Pa=i),i>Ga&&(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*Ac<k&&k<m*n)?(g=f[1]*Wr)>Ga&&(Ga=g):S^(m*Ac<(k=(k+360)%360-180)&&k<m*n)?(g=-f[1]*Wr)<Pa&&(Pa=g):(i<Pa&&(Pa=i),i>Ga&&(Ga=i)),S?n<Ac?za(Xr,n)>za(Xr,di)&&(di=n):za(n,di)>za(Xr,di)&&(Xr=n):di>=Xr?(n<Xr&&(Xr=n),n>di&&(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]);i<Pa&&(Pa=i),i>Ga&&(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]:i<n[0]||n[1]<i}function Yh(n){var i,o,l,f,g,w,m;if(Ga=di=-(Xr=Pa=1/0),Yo=[],Ro(n,zo),o=Yo.length){for(Yo.sort(t2),i=1,g=[l=Yo[0]];i<o;++i)bu(l,(f=Yo[i])[0])||bu(l,f[1])?(za(l[0],f[1])>za(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 f<Dh&&(i=yu,o=vo,l=Fh,Lh<Gn&&(i=Ih,o=pl,l=gu),(f=i*i+o*o+l*l)<Dh)?[NaN,NaN]:[ha(o,i)*Wr,Fa(l/Ai(f))*Wr]}function _u(n){return function(){return n}}function e2(n,i){function o(l,f){return l=n(l,f),i(l[0],l[1])}return n.invert&&i.invert&&(o.invert=function(l,f){return(l=i.invert(l,f))&&n.invert(l[0],l[1])}),o}function Y0(n,i){return[ze(n)>ur?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?f<g:f>g)&&(f+=l*Fr));for(var S,B=f;l>0?B>g:B<g;B-=k)S=L0([w,-m*En(B),-m*mn(B)]),n.point(S[0],S[1])}}function r2(n,i){(i=Po(i))[0]-=n,Bh(i);var o=Sc(-i[1]);return((-i[2]<0?-o:o)+Fr-Gn)%Fr}function nb(){var n,i,o=_u([0,0]),l=_u(90),f=_u(6),g={point:function(m,k){n.push(m=i(m,k)),m[0]*=Wr,m[1]*=Wr}};function w(){var m=o.apply(this,arguments),k=l.apply(this,arguments)*Bn,S=f.apply(this,arguments)*Bn;return n=[],i=z0(-m[0]*Bn,-m[1]*Bn,0).invert,qm(g,k,S,1),m={type:"Polygon",coordinates:[n]},n=i=null,m}return w.center=function(m){return arguments.length?(o=typeof m=="function"?m:_u([+m[0],+m[1]]),w):o},w.radius=function(m){return arguments.length?(l=typeof m=="function"?m:_u(+m),w):l},w.precision=function(m){return arguments.length?(f=typeof m=="function"?m:_u(+m),w):f},w}function Wm(){var n,i=[];return{point:function(o,l,f){n.push([o,l,f])},lineStart:function(){i.push(n=[])},lineEnd:Sr,rejoin:function(){i.length>1&&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])<Gn&&ze(n[1]-i[1])<Gn}function U0(n,i,o,l){this.x=n,this.z=i,this.o=o,this.e=l,this.v=!1,this.n=this.p=null}function $m(n,i,o,l,f){var g,w,m=[],k=[];if(n.forEach(function(H){if(!((et=H.length-1)<=0)){var et,J,Z=H[0],st=H[et];if(j0(Z,st)){if(!Z[2]&&!st[2]){for(f.lineStart(),g=0;g<et;++g)f.point((Z=H[g])[0],Z[1]);return void f.lineEnd()}st[0]+=2e-6}m.push(J=new U0(Z,H,null,!0)),k.push(J.o=new U0(Z,null,J,!1)),m.push(J=new U0(st,H,null,!1)),k.push(J.o=new U0(st,null,J,!0))}}),m.length){for(k.sort(i),Hm(m),Hm(k),g=0,w=k.length;g<w;++g)k[g].e=o=!o;for(var S,B,z=m[0];;){for(var O=z,q=!0;O.v;)if((O=O.n)===z)return;S=O.z,f.lineStart();do{if(O.v=O.o.v=!0,O.e){if(q)for(g=0,w=S.length;g<w;++g)f.point((B=S[g])[0],B[1]);else l(O.x,O.n.x,1,f);O=O.n}else{if(q)for(S=O.p.z,g=S.length-1;g>=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<i;)f.n=o=n[l],o.p=f,f=o;f.n=o=n[0],o.p=f}}Y0.invert=Y0;var i2=Ec();function q0(n){return ze(n[0])<=ur?n[0]:Cr(n[0])*((ze(n[0])+ur)%Fr-ur)}function Vm(n,i){var o=q0(i),l=i[1],f=mn(l),g=[mn(o),-En(o),0],w=0,m=0;i2.reset(),f===1?l=_i+Gn:f===-1&&(l=-_i-Gn);for(var k=0,S=n.length;k<S;++k)if(z=(B=n[k]).length)for(var B,z,O=B[z-1],q=q0(O),H=O[1]/2+cu,et=mn(H),J=En(H),Z=0;Z<z;++Z,q=at,et=zt,J=Qt,O=st){var st=B[Z],at=q0(st),bt=st[1]/2+cu,zt=mn(bt),Qt=En(bt),ae=at-q,Oe=ae>=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||w<Gn&&i2<-1e-6)^1&m}function Gm(n,i,o,l){return function(f){var g,w,m,k=i(f),S=Wm(),B=i(S),z=!1,O={point:q,lineStart:et,lineEnd:J,polygonStart:function(){O.point=Z,O.lineStart=st,O.lineEnd=at,w=[],g=[]},polygonEnd:function(){O.point=q,O.lineStart=et,O.lineEnd=J,w=_e(w);var bt=Vm(g,l);w.length?(z||(f.polygonStart(),z=!0),$m(w,Xm,bt,o,f)):bt&&(z||(f.polygonStart(),z=!0),f.lineStart(),o(null,null,1,f),f.lineEnd()),z&&(f.polygonEnd(),z=!1),w=g=null},sphere:function(){f.polygonStart(),f.lineStart(),o(null,null,1,f),f.lineEnd(),f.polygonEnd()}};function q(bt,zt){n(bt,zt)&&f.point(bt,zt)}function H(bt,zt){k.point(bt,zt)}function et(){O.point=H,k.lineStart()}function J(){O.point=q,k.lineEnd()}function Z(bt,zt){m.push([bt,zt]),B.point(bt,zt)}function st(){B.lineStart(),m=[]}function at(){Z(m[0][0],m[0][1]),B.lineEnd();var bt,zt,Qt,ae,Oe=B.clean(),$t=S.result(),fe=$t.length;if(m.pop(),g.push(m),m=null,fe)if(1&Oe){if((zt=(Qt=$t[0]).length-1)>0){for(z||(f.polygonStart(),z=!0),f.lineStart(),bt=0;bt<zt;++bt)f.point((ae=Qt[bt])[0],ae[1]);f.lineEnd()}}else fe>1&&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)<Gn?(n.point(o,l=(l+w)/2>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&&(o-=f*Gn),ze(g-m)<Gn&&(g-=m*Gn),l=function(S,B,z,O){var q,H,et=mn(S-z);return ze(et)>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]<i[0]?ur:-ur;f=o*g/2,l.point(-g,f),l.point(0,f),l.point(g,f)}else l.point(i[0],i[1])},[-ur,-_i]);function Zm(n){var i=En(n),o=6*Bn,l=i>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];St<gt&&(fe=gt,gt=St,St=fe);var ce=St-gt,Ze=ze(ce-ur)<Gn;if(!Ze&&ie<oe&&(fe=oe,oe=ie,ie=fe),Ze||ce<Gn?Ze?oe+ie>0^$t[1]<(ze($t[0]-gt)<Gn?oe:ie):oe<=$t[1]&&$t[1]<=ie:ce>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)<Gn?B>0?0:3:ze(S[0]-o)<Gn?B>0?2:1:ze(S[1]-i)<Gn?B>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;ie<ce;++ie)for(var Ze,cn,On=z[ie],lr=1,Vn=On.length,yn=On[0],kr=yn[0],Un=yn[1];lr<Vn;++lr)Ze=kr,cn=Un,kr=(yn=On[lr])[0],Un=yn[1],cn<=l?Un>l&&(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(yn<zn)return;yn<vr&&(vr=yn)}else if(va>0){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(yn<zn)return;yn<vr&&(vr=yn)}if(yn=On-Un,Pi||!(yn>0)){if(yn/=Pi,Pi<0){if(yn<zn)return;yn<vr&&(vr=yn)}else if(Pi>0){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(yn<zn)return;yn<vr&&(vr=yn)}return zn>0&&(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;++l<f;)if(Q0(o[l].geometry,i))return!0;return!1}},s2={Sphere:function(){return!0},Point:function(n,i){return Km(n.coordinates,i)},MultiPoint:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)if(Km(o[l],i))return!0;return!1},LineString:function(n,i){return t3(n.coordinates,i)},MultiLineString:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)if(t3(o[l],i))return!0;return!1},Polygon:function(n,i){return e3(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,l=-1,f=o.length;++l<f;)if(e3(o[l],i))return!0;return!1},GeometryCollection:function(n,i){for(var o=n.geometries,l=-1,f=o.length;++l<f;)if(Q0(o[l],i))return!0;return!1}};function Q0(n,i){return!(!n||!s2.hasOwnProperty(n.type))&&s2[n.type](n,i)}function Km(n,i){return Z0(n,i)===0}function t3(n,i){for(var o,l,f,g=0,w=n.length;g<w;g++){if((l=Z0(n[g],i))===0||g>0&&(f=Z0(n[g],n[g-1]))>0&&o<=f&&l<=f&&(o+l-f)*(1-Math.pow((o-l)/f,2))<Dh*f)return!0;o=l}return!1}function e3(n,i){return!!Vm(n.map(lb),n3(i))}function lb(n){return(n=n.map(n3)).pop(),n}function n3(n){return[n[0]*Bn,n[1]*Bn]}function r3(n,i){return(n&&Jm.hasOwnProperty(n.type)?Jm[n.type]:Q0)(n,i)}function i3(n,i,o){var l=jt(n,i-Gn,o).concat(i);return function(f){return l.map(function(g){return[f,g]})}}function a3(n,i,o){var l=jt(n,i-Gn,o).concat(i);return function(f){return l.map(function(g){return[g,f]})}}function o3(){var n,i,o,l,f,g,w,m,k,S,B,z,O=10,q=O,H=90,et=360,J=2.5;function Z(){return{type:"MultiLineString",coordinates:st()}}function st(){return jt(ds(l/H)*H,o,H).map(B).concat(jt(ds(m/et)*et,w,et).map(z)).concat(jt(ds(i/O)*O,n,O).filter(function(at){return ze(at%H)>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){n<Hs&&(Hs=n),n>gs&&(gs=n),i<Nc&&(Nc=i),i>Dc&&(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)<Gn||ze(m-q)<Gn?(m+q)/2:ha(ae,Qt),St=o(gt,fe),oe=St[0],ie=St[1],ce=oe-g,Ze=ie-w,cn=bt*ce-at*Ze;(cn*cn/zt>l||ze((at*ce+bt*Ze)/zt-.5)>.3||k*H+S*et+B*J<yb)&&(f(g,w,m,k,S,B,oe,ie,gt,Qt/=$t,ae/=$t,Oe,Z,st),st.point(oe,ie),f(oe,ie,gt,Qt,ae,Oe,z,O,q,H,et,J,Z,st))}}return function(g){var w,m,k,S,B,z,O,q,H,et,J,Z,st={point:at,lineStart:bt,lineEnd:Qt,polygonStart:function(){g.polygonStart(),st.lineStart=ae},polygonEnd:function(){g.polygonEnd(),st.lineStart=bt}};function at(fe,gt){fe=o(fe,gt),g.point(fe[0],fe[1])}function bt(){q=NaN,st.point=zt,g.lineStart()}function zt(fe,gt){var St=Po([fe,gt]),oe=o(fe,gt);f(q,H,O,et,J,Z,q=oe[0],H=oe[1],O=fe,et=St[0],J=St[1],Z=St[2],16,g),g.point(q,H)}function Qt(){st.point=at,g.lineEnd()}function ae(){bt(),st.point=Oe,st.lineEnd=$t}function Oe(fe,gt){zt(w=fe,gt),m=q,k=H,S=et,B=J,z=Z,st.point=zt}function $t(){f(q,H,O,et,J,Z,m,k,w,S,B,z,16,g),st.lineEnd=Qt,Qt()}return st}}(n,i):function(o){return Jh({point:function(l,f){l=o(l,f),this.stream.point(l[0],l[1])}})}(n)}var mb=Jh({point:function(n,i){this.stream.point(n*Bn,i*Bn)}});function vb(n,i,o,l,f){function g(w,m){return[i+n*(w*=l),o-n*(m*=f)]}return g.invert=function(w,m){return[(w-i)/n*l,(o-m)/n*f]},g}function _3(n,i,o,l,f,g){var w=En(g),m=mn(g),k=w*n,S=m*n,B=w/n,z=m/n,O=(m*o-w*i)/n,q=(m*i+w*o)/n;function H(et,J){return[k*(et*=l)-S*(J*=f)+i,o-S*et-k*J]}return H.invert=function(et,J){return[l*(B*et-z*J+O),f*(q-z*et-B*J)]},H}function Wo(n){return _2(function(){return n})()}function _2(n){var i,o,l,f,g,w,m,k,S,B,z=150,O=480,q=250,H=0,et=0,J=0,Z=0,st=0,at=0,bt=1,zt=1,Qt=null,ae=a2,Oe=null,$t=qh,fe=.5;function gt(ce){return k(ce[0]*Bn,ce[1]*Bn)}function St(ce){return(ce=k.invert(ce[0],ce[1]))&&[ce[0]*Wr,ce[1]*Wr]}function oe(){var ce=_3(z,0,0,bt,zt,at).apply(null,i(H,et)),Ze=(at?_3:vb)(z,O-ce[0],q-ce[1],bt,zt,at);return o=z0(J,Z,st),m=e2(i,Ze),k=e2(o,m),w=b3(m,fe),ie()}function ie(){return S=B=null,gt}return gt.stream=function(ce){return S&&B===ce?S:S=mb(function(Ze){return Jh({point:function(cn,On){var lr=Ze(cn,On);return this.stream.point(lr[0],lr[1])}})}(o)(ae(w($t(B=ce)))))},gt.preclip=function(ce){return arguments.length?(ae=ce,Qt=void 0,ie()):ae},gt.postclip=function(ce){return arguments.length?($t=ce,Oe=l=f=g=null,ie()):$t},gt.clipAngle=function(ce){return arguments.length?(ae=+ce?Zm(Qt=ce*Bn):(Qt=null,a2),ie()):Qt*Wr},gt.clipExtent=function(ce){return arguments.length?($t=ce==null?(Oe=l=f=g=null,qh):$0(Oe=+ce[0][0],l=+ce[0][1],f=+ce[1][0],g=+ce[1][1]),ie()):Oe==null?null:[[Oe,l],[f,g]]},gt.scale=function(ce){return arguments.length?(z=+ce,oe()):z},gt.translate=function(ce){return arguments.length?(O=+ce[0],q=+ce[1],oe()):[O,q]},gt.center=function(ce){return arguments.length?(H=ce[0]%360*Bn,et=ce[1]%360*Bn,oe()):[H*Wr,et*Wr]},gt.rotate=function(ce){return arguments.length?(J=ce[0]%360*Bn,Z=ce[1]%360*Bn,st=ce.length>2?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)<Gn)return function(m){var k=En(m);function S(B,z){return[B*k,mn(z)/k]}return S.invert=function(B,z){return[B/k,Fa(z*k)]},S}(n);var f=1+o*(2*l-o),g=Ai(f)/l;function w(m,k){var S=Ai(f-2*l*mn(k))/l;return[S*mn(m*=l),g-S*En(m)]}return w.invert=function(m,k){var S=g-k,B=ha(m,ze(S))*Cr(S);return S*l<0&&(B-=ur*Cr(m)*Cr(S)),[B/l,Fa((f-(m*m+S*S)*l*l)/(2*l))]},w}function sf(){return x2(x3).scale(155.424).center([0,33.6442])}function w3(){return sf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Gs(){var n,i,o,l,f,g,w=w3(),m=sf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),k=sf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),S={point:function(O,q){g=[O,q]}};function B(O){var q=O[0],H=O[1];return g=null,o.point(q,H),g||(l.point(q,H),g)||(f.point(q,H),g)}function z(){return n=i=null,B}return B.invert=function(O){var q=w.scale(),H=w.translate(),et=(O[0]-H[0])/q,J=(O[1]-H[1])/q;return(J>=.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;++Z<H;)q[Z].point(et,J)},sphere:function(){for(var et=-1;++et<H;)q[et].sphere()},lineStart:function(){for(var et=-1;++et<H;)q[et].lineStart()},lineEnd:function(){for(var et=-1;++et<H;)q[et].lineEnd()},polygonStart:function(){for(var et=-1;++et<H;)q[et].polygonStart()},polygonEnd:function(){for(var et=-1;++et<H;)q[et].polygonEnd()}});var q,H},B.precision=function(O){return arguments.length?(w.precision(O),m.precision(O),k.precision(O),z()):w.precision()},B.scale=function(O){return arguments.length?(w.scale(O),m.scale(.35*O),k.scale(O),B.translate(w.translate())):w.scale()},B.translate=function(O){if(!arguments.length)return w.translate();var q=w.scale(),H=+O[0],et=+O[1];return o=w.translate(O).clipExtent([[H-.455*q,et-.238*q],[H+.455*q,et+.238*q]]).stream(S),l=m.translate([H-.307*q,et+.201*q]).clipExtent([[H-.425*q+Gn,et+.12*q+Gn],[H-.214*q-Gn,et+.234*q-Gn]]).stream(S),f=k.translate([H-.205*q,et+.212*q]).clipExtent([[H-.214*q+Gn,et+.166*q+Gn],[H-.115*q-Gn,et+.234*q-Gn]]).stream(S),z()},B.fitExtent=function(O,q){return of(B,O,q)},B.fitSize=function(O,q){return m2(B,O,q)},B.fitWidth=function(O,q){return v2(B,O,q)},B.fitHeight=function(O,q){return b2(B,O,q)},B.scale(1070)}function w2(n){return function(i,o){var l=En(i),f=En(o),g=n(l*f);return[g*f*mn(i),g*mn(o)]}}function lo(n){return function(i,o){var l=Ai(i*i+o*o),f=n(l),g=mn(f),w=En(f);return[ha(i*g,l*w),Fa(l&&o*g/l)]}}var k2=w2(function(n){return Ai(2/(1+n))});function bb(){return Wo(k2).scale(124.75).clipAngle(179.999)}k2.invert=lo(function(n){return 2*Fa(n/2)});var T2=w2(function(n){return(n=Sc(n))&&n/mn(n)});function E2(){return Wo(T2).scale(79.4188).clipAngle(179.999)}function Kh(n,i){return[n,lu(Ji((_i+i)/2))]}function _b(){return C2(Kh).scale(961/Fr)}function C2(n){var i,o,l,f=Wo(n),g=f.center,w=f.scale,m=f.translate,k=f.clipExtent,S=null;function B(){var z=ur*w(),O=f(n2(f.rotate()).invert([0,0]));return k(S==null?[[O[0]-z,O[1]-z],[O[0]+z,O[1]+z]]:n===Kh?[[Math.max(O[0]-z,S),i],[Math.min(O[0]+z,o),l]]:[[S,Math.max(O[1]-z,i)],[o,Math.min(O[1]+z,l)]])}return f.scale=function(z){return arguments.length?(w(z),B()):w()},f.translate=function(z){return arguments.length?(m(z),B()):m()},f.center=function(z){return arguments.length?(g(z),B()):g()},f.clipExtent=function(z){return arguments.length?(z==null?S=i=o=l=null:(S=+z[0][0],i=+z[0][1],o=+z[1][0],l=+z[1][1]),B()):S==null?null:[[S,i],[o,l]]},B()}function t1(n){return Ji((_i+n)/2)}function S2(n,i){var o=En(n),l=n===i?mn(n):lu(o/En(i))/lu(t1(i)/t1(n)),f=o*N0(t1(n),l)/l;if(!l)return Kh;function g(w,m){f>0?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)<Gn)return e1;function g(w,m){var k=f-m,S=l*w;return[k*mn(S),f-k*En(S)]}return g.invert=function(w,m){var k=f-m,S=ha(w,ze(k))*Cr(k);return k*l<0&&(S-=ur*Cr(w)*Cr(k)),[S/l,f-Cr(l)*Ai(w*w+k*k)]},g}function T3(){return x2(k3).scale(131.154).center([0,13.9389])}T2.invert=lo(function(n){return n}),Kh.invert=function(n,i){return[n,2*Cc(Dm(i))-_i]},e1.invert=e1;var Lc=1.340264,n1=-.081106,r1=893e-6,i1=.003796,cf=Ai(3)/2;function A2(n,i){var o=Fa(cf*mn(i)),l=o*o,f=l*l*l;return[n*En(o)/(cf*(Lc+3*n1*l+f*(7*r1+9*i1*l))),o*(Lc+n1*l+f*(r1+i1*l))]}function kb(){return Wo(A2).scale(177.158)}function a1(n,i){var o=En(i),l=En(n)*o;return[o*mn(n)/l,mn(i)/l]}function E3(){return Wo(a1).scale(144.049).clipAngle(60)}function lf(){var n,i,o,l,f,g,w,m=1,k=0,S=0,B=1,z=1,O=0,q=null,H=1,et=1,J=Jh({point:function(bt,zt){var Qt=at([bt,zt]);this.stream.point(Qt[0],Qt[1])}}),Z=qh;function st(){return H=m*B,et=m*z,g=w=null,at}function at(bt){var zt=bt[0]*H,Qt=bt[1]*et;if(O){var ae=Qt*n-zt*i;zt=zt*n+Qt*i,Qt=ae}return[zt+k,Qt+S]}return at.invert=function(bt){var zt=bt[0]-k,Qt=bt[1]-S;if(O){var ae=Qt*n+zt*i;zt=zt*n-Qt*i,Qt=ae}return[zt/H,Qt/et]},at.stream=function(bt){return g&&w===bt?g:g=J(Z(w=bt))},at.postclip=function(bt){return arguments.length?(Z=bt,q=o=l=f=null,st()):Z},at.clipExtent=function(bt){return arguments.length?(Z=bt==null?(q=o=l=f=null,qh):$0(q=+bt[0][0],o=+bt[0][1],l=+bt[1][0],f=+bt[1][1]),st()):q==null?null:[[q,o],[l,f]]},at.scale=function(bt){return arguments.length?(m=+bt,st()):m},at.translate=function(bt){return arguments.length?(k=+bt[0],S=+bt[1],st()):[k,S]},at.angle=function(bt){return arguments.length?(i=mn(O=bt%360*Bn),n=En(O),st()):O*Wr},at.reflectX=function(bt){return arguments.length?(B=bt?-1:1,st()):B<0},at.reflectY=function(bt){return arguments.length?(z=bt?-1:1,st()):z<0},at.fitExtent=function(bt,zt){return of(at,bt,zt)},at.fitSize=function(bt,zt){return m2(at,bt,zt)},at.fitWidth=function(bt,zt){return v2(at,bt,zt)},at.fitHeight=function(bt,zt){return b2(at,bt,zt)},at}function M2(n,i){var o=i*i,l=o*o;return[n*(.8707-.131979*o+l*(l*(.003971*o-.001529*l)-.013791)),i*(1.007226+o*(.015085+l*(.028874*o-.044475-.005916*l)))]}function Tb(){return Wo(M2).scale(175.295)}function N2(n,i){return[En(i)*mn(n),mn(i)]}function Eb(){return Wo(N2).scale(249.5).clipAngle(90.000001)}function D2(n,i){var o=En(i),l=1+En(n)*o;return[o*mn(n)/l,mn(i)/l]}function Cb(){return Wo(D2).scale(250).clipAngle(142)}function uf(n,i){return[lu(Ji((_i+i)/2)),-n]}function Sb(){var n=C2(uf),i=n.center,o=n.rotate;return n.center=function(l){return arguments.length?i([-l[1],l[0]]):[(l=i())[1],-l[0]]},n.rotate=function(l){return arguments.length?o([l[0],l[1],l.length>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)<Dh));++w);return[cf*n*(Lc+3*n1*f+g*(7*r1+9*i1*f))/En(l),Fa(mn(l)/cf)]},a1.invert=lo(Cc),M2.invert=function(n,i){var o,l=i,f=25;do{var g=l*l,w=g*g;l-=o=(l*(1.007226+g*(.015085+w*(.028874*g-.044475-.005916*w)))-i)/(1.007226+g*(.045255+w*(.259866*g-.311325-.005916*11*w)))}while(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<f;++l)w.push(o[l]);while(w.length);return this},eachAfter:function(n){for(var i,o,l,f=this,g=[f],w=[];f=g.pop();)if(w.push(f),i=f.children)for(o=0,l=i.length;o<l;++o)g.push(i[o]);for(;f=w.pop();)n(f);return this},eachBefore:function(n){for(var i,o,l=this,f=[l];l=f.pop();)if(n(l),i=l.children)for(o=i.length-1;o>=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=[];l<f;)i=n[l],o&&M3(o,i)?++l:(o=Bb(g=Ob(g,i)),l=0);return o}function Ob(n,i){var o,l;if(I2(i,n))return[i];for(o=0;o<n.length;++o)if(hf(i,n[o])&&I2(o1(n[o],i),n))return[n[o],i];for(o=0;o<n.length-1;++o)for(l=o+1;l<n.length;++l)if(hf(o1(n[o],n[l]),i)&&hf(o1(n[o],i),n[l])&&hf(o1(n[l],i),n[o])&&I2(N3(n[o],n[l],i),n))return[n[o],n[l],i];throw new Error}function hf(n,i){var o=n.r-i.r,l=i.x-n.x,f=i.y-n.y;return o<0||o*o<l*l+f*f}function M3(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 I2(n,i){for(var o=0;o<i.length;++o)if(!M3(n,i[o]))return!1;return!0}function Bb(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return o1(n[0],n[1]);case 3:return N3(n[0],n[1],n[2])}}function o1(n,i){var o=n.x,l=n.y,f=n.r,g=i.x,w=i.y,m=i.r,k=g-o,S=w-l,B=m-f,z=Math.sqrt(k*k+S*S);return{x:(o+g+k/z*B)/2,y:(l+w+S/z*B)/2,r:(z+f+m)/2}}function N3(n,i,o){var l=n.x,f=n.y,g=n.r,w=i.x,m=i.y,k=i.r,S=o.x,B=o.y,z=o.r,O=l-w,q=l-S,H=f-m,et=f-B,J=k-g,Z=z-g,st=l*l+f*f-g*g,at=st-w*w-m*m+k*k,bt=st-S*S-B*B+z*z,zt=q*H-O*et,Qt=(H*bt-et*at)/(2*zt)-l,ae=(et*J-H*Z)/zt,Oe=(q*at-O*bt)/(2*zt)-f,$t=(O*Z-q*J)/zt,fe=ae*ae+$t*$t-1,gt=2*(g+Qt*ae+Oe*$t),St=Qt*Qt+Oe*Oe-g*g,oe=-(fe?(gt+Math.sqrt(gt*gt-4*fe*St))/(2*fe):St/gt);return{x:l+Qt+ae*oe,y:f+Oe+$t*oe,r:oe}}function D3(n,i,o){var l,f,g,w,m=n.x-i.x,k=n.y-i.y,S=m*m+k*k;S?(f=i.r+o.r,f*=f,w=n.r+o.r,f>(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;m<f;++m){D3(i._,o._,l=n[m]),l=new ff(l),k=o.next,S=i.previous,B=o._.r,z=i._.r;do if(B<=z){if(O3(k._,l._)){o=k,i.next=o,o.previous=i,--m;continue t}B+=k._.r,k=k.next}else{if(O3(S._,l._)){(i=S).next=o,o.previous=i,--m;continue t}z+=S._.r,S=S.previous}while(k!==S.next);for(l.previous=i,l.next=o,i.next=o.previous=o=l,g=B3(i);(l=l.next)!==o;)(w=B3(l))<g&&(i=l,g=w);o=i.next}for(i=[o._],l=o;(l=l.next)!==o;)i.push(l._);for(l=A3(i),m=0;m<f;++m)(i=n[m]).x-=l.x,i.y-=l.y;return l.r}function I3(n){return L3(n),n}function Lb(n){return n==null?null:df(n)}function df(n){if(typeof n!="function")throw new Error;return n}function bl(){return 0}function Cu(n){return function(){return n}}function Ib(n){return Math.sqrt(n.value)}function Fb(){var n=null,i=1,o=1,l=bl;function f(g){return g.x=i/2,g.y=o/2,n?g.eachBefore(F3(n)).eachAfter(pf(l,.5)).eachBefore(R3(1)):g.eachBefore(F3(Ib)).eachAfter(pf(bl,1)).eachAfter(pf(l,g.r/Math.min(i,o))).eachBefore(R3(Math.min(i,o)/(2*g.r))),g}return f.radius=function(g){return arguments.length?(n=Lb(g),f):n},f.size=function(g){return arguments.length?(i=+g[0],o=+g[1],f):[i,o]},f.padding=function(g){return arguments.length?(l=typeof g=="function"?g:Cu(+g),f):l},f}function F3(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function pf(n,i){return function(o){if(l=o.children){var l,f,g,w=l.length,m=n(o)*i||0;if(m)for(f=0;f<w;++f)l[f].r+=m;if(g=L3(l),m)for(f=0;f<w;++f)l[f].r-=m;o.r=g+m}}}function R3(n){return function(i){var o=i.parent;i.r*=n,o&&(i.x=o.x+n*i.x,i.y=o.y+n*i.y)}}function P3(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function s1(n,i,o,l,f){for(var g,w=n.children,m=-1,k=w.length,S=n.value&&(l-i)/n.value;++m<k;)(g=w[m]).y0=o,g.y1=f,g.x0=i,g.x1=i+=g.value*S}function $o(){var n=1,i=1,o=0,l=!1;function f(g){var w=g.height+1;return g.x0=g.y0=o,g.x1=n,g.y1=i/w,g.eachBefore(function(m,k){return function(S){S.children&&s1(S,S.x0,m*(S.depth+1)/k,S.x1,m*(S.depth+2)/k);var B=S.x0,z=S.y0,O=S.x1-o,q=S.y1-o;O<B&&(B=O=(B+O)/2),q<z&&(z=q=(z+q)/2),S.x0=B,S.y0=z,S.x1=O,S.y1=q}}(i,w)),l&&g.eachBefore(P3),g}return f.round=function(g){return arguments.length?(l=!!g,f):l},f.size=function(g){return arguments.length?(n=+g[0],i=+g[1],f):[n,i]},f.padding=function(g){return arguments.length?(o=+g,f):o},f}var Y3={depth:-1},c1={};function Rb(n){return n.id}function z3(n){return n.parentId}function gf(){var n=Rb,i=z3;function o(l){var f,g,w,m,k,S,B,z=l.length,O=new Array(z),q={};for(g=0;g<z;++g)f=l[g],k=O[g]=new vl(f),(S=n(f,g,l))!=null&&(S+="")&&(q[B="$"+(k.id=S)]=B in q?c1:k);for(g=0;g<z;++g)if(k=O[g],(S=i(l[g],g,l))!=null&&(S+="")){if(!(m=q["$"+S]))throw new Error("missing: "+S);if(m===c1)throw new Error("ambiguous: "+S);m.children?m.children.push(k):m.children=[k],k.parent=m}else{if(w)throw new Error("multiple roots");w=k}if(!w)throw new Error("no root");if(w.parent=Y3,w.eachBefore(function(H){H.depth=H.parent.depth+1,--z}).eachBefore(L2),w.parent=null,z>0)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.x<B.x&&(B=Z),Z.x>z.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;++m<k;)(g=w[m]).x0=i,g.x1=l,g.y0=o,g.y1=o+=g.value*S}Ic.prototype=Object.create(vl.prototype);var Au=(1+Math.sqrt(5))/2;function l1(n,i,o,l,f,g){for(var w,m,k,S,B,z,O,q,H,et,J,Z=[],st=i.children,at=0,bt=0,zt=st.length,Qt=i.value;at<zt;){k=f-o,S=g-l;do B=st[bt++].value;while(!B&&bt<zt);for(z=O=B,J=B*B*(et=Math.max(S/k,k/S)/(Qt*n)),H=Math.max(O/J,J/z);bt<zt;++bt){if(B+=m=st[bt].value,m<z&&(z=m),m>O&&(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:k<S,children:st.slice(at,bt)}),w.dice?s1(w,o,l,f,Qt?l+=S*B/Qt:g):Fc(w,o,l,Qt?o+=k*B/Qt:f,g),Qt-=B,at=bt}return Z}const Rc=function n(i){function o(l,f,g,w,m){l1(i,l,f,g,w,m)}return o.ratio=function(l){return n((l=+l)>1?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<H&&(H=J=(H+J)/2),Z<et&&(et=Z=(et+Z)/2),O.x0=H,O.y0=et,O.x1=J,O.y1=Z,O.children&&(q=f[O.depth+1]=g(O)/2,H+=S(O)-q,et+=w(O)-q,(J-=m(O)-q)<H&&(H=J=(H+J)/2),(Z-=k(O)-q)<et&&(et=Z=(et+Z)/2),n(O,H,et,J,Z))}return B.round=function(O){return arguments.length?(i=!!O,B):i},B.size=function(O){return arguments.length?(o=+O[0],l=+O[1],B):[o,l]},B.tile=function(O){return arguments.length?(n=df(O),B):n},B.padding=function(O){return arguments.length?B.paddingInner(O).paddingOuter(O):B.paddingInner()},B.paddingInner=function(O){return arguments.length?(g=typeof O=="function"?O:Cu(+O),B):g},B.paddingOuter=function(O){return arguments.length?B.paddingTop(O).paddingRight(O).paddingBottom(O).paddingLeft(O):B.paddingTop()},B.paddingTop=function(O){return arguments.length?(w=typeof O=="function"?O:Cu(+O),B):w},B.paddingRight=function(O){return arguments.length?(m=typeof O=="function"?O:Cu(+O),B):m},B.paddingBottom=function(O){return arguments.length?(k=typeof O=="function"?O:Cu(+O),B):k},B.paddingLeft=function(O){return arguments.length?(S=typeof O=="function"?O:Cu(+O),B):S},B}function u1(n,i,o,l,f){var g,w,m=n.children,k=m.length,S=new Array(k+1);for(S[0]=w=g=0;g<k;++g)S[g+1]=w+=m[g].value;(function B(z,O,q,H,et,J,Z){if(z>=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<Qt;){var ae=zt+Qt>>>1;S[ae]<bt?zt=ae+1:Qt=ae}bt-S[zt-1]<S[zt]-bt&&z+1<zt&&--zt;var Oe=S[zt]-at,$t=q-Oe;if(J-H>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;++q<H;){for(B=(S=k[q]).children,z=S.value=0,O=B.length;z<O;++z)S.value+=B[z].value;S.dice?s1(S,f,g,w,g+=(m-g)*S.value/et):Fc(S,f,g,f+=(w-f)*S.value/et,m),et-=S.value}else l._squarify=k=l1(i,l,f,g,w,m),k.ratio=i}return o.ratio=function(l){return n((l=+l)>1?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);o<l;)g[o]=n(f,f=i[++o]);return function(w){var m=Math.max(0,Math.min(l-1,Math.floor(w*=l)));return g[m](w-m)}}function q3(n,i){for(var o=new Array(i),l=0;l<i;++l)o[l]=n(l/(i-1));return o}function W3(n){for(var i,o=-1,l=n.length,f=n[l-1],g=0;++o<l;)i=f,f=n[o],g+=i[1]*f[0]-i[0]*f[1];return g/2}function qb(n){for(var i,o,l=-1,f=n.length,g=0,w=0,m=n[f-1],k=0;++l<f;)i=m,m=n[l],k+=o=i[0]*m[1]-m[0]*i[1],g+=(i[0]+m[0])*o,w+=(i[1]+m[1])*o;return[g/(k*=3),w/k]}function Wb(n,i,o){return(i[0]-n[0])*(o[1]-n[1])-(i[1]-n[1])*(o[0]-n[0])}function $b(n,i){return n[0]-i[0]||n[1]-i[1]}function $3(n){for(var i=n.length,o=[0,1],l=2,f=2;f<i;++f){for(;l>1&&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<o;++i)l[i]=[+n[i][0],+n[i][1],i];for(l.sort($b),i=0;i<o;++i)f[i]=[l[i][0],-l[i][1]];var g=$3(l),w=$3(f),m=w[0]===g[0],k=w[w.length-1]===g[g.length-1],S=[];for(i=g.length-1;i>=0;--i)S.push(n[l[g[i]][2]]);for(i=+m;i<w.length-k;++i)S.push(n[l[w[i]][2]]);return S}function U2(n,i){for(var o,l,f=n.length,g=n[f-1],w=i[0],m=i[1],k=g[0],S=g[1],B=!1,z=0;z<f;++z)o=(g=n[z])[0],(l=g[1])>m!=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;++l<f;)i=w,o=m,i-=w=(g=n[l])[0],o-=m=g[1],k+=Math.sqrt(i*i+o*o);return k}function bs(){return Math.random()}const Tf=function n(i){function o(l,f){return l=l==null?0:+l,f=f==null?1:+f,arguments.length===1?(f=l,l=0):f-=l,function(){return i()*f+l}}return o.source=n,o}(bs),f1=function n(i){function o(l,f){var g,w;return l=l==null?0:+l,f=f==null?1:+f,function(){var m;if(g!=null)m=g,g=null;else do g=2*i()-1,m=2*i()-1,w=g*g+m*m;while(!w||w>1);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;g<l;++g)f+=i();return f}}return o.source=n,o}(bs),_s=function n(i){function o(l){var f=Du.source(i)(l);return function(){return f()/l}}return o.source=n,o}(bs),Hb=function n(i){function o(l){return function(){return-Math.log(1-i())/l}}return o.source=n,o}(bs);function Vo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function Zs(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var V3=Array.prototype,Ef=V3.map,_l=V3.slice,q2={name:"implicit"};function Cf(){var n=zs(),i=[],o=[],l=q2;function f(g){var w=g+"",m=n.get(w);if(!m){if(l!==q2)return l;n.set(w,m=i.push(g))}return o[(m-1)%o.length]}return f.domain=function(g){if(!arguments.length)return i.slice();i=[],n=zs();for(var w,m,k=-1,S=g.length;++k<S;)n.has(m=(w=g[k])+"")||n.set(m,i.push(w));return f},f.range=function(g){return arguments.length?(o=_l.call(g),f):o.slice()},f.unknown=function(g){return arguments.length?(l=g,f):l},f.copy=function(){return Cf(i,o).unknown(l)},Vo.apply(f,arguments),f}function Sf(){var n,i,o=Cf().unknown(void 0),l=o.domain,f=o.range,g=[0,1],w=!1,m=0,k=0,S=.5;function B(){var z=l().length,O=g[1]<g[0],q=g[O-0],H=g[1-O];n=(H-q)/Math.max(1,z-m+2*k),w&&(n=Math.floor(n)),q+=(H-q-n*(z-m))*S,i=n*(1-m),w&&(q=Math.round(q),i=Math.round(i));var et=jt(z).map(function(J){return q+n*J});return f(O?et.reverse():et)}return delete o.unknown,o.domain=function(z){return arguments.length?(l(z),B()):l()},o.range=function(z){return arguments.length?(g=[+z[0],+z[1]],B()):g.slice()},o.rangeRound=function(z){return g=[+z[0],+z[1]],w=!0,B()},o.bandwidth=function(){return i},o.step=function(){return n},o.round=function(z){return arguments.length?(w=!!z,B()):w},o.padding=function(z){return arguments.length?(m=Math.min(1,k=+z),B()):m},o.paddingInner=function(z){return arguments.length?(m=Math.min(1,z),B()):m},o.paddingOuter=function(z){return arguments.length?(k=+z,B()):k},o.align=function(z){return arguments.length?(S=Math.max(0,Math.min(1,z)),B()):S},o.copy=function(){return Sf(l(),g).round(w).paddingInner(m).paddingOuter(k).align(S)},Vo.apply(B(),arguments)}function W2(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return W2(i())},n}function d1(){return W2(Sf.apply(null,arguments).paddingInner(1))}function Af(n){return+n}var p1=[0,1];function fa(n){return n}function g1(n,i){return(i-=n=+n)?function(l){return(l-n)/i}:(o=isNaN(i)?NaN:.5,function(){return o});var o}function Za(n){var i,o=n[0],l=n[n.length-1];return o>l&&(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 f<l?(l=g1(f,l),g=o(w,g)):(l=g1(l,f),g=o(g,w)),function(m){return g(l(m))}}function X3(n,i,o){var l=Math.min(n.length,i.length)-1,f=new Array(l),g=new Array(l),w=-1;for(n[l]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++w<l;)f[w]=g1(n[w],n[w+1]),g[w]=o(i[w],i[w+1]);return function(m){var k=D(n,m,1,l)-1;return g[k](f[k](m))}}function xl(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function y1(){var n,i,o,l,f,g,w=p1,m=p1,k=il,S=fa;function B(){return l=Math.min(w.length,m.length)>2?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 k<m&&(l=m,m=k,k=l,l=g,g=w,w=l),(l=Q(m,k,o))>0?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 w<g&&(o=l,l=f,f=o,o=g,g=w,w=o),n[l]=i.floor(g),n[f]=i.ceil(w),n}function Mf(n){return Math.log(n)}function Nf(n){return Math.exp(n)}function Vb(n){return-Math.log(-n)}function Z3(n){return-Math.exp(-n)}function Gb(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Q3(n){return function(i){return-n(-i)}}function X2(n){var i,o,l=n(Mf,Nf),f=l.domain,g=10;function w(){return i=function(m){return m===Math.E?Math.log:m===10&&Math.log10||m===2&&Math.log2||(m=Math.log(m),function(k){return Math.log(k)/m})}(g),o=function(m){return m===10?Gb:m===Math.E?Math.exp:function(k){return Math.pow(m,k)}}(g),f()[0]<0?(i=Q3(i),o=Q3(o),n(Vb,Z3)):n(Mf,Nf),l}return l.base=function(m){return arguments.length?(g=+m,w()):g},l.domain=function(m){return arguments.length?(f(m),w()):f()},l.ticks=function(m){var k,S=f(),B=S[0],z=S[S.length-1];(k=z<B)&&(et=B,B=z,z=et);var O,q,H,et=i(B),J=i(z),Z=m==null?10:+m,st=[];if(!(g%1)&&J-et<Z){if(et=Math.round(et)-1,J=Math.round(J)+1,B>0){for(;et<J;++et)for(q=1,O=o(et);q<g;++q)if(!((H=O*q)<B)){if(H>z)break;st.push(H)}}else for(;et<J;++et)for(q=g-1,O=o(et);q>=1;--q)if(!((H=O*q)<B)){if(H>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*g<g-.5&&(z*=g),z<=S?k(B):""}},l.nice=function(){return f(G2(f(),{floor:function(m){return o(Math.floor(i(m)))},ceil:function(m){return o(Math.ceil(i(m)))}}))},l}function J3(){var n=X2(y1()).domain([1,10]);return n.copy=function(){return xl(n,J3()).base(n.base())},Vo.apply(n,arguments),n}function K3(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function t4(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function Z2(n){var i=1,o=n(K3(i),t4(i));return o.constant=function(l){return arguments.length?n(K3(i=+l),t4(i)):i},Qs(o)}function e4(){var n=Z2(y1());return n.copy=function(){return xl(n,e4()).constant(n.constant())},Vo.apply(n,arguments)}function n4(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function Xb(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function Zb(n){return n<0?-n*n:n*n}function Q2(n){var i=n(fa,fa),o=1;function l(){return o===1?n(fa,fa):o===.5?n(Xb,Zb):n(n4(o),n4(1/o))}return i.exponent=function(f){return arguments.length?(o=+f,l()):o},Qs(i)}function J2(){var n=Q2(y1());return n.copy=function(){return xl(n,J2()).exponent(n.exponent())},Vo.apply(n,arguments),n}function Qb(){return J2.apply(null,arguments).exponent(.5)}function r4(){var n,i=[],o=[],l=[];function f(){var w=0,m=Math.max(1,o.length);for(l=new Array(m-1);++w<m;)l[w-1]=W(i,w/m);return g}function g(w){return isNaN(w=+w)?n:o[D(l,w)]}return g.invertExtent=function(w){var m=o.indexOf(w);return m<0?[NaN,NaN]:[m>0?l[m-1]:i[0],m<l.length?l[m]:i[i.length-1]]},g.domain=function(w){if(!arguments.length)return i.slice();i=[];for(var m,k=0,S=w.length;k<S;++k)(m=w[k])==null||isNaN(m=+m)||i.push(m);return i.sort(d),f()},g.range=function(w){return arguments.length?(o=_l.call(w),f()):o.slice()},g.unknown=function(w){return arguments.length?(n=w,g):n},g.quantiles=function(){return l.slice()},g.copy=function(){return r4().domain(i).range(o).unknown(n)},Vo.apply(g,arguments)}function i4(){var n,i=0,o=1,l=1,f=[.5],g=[0,1];function w(k){return k<=k?g[D(f,k,0,l)]:n}function m(){var k=-1;for(f=new Array(l);++k<l;)f[k]=((k+1)*o-(k-l)*i)/(l+1);return w}return w.domain=function(k){return arguments.length?(i=+k[0],o=+k[1],m()):[i,o]},w.range=function(k){return arguments.length?(l=(g=_l.call(k)).length-1,m()):g.slice()},w.invertExtent=function(k){var S=g.indexOf(k);return S<0?[NaN,NaN]:S<1?[i,f[0]]:S>=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-w<m-g?w:m},f.offset=function(g,w){return i(g=new Date(+g),w==null?1:Math.floor(w)),g},f.range=function(g,w,m){var k,S=[];if(g=f.ceil(g),m=m==null?1:Math.floor(m),!(g<w&&m>0))return S;do S.push(k=new Date(+g)),i(g,m),n(g);while(k<g&&g<w);return S},f.filter=function(g){return qi(function(w){if(w>=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));++Ze<On;)$t.charCodeAt(Ze)===37&&(ce.push($t.slice(cn,Ze)),(oe=ug[St=$t.charAt(++Ze)])!=null?St=$t.charAt(++Ze):oe=St==="e"?" ":"0",(ie=fe[St])&&(St=ie(gt,oe)),ce.push(St),cn=Ze+1);return ce.push($t.slice(cn,Ze)),ce.join("")}}function ae($t,fe){return function(gt){var St,oe,ie=bo(1900,void 0,1);if(Oe(ie,$t,gt+="",0)!=gt.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(1e3*ie.s+("L"in ie?ie.L:0));if(fe&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+12*ie.p),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)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<Ze;){if(St>=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+(g<o?new Array(o-g+1).join(i)+f:f)}function m4(n){return n.replace(e6,"\\$&")}function Ge(n){return new RegExp("^(?:"+n.map(m4).join("|")+")","i")}function nc(n){for(var i={},o=-1,l=n.length;++o<l;)i[n[o].toLowerCase()]=o;return i}function vn(n,i,o){var l=Wi.exec(i.slice(o,o+1));return l?(n.w=+l[0],o+l[0].length):-1}function v4(n,i,o){var l=Wi.exec(i.slice(o,o+1));return l?(n.u=+l[0],o+l[0].length):-1}function wr(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.U=+l[0],o+l[0].length):-1}function Zn(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.V=+l[0],o+l[0].length):-1}function ja(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.W=+l[0],o+l[0].length):-1}function Uf(n,i,o){var l=Wi.exec(i.slice(o,o+4));return l?(n.y=+l[0],o+l[0].length):-1}function b4(n,i,o){var l=Wi.exec(i.slice(o,o+2));return l?(n.y=+l[0]+(+l[0]>68?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)<ae?O:g(ae)<ae?q:f(ae)<ae?H:l(ae)<ae?et:i(ae)<ae?o(ae)<ae?J:Z:n(ae)<ae?st:at)(ae)}function Qt(ae,Oe,$t,fe){if(ae==null&&(ae=10),typeof ae=="number"){var gt=Math.abs($t-Oe)/ae,St=T(function(oe){return oe[2]}).right(bt,gt);St===bt.length?(fe=lt(Oe/Dl,$t/Dl,ae),ae=n):St?(fe=(St=bt[gt/bt[St-1][2]<bt[St][2]/gt?St-1:St])[1],ae=St[0]):(fe=Math.max(lt(Oe,$t,ae),1),ae=m)}return fe==null?ae:ae.every(fe)}return S.invert=function(ae){return new Date(B(ae))},S.domain=function(ae){return arguments.length?z(Ef.call(ae,k1)):z().map(Ki)},S.ticks=function(ae,Oe){var $t,fe=z(),gt=fe[0],St=fe[fe.length-1],oe=St<gt;return oe&&($t=gt,gt=St,St=$t),$t=($t=Qt(ae,gt,St,Oe))?$t.range(gt,St+1):[],oe?$t.reverse():$t},S.tickFormat=function(ae,Oe){return Oe==null?zt:k(Oe)},S.nice=function(ae,Oe){var $t=z();return(ae=Qt(ae,$t[0],$t[$t.length-1],Oe))?z(G2($t,ae)):S},S.copy=function(){return xl(S,zu(n,i,o,l,f,g,w,m,k))},S}function Xf(){return Vo.apply(zu(wl,eg,El,pi,c4,v1,Fu,Ru,Al).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Eg=qi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCMonth(n.getUTCMonth()+i)},function(n,i){return i.getUTCMonth()-n.getUTCMonth()+12*(i.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const Vt=Eg;var m6=Eg.range,Cg=qi(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*m1)},function(n,i){return(i-n)/m1},function(n){return n.getUTCHours()});const T1=Cg;var Sg=Cg.range,E1=qi(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*kl)},function(n,i){return(i-n)/kl},function(n){return n.getUTCMinutes()});const Zf=E1;var Ag=E1.range;function Cs(){return Vo.apply(zu(ks,Vt,b1,_1,T1,Zf,Fu,Ru,Ml).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ua(){var n,i,o,l,f,g=0,w=1,m=fa,k=!1;function S(B){return isNaN(B=+B)?f:m(o===0?.5:(B=(l(B)-n)*o,k?Math.max(0,Math.min(1,B)):B))}return S.domain=function(B){return arguments.length?(n=l(g=+B[0]),i=l(w=+B[1]),o=n===i?0:1/(i-n),S):[g,w]},S.clamp=function(B){return arguments.length?(k=!!B,S):k},S.interpolator=function(B){return arguments.length?(m=B,S):m},S.unknown=function(B){return arguments.length?(f=B,S):f},function(B){return l=B,n=B(g),i=B(w),o=n===i?0:1/(i-n),S}}function ta(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function xo(){var n=Qs(Ua()(fa));return n.copy=function(){return ta(n,xo())},Zs.apply(n,arguments)}function wo(){var n=X2(Ua()).domain([1,10]);return n.copy=function(){return ta(n,wo()).base(n.base())},Zs.apply(n,arguments)}function C1(){var n=Z2(Ua());return n.copy=function(){return ta(n,C1()).constant(n.constant())},Zs.apply(n,arguments)}function ju(){var n=Q2(Ua());return n.copy=function(){return ta(n,ju()).exponent(n.exponent())},Zs.apply(n,arguments)}function Ss(){return ju.apply(null,arguments).exponent(.5)}function jc(){var n=[],i=fa;function o(l){if(!isNaN(l=+l))return i((D(n,l)-1)/(n.length-1))}return o.domain=function(l){if(!arguments.length)return n.slice();n=[];for(var f,g=0,w=l.length;g<w;++g)(f=l[g])==null||isNaN(f=+f)||n.push(f);return n.sort(d),o},o.interpolator=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return jc(i).domain(n)},Zs.apply(o,arguments)}function ea(){var n,i,o,l,f,g,w,m=0,k=.5,S=1,B=fa,z=!1;function O(q){return isNaN(q=+q)?w:(q=.5+((q=+g(q))-i)*(q<i?l:f),B(z?Math.max(0,Math.min(1,q)):q))}return O.domain=function(q){return arguments.length?(n=g(m=+q[0]),i=g(k=+q[1]),o=g(S=+q[2]),l=n===i?0:.5/(i-n),f=i===o?0:.5/(o-i),O):[m,k,S]},O.clamp=function(q){return arguments.length?(z=!!q,O):z},O.interpolator=function(q){return arguments.length?(B=q,O):B},O.unknown=function(q){return arguments.length?(w=q,O):w},function(q){return g=q,n=q(m),i=q(k),o=q(S),l=n===i?0:.5/(i-n),f=i===o?0:.5/(o-i),O}}function ko(){var n=Qs(ea()(fa));return n.copy=function(){return ta(n,ko())},Zs.apply(n,arguments)}function As(){var n=X2(ea()).domain([.1,1,10]);return n.copy=function(){return ta(n,As()).base(n.base())},Zs.apply(n,arguments)}function S1(){var n=Z2(ea());return n.copy=function(){return ta(n,S1()).constant(n.constant())},Zs.apply(n,arguments)}function Qf(){var n=Q2(ea());return n.copy=function(){return ta(n,Qf()).exponent(n.exponent())},Zs.apply(n,arguments)}function O4(){return Qf.apply(null,arguments).exponent(.5)}function or(n){for(var i=n.length/6|0,o=new Array(i),l=0;l<i;)o[l]="#"+n.slice(6*l,6*++l);return o}const Uc=or("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),B4=or("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),L4=or("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),I4=or("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),ac=or("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),v6=or("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),b6=or("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),pa=or("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),F4=or("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Qa=or("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function $r(n){return Gl(n[n.length-1])}var Mg=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(or);const R4=$r(Mg);var Ng=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(or);const Jf=$r(Ng);var A1=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(or);const wn=$r(A1);var Dg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(or);const Og=$r(Dg);var Uu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(or);const Kf=$r(Uu);var To=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(or);const P4=$r(To);var Bg=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(or);const Eo=$r(Bg);var Lg=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(or);const _6=$r(Lg);var Ig=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(or);const Y4=$r(Ig);var td=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(or);const Fg=$r(td);var ed=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(or);const Hi=$r(ed);var Rg=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(or);const nd=$r(Rg);var qu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(or);const M1=$r(qu);var rd=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(or);const id=$r(rd);var Pg=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(or);const Yg=$r(Pg);var z4=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(or);const N1=$r(z4);var zg=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(or);const j4=$r(zg);var Zo=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(or);const x6=$r(Zo);var Wu=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(or);const w6=$r(Wu);var Bi=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(or);const qc=$r(Bi);var U4=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(or);const q4=$r(U4);var ad=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(or);const k6=$r(ad);var W4=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(or);const T6=$r(W4);var jg=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(or);const $u=$r(jg);var od=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(or);const E6=$r(od);var sd=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(or);const cd=$r(sd);var D1=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(or);const $4=$r(D1);function C6(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const S6=h1(Ba(300,.5,0),Ba(-240,.5,1));var A6=h1(Ba(-100,.75,.35),Ba(80,1.5,.8)),Ug=h1(Ba(260,.75,.35),Ba(80,1.5,.8)),ga=Ba();function Ea(n){(n<0||n>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);o<l;++o)f[o]=al(n,i[o]);return f}function hr(n){return function(){return n}}qg.prototype=V4.prototype={constructor:qg,get:function(n){for(var i=this._;!(i in n);)if(!(n=n.parentNode))return;return n[i]},set:function(n,i){return n[this._]=i},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var G4=Math.abs,Li=Math.atan2,Jo=Math.cos,sc=Math.max,Ms=Math.min,fo=Math.sin,Bl=Math.sqrt,ya=1e-12,cc=Math.PI,lc=cc/2,uc=2*cc;function I6(n){return n>1?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*O<ya))return[n+(O=(B*(i-g)-z*(n-f))/O)*k,i+O*S]}function dd(n,i,o,l,f,g,w){var m=n-o,k=i-l,S=(w?g:-g)/Bl(m*m+k*k),B=S*k,z=-S*m,O=n+B,q=i+z,H=o+B,et=l+z,J=(O+H)/2,Z=(q+et)/2,st=H-O,at=et-q,bt=st*st+at*at,zt=f-g,Qt=O*et-H*q,ae=(at<0?-1:1)*Bl(sc(0,zt*zt*bt-Qt*Qt)),Oe=(Qt*at-st*ae)/bt,$t=(-Qt*st-at*ae)/bt,fe=(Qt*at+st*ae)/bt,gt=(-Qt*st+at*ae)/bt,St=Oe-J,oe=$t-Z,ie=fe-J,ce=gt-Z;return St*St+oe*oe>ie*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()),O<z&&(B=O,O=z,z=B),O>ya)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(et<cc&&(Vn=X4(Ze,cn,Un,zn,yn,kr,On,lr))){var vr=Ze-Vn[0],va=cn-Vn[1],Pi=yn-Vn[0],yc=kr-Vn[1],Jc=1/fo(I6((vr*Pi+va*yc)/(Bl(vr*vr+va*va)*Bl(Pi*Pi+yc*yc)))/2),H1=Bl(Vn[0]*Vn[0]+Vn[1]*Vn[1]);St=Ms(gt,(z-H1)/(Jc-1)),oe=Ms(gt,(O-H1)/(Jc+1))}}Oe>ya?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),oe<gt?m.arc(Z.cx,Z.cy,oe,Li(Z.y01,Z.x01),Li(st.y01,st.x01),!J):(m.arc(Z.cx,Z.cy,oe,Li(Z.y01,Z.x01),Li(Z.y11,Z.x11),!J),m.arc(0,0,O,Li(Z.cy+Z.y11,Z.cx+Z.x11),Li(st.cy+st.y11,st.cx+st.x11),!J),m.arc(st.cx,st.cy,oe,Li(st.y11,st.x11),Li(st.y01,st.x01),!J))):(m.moveTo(Ze,cn),m.arc(0,0,O,at,bt,!J)):m.moveTo(Ze,cn),z>ya&&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<gt?m.arc(Z.cx,Z.cy,St,Li(Z.y01,Z.x01),Li(st.y01,st.x01),!J):(m.arc(Z.cx,Z.cy,St,Li(Z.y01,Z.x01),Li(Z.y11,Z.x11),!J),m.arc(0,0,z,Li(Z.cy+Z.y11,Z.cx+Z.x11),Li(st.cy+st.y11,st.cx+st.x11),J),m.arc(st.cx,st.cy,St,Li(st.y11,st.x11),Li(st.y01,st.x01),!J))):m.arc(0,0,z,Qt,zt,J):m.lineTo(On,lr)}else m.moveTo(0,0);if(m.closePath(),S)return m=null,S+""||null}return k.centroid=function(){var S=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,B=(+f.apply(this,arguments)+ +g.apply(this,arguments))/2-cc/2;return[Jo(B)*S,fo(B)*S]},k.innerRadius=function(S){return arguments.length?(n=typeof S=="function"?S:hr(+S),k):n},k.outerRadius=function(S){return arguments.length?(i=typeof S=="function"?S:hr(+S),k):i},k.cornerRadius=function(S){return arguments.length?(o=typeof S=="function"?S:hr(+S),k):o},k.padRadius=function(S){return arguments.length?(l=S==null?null:typeof S=="function"?S:hr(+S),k):l},k.startAngle=function(S){return arguments.length?(f=typeof S=="function"?S:hr(+S),k):f},k.endAngle=function(S){return arguments.length?(g=typeof S=="function"?S:hr(+S),k):g},k.padAngle=function(S){return arguments.length?(w=typeof S=="function"?S:hr(+S),k):w},k.context=function(S){return arguments.length?(m=S==null?null:S,k):m},k}function Hg(n){this._context=n}function O1(n){return new Hg(n)}function Ll(n){return n[0]}function B1(n){return n[1]}function pd(){var n=Ll,i=B1,o=hr(!0),l=null,f=O1,g=null;function w(m){var k,S,B,z=m.length,O=!1;for(l==null&&(g=f(B=Ys())),k=0;k<=z;++k)!(k<z&&o(S=m[k],k,m))===O&&((O=!O)?g.lineStart():g.lineEnd()),O&&g.point(+n(S,k,m),+i(S,k,m));if(B)return g=null,B+""||null}return w.x=function(m){return arguments.length?(n=typeof m=="function"?m:hr(+m),w):n},w.y=function(m){return arguments.length?(i=typeof m=="function"?m:hr(+m),w):i},w.defined=function(m){return arguments.length?(o=typeof m=="function"?m:hr(!!m),w):o},w.curve=function(m){return arguments.length?(f=m,l!=null&&(g=f(l)),w):f},w.context=function(m){return arguments.length?(m==null?l=g=null:g=f(l=m),w):l},w}function qa(){var n=Ll,i=null,o=hr(0),l=B1,f=hr(!0),g=null,w=O1,m=null;function k(B){var z,O,q,H,et,J=B.length,Z=!1,st=new Array(J),at=new Array(J);for(g==null&&(m=w(et=Ys())),z=0;z<=J;++z){if(!(z<J&&f(H=B[z],z,B))===Z)if(Z=!Z)O=z,m.areaStart(),m.lineStart();else{for(m.lineEnd(),m.lineStart(),q=z-1;q>=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 i<n?-1:i>n?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;k<q;++k)(O=J[et[k]=k]=+n(m[k],k,m))>0&&(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;k<q;++k,Z=z)S=et[k],z=Z+((O=J[S])>0?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<l-1;++i)f[i]=1,g[i]=4,w[i]=4*n[i]+2*n[i+1];for(f[l-1]=2,g[l-1]=7,w[l-1]=8*n[l-1]+n[l],i=1;i<l;++i)o=f[i]/g[i-1],g[i]-=o,w[i]-=o*w[i-1];for(f[l-1]=w[l-1]/g[l-1],i=l-2;i>=0;--i)f[i]=(w[i]-f[i+1])/g[i];for(g[l-1]=(n[l]+f[l-1])/2,i=0;i<l-1;++i)g[i]=2*n[i+1]-f[i+1];return[f,g]}function P1(n){return new ay(n)}function Zu(n,i){this._context=n,this._t=i}function oy(n){return new Zu(n,.5)}function ov(n){return new Zu(n,0)}function sv(n){return new Zu(n,1)}function Qu(n,i){if((f=n.length)>1)for(var o,l,f,g=1,w=n[i[0]],m=w.length;g<f;++g)for(l=w,w=n[i[g]],o=0;o<m;++o)w[o][1]+=w[o][0]=isNaN(l[o][1])?l[o][0]:l[o][1]}function Hc(n){for(var i=n.length,o=new Array(i);--i>=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;w<B;++w){for(var O,q=k[w],H=z[w]=new Array(S),et=0;et<S;++et)H[et]=O=[0,+l(g[et],q,et,g)],O.data=g[et];H.key=q}for(w=0,m=i(z);w<B;++w)z[m[w]].index=w;return o(z,m),z}return f.keys=function(g){return arguments.length?(n=typeof g=="function"?g:hr(L1.call(g)),f):n},f.value=function(g){return arguments.length?(l=typeof g=="function"?g:hr(+g),f):l},f.order=function(g){return arguments.length?(i=g==null?Hc:typeof g=="function"?g:hr(L1.call(g)),f):i},f.offset=function(g){return arguments.length?(o=g==null?Qu:g,f):o},f}function uv(n,i){if((l=n.length)>0){for(var o,l,f,g=0,w=n[0].length;g<w;++g){for(f=o=0;o<l;++o)f+=n[o][g][1]||0;if(f)for(o=0;o<l;++o)n[o][g][1]/=f}Qu(n,i)}}function Ju(n,i){if((m=n.length)>0)for(var o,l,f,g,w,m,k=0,S=n[i[0]].length;k<S;++k)for(g=w=0,o=0;o<m;++o)(f=(l=n[i[o]][k])[1]-l[0])>0?(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;l<g;++l){for(var w=0,m=0;w<o;++w)m+=n[w][l][1]||0;f[l][1]+=f[l][0]=-m/2}Qu(n,i)}}function hv(n,i){if((f=n.length)>0&&(l=(o=n[i[0]]).length)>0){for(var o,l,f,g=0,w=1;w<l;++w){for(var m=0,k=0,S=0;m<f;++m){for(var B=n[i[m]],z=B[w][1]||0,O=(z-(B[w-1][1]||0))/2,q=0;q<m;++q){var H=n[i[q]];O+=(H[w][1]||0)-(H[w-1][1]||0)}k+=z,S+=O*z}o[w-1][1]+=o[w-1][0]=g,k&&(g-=S/k)}o[w-1][1]+=o[w-1][0]=g,Qu(n,i)}}function Pl(n){var i=n.map(fv);return Hc(n).sort(function(o,l){return i[o]-i[l]})}function fv(n){for(var i,o=-1,l=0,f=n.length,g=-1/0;++o<f;)(i=+n[o][1])>g&&(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<f;)(i=+n[l][1])&&(o+=i);return o}function Ku(n){return sy(n).reverse()}function dv(n){var i,o,l=n.length,f=n.map(cy),g=Pl(n),w=0,m=0,k=[],S=[];for(i=0;i<l;++i)o=g[i],w<m?(w+=f[o],k.push(o)):(m+=f[o],S.push(o));return S.reverse().concat(k)}function Vc(n){return Hc(n).reverse()}Sd.prototype={areaStart:Wc,areaEnd:Wc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,i){n=+n,i=+i,this._point?this._context.lineTo(n,i):(this._point=1,this._context.moveTo(n,i))}},$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rl(this,this._t0,Nd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){var o=NaN;if(i=+i,(n=+n)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,Rl(this,Nd(this,o=Md(this,n,i)),o);break;default:Rl(this,this._t0,o=Md(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=o}}},(Dd.prototype=Object.create($c.prototype)).point=function(n,i){$c.prototype.point.call(this,i,n)},Od.prototype={moveTo:function(n,i){this._context.moveTo(i,n)},closePath:function(){this._context.closePath()},lineTo:function(n,i){this._context.lineTo(i,n)},bezierCurveTo:function(n,i,o,l,f,g){this._context.bezierCurveTo(i,n,l,o,g,f)}},ay.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,i=this._y,o=n.length;if(o)if(this._line?this._context.lineTo(n[0],i[0]):this._context.moveTo(n[0],i[0]),o===2)this._context.lineTo(n[1],i[1]);else for(var l=R1(n),f=R1(i),g=0,w=1;w<o;++g,++w)this._context.bezierCurveTo(l[0][g],f[0][g],l[1][g],f[1][g],n[w],i[w]);(this._line||this._line!==0&&o===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,i){this._x.push(+n),this._y.push(+i)}},Zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var o=this._x*(1-this._t)+n*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,i)}}this._x=n,this._y=i}};var 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(g<B)return;g<z&&(z=g)}else if(O>0){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(g<B)return;g<z&&(z=g)}if(g=o-S,q||!(g>0)){if(g/=q,q<0){if(g<B)return;g<z&&(z=g)}else if(q>0){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(g<B)return;g<z&&(z=g)}return!(B>0||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<i||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]<o)return}else k=[et,f];g=[et,o]}}else if(m=J-(w=(z-q)/(H-O))*et,w<-1||w>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]<o)return}else k=[(f-m)/w,f];g=[(o-m)/w,o]}else if(O<H){if(k){if(k[0]>=l)return}else k=[i,w*i+m];g=[l,w*l+m]}else{if(k){if(k[0]<i)return}else k=[l,w*l+m];g=[i,w*i+m]}return n[0]=k,n[1]=g,!0}function _v(n,i){var o=n.site,l=i.left,f=i.right;return o===f&&(f=l,l=o),f?Math.atan2(f[1]-l[1],f[0]-l[0]):(o===l?(l=i[1],f=i[0]):(l=i[0],f=i[1]),Math.atan2(l[0]-f[0],f[1]-l[1]))}function uy(n,i){return i[+(i.left!==n.site)]}function z1(n,i){return i[+(i.left===n.site)]}var Xc,xv=[];function wv(){na(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ds(n){var i=n.P,o=n.N;if(i&&o){var l=i.site,f=n.site,g=o.site;if(l!==g){var w=f[0],m=f[1],k=l[0]-w,S=l[1]-m,B=g[0]-w,z=g[1]-m,O=2*(k*z-S*B);if(!(O>=-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.y<at.y||Z.y===at.y&&Z.x<=at.x){if(!at.L){st=at.P;break}at=at.L}else{if(!at.R){st=at;break}at=at.R}th.insert(st,Z),st||(Xc=Z)}}}}function Vi(n){var i=n.circle;i&&(i.P||(Xc=i.N),th.remove(i),xv.push(i),na(i),n.circle=null)}var zl=[];function j1(){na(this),this.edge=this.site=this.circle=null}function U1(n){var i=zl.pop()||new j1;return i.site=n,i}function Ld(n){Vi(n),jl.remove(n),zl.push(n),na(n)}function kv(n){var i=n.circle,o=i.x,l=i.cy,f=[o,l],g=n.P,w=n.N,m=[n];Ld(n);for(var k=g;k.circle&&Math.abs(o-k.circle.x)<Rr&&Math.abs(l-k.circle.cy)<Rr;)g=k.P,m.unshift(k),Ld(k),k=g;m.unshift(k),Vi(k);for(var S=w;S.circle&&Math.abs(o-S.circle.x)<Rr&&Math.abs(l-S.circle.cy)<Rr;)w=S.N,m.push(S),Ld(S),S=w;m.push(S),Vi(S);var B,z=m.length;for(B=1;B<z;++B)S=m[B],k=m[B-1],Y1(S.edge,k.site,S.site,f);k=m[0],(S=m[z-1]).edge=es(k.site,S.site,null,f),Ds(k),Ds(S)}function Q6(n){for(var i,o,l,f,g=n[0],w=n[1],m=jl._;m;)if((l=hy(m,w)-g)>Rr)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]<f.y||g[1]===f.y&&g[0]<f.x))g[0]===o&&g[1]===l||(Q6(g),o=g[0],l=g[1]),g=n.pop();else{if(!f)break;kv(f.arc)}if(function(){for(var B,z,O,q,H=0,et=go.length;H<et;++H)if((B=go[H])&&(q=(z=B.halfedges).length)){var J=new Array(q),Z=new Array(q);for(O=0;O<q;++O)J[O]=O,Z[O]=_v(B,Sa[z[O]]);for(J.sort(function(st,at){return Z[at]-Z[st]}),O=0;O<q;++O)Z[O]=z[J[O]];for(O=0;O<q;++O)z[O]=Z[O]}}(),i){var w=+i[0][0],m=+i[0][1],k=+i[1][0],S=+i[1][1];(function(B,z,O,q){for(var H,et=Sa.length;et--;)bv(H=Sa[et],B,z,O,q)&&vv(H,B,z,O,q)&&(Math.abs(H[0][0]-H[1][0])>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;H<fe;++H)if(et=go[H]){for(J=et.site,Z=(st=et.halfedges).length;Z--;)Sa[st[Z]]||st.splice(Z,1);for(Z=0,at=st.length;Z<at;)Oe=(ae=z1(et,Sa[st[Z]]))[0],$t=ae[1],zt=(bt=uy(et,Sa[st[++Z%at]]))[0],Qt=bt[1],(Math.abs(Oe-zt)>Rr||Math.abs($t-Qt)>Rr)&&(st.splice(Z,0,Sa.push(Yl(J,ae,Math.abs(Oe-B)<Rr&&q-$t>Rr?[B,Math.abs(zt-B)<Rr?Qt:q]:Math.abs($t-q)<Rr&&O-Oe>Rr?[Math.abs(Qt-q)<Rr?zt:O,q]:Math.abs(Oe-O)<Rr&&$t-z>Rr?[O,Math.abs(zt-O)<Rr?Qt:z]:Math.abs($t-z)<Rr&&Oe-B>Rr?[Math.abs(Qt-z)<Rr?zt:B,z]:null))-1),++at);at&&(gt=!1)}if(gt){var St,oe,ie,ce=1/0;for(H=0,gt=null;H<fe;++H)(et=go[H])&&(ie=(St=(J=et.site)[0]-B)*St+(oe=J[1]-z)*oe)<ce&&(ce=ie,gt=et);if(gt){var Ze=[B,z],cn=[B,q],On=[O,q],lr=[O,z];gt.halfedges.push(Sa.push(Yl(J=gt.site,Ze,cn))-1,Sa.push(Yl(J,cn,On))-1,Sa.push(Yl(J,On,lr))-1,Sa.push(Yl(J,lr,Ze))-1)}}for(H=0;H<fe;++H)(et=go[H])&&(et.halfedges.length||delete go[H])}(w,m,k,S)}this.edges=Sa,this.cells=go,jl=th=Sa=go=null}function fy(){var n=Bd,i=Z6,o=null;function l(f){return new q1(f.map(function(g,w){var m=[Math.round(n(g,w,f)/Rr)*Rr,Math.round(i(g,w,f)/Rr)*Rr];return m.index=w,m.data=g,m}),o)}return l.polygons=function(f){return l(f).polygons()},l.links=function(f){return l(f).links()},l.triangles=function(f){return l(f).triangles()},l.x=function(f){return arguments.length?(n=typeof f=="function"?f:mv(+f),l):n},l.y=function(f){return arguments.length?(i=typeof f=="function"?f:mv(+f),l):i},l.extent=function(f){return arguments.length?(o=f==null?null:[[+f[0][0],+f[0][1]],[+f[1][0],+f[1][1]]],l):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},l.size=function(f){return arguments.length?(o=f==null?null:[[0,0],[+f[0],+f[1]]],l):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},l}function ns(n){return function(){return n}}function pc(n,i,o){this.target=n,this.type=i,this.transform=o}function gc(n,i,o){this.k=n,this.x=i,this.y=o}q1.prototype={constructor:q1,polygons:function(){var n=this.edges;return this.cells.map(function(i){var o=i.halfedges.map(function(l){return uy(i,n[l])});return o.data=i.site.data,o})},triangles:function(){var n=[],i=this.edges;return this.cells.forEach(function(o,l){if(g=(f=o.halfedges).length)for(var f,g,w,m=o.site,k=-1,S=i[f[g-1]],B=S.left===m?S.right:S.left;++k<g;)w=B,B=(S=i[f[k]]).left===m?S.right:S.left,w&&B&&l<w.index&&l<B.index&&Ev(m,w,B)<0&&n.push([m.data,w.data,B.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,i,o){for(var l,f,g=this,w=g._found||0,m=g.cells.length;!(f=g.cells[w]);)if(++w>=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;J<B&&(B=J,w=q.index)}});while(w!==null);return g._found=l,o==null||B<=o*o?f.site:null}},gc.prototype={constructor:gc,scale:function(n){return n===1?this:new gc(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new gc(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zc=new gc(1,0,0);function Cv(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Zc;return n.__zoom}function W1(){De.stopImmediatePropagation()}function ia(){De.preventDefault(),De.stopImmediatePropagation()}function $1(){return!De.ctrlKey&&!De.button}function Qc(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function eh(){return this.__zoom||Zc}function nh(){return-De.deltaY*(De.deltaMode===1?.05:De.deltaMode?1:.002)}function dy(){return navigator.maxTouchPoints||"ontouchstart"in this}function K6(n,i,o){var l=n.invertX(i[0][0])-o[0][0],f=n.invertX(i[1][0])-o[1][0],g=n.invertY(i[0][1])-o[0][1],w=n.invertY(i[1][1])-o[1][1];return n.translate(f>l?(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&&gt.__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]&&gt.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<Ze;++St)ie=[ie=Da(this,ce,(oe=ce[St]).identifier),this.__zoom.invert(ie),oe.identifier],cn.touch0?cn.touch1||cn.touch0[2]===ie[2]||(cn.touch1=ie,cn.taps=0):(cn.touch0=ie,gt=!0,cn.taps=1+!!n);n&&(n=clearTimeout(n)),gt&&(cn.taps<2&&(n=setTimeout(function(){n=null},O)),Oa(this),cn.start())}}function $t(){if(this.__zooming){var gt,St,oe,ie,ce=at(this,arguments),Ze=De.changedTouches,cn=Ze.length;for(ia(),n&&(n=clearTimeout(n)),ce.taps=0,gt=0;gt<cn;++gt)oe=Da(this,Ze,(St=Ze[gt]).identifier),ce.touch0&&ce.touch0[2]===St.identifier?ce.touch0[0]=oe:ce.touch1&&ce.touch1[2]===St.identifier&&(ce.touch1[0]=oe);if(St=ce.that.__zoom,ce.touch1){var On=ce.touch0[0],lr=ce.touch0[1],Vn=ce.touch1[0],yn=ce.touch1[1],kr=(kr=Vn[0]-On[0])*kr+(kr=Vn[1]-On[1])*kr,Un=(Un=yn[0]-lr[0])*Un+(Un=yn[1]-lr[1])*Un;St=et(St,Math.sqrt(kr/Un)),oe=[(On[0]+Vn[0])/2,(On[1]+Vn[1])/2],ie=[(lr[0]+yn[0])/2,(lr[1]+yn[1])/2]}else{if(!ce.touch0)return;oe=ce.touch0[0],ie=ce.touch0[1]}ce.zoom("touch",f(J(St,oe,ie),ce.extent,k))}}function fe(){if(this.__zooming){var gt,St,oe=at(this,arguments),ie=De.changedTouches,ce=ie.length;for(W1(),i&&clearTimeout(i),i=setTimeout(function(){i=null},O),gt=0;gt<ce;++gt)St=ie[gt],oe.touch0&&oe.touch0[2]===St.identifier?delete oe.touch0:oe.touch1&&oe.touch1[2]===St.identifier&&delete oe.touch1;if(oe.touch1&&!oe.touch0&&(oe.touch0=oe.touch1,delete oe.touch1),oe.touch0)oe.touch0[1]=this.__zoom.invert(oe.touch0[0]);else if(oe.end(),oe.taps===2){var Ze=zr(this).on("dblclick.zoom");Ze&&Ze.apply(this,arguments)}}}return H.transform=function(gt,St,oe){var ie=gt.selection?gt.selection():gt;ie.property("__zoom",eh),gt!==ie?st(gt,St,oe):ie.interrupt().each(function(){at(this,arguments).start().zoom(null,typeof St=="function"?St.apply(this,arguments):St).end()})},H.scaleBy=function(gt,St,oe){H.scaleTo(gt,function(){var ie=this.__zoom.k,ce=typeof St=="function"?St.apply(this,arguments):St;return ie*ce},oe)},H.scaleTo=function(gt,St,oe){H.transform(gt,function(){var ie=l.apply(this,arguments),ce=this.__zoom,Ze=oe==null?Z(ie):typeof oe=="function"?oe.apply(this,arguments):oe,cn=ce.invert(Ze),On=typeof St=="function"?St.apply(this,arguments):St;return f(J(et(ce,On),Ze,cn),ie,k)},oe)},H.translateBy=function(gt,St,oe){H.transform(gt,function(){return f(this.__zoom.translate(typeof St=="function"?St.apply(this,arguments):St,typeof oe=="function"?oe.apply(this,arguments):oe),l.apply(this,arguments),k)})},H.translateTo=function(gt,St,oe,ie){H.transform(gt,function(){var ce=l.apply(this,arguments),Ze=this.__zoom,cn=ie==null?Z(ce):typeof ie=="function"?ie.apply(this,arguments):ie;return f(Zc.translate(cn[0],cn[1]).scale(Ze.k).translate(typeof St=="function"?-St.apply(this,arguments):-St,typeof oe=="function"?-oe.apply(this,arguments):-oe),ce,k)},ie)},bt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(gt,St){return this.mouse&&gt!=="mouse"&&(this.mouse[1]=St.invert(this.mouse[0])),this.touch0&&gt!=="touch"&&(this.touch0[1]=St.invert(this.touch0[0])),this.touch1&&gt!=="touch"&&(this.touch1[1]=St.invert(this.touch1[0])),this.that.__zoom=St,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(gt){Kr(new pc(H,gt,this.that.__zoom),z.apply,z,[gt,this.that,this.args])}},H.wheelDelta=function(gt){return arguments.length?(g=typeof gt=="function"?gt:ns(+gt),H):g},H.filter=function(gt){return arguments.length?(o=typeof gt=="function"?gt:ns(!!gt),H):o},H.touchable=function(gt){return arguments.length?(w=typeof gt=="function"?gt:ns(!!gt),H):w},H.extent=function(gt){return arguments.length?(l=typeof gt=="function"?gt:ns([[+gt[0][0],+gt[0][1]],[+gt[1][0],+gt[1][1]]]),H):l},H.scaleExtent=function(gt){return arguments.length?(m[0]=+gt[0],m[1]=+gt[1],H):[m[0],m[1]]},H.translateExtent=function(gt){return arguments.length?(k[0][0]=+gt[0][0],k[1][0]=+gt[1][0],k[0][1]=+gt[0][1],k[1][1]=+gt[1][1],H):[[k[0][0],k[0][1]],[k[1][0],k[1][1]]]},H.constrain=function(gt){return arguments.length?(f=gt,H):f},H.duration=function(gt){return arguments.length?(S=+gt,H):S},H.interpolate=function(gt){return arguments.length?(B=gt,H):B},H.on=function(){var gt=z.on.apply(z,arguments);return gt===z?H:gt},H.clickDistance=function(gt){return arguments.length?(q=(gt=+gt)*gt,H):Math.sqrt(q)},H}Cv.prototype=gc.prototype},681:(A,F,y)=>{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<j;++L)T(v,"borderLeft","_bl",N,Y,L),T(v,"borderRight","_br",N,Y,L)}})}},3258:(A,F,y)=>{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<tt;++L,++V)rt.points=[],Y={width:0,height:0,edgeLabel:rt,edgeObj:N,rank:V},D=d.addDummyNode(C,"edge",Y,"_d"),V===Ot&&(Y.width=rt.width,Y.height=rt.height,Y.dummy="edge-label",Y.labelpos=rt.labelpos),C.setEdge(j,D,{weight:rt.weight},dt),L===0&&C.graph().dummyChains.push(D),j=D;C.setEdge(j,K,{weight:rt.weight},dt)}})(T,v)})},undo:function(T){x.forEach(T.graph().dummyChains,function(v){var C,N=T.node(v),D=N.edgeLabel;for(T.setEdge(N.edgeObj,D);N.dummy;)C=T.successors(v)[0],T.removeNode(v),D.points.push({x:N.x,y:N.y}),N.dummy==="edge-label"&&(D.x=N.x,D.y=N.y,D.width=N.width,D.height=N.height),v=C,N=T.node(v)})}}},5093:(A,F,y)=>{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;Y<C.length;)Y<<=1;var L=2*Y-1;Y-=1;var j=x.map(new Array(L),function(){return 0}),V=0;return x.forEach(D.forEach(function(K){var tt=K.pos+Y;j[tt]+=K.weight;for(var dt=0;tt>0;)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<v.length;++N)C+=d(T,v[N-1],v[N]);return C}},3408:(A,F,y)=>{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.barycenter<Ot.barycenter?-1:rt.barycenter>Ot.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<C.rank;)j++;V===L&&(K=!1)}if(!K){for(;j<Y.length-1&&d.node(V=Y[j+1]).minRank<=C.rank;)j++;V=Y[j]}d.setParent(v,V),v=d.successors(v)[0]}})}},3573:(A,F,y)=>{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||Tt<kt)||U.dummy&&tt.node(Q).dummy||N(rt,lt,Q)})}),Dt=Yt+1,_t=Tt)}),ot}),rt}function C(tt,dt){var rt={};function Ot(ot,_t,Dt,Xt,jt){var Nt;x.forEach(x.range(_t,Dt),function(Yt){Nt=ot[Yt],tt.node(Nt).dummy&&x.forEach(tt.predecessors(Nt),function(Bt){var Tt=tt.node(Bt);Tt.dummy&&(Tt.order<Xt||Tt.order>jt)&&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<Dt[lt]&&!D(rt,Nt,lt)&&(_t[lt]=Nt,_t[Nt]=ot[Nt]=ot[lt],jt=Dt[lt])}}})}),{root:ot,align:_t}}function L(tt,dt,rt,Ot,ot){var _t={},Dt=function(Nt,Yt,Bt,Tt){var Q=new d,lt=Nt.graph(),U=function(kt,W,At){return function(Ft,Ut,pe){var je,_e=Ft.node(Ut),ue=Ft.node(pe),de=0;if(de+=_e.width/2,x.has(_e,"labelpos"))switch(_e.labelpos.toLowerCase()){case"l":je=-_e.width/2;break;case"r":je=_e.width/2}if(je&&(de+=At?je:-je),je=0,de+=(_e.dummy?W:kt)/2,de+=(ue.dummy?W:kt)/2,de+=ue.width/2,x.has(ue,"labelpos"))switch(ue.labelpos.toLowerCase()){case"l":je=ue.width/2;break;case"r":je=-ue.width/2}return je&&(de+=At?je:-je),je=0,de}}(lt.nodesep,lt.edgesep,Tt);return x.forEach(Yt,function(kt){var W;x.forEach(kt,function(At){var Ft=Bt[At];if(Q.setNode(Ft),W){var Ut=Bt[W],pe=Q.edge(Ut,Ft);Q.setEdge(Ut,Ft,Math.max(U(Nt,At,W),pe||0))}W=At})}),Q}(tt,dt,rt,ot),Xt=ot?"borderLeft":"borderRight";function jt(Nt,Yt){for(var Bt=Dt.nodes(),Tt=Bt.pop(),Q={};Tt;)Q[Tt]?Nt(Tt):(Q[Tt]=!0,Bt.push(Tt),Bt=Bt.concat(Yt(Tt))),Tt=Bt.pop()}return jt(function(Nt){_t[Nt]=Dt.inEdges(Nt).reduce(function(Yt,Bt){return Math.max(Yt,_t[Bt.v]+Dt.edge(Bt))},0)},Dt.predecessors.bind(Dt)),jt(function(Nt){var Yt=Dt.outEdges(Nt).reduce(function(Tt,Q){return Math.min(Tt,_t[Q.w]-Dt.edge(Q))},Number.POSITIVE_INFINITY),Bt=tt.node(Nt);Yt!==Number.POSITIVE_INFINITY&&Bt.borderType!==Xt&&(_t[Nt]=Math.max(_t[Nt],Yt))},Dt.successors.bind(Dt)),x.forEach(Ot,function(Nt){_t[Nt]=_t[rt[Nt]]}),_t}function j(tt,dt){return x.minBy(x.values(dt),function(rt){var Ot=Number.NEGATIVE_INFINITY,ot=Number.POSITIVE_INFINITY;return x.forIn(rt,function(_t,Dt){var Xt=function(jt,Nt){return jt.node(Nt).width}(tt,Dt)/2;Ot=Math.max(_t+Xt,Ot),ot=Math.min(_t-Xt,ot)}),Ot-ot})}function V(tt,dt){var rt=x.values(dt),Ot=x.min(rt),ot=x.max(rt);x.forEach(["u","d"],function(_t){x.forEach(["l","r"],function(Dt){var Xt,jt=_t+Dt,Nt=tt[jt];if(Nt!==dt){var Yt=x.values(Nt);(Xt=Dt==="l"?Ot-x.min(Yt):ot-x.max(Yt))&&(tt[jt]=x.mapValues(Nt,function(Bt){return Bt+Xt}))}})})}function K(tt,dt){return x.mapValues(tt.ul,function(rt,Ot){if(dt)return tt[dt.toLowerCase()][Ot];var ot=x.sortBy(x.map(tt,Ot));return(ot[1]+ot[2])/2})}A.exports={positionX:function(tt){var dt,rt=T.buildLayerMatrix(tt),Ot=x.merge(v(tt,rt),C(tt,rt)),ot={};x.forEach(["u","d"],function(Dt){dt=Dt==="u"?rt:x.values(rt).reverse(),x.forEach(["l","r"],function(Xt){Xt==="r"&&(dt=x.map(dt,function(Bt){return x.values(Bt).reverse()}));var jt=(Dt==="u"?tt.predecessors:tt.successors).bind(tt),Nt=Y(0,dt,Ot,jt),Yt=L(tt,dt,Nt.root,Nt.align,Xt==="r");Xt==="r"&&(Yt=x.mapValues(Yt,function(Bt){return-Bt})),ot[Dt+Xt]=Yt})});var _t=j(tt,ot);return V(ot,_t),K(ot,tt.graph().align)},findType1Conflicts:v,findType2Conflicts:C,addConflict:N,hasConflict:D,verticalAlignment:Y,horizontalCompaction:L,alignCoordinates:V,findSmallestWidthAlignment:j,balance:K}},7873:(A,F,y)=>{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)<K;)Y=C(j,D),L=j.hasNode(Y.v)?T(D,Y):-T(D,Y),N(j,D,L);return j}},8093:(A,F,y)=>{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);ee<ke;ee++)me[ee]=nt[ee];return me}var C=Object.hasOwnProperty,N=Object.setPrototypeOf,D=Object.isFrozen,Y=Object.getPrototypeOf,L=Object.getOwnPropertyDescriptor,j=Object.freeze,V=Object.seal,K=Object.create,tt=typeof Reflect!="undefined"&&Reflect,dt=tt.apply,rt=tt.construct;dt||(dt=function(nt,ke,ee){return nt.apply(ke,ee)}),j||(j=function(nt){return nt}),V||(V=function(nt){return nt}),rt||(rt=function(nt,ke){return d(nt,T(ke))});var Ot,ot=lt(Array.prototype.forEach),_t=lt(Array.prototype.pop),Dt=lt(Array.prototype.push),Xt=lt(String.prototype.toLowerCase),jt=lt(String.prototype.match),Nt=lt(String.prototype.replace),Yt=lt(String.prototype.indexOf),Bt=lt(String.prototype.trim),Tt=lt(RegExp.prototype.test),Q=(Ot=TypeError,function(){for(var nt=arguments.length,ke=new Array(nt),ee=0;ee<nt;ee++)ke[ee]=arguments[ee];return rt(Ot,ke)});function lt(nt){return function(ke){for(var ee=arguments.length,me=new Array(ee>1?ee-1:0),Re=1;Re<ee;Re++)me[Re-1]=arguments[Re];return dt(nt,ke,me)}}function U(nt,ke){N&&N(nt,null);for(var ee=ke.length;ee--;){var me=ke[ee];if(typeof me=="string"){var Re=Xt(me);Re!==me&&(D(ke)||(ke[ee]=Re),me=Re)}nt[me]=!0}return nt}function kt(nt){var ke,ee=K(null);for(ke in nt)dt(C,nt,[ke])&&(ee[ke]=nt[ke]);return ee}function W(nt,ke){for(;nt!==null;){var ee=L(nt,ke);if(ee){if(ee.get)return lt(ee.get);if(typeof ee.value=="function")return lt(ee.value)}nt=Y(nt)}return function(me){return console.warn("fallback value for",me),null}}var At=j(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ft=j(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ut=j(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pe=j(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),je=j(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),_e=j(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ue=j(["#text"]),de=j(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Me=j(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Se=j(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ge=j(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bn=V(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ye=V(/<%[\w\W]*|[\w\W]*%>/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="<remove></remove>"+Ht;else{var Kn=jt(Ht,/^[\r\n\t ]+/);Qe=Kn&&Kn[0]}Nn==="application/xhtml+xml"&&(Ht='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ht+"</body></html>");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(/<template/i,Ht.innerHTML))return ni(Ht),!0;if(!fr[Qe]||yr[Qe]){if(!yr[Qe]&&la(Qe)&&(br.tagNameCheck instanceof RegExp&&Tt(br.tagNameCheck,Qe)||br.tagNameCheck instanceof Function&&br.tagNameCheck(Qe)))return!1;if(Tr&&!Yi[Qe]){var Kn=Lt(Ht)||Ht.parentNode,Ur=jn(Ht)||Ht.childNodes;if(Ur&&Kn)for(var qr=Ur.length-1;qr>=0;--qr)Kn.insertBefore(Ie(Ur[qr],!0),Xe(Ht))}return ni(Ht),!0}return Ht instanceof Ve&&!ci(Ht)?(ni(Ht),!0):Qe!=="noscript"&&Qe!=="noembed"||!Tt(/<\/no(script|embed)/i,Ht.innerHTML)?(fi&&Ht.nodeType===3&&(un=Ht.textContent,un=Nt(un,Pn," "),un=Nt(un,Tn," "),Ht.textContent!==un&&(Dt(ee.removed,{element:Ht.cloneNode()}),Ht.textContent=un)),Gr("afterSanitizeElements",Ht,null),!1):(ni(Ht),!0)},wa=function(Ht,un,Qe){if(to&&(un==="id"||un==="name")&&(Qe in Re||Qe in Hn))return!1;if(!(hi&&!ai[un]&&Tt(Wn,un))){if(!(ei&&Tt(xn,un))){if(!pn[un]||ai[un]){if(!(la(Ht)&&(br.tagNameCheck instanceof RegExp&&Tt(br.tagNameCheck,Ht)||br.tagNameCheck instanceof Function&&br.tagNameCheck(Ht))&&(br.attributeNameCheck instanceof RegExp&&Tt(br.attributeNameCheck,un)||br.attributeNameCheck instanceof Function&&br.attributeNameCheck(un))||un==="is"&&br.allowCustomizedBuiltInElements&&(br.tagNameCheck instanceof RegExp&&Tt(br.tagNameCheck,Qe)||br.tagNameCheck instanceof Function&&br.tagNameCheck(Qe))))return!1}else if(!We[un]){if(!Tt(oa,Nt(Qe,$n,""))){if((un!=="src"&&un!=="xlink:href"&&un!=="href"||Ht==="script"||Yt(Qe,"data:")!==0||!Jn[Ht])&&!(Zr&&!Tt(Cn,Nt(Qe,$n,"")))){if(Qe)return!1}}}}}return!0},la=function(Ht){return Ht.indexOf("-")>0},No=function(Ht){var un,Qe,Kn,Ur;Gr("beforeSanitizeAttributes",Ht,null);var qr=Ht.attributes;if(qr){var ri={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pn};for(Ur=qr.length;Ur--;){var Zi=un=qr[Ur],ka=Zi.name,Dr=Zi.namespaceURI;if(Qe=ka==="value"?un.value:Bt(un.value),Kn=Fn(ka),ri.attrName=Kn,ri.attrValue=Qe,ri.keepAttr=!0,ri.forceKeepAttr=void 0,Gr("uponSanitizeAttribute",Ht,ri),Qe=ri.attrValue,!ri.forceKeepAttr&&(jr(ka,Ht),ri.keepAttr))if(Tt(/\/>/i,Qe))jr(ka,Ht);else{fi&&(Qe=Nt(Qe,Pn," "),Qe=Nt(Qe,Tn," "));var ti=Fn(Ht.nodeName);if(wa(ti,Kn,Qe))try{Dr?Ht.setAttributeNS(Dr,ka,Qe):Ht.setAttribute(ka,Qe),_t(ee.removed)}catch{}}}Gr("afterSanitizeAttributes",Ht,null)}},tl=function Ht(un){var Qe,Kn=Xi(un);for(Gr("beforeSanitizeShadowDOM",un,null);Qe=Kn.nextNode();)Gr("uponSanitizeShadowNode",Qe,null),li(Qe)||(Qe.content instanceof Le&&Ht(Qe.content),No(Qe));Gr("afterSanitizeShadowDOM",un,null)};return ee.sanitize=function(Ht,un){var Qe,Kn,Ur,qr,ri;if((Mo=!Ht)&&(Ht="<!-->"),typeof Ht!="string"&&!xa(Ht)){if(typeof Ht.toString!="function")throw Q("toString is not a function");if(typeof(Ht=Ht.toString())!="string")throw Q("dirty is not a string, aborting")}if(!ee.isSupported){if(F(ke.toStaticHTML)==="object"||typeof ke.toStaticHTML=="function"){if(typeof Ht=="string")return ke.toStaticHTML(Ht);if(xa(Ht))return ke.toStaticHTML(Ht.outerHTML)}return Ht}if(dr||Ei(un),ee.removed=[],typeof Ht=="string"&&(Ma=!1),Ma){if(Ht.nodeName){var Zi=Fn(Ht.nodeName);if(!fr[Zi]||yr[Zi])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(Ht instanceof Ae)(Kn=(Qe=ca("<!---->")).ownerDocument.importNode(Ht,!0)).nodeType===1&&Kn.nodeName==="BODY"||Kn.nodeName==="HTML"?Qe=Kn:Qe.appendChild(Kn);else{if(!oi&&!fi&&!Qr&&Ht.indexOf("<")===-1)return Pt&&vi?Pt.createHTML(Ht):Ht;if(!(Qe=ca(Ht)))return oi?null:vi?hn:""}Qe&&Jr&&ni(Qe.firstChild);for(var ka=Xi(Ma?Ht:Qe);Ur=ka.nextNode();)Ur.nodeType===3&&Ur===qr||li(Ur)||(Ur.content instanceof Le&&tl(Ur.content),No(Ur),qr=Ur);if(qr=null,Ma)return Ht;if(oi){if(si)for(ri=Qn.call(Qe.ownerDocument);Qe.firstChild;)ri.appendChild(Qe.firstChild);else ri=Qe;return pn.shadowroot&&(ri=kn.call(me,ri,!0)),ri}var Dr=Qr?Qe.outerHTML:Qe.innerHTML;return Qr&&fr["!doctype"]&&Qe.ownerDocument&&Qe.ownerDocument.doctype&&Qe.ownerDocument.doctype.name&&Tt(Ee,Qe.ownerDocument.doctype.name)&&(Dr="<!DOCTYPE "+Qe.ownerDocument.doctype.name+`>
`+Dr),fi&&(Dr=Nt(Dr,Pn," "),Dr=Nt(Dr,Tn," ")),Pt&&vi?Pt.createHTML(Dr):Dr},ee.setConfig=function(Ht){Ei(Ht),dr=!0},ee.clearConfig=function(){_a=null,dr=!1},ee.isValidAttribute=function(Ht,un,Qe){_a||Ei({});var Kn=Fn(Ht),Ur=Fn(un);return wa(Kn,Ur,Qe)},ee.addHook=function(Ht,un){typeof un=="function"&&(Ln[Ht]=Ln[Ht]||[],Dt(Ln[Ht],un))},ee.removeHook=function(Ht){if(Ln[Ht])return _t(Ln[Ht])},ee.removeHooks=function(Ht){Ln[Ht]&&(Ln[Ht]=[])},ee.removeAllHooks=function(){Ln={}},ee}()}()},8282:(A,F,y)=>{var x=y(2354);A.exports={Graph:x.Graph,json:y(8974),alg:y(2440),version:x.version}},2842:(A,F,y)=>{var x=y(9126);A.exports=function(d){var T,v={},C=[];function N(D){x.has(v,D)||(v[D]=!0,T.push(D),x.each(d.successors(D),N),x.each(d.predecessors(D),N))}return x.each(d.nodes(),function(D){T=[],N(D),T.length&&C.push(T)}),C}},3984:(A,F,y)=>{var x=y(9126);function d(T,v,C,N,D,Y){x.has(N,v)||(N[v]=!0,C||Y.push(v),x.each(D(v),function(L){d(T,L,C,N,D,Y)}),C&&Y.push(v))}A.exports=function(T,v,C){x.isArray(v)||(v=[v]);var N=(T.isDirected()?T.successors:T.neighbors).bind(T),D=[],Y={};return x.each(v,function(L){if(!T.hasNode(L))throw new Error("Graph does not have node: "+L);d(T,L,C==="post",Y,N,D)}),D}},4847:(A,F,y)=>{var x=y(3763),d=y(9126);A.exports=function(T,v,C){return d.transform(T.nodes(),function(N,D){N[D]=x(T,D,v,C)},{})}},3763:(A,F,y)=>{var x=y(9126),d=y(9675);A.exports=function(v,C,N,D){return function(Y,L,j,V){var K,tt,dt={},rt=new d,Ot=function(ot){var _t=ot.v!==K?ot.v:ot.w,Dt=dt[_t],Xt=j(ot),jt=tt.distance+Xt;if(Xt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+ot+" Weight: "+Xt);jt<Dt.distance&&(Dt.distance=jt,Dt.predecessor=K,rt.decrease(_t,jt))};for(Y.nodes().forEach(function(ot){var _t=ot===L?0:Number.POSITIVE_INFINITY;dt[ot]={distance:_t},rt.add(ot,_t)});rt.size()>0&&(K=rt.removeMin(),(tt=dt[K]).distance!==Number.POSITIVE_INFINITY);)V(K).forEach(Ot);return dt}(v,String(C),N||T,D||function(Y){return v.outEdges(Y)})};var T=x.constant(1)},9096:(A,F,y)=>{var x=y(9126),d=y(5023);A.exports=function(T){return x.filter(d(T),function(v){return v.length>1||v.length===1&&T.hasEdge(v[0],v[0])})}},8924:(A,F,y)=>{var x=y(9126);A.exports=function(T,v,C){return function(N,D,Y){var L={},j=N.nodes();return j.forEach(function(V){L[V]={},L[V][V]={distance:0},j.forEach(function(K){V!==K&&(L[V][K]={distance:Number.POSITIVE_INFINITY})}),Y(V).forEach(function(K){var tt=K.v===V?K.w:K.v,dt=D(K);L[V][tt]={distance:dt,predecessor:V}})}),j.forEach(function(V){var K=L[V];j.forEach(function(tt){var dt=L[tt];j.forEach(function(rt){var Ot=dt[V],ot=K[rt],_t=dt[rt],Dt=Ot.distance+ot.distance;Dt<_t.distance&&(_t.distance=Dt,_t.predecessor=ot.predecessor)})})}),L}(T,v||d,C||function(N){return T.outEdges(N)})};var d=x.constant(1)},2440:(A,F,y)=>{A.exports={components:y(2842),dijkstra:y(3763),dijkstraAll:y(4847),findCycles:y(9096),floydWarshall:y(8924),isAcyclic:y(2707),postorder:y(8828),preorder:y(2648),prim:y(514),tarjan:y(5023),topsort:y(2166)}},2707:(A,F,y)=>{var x=y(2166);A.exports=function(d){try{x(d)}catch(T){if(T instanceof x.CycleException)return!1;throw T}return!0}},8828:(A,F,y)=>{var x=y(3984);A.exports=function(d,T){return x(d,T,"post")}},2648:(A,F,y)=>{var x=y(3984);A.exports=function(d,T){return x(d,T,"pre")}},514:(A,F,y)=>{var x=y(9126),d=y(771),T=y(9675);A.exports=function(v,C){var N,D=new d,Y={},L=new T;function j(K){var tt=K.v===N?K.w:K.v,dt=L.priority(tt);if(dt!==void 0){var rt=C(K);rt<dt&&(Y[tt]=N,L.decrease(tt,rt))}}if(v.nodeCount()===0)return D;x.each(v.nodes(),function(K){L.add(K,Number.POSITIVE_INFINITY),D.setNode(K)}),L.decrease(v.nodes()[0],0);for(var V=!1;L.size()>0;){if(N=L.removeMin(),x.has(Y,N))D.setEdge(N,Y[N]);else{if(V)throw new Error("Input graph is not connected: "+v);V=!0}v.nodeEdges(N).forEach(j)}return D}},5023:(A,F,y)=>{var x=y(9126);A.exports=function(d){var T=0,v=[],C={},N=[];function D(Y){var L=C[Y]={onStack:!0,lowlink:T,index:T++};if(v.push(Y),d.successors(Y).forEach(function(K){x.has(C,K)?C[K].onStack&&(L.lowlink=Math.min(L.lowlink,C[K].index)):(D(K),L.lowlink=Math.min(L.lowlink,C[K].lowlink))}),L.lowlink===L.index){var j,V=[];do j=v.pop(),C[j].onStack=!1,V.push(j);while(Y!==j);N.push(V)}}return d.nodes().forEach(function(Y){x.has(C,Y)||D(Y)}),N}},2166:(A,F,y)=>{var x=y(9126);function d(v){var C={},N={},D=[];if(x.each(v.sinks(),function Y(L){if(x.has(N,L))throw new T;x.has(C,L)||(N[L]=!0,C[L]=!0,x.each(v.predecessors(L),Y),delete N[L],D.push(L))}),x.size(C)!==v.nodeCount())throw new T;return D}function T(){}A.exports=d,d.CycleException=T,T.prototype=new Error},9675:(A,F,y)=>{var x=y(9126);function d(){this._arr=[],this._keyIndices={}}A.exports=d,d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map(function(T){return T.key})},d.prototype.has=function(T){return x.has(this._keyIndices,T)},d.prototype.priority=function(T){var v=this._keyIndices[T];if(v!==void 0)return this._arr[v].priority},d.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(T,v){var C=this._keyIndices;if(T=String(T),!x.has(C,T)){var N=this._arr,D=N.length;return C[T]=D,N.push({key:T,priority:v}),this._decrease(D),!0}return!1},d.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var T=this._arr.pop();return delete this._keyIndices[T.key],this._heapify(0),T.key},d.prototype.decrease=function(T,v){var C=this._keyIndices[T];if(v>this._arr[C].priority)throw new Error("New priority is greater than current priority. Key: "+T+" Old: "+this._arr[C].priority+" New: "+v);this._arr[C].priority=v,this._decrease(C)},d.prototype._heapify=function(T){var v=this._arr,C=2*T,N=C+1,D=T;C<v.length&&(D=v[C].priority<v[D].priority?C:D,N<v.length&&(D=v[N].priority<v[D].priority?N:D),D!==T&&(this._swap(T,D),this._heapify(D)))},d.prototype._decrease=function(T){for(var v,C=this._arr,N=C[T].priority;T!==0&&!(C[v=T>>1].priority<N);)this._swap(T,v),T=v},d.prototype._swap=function(T,v){var C=this._arr,N=this._keyIndices,D=C[T],Y=C[v];C[T]=Y,C[v]=D,N[Y.key]=T,N[D.key]=v}},771:(A,F,y)=>{var x=y(9126);A.exports=T;var d="\0";function T(L){this._isDirected=!x.has(L,"directed")||L.directed,this._isMultigraph=!!x.has(L,"multigraph")&&L.multigraph,this._isCompound=!!x.has(L,"compound")&&L.compound,this._label=void 0,this._defaultNodeLabelFn=x.constant(void 0),this._defaultEdgeLabelFn=x.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function v(L,j){L[j]?L[j]++:L[j]=1}function C(L,j){--L[j]||delete L[j]}function N(L,j,V,K){var tt=""+j,dt=""+V;if(!L&&tt>dt){var rt=tt;tt=dt,dt=rt}return tt+""+dt+""+(x.isUndefined(K)?"\0":K)}function D(L,j,V,K){var tt=""+j,dt=""+V;if(!L&&tt>dt){var rt=tt;tt=dt,dt=rt}var Ot={v:tt,w:dt};return K&&(Ot.name=K),Ot}function Y(L,j){return N(L,j.v,j.w,j.name)}T.prototype._nodeCount=0,T.prototype._edgeCount=0,T.prototype.isDirected=function(){return this._isDirected},T.prototype.isMultigraph=function(){return this._isMultigraph},T.prototype.isCompound=function(){return this._isCompound},T.prototype.setGraph=function(L){return this._label=L,this},T.prototype.graph=function(){return this._label},T.prototype.setDefaultNodeLabel=function(L){return x.isFunction(L)||(L=x.constant(L)),this._defaultNodeLabelFn=L,this},T.prototype.nodeCount=function(){return this._nodeCount},T.prototype.nodes=function(){return x.keys(this._nodes)},T.prototype.sources=function(){var L=this;return x.filter(this.nodes(),function(j){return x.isEmpty(L._in[j])})},T.prototype.sinks=function(){var L=this;return x.filter(this.nodes(),function(j){return x.isEmpty(L._out[j])})},T.prototype.setNodes=function(L,j){var V=arguments,K=this;return x.each(L,function(tt){V.length>1?K.setNode(tt,j):K.setNode(tt)}),this},T.prototype.setNode=function(L,j){return x.has(this._nodes,L)?(arguments.length>1&&(this._nodes[L]=j),this):(this._nodes[L]=arguments.length>1?j:this._defaultNodeLabelFn(L),this._isCompound&&(this._parent[L]=d,this._children[L]={},this._children["\0"][L]=!0),this._in[L]={},this._preds[L]={},this._out[L]={},this._sucs[L]={},++this._nodeCount,this)},T.prototype.node=function(L){return this._nodes[L]},T.prototype.hasNode=function(L){return x.has(this._nodes,L)},T.prototype.removeNode=function(L){var j=this;if(x.has(this._nodes,L)){var V=function(K){j.removeEdge(j._edgeObjs[K])};delete this._nodes[L],this._isCompound&&(this._removeFromParentsChildList(L),delete this._parent[L],x.each(this.children(L),function(K){j.setParent(K)}),delete this._children[L]),x.each(x.keys(this._in[L]),V),delete this._in[L],delete this._preds[L],x.each(x.keys(this._out[L]),V),delete this._out[L],delete this._sucs[L],--this._nodeCount}return this},T.prototype.setParent=function(L,j){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(x.isUndefined(j))j=d;else{for(var V=j+="";!x.isUndefined(V);V=this.parent(V))if(V===L)throw new Error("Setting "+j+" as parent of "+L+" would create a cycle");this.setNode(j)}return this.setNode(L),this._removeFromParentsChildList(L),this._parent[L]=j,this._children[j][L]=!0,this},T.prototype._removeFromParentsChildList=function(L){delete this._children[this._parent[L]][L]},T.prototype.parent=function(L){if(this._isCompound){var j=this._parent[L];if(j!==d)return j}},T.prototype.children=function(L){if(x.isUndefined(L)&&(L=d),this._isCompound){var j=this._children[L];if(j)return x.keys(j)}else{if(L===d)return this.nodes();if(this.hasNode(L))return[]}},T.prototype.predecessors=function(L){var j=this._preds[L];if(j)return x.keys(j)},T.prototype.successors=function(L){var j=this._sucs[L];if(j)return x.keys(j)},T.prototype.neighbors=function(L){var j=this.predecessors(L);if(j)return x.union(j,this.successors(L))},T.prototype.isLeaf=function(L){return(this.isDirected()?this.successors(L):this.neighbors(L)).length===0},T.prototype.filterNodes=function(L){var j=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});j.setGraph(this.graph());var V=this;x.each(this._nodes,function(dt,rt){L(rt)&&j.setNode(rt,dt)}),x.each(this._edgeObjs,function(dt){j.hasNode(dt.v)&&j.hasNode(dt.w)&&j.setEdge(dt,V.edge(dt))});var K={};function tt(dt){var rt=V.parent(dt);return rt===void 0||j.hasNode(rt)?(K[dt]=rt,rt):rt in K?K[rt]:tt(rt)}return this._isCompound&&x.each(j.nodes(),function(dt){j.setParent(dt,tt(dt))}),j},T.prototype.setDefaultEdgeLabel=function(L){return x.isFunction(L)||(L=x.constant(L)),this._defaultEdgeLabelFn=L,this},T.prototype.edgeCount=function(){return this._edgeCount},T.prototype.edges=function(){return x.values(this._edgeObjs)},T.prototype.setPath=function(L,j){var V=this,K=arguments;return x.reduce(L,function(tt,dt){return K.length>1?V.setEdge(tt,dt,j):V.setEdge(tt,dt),dt}),this},T.prototype.setEdge=function(){var L,j,V,K,tt=!1,dt=arguments[0];typeof dt=="object"&&dt!==null&&"v"in dt?(L=dt.v,j=dt.w,V=dt.name,arguments.length===2&&(K=arguments[1],tt=!0)):(L=dt,j=arguments[1],V=arguments[3],arguments.length>2&&(K=arguments[2],tt=!0)),L=""+L,j=""+j,x.isUndefined(V)||(V=""+V);var rt=N(this._isDirected,L,j,V);if(x.has(this._edgeLabels,rt))return tt&&(this._edgeLabels[rt]=K),this;if(!x.isUndefined(V)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(L),this.setNode(j),this._edgeLabels[rt]=tt?K:this._defaultEdgeLabelFn(L,j,V);var Ot=D(this._isDirected,L,j,V);return L=Ot.v,j=Ot.w,Object.freeze(Ot),this._edgeObjs[rt]=Ot,v(this._preds[j],L),v(this._sucs[L],j),this._in[j][rt]=Ot,this._out[L][rt]=Ot,this._edgeCount++,this},T.prototype.edge=function(L,j,V){var K=arguments.length===1?Y(this._isDirected,arguments[0]):N(this._isDirected,L,j,V);return this._edgeLabels[K]},T.prototype.hasEdge=function(L,j,V){var K=arguments.length===1?Y(this._isDirected,arguments[0]):N(this._isDirected,L,j,V);return x.has(this._edgeLabels,K)},T.prototype.removeEdge=function(L,j,V){var K=arguments.length===1?Y(this._isDirected,arguments[0]):N(this._isDirected,L,j,V),tt=this._edgeObjs[K];return tt&&(L=tt.v,j=tt.w,delete this._edgeLabels[K],delete this._edgeObjs[K],C(this._preds[j],L),C(this._sucs[L],j),delete this._in[j][K],delete this._out[L][K],this._edgeCount--),this},T.prototype.inEdges=function(L,j){var V=this._in[L];if(V){var K=x.values(V);return j?x.filter(K,function(tt){return tt.v===j}):K}},T.prototype.outEdges=function(L,j){var V=this._out[L];if(V){var K=x.values(V);return j?x.filter(K,function(tt){return tt.w===j}):K}},T.prototype.nodeEdges=function(L,j){var V=this.inEdges(L,j);if(V)return V.concat(this.outEdges(L,j))}},2354:(A,F,y)=>{A.exports={Graph:y(771),version:y(9631)}},8974:(A,F,y)=>{var x=y(9126),d=y(771);function T(C){return x.map(C.nodes(),function(N){var D=C.node(N),Y=C.parent(N),L={v:N};return x.isUndefined(D)||(L.value=D),x.isUndefined(Y)||(L.parent=Y),L})}function v(C){return x.map(C.edges(),function(N){var D=C.edge(N),Y={v:N.v,w:N.w};return x.isUndefined(N.name)||(Y.name=N.name),x.isUndefined(D)||(Y.value=D),Y})}A.exports={write:function(C){var N={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:T(C),edges:v(C)};return x.isUndefined(C.graph())||(N.value=x.clone(C.graph())),N},read:function(C){var N=new d(C.options).setGraph(C.value);return x.each(C.nodes,function(D){N.setNode(D.v,D.value),D.parent&&N.setParent(D.v,D.parent)}),x.each(C.edges,function(D){N.setEdge({v:D.v,w:D.w,name:D.name},D.value)}),N}}},9126:(A,F,y)=>{var x;try{x={clone:y(6678),constant:y(5703),each:y(6073),filter:y(3105),has:y(8721),isArray:y(1469),isEmpty:y(1609),isFunction:y(3560),isUndefined:y(2353),keys:y(3674),map:y(5161),reduce:y(4061),size:y(4238),transform:y(8718),union:y(3386),values:y(2628)}}catch{}x||(x=window._),A.exports=x},9631:A=>{A.exports="2.1.8"},8552:(A,F,y)=>{var x=y(852)(y(5639),"DataView");A.exports=x},1989:(A,F,y)=>{var x=y(1789),d=y(401),T=y(7667),v=y(1327),C=y(1866);function N(D){var Y=-1,L=D==null?0:D.length;for(this.clear();++Y<L;){var j=D[Y];this.set(j[0],j[1])}}N.prototype.clear=x,N.prototype.delete=d,N.prototype.get=T,N.prototype.has=v,N.prototype.set=C,A.exports=N},8407:(A,F,y)=>{var x=y(7040),d=y(4125),T=y(2117),v=y(7518),C=y(4705);function N(D){var Y=-1,L=D==null?0:D.length;for(this.clear();++Y<L;){var j=D[Y];this.set(j[0],j[1])}}N.prototype.clear=x,N.prototype.delete=d,N.prototype.get=T,N.prototype.has=v,N.prototype.set=C,A.exports=N},7071:(A,F,y)=>{var x=y(852)(y(5639),"Map");A.exports=x},3369:(A,F,y)=>{var x=y(4785),d=y(1285),T=y(6e3),v=y(9916),C=y(5265);function N(D){var Y=-1,L=D==null?0:D.length;for(this.clear();++Y<L;){var j=D[Y];this.set(j[0],j[1])}}N.prototype.clear=x,N.prototype.delete=d,N.prototype.get=T,N.prototype.has=v,N.prototype.set=C,A.exports=N},3818:(A,F,y)=>{var x=y(852)(y(5639),"Promise");A.exports=x},8525:(A,F,y)=>{var x=y(852)(y(5639),"Set");A.exports=x},8668:(A,F,y)=>{var x=y(3369),d=y(619),T=y(2385);function v(C){var N=-1,D=C==null?0:C.length;for(this.__data__=new x;++N<D;)this.add(C[N])}v.prototype.add=v.prototype.push=d,v.prototype.has=T,A.exports=v},6384:(A,F,y)=>{var x=y(8407),d=y(7465),T=y(3779),v=y(7599),C=y(4758),N=y(4309);function D(Y){var L=this.__data__=new x(Y);this.size=L.size}D.prototype.clear=d,D.prototype.delete=T,D.prototype.get=v,D.prototype.has=C,D.prototype.set=N,A.exports=D},2705:(A,F,y)=>{var x=y(5639).Symbol;A.exports=x},1149:(A,F,y)=>{var x=y(5639).Uint8Array;A.exports=x},577:(A,F,y)=>{var x=y(852)(y(5639),"WeakMap");A.exports=x},6874:A=>{A.exports=function(F,y,x){switch(x.length){case 0:return F.call(y);case 1:return F.call(y,x[0]);case 2:return F.call(y,x[0],x[1]);case 3:return F.call(y,x[0],x[1],x[2])}return F.apply(y,x)}},7412:A=>{A.exports=function(F,y){for(var x=-1,d=F==null?0:F.length;++x<d&&y(F[x],x,F)!==!1;);return F}},4963:A=>{A.exports=function(F,y){for(var x=-1,d=F==null?0:F.length,T=0,v=[];++x<d;){var C=F[x];y(C,x,F)&&(v[T++]=C)}return v}},7443:(A,F,y)=>{var x=y(2118);A.exports=function(d,T){return!(d==null||!d.length)&&x(d,T,0)>-1}},1196:A=>{A.exports=function(F,y,x){for(var d=-1,T=F==null?0:F.length;++d<T;)if(x(y,F[d]))return!0;return!1}},4636:(A,F,y)=>{var x=y(2545),d=y(5694),T=y(1469),v=y(4144),C=y(5776),N=y(6719),D=Object.prototype.hasOwnProperty;A.exports=function(Y,L){var j=T(Y),V=!j&&d(Y),K=!j&&!V&&v(Y),tt=!j&&!V&&!K&&N(Y),dt=j||V||K||tt,rt=dt?x(Y.length,String):[],Ot=rt.length;for(var ot in Y)!L&&!D.call(Y,ot)||dt&&(ot=="length"||K&&(ot=="offset"||ot=="parent")||tt&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||C(ot,Ot))||rt.push(ot);return rt}},9932:A=>{A.exports=function(F,y){for(var x=-1,d=F==null?0:F.length,T=Array(d);++x<d;)T[x]=y(F[x],x,F);return T}},2488:A=>{A.exports=function(F,y){for(var x=-1,d=y.length,T=F.length;++x<d;)F[T+x]=y[x];return F}},2663:A=>{A.exports=function(F,y,x,d){var T=-1,v=F==null?0:F.length;for(d&&v&&(x=F[++T]);++T<v;)x=y(x,F[T],T,F);return x}},2908:A=>{A.exports=function(F,y){for(var x=-1,d=F==null?0:F.length;++x<d;)if(y(F[x],x,F))return!0;return!1}},8983:(A,F,y)=>{var x=y(371)("length");A.exports=x},6556:(A,F,y)=>{var x=y(9465),d=y(7813);A.exports=function(T,v,C){(C!==void 0&&!d(T[v],C)||C===void 0&&!(v in T))&&x(T,v,C)}},4865:(A,F,y)=>{var x=y(9465),d=y(7813),T=Object.prototype.hasOwnProperty;A.exports=function(v,C,N){var D=v[C];T.call(v,C)&&d(D,N)&&(N!==void 0||C in v)||x(v,C,N)}},8470:(A,F,y)=>{var x=y(7813);A.exports=function(d,T){for(var v=d.length;v--;)if(x(d[v][0],T))return v;return-1}},4037:(A,F,y)=>{var x=y(8363),d=y(3674);A.exports=function(T,v){return T&&x(v,d(v),T)}},3886:(A,F,y)=>{var x=y(8363),d=y(1704);A.exports=function(T,v){return T&&x(v,d(v),T)}},9465:(A,F,y)=>{var x=y(8777);A.exports=function(d,T,v){T=="__proto__"&&x?x(d,T,{configurable:!0,enumerable:!0,value:v,writable:!0}):d[T]=v}},5990:(A,F,y)=>{var x=y(6384),d=y(7412),T=y(4865),v=y(4037),C=y(3886),N=y(4626),D=y(278),Y=y(8805),L=y(1911),j=y(8234),V=y(6904),K=y(4160),tt=y(3824),dt=y(9148),rt=y(8517),Ot=y(1469),ot=y(4144),_t=y(6688),Dt=y(3218),Xt=y(2928),jt=y(3674),Nt=y(1704),Yt="[object Arguments]",Bt="[object Function]",Tt="[object Object]",Q={};Q[Yt]=Q["[object Array]"]=Q["[object ArrayBuffer]"]=Q["[object DataView]"]=Q["[object Boolean]"]=Q["[object Date]"]=Q["[object Float32Array]"]=Q["[object Float64Array]"]=Q["[object Int8Array]"]=Q["[object Int16Array]"]=Q["[object Int32Array]"]=Q["[object Map]"]=Q["[object Number]"]=Q[Tt]=Q["[object RegExp]"]=Q["[object Set]"]=Q["[object String]"]=Q["[object Symbol]"]=Q["[object Uint8Array]"]=Q["[object Uint8ClampedArray]"]=Q["[object Uint16Array]"]=Q["[object Uint32Array]"]=!0,Q["[object Error]"]=Q[Bt]=Q["[object WeakMap]"]=!1,A.exports=function lt(U,kt,W,At,Ft,Ut){var pe,je=1&kt,_e=2&kt,ue=4&kt;if(W&&(pe=Ft?W(U,At,Ft,Ut):W(U)),pe!==void 0)return pe;if(!Dt(U))return U;var de=Ot(U);if(de){if(pe=tt(U),!je)return D(U,pe)}else{var Me=K(U),Se=Me==Bt||Me=="[object GeneratorFunction]";if(ot(U))return N(U,je);if(Me==Tt||Me==Yt||Se&&!Ft){if(pe=_e||Se?{}:rt(U),!je)return _e?L(U,C(pe,U)):Y(U,v(pe,U))}else{if(!Q[Me])return Ft?U:{};pe=dt(U,Me,je)}}Ut||(Ut=new x);var ge=Ut.get(U);if(ge)return ge;Ut.set(U,pe),Xt(U)?U.forEach(function(ye){pe.add(lt(ye,kt,W,ye,U,Ut))}):_t(U)&&U.forEach(function(ye,qe){pe.set(qe,lt(ye,kt,W,qe,U,Ut))});var bn=de?void 0:(ue?_e?V:j:_e?Nt:jt)(U);return d(bn||U,function(ye,qe){bn&&(ye=U[qe=ye]),T(pe,qe,lt(ye,kt,W,qe,U,Ut))}),pe}},3118:(A,F,y)=>{var x=y(3218),d=Object.create,T=function(){function v(){}return function(C){if(!x(C))return{};if(d)return d(C);v.prototype=C;var N=new v;return v.prototype=void 0,N}}();A.exports=T},9881:(A,F,y)=>{var x=y(7816),d=y(9291)(x);A.exports=d},6029:(A,F,y)=>{var x=y(3448);A.exports=function(d,T,v){for(var C=-1,N=d.length;++C<N;){var D=d[C],Y=T(D);if(Y!=null&&(L===void 0?Y==Y&&!x(Y):v(Y,L)))var L=Y,j=D}return j}},760:(A,F,y)=>{var x=y(9881);A.exports=function(d,T){var v=[];return x(d,function(C,N,D){T(C,N,D)&&v.push(C)}),v}},1848:A=>{A.exports=function(F,y,x,d){for(var T=F.length,v=x+(d?1:-1);d?v--:++v<T;)if(y(F[v],v,F))return v;return-1}},1078:(A,F,y)=>{var x=y(2488),d=y(7285);A.exports=function T(v,C,N,D,Y){var L=-1,j=v.length;for(N||(N=d),Y||(Y=[]);++L<j;){var V=v[L];C>0&&N(V)?C>1?T(V,C-1,N,D,Y):x(Y,V):D||(Y[Y.length]=V)}return Y}},8483:(A,F,y)=>{var x=y(5063)();A.exports=x},7816:(A,F,y)=>{var x=y(8483),d=y(3674);A.exports=function(T,v){return T&&x(T,v,d)}},7786:(A,F,y)=>{var x=y(1811),d=y(327);A.exports=function(T,v){for(var C=0,N=(v=x(v,T)).length;T!=null&&C<N;)T=T[d(v[C++])];return C&&C==N?T:void 0}},8866:(A,F,y)=>{var x=y(2488),d=y(1469);A.exports=function(T,v,C){var N=v(T);return d(T)?N:x(N,C(T))}},4239:(A,F,y)=>{var x=y(2705),d=y(9607),T=y(2333),v=x?x.toStringTag:void 0;A.exports=function(C){return C==null?C===void 0?"[object Undefined]":"[object Null]":v&&v in Object(C)?d(C):T(C)}},3325:A=>{A.exports=function(F,y){return F>y}},8565:A=>{var F=Object.prototype.hasOwnProperty;A.exports=function(y,x){return y!=null&&F.call(y,x)}},13:A=>{A.exports=function(F,y){return F!=null&&y in Object(F)}},2118:(A,F,y)=>{var x=y(1848),d=y(2722),T=y(2351);A.exports=function(v,C,N){return C==C?T(v,C,N):x(v,d,N)}},9454:(A,F,y)=>{var x=y(4239),d=y(7005);A.exports=function(T){return d(T)&&x(T)=="[object Arguments]"}},939:(A,F,y)=>{var x=y(2492),d=y(7005);A.exports=function T(v,C,N,D,Y){return v===C||(v==null||C==null||!d(v)&&!d(C)?v!=v&&C!=C:x(v,C,N,D,T,Y))}},2492:(A,F,y)=>{var x=y(6384),d=y(7114),T=y(8351),v=y(6096),C=y(4160),N=y(1469),D=y(4144),Y=y(6719),L="[object Arguments]",j="[object Array]",V="[object Object]",K=Object.prototype.hasOwnProperty;A.exports=function(tt,dt,rt,Ot,ot,_t){var Dt=N(tt),Xt=N(dt),jt=Dt?j:C(tt),Nt=Xt?j:C(dt),Yt=(jt=jt==L?V:jt)==V,Bt=(Nt=Nt==L?V:Nt)==V,Tt=jt==Nt;if(Tt&&D(tt)){if(!D(dt))return!1;Dt=!0,Yt=!1}if(Tt&&!Yt)return _t||(_t=new x),Dt||Y(tt)?d(tt,dt,rt,Ot,ot,_t):T(tt,dt,jt,rt,Ot,ot,_t);if(!(1&rt)){var Q=Yt&&K.call(tt,"__wrapped__"),lt=Bt&&K.call(dt,"__wrapped__");if(Q||lt){var U=Q?tt.value():tt,kt=lt?dt.value():dt;return _t||(_t=new x),ot(U,kt,rt,Ot,_t)}}return!!Tt&&(_t||(_t=new x),v(tt,dt,rt,Ot,ot,_t))}},5588:(A,F,y)=>{var x=y(4160),d=y(7005);A.exports=function(T){return d(T)&&x(T)=="[object Map]"}},2958:(A,F,y)=>{var x=y(6384),d=y(939);A.exports=function(T,v,C,N){var D=C.length,Y=D,L=!N;if(T==null)return!Y;for(T=Object(T);D--;){var j=C[D];if(L&&j[2]?j[1]!==T[j[0]]:!(j[0]in T))return!1}for(;++D<Y;){var V=(j=C[D])[0],K=T[V],tt=j[1];if(L&&j[2]){if(K===void 0&&!(V in T))return!1}else{var dt=new x;if(N)var rt=N(K,tt,V,T,v,dt);if(!(rt===void 0?d(tt,K,3,N,dt):rt))return!1}}return!0}},2722:A=>{A.exports=function(F){return F!=F}},8458:(A,F,y)=>{var x=y(3560),d=y(5346),T=y(3218),v=y(346),C=/^\[object .+?Constructor\]$/,N=Function.prototype,D=Object.prototype,Y=N.toString,L=D.hasOwnProperty,j=RegExp("^"+Y.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");A.exports=function(V){return!(!T(V)||d(V))&&(x(V)?j:C).test(v(V))}},9221:(A,F,y)=>{var x=y(4160),d=y(7005);A.exports=function(T){return d(T)&&x(T)=="[object Set]"}},8749:(A,F,y)=>{var x=y(4239),d=y(1780),T=y(7005),v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v["[object Arguments]"]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v["[object Function]"]=v["[object Map]"]=v["[object Number]"]=v["[object Object]"]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1,A.exports=function(C){return T(C)&&d(C.length)&&!!v[x(C)]}},7206:(A,F,y)=>{var x=y(1573),d=y(6432),T=y(6557),v=y(1469),C=y(9601);A.exports=function(N){return typeof N=="function"?N:N==null?T:typeof N=="object"?v(N)?d(N[0],N[1]):x(N):C(N)}},280:(A,F,y)=>{var x=y(5726),d=y(6916),T=Object.prototype.hasOwnProperty;A.exports=function(v){if(!x(v))return d(v);var C=[];for(var N in Object(v))T.call(v,N)&&N!="constructor"&&C.push(N);return C}},313:(A,F,y)=>{var x=y(3218),d=y(5726),T=y(3498),v=Object.prototype.hasOwnProperty;A.exports=function(C){if(!x(C))return T(C);var N=d(C),D=[];for(var Y in C)(Y!="constructor"||!N&&v.call(C,Y))&&D.push(Y);return D}},433:A=>{A.exports=function(F,y){return F<y}},9199:(A,F,y)=>{var x=y(9881),d=y(8612);A.exports=function(T,v){var C=-1,N=d(T)?Array(T.length):[];return x(T,function(D,Y,L){N[++C]=v(D,Y,L)}),N}},1573:(A,F,y)=>{var x=y(2958),d=y(1499),T=y(2634);A.exports=function(v){var C=d(v);return C.length==1&&C[0][2]?T(C[0][0],C[0][1]):function(N){return N===v||x(N,v,C)}}},6432:(A,F,y)=>{var x=y(939),d=y(7361),T=y(9095),v=y(5403),C=y(9162),N=y(2634),D=y(327);A.exports=function(Y,L){return v(Y)&&C(L)?N(D(Y),L):function(j){var V=d(j,Y);return V===void 0&&V===L?T(j,Y):x(L,V,3)}}},2980:(A,F,y)=>{var x=y(6384),d=y(6556),T=y(8483),v=y(9783),C=y(3218),N=y(1704),D=y(6390);A.exports=function Y(L,j,V,K,tt){L!==j&&T(j,function(dt,rt){if(tt||(tt=new x),C(dt))v(L,j,rt,V,Y,K,tt);else{var Ot=K?K(D(L,rt),dt,rt+"",L,j,tt):void 0;Ot===void 0&&(Ot=dt),d(L,rt,Ot)}},N)}},9783:(A,F,y)=>{var x=y(6556),d=y(4626),T=y(7133),v=y(278),C=y(8517),N=y(5694),D=y(1469),Y=y(9246),L=y(4144),j=y(3560),V=y(3218),K=y(8630),tt=y(6719),dt=y(6390),rt=y(3678);A.exports=function(Ot,ot,_t,Dt,Xt,jt,Nt){var Yt=dt(Ot,_t),Bt=dt(ot,_t),Tt=Nt.get(Bt);if(Tt)x(Ot,_t,Tt);else{var Q=jt?jt(Yt,Bt,_t+"",Ot,ot,Nt):void 0,lt=Q===void 0;if(lt){var U=D(Bt),kt=!U&&L(Bt),W=!U&&!kt&&tt(Bt);Q=Bt,U||kt||W?D(Yt)?Q=Yt:Y(Yt)?Q=v(Yt):kt?(lt=!1,Q=d(Bt,!0)):W?(lt=!1,Q=T(Bt,!0)):Q=[]:K(Bt)||N(Bt)?(Q=Yt,N(Yt)?Q=rt(Yt):V(Yt)&&!j(Yt)||(Q=C(Bt))):lt=!1}lt&&(Nt.set(Bt,Q),Xt(Q,Bt,Dt,jt,Nt),Nt.delete(Bt)),x(Ot,_t,Q)}}},9556:(A,F,y)=>{var x=y(9932),d=y(7786),T=y(7206),v=y(9199),C=y(1131),N=y(1717),D=y(5022),Y=y(6557),L=y(1469);A.exports=function(j,V,K){V=V.length?x(V,function(rt){return L(rt)?function(Ot){return d(Ot,rt.length===1?rt[0]:rt)}:rt}):[Y];var tt=-1;V=x(V,N(T));var dt=v(j,function(rt,Ot,ot){return{criteria:x(V,function(_t){return _t(rt)}),index:++tt,value:rt}});return C(dt,function(rt,Ot){return D(rt,Ot,K)})}},5970:(A,F,y)=>{var x=y(3012),d=y(9095);A.exports=function(T,v){return x(T,v,function(C,N){return d(T,N)})}},3012:(A,F,y)=>{var x=y(7786),d=y(611),T=y(1811);A.exports=function(v,C,N){for(var D=-1,Y=C.length,L={};++D<Y;){var j=C[D],V=x(v,j);N(V,j)&&d(L,T(j,v),V)}return L}},371:A=>{A.exports=function(F){return function(y){return y==null?void 0:y[F]}}},9152:(A,F,y)=>{var x=y(7786);A.exports=function(d){return function(T){return x(T,d)}}},98:A=>{var F=Math.ceil,y=Math.max;A.exports=function(x,d,T,v){for(var C=-1,N=y(F((d-x)/(T||1)),0),D=Array(N);N--;)D[v?N:++C]=x,x+=T;return D}},107:A=>{A.exports=function(F,y,x,d,T){return T(F,function(v,C,N){x=d?(d=!1,v):y(x,v,C,N)}),x}},5976:(A,F,y)=>{var x=y(6557),d=y(5357),T=y(61);A.exports=function(v,C){return T(d(v,C,x),v+"")}},611:(A,F,y)=>{var x=y(4865),d=y(1811),T=y(5776),v=y(3218),C=y(327);A.exports=function(N,D,Y,L){if(!v(N))return N;for(var j=-1,V=(D=d(D,N)).length,K=V-1,tt=N;tt!=null&&++j<V;){var dt=C(D[j]),rt=Y;if(dt==="__proto__"||dt==="constructor"||dt==="prototype")return N;if(j!=K){var Ot=tt[dt];(rt=L?L(Ot,dt,tt):void 0)===void 0&&(rt=v(Ot)?Ot:T(D[j+1])?[]:{})}x(tt,dt,rt),tt=tt[dt]}return N}},6560:(A,F,y)=>{var x=y(5703),d=y(8777),T=y(6557),v=d?function(C,N){return d(C,"toString",{configurable:!0,enumerable:!1,value:x(N),writable:!0})}:T;A.exports=v},1131:A=>{A.exports=function(F,y){var x=F.length;for(F.sort(y);x--;)F[x]=F[x].value;return F}},2545:A=>{A.exports=function(F,y){for(var x=-1,d=Array(F);++x<F;)d[x]=y(x);return d}},531:(A,F,y)=>{var x=y(2705),d=y(9932),T=y(1469),v=y(3448),C=x?x.prototype:void 0,N=C?C.toString:void 0;A.exports=function D(Y){if(typeof Y=="string")return Y;if(T(Y))return d(Y,D)+"";if(v(Y))return N?N.call(Y):"";var L=Y+"";return L=="0"&&1/Y==-1/0?"-0":L}},7561:(A,F,y)=>{var x=y(7990),d=/^\s+/;A.exports=function(T){return T&&T.slice(0,x(T)+1).replace(d,"")}},1717:A=>{A.exports=function(F){return function(y){return F(y)}}},5652:(A,F,y)=>{var x=y(8668),d=y(7443),T=y(1196),v=y(4757),C=y(3593),N=y(1814);A.exports=function(D,Y,L){var j=-1,V=d,K=D.length,tt=!0,dt=[],rt=dt;if(L)tt=!1,V=T;else if(K>=200){var Ot=Y?null:C(D);if(Ot)return N(Ot);tt=!1,V=v,rt=new x}else rt=Y?[]:dt;t:for(;++j<K;){var ot=D[j],_t=Y?Y(ot):ot;if(ot=L||ot!==0?ot:0,tt&&_t==_t){for(var Dt=rt.length;Dt--;)if(rt[Dt]===_t)continue t;Y&&rt.push(_t),dt.push(ot)}else V(rt,_t,L)||(rt!==dt&&rt.push(_t),dt.push(ot))}return dt}},7415:(A,F,y)=>{var x=y(9932);A.exports=function(d,T){return x(T,function(v){return d[v]})}},1757:A=>{A.exports=function(F,y,x){for(var d=-1,T=F.length,v=y.length,C={};++d<T;){var N=d<v?y[d]:void 0;x(C,F[d],N)}return C}},4757:A=>{A.exports=function(F,y){return F.has(y)}},4290:(A,F,y)=>{var x=y(6557);A.exports=function(d){return typeof d=="function"?d:x}},1811:(A,F,y)=>{var x=y(1469),d=y(5403),T=y(5514),v=y(9833);A.exports=function(C,N){return x(C)?C:d(C,N)?[C]:T(v(C))}},4318:(A,F,y)=>{var x=y(1149);A.exports=function(d){var T=new d.constructor(d.byteLength);return new x(T).set(new x(d)),T}},4626:(A,F,y)=>{A=y.nmd(A);var x=y(5639),d=F&&!F.nodeType&&F,T=d&&A&&!A.nodeType&&A,v=T&&T.exports===d?x.Buffer:void 0,C=v?v.allocUnsafe:void 0;A.exports=function(N,D){if(D)return N.slice();var Y=N.length,L=C?C(Y):new N.constructor(Y);return N.copy(L),L}},7157:(A,F,y)=>{var x=y(4318);A.exports=function(d,T){var v=T?x(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.byteLength)}},3147:A=>{var F=/\w*$/;A.exports=function(y){var x=new y.constructor(y.source,F.exec(y));return x.lastIndex=y.lastIndex,x}},419:(A,F,y)=>{var x=y(2705),d=x?x.prototype:void 0,T=d?d.valueOf:void 0;A.exports=function(v){return T?Object(T.call(v)):{}}},7133:(A,F,y)=>{var x=y(4318);A.exports=function(d,T){var v=T?x(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.length)}},6393:(A,F,y)=>{var x=y(3448);A.exports=function(d,T){if(d!==T){var v=d!==void 0,C=d===null,N=d==d,D=x(d),Y=T!==void 0,L=T===null,j=T==T,V=x(T);if(!L&&!V&&!D&&d>T||D&&Y&&j&&!L&&!V||C&&Y&&j||!v&&j||!N)return 1;if(!C&&!D&&!V&&d<T||V&&v&&N&&!C&&!D||L&&v&&N||!Y&&N||!j)return-1}return 0}},5022:(A,F,y)=>{var x=y(6393);A.exports=function(d,T,v){for(var C=-1,N=d.criteria,D=T.criteria,Y=N.length,L=v.length;++C<Y;){var j=x(N[C],D[C]);if(j)return C>=L?j:j*(v[C]=="desc"?-1:1)}return d.index-T.index}},278:A=>{A.exports=function(F,y){var x=-1,d=F.length;for(y||(y=Array(d));++x<d;)y[x]=F[x];return y}},8363:(A,F,y)=>{var x=y(4865),d=y(9465);A.exports=function(T,v,C,N){var D=!C;C||(C={});for(var Y=-1,L=v.length;++Y<L;){var j=v[Y],V=N?N(C[j],T[j],j,C,T):void 0;V===void 0&&(V=T[j]),D?d(C,j,V):x(C,j,V)}return C}},8805:(A,F,y)=>{var x=y(8363),d=y(9551);A.exports=function(T,v){return x(T,d(T),v)}},1911:(A,F,y)=>{var x=y(8363),d=y(1442);A.exports=function(T,v){return x(T,d(T),v)}},4429:(A,F,y)=>{var x=y(5639)["__core-js_shared__"];A.exports=x},1750:(A,F,y)=>{var x=y(5976),d=y(6612);A.exports=function(T){return x(function(v,C){var N=-1,D=C.length,Y=D>1?C[D-1]:void 0,L=D>2?C[2]:void 0;for(Y=T.length>3&&typeof Y=="function"?(D--,Y):void 0,L&&d(C[0],C[1],L)&&(Y=D<3?void 0:Y,D=1),v=Object(v);++N<D;){var j=C[N];j&&T(v,j,N,Y)}return v})}},9291:(A,F,y)=>{var x=y(8612);A.exports=function(d,T){return function(v,C){if(v==null)return v;if(!x(v))return d(v,C);for(var N=v.length,D=T?N:-1,Y=Object(v);(T?D--:++D<N)&&C(Y[D],D,Y)!==!1;);return v}}},5063:A=>{A.exports=function(F){return function(y,x,d){for(var T=-1,v=Object(y),C=d(y),N=C.length;N--;){var D=C[F?N:++T];if(x(v[D],D,v)===!1)break}return y}}},7740:(A,F,y)=>{var x=y(7206),d=y(8612),T=y(3674);A.exports=function(v){return function(C,N,D){var Y=Object(C);if(!d(C)){var L=x(N,3);C=T(C),N=function(V){return L(Y[V],V,Y)}}var j=v(C,N,D);return j>-1?Y[L?C[j]:j]:void 0}}},7445:(A,F,y)=>{var x=y(98),d=y(6612),T=y(8601);A.exports=function(v){return function(C,N,D){return D&&typeof D!="number"&&d(C,N,D)&&(N=D=void 0),C=T(C),N===void 0?(N=C,C=0):N=T(N),D=D===void 0?C<N?1:-1:T(D),x(C,N,D,v)}}},3593:(A,F,y)=>{var x=y(8525),d=y(308),T=y(1814),v=x&&1/T(new x([,-0]))[1]==1/0?function(C){return new x(C)}:d;A.exports=v},8777:(A,F,y)=>{var x=y(852),d=function(){try{var T=x(Object,"defineProperty");return T({},"",{}),T}catch{}}();A.exports=d},7114:(A,F,y)=>{var x=y(8668),d=y(2908),T=y(4757);A.exports=function(v,C,N,D,Y,L){var j=1&N,V=v.length,K=C.length;if(V!=K&&!(j&&K>V))return!1;var tt=L.get(v),dt=L.get(C);if(tt&&dt)return tt==C&&dt==v;var rt=-1,Ot=!0,ot=2&N?new x:void 0;for(L.set(v,C),L.set(C,v);++rt<V;){var _t=v[rt],Dt=C[rt];if(D)var Xt=j?D(Dt,_t,rt,C,v,L):D(_t,Dt,rt,v,C,L);if(Xt!==void 0){if(Xt)continue;Ot=!1;break}if(ot){if(!d(C,function(jt,Nt){if(!T(ot,Nt)&&(_t===jt||Y(_t,jt,N,D,L)))return ot.push(Nt)})){Ot=!1;break}}else if(_t!==Dt&&!Y(_t,Dt,N,D,L)){Ot=!1;break}}return L.delete(v),L.delete(C),Ot}},8351:(A,F,y)=>{var x=y(2705),d=y(1149),T=y(7813),v=y(7114),C=y(8776),N=y(1814),D=x?x.prototype:void 0,Y=D?D.valueOf:void 0;A.exports=function(L,j,V,K,tt,dt,rt){switch(V){case"[object DataView]":if(L.byteLength!=j.byteLength||L.byteOffset!=j.byteOffset)return!1;L=L.buffer,j=j.buffer;case"[object ArrayBuffer]":return!(L.byteLength!=j.byteLength||!dt(new d(L),new d(j)));case"[object Boolean]":case"[object Date]":case"[object Number]":return T(+L,+j);case"[object Error]":return L.name==j.name&&L.message==j.message;case"[object RegExp]":case"[object String]":return L==j+"";case"[object Map]":var Ot=C;case"[object Set]":var ot=1&K;if(Ot||(Ot=N),L.size!=j.size&&!ot)return!1;var _t=rt.get(L);if(_t)return _t==j;K|=2,rt.set(L,j);var Dt=v(Ot(L),Ot(j),K,tt,dt,rt);return rt.delete(L),Dt;case"[object Symbol]":if(Y)return Y.call(L)==Y.call(j)}return!1}},6096:(A,F,y)=>{var x=y(8234),d=Object.prototype.hasOwnProperty;A.exports=function(T,v,C,N,D,Y){var L=1&C,j=x(T),V=j.length;if(V!=x(v).length&&!L)return!1;for(var K=V;K--;){var tt=j[K];if(!(L?tt in v:d.call(v,tt)))return!1}var dt=Y.get(T),rt=Y.get(v);if(dt&&rt)return dt==v&&rt==T;var Ot=!0;Y.set(T,v),Y.set(v,T);for(var ot=L;++K<V;){var _t=T[tt=j[K]],Dt=v[tt];if(N)var Xt=L?N(Dt,_t,tt,v,T,Y):N(_t,Dt,tt,T,v,Y);if(!(Xt===void 0?_t===Dt||D(_t,Dt,C,N,Y):Xt)){Ot=!1;break}ot||(ot=tt=="constructor")}if(Ot&&!ot){var jt=T.constructor,Nt=v.constructor;jt==Nt||!("constructor"in T)||!("constructor"in v)||typeof jt=="function"&&jt instanceof jt&&typeof Nt=="function"&&Nt instanceof Nt||(Ot=!1)}return Y.delete(T),Y.delete(v),Ot}},9021:(A,F,y)=>{var x=y(5564),d=y(5357),T=y(61);A.exports=function(v){return T(d(v,void 0,x),v+"")}},1957:(A,F,y)=>{var x=typeof y.g=="object"&&y.g&&y.g.Object===Object&&y.g;A.exports=x},8234:(A,F,y)=>{var x=y(8866),d=y(9551),T=y(3674);A.exports=function(v){return x(v,T,d)}},6904:(A,F,y)=>{var x=y(8866),d=y(1442),T=y(1704);A.exports=function(v){return x(v,T,d)}},5050:(A,F,y)=>{var x=y(7019);A.exports=function(d,T){var v=d.__data__;return x(T)?v[typeof T=="string"?"string":"hash"]:v.map}},1499:(A,F,y)=>{var x=y(9162),d=y(3674);A.exports=function(T){for(var v=d(T),C=v.length;C--;){var N=v[C],D=T[N];v[C]=[N,D,x(D)]}return v}},852:(A,F,y)=>{var x=y(8458),d=y(7801);A.exports=function(T,v){var C=d(T,v);return x(C)?C:void 0}},5924:(A,F,y)=>{var x=y(5569)(Object.getPrototypeOf,Object);A.exports=x},9607:(A,F,y)=>{var x=y(2705),d=Object.prototype,T=d.hasOwnProperty,v=d.toString,C=x?x.toStringTag:void 0;A.exports=function(N){var D=T.call(N,C),Y=N[C];try{N[C]=void 0;var L=!0}catch{}var j=v.call(N);return L&&(D?N[C]=Y:delete N[C]),j}},9551:(A,F,y)=>{var x=y(4963),d=y(479),T=Object.prototype.propertyIsEnumerable,v=Object.getOwnPropertySymbols,C=v?function(N){return N==null?[]:(N=Object(N),x(v(N),function(D){return T.call(N,D)}))}:d;A.exports=C},1442:(A,F,y)=>{var x=y(2488),d=y(5924),T=y(9551),v=y(479),C=Object.getOwnPropertySymbols?function(N){for(var D=[];N;)x(D,T(N)),N=d(N);return D}:v;A.exports=C},4160:(A,F,y)=>{var x=y(8552),d=y(7071),T=y(3818),v=y(8525),C=y(577),N=y(4239),D=y(346),Y="[object Map]",L="[object Promise]",j="[object Set]",V="[object WeakMap]",K="[object DataView]",tt=D(x),dt=D(d),rt=D(T),Ot=D(v),ot=D(C),_t=N;(x&&_t(new x(new ArrayBuffer(1)))!=K||d&&_t(new d)!=Y||T&&_t(T.resolve())!=L||v&&_t(new v)!=j||C&&_t(new C)!=V)&&(_t=function(Dt){var Xt=N(Dt),jt=Xt=="[object Object]"?Dt.constructor:void 0,Nt=jt?D(jt):"";if(Nt)switch(Nt){case tt:return K;case dt:return Y;case rt:return L;case Ot:return j;case ot:return V}return Xt}),A.exports=_t},7801:A=>{A.exports=function(F,y){return F==null?void 0:F[y]}},222:(A,F,y)=>{var x=y(1811),d=y(5694),T=y(1469),v=y(5776),C=y(1780),N=y(327);A.exports=function(D,Y,L){for(var j=-1,V=(Y=x(Y,D)).length,K=!1;++j<V;){var tt=N(Y[j]);if(!(K=D!=null&&L(D,tt)))break;D=D[tt]}return K||++j!=V?K:!!(V=D==null?0:D.length)&&C(V)&&v(tt,V)&&(T(D)||d(D))}},2689:A=>{var F=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");A.exports=function(y){return F.test(y)}},1789:(A,F,y)=>{var x=y(4536);A.exports=function(){this.__data__=x?x(null):{},this.size=0}},401:A=>{A.exports=function(F){var y=this.has(F)&&delete this.__data__[F];return this.size-=y?1:0,y}},7667:(A,F,y)=>{var x=y(4536),d=Object.prototype.hasOwnProperty;A.exports=function(T){var v=this.__data__;if(x){var C=v[T];return C==="__lodash_hash_undefined__"?void 0:C}return d.call(v,T)?v[T]:void 0}},1327:(A,F,y)=>{var x=y(4536),d=Object.prototype.hasOwnProperty;A.exports=function(T){var v=this.__data__;return x?v[T]!==void 0:d.call(v,T)}},1866:(A,F,y)=>{var x=y(4536);A.exports=function(d,T){var v=this.__data__;return this.size+=this.has(d)?0:1,v[d]=x&&T===void 0?"__lodash_hash_undefined__":T,this}},3824:A=>{var F=Object.prototype.hasOwnProperty;A.exports=function(y){var x=y.length,d=new y.constructor(x);return x&&typeof y[0]=="string"&&F.call(y,"index")&&(d.index=y.index,d.input=y.input),d}},9148:(A,F,y)=>{var x=y(4318),d=y(7157),T=y(3147),v=y(419),C=y(7133);A.exports=function(N,D,Y){var L=N.constructor;switch(D){case"[object ArrayBuffer]":return x(N);case"[object Boolean]":case"[object Date]":return new L(+N);case"[object DataView]":return d(N,Y);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return C(N,Y);case"[object Map]":case"[object Set]":return new L;case"[object Number]":case"[object String]":return new L(N);case"[object RegExp]":return T(N);case"[object Symbol]":return v(N)}}},8517:(A,F,y)=>{var x=y(3118),d=y(5924),T=y(5726);A.exports=function(v){return typeof v.constructor!="function"||T(v)?{}:x(d(v))}},7285:(A,F,y)=>{var x=y(2705),d=y(5694),T=y(1469),v=x?x.isConcatSpreadable:void 0;A.exports=function(C){return T(C)||d(C)||!!(v&&C&&C[v])}},5776:A=>{var F=/^(?:0|[1-9]\d*)$/;A.exports=function(y,x){var d=typeof y;return!!(x=x==null?9007199254740991:x)&&(d=="number"||d!="symbol"&&F.test(y))&&y>-1&&y%1==0&&y<x}},6612:(A,F,y)=>{var x=y(7813),d=y(8612),T=y(5776),v=y(3218);A.exports=function(C,N,D){if(!v(D))return!1;var Y=typeof N;return!!(Y=="number"?d(D)&&T(N,D.length):Y=="string"&&N in D)&&x(D[N],C)}},5403:(A,F,y)=>{var x=y(1469),d=y(3448),T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v=/^\w*$/;A.exports=function(C,N){if(x(C))return!1;var D=typeof C;return!(D!="number"&&D!="symbol"&&D!="boolean"&&C!=null&&!d(C))||v.test(C)||!T.test(C)||N!=null&&C in Object(N)}},7019:A=>{A.exports=function(F){var y=typeof F;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?F!=="__proto__":F===null}},5346:(A,F,y)=>{var x,d=y(4429),T=(x=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"";A.exports=function(v){return!!T&&T in v}},5726:A=>{var F=Object.prototype;A.exports=function(y){var x=y&&y.constructor;return y===(typeof x=="function"&&x.prototype||F)}},9162:(A,F,y)=>{var x=y(3218);A.exports=function(d){return d==d&&!x(d)}},7040:A=>{A.exports=function(){this.__data__=[],this.size=0}},4125:(A,F,y)=>{var x=y(8470),d=Array.prototype.splice;A.exports=function(T){var v=this.__data__,C=x(v,T);return!(C<0||(C==v.length-1?v.pop():d.call(v,C,1),--this.size,0))}},2117:(A,F,y)=>{var x=y(8470);A.exports=function(d){var T=this.__data__,v=x(T,d);return v<0?void 0:T[v][1]}},7518:(A,F,y)=>{var x=y(8470);A.exports=function(d){return x(this.__data__,d)>-1}},4705:(A,F,y)=>{var x=y(8470);A.exports=function(d,T){var v=this.__data__,C=x(v,d);return C<0?(++this.size,v.push([d,T])):v[C][1]=T,this}},4785:(A,F,y)=>{var x=y(1989),d=y(8407),T=y(7071);A.exports=function(){this.size=0,this.__data__={hash:new x,map:new(T||d),string:new x}}},1285:(A,F,y)=>{var x=y(5050);A.exports=function(d){var T=x(this,d).delete(d);return this.size-=T?1:0,T}},6e3:(A,F,y)=>{var x=y(5050);A.exports=function(d){return x(this,d).get(d)}},9916:(A,F,y)=>{var x=y(5050);A.exports=function(d){return x(this,d).has(d)}},5265:(A,F,y)=>{var x=y(5050);A.exports=function(d,T){var v=x(this,d),C=v.size;return v.set(d,T),this.size+=v.size==C?0:1,this}},8776:A=>{A.exports=function(F){var y=-1,x=Array(F.size);return F.forEach(function(d,T){x[++y]=[T,d]}),x}},2634:A=>{A.exports=function(F,y){return function(x){return x!=null&&x[F]===y&&(y!==void 0||F in Object(x))}}},4523:(A,F,y)=>{var x=y(8306);A.exports=function(d){var T=x(d,function(C){return v.size===500&&v.clear(),C}),v=T.cache;return T}},4536:(A,F,y)=>{var x=y(852)(Object,"create");A.exports=x},6916:(A,F,y)=>{var x=y(5569)(Object.keys,Object);A.exports=x},3498:A=>{A.exports=function(F){var y=[];if(F!=null)for(var x in Object(F))y.push(x);return y}},1167:(A,F,y)=>{A=y.nmd(A);var x=y(1957),d=F&&!F.nodeType&&F,T=d&&A&&!A.nodeType&&A,v=T&&T.exports===d&&x.process,C=function(){try{return T&&T.require&&T.require("util").types||v&&v.binding&&v.binding("util")}catch{}}();A.exports=C},2333:A=>{var F=Object.prototype.toString;A.exports=function(y){return F.call(y)}},5569:A=>{A.exports=function(F,y){return function(x){return F(y(x))}}},5357:(A,F,y)=>{var x=y(6874),d=Math.max;A.exports=function(T,v,C){return v=d(v===void 0?T.length-1:v,0),function(){for(var N=arguments,D=-1,Y=d(N.length-v,0),L=Array(Y);++D<Y;)L[D]=N[v+D];D=-1;for(var j=Array(v+1);++D<v;)j[D]=N[D];return j[v]=C(L),x(T,this,j)}}},5639:(A,F,y)=>{var x=y(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,T=x||d||Function("return this")();A.exports=T},6390:A=>{A.exports=function(F,y){if((y!=="constructor"||typeof F[y]!="function")&&y!="__proto__")return F[y]}},619:A=>{A.exports=function(F){return this.__data__.set(F,"__lodash_hash_undefined__"),this}},2385:A=>{A.exports=function(F){return this.__data__.has(F)}},1814:A=>{A.exports=function(F){var y=-1,x=Array(F.size);return F.forEach(function(d){x[++y]=d}),x}},61:(A,F,y)=>{var x=y(6560),d=y(1275)(x);A.exports=d},1275:A=>{var F=Date.now;A.exports=function(y){var x=0,d=0;return function(){var T=F(),v=16-(T-d);if(d=T,v>0){if(++x>=800)return arguments[0]}else x=0;return y.apply(void 0,arguments)}}},7465:(A,F,y)=>{var x=y(8407);A.exports=function(){this.__data__=new x,this.size=0}},3779:A=>{A.exports=function(F){var y=this.__data__,x=y.delete(F);return this.size=y.size,x}},7599:A=>{A.exports=function(F){return this.__data__.get(F)}},4758:A=>{A.exports=function(F){return this.__data__.has(F)}},4309:(A,F,y)=>{var x=y(8407),d=y(7071),T=y(3369);A.exports=function(v,C){var N=this.__data__;if(N instanceof x){var D=N.__data__;if(!d||D.length<199)return D.push([v,C]),this.size=++N.size,this;N=this.__data__=new T(D)}return N.set(v,C),this.size=N.size,this}},2351:A=>{A.exports=function(F,y,x){for(var d=x-1,T=F.length;++d<T;)if(F[d]===y)return d;return-1}},8016:(A,F,y)=>{var x=y(8983),d=y(2689),T=y(1903);A.exports=function(v){return d(v)?T(v):x(v)}},5514:(A,F,y)=>{var x=y(4523),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,v=x(function(C){var N=[];return C.charCodeAt(0)===46&&N.push(""),C.replace(d,function(D,Y,L,j){N.push(L?j.replace(T,"$1"):Y||D)}),N});A.exports=v},327:(A,F,y)=>{var x=y(3448);A.exports=function(d){if(typeof d=="string"||x(d))return d;var T=d+"";return T=="0"&&1/d==-1/0?"-0":T}},346:A=>{var F=Function.prototype.toString;A.exports=function(y){if(y!=null){try{return F.call(y)}catch{}try{return y+""}catch{}}return""}},7990:A=>{var F=/\s/;A.exports=function(y){for(var x=y.length;x--&&F.test(y.charAt(x)););return x}},1903:A=>{var F="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",y="\\ud83c[\\udffb-\\udfff]",x="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",T="[\\ud800-\\udbff][\\udc00-\\udfff]",v="(?:"+F+"|"+y+")?",C="[\\ufe0e\\ufe0f]?",N=C+v+"(?:\\u200d(?:"+[x,d,T].join("|")+")"+C+v+")*",D="(?:"+[x+F+"?",F,d,T,"[\\ud800-\\udfff]"].join("|")+")",Y=RegExp(y+"(?="+y+")|"+D+N,"g");A.exports=function(L){for(var j=Y.lastIndex=0;Y.test(L);)++j;return j}},6678:(A,F,y)=>{var x=y(5990);A.exports=function(d){return x(d,4)}},361:(A,F,y)=>{var x=y(5990);A.exports=function(d){return x(d,5)}},5703:A=>{A.exports=function(F){return function(){return F}}},1747:(A,F,y)=>{var x=y(5976),d=y(7813),T=y(6612),v=y(1704),C=Object.prototype,N=C.hasOwnProperty,D=x(function(Y,L){Y=Object(Y);var j=-1,V=L.length,K=V>2?L[2]:void 0;for(K&&T(L[0],L[1],K)&&(V=1);++j<V;)for(var tt=L[j],dt=v(tt),rt=-1,Ot=dt.length;++rt<Ot;){var ot=dt[rt],_t=Y[ot];(_t===void 0||d(_t,C[ot])&&!N.call(Y,ot))&&(Y[ot]=tt[ot])}return Y});A.exports=D},6073:(A,F,y)=>{A.exports=y(4486)},7813:A=>{A.exports=function(F,y){return F===y||F!=F&&y!=y}},3105:(A,F,y)=>{var x=y(4963),d=y(760),T=y(7206),v=y(1469);A.exports=function(C,N){return(v(C)?x:d)(C,T(N,3))}},3311:(A,F,y)=>{var x=y(7740)(y(998));A.exports=x},998:(A,F,y)=>{var x=y(1848),d=y(7206),T=y(554),v=Math.max;A.exports=function(C,N,D){var Y=C==null?0:C.length;if(!Y)return-1;var L=D==null?0:T(D);return L<0&&(L=v(Y+L,0)),x(C,d(N,3),L)}},5564:(A,F,y)=>{var x=y(1078);A.exports=function(d){return d!=null&&d.length?x(d,1):[]}},4486:(A,F,y)=>{var x=y(7412),d=y(9881),T=y(4290),v=y(1469);A.exports=function(C,N){return(v(C)?x:d)(C,T(N))}},2620:(A,F,y)=>{var x=y(8483),d=y(4290),T=y(1704);A.exports=function(v,C){return v==null?v:x(v,d(C),T)}},7361:(A,F,y)=>{var x=y(7786);A.exports=function(d,T,v){var C=d==null?void 0:x(d,T);return C===void 0?v:C}},8721:(A,F,y)=>{var x=y(8565),d=y(222);A.exports=function(T,v){return T!=null&&d(T,v,x)}},9095:(A,F,y)=>{var x=y(13),d=y(222);A.exports=function(T,v){return T!=null&&d(T,v,x)}},6557:A=>{A.exports=function(F){return F}},5694:(A,F,y)=>{var x=y(9454),d=y(7005),T=Object.prototype,v=T.hasOwnProperty,C=T.propertyIsEnumerable,N=x(function(){return arguments}())?x:function(D){return d(D)&&v.call(D,"callee")&&!C.call(D,"callee")};A.exports=N},1469:A=>{var F=Array.isArray;A.exports=F},8612:(A,F,y)=>{var x=y(3560),d=y(1780);A.exports=function(T){return T!=null&&d(T.length)&&!x(T)}},9246:(A,F,y)=>{var x=y(8612),d=y(7005);A.exports=function(T){return d(T)&&x(T)}},4144:(A,F,y)=>{A=y.nmd(A);var x=y(5639),d=y(5062),T=F&&!F.nodeType&&F,v=T&&A&&!A.nodeType&&A,C=v&&v.exports===T?x.Buffer:void 0,N=(C?C.isBuffer:void 0)||d;A.exports=N},1609:(A,F,y)=>{var x=y(280),d=y(4160),T=y(5694),v=y(1469),C=y(8612),N=y(4144),D=y(5726),Y=y(6719),L=Object.prototype.hasOwnProperty;A.exports=function(j){if(j==null)return!0;if(C(j)&&(v(j)||typeof j=="string"||typeof j.splice=="function"||N(j)||Y(j)||T(j)))return!j.length;var V=d(j);if(V=="[object Map]"||V=="[object Set]")return!j.size;if(D(j))return!x(j).length;for(var K in j)if(L.call(j,K))return!1;return!0}},3560:(A,F,y)=>{var x=y(4239),d=y(3218);A.exports=function(T){if(!d(T))return!1;var v=x(T);return v=="[object Function]"||v=="[object GeneratorFunction]"||v=="[object AsyncFunction]"||v=="[object Proxy]"}},1780:A=>{A.exports=function(F){return typeof F=="number"&&F>-1&&F%1==0&&F<=9007199254740991}},6688:(A,F,y)=>{var x=y(5588),d=y(1717),T=y(1167),v=T&&T.isMap,C=v?d(v):x;A.exports=C},3218:A=>{A.exports=function(F){var y=typeof F;return F!=null&&(y=="object"||y=="function")}},7005:A=>{A.exports=function(F){return F!=null&&typeof F=="object"}},8630:(A,F,y)=>{var x=y(4239),d=y(5924),T=y(7005),v=Function.prototype,C=Object.prototype,N=v.toString,D=C.hasOwnProperty,Y=N.call(Object);A.exports=function(L){if(!T(L)||x(L)!="[object Object]")return!1;var j=d(L);if(j===null)return!0;var V=D.call(j,"constructor")&&j.constructor;return typeof V=="function"&&V instanceof V&&N.call(V)==Y}},2928:(A,F,y)=>{var x=y(9221),d=y(1717),T=y(1167),v=T&&T.isSet,C=v?d(v):x;A.exports=C},7037:(A,F,y)=>{var x=y(4239),d=y(1469),T=y(7005);A.exports=function(v){return typeof v=="string"||!d(v)&&T(v)&&x(v)=="[object String]"}},3448:(A,F,y)=>{var x=y(4239),d=y(7005);A.exports=function(T){return typeof T=="symbol"||d(T)&&x(T)=="[object Symbol]"}},6719:(A,F,y)=>{var x=y(8749),d=y(1717),T=y(1167),v=T&&T.isTypedArray,C=v?d(v):x;A.exports=C},2353:A=>{A.exports=function(F){return F===void 0}},3674:(A,F,y)=>{var x=y(4636),d=y(280),T=y(8612);A.exports=function(v){return T(v)?x(v):d(v)}},1704:(A,F,y)=>{var x=y(4636),d=y(313),T=y(8612);A.exports=function(v){return T(v)?x(v,!0):d(v)}},928:A=>{A.exports=function(F){var y=F==null?0:F.length;return y?F[y-1]:void 0}},5161:(A,F,y)=>{var x=y(9932),d=y(7206),T=y(9199),v=y(1469);A.exports=function(C,N){return(v(C)?x:T)(C,d(N,3))}},6604:(A,F,y)=>{var x=y(9465),d=y(7816),T=y(7206);A.exports=function(v,C){var N={};return C=T(C,3),d(v,function(D,Y,L){x(N,Y,C(D,Y,L))}),N}},6162:(A,F,y)=>{var x=y(6029),d=y(3325),T=y(6557);A.exports=function(v){return v&&v.length?x(v,T,d):void 0}},8306:(A,F,y)=>{var x=y(3369);function d(T,v){if(typeof T!="function"||v!=null&&typeof v!="function")throw new TypeError("Expected a function");var C=function(){var N=arguments,D=v?v.apply(this,N):N[0],Y=C.cache;if(Y.has(D))return Y.get(D);var L=T.apply(this,N);return C.cache=Y.set(D,L)||Y,L};return C.cache=new(d.Cache||x),C}d.Cache=x,A.exports=d},3857:(A,F,y)=>{var x=y(2980),d=y(1750)(function(T,v,C){x(T,v,C)});A.exports=d},3632:(A,F,y)=>{var x=y(6029),d=y(433),T=y(6557);A.exports=function(v){return v&&v.length?x(v,T,d):void 0}},2762:(A,F,y)=>{var x=y(6029),d=y(7206),T=y(433);A.exports=function(v,C){return v&&v.length?x(v,d(C,2),T):void 0}},308:A=>{A.exports=function(){}},7771:(A,F,y)=>{var x=y(5639);A.exports=function(){return x.Date.now()}},9722:(A,F,y)=>{var x=y(5970),d=y(9021)(function(T,v){return T==null?{}:x(T,v)});A.exports=d},9601:(A,F,y)=>{var x=y(371),d=y(9152),T=y(5403),v=y(327);A.exports=function(C){return T(C)?x(v(C)):d(C)}},6026:(A,F,y)=>{var x=y(7445)();A.exports=x},4061:(A,F,y)=>{var x=y(2663),d=y(9881),T=y(7206),v=y(107),C=y(1469);A.exports=function(N,D,Y){var L=C(N)?x:v,j=arguments.length<3;return L(N,T(D,4),Y,j,d)}},4238:(A,F,y)=>{var x=y(280),d=y(4160),T=y(8612),v=y(7037),C=y(8016);A.exports=function(N){if(N==null)return 0;if(T(N))return v(N)?C(N):N.length;var D=d(N);return D=="[object Map]"||D=="[object Set]"?N.size:x(N).length}},9734:(A,F,y)=>{var x=y(1078),d=y(9556),T=y(5976),v=y(6612),C=T(function(N,D){if(N==null)return[];var Y=D.length;return Y>1&&v(N,D[0],D[1])?D=[]:Y>2&&v(D[0],D[1],D[2])&&(D=[D[0]]),d(N,x(D,1),[])});A.exports=C},479:A=>{A.exports=function(){return[]}},5062:A=>{A.exports=function(){return!1}},8601:(A,F,y)=>{var x=y(4841);A.exports=function(d){return d?(d=x(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}},554:(A,F,y)=>{var x=y(8601);A.exports=function(d){var T=x(d),v=T%1;return T==T?v?T-v:T:0}},4841:(A,F,y)=>{var x=y(7561),d=y(3218),T=y(3448),v=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,N=/^0o[0-7]+$/i,D=parseInt;A.exports=function(Y){if(typeof Y=="number")return Y;if(T(Y))return NaN;if(d(Y)){var L=typeof Y.valueOf=="function"?Y.valueOf():Y;Y=d(L)?L+"":L}if(typeof Y!="string")return Y===0?Y:+Y;Y=x(Y);var j=C.test(Y);return j||N.test(Y)?D(Y.slice(2),j?2:8):v.test(Y)?NaN:+Y}},3678:(A,F,y)=>{var x=y(8363),d=y(1704);A.exports=function(T){return x(T,d(T))}},9833:(A,F,y)=>{var x=y(531);A.exports=function(d){return d==null?"":x(d)}},8718:(A,F,y)=>{var x=y(7412),d=y(3118),T=y(7816),v=y(7206),C=y(5924),N=y(1469),D=y(4144),Y=y(3560),L=y(3218),j=y(6719);A.exports=function(V,K,tt){var dt=N(V),rt=dt||D(V)||j(V);if(K=v(K,4),tt==null){var Ot=V&&V.constructor;tt=rt?dt?new Ot:[]:L(V)&&Y(Ot)?d(C(V)):{}}return(rt?x:T)(V,function(ot,_t,Dt){return K(tt,ot,_t,Dt)}),tt}},3386:(A,F,y)=>{var x=y(1078),d=y(5976),T=y(5652),v=y(9246),C=d(function(N){return T(x(N,1,v,!0))});A.exports=C},3955:(A,F,y)=>{var x=y(9833),d=0;A.exports=function(T){var v=++d;return x(T)+v}},2628:(A,F,y)=>{var x=y(7415),d=y(3674);A.exports=function(T){return T==null?[]:x(T,d(T))}},7287:(A,F,y)=>{var x=y(4865),d=y(1757);A.exports=function(T,v){return d(T||[],v||[],x)}},9234:()=>{},1748:(A,F,y)=>{var x={"./locale":9234,"./locale.js":9234};function d(v){var C=T(v);return y(C)}function T(v){if(!y.o(x,v)){var C=new Error("Cannot find module '"+v+"'");throw C.code="MODULE_NOT_FOUND",C}return x[v]}d.keys=function(){return Object.keys(x)},d.resolve=T,A.exports=d,d.id=1748},1941:function(A,F,y){(A=y.nmd(A)).exports=function(){var x,d;function T(){return x.apply(null,arguments)}function v(E){return E instanceof Array||Object.prototype.toString.call(E)==="[object Array]"}function C(E){return E!=null&&Object.prototype.toString.call(E)==="[object Object]"}function N(E){return E===void 0}function D(E){return typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]"}function Y(E){return E instanceof Date||Object.prototype.toString.call(E)==="[object Date]"}function L(E,P){var G,ut=[];for(G=0;G<E.length;++G)ut.push(P(E[G],G));return ut}function j(E,P){return Object.prototype.hasOwnProperty.call(E,P)}function V(E,P){for(var G in P)j(P,G)&&(E[G]=P[G]);return j(P,"toString")&&(E.toString=P.toString),j(P,"valueOf")&&(E.valueOf=P.valueOf),E}function K(E,P,G,ut){return _a(E,P,G,ut,!0).utc()}function tt(E){return E._pf==null&&(E._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),E._pf}function dt(E){if(E._isValid==null){var P=tt(E),G=d.call(P.parsedDateParts,function(Zt){return Zt!=null}),ut=!isNaN(E._d.getTime())&&P.overflow<0&&!P.empty&&!P.invalidMonth&&!P.invalidWeekday&&!P.weekdayMismatch&&!P.nullInput&&!P.invalidFormat&&!P.userInvalidated&&(!P.meridiem||P.meridiem&&G);if(E._strict&&(ut=ut&&P.charsLeftOver===0&&P.unusedTokens.length===0&&P.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(E))return ut;E._isValid=ut}return E._isValid}function rt(E){var P=K(NaN);return E!=null?V(tt(P),E):tt(P).userInvalidated=!0,P}d=Array.prototype.some?Array.prototype.some:function(E){for(var P=Object(this),G=P.length>>>0,ut=0;ut<G;ut++)if(ut in P&&E.call(this,P[ut],ut,P))return!0;return!1};var Ot=T.momentProperties=[];function ot(E,P){var G,ut,Zt;if(N(P._isAMomentObject)||(E._isAMomentObject=P._isAMomentObject),N(P._i)||(E._i=P._i),N(P._f)||(E._f=P._f),N(P._l)||(E._l=P._l),N(P._strict)||(E._strict=P._strict),N(P._tzm)||(E._tzm=P._tzm),N(P._isUTC)||(E._isUTC=P._isUTC),N(P._offset)||(E._offset=P._offset),N(P._pf)||(E._pf=tt(P)),N(P._locale)||(E._locale=P._locale),0<Ot.length)for(G=0;G<Ot.length;G++)N(Zt=P[ut=Ot[G]])||(E[ut]=Zt);return E}var _t=!1;function Dt(E){ot(this,E),this._d=new Date(E._d!=null?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_t===!1&&(_t=!0,T.updateOffset(this),_t=!1)}function Xt(E){return E instanceof Dt||E!=null&&E._isAMomentObject!=null}function jt(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function Nt(E){var P=+E,G=0;return P!==0&&isFinite(P)&&(G=jt(P)),G}function Yt(E,P,G){var ut,Zt=Math.min(E.length,P.length),we=Math.abs(E.length-P.length),Be=0;for(ut=0;ut<Zt;ut++)(G&&E[ut]!==P[ut]||!G&&Nt(E[ut])!==Nt(P[ut]))&&Be++;return Be+we}function Bt(E){T.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+E)}function Tt(E,P){var G=!0;return V(function(){if(T.deprecationHandler!=null&&T.deprecationHandler(null,E),G){for(var ut,Zt=[],we=0;we<arguments.length;we++){if(ut="",typeof arguments[we]=="object"){for(var Be in ut+=`
[`+we+"] ",arguments[0])ut+=Be+": "+arguments[0][Be]+", ";ut=ut.slice(0,-2)}else ut=arguments[we];Zt.push(ut)}Bt(E+`
Arguments: `+Array.prototype.slice.call(Zt).join("")+`
`+new Error().stack),G=!1}return P.apply(this,arguments)},P)}var Q,lt={};function U(E,P){T.deprecationHandler!=null&&T.deprecationHandler(E,P),lt[E]||(Bt(P),lt[E]=!0)}function kt(E){return E instanceof Function||Object.prototype.toString.call(E)==="[object Function]"}function W(E,P){var G,ut=V({},E);for(G in P)j(P,G)&&(C(E[G])&&C(P[G])?(ut[G]={},V(ut[G],E[G]),V(ut[G],P[G])):P[G]!=null?ut[G]=P[G]:delete ut[G]);for(G in E)j(E,G)&&!j(P,G)&&C(E[G])&&(ut[G]=V({},ut[G]));return ut}function At(E){E!=null&&this.set(E)}T.suppressDeprecationWarnings=!1,T.deprecationHandler=null,Q=Object.keys?Object.keys:function(E){var P,G=[];for(P in E)j(E,P)&&G.push(P);return G};var Ft={};function Ut(E,P){var G=E.toLowerCase();Ft[G]=Ft[G+"s"]=Ft[P]=E}function pe(E){return typeof E=="string"?Ft[E]||Ft[E.toLowerCase()]:void 0}function je(E){var P,G,ut={};for(G in E)j(E,G)&&(P=pe(G))&&(ut[P]=E[G]);return ut}var _e={};function ue(E,P){_e[E]=P}function de(E,P,G){var ut=""+Math.abs(E),Zt=P-ut.length;return(0<=E?G?"+":"":"-")+Math.pow(10,Math.max(0,Zt)).toString().substr(1)+ut}var Me=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Se=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ge={},bn={};function ye(E,P,G,ut){var Zt=ut;typeof ut=="string"&&(Zt=function(){return this[ut]()}),E&&(bn[E]=Zt),P&&(bn[P[0]]=function(){return de(Zt.apply(this,arguments),P[1],P[2])}),G&&(bn[G]=function(){return this.localeData().ordinal(Zt.apply(this,arguments),E)})}function qe(E,P){return E.isValid()?(P=It(P,E.localeData()),ge[P]=ge[P]||function(G){var ut,Zt,we,Be=G.match(Me);for(ut=0,Zt=Be.length;ut<Zt;ut++)bn[Be[ut]]?Be[ut]=bn[Be[ut]]:Be[ut]=(we=Be[ut]).match(/\[[\s\S]/)?we.replace(/^\[|\]$/g,""):we.replace(/\\/g,"");return function($e){var He,tn="";for(He=0;He<Zt;He++)tn+=kt(Be[He])?Be[He].call($e,G):Be[He];return tn}}(P),ge[P](E)):E.localeData().invalidDate()}function It(E,P){var G=5;function ut(Zt){return P.longDateFormat(Zt)||Zt}for(Se.lastIndex=0;0<=G&&Se.test(E);)E=E.replace(Se,ut),Se.lastIndex=0,G-=1;return E}var se=/\d/,ne=/\d\d/,Ct=/\d{3}/,Ee=/\d{4}/,X=/[+-]?\d{6}/,Ce=/\d\d?/,nt=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,me=/\d{1,4}/,Re=/[+-]?\d{1,6}/,Le=/\d+/,an=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,Ke=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,en={};function Ne(E,P,G){en[E]=kt(P)?P:function(ut,Zt){return ut&&G?G:P}}function ln(E,P){return j(en,E)?en[E](P._strict,P._locale):new RegExp(dn(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,ut,Zt,we,Be){return ut||Zt||we||Be})))}function dn(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ue={};function Pe(E,P){var G,ut=P;for(typeof E=="string"&&(E=[E]),D(P)&&(ut=function(Zt,we){we[P]=Nt(Zt)}),G=0;G<E.length;G++)Ue[E[G]]=ut}function Ie(E,P){Pe(E,function(G,ut,Zt,we){Zt._w=Zt._w||{},P(G,Zt._w,Zt,we)})}function Xe(E){return jn(E)?366:365}function jn(E){return E%4==0&&E%100!=0||E%400==0}ye("Y",0,0,function(){var E=this.year();return E<=9999?""+E:"+"+E}),ye(0,["YY",2],0,function(){return this.year()%100}),ye(0,["YYYY",4],0,"year"),ye(0,["YYYYY",5],0,"year"),ye(0,["YYYYYY",6,!0],0,"year"),Ut("year","y"),ue("year",1),Ne("Y",an),Ne("YY",Ce,ne),Ne("YYYY",me,Ee),Ne("YYYYY",Re,X),Ne("YYYYYY",Re,X),Pe(["YYYYY","YYYYYY"],0),Pe("YYYY",function(E,P){P[0]=E.length===2?T.parseTwoDigitYear(E):Nt(E)}),Pe("YY",function(E,P){P[0]=T.parseTwoDigitYear(E)}),Pe("Y",function(E,P){P[0]=parseInt(E,10)}),T.parseTwoDigitYear=function(E){return Nt(E)+(68<Nt(E)?1900:2e3)};var Lt,An=Pt("FullYear",!0);function Pt(E,P){return function(G){return G!=null?(Mn(this,E,G),T.updateOffset(this,P),this):hn(this,E)}}function hn(E,P){return E.isValid()?E._d["get"+(E._isUTC?"UTC":"")+P]():NaN}function Mn(E,P,G){E.isValid()&&!isNaN(G)&&(P==="FullYear"&&jn(E.year())&&E.month()===1&&E.date()===29?E._d["set"+(E._isUTC?"UTC":"")+P](G,E.month(),on(G,E.month())):E._d["set"+(E._isUTC?"UTC":"")+P](G))}function on(E,P){if(isNaN(E)||isNaN(P))return NaN;var G=(P%12+12)%12;return E+=(P-G)/12,G===1?jn(E)?29:28:31-G%7%2}Lt=Array.prototype.indexOf?Array.prototype.indexOf:function(E){var P;for(P=0;P<this.length;++P)if(this[P]===E)return P;return-1},ye("M",["MM",2],"Mo",function(){return this.month()+1}),ye("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),ye("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Ut("month","M"),ue("month",8),Ne("M",Ce),Ne("MM",Ce,ne),Ne("MMM",function(E,P){return P.monthsShortRegex(E)}),Ne("MMMM",function(E,P){return P.monthsRegex(E)}),Pe(["M","MM"],function(E,P){P[1]=Nt(E)-1}),Pe(["MMM","MMMM"],function(E,P,G,ut){var Zt=G._locale.monthsParse(E,ut,G._strict);Zt!=null?P[1]=Zt:tt(G).invalidMonth=E});var qn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function kn(E,P){var G;if(!E.isValid())return E;if(typeof P=="string"){if(/^\d+$/.test(P))P=Nt(P);else if(!D(P=E.localeData().monthsParse(P)))return E}return G=Math.min(E.date(),on(E.year(),P)),E._d["set"+(E._isUTC?"UTC":"")+"Month"](P,G),E}function Yn(E){return E!=null?(kn(this,E),T.updateOffset(this,!0),this):hn(this,"Month")}var Ln=Ke,Nn=Ke;function Fn(){function E(Be,$e){return $e.length-Be.length}var P,G,ut=[],Zt=[],we=[];for(P=0;P<12;P++)G=K([2e3,P]),ut.push(this.monthsShort(G,"")),Zt.push(this.months(G,"")),we.push(this.months(G,"")),we.push(this.monthsShort(G,""));for(ut.sort(E),Zt.sort(E),we.sort(E),P=0;P<12;P++)ut[P]=dn(ut[P]),Zt[P]=dn(Zt[P]);for(P=0;P<24;P++)we[P]=dn(we[P]);this._monthsRegex=new RegExp("^("+we.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Zt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ut.join("|")+")","i")}function Pn(E){var P;if(E<100&&0<=E){var G=Array.prototype.slice.call(arguments);G[0]=E+400,P=new Date(Date.UTC.apply(null,G)),isFinite(P.getUTCFullYear())&&P.setUTCFullYear(E)}else P=new Date(Date.UTC.apply(null,arguments));return P}function Tn(E,P,G){var ut=7+P-G;return-(7+Pn(E,0,ut).getUTCDay()-P)%7+ut-1}function Wn(E,P,G,ut,Zt){var we,Be,$e=1+7*(P-1)+(7+G-ut)%7+Tn(E,ut,Zt);return Be=$e<=0?Xe(we=E-1)+$e:$e>Xe(E)?(we=E+1,$e-Xe(E)):(we=E,$e),{year:we,dayOfYear:Be}}function xn(E,P,G){var ut,Zt,we=Tn(E.year(),P,G),Be=Math.floor((E.dayOfYear()-we-1)/7)+1;return Be<1?ut=Be+Cn(Zt=E.year()-1,P,G):Be>Cn(E.year(),P,G)?(ut=Be-Cn(E.year(),P,G),Zt=E.year()+1):(Zt=E.year(),ut=Be),{week:ut,year:Zt}}function Cn(E,P,G){var ut=Tn(E,P,G),Zt=Tn(E+1,P,G);return(Xe(E)-ut+Zt)/7}function $n(E,P){return E.slice(P,7).concat(E.slice(0,P))}ye("w",["ww",2],"wo","week"),ye("W",["WW",2],"Wo","isoWeek"),Ut("week","w"),Ut("isoWeek","W"),ue("week",5),ue("isoWeek",5),Ne("w",Ce),Ne("ww",Ce,ne),Ne("W",Ce),Ne("WW",Ce,ne),Ie(["w","ww","W","WW"],function(E,P,G,ut){P[ut.substr(0,1)]=Nt(E)}),ye("d",0,"do","day"),ye("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),ye("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),ye("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),ye("e",0,0,"weekday"),ye("E",0,0,"isoWeekday"),Ut("day","d"),Ut("weekday","e"),Ut("isoWeekday","E"),ue("day",11),ue("weekday",11),ue("isoWeekday",11),Ne("d",Ce),Ne("e",Ce),Ne("E",Ce),Ne("dd",function(E,P){return P.weekdaysMinRegex(E)}),Ne("ddd",function(E,P){return P.weekdaysShortRegex(E)}),Ne("dddd",function(E,P){return P.weekdaysRegex(E)}),Ie(["dd","ddd","dddd"],function(E,P,G,ut){var Zt=G._locale.weekdaysParse(E,ut,G._strict);Zt!=null?P.d=Zt:tt(G).invalidWeekday=E}),Ie(["d","e","E"],function(E,P,G,ut){P[ut]=Nt(E)});var oa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ti="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pn=Ke,mi=Ke,br=Ke;function yr(){function E(sn,In){return In.length-sn.length}var P,G,ut,Zt,we,Be=[],$e=[],He=[],tn=[];for(P=0;P<7;P++)G=K([2e3,1]).day(P),ut=this.weekdaysMin(G,""),Zt=this.weekdaysShort(G,""),we=this.weekdays(G,""),Be.push(ut),$e.push(Zt),He.push(we),tn.push(ut),tn.push(Zt),tn.push(we);for(Be.sort(E),$e.sort(E),He.sort(E),tn.sort(E),P=0;P<7;P++)$e[P]=dn($e[P]),He[P]=dn(He[P]),tn[P]=dn(tn[P]);this._weekdaysRegex=new RegExp("^("+tn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+He.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+$e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Be.join("|")+")","i")}function ai(){return this.hours()%12||12}function ei(E,P){ye(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),P)})}function hi(E,P){return P._meridiemParse}ye("H",["HH",2],0,"hour"),ye("h",["hh",2],0,ai),ye("k",["kk",2],0,function(){return this.hours()||24}),ye("hmm",0,0,function(){return""+ai.apply(this)+de(this.minutes(),2)}),ye("hmmss",0,0,function(){return""+ai.apply(this)+de(this.minutes(),2)+de(this.seconds(),2)}),ye("Hmm",0,0,function(){return""+this.hours()+de(this.minutes(),2)}),ye("Hmmss",0,0,function(){return""+this.hours()+de(this.minutes(),2)+de(this.seconds(),2)}),ei("a",!0),ei("A",!1),Ut("hour","h"),ue("hour",13),Ne("a",hi),Ne("A",hi),Ne("H",Ce),Ne("h",Ce),Ne("k",Ce),Ne("HH",Ce,ne),Ne("hh",Ce,ne),Ne("kk",Ce,ne),Ne("hmm",nt),Ne("hmmss",ke),Ne("Hmm",nt),Ne("Hmmss",ke),Pe(["H","HH"],3),Pe(["k","kk"],function(E,P,G){var ut=Nt(E);P[3]=ut===24?0:ut}),Pe(["a","A"],function(E,P,G){G._isPm=G._locale.isPM(E),G._meridiem=E}),Pe(["h","hh"],function(E,P,G){P[3]=Nt(E),tt(G).bigHour=!0}),Pe("hmm",function(E,P,G){var ut=E.length-2;P[3]=Nt(E.substr(0,ut)),P[4]=Nt(E.substr(ut)),tt(G).bigHour=!0}),Pe("hmmss",function(E,P,G){var ut=E.length-4,Zt=E.length-2;P[3]=Nt(E.substr(0,ut)),P[4]=Nt(E.substr(ut,2)),P[5]=Nt(E.substr(Zt)),tt(G).bigHour=!0}),Pe("Hmm",function(E,P,G){var ut=E.length-2;P[3]=Nt(E.substr(0,ut)),P[4]=Nt(E.substr(ut))}),Pe("Hmmss",function(E,P,G){var ut=E.length-4,Zt=E.length-2;P[3]=Nt(E.substr(0,ut)),P[4]=Nt(E.substr(ut,2)),P[5]=Nt(E.substr(Zt))});var Zr,fi=Pt("Hours",!0),Qr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Qn,monthsShort:Pr,week:{dow:0,doy:6},weekdays:oa,weekdaysMin:Ti,weekdaysShort:fr,meridiemParse:/[ap]\.?m?\.?/i},dr={},Jr={};function oi(E){return E&&E.toLowerCase().replace("_","-")}function si(E){var P=null;if(!dr[E]&&A&&A.exports)try{P=Zr._abbr,y(1748)("./"+E),vi(P)}catch{}return dr[E]}function vi(E,P){var G;return E&&((G=N(P)?Tr(E):to(E,P))?Zr=G:typeof console!="undefined"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Zr._abbr}function to(E,P){if(P===null)return delete dr[E],null;var G,ut=Qr;if(P.abbr=E,dr[E]!=null)U("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ut=dr[E]._config;else if(P.parentLocale!=null)if(dr[P.parentLocale]!=null)ut=dr[P.parentLocale]._config;else{if((G=si(P.parentLocale))==null)return Jr[P.parentLocale]||(Jr[P.parentLocale]=[]),Jr[P.parentLocale].push({name:E,config:P}),null;ut=G._config}return dr[E]=new At(W(ut,P)),Jr[E]&&Jr[E].forEach(function(Zt){to(Zt.name,Zt.config)}),vi(E),dr[E]}function Tr(E){var P;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Zr;if(!v(E)){if(P=si(E))return P;E=[E]}return function(G){for(var ut,Zt,we,Be,$e=0;$e<G.length;){for(ut=(Be=oi(G[$e]).split("-")).length,Zt=(Zt=oi(G[$e+1]))?Zt.split("-"):null;0<ut;){if(we=si(Be.slice(0,ut).join("-")))return we;if(Zt&&Zt.length>=ut&&Yt(Be,Zt,!0)>=ut-1)break;ut--}$e++}return Zr}(E)}function Ma(E){var P,G=E._a;return G&&tt(E).overflow===-2&&(P=G[1]<0||11<G[1]?1:G[2]<1||G[2]>on(G[0],G[1])?2:G[3]<0||24<G[3]||G[3]===24&&(G[4]!==0||G[5]!==0||G[6]!==0)?3:G[4]<0||59<G[4]?4:G[5]<0||59<G[5]?5:G[6]<0||999<G[6]?6:-1,tt(E)._overflowDayOfYear&&(P<0||2<P)&&(P=2),tt(E)._overflowWeeks&&P===-1&&(P=7),tt(E)._overflowWeekday&&P===-1&&(P=8),tt(E).overflow=P),E}function sa(E,P,G){return E!=null?E:P!=null?P:G}function Yi(E){var P,G,ut,Zt,we,Be=[];if(!E._d){var $e,He;for($e=E,He=new Date(T.now()),ut=$e._useUTC?[He.getUTCFullYear(),He.getUTCMonth(),He.getUTCDate()]:[He.getFullYear(),He.getMonth(),He.getDate()],E._w&&E._a[2]==null&&E._a[1]==null&&function(tn){var sn,In,Dn,mr,xr,Ir,pr,Oa;if((sn=tn._w).GG!=null||sn.W!=null||sn.E!=null)xr=1,Ir=4,In=sa(sn.GG,tn._a[0],xn(Hn(),1,4).year),Dn=sa(sn.W,1),((mr=sa(sn.E,1))<1||7<mr)&&(Oa=!0);else{xr=tn._locale._week.dow,Ir=tn._locale._week.doy;var Fs=xn(Hn(),xr,Ir);In=sa(sn.gg,tn._a[0],Fs.year),Dn=sa(sn.w,Fs.week),sn.d!=null?((mr=sn.d)<0||6<mr)&&(Oa=!0):sn.e!=null?(mr=sn.e+xr,(sn.e<0||6<sn.e)&&(Oa=!0)):mr=xr}Dn<1||Dn>Cn(In,xr,Ir)?tt(tn)._overflowWeeks=!0:Oa!=null?tt(tn)._overflowWeekday=!0:(pr=Wn(In,Dn,mr,xr,Ir),tn._a[0]=pr.year,tn._dayOfYear=pr.dayOfYear)}(E),E._dayOfYear!=null&&(we=sa(E._a[0],ut[0]),(E._dayOfYear>Xe(we)||E._dayOfYear===0)&&(tt(E)._overflowDayOfYear=!0),G=Pn(we,0,E._dayOfYear),E._a[1]=G.getUTCMonth(),E._a[2]=G.getUTCDate()),P=0;P<3&&E._a[P]==null;++P)E._a[P]=Be[P]=ut[P];for(;P<7;P++)E._a[P]=Be[P]=E._a[P]==null?P===2?1:0:E._a[P];E._a[3]===24&&E._a[4]===0&&E._a[5]===0&&E._a[6]===0&&(E._nextDay=!0,E._a[3]=0),E._d=(E._useUTC?Pn:function(tn,sn,In,Dn,mr,xr,Ir){var pr;return tn<100&&0<=tn?(pr=new Date(tn+400,sn,In,Dn,mr,xr,Ir),isFinite(pr.getFullYear())&&pr.setFullYear(tn)):pr=new Date(tn,sn,In,Dn,mr,xr,Ir),pr}).apply(null,Be),Zt=E._useUTC?E._d.getUTCDay():E._d.getDay(),E._tzm!=null&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[3]=24),E._w&&E._w.d!==void 0&&E._w.d!==Zt&&(tt(E).weekdayMismatch=!0)}}var gn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,De=/Z|[+-]\d\d(?::?\d\d)?/,We=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_r=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qt=/^\/?Date\((\-?\d+)/i;function ba(E){var P,G,ut,Zt,we,Be,$e=E._i,He=gn.exec($e)||Jn.exec($e);if(He){for(tt(E).iso=!0,P=0,G=We.length;P<G;P++)if(We[P][1].exec(He[1])){Zt=We[P][0],ut=We[P][2]!==!1;break}if(Zt==null)return void(E._isValid=!1);if(He[3]){for(P=0,G=_r.length;P<G;P++)if(_r[P][1].exec(He[3])){we=(He[2]||" ")+_r[P][0];break}if(we==null)return void(E._isValid=!1)}if(!ut&&we!=null)return void(E._isValid=!1);if(He[4]){if(!De.exec(He[4]))return void(E._isValid=!1);Be="Z"}E._f=Zt+(we||"")+(Be||""),Ls(E)}else E._isValid=!1}var Kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mo(E){var P,G,ut,Zt=Kt.exec(E._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Zt){var we=function(Be,$e,He,tn,sn,In){var Dn=[function(mr){var xr=parseInt(mr,10);return xr<=49?2e3+xr:xr<=999?1900+xr:xr}(Be),Pr.indexOf($e),parseInt(He,10),parseInt(tn,10),parseInt(sn,10)];return In&&Dn.push(parseInt(In,10)),Dn}(Zt[4],Zt[3],Zt[2],Zt[5],Zt[6],Zt[7]);if(G=we,ut=E,(P=Zt[1])&&fr.indexOf(P)!==new Date(G[0],G[1],G[2]).getDay()&&(tt(ut).weekdayMismatch=!0,!(ut._isValid=!1)))return;E._a=we,E._tzm=function(Be,$e,He){if(Be)return Kr[Be];if($e)return 0;var tn=parseInt(He,10),sn=tn%100;return(tn-sn)/100*60+sn}(Zt[8],Zt[9],Zt[10]),E._d=Pn.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),tt(E).rfc2822=!0}else E._isValid=!1}function Ls(E){if(E._f!==T.ISO_8601)if(E._f!==T.RFC_2822){E._a=[],tt(E).empty=!0;var P,G,ut,Zt,we,Be,$e,He,tn=""+E._i,sn=tn.length,In=0;for(ut=It(E._f,E._locale).match(Me)||[],P=0;P<ut.length;P++)Zt=ut[P],(G=(tn.match(ln(Zt,E))||[])[0])&&(0<(we=tn.substr(0,tn.indexOf(G))).length&&tt(E).unusedInput.push(we),tn=tn.slice(tn.indexOf(G)+G.length),In+=G.length),bn[Zt]?(G?tt(E).empty=!1:tt(E).unusedTokens.push(Zt),Be=Zt,He=E,($e=G)!=null&&j(Ue,Be)&&Ue[Be]($e,He._a,He,Be)):E._strict&&!G&&tt(E).unusedTokens.push(Zt);tt(E).charsLeftOver=sn-In,0<tn.length&&tt(E).unusedInput.push(tn),E._a[3]<=12&&tt(E).bigHour===!0&&0<E._a[3]&&(tt(E).bigHour=void 0),tt(E).parsedDateParts=E._a.slice(0),tt(E).meridiem=E._meridiem,E._a[3]=function(Dn,mr,xr){var Ir;return xr==null?mr:Dn.meridiemHour!=null?Dn.meridiemHour(mr,xr):(Dn.isPM!=null&&((Ir=Dn.isPM(xr))&&mr<12&&(mr+=12),Ir||mr!==12||(mr=0)),mr)}(E._locale,E._a[3],E._meridiem),Yi(E),Ma(E)}else Mo(E);else ba(E)}function mc(E){var P,G,ut,Zt,we=E._i,Be=E._f;return E._locale=E._locale||Tr(E._l),we===null||Be===void 0&&we===""?rt({nullInput:!0}):(typeof we=="string"&&(E._i=we=E._locale.preparse(we)),Xt(we)?new Dt(Ma(we)):(Y(we)?E._d=we:v(Be)?function($e){var He,tn,sn,In,Dn;if($e._f.length===0)return tt($e).invalidFormat=!0,$e._d=new Date(NaN);for(In=0;In<$e._f.length;In++)Dn=0,He=ot({},$e),$e._useUTC!=null&&(He._useUTC=$e._useUTC),He._f=$e._f[In],Ls(He),dt(He)&&(Dn+=tt(He).charsLeftOver,Dn+=10*tt(He).unusedTokens.length,tt(He).score=Dn,(sn==null||Dn<sn)&&(sn=Dn,tn=He));V($e,tn||He)}(E):Be?Ls(E):N(G=(P=E)._i)?P._d=new Date(T.now()):Y(G)?P._d=new Date(G.valueOf()):typeof G=="string"?(ut=P,(Zt=qt.exec(ut._i))===null?(ba(ut),ut._isValid===!1&&(delete ut._isValid,Mo(ut),ut._isValid===!1&&(delete ut._isValid,T.createFromInputFallback(ut)))):ut._d=new Date(+Zt[1])):v(G)?(P._a=L(G.slice(0),function($e){return parseInt($e,10)}),Yi(P)):C(G)?function($e){if(!$e._d){var He=je($e._i);$e._a=L([He.year,He.month,He.day||He.date,He.hour,He.minute,He.second,He.millisecond],function(tn){return tn&&parseInt(tn,10)}),Yi($e)}}(P):D(G)?P._d=new Date(G):T.createFromInputFallback(P),dt(E)||(E._d=null),E))}function _a(E,P,G,ut,Zt){var we,Be={};return G!==!0&&G!==!1||(ut=G,G=void 0),(C(E)&&function($e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames($e).length===0;var He;for(He in $e)if($e.hasOwnProperty(He))return!1;return!0}(E)||v(E)&&E.length===0)&&(E=void 0),Be._isAMomentObject=!0,Be._useUTC=Be._isUTC=Zt,Be._l=G,Be._i=E,Be._f=P,Be._strict=ut,(we=new Dt(Ma(mc(Be))))._nextDay&&(we.add(1,"d"),we._nextDay=void 0),we}function Hn(E,P,G,ut){return _a(E,P,G,ut,!1)}T.createFromInputFallback=Tt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(E){E._d=new Date(E._i+(E._useUTC?" UTC":""))}),T.ISO_8601=function(){},T.RFC_2822=function(){};var Yr=Tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=Hn.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:rt()}),Ei=Tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=Hn.apply(null,arguments);return this.isValid()&&E.isValid()?this<E?this:E:rt()});function zr(E,P){var G,ut;if(P.length===1&&v(P[0])&&(P=P[0]),!P.length)return Hn();for(G=P[0],ut=1;ut<P.length;++ut)P[ut].isValid()&&!P[ut][E](G)||(G=P[ut]);return G}var Di=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gi(E){var P=je(E),G=P.year||0,ut=P.quarter||0,Zt=P.month||0,we=P.week||P.isoWeek||0,Be=P.day||0,$e=P.hour||0,He=P.minute||0,tn=P.second||0,sn=P.millisecond||0;this._isValid=function(In){for(var Dn in In)if(Lt.call(Di,Dn)===-1||In[Dn]!=null&&isNaN(In[Dn]))return!1;for(var mr=!1,xr=0;xr<Di.length;++xr)if(In[Di[xr]]){if(mr)return!1;parseFloat(In[Di[xr]])!==Nt(In[Di[xr]])&&(mr=!0)}return!0}(P),this._milliseconds=+sn+1e3*tn+6e4*He+1e3*$e*60*60,this._days=+Be+7*we,this._months=+Zt+3*ut+12*G,this._data={},this._locale=Tr(),this._bubble()}function Oi(E){return E instanceof Gi}function Nr(E){return E<0?-1*Math.round(-1*E):Math.round(E)}function ci(E,P){ye(E,0,0,function(){var G=this.utcOffset(),ut="+";return G<0&&(G=-G,ut="-"),ut+de(~~(G/60),2)+P+de(~~G%60,2)})}ci("Z",":"),ci("ZZ",""),Ne("Z",Ve),Ne("ZZ",Ve),Pe(["Z","ZZ"],function(E,P,G){G._useUTC=!0,G._tzm=jr(Ve,E)});var ni=/([\+\-]|\d\d)/gi;function jr(E,P){var G=(P||"").match(E);if(G===null)return null;var ut=((G[G.length-1]||[])+"").match(ni)||["-",0,0],Zt=60*ut[1]+Nt(ut[2]);return Zt===0?0:ut[0]==="+"?Zt:-Zt}function ca(E,P){var G,ut;return P._isUTC?(G=P.clone(),ut=(Xt(E)||Y(E)?E.valueOf():Hn(E).valueOf())-G.valueOf(),G._d.setTime(G._d.valueOf()+ut),T.updateOffset(G,!1),G):Hn(E).local()}function Xi(E){return 15*-Math.round(E._d.getTimezoneOffset()/15)}function Ci(){return!!this.isValid()&&this._isUTC&&this._offset===0}T.updateOffset=function(){};var xa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function li(E,P){var G,ut,Zt,we=E,Be=null;return Oi(E)?we={ms:E._milliseconds,d:E._days,M:E._months}:D(E)?(we={},P?we[P]=E:we.milliseconds=E):(Be=xa.exec(E))?(G=Be[1]==="-"?-1:1,we={y:0,d:Nt(Be[2])*G,h:Nt(Be[3])*G,m:Nt(Be[4])*G,s:Nt(Be[5])*G,ms:Nt(Nr(1e3*Be[6]))*G}):(Be=Gr.exec(E))?(G=Be[1]==="-"?-1:1,we={y:wa(Be[2],G),M:wa(Be[3],G),w:wa(Be[4],G),d:wa(Be[5],G),h:wa(Be[6],G),m:wa(Be[7],G),s:wa(Be[8],G)}):we==null?we={}:typeof we=="object"&&("from"in we||"to"in we)&&(Zt=function($e,He){var tn;return $e.isValid()&&He.isValid()?(He=ca(He,$e),$e.isBefore(He)?tn=la($e,He):((tn=la(He,$e)).milliseconds=-tn.milliseconds,tn.months=-tn.months),tn):{milliseconds:0,months:0}}(Hn(we.from),Hn(we.to)),(we={}).ms=Zt.milliseconds,we.M=Zt.months),ut=new Gi(we),Oi(E)&&j(E,"_locale")&&(ut._locale=E._locale),ut}function wa(E,P){var G=E&&parseFloat(E.replace(",","."));return(isNaN(G)?0:G)*P}function la(E,P){var G={};return G.months=P.month()-E.month()+12*(P.year()-E.year()),E.clone().add(G.months,"M").isAfter(P)&&--G.months,G.milliseconds=+P-+E.clone().add(G.months,"M"),G}function No(E,P){return function(G,ut){var Zt;return ut===null||isNaN(+ut)||(U(P,"moment()."+P+"(period, number) is deprecated. Please use moment()."+P+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Zt=G,G=ut,ut=Zt),tl(this,li(G=typeof G=="string"?+G:G,ut),E),this}}function tl(E,P,G,ut){var Zt=P._milliseconds,we=Nr(P._days),Be=Nr(P._months);E.isValid()&&(ut=ut==null||ut,Be&&kn(E,hn(E,"Month")+Be*G),we&&Mn(E,"Date",hn(E,"Date")+we*G),Zt&&E._d.setTime(E._d.valueOf()+Zt*G),ut&&T.updateOffset(E,we||Be))}li.fn=Gi.prototype,li.invalid=function(){return li(NaN)};var Ht=No(1,"add"),un=No(-1,"subtract");function Qe(E,P){var G=12*(P.year()-E.year())+(P.month()-E.month()),ut=E.clone().add(G,"months");return-(G+(P-ut<0?(P-ut)/(ut-E.clone().add(G-1,"months")):(P-ut)/(E.clone().add(G+1,"months")-ut)))||0}function Kn(E){var P;return E===void 0?this._locale._abbr:((P=Tr(E))!=null&&(this._locale=P),this)}T.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",T.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ur=Tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(E){return E===void 0?this.localeData():this.locale(E)});function qr(){return this._locale}var ri=126227808e5;function Zi(E,P){return(E%P+P)%P}function ka(E,P,G){return E<100&&0<=E?new Date(E+400,P,G)-ri:new Date(E,P,G).valueOf()}function Dr(E,P,G){return E<100&&0<=E?Date.UTC(E+400,P,G)-ri:Date.UTC(E,P,G)}function ti(E,P){ye(0,[E,E.length],0,P)}function el(E,P,G,ut,Zt){var we;return E==null?xn(this,ut,Zt).year:((we=Cn(E,ut,Zt))<P&&(P=we),function(Be,$e,He,tn,sn){var In=Wn(Be,$e,He,tn,sn),Dn=Pn(In.year,0,In.dayOfYear);return this.year(Dn.getUTCFullYear()),this.month(Dn.getUTCMonth()),this.date(Dn.getUTCDate()),this}.call(this,E,P,G,ut,Zt))}ye(0,["gg",2],0,function(){return this.weekYear()%100}),ye(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),Ut("weekYear","gg"),Ut("isoWeekYear","GG"),ue("weekYear",1),ue("isoWeekYear",1),Ne("G",an),Ne("g",an),Ne("GG",Ce,ne),Ne("gg",Ce,ne),Ne("GGGG",me,Ee),Ne("gggg",me,Ee),Ne("GGGGG",Re,X),Ne("ggggg",Re,X),Ie(["gggg","ggggg","GGGG","GGGGG"],function(E,P,G,ut){P[ut.substr(0,2)]=Nt(E)}),Ie(["gg","GG"],function(E,P,G,ut){P[ut]=T.parseTwoDigitYear(E)}),ye("Q",0,"Qo","quarter"),Ut("quarter","Q"),ue("quarter",7),Ne("Q",se),Pe("Q",function(E,P){P[1]=3*(Nt(E)-1)}),ye("D",["DD",2],"Do","date"),Ut("date","D"),ue("date",9),Ne("D",Ce),Ne("DD",Ce,ne),Ne("Do",function(E,P){return E?P._dayOfMonthOrdinalParse||P._ordinalParse:P._dayOfMonthOrdinalParseLenient}),Pe(["D","DD"],2),Pe("Do",function(E,P){P[2]=Nt(E.match(Ce)[0])});var ql=Pt("Date",!0);ye("DDD",["DDDD",3],"DDDo","dayOfYear"),Ut("dayOfYear","DDD"),ue("dayOfYear",4),Ne("DDD",ee),Ne("DDDD",Ct),Pe(["DDD","DDDD"],function(E,P,G){G._dayOfYear=Nt(E)}),ye("m",["mm",2],0,"minute"),Ut("minute","m"),ue("minute",14),Ne("m",Ce),Ne("mm",Ce,ne),Pe(["m","mm"],4);var Wl=Pt("Minutes",!1);ye("s",["ss",2],0,"second"),Ut("second","s"),ue("second",15),Ne("s",Ce),Ne("ss",Ce,ne),Pe(["s","ss"],5);var eo,$l=Pt("Seconds",!1);for(ye("S",0,0,function(){return~~(this.millisecond()/100)}),ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ye(0,["SSS",3],0,"millisecond"),ye(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ye(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ye(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ye(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ye(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ye(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ut("millisecond","ms"),ue("millisecond",16),Ne("S",ee,se),Ne("SS",ee,ne),Ne("SSS",ee,Ct),eo="SSSS";eo.length<=9;eo+="S")Ne(eo,Le);function Hl(E,P){P[6]=Nt(1e3*("0."+E))}for(eo="S";eo.length<=9;eo+="S")Pe(eo,Hl);var no=Pt("Milliseconds",!1);ye("z",0,0,"zoneAbbr"),ye("zz",0,0,"zoneName");var Je=Dt.prototype;function oh(E){return E}Je.add=Ht,Je.calendar=function(E,P){var G=E||Hn(),ut=ca(G,this).startOf("day"),Zt=T.calendarFormat(this,ut)||"sameElse",we=P&&(kt(P[Zt])?P[Zt].call(this,G):P[Zt]);return this.format(we||this.localeData().calendar(Zt,this,Hn(G)))},Je.clone=function(){return new Dt(this)},Je.diff=function(E,P,G){var ut,Zt,we;if(!this.isValid())return NaN;if(!(ut=ca(E,this)).isValid())return NaN;switch(Zt=6e4*(ut.utcOffset()-this.utcOffset()),P=pe(P)){case"year":we=Qe(this,ut)/12;break;case"month":we=Qe(this,ut);break;case"quarter":we=Qe(this,ut)/3;break;case"second":we=(this-ut)/1e3;break;case"minute":we=(this-ut)/6e4;break;case"hour":we=(this-ut)/36e5;break;case"day":we=(this-ut-Zt)/864e5;break;case"week":we=(this-ut-Zt)/6048e5;break;default:we=this-ut}return G?we:jt(we)},Je.endOf=function(E){var P;if((E=pe(E))===void 0||E==="millisecond"||!this.isValid())return this;var G=this._isUTC?Dr:ka;switch(E){case"year":P=G(this.year()+1,0,1)-1;break;case"quarter":P=G(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":P=G(this.year(),this.month()+1,1)-1;break;case"week":P=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":P=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":P=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":P=this._d.valueOf(),P+=36e5-Zi(P+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":P=this._d.valueOf(),P+=6e4-Zi(P,6e4)-1;break;case"second":P=this._d.valueOf(),P+=1e3-Zi(P,1e3)-1}return this._d.setTime(P),T.updateOffset(this,!0),this},Je.format=function(E){E||(E=this.isUtc()?T.defaultFormatUtc:T.defaultFormat);var P=qe(this,E);return this.localeData().postformat(P)},Je.from=function(E,P){return this.isValid()&&(Xt(E)&&E.isValid()||Hn(E).isValid())?li({to:this,from:E}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Je.fromNow=function(E){return this.from(Hn(),E)},Je.to=function(E,P){return this.isValid()&&(Xt(E)&&E.isValid()||Hn(E).isValid())?li({from:this,to:E}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Je.toNow=function(E){return this.to(Hn(),E)},Je.get=function(E){return kt(this[E=pe(E)])?this[E]():this},Je.invalidAt=function(){return tt(this).overflow},Je.isAfter=function(E,P){var G=Xt(E)?E:Hn(E);return!(!this.isValid()||!G.isValid())&&((P=pe(P)||"millisecond")==="millisecond"?this.valueOf()>G.valueOf():G.valueOf()<this.clone().startOf(P).valueOf())},Je.isBefore=function(E,P){var G=Xt(E)?E:Hn(E);return!(!this.isValid()||!G.isValid())&&((P=pe(P)||"millisecond")==="millisecond"?this.valueOf()<G.valueOf():this.clone().endOf(P).valueOf()<G.valueOf())},Je.isBetween=function(E,P,G,ut){var Zt=Xt(E)?E:Hn(E),we=Xt(P)?P:Hn(P);return!!(this.isValid()&&Zt.isValid()&&we.isValid())&&((ut=ut||"()")[0]==="("?this.isAfter(Zt,G):!this.isBefore(Zt,G))&&(ut[1]===")"?this.isBefore(we,G):!this.isAfter(we,G))},Je.isSame=function(E,P){var G,ut=Xt(E)?E:Hn(E);return!(!this.isValid()||!ut.isValid())&&((P=pe(P)||"millisecond")==="millisecond"?this.valueOf()===ut.valueOf():(G=ut.valueOf(),this.clone().startOf(P).valueOf()<=G&&G<=this.clone().endOf(P).valueOf()))},Je.isSameOrAfter=function(E,P){return this.isSame(E,P)||this.isAfter(E,P)},Je.isSameOrBefore=function(E,P){return this.isSame(E,P)||this.isBefore(E,P)},Je.isValid=function(){return dt(this)},Je.lang=Ur,Je.locale=Kn,Je.localeData=qr,Je.max=Ei,Je.min=Yr,Je.parsingFlags=function(){return V({},tt(this))},Je.set=function(E,P){if(typeof E=="object")for(var G=function(Zt){var we=[];for(var Be in Zt)we.push({unit:Be,priority:_e[Be]});return we.sort(function($e,He){return $e.priority-He.priority}),we}(E=je(E)),ut=0;ut<G.length;ut++)this[G[ut].unit](E[G[ut].unit]);else if(kt(this[E=pe(E)]))return this[E](P);return this},Je.startOf=function(E){var P;if((E=pe(E))===void 0||E==="millisecond"||!this.isValid())return this;var G=this._isUTC?Dr:ka;switch(E){case"year":P=G(this.year(),0,1);break;case"quarter":P=G(this.year(),this.month()-this.month()%3,1);break;case"month":P=G(this.year(),this.month(),1);break;case"week":P=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":P=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":P=G(this.year(),this.month(),this.date());break;case"hour":P=this._d.valueOf(),P-=Zi(P+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":P=this._d.valueOf(),P-=Zi(P,6e4);break;case"second":P=this._d.valueOf(),P-=Zi(P,1e3)}return this._d.setTime(P),T.updateOffset(this,!0),this},Je.subtract=un,Je.toArray=function(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]},Je.toObject=function(){var E=this;return{years:E.year(),months:E.month(),date:E.date(),hours:E.hours(),minutes:E.minutes(),seconds:E.seconds(),milliseconds:E.milliseconds()}},Je.toDate=function(){return new Date(this.valueOf())},Je.toISOString=function(E){if(!this.isValid())return null;var P=E!==!0,G=P?this.clone().utc():this;return G.year()<0||9999<G.year()?qe(G,P?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kt(Date.prototype.toISOString)?P?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",qe(G,"Z")):qe(G,P?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Je.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",P="";this.isLocal()||(E=this.utcOffset()===0?"moment.utc":"moment.parseZone",P="Z");var G="["+E+'("]',ut=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Zt=P+'[")]';return this.format(G+ut+"-MM-DD[T]HH:mm:ss.SSS"+Zt)},Je.toJSON=function(){return this.isValid()?this.toISOString():null},Je.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Je.unix=function(){return Math.floor(this.valueOf()/1e3)},Je.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Je.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Je.year=An,Je.isLeapYear=function(){return jn(this.year())},Je.weekYear=function(E){return el.call(this,E,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Je.isoWeekYear=function(E){return el.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)},Je.quarter=Je.quarters=function(E){return E==null?Math.ceil((this.month()+1)/3):this.month(3*(E-1)+this.month()%3)},Je.month=Yn,Je.daysInMonth=function(){return on(this.year(),this.month())},Je.week=Je.weeks=function(E){var P=this.localeData().week(this);return E==null?P:this.add(7*(E-P),"d")},Je.isoWeek=Je.isoWeeks=function(E){var P=xn(this,1,4).week;return E==null?P:this.add(7*(E-P),"d")},Je.weeksInYear=function(){var E=this.localeData()._week;return Cn(this.year(),E.dow,E.doy)},Je.isoWeeksInYear=function(){return Cn(this.year(),1,4)},Je.date=ql,Je.day=Je.days=function(E){if(!this.isValid())return E!=null?this:NaN;var P,G,ut=this._isUTC?this._d.getUTCDay():this._d.getDay();return E!=null?(P=E,G=this.localeData(),E=typeof P!="string"?P:isNaN(P)?typeof(P=G.weekdaysParse(P))=="number"?P:null:parseInt(P,10),this.add(E-ut,"d")):ut},Je.weekday=function(E){if(!this.isValid())return E!=null?this:NaN;var P=(this.day()+7-this.localeData()._week.dow)%7;return E==null?P:this.add(E-P,"d")},Je.isoWeekday=function(E){if(!this.isValid())return E!=null?this:NaN;if(E==null)return this.day()||7;var P,G,ut=(P=E,G=this.localeData(),typeof P=="string"?G.weekdaysParse(P)%7||7:isNaN(P)?null:P);return this.day(this.day()%7?ut:ut-7)},Je.dayOfYear=function(E){var P=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return E==null?P:this.add(E-P,"d")},Je.hour=Je.hours=fi,Je.minute=Je.minutes=Wl,Je.second=Je.seconds=$l,Je.millisecond=Je.milliseconds=no,Je.utcOffset=function(E,P,G){var ut,Zt=this._offset||0;if(!this.isValid())return E!=null?this:NaN;if(E==null)return this._isUTC?Zt:Xi(this);if(typeof E=="string"){if((E=jr(Ve,E))===null)return this}else Math.abs(E)<16&&!G&&(E*=60);return!this._isUTC&&P&&(ut=Xi(this)),this._offset=E,this._isUTC=!0,ut!=null&&this.add(ut,"m"),Zt!==E&&(!P||this._changeInProgress?tl(this,li(E-Zt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,T.updateOffset(this,!0),this._changeInProgress=null)),this},Je.utc=function(E){return this.utcOffset(0,E)},Je.local=function(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(Xi(this),"m")),this},Je.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var E=jr(Ae,this._i);E!=null?this.utcOffset(E):this.utcOffset(0,!0)}return this},Je.hasAlignedHourOffset=function(E){return!!this.isValid()&&(E=E?Hn(E).utcOffset():0,(this.utcOffset()-E)%60==0)},Je.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Je.isLocal=function(){return!!this.isValid()&&!this._isUTC},Je.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Je.isUtc=Ci,Je.isUTC=Ci,Je.zoneAbbr=function(){return this._isUTC?"UTC":""},Je.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Je.dates=Tt("dates accessor is deprecated. Use date instead.",ql),Je.months=Tt("months accessor is deprecated. Use month instead",Yn),Je.years=Tt("years accessor is deprecated. Use year instead",An),Je.zone=Tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(E,P){return E!=null?(typeof E!="string"&&(E=-E),this.utcOffset(E,P),this):-this.utcOffset()}),Je.isDSTShifted=Tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!N(this._isDSTShifted))return this._isDSTShifted;var E={};if(ot(E,this),(E=mc(E))._a){var P=E._isUTC?K(E._a):Hn(E._a);this._isDSTShifted=this.isValid()&&0<Yt(E._a,P.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Lr=At.prototype;function nl(E,P,G,ut){var Zt=Tr(),we=K().set(ut,P);return Zt[G](we,E)}function rl(E,P,G){if(D(E)&&(P=E,E=void 0),E=E||"",P!=null)return nl(E,P,G,"month");var ut,Zt=[];for(ut=0;ut<12;ut++)Zt[ut]=nl(E,ut,G,"month");return Zt}function Vl(E,P,G,ut){typeof E=="boolean"?D(P)&&(G=P,P=void 0):(P=E,E=!1,D(G=P)&&(G=P,P=void 0)),P=P||"";var Zt,we=Tr(),Be=E?we._week.dow:0;if(G!=null)return nl(P,(G+Be)%7,ut,"day");var $e=[];for(Zt=0;Zt<7;Zt++)$e[Zt]=nl(P,(Zt+Be)%7,ut,"day");return $e}Lr.calendar=function(E,P,G){var ut=this._calendar[E]||this._calendar.sameElse;return kt(ut)?ut.call(P,G):ut},Lr.longDateFormat=function(E){var P=this._longDateFormat[E],G=this._longDateFormat[E.toUpperCase()];return P||!G?P:(this._longDateFormat[E]=G.replace(/MMMM|MM|DD|dddd/g,function(ut){return ut.slice(1)}),this._longDateFormat[E])},Lr.invalidDate=function(){return this._invalidDate},Lr.ordinal=function(E){return this._ordinal.replace("%d",E)},Lr.preparse=oh,Lr.postformat=oh,Lr.relativeTime=function(E,P,G,ut){var Zt=this._relativeTime[G];return kt(Zt)?Zt(E,P,G,ut):Zt.replace(/%d/i,E)},Lr.pastFuture=function(E,P){var G=this._relativeTime[0<E?"future":"past"];return kt(G)?G(P):G.replace(/%s/i,P)},Lr.set=function(E){var P,G;for(G in E)kt(P=E[G])?this[G]=P:this["_"+G]=P;this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Lr.months=function(E,P){return E?v(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||qn).test(P)?"format":"standalone"][E.month()]:v(this._months)?this._months:this._months.standalone},Lr.monthsShort=function(E,P){return E?v(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[qn.test(P)?"format":"standalone"][E.month()]:v(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Lr.monthsParse=function(E,P,G){var ut,Zt,we;if(this._monthsParseExact)return function(Be,$e,He){var tn,sn,In,Dn=Be.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],tn=0;tn<12;++tn)In=K([2e3,tn]),this._shortMonthsParse[tn]=this.monthsShort(In,"").toLocaleLowerCase(),this._longMonthsParse[tn]=this.months(In,"").toLocaleLowerCase();return He?$e==="MMM"?(sn=Lt.call(this._shortMonthsParse,Dn))!==-1?sn:null:(sn=Lt.call(this._longMonthsParse,Dn))!==-1?sn:null:$e==="MMM"?(sn=Lt.call(this._shortMonthsParse,Dn))!==-1||(sn=Lt.call(this._longMonthsParse,Dn))!==-1?sn:null:(sn=Lt.call(this._longMonthsParse,Dn))!==-1||(sn=Lt.call(this._shortMonthsParse,Dn))!==-1?sn:null}.call(this,E,P,G);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ut=0;ut<12;ut++)if(Zt=K([2e3,ut]),G&&!this._longMonthsParse[ut]&&(this._longMonthsParse[ut]=new RegExp("^"+this.months(Zt,"").replace(".","")+"$","i"),this._shortMonthsParse[ut]=new RegExp("^"+this.monthsShort(Zt,"").replace(".","")+"$","i")),G||this._monthsParse[ut]||(we="^"+this.months(Zt,"")+"|^"+this.monthsShort(Zt,""),this._monthsParse[ut]=new RegExp(we.replace(".",""),"i")),G&&P==="MMMM"&&this._longMonthsParse[ut].test(E)||G&&P==="MMM"&&this._shortMonthsParse[ut].test(E)||!G&&this._monthsParse[ut].test(E))return ut},Lr.monthsRegex=function(E){return this._monthsParseExact?(j(this,"_monthsRegex")||Fn.call(this),E?this._monthsStrictRegex:this._monthsRegex):(j(this,"_monthsRegex")||(this._monthsRegex=Nn),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)},Lr.monthsShortRegex=function(E){return this._monthsParseExact?(j(this,"_monthsRegex")||Fn.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(j(this,"_monthsShortRegex")||(this._monthsShortRegex=Ln),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)},Lr.week=function(E){return xn(E,this._week.dow,this._week.doy).week},Lr.firstDayOfYear=function(){return this._week.doy},Lr.firstDayOfWeek=function(){return this._week.dow},Lr.weekdays=function(E,P){var G=v(this._weekdays)?this._weekdays:this._weekdays[E&&E!==!0&&this._weekdays.isFormat.test(P)?"format":"standalone"];return E===!0?$n(G,this._week.dow):E?G[E.day()]:G},Lr.weekdaysMin=function(E){return E===!0?$n(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin},Lr.weekdaysShort=function(E){return E===!0?$n(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort},Lr.weekdaysParse=function(E,P,G){var ut,Zt,we;if(this._weekdaysParseExact)return function(Be,$e,He){var tn,sn,In,Dn=Be.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],tn=0;tn<7;++tn)In=K([2e3,1]).day(tn),this._minWeekdaysParse[tn]=this.weekdaysMin(In,"").toLocaleLowerCase(),this._shortWeekdaysParse[tn]=this.weekdaysShort(In,"").toLocaleLowerCase(),this._weekdaysParse[tn]=this.weekdays(In,"").toLocaleLowerCase();return He?$e==="dddd"?(sn=Lt.call(this._weekdaysParse,Dn))!==-1?sn:null:$e==="ddd"?(sn=Lt.call(this._shortWeekdaysParse,Dn))!==-1?sn:null:(sn=Lt.call(this._minWeekdaysParse,Dn))!==-1?sn:null:$e==="dddd"?(sn=Lt.call(this._weekdaysParse,Dn))!==-1||(sn=Lt.call(this._shortWeekdaysParse,Dn))!==-1||(sn=Lt.call(this._minWeekdaysParse,Dn))!==-1?sn:null:$e==="ddd"?(sn=Lt.call(this._shortWeekdaysParse,Dn))!==-1||(sn=Lt.call(this._weekdaysParse,Dn))!==-1||(sn=Lt.call(this._minWeekdaysParse,Dn))!==-1?sn:null:(sn=Lt.call(this._minWeekdaysParse,Dn))!==-1||(sn=Lt.call(this._weekdaysParse,Dn))!==-1||(sn=Lt.call(this._shortWeekdaysParse,Dn))!==-1?sn:null}.call(this,E,P,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ut=0;ut<7;ut++)if(Zt=K([2e3,1]).day(ut),G&&!this._fullWeekdaysParse[ut]&&(this._fullWeekdaysParse[ut]=new RegExp("^"+this.weekdays(Zt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ut]=new RegExp("^"+this.weekdaysShort(Zt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ut]=new RegExp("^"+this.weekdaysMin(Zt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ut]||(we="^"+this.weekdays(Zt,"")+"|^"+this.weekdaysShort(Zt,"")+"|^"+this.weekdaysMin(Zt,""),this._weekdaysParse[ut]=new RegExp(we.replace(".",""),"i")),G&&P==="dddd"&&this._fullWeekdaysParse[ut].test(E)||G&&P==="ddd"&&this._shortWeekdaysParse[ut].test(E)||G&&P==="dd"&&this._minWeekdaysParse[ut].test(E)||!G&&this._weekdaysParse[ut].test(E))return ut},Lr.weekdaysRegex=function(E){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||yr.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(j(this,"_weekdaysRegex")||(this._weekdaysRegex=pn),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)},Lr.weekdaysShortRegex=function(E){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||yr.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(j(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=mi),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Lr.weekdaysMinRegex=function(E){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||yr.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(j(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=br),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Lr.isPM=function(E){return(E+"").toLowerCase().charAt(0)==="p"},Lr.meridiem=function(E,P,G){return 11<E?G?"pm":"PM":G?"am":"AM"},vi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var P=E%10;return E+(Nt(E%100/10)===1?"th":P===1?"st":P===2?"nd":P===3?"rd":"th")}}),T.lang=Tt("moment.lang is deprecated. Use moment.locale instead.",vi),T.langData=Tt("moment.langData is deprecated. Use moment.localeData instead.",Tr);var Wa=Math.abs;function Si(E,P,G,ut){var Zt=li(P,G);return E._milliseconds+=ut*Zt._milliseconds,E._days+=ut*Zt._days,E._months+=ut*Zt._months,E._bubble()}function vc(E){return E<0?Math.floor(E):Math.ceil(E)}function sh(E){return 4800*E/146097}function Gl(E){return 146097*E/4800}function Do(E){return function(){return this.as(E)}}var ch=Do("ms"),X1=Do("s"),jd=Do("m"),Z1=Do("h"),Q1=Do("d"),Na=Do("w"),J1=Do("M"),lh=Do("Q"),uh=Do("y");function Oo(E){return function(){return this.isValid()?this._data[E]:NaN}}var il=Oo("milliseconds"),ro=Oo("seconds"),al=Oo("minutes"),Da=Oo("hours"),Is=Oo("days"),Xl=Oo("months"),Bo=Oo("years"),Qi=Math.round,bi={ss:44,s:45,m:45,h:22,d:26,M:11},io=Math.abs;function $a(E){return(0<E)-(E<0)||+E}function ua(){if(!this.isValid())return this.localeData().invalidDate();var E,P,G=io(this._milliseconds)/1e3,ut=io(this._days),Zt=io(this._months);P=jt((E=jt(G/60))/60),G%=60,E%=60;var we=jt(Zt/12),Be=Zt%=12,$e=ut,He=P,tn=E,sn=G?G.toFixed(3).replace(/\.?0+$/,""):"",In=this.asSeconds();if(!In)return"P0D";var Dn=In<0?"-":"",mr=$a(this._months)!==$a(In)?"-":"",xr=$a(this._days)!==$a(In)?"-":"",Ir=$a(this._milliseconds)!==$a(In)?"-":"";return Dn+"P"+(we?mr+we+"Y":"")+(Be?mr+Be+"M":"")+($e?xr+$e+"D":"")+(He||tn||sn?"T":"")+(He?Ir+He+"H":"")+(tn?Ir+tn+"M":"")+(sn?Ir+sn+"S":"")}var rr=Gi.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var E=this._data;return this._milliseconds=Wa(this._milliseconds),this._days=Wa(this._days),this._months=Wa(this._months),E.milliseconds=Wa(E.milliseconds),E.seconds=Wa(E.seconds),E.minutes=Wa(E.minutes),E.hours=Wa(E.hours),E.months=Wa(E.months),E.years=Wa(E.years),this},rr.add=function(E,P){return Si(this,E,P,1)},rr.subtract=function(E,P){return Si(this,E,P,-1)},rr.as=function(E){if(!this.isValid())return NaN;var P,G,ut=this._milliseconds;if((E=pe(E))==="month"||E==="quarter"||E==="year")switch(P=this._days+ut/864e5,G=this._months+sh(P),E){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(P=this._days+Math.round(Gl(this._months)),E){case"week":return P/7+ut/6048e5;case"day":return P+ut/864e5;case"hour":return 24*P+ut/36e5;case"minute":return 1440*P+ut/6e4;case"second":return 86400*P+ut/1e3;case"millisecond":return Math.floor(864e5*P)+ut;default:throw new Error("Unknown unit "+E)}},rr.asMilliseconds=ch,rr.asSeconds=X1,rr.asMinutes=jd,rr.asHours=Z1,rr.asDays=Q1,rr.asWeeks=Na,rr.asMonths=J1,rr.asQuarters=lh,rr.asYears=uh,rr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Nt(this._months/12):NaN},rr._bubble=function(){var E,P,G,ut,Zt,we=this._milliseconds,Be=this._days,$e=this._months,He=this._data;return 0<=we&&0<=Be&&0<=$e||we<=0&&Be<=0&&$e<=0||(we+=864e5*vc(Gl($e)+Be),$e=Be=0),He.milliseconds=we%1e3,E=jt(we/1e3),He.seconds=E%60,P=jt(E/60),He.minutes=P%60,G=jt(P/60),He.hours=G%24,$e+=Zt=jt(sh(Be+=jt(G/24))),Be-=vc(Gl(Zt)),ut=jt($e/12),$e%=12,He.days=Be,He.months=$e,He.years=ut,this},rr.clone=function(){return li(this)},rr.get=function(E){return E=pe(E),this.isValid()?this[E+"s"]():NaN},rr.milliseconds=il,rr.seconds=ro,rr.minutes=al,rr.hours=Da,rr.days=Is,rr.weeks=function(){return jt(this.days()/7)},rr.months=Xl,rr.years=Bo,rr.humanize=function(E){if(!this.isValid())return this.localeData().invalidDate();var P,G,ut,Zt,we,Be,$e,He,tn,sn,In=this.localeData(),Dn=(P=!E,G=In,ut=li(this).abs(),Zt=Qi(ut.as("s")),we=Qi(ut.as("m")),Be=Qi(ut.as("h")),$e=Qi(ut.as("d")),He=Qi(ut.as("M")),tn=Qi(ut.as("y")),(sn=Zt<=bi.ss&&["s",Zt]||Zt<bi.s&&["ss",Zt]||we<=1&&["m"]||we<bi.m&&["mm",we]||Be<=1&&["h"]||Be<bi.h&&["hh",Be]||$e<=1&&["d"]||$e<bi.d&&["dd",$e]||He<=1&&["M"]||He<bi.M&&["MM",He]||tn<=1&&["y"]||["yy",tn])[2]=P,sn[3]=0<+this,sn[4]=G,function(mr,xr,Ir,pr,Oa){return Oa.relativeTime(xr||1,!!Ir,mr,pr)}.apply(null,sn));return E&&(Dn=In.pastFuture(+this,Dn)),In.postformat(Dn)},rr.toISOString=ua,rr.toString=ua,rr.toJSON=ua,rr.locale=Kn,rr.localeData=qr,rr.toIsoString=Tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),rr.lang=Ur,ye("X",0,0,"unix"),ye("x",0,0,"valueOf"),Ne("x",an),Ne("X",/[+-]?\d+(\.\d{1,3})?/),Pe("X",function(E,P,G){G._d=new Date(1e3*parseFloat(E,10))}),Pe("x",function(E,P,G){G._d=new Date(Nt(E))}),T.version="2.24.0",x=Hn,T.fn=Je,T.min=function(){return zr("isBefore",[].slice.call(arguments,0))},T.max=function(){return zr("isAfter",[].slice.call(arguments,0))},T.now=function(){return Date.now?Date.now():+new Date},T.utc=K,T.unix=function(E){return Hn(1e3*E)},T.months=function(E,P){return rl(E,P,"months")},T.isDate=Y,T.locale=vi,T.invalid=rt,T.duration=li,T.isMoment=Xt,T.weekdays=function(E,P,G){return Vl(E,P,G,"weekdays")},T.parseZone=function(){return Hn.apply(null,arguments).parseZone()},T.localeData=Tr,T.isDuration=Oi,T.monthsShort=function(E,P){return rl(E,P,"monthsShort")},T.weekdaysMin=function(E,P,G){return Vl(E,P,G,"weekdaysMin")},T.defineLocale=to,T.updateLocale=function(E,P){if(P!=null){var G,ut,Zt=Qr;(ut=si(E))!=null&&(Zt=ut._config),(G=new At(P=W(Zt,P))).parentLocale=dr[E],dr[E]=G,vi(E)}else dr[E]!=null&&(dr[E].parentLocale!=null?dr[E]=dr[E].parentLocale:dr[E]!=null&&delete dr[E]);return dr[E]},T.locales=function(){return Q(dr)},T.weekdaysShort=function(E,P,G){return Vl(E,P,G,"weekdaysShort")},T.normalizeUnits=pe,T.relativeTimeRounding=function(E){return E===void 0?Qi:typeof E=="function"&&(Qi=E,!0)},T.relativeTimeThreshold=function(E,P){return bi[E]!==void 0&&(P===void 0?bi[E]:(bi[E]=P,E==="s"&&(bi.ss=P-1),!0))},T.calendarFormat=function(E,P){var G=E.diff(P,"days",!0);return G<-6?"sameElse":G<-1?"lastWeek":G<0?"lastDay":G<1?"sameDay":G<2?"nextDay":G<7?"nextWeek":"sameElse"},T.prototype=Je,T.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},T}()},6470:A=>{function F(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}function y(d,T){for(var v,C="",N=0,D=-1,Y=0,L=0;L<=d.length;++L){if(L<d.length)v=d.charCodeAt(L);else{if(v===47)break;v=47}if(v===47){if(!(D===L-1||Y===1))if(D!==L-1&&Y===2){if(C.length<2||N!==2||C.charCodeAt(C.length-1)!==46||C.charCodeAt(C.length-2)!==46){if(C.length>2){var j=C.lastIndexOf("/");if(j!==C.length-1){j===-1?(C="",N=0):N=(C=C.slice(0,j)).length-1-C.lastIndexOf("/"),D=L,Y=0;continue}}else if(C.length===2||C.length===1){C="",N=0,D=L,Y=0;continue}}T&&(C.length>0?C+="/..":C="..",N=2)}else C.length>0?C+="/"+d.slice(D+1,L):C=d.slice(D+1,L),N=L-D-1;D=L,Y=0}else v===46&&Y!==-1?++Y:Y=-1}return C}var x={resolve:function(){for(var d,T="",v=!1,C=arguments.length-1;C>=-1&&!v;C--){var N;C>=0?N=arguments[C]:(d===void 0&&(d=process.cwd()),N=d),F(N),N.length!==0&&(T=N+"/"+T,v=N.charCodeAt(0)===47)}return T=y(T,!v),v?T.length>0?"/"+T:"/":T.length>0?T:"."},normalize:function(d){if(F(d),d.length===0)return".";var T=d.charCodeAt(0)===47,v=d.charCodeAt(d.length-1)===47;return(d=y(d,!T)).length!==0||T||(d="."),d.length>0&&v&&(d+="/"),T?"/"+d:d},isAbsolute:function(d){return F(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,T=0;T<arguments.length;++T){var v=arguments[T];F(v),v.length>0&&(d===void 0?d=v:d+="/"+v)}return d===void 0?".":x.normalize(d)},relative:function(d,T){if(F(d),F(T),d===T||(d=x.resolve(d))===(T=x.resolve(T)))return"";for(var v=1;v<d.length&&d.charCodeAt(v)===47;++v);for(var C=d.length,N=C-v,D=1;D<T.length&&T.charCodeAt(D)===47;++D);for(var Y=T.length-D,L=N<Y?N:Y,j=-1,V=0;V<=L;++V){if(V===L){if(Y>L){if(T.charCodeAt(D+V)===47)return T.slice(D+V+1);if(V===0)return T.slice(D+V)}else N>L&&(d.charCodeAt(v+V)===47?j=V:V===0&&(j=0));break}var K=d.charCodeAt(v+V);if(K!==T.charCodeAt(D+V))break;K===47&&(j=V)}var tt="";for(V=v+j+1;V<=C;++V)V!==C&&d.charCodeAt(V)!==47||(tt.length===0?tt+="..":tt+="/..");return tt.length>0?tt+T.slice(D+j):(D+=j,T.charCodeAt(D)===47&&++D,T.slice(D))},_makeLong:function(d){return d},dirname:function(d){if(F(d),d.length===0)return".";for(var T=d.charCodeAt(0),v=T===47,C=-1,N=!0,D=d.length-1;D>=1;--D)if((T=d.charCodeAt(D))===47){if(!N){C=D;break}}else N=!1;return C===-1?v?"/":".":v&&C===1?"//":d.slice(0,C)},basename:function(d,T){if(T!==void 0&&typeof T!="string")throw new TypeError('"ext" argument must be a string');F(d);var v,C=0,N=-1,D=!0;if(T!==void 0&&T.length>0&&T.length<=d.length){if(T.length===d.length&&T===d)return"";var Y=T.length-1,L=-1;for(v=d.length-1;v>=0;--v){var j=d.charCodeAt(v);if(j===47){if(!D){C=v+1;break}}else L===-1&&(D=!1,L=v+1),Y>=0&&(j===T.charCodeAt(Y)?--Y==-1&&(N=v):(Y=-1,N=L))}return C===N?N=L:N===-1&&(N=d.length),d.slice(C,N)}for(v=d.length-1;v>=0;--v)if(d.charCodeAt(v)===47){if(!D){C=v+1;break}}else N===-1&&(D=!1,N=v+1);return N===-1?"":d.slice(C,N)},extname:function(d){F(d);for(var T=-1,v=0,C=-1,N=!0,D=0,Y=d.length-1;Y>=0;--Y){var L=d.charCodeAt(Y);if(L!==47)C===-1&&(N=!1,C=Y+1),L===46?T===-1?T=Y:D!==1&&(D=1):T!==-1&&(D=-1);else if(!N){v=Y+1;break}}return T===-1||C===-1||D===0||D===1&&T===C-1&&T===v+1?"":d.slice(T,C)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return function(T,v){var C=v.dir||v.root,N=v.base||(v.name||"")+(v.ext||"");return C?C===v.root?C+N:C+"/"+N:N}(0,d)},parse:function(d){F(d);var T={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return T;var v,C=d.charCodeAt(0),N=C===47;N?(T.root="/",v=1):v=0;for(var D=-1,Y=0,L=-1,j=!0,V=d.length-1,K=0;V>=v;--V)if((C=d.charCodeAt(V))!==47)L===-1&&(j=!1,L=V+1),C===46?D===-1?D=V:K!==1&&(K=1):D!==-1&&(K=-1);else if(!j){Y=V+1;break}return D===-1||L===-1||K===0||K===1&&D===L-1&&D===Y+1?L!==-1&&(T.base=T.name=Y===0&&N?d.slice(1,L):d.slice(Y,L)):(Y===0&&N?(T.name=d.slice(1,D),T.base=d.slice(1,L)):(T.name=d.slice(Y,D),T.base=d.slice(Y,L)),T.ext=d.slice(D,L)),Y>0?T.dir=d.slice(0,Y-1):N&&(T.dir="/"),T},sep:"/",delimiter:":",win32:null,posix:null};x.posix=x,A.exports=x},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},__={};function is(A){var F=__[A];if(F!==void 0)return F.exports;var y=__[A]={id:A,loaded:!1,exports:{}};return l7[A].call(y.exports,y,y.exports,is),y.loaded=!0,y.exports}is.c=__,is.n=A=>{var F=A&&A.__esModule?()=>A.default:()=>A;return is.d(F,{a:F}),F},is.d=(A,F)=>{for(var y in F)is.o(F,y)&&!is.o(A,y)&&Object.defineProperty(A,y,{enumerable:!0,get:F[y]})},is.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),is.o=(A,F)=>Object.prototype.hasOwnProperty.call(A,F),is.r=A=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},is.nmd=A=>(A.paths=[],A.children||(A.children=[]),A);var ux=is(is.s=1689).Z;function u7(A){let F,y;return{c(){F=ax("div"),y=ax("div"),this.h()},l(x){F=ox(x,"DIV",{id:!0,class:!0});var d=sx(F);y=ox(d,"DIV",{id:!0,class:!0}),sx(y).forEach(y_),d.forEach(y_),this.h()},h(){Rv(y,"id","container"),Rv(y,"class","flex-1 overflow-auto"),Rv(F,"id","view"),Rv(F,"class","p-2 svelte-5ndy2s"),Pv(F,"error",A[2]),Pv(F,"outOfSync",A[3])},m(x,d){Qx(x,F,d),Jx(F,y),A[4](y),A[5](F)},p(x,[d]){d&4&&Pv(F,"error",x[2]),d&8&&Pv(F,"outOfSync",x[3])},i:cx,o:cx,d(x){x&&y_(F),A[4](null),A[5](null)}}}function h7(A,F,y){let x;Kx(A,m_,V=>y(9,x=V));let d="",T="",v,C,N=!1,D=!1,Y=!0;t7(()=>{m_.subscribe(V=>{try{if(v&&V&&(V.updateDiagram||V.autoSync)){if(V.autoSync||e7(m_,x.updateDiagram=!1,x),y(3,D=!1),Y=!0,d===V.code&&T===V.mermaid)return;d=V.code,T=V.mermaid;const K=C.parentElement.scrollTop;delete v.dataset.processed,ux.initialize(Object.assign({},JSON.parse(V.mermaid))),ux.render("graph-div",d,tt=>{y(0,v.innerHTML=tt,v)}),y(1,C.parentElement.scrollTop=K,C),y(2,N=!1)}else Y?Y=!1:y(3,D=!0)}catch(K){console.log("view fail",K),y(2,N=!0)}}),c7.subscribe(V=>{typeof V=="undefined"?y(2,N=!1):(y(2,N=!0),console.log("Error: ",V))})});function L(V){lx[V?"unshift":"push"](()=>{v=V,y(0,v)})}function j(V){lx[V?"unshift":"push"](()=>{C=V,y(1,C)})}return[v,C,N,D,L,j]}class S7 extends Gx{constructor(F){super();Xx(this,F,h7,u7,Zx,{})}}var Yv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vy={},yx={};(function(A){var F=Yv&&Yv.__values||function(x){var d=typeof Symbol=="function"&&Symbol.iterator,T=d&&x[d],v=0;if(T)return T.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&v>=x.length&&(x=void 0),{value:x&&x[v++],done:!x}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getWordsByCategory=A.wordList=void 0,A.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function y(x,d){var T,v;d===void 0&&(d=[]);var C=new Set(d),N=[];try{for(var D=F(A.wordList[x]),Y=D.next();!Y.done;Y=D.next()){var L=Y.value;(d.length===0||L.categories.some(function(j){return C.has(j)}))&&N.push(L.word)}}catch(j){T={error:j}}finally{try{Y&&!Y.done&&(v=D.return)&&v.call(D)}finally{if(T)throw T.error}}return N}A.getWordsByCategory=y})(yx);var zv=Yv&&Yv.__assign||function(){return zv=Object.assign||function(A){for(var F,y=1,x=arguments.length;y<x;y++){F=arguments[y];for(var d in F)Object.prototype.hasOwnProperty.call(F,d)&&(A[d]=F[d])}return A},zv.apply(this,arguments)};Object.defineProperty(vy,"__esModule",{value:!0});vy.totalUniqueSlugs=vx=vy.generateSlug=void 0;var x_=yx,mx=3;function f7(A,F){for(var y=A||mx,x={partsOfSpeech:bx(y),categories:{},format:"kebab"},d=zv(zv({},x),F),T=[],v=0;v<y;v++){var C=d.partsOfSpeech[v],N=x_.getWordsByCategory(d.partsOfSpeech[v],d.categories[C]),D=N[Math.floor(Math.random()*N.length)];T.push(D)}return d7(T,d.format)}var vx=vy.generateSlug=f7;function bx(A){for(var F=[],y=0;y<A-1;y++)F.push("adjective");return F.push("noun"),F}function d7(A,F){return F==="kebab"?A.join("-").toLowerCase():F==="camel"?A.map(function(y,x){return x===0?y.toLowerCase():y[0].toUpperCase()+y.slice(1).toLowerCase()}).join(""):F==="lower"?A.join(" ").toLowerCase():F==="sentence"?A.map(function(y,x){return x===0?y[0].toUpperCase()+y.slice(1).toLowerCase():y}).join(" "):A.map(function(y){return y[0].toUpperCase()+y.slice(1).toLowerCase()}).join(" ")}function p7(A,F){for(var y,x,d=x_.getWordsByCategory("adjective",(y=F==null?void 0:F.categories)===null||y===void 0?void 0:y.adjective).length,T=x_.getWordsByCategory("noun",(x=F==null?void 0:F.categories)===null||x===void 0?void 0:x.noun).length,v={adjective:d,noun:T},C=A||mx,N=(F==null?void 0:F.partsOfSpeech)||bx(C),D=1,Y=0;Y<C;Y++)D*=v[N[Y]];return D}vy.totalUniqueSlugs=p7;const g7=30,w_=k_(by("manual"),T_(),"autoHistoryMode"),jv=k_(by([]),T_(),"autoHistoryStore"),Uv=k_(by([]),T_(),"manualHistoryStore"),_x=by([]),A7=n7([w_,jv,Uv,_x],([A,F,y,x],d)=>{d(A==="auto"?F:A==="manual"?y:A==="loader"?x:F)}),y7=A=>{if(A.type==="loader"){_x.update(F=>[A,...F]);return}if(A.name=vx(2),A.type!=="auto"){Uv.update(F=>[A,...F]);return}jv.update(F=>(F.length===g7&&F.pop(),[A,...F]))},M7=A=>{(v_(w_)==="auto"?jv:Uv).update(F=>(v_(w_)!=="loader"&&(F=F.filter(y=>A&&y.time!=A)),F))},N7=A=>{const F=v_(A?jv:Uv);return F.length>0?JSON.stringify(F[0].state):""},xx="code.mmd",hx="config.json",m7=A=>xx in A,fx=async A=>A.truncated?await(await fetch(A.raw_url)).text():A.content,v7=async A=>{const[F,y,x,d]=A.split("github.com").pop().split("/"),{html_url:T,files:v,history:C}=await(await fetch(`https://api.github.com/gists/${x}${d?"/"+d:""}`)).json();if(m7(v)){const N=await fx(v[xx]);let D;hx in v&&(D=await fx(v[hx]));const Y=C[0];return{url:`${T}/${Y.version}`,code:N,config:D,author:Y.user.login,time:new Date(Y.committed_at).getTime(),version:Y.version.slice(-7)}}else throw"Invalid gist provided"},dx=(A,F=A.url)=>{const y=g_(p_({},b_),{code:A.code,loader:{type:"gist",config:{url:F}}});return A.config&&(y.mermaid=A.config),y},b7=async A=>{try{const[F,y,x,d]=A.split("github.com").pop().split("/"),{history:T}=await(await fetch(`https://api.github.com/gists/${x}${d?"/"+d:""}`)).json(),v=[];for(const N of T){const D=await v7(N.url).catch(()=>{});D&&v.push(D)}if(v.length===0)throw"Invalid gist provided";v.reverse();const C=dx(v.slice(-1).pop(),A);for(const N of v)y7({state:dx(N),time:N.time,type:"loader",url:N.url,name:`${N.author} v${N.version}`});return C}catch(F){console.error(F)}},px={gist:b7},_7=async()=>{const A=new URLSearchParams(window.location.search);let F=b_,y,x,d=!1;const T=A.get("code"),v=A.get("config");if(T&&(y=await(await fetch(T)).text(),d=!0),v?x=await(await fetch(v)).text():x=b_.mermaid,y)F={code:y,mermaid:x,loader:{type:"files",config:{codeURL:T,configURL:v}}};else for(const[C,N]of A.entries())if(C in px)try{F=await px[C](N),d=!0;break}catch(D){console.error(D)}d&&gx(g_(p_({},F),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},x7=()=>{s7(window.location.hash.slice(1))},w7=()=>{gx({updateDiagram:!0})},D7=async()=>{var A;x7(),await r7("Loading Gist...",_7().catch(console.error)),w7(),i7(),await a7(),(A=o7)==null||A.page()};export{S7 as V,A7 as a,y7 as b,M7 as c,c7 as e,N7 as g,w_ as h,D7 as i,_x as l,ux as r,w7 as s};