PageSourceSearch

https://bloginote-documentation.vercel.app/_nuxt/wnaE5c_D.js

js bloginote-documentation.vercel.app collected 2026-10-03 06:18:08 UTC 1,106,300 bytes, 1,255 lines download raw bytes

1import{_ as R6}from"./BQyLxifx.js";import{_ as P6}from"./Dt6Tz697.js";import{f as j6,r as ac,h as B2,o as ou,c as n1,a as Ko,l as su,v as cu,u as da,b as Qc,n as r1,k as z6,w as Y6,t as jm,g as U6,s as $6,x as W6,H as q6,_ as V6}from"./DMP0V_70.js";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var H6={2536:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(Me,Ke,Xe,Ee){for(Xe=Xe||{},Ee=Me.length;Ee--;Xe[Me[Ee]]=Ke);return Xe},_=[1,6],y=[1,7],E=[1,8],A=[1,9],w=[1,16],F=[1,11],O=[1,12],j=[1,13],H=[1,14],tt=[1,15],Q=[1,27],ht=[1,33],K=[1,34],xt=[1,35],at=[1,36],ut=[1,37],vt=[1,72],Zt=[1,73],Gt=[1,74],kt=[1,75],It=[1,76],wt=[1,77],mt=[1,78],X=[1,38],ot=[1,39],z=[1,40],yt=[1,41],Y=[1,42],bt=[1,43],Ct=[1,44],$t=[1,45],be=[1,46],We=[1,47],xe=[1,48],pe=[1,49],_e=[1,50],Ae=[1,51],De=[1,52],me=[1,53],wn=[1,54],fe=[1,55],Qe=[1,56],ne=[1,57],Qt=[1,59],oe=[1,60],Et=[1,61],te=[1,62],st=[1,63],ft=[1,64],dt=[1,65],Mt=[1,66],de=[1,67],Le=[1,68],en=[1,69],qe=[24,52],sn=[24,44,46,47,48,49,50,51,52,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],Fe=[15,24,44,46,47,48,49,50,51,52,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],Te=[1,94],Oe=[1,95],Be=[1,96],ge=[1,97],re=[15,24,52],An=[7,8,9,10,18,22,25,26,27,28],Ie=[15,24,43,52],ln=[15,24,43,52,86,87,89,90],Ye=[15,43],dn=[44,46,47,48,49,50,51,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],Jn={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,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boun
1daryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$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",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"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],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(Me,Ke,Xe,Ee,mn,At,vr){var Yt=At.length-1;switch(mn){case 4:Ee.setDirection("TB");break;case 5:Ee.setDirection("BT");break;case 6:Ee.setDirection("RL");break;case 7:Ee.setDirection("LR");break;case 11:console.log("open_directive: ",At[Yt]),Ee.parseDirective("%%{","open_directive");break;case 12:break;case 13:At[Yt]=At[Yt].trim().replace(/'/g,'"'),console.log("arg_directive: ",At[Yt]),Ee.parseDirective(At[Yt],"arg_directive");break;case 14:console.log("close_directive: ",At[Yt]),Ee.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Ee.setC4Type(At[Yt-3]);break;case 26:Ee.setTitle(At[Yt].substring(6)),this.$=At[Yt].substring(6);break;case 27:Ee.setAccDescription(At[Yt].substring(15)),this.$=At[Yt].substring(15);break;case 28:this.$=At[Yt].trim(),Ee.setTitle(this.$);break;case 29:case 30:this.$=At[Yt].trim(),Ee.setAccDescription(this.$);break;case 35:case 36:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(2,0,"ENTERPRISE"),Ee.addPersonOrSystemBoundary(...At[Yt]),this.$=At[Yt];break;case 37:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystemBoundary(...At[Yt]),this.$=At[Yt];break;case 38:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(2,0,"CONTAINER"),Ee.addContainerBoundary(...At[Yt]),this.$=At[Yt];break;case 39:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("node",...At[Yt]),this.$=At[Yt];break;case 40:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("nodeL",...At[Yt]),this.$=At[Yt];break;case 41:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("nodeR",...At[Yt]),this.$=At[Yt];break;case 42:Ee.popBoundaryParseStack();break;case 46:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("person",...At[Yt]),this.$=At[Yt];break;case 47:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_person",...At[Yt]),this.$=At[Yt];break;case 48:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system",...At[Yt]),this.$=At[Yt];break;case 49:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system_db",...At[Yt]),this.$=At[Yt];break;case 50:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system_queue",...At[Yt]),this.$=At[Yt];break;case 51:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system",...At[Yt]),this.$=At[Yt];break;case 52:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system_db",...At[Yt]),this.$=At[Yt];break;case 53:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system_queue",...At[Yt]),this.$=At[Yt];break;case 54:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container",...At[Yt]),this.$=At[Yt];break;case 55:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container_db",...At[Yt]),this.$=At[Yt];break;case 56:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container_queue",...At[Yt]),this.$=At[Yt];break;case 57:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container",...At[Yt]),this.$=At[Yt];break;case 58:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container_db",...At[Yt]),this.$=At[Yt];break;case 59:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container_queue",...At[Yt]),this.$=At[Yt];break;case 60:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component",...At[Yt]),this.$=At[Yt];break;case 61:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component_db",...At[Yt]),this.$=At[Yt];break;case 62:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component_queue",...At[Yt]),this.$=At[Yt];break;case 63:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component",...At[Yt]),this.$=At[Yt];break;case 64:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component_db",...At[Yt]),this.$=At[Yt];break;case 65:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component_queue",...At[Yt]),this.$=At[Yt];break;case 67:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel",...At[Yt]),this.$=At[Yt];break;case 68:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("birel",...At[Yt]),this.$=At[Yt];break;case 69:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_u",...At[Yt]),this.$=At[Yt];break;case 70:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_d",...At[Yt]),this.$=At[Yt];break;case 71:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_l",...At[Yt]),this.$=At[Yt];break;case 72:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_r",...At[Yt]),this.$=At[Yt];break;case 73:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_b",...At[Yt]),this.$=At[Yt];break;case 74:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(0,1),Ee.addRel("rel",...At[Yt]),this.$=At[Yt];break;case 75:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateEl
1Style("update_el_style",...At[Yt]),this.$=At[Yt];break;case 76:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateRelStyle("update_rel_style",...At[Yt]),this.$=At[Yt];break;case 77:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateLayoutConfig("update_layout_config",...At[Yt]),this.$=At[Yt];break;case 78:console.log("PUSH ATTRIBUTE: ",At[Yt]),this.$=[At[Yt]];break;case 79:console.log("PUSH ATTRIBUTE: ",At[Yt-1]),At[Yt].unshift(At[Yt-1]),this.$=At[Yt];break;case 80:case 82:this.$=At[Yt].trim();break;case 81:console.log("kv: ",At[Yt-1],At[Yt]);let Un={};Un[At[Yt-1].trim()]=At[Yt].trim(),this.$=Un;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:_,8:y,9:E,10:A,11:5,12:10,18:w,22:F,25:O,26:j,27:H,28:tt},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:_,8:y,9:E,10:A,11:5,12:10,18:w,22:F,25:O,26:j,27:H,28:tt},{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:Q},u([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ht,33:K,34:xt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{23:79,29:29,30:30,31:31,32:ht,33:K,34:xt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{23:80,29:29,30:30,31:31,32:ht,33:K,34:xt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{23:81,29:29,30:30,31:31,32:ht,33:K,34:xt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{23:82,29:29,30:30,31:31,32:ht,33:K,34:xt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},u(qe,[2,20],{53:32,39:58,40:70,42:71,30:87,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en}),u(qe,[2,21]),u(sn,[2,23],{15:[1,88]}),u(qe,[2,43],{15:[1,89]}),u(Fe,[2,26]),u(Fe,[2,27]),{35:[1,90]},{37:[1,91]},u(Fe,[2,30]),{45:92,85:93,86:Te,87:Oe,89:Be,90:ge},{45:98,85:93,86:Te,87:Oe,89:Be,90:ge},{45:99,85:93,86:Te,87:Oe,89:Be,90:ge},{45:100,85:93,86:Te,87:Oe,89:Be,90:ge},{45:101,85:93,86:Te,87:Oe,89:Be,90:ge},{45:102,85:93,86:Te,87:Oe,89:Be,90:ge},{45:103,85:93,86:Te,87:Oe,89:Be,90:ge},{45:104,85:93,86:Te,87:Oe,89:Be,90:ge},{45:105,85:93,86:Te,87:Oe,89:Be,90:ge},{45:106,85:93,86:Te,87:Oe,89:Be,90:ge},{45:107,85:93,86:Te,87:Oe,89:Be,90:ge},{45:108,85:93,86:Te,87:Oe,89:Be,90:ge},{45:109,85:93,86:Te,87:Oe,89:Be,90:ge},{45:110,85:93,86:Te,87:Oe,89:Be,90:ge},{45:111,85:93,86:Te,87:Oe,89:Be,90:ge},{45:112,85:93,86:Te,87:Oe,89:Be,90:ge},{45:113,85:93,86:Te,87:Oe,89:Be,90:ge},{45:114,85:93,86:Te,87:Oe,89:Be,90:ge},{45:115,85:93,86:Te,87:Oe,89:Be,90:ge},{45:116,85:93,86:Te,87:Oe,89:Be,90:ge},u(re,[2,66]),{45:117,85:93,86:Te,87:Oe,89:Be,90:ge},{45:118,85:93,86:Te,87:Oe,89:Be,90:ge},{45:119,85:93,86:Te,87:Oe,89:Be,90:ge},{45:120,85:93,86:Te,87:Oe,89:Be,90:ge},{45:121,85:93,86:Te,87:Oe,89:Be,90:ge},{45:122,85:93,86:Te,87:Oe,89:Be,90:ge},{45:123,85:93,86:Te,87:Oe,89:Be,90:ge},{45:124,85:93,86:Te,87:Oe,89:Be,90:ge},{45:125,85:93,86:Te,87:Oe,89:Be,90:ge},{45:126,85:93,86:Te,87:Oe,89:Be,90:ge},{45:127,85:93,86:Te,87:Oe,89:Be,90:ge},{30:128,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en},{15:[1,130],43:[1,129]},{45:131,85:93,86:Te,87:Oe,89:Be,90:ge},{45:132,85:93,86:Te,87:Oe,89:Be,90:ge},{45:133,85:93,86:Te,87:Oe,89:Be,90:ge},{45:134,85:93,86:Te,87:Oe,89:Be,90:ge},{45:135,85:93,86:Te,87:Oe,89:Be,90:ge},{45:136,85:93,86:Te,87:Oe,89:Be,90:ge},{45:137,85:93,86:Te,87:Oe,89:Be,90:ge},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},u(An,[2,9]),{14:142,21:Q},{21:[2,13]},{1:[2,15]},u(qe,[2,22]),u(sn,[2,24],{31:31,29:143,32:ht,33:K,34:xt,36:at,38:ut}),u(qe,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ht,33:K,34:xt,36:at,38:ut,44:vt,46:Zt,47:Gt,48:kt,49:It,50:wt,51:mt,54:X,55:ot,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:fe,72:Qe,73:ne,74:Qt,75:oe,76:Et,77:te,78:st,79:ft,80:dt,81:Mt,82:de,83:Le,84:en}),u(Fe,[2,28]),u(Fe,[2,29]),u(re,[2,46]),u(Ie,[2,78],{85:93,45:145,86:Te,87:Oe,89:Be,90:ge}),u(ln,[2,80]),{88:[1,146]},u(ln,[2,82]),u(ln,[2,83]),u(re,[2,47]),u(re,[2,48]),u(re,[2,49]),u(re,[2,50]),u(re,[2,51]),u(re,[2,52]),u(re,[2,53]),u(re,[2,54]),u(re,[2,55]),u(re,[2,56]),u(re,[2,57]),u(re,[2,58]),u(re,[2,59]),u(re,[2,60]),u(re,[2,61
vendor: 6,934 bytes, lines 1-5
1]),u(re,[2,62]),u(re,[2,63]),u(re,[2,64]),u(re,[2,65]),u(re,[2,67]),u(re,[2,68]),u(re,[2,69]),u(re,[2,70]),u(re,[2,71]),u(re,[2,72]),u(re,[2,73]),u(re,[2,74]),u(re,[2,75]),u(re,[2,76]),u(re,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},u(Ye,[2,35]),u(Ye,[2,36]),u(Ye,[2,37]),u(Ye,[2,38]),u(Ye,[2,39]),u(Ye,[2,40]),u(Ye,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},u(sn,[2,25]),u(qe,[2,45]),u(Ie,[2,79]),u(ln,[2,81]),u(re,[2,31]),u(re,[2,42]),u(dn,[2,32]),u(dn,[2,33],{15:[1,152]}),u(An,[2,10]),u(dn,[2,34])],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],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(Me,Ke){if(!Ke.recoverable){var Xe=new Error(Me);throw Xe.hash=Ke,Xe}this.trace(Me)},parse:function(Me){var Ke=this,Xe=[0],Ee=[],mn=[null],At=[],vr=this.table,Yt="",Un=0,Rn=0,Vn=0,Mn=2,Hn=1,In=At.slice.call(arguments,1),En=Object.create(this.lexer),Fn={yy:{}};for(var Pn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pn)&&(Fn.yy[Pn]=this.yy[Pn]);En.setInput(Me,Fn.yy),Fn.yy.lexer=En,Fn.yy.parser=this,En.yylloc===void 0&&(En.yylloc={});var jn=En.yylloc;At.push(jn);var fa=En.options&&En.options.ranges;function Dr(){var Gn;return typeof(Gn=Ee.pop()||En.lex()||Hn)!="number"&&(Gn instanceof Array&&(Gn=(Ee=Gn).pop()),Gn=Ke.symbols_[Gn]||Gn),Gn}typeof Fn.yy.parseError=="function"?this.parseError=Fn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Tr,Sn,oi,Nn,_r,Cr,yr,qr,Dt,Ar={};;){if(oi=Xe[Xe.length-1],this.defaultActions[oi]?Nn=this.defaultActions[oi]:(Tr==null&&(Tr=Dr()),Nn=vr[oi]&&vr[oi][Tr]),Nn===void 0||!Nn.length||!Nn[0]){var Nr="";for(Cr in Dt=[],vr[oi])this.terminals_[Cr]&&Cr>Mn&&Dt.push("'"+this.terminals_[Cr]+"'");Nr=En.showPosition?"Parse error on line "+(Un+1)+`:
2`+En.showPosition()+`
3Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Tr]||Tr)+"'":"Parse error on line "+(Un+1)+": Unexpected "+(Tr==Hn?"end of input":"'"+(this.terminals_[Tr]||Tr)+"'"),this.parseError(Nr,{text:En.match,token:this.terminals_[Tr]||Tr,line:En.yylineno,loc:jn,expected:Dt})}if(Nn[0]instanceof Array&&Nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oi+", token: "+Tr);switch(Nn[0]){case 1:Xe.push(Tr),mn.push(En.yytext),At.push(En.yylloc),Xe.push(Nn[1]),Tr=null,Sn?(Tr=Sn,Sn=null):(Rn=En.yyleng,Yt=En.yytext,Un=En.yylineno,jn=En.yylloc,Vn>0);break;case 2:if(yr=this.productions_[Nn[1]][1],Ar.$=mn[mn.length-yr],Ar._$={first_line:At[At.length-(yr||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(yr||1)].first_column,last_column:At[At.length-1].last_column},fa&&(Ar._$.range=[At[At.length-(yr||1)].range[0],At[At.length-1].range[1]]),(_r=this.performAction.apply(Ar,[Yt,Rn,Un,Fn.yy,Nn[1],mn,At].concat(In)))!==void 0)return _r;yr&&(Xe=Xe.slice(0,-1*yr*2),mn=mn.slice(0,-1*yr),At=At.slice(0,-1*yr)),Xe.push(this.productions_[Nn[1]][0]),mn.push(Ar.$),At.push(Ar._$),qr=vr[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(qr);break;case 3:return!0}}return!0}},Dn={EOF:1,parseError:function(Me,Ke){if(!this.yy.parser)throw new Error(Me);this.yy.parser.parseError(Me,Ke)},setInput:function(Me,Ke){return this.yy=Ke||this.yy||{},this._input=Me,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 Me=this._input[0];return this.yytext+=Me,this.yyleng++,this.offset++,this.match+=Me,this.matched+=Me,Me.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),Me},unput:function(Me){var Ke=Me.length,Xe=Me.split(/(?:\r\n?|\n)/g);this._input=Me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var Ee=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),Xe.length-1&&(this.yylineno-=Xe.length-1);var mn=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:Xe?(Xe.length===Ee.length?this.yylloc.first_column:0)+Ee[Ee.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-Ke},this.options.ranges&&(this.yylloc.range=[mn[0],mn[0]+this.yyleng-Ke]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Me){this.unput(this.match.slice(Me))},pastInput:function(){var Me=this.matched.substr(0,this.matched.length-this.match.length);return(Me.length>20?"...":"")+Me.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Me=this.match;return Me.length<20&&(Me+=this._input.substr(0,20-Me.length)),(Me.substr(0,20)+(Me.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Me=this.pastInput(),Ke=new Array(Me.length+1).join("-");return Me+this.upcomingInput()+`
5`+Ke+"^"},test_match:function(Me,Ke){var Xe,Ee,mn;if(this.options.backtrack_lexer&&(mn={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&&(mn.yylloc.range=this.yylloc.range.slice(0))),(Ee=Me[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ee?Ee[Ee.length-1].length-Ee[Ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Me[0].length},this.yytext+=Me[0],this.match+=Me[0],this.matches=Me,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(Me[0].length),this.matched+=Me[0],Xe=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xe)return Xe;if(this._backtrack){for(var At in mn)this[At]=mn[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var Me,Ke,Xe,Ee;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var mn=this._currentRules(),At=0;At<mn.length;
5At++)if((Xe=this._input.match(this.rules[mn[At]]))&&(!Ke||Xe[0].length>Ke[0].length)){if(Ke=Xe,Ee=At,this.options.backtrack_lexer){if((Me=this.test_match(Xe,mn[At]))!==!1)return Me;if(this._backtrack){Ke=!1;continue}return!1}if(!this.options.flex)break}return Ke?(Me=this.test_match(Ke,mn[Ee]))!==!1&&Me:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Me){this.conditionStack.push(Me)},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(Me){return(Me=this.conditionStack.length-1-Math.abs(Me||0))>=0?this.conditionStack[Me]:"INITIAL"},pushState:function(Me){this.begin(Me)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Me,Ke,Xe,Ee){switch(Xe){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:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;
6case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\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)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,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,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Tn(){this.yy={}}return Jn.lexer=Dn,Tn.prototype=Jn,Jn.Parser=Tn,new Tn}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(555).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},1362:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(Qt,oe,Et,te){for(Et=Et||{},te=Qt.length;te--;Et[Qt[te]]=oe);return Et},_=[1,3],y=[1,7],E=[1,8],A=[1,9],w=[1,10],F=[1,13],O=[1,12],j=[1,16,25],H=[1,20],tt=[1,31],Q=[1,32],ht=[1,33],K=[1,35],xt=[1,38],at=[1,36],ut=[1,37],vt=[1,39],Zt=[1,40],Gt=[1,41],kt=[1,42],It=[1,45],wt=[1,46],mt=[
61,47],X=[1,48],ot=[16,25],z=[1,62],yt=[1,63],Y=[1,64],bt=[1,65],Ct=[1,66],$t=[1,67],be=[1,68],We=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],xe=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,62,67,69,84,85,86,87],pe=[5,8,9,10,11,16,19,23,25],_e=[53,84,85,86,87],Ae=[53,61,62,84,85,86,87],De=[53,56,57,58,59,60,84,85,86,87],me=[16,25,32],wn=[1,100],fe={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,LOLLIPOP:60,LINE:61,DOTTED_LINE:62,CALLBACK:63,LINK:64,LINK_TARGET:65,CLICK:66,CALLBACK_NAME:67,CALLBACK_ARGS:68,HREF:69,CSSCLASS:70,commentToken:71,textToken:72,graphCodeTokens:73,textNoTagsToken: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:87,$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:"LOLLIPOP",61:"LINE",62:"DOTTED_LINE",63:"CALLBACK",64:"LINK",65:"LINK_TARGET",66:"CLICK",67:"CALLBACK_NAME",68:"CALLBACK_ARGS",69:"HREF",70:"CSSCLASS",73:"graphCodeTokens",75:"TAGSTART",76:"TAGEND",77:"==",78:"--",79:"PCT",80:"DEFAULT",81:"SPACE",82:"MINUS",83:"keywords",84:"UNICODE_TEXT",85:"NUM",86:"ALPHA",87:"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],[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],[71,1],[71,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[74,1],[74,1],[74,1],[74,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(Qt,oe,Et,te,st,ft,dt){var Mt=ft.length-1;switch(st){case 5:te.setDirection("TB");break;case 6:te.setDirection("BT");break;case 7:te.setDirection("RL");break;case 8:te.setDirection("LR");break;case 12:te.parseDirective("%%{","open_directive");break;case 13:te.parseDirective(ft[Mt],"type_directive");break;case 14:ft[Mt]=ft[Mt].trim().replace(/'/g,'"'),te.parseDirective(ft[Mt],"arg_directive");break;case 15:te.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=ft[Mt];break;case 22:this.$=ft[Mt-1]+ft[Mt];break;case 23:case 24:this.$=ft[Mt-1]+"~"+ft[Mt];break;case 25:te.addRelation(ft[Mt]);break;case 26:ft[Mt-1].title=te.cleanupLabel(ft[Mt]),te.addRelation(ft[Mt-1]);break;case 34:this.$=ft[Mt].trim(),te.setAccTitle(this.$);break;case 35:case 36:this.$=ft[Mt].trim(),te.setAccDescription(this.$);break;case 37:te.addClass(ft[Mt]);break;case 38:te.addClass(ft[Mt-2]),te.setCssClass(ft[Mt-2],ft[Mt]);break;case 39:te.addClass(ft[Mt-3]),te.addMembers(ft[Mt-3],ft[Mt-1]);break;case 40:te.addClass(ft[Mt-5]),te.setCssClass(ft[Mt-5],ft[Mt-3]),te.addMembers(ft[Mt-5],ft[Mt-1]);break;case 41:te.addAnnotation(ft[Mt],ft[Mt-2]);break;case 42:this.$=[ft[Mt]];break;case 43:ft[Mt].push(ft[Mt-1]),this.$=ft[Mt];break;case 44:case 46:case 47:break;case 45:te.addMember(ft[Mt-1],te.cleanupLabel(ft[Mt]));break;case 48:this.$={id1:ft[Mt-2],id2:ft[Mt],relation:ft[Mt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:ft[Mt-3],id2:ft[Mt],relation:ft[Mt-1],relationTitle1:ft[Mt-2],relationTitle2:"none"};break;case 50:this.$={id1:ft[Mt-3],id2:ft[Mt],relation:ft[Mt-2],relationTitle1:"none",relationTitle2:ft[Mt-1]};break;case 51:this.$={id1:ft[Mt-4],id2:ft[Mt],relation:ft[Mt-2],relationTitle1:ft[Mt-3],relationTitle2:ft[Mt-1]};break;case 52:this.$={type1:ft[Mt-2],type2:ft[Mt],lineType:ft[Mt-1]};break;case 53:this.$={type1:"none",type2:ft[Mt],lineType:ft[Mt-1]};break;case 54:this.$={type1:ft[Mt-1],type2:"none",lineType:ft[Mt]};break;case 55:this.$={type1:"none",type2:"none",lineType:ft[Mt]};break;case 56:this.$=te.relationType.AGGREGATION;break;case 57:this.$=te.relationType.EXTENSION;break;case 58:this.$=te.relationType.COMPOSITION;break;case 59:this.$=te.relationType.DEPENDENCY;break;case 60:this.$=te.relationType.LOLLIPOP;break;case 61:this.$=te.lineType.LINE;break;case 62:this.$=te.lineType.DOTTED_LINE;break;case 63:case 69:this.$=ft[Mt-2],te.setClickEvent(ft[Mt-1],ft[Mt]);break;case 64:case 70:this.$=ft[Mt-3],te.setClickEvent(ft[Mt-2],ft[Mt-1]),te.setTooltip(ft[Mt-2],ft[Mt]);break;case 65:case 73:this.$=ft[Mt-2],te.setLink(ft[Mt-1],ft[Mt]);break;case 66:case 74:this.$=ft[Mt-3],te.setLink(ft[Mt-2],ft[Mt-1],ft[Mt]);break;case 67:case 75:this.$=ft[Mt-3],te.setLink(ft[Mt-2],ft[Mt-1]),te.setTooltip(ft[Mt-2],ft[Mt]);break;case 68:case 76:this.$=ft[Mt-4],te.setLink(ft[Mt-3],ft[Mt-2],ft[Mt]),te.setTooltip(ft[Mt-3],ft[Mt-1]);break;case 71:this.$=ft[Mt-3],te.setClickEvent(ft[Mt-2],ft[Mt-1],ft[Mt]);break;case 72:this.$=ft[Mt-4],te.setClickEvent(ft[Mt-3],ft[Mt-2],ft[Mt-1]),te.setTooltip(ft[Mt-3],ft[Mt]);break;case 77:te.setCssClass(ft[Mt-1],ft[Mt])}},table:[{3:1,4:2,5:_,6:4,7:5,8:y,9:E,10:A,11:w,12:6,13:11,19:F,23:O},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:_,6:4,7:5,8:y,9:E,10:A,11:w,12:6,13:11,19:F,23:O},{1:[2,9]},u(j,[2,5]),u(j,[2,6]),u(j,[2,7]),u(j,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:H},u([17,22],[2,13]),{6:30,7:29,8:y,9:E,10:A,11:w,13:11,19:F,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:tt,40:Q,42:ht,43:K,48:xt,50:at,51:ut,63:vt,64:Zt,66:Gt,70:kt,84:It,85:wt,86:mt,87:X},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},u(ot,[2,25],{32:[1,54]}),u(ot,[2,27]),u(ot,[2,28]),u(ot,[2,29]),u(ot,[2,30]),u(ot,[2,31]),u(ot,[2,32]),u(ot,[2,33]),{39:[1,55]},{41:[1,56]},u(ot,[2,36]),u(ot,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be}),{27:69,28:43,29:44,84:It,85:wt,86:mt,87:X},u(ot,[2,46]),u(ot,[2,47]),{28:70,84:It,85:wt,86:mt},{27:71,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:72,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:73,28:43,29:44,84:It,85:wt,86:mt,87:X},{53:[1,74]},u(We,[2,20],{28:43,29:44,27:75,30:[1,76],84:It,85:wt,86:mt,87:X}),u(We,[2,21],{30:[1,77]}),u(xe,[2,91]),u(xe,[2,92]),u(xe,[2,93]),u([16,25,30,32,44,45,53,56,57,58,59,60,61,62,67,69],[2,94]),u(pe,[2,10
6]),{15:78,22:H},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:y,9:E,10:A,11:w,13:11,19:F,24:79,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:tt,40:Q,42:ht,43:K,48:xt,50:at,51:ut,63:vt,64:Zt,66:Gt,70:kt,84:It,85:wt,86:mt,87:X},u(ot,[2,26]),u(ot,[2,34]),u(ot,[2,35]),{27:80,28:43,29:44,53:[1,81],84:It,85:wt,86:mt,87:X},{52:82,54:60,55:61,56:z,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be},u(ot,[2,45]),{55:83,61:$t,62:be},u(_e,[2,55],{54:84,56:z,57:yt,58:Y,59:bt,60:Ct}),u(Ae,[2,56]),u(Ae,[2,57]),u(Ae,[2,58]),u(Ae,[2,59]),u(Ae,[2,60]),u(De,[2,61]),u(De,[2,62]),u(ot,[2,37],{44:[1,85],45:[1,86]}),{49:[1,87]},{53:[1,88]},{53:[1,89]},{67:[1,90],69:[1,91]},{28:92,84:It,85:wt,86:mt},u(We,[2,22]),u(We,[2,23]),u(We,[2,24]),{16:[1,93]},{25:[2,19]},u(me,[2,48]),{27:94,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:95,28:43,29:44,53:[1,96],84:It,85:wt,86:mt,87:X},u(_e,[2,54],{54:97,56:z,57:yt,58:Y,59:bt,60:Ct}),u(_e,[2,53]),{28:98,84:It,85:wt,86:mt},{46:99,50:wn},{27:101,28:43,29:44,84:It,85:wt,86:mt,87:X},u(ot,[2,63],{53:[1,102]}),u(ot,[2,65],{53:[1,104],65:[1,103]}),u(ot,[2,69],{53:[1,105],68:[1,106]}),u(ot,[2,73],{53:[1,108],65:[1,107]}),u(ot,[2,77]),u(pe,[2,11]),u(me,[2,50]),u(me,[2,49]),{27:109,28:43,29:44,84:It,85:wt,86:mt,87:X},u(_e,[2,52]),u(ot,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:wn},u(ot,[2,41]),u(ot,[2,64]),u(ot,[2,66]),u(ot,[2,67],{65:[1,113]}),u(ot,[2,70]),u(ot,[2,71],{53:[1,114]}),u(ot,[2,74]),u(ot,[2,75],{65:[1,115]}),u(me,[2,51]),{46:116,50:wn},u(ot,[2,39]),{47:[2,43]},u(ot,[2,68]),u(ot,[2,72]),u(ot,[2,76]),{47:[1,117]},u(ot,[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],79:[2,19],112:[2,43]},parseError:function(Qt,oe){if(!oe.recoverable){var Et=new Error(Qt);throw Et.hash=oe,Et}this.trace(Qt)},parse:function(Qt){var oe=this,Et=[0],te=[],st=[null],ft=[],dt=this.table,Mt="",de=0,Le=0,en=0,qe=2,sn=1,Fe=ft.slice.call(arguments,1),Te=Object.create(this.lexer),Oe={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Oe.yy[Be]=this.yy[Be]);Te.setInput(Qt,Oe.yy),Oe.yy.lexer=Te,Oe.yy.parser=this,Te.yylloc===void 0&&(Te.yylloc={});var ge=Te.yylloc;ft.push(ge);var re=Te.options&&Te.options.ranges;function An(){var mn;return typeof(mn=te.pop()||Te.lex()||sn)!="number"&&(mn instanceof Array&&(mn=(te=mn).pop()),mn=oe.symbols_[mn]||mn),mn}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ie,ln,Ye,dn,Jn,Dn,Tn,Me,Ke,Xe={};;){if(Ye=Et[Et.length-1],this.defaultActions[Ye]?dn=this.defaultActions[Ye]:(Ie==null&&(Ie=An()),dn=dt[Ye]&&dt[Ye][Ie]),dn===void 0||!dn.length||!dn[0]){var Ee="";for(Dn in Ke=[],dt[Ye])this.terminals_[Dn]&&Dn>qe&&Ke.push("'"+this.terminals_[Dn]+"'");Ee=Te.showPosition?"Parse error on line "+(de+1)+`:
7`+Te.showPosition()+`
8Expecting `+Ke.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":"Parse error on line "+(de+1)+": Unexpected "+(Ie==sn?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(Ee,{text:Te.match,token:this.terminals_[Ie]||Ie,line:Te.yylineno,loc:ge,expected:Ke})}if(dn[0]instanceof Array&&dn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ye+", token: "+Ie);switch(dn[0]){case 1:Et.push(Ie),st.push(Te.yytext),ft.push(Te.yylloc),Et.push(dn[1]),Ie=null,ln?(Ie=ln,ln=null):(Le=Te.yyleng,Mt=Te.yytext,de=Te.yylineno,ge=Te.yylloc,en>0);break;case 2:if(Tn=this.productions_[dn[1]][1],Xe.$=st[st.length-Tn],Xe._$={first_line:ft[ft.length-(Tn||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(Tn||1)].first_column,last_column:ft[ft.length-1].last_column},re&&(Xe._$.range=[ft[ft.length-(Tn||1)].range[0],ft[ft.length-1].range[1]]),(Jn=this.performAction.apply(Xe,[Mt,Le,de,Oe.yy,dn[1],st,ft].concat(Fe)))!==void 0)return Jn;Tn&&(Et=Et.slice(0,-1*Tn*2),st=st.slice(0,-1*Tn),ft=ft.slice(0,-1*Tn)),Et.push(this.productions_[dn[1]][0]),st.push(Xe.$),ft.push(Xe._$),Me=dt[Et[Et.length-2]][Et[Et.length-1]],Et.push(Me);break;case 3:return!0}}return!0}},Qe={EOF:1,parseError:function(Qt,oe){if(!this.yy.parser)throw new Error(Qt);this.yy.parser.parseError(Qt,oe)},setInput:function(Qt,oe){return this.yy=oe||this.yy||{},this._input=Qt,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}
vendor: 4,653 bytes, lines 8-11
8,input:function(){var Qt=this._input[0];return this.yytext+=Qt,this.yyleng++,this.offset++,this.match+=Qt,this.matched+=Qt,Qt.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),Qt},unput:function(Qt){var oe=Qt.length,Et=Qt.split(/(?:\r\n?|\n)/g);this._input=Qt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var te=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),Et.length-1&&(this.yylineno-=Et.length-1);var st=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Et?(Et.length===te.length?this.yylloc.first_column:0)+te[te.length-Et.length].length-Et[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[st[0],st[0]+this.yyleng-oe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
9`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Qt){this.unput(this.match.slice(Qt))},pastInput:function(){var Qt=this.matched.substr(0,this.matched.length-this.match.length);return(Qt.length>20?"...":"")+Qt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Qt=this.match;return Qt.length<20&&(Qt+=this._input.substr(0,20-Qt.length)),(Qt.substr(0,20)+(Qt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Qt=this.pastInput(),oe=new Array(Qt.length+1).join("-");return Qt+this.upcomingInput()+`
10`+oe+"^"},test_match:function(Qt,oe){var Et,te,st;if(this.options.backtrack_lexer&&(st={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(st.yylloc.range=this.yylloc.range.slice(0))),(te=Qt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:te?te[te.length-1].length-te[te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Qt[0].length},this.yytext+=Qt[0],this.match+=Qt[0],this.matches=Qt,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(Qt[0].length),this.matched+=Qt[0],Et=this.performAction.call(this,this.yy,this,oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Et)return Et;if(this._backtrack){for(var ft in st)this[ft]=st[ft];return!1}return!1},next:function(){if(this.done)return this.EOF;var Qt,oe,Et,te;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),ft=0;ft<st.length;ft++)if((Et=this._input.match(this.rules[st[ft]]))&&(!oe||Et[0].length>oe[0].length)){if(oe=Et,te=ft,this.options.backtrack_lexer){if((Qt=this.test_match(Et,st[ft]))!==!1)return Qt;if(this._backtrack){oe=!1;continue}return!1}if(!this.options.flex)break}return oe?(Qt=this.test_match(oe,st[te]))!==!1&&Qt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
11`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Qt){this.conditionStack.push(Qt)},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(Qt){return(Qt=this.conditionStack.length-1-Math.abs(Qt||0))>=0?this.conditionStack[Qt]:"INITIAL"},pushState:function(Qt){this.begin(Qt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Qt,oe,Et,te){switch(Et){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;
11case 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 27: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 37:case 40:case 43:case 46:case 49:case 52: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"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),47;case 28:return"MEMBER";case 29:return 43;case 30:return 70;case 31:return 63;case 32:return 64;case 33:return 66;case 34:return 48;case 35:return 49;case 36:this.begin("generic");break;case 38:return"GENERICTYPE";case 39:this.begin("string");break;case 41:return"STR";case 42:this.begin("bqstring");break;case 44:return"BQUOTE_STR";case 45:this.begin("href");break;case 47:return 69;case 48:this.begin("callback_name");break;case 50:this.popState(),this.begin("callback_args");break;case 51:return 67;case 53:return 68;case 54:case 55:case 56:case 57:return 65;case 58:case 59:return 57;case 60:case 61:return 59;case 62:return 58;case 63:return 56;case 64:return 60;case 65:return 61;case 66:return 62;case 67:return 32;case 68:return 44;case 69:return 82;case 70:return"DOT";case 71:return"PLUS";case 72:return 79;case 73:case 74:return"EQUALS";case 75:return 86;case 76:return"PUNCTUATION";case 77:return 85;case 78:return 84;case 79:return 81;case 80: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)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{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
11]|[\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:[52,53],inclusive:!1},callback_name:{rules:[49,50,51],inclusive:!1},href:{rules:[46,47],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[37,38],inclusive:!1},bqstring:{rules:[43,44],inclusive:!1},string:{rules:[40,41],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,39,42,45,48,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],inclusive:!0}}};function ne(){this.yy={}}return fe.lexer=Qe,ne.prototype=fe,fe.Parser=ne,new ne}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(8218).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},5890:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(X,ot,z,yt){for(z=z||{},yt=X.length;yt--;z[X[yt]]=ot);return z},_=[1,2],y=[1,5],E=[6,9,11,23,25,27,29,30,49],A=[1,17],w=[1,18],F=[1,19],O=[1,20],j=[1,21],H=[1,24],tt=[1,29],Q=[1,30],ht=[1,31],K=[1,32],xt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],at=[1,45],ut=[30,46,47],vt=[4,6,9,11,23,25,27,29,30,49],Zt=[42,43,44,45],Gt=[22,37],kt=[1,64],It={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(X,ot,z,yt,Y,bt,Ct){var $t=bt.length-1;switch(Y){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:bt[$t-1].push(bt[$t]),this.$=bt[$t-1];break;
11case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=bt[$t];break;case 12:yt.addEntity(bt[$t-4]),yt.addEntity(bt[$t-2]),yt.addRelationship(bt[$t-4],bt[$t],bt[$t-2],bt[$t-3]);break;case 13:yt.addEntity(bt[$t-3]),yt.addAttributes(bt[$t-3],bt[$t-1]);break;case 14:yt.addEntity(bt[$t-2]);break;case 15:yt.addEntity(bt[$t]);break;case 16:case 17:this.$=bt[$t].trim(),yt.setAccTitle(this.$);break;case 18:case 19:this.$=bt[$t].trim(),yt.setAccDescription(this.$);break;case 21:this.$=bt[$t-2]+bt[$t-1]+bt[$t];break;case 22:this.$=[bt[$t]];break;case 23:bt[$t].push(bt[$t-1]),this.$=bt[$t];break;case 24:this.$={attributeType:bt[$t-1],attributeName:bt[$t]};break;case 25:this.$={attributeType:bt[$t-2],attributeName:bt[$t-1],attributeKeyType:bt[$t]};break;case 26:this.$={attributeType:bt[$t-2],attributeName:bt[$t-1],attributeComment:bt[$t]};break;case 27:this.$={attributeType:bt[$t-3],attributeName:bt[$t-2],attributeKeyType:bt[$t-1],attributeComment:bt[$t]};break;case 31:case 39:this.$=bt[$t].replace(/"/g,"");break;case 32:this.$={cardA:bt[$t],relType:bt[$t-1],cardB:bt[$t-2]};break;case 33:this.$=yt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=yt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=yt.Cardinality.ONE_OR_MORE;break;case 36:this.$=yt.Cardinality.ONLY_ONE;break;case 37:this.$=yt.Identification.NON_IDENTIFYING;break;case 38:this.$=yt.Identification.IDENTIFYING;break;case 41:yt.parseDirective("%%{","open_directive");break;case 42:yt.parseDirective(bt[$t],"type_directive");break;case 43:bt[$t]=bt[$t].trim().replace(/'/g,'"'),yt.parseDirective(bt[$t],"arg_directive");break;case 44:yt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,49:y},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,49:y},{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:A,25:w,27:F,29:O,30:j,49:y},{1:[2,2]},{14:22,15:[1,23],52:H},u([15,52],[2,42]),u(E,[2,8],{1:[2,1]}),u(E,[2,4]),{7:15,10:25,12:4,17:16,23:A,25:w,27:F,29:O,30:j,49:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,11]),u(E,[2,15],{18:26,40:28,20:[1,27],42:tt,43:Q,44:ht,45:K}),{24:[1,33]},{26:[1,34]},{28:[1,35]},u(E,[2,19]),u(xt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},u(E,[2,5]),{17:40,30:j},{21:41,22:[1,42],32:43,33:44,37:at},{41:46,46:[1,47],47:[1,48]},u(ut,[2,33]),u(ut,[2,34]),u(ut,[2,35]),u(ut,[2,36]),u(E,[2,16]),u(E,[2,17]),u(E,[2,18]),{17:49,30:j},u(vt,[2,9]),{14:50,52:H},{52:[2,43]},{15:[1,51]},{22:[1,52]},u(E,[2,14]),{21:53,22:[2,22],32:43,33:44,37:at},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:tt,43:Q,44:ht,45:K},u(Zt,[2,37]),u(Zt,[2,38]),u(xt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},u(E,[2,13]),{22:[2,23]},u(Gt,[2,24],{35:61,36:62,38:[1,63],39:kt}),u([22,37,38,39],[2,29]),{30:[2,32]},u(vt,[2,10]),u(E,[2,12]),u(E,[2,39]),u(E,[2,40]),u(Gt,[2,25],{36:65,39:kt}),u(Gt,[2,26]),u([22,37,39],[2,30]),u(Gt,[2,31]),u(Gt,[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(X,ot){if(!ot.recoverable){var z=new Error(X);throw z.hash=ot,z}this.trace(X)},parse:function(X){var ot=this,z=[0],yt=[],Y=[null],bt=[],Ct=this.table,$t="",be=0,We=0,xe=0,pe=2,_e=1,Ae=bt.slice.call(arguments,1),De=Object.create(this.lexer),me={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(me.yy[wn]=this.yy[wn]);De.setInput(X,me.yy),me.yy.lexer=De,me.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var fe=De.yylloc;bt.push(fe);var Qe=De.options&&De.options.ranges;function ne(){var qe;return typeof(qe=yt.pop()||De.lex()||_e)!="number"&&(qe instanceof Array&&(qe=(yt=qe).pop()),qe=ot.symbols_[qe]||qe),qe}typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qt,oe,Et,te,st,ft,dt,Mt,de,Le={};;){if(Et=z[z.length-1],this.defaultActions[Et]?te=this.defaultActions[Et]:(Qt==null&&(Qt=ne()),te=Ct[Et]&&Ct[Et][Qt]),te===void 0||!te.length||!te[0]){var en="";for(ft in de=[],Ct[Et])this.terminals_[ft]&&ft>pe&&de.push("'"+this.terminals_[ft]+"'");en=De.showPosition?"Parse error on line "+(be+1)+`:
12`+De.showPosition()+`
13Expecting `+de.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":"Parse error on line "+(be+1)+": Unexpected "+(Qt==_e?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(en,{text:De.match,token:this.terminals_[Qt]||Qt,line:De.yylineno,loc:fe,expected:de})}if(te[0]instanceof Array&&te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+Qt);switch(te[0]){case 1:z.push(Qt),Y.push(De.yytext),bt.push(De.yylloc),z.push(te[1]),Qt=null,oe?(Qt=oe,oe=null):(We=De.yyleng,$t=De.yytext,be=De.yylineno,fe=De.yylloc,xe>0);break;case 2:if(dt=this.productions_[te[1]][1],Le.$=Y[Y.length-dt],Le._$={first_line:bt[bt.length-(dt||1)].first_line,last_line:bt[bt.length-1].last_line,first_column:bt[bt.length-(dt||1)].first_column,last_column:bt[bt.length-1].last_column},Qe&&(Le._$.range=[bt[bt.length-(dt||1)].range[0],bt[bt.length-1].range[1]]),(st=this.performAction.apply(Le,[$t,We,be,me.yy,te[1],Y,bt].concat(Ae)))!==void 0)return st;dt&&(z=z.slice(0,-1*dt*2),Y=Y.slice(0,-1*dt),bt=bt.slice(0,-1*dt)),z.push(this.productions_[te[1]][0]),Y.push(Le.$),bt.push(Le._$),Mt=Ct[z[z.length-2]][z[z.length-1]],z.push(Mt);break;case 3:return!0}}return!0}},wt={EOF:1,parseError:function(X,ot){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,ot)},setInput:function(X,ot){return this.yy=ot||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}
13,input:function(){var X=this._input[0];return this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X,X.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var ot=X.length,z=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ot),this.offset-=ot;var yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var Y=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:z?(z.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-z.length].length-z[0].length:this.yylloc.first_column-ot},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-ot]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
14`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),ot=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
15`+ot+"^"},test_match:function(X,ot){var z,yt,Y;if(this.options.backtrack_lexer&&(Y={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&&(Y.yylloc.range=this.yylloc.range.slice(0))),(yt=X[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],z=this.performAction.call(this,this.yy,this,ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var bt in Y)this[bt]=Y[bt];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,ot,z,yt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Y=this._currentRules(),bt=0;bt<Y.length;bt++)if((z=this._input.match(this.rules[Y[bt]]))&&(!ot||z[0].length>ot[0].length)){if(ot=z,yt=bt,this.options.backtrack_lexer){if((X=this.test_match(z,Y[bt]))!==!1)return X;if(this._backtrack){ot=!1;continue}return!1}if(!this.options.flex)break}return ot?(X=this.test_match(ot,Y[yt]))!==!1&&X:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
16`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(X){return(X=this.conditionStack.length-1-Math.abs(X||0))>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,ot,z,yt){switch(z){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 25:break;case 14:return 11;case 16:return 9;
16case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:case 23:return 37;case 24:return 39;case 26:return this.popState(),22;case 27:case 40:return ot.yytext[0];case 28:case 32:return 42;case 29:case 33:return 43;case 30:case 34:return 44;case 31:return 45;case 35:case 37:case 38:return 46;case 36:return 47;case 39:return 30;case 41: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,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/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,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function mt(){this.yy={}}return It.lexer=wt,mt.prototype=It,It.Parser=mt,new mt}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(8009).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},3602:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(rn,Zn,an,nn){for(an=an||{},nn=rn.length;nn--;an[rn[nn]]=Zn);return an},_=[1,9],y=[1,7],E=[1,6],A=[1,8],w=[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],F=[2,10],O=[1,20],j=[1,21],H=[1,22],tt=[1,23],Q=[1,30],ht=[1,32],K=[1,33],xt=[1,34],at=[1,62],ut=[1,48],vt=[1,52],Zt=[1,36],Gt=[1,37],kt=[1,38],It=[1,39],wt=[1,40],mt=[1,56],X=[1,63],ot=[1,51],z=[1,53],yt=[1,55],Y=[1,59],bt=[1,60],Ct=[1,41],$t=[1,42],be=[1,43],We=[1,44],xe=[1,61],pe=[1,50],_e=[1,54],Ae=[1,57],De=[1,58],me=[1,49],wn=[1,66],fe=[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],ne=[1,75],Qt=[1,74],oe=[1,76],Et=[20,21,23,81,82],te=[1,99],st=[1,104],ft=[1,107],dt=[1,108],Mt=[1,101],de=[1,106],Le=[1,109],en=[1,102],qe=[1,114],sn=[1,113],Fe=[1,103],Te=[1,105],Oe=[1,110],Be=[1,111],ge=[1,112],re=[1,115],An=[20,21,22,23,81,82],Ie=[20,21,22,23,53,81,82],ln=[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],Ye=[20,21,23],dn=[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],Dn=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Tn=[1,149],Me=[1,157],Ke=[1,158],Xe=[1,159],Ee=[1,160],mn=[1,144],At=[1,145],vr=[1,141],Yt=[1,152],Un=[1,153],Rn=[1,154],Vn=[1,155],Mn=[1,156],Hn=[1,161],In=[1,162],En=[1,147],Fn=[1,150],Pn=[1,146],jn=[1,143],fa=[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],Dr=[1,165],Tr
16=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Sn=[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],oi=[12,21,22,24],Nn=[22,106],_r=[1,250],Cr=[1,245],yr=[1,246],qr=[1,254],Dt=[1,251],Ar=[1,248],Nr=[1,247],Gn=[1,249],Zr=[1,252],Ur=[1,253],Ir=[1,255],Qr=[1,273],ka=[20,21,23,106],cr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ea={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(rn,Zn,an,nn,nr,qt,wi){var Kt=qt.length-1;switch(nr){case 5:nn.parseDirective("%%{","open_directive");break;case 6:nn.parseDirective(qt[Kt],"type_directive");break;case 7:qt[Kt]=qt[Kt].trim().replace(/'/g,'"'),nn.parseDirective(qt[Kt],"arg_directive");break;case 8:nn.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:nn.setDirection("TB"),this.$="TB";break;case 20:nn.setDirection(qt[Kt-1]),this.$=qt[Kt-1];break;case 35:this.$=qt[Kt-1].nodes;break;case 41:this.$=nn.addSubGraph(qt[Kt-6],qt[Kt-1],qt[Kt-4]);break;case 42:this.$=nn.addSubGraph(qt[Kt-3],qt[Kt-1],qt[Kt-3]);break;case 43:this.$=nn.addSubGraph(void 0,qt[Kt-1],void 0);break;case 45:this.$=qt[Kt].trim(),nn.setAccTitle(this.$);break;case 46:case 47:this.$=qt[Kt].trim(),nn.setAccDescription(this.$);break;case 51:nn.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:nn.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]],nn.setClass(qt[Kt-2],qt[Kt]);break;case 58:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"square");break;case 59:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"doublecircle");break;
vendor: 4,699 bytes, line 16
16case 60:this.$=qt[Kt-5],nn.addVertex(qt[Kt-5],qt[Kt-2],"circle");break;case 61:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"ellipse");break;case 62:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"stadium");break;case 63:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"subroutine");break;case 64:this.$=qt[Kt-7],nn.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],nn.addVertex(qt[Kt-3],qt[Kt-1],"cylinder");break;case 66:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"round");break;case 67:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"diamond");break;case 68:this.$=qt[Kt-5],nn.addVertex(qt[Kt-5],qt[Kt-2],"hexagon");break;case 69:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"odd");break;case 70:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"trapezoid");break;case 71:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"inv_trapezoid");break;case 72:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"lean_right");break;case 73:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"lean_left");break;case 74:this.$=qt[Kt],nn.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 xr=nn.destructLink(qt[Kt],qt[Kt-2]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length,text:qt[Kt-1]};break;case 80:xr=nn.destructLink(qt[Kt]),this.$={type:xr.type,stroke:xr.stroke,length:xr.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],nn.addClass(qt[Kt-2],qt[Kt]);break;case 100:this.$=qt[Kt-4],nn.setClass(qt[Kt-2],qt[Kt]);break;case 101:case 109:this.$=qt[Kt-1],nn.setClickEvent(qt[Kt-1],qt[Kt]);break;case 102:case 110:this.$=qt[Kt-3],nn.setClickEvent(qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-3],qt[Kt]);break;case 103:this.$=qt[Kt-2],nn.setClickEvent(qt[Kt-2],qt[Kt-1],qt[Kt]);break;case 104:this.$=qt[Kt-4],nn.setClickEvent(qt[Kt-4],qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-4],qt[Kt]);break;case 105:case 111:this.$=qt[Kt-1],nn.setLink(qt[Kt-1],qt[Kt]);break;case 106:case 112:this.$=qt[Kt-3],nn.setLink(qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-3],qt[Kt]);break;case 107:case 113:this.$=qt[Kt-3],nn.setLink(qt[Kt-3],qt[Kt-2],qt[Kt]);break;case 108:case 114:this.$=qt[Kt-5],nn.setLink(qt[Kt-5],qt[Kt-4],qt[Kt]),nn.setTooltip(qt[Kt-5],qt[Kt-2]);break;case 115:this.$=qt[Kt-4],nn.addVertex(qt[Kt-2],void 0,void 0,qt[Kt]);break;case 116:case 118:this.$=qt[Kt-4],nn.updateLink(qt[Kt-2],qt[Kt]);break;case 117:this.$=qt[Kt-4],nn.updateLink([qt[Kt-2]],qt[Kt]);break;case 119:this.$=qt[Kt-8],nn.updateLinkInterpolate([qt[Kt-6]],qt[Kt-2]),nn.updateLink([qt[Kt-6]],qt[Kt]);break;case 120:this.$=qt[Kt-8],nn.updateLinkInterpolate(qt[Kt-6],qt[Kt-2]),nn.updateLink(qt[Kt-6],qt[Kt]);break;case 121:this.$=qt[Kt-6],nn.updateLinkInterpolate([qt[Kt-4]],qt[Kt]);break;case 122:this.$=qt[Kt-6],nn.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:_,16:4,21:y,22:E,24:A},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:y,22:E,24:A},u(w,F,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:E,24:A},{16:15,21:y,22:E,24:A},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:j,22:H,23:tt,32:24,33:25,34:26,35:27,36:28,37:29,38:Q,43:31,44:ht,46:K,48:xt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:kt,89:It,90:wt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{8:64,10:[1,65],15:wn},u([10,15],[2,6]),u(w,[2,17]),u(w,[2,18]),u(w,[2,19]),{20:[1,68],21:[1,69],22:fe,27:67,30:70},u(Qe,[2,11]),u(Qe,[2,12]),u(Qe,[2,13]),u(Qe,[2,14]),u(Qe,[2,15]),u(Qe,[2,16]),{9:72,20:ne,21:Qt,23:oe,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:ne,21:Qt,23:oe},{9:81,20:ne,21:Qt,23:oe},{9:82,20:ne,21:Qt,23:oe},{9:83,20:ne,21:Qt,23:oe},{9:84,20:ne,21:Qt,23:oe},{9:86,20:ne,21:Qt,22:[1,85],23:oe},u(Qe,[2,44]),{45:[1,87]},{47:[1,88]},u(Qe,[2,47]),u(Et,[2,54],{30:89,22:fe}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:te,52:st,66:ft,67:dt,84:[1,97],91:Mt,97:96,98:[1,94],100:[1,95],105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Qe,[2,158]),u(Qe,[2,159]),u(Qe,[2,160]),u(Qe,[2,161]),u(An,[2,55],{53:[1,116]}),u(Ie,[2,74],{116:129,40:[1,117],52:at,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[
vendor: 16,446 bytes, line 16
161,122],65:[1,123],66:ut,67:vt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,122:xe,123:pe,124:_e,125:Ae,126:De,127:me}),u(ln,[2,150]),u(ln,[2,175]),u(ln,[2,176]),u(ln,[2,177]),u(ln,[2,178]),u(ln,[2,179]),u(ln,[2,180]),u(ln,[2,181]),u(ln,[2,182]),u(ln,[2,183]),u(ln,[2,184]),u(ln,[2,185]),u(ln,[2,186]),u(ln,[2,187]),u(ln,[2,188]),u(ln,[2,189]),u(ln,[2,190]),{9:130,20:ne,21:Qt,23:oe},{11:131,14:[1,132]},u(Ye,[2,8]),u(w,[2,20]),u(w,[2,26]),u(w,[2,27]),{21:[1,133]},u(dn,[2,34],{30:134,22:fe}),u(Qe,[2,35]),{50:135,51:45,52:at,54:46,66:ut,67:vt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},u(Jn,[2,48]),u(Jn,[2,49]),u(Jn,[2,50]),u(Dn,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Tn,24:Me,26:Ke,38:Xe,39:139,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),u(Qe,[2,36]),u(Qe,[2,37]),u(Qe,[2,38]),u(Qe,[2,39]),u(Qe,[2,40]),{22:Tn,24:Me,26:Ke,38:Xe,39:163,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(fa,F,{17:164}),u(Qe,[2,45]),u(Qe,[2,46]),u(Et,[2,53],{52:Dr}),{26:te,52:st,66:ft,67:dt,91:Mt,97:166,102:[1,167],105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{95:[1,168],103:169,105:[1,170]},{26:te,52:st,66:ft,67:dt,91:Mt,95:[1,171],97:172,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{26:te,52:st,66:ft,67:dt,91:Mt,97:173,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,101],{22:[1,174],99:[1,175]}),u(Ye,[2,105],{22:[1,176]}),u(Ye,[2,109],{115:100,117:178,22:[1,177],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,111],{22:[1,179]}),u(Tr,[2,152]),u(Tr,[2,154]),u(Tr,[2,155]),u(Tr,[2,156]),u(Tr,[2,157]),u(Sn,[2,162]),u(Sn,[2,163]),u(Sn,[2,164]),u(Sn,[2,165]),u(Sn,[2,166]),u(Sn,[2,167]),u(Sn,[2,168]),u(Sn,[2,169]),u(Sn,[2,170]),u(Sn,[2,171]),u(Sn,[2,172]),u(Sn,[2,173]),u(Sn,[2,174]),{52:at,54:180,66:ut,67:vt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:Tn,24:Me,26:Ke,38:Xe,39:181,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:182,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:184,42:Ee,52:st,57:[1,183],66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:185,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:186,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:187,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{66:[1,188]},{22:Tn,24:Me,26:Ke,38:Xe,39:189,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:190,42:Ee,52:st,66:ft,67:dt,71:[1,191],73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:192,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:193,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:194,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(ln,[2,151]),u(oi,[2,3]),{8:195,15:wn},{15:[2,7]},u(w,[2,28]),u(dn,[2,33]),u(Et,[2,51],{30:196,22:fe}),u(Dn,[2,75],{22:[1,197]}),{22:[1,198]},{22:Tn,24:Me,26:Ke,38:Xe,39:199,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,82:[1,200],83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Sn,[2,82]),u(Sn,[2,84]),u(Sn,[2,140]),u(Sn,[2,141]),u(Sn,[2,142]),u(Sn,[2,143]),u(Sn,[2,144]),u(Sn,[2,145]),u(Sn,[2,146]),u(Sn,[2,147]),u(Sn,[2,148]),u(Sn,[2,149]),u(Sn,[2,85]),u(Sn,[2,86]),u(Sn,[2,87]),u(Sn,[2,88]),u(Sn,[2,89]),u(Sn,[2,90]),u(Sn,[2,91]),u(Sn,[2,92]),u(Sn,[2,93]),u(Sn,[2,94]),u(Sn,[2,95]),{9:203,20:ne,21:Qt,22:Tn,23:oe,24:Me,26:Ke,38:Xe,40:[1,202],42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:O,21:j,22:H,23:tt,32:24,33:25,34:26,35:27,36:28,37:29,38:Q,42:[1,204],43:31,44:ht,46:K,48:xt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:kt,89:It,90:wt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:fe,30:205},{22:[1,206],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},u(Nn,[2,123]),{22:[1,211]},{22:[1,212],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:[1,213],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{84:[1,214]},u(Ye,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},u(Tr,[2,153]),{84:[1,219],101:[1,220]},u(An,[2,57],{116:129,52:at,66:ut,67:vt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,122:xe,123:pe,124:_e,125:Ae,126:De,127:me}),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,221],42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,56:[1,222],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:223,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,58:[1,224],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,60:[1,225],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,62:[1,226],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,64:[1,227],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{67:[1,228]},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,70:[1,229],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,72:[1,230],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:231,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,41:[1,232],42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,73:mn,75:[1,233],77:[1,234],81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,73:mn,75:[1,236],77:[1,235],81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{9:237,20:ne,21:Qt,23:oe},u(Et,[2,52],{52:Dr}),u(Dn,[2,77]),u(Dn,[2,76]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,68:[1,238],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Dn,[2,79]),u(Sn,[2,83]),{22:Tn,24:Me,26:Ke,38:Xe,39:239,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(fa,F,{17:240}),u(Qe,[2,43]),{51:241,52:at,54:46,66:ut,67:vt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:_r,66:Cr,67:yr,86:qr,96:242,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:256,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:257,102:Dt,104:[1,258],105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:259,102:Dt,104:[1,260],105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{105:[1,261]},{22:_r,66:Cr,67:yr,86:qr,96:262,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:263,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{26:te,52:st,66:ft,67:dt,91:Mt,97:264,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,102]),{84:[1,265]},u(Ye,[2,106],{22:[1,266]}),u(Ye,[2,107]),u(Ye,[2,110]),u(Ye,[2,112],{22:[1,267]}),u(Ye,[2,113]),u(Ie,[2,58]),u(Ie,[2,59]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,58:[1,268],66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,66]),u(Ie,[2,61]),u(Ie,[2,62]),u(Ie,[2,63]),{66:[1,269]},u(Ie,[2,65]),u(Ie,[2,67]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:ft,67:dt,72:[1,270],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,69]),u(Ie,[2,70]),u(Ie,[2,72]),u(Ie,[2,71]),u(Ie,[2,73]),u(oi,[2,4]),u([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,271],42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:O,21:j,22:H,23:tt,32:24,33:25,34:26,35:27,36:28,37:29,38:Q,42:[1,272],43:31,44:ht,46:K,48:xt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:kt,89:It,90:wt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},u(An,[2,56]),u(Ye,[2,115],{106:Qr}),u(ka,[2,125],{108:274,22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir}),u(cr,[2,127]),u(cr,[2,129]),u(cr,[2,130]),u(cr,[2,131]),u(cr,[2,132]),u(cr,[2,133]),u(cr,[2,134]),u(cr,[2,135]),u(cr,[2,136]),u(cr,[2,137]),u(cr,[2,138]),u(cr,[2,139]),u(Ye,[2,116],{106:Qr}),u(Ye,[2,117],{106:Qr}),{22:[1,275]},u(Ye,[2,118],{106:Qr}),{22:[1,276]},u(Nn,[2,124]),u(Ye,[2,98],{106:Qr}),u(Ye,[2,99],{106:Qr}),u(Ye,[2,100],{115:100,117:178,26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:ne,21:Qt,23:oe},u(Qe,[2,42]),{22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,107:283,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},u(cr,[2,128]),{26:te,52:st,66:ft,67:dt,91:Mt,97:284,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{26:te,52:st,66:ft,67:dt,91:Mt,97:285,105:de,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,108]),u(Ye,[2,114]),u(Ie,[2,60]),{22:Tn,24:Me,26:Ke,38:Xe,39:286,42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,68]),u(fa,F,{17:287}),u(ka,[2,126],{108:274,22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir}),u(Ye,[2,121],{115:100,117:178,22:[1,288],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,122],{115:100,117:178,22:[1,289],26:te,52:st,66:ft,67:dt,91:Mt,105:de,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,290],42:Ee,52:st,66:ft,67:dt,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:de,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:O,21:j,22:H,23:tt,32:24,33:25,34:26,35:27,36:28,37:29,38:Q,42:[1,291],43:31,44:ht,46:K,48:xt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:kt,89:It,90:wt,91:mt,95:X,105:ot,106:z,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:_r,66:Cr,67:yr,86:qr,96:292,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:293,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},u(Ie,[2,64]),u(Qe,[2,41]),u(Ye,[2,119],{106:Qr}),u(Ye,[2,120],{106:Qr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(rn,Zn){if(!Zn.recoverable){var an=new Error(rn);throw an.hash=Zn,an}this.trace(rn)},parse:function(rn){var Zn=this,an=[0],nn=[],nr=[null],qt=[],wi=this.table,Kt="",xr=0,Or=0,Vr=0,li=2,wa=1,hr=qt.slice.call(arguments,1
vendor: 5,995 bytes, lines 16-20
16),xn=Object.create(this.lexer),ra={yy:{}};for(var On in this.yy)Object.prototype.hasOwnProperty.call(this.yy,On)&&(ra.yy[On]=this.yy[On]);xn.setInput(rn,ra.yy),ra.yy.lexer=xn,ra.yy.parser=this,xn.yylloc===void 0&&(xn.yylloc={});var bi=xn.yylloc;qt.push(bi);var si=xn.options&&xn.options.ranges;function Oi(){var ti;return typeof(ti=nn.pop()||xn.lex()||wa)!="number"&&(ti instanceof Array&&(ti=(nn=ti).pop()),ti=Zn.symbols_[ti]||ti),ti}typeof ra.yy.parseError=="function"?this.parseError=ra.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var lr,Kr,Hr,Gr,ni,Ti,Xr,Ta,La,pr={};;){if(Hr=an[an.length-1],this.defaultActions[Hr]?Gr=this.defaultActions[Hr]:(lr==null&&(lr=Oi()),Gr=wi[Hr]&&wi[Hr][lr]),Gr===void 0||!Gr.length||!Gr[0]){var Jr="";for(Ti in La=[],wi[Hr])this.terminals_[Ti]&&Ti>li&&La.push("'"+this.terminals_[Ti]+"'");Jr=xn.showPosition?"Parse error on line "+(xr+1)+`:
17`+xn.showPosition()+`
18Expecting `+La.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'":"Parse error on line "+(xr+1)+": Unexpected "+(lr==wa?"end of input":"'"+(this.terminals_[lr]||lr)+"'"),this.parseError(Jr,{text:xn.match,token:this.terminals_[lr]||lr,line:xn.yylineno,loc:bi,expected:La})}if(Gr[0]instanceof Array&&Gr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Hr+", token: "+lr);switch(Gr[0]){case 1:an.push(lr),nr.push(xn.yytext),qt.push(xn.yylloc),an.push(Gr[1]),lr=null,Kr?(lr=Kr,Kr=null):(Or=xn.yyleng,Kt=xn.yytext,xr=xn.yylineno,bi=xn.yylloc,Vr>0);break;case 2:if(Xr=this.productions_[Gr[1]][1],pr.$=nr[nr.length-Xr],pr._$={first_line:qt[qt.length-(Xr||1)].first_line,last_line:qt[qt.length-1].last_line,first_column:qt[qt.length-(Xr||1)].first_column,last_column:qt[qt.length-1].last_column},si&&(pr._$.range=[qt[qt.length-(Xr||1)].range[0],qt[qt.length-1].range[1]]),(ni=this.performAction.apply(pr,[Kt,Or,xr,ra.yy,Gr[1],nr,qt].concat(hr)))!==void 0)return ni;Xr&&(an=an.slice(0,-1*Xr*2),nr=nr.slice(0,-1*Xr),qt=qt.slice(0,-1*Xr)),an.push(this.productions_[Gr[1]][0]),nr.push(pr.$),qt.push(pr._$),Ta=wi[an[an.length-2]][an[an.length-1]],an.push(Ta);break;case 3:return!0}}return!0}},na={EOF:1,parseError:function(rn,Zn){if(!this.yy.parser)throw new Error(rn);this.yy.parser.parseError(rn,Zn)},setInput:function(rn,Zn){return this.yy=Zn||this.yy||{},this._input=rn,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 rn=this._input[0];return this.yytext+=rn,this.yyleng++,this.offset++,this.match+=rn,this.matched+=rn,rn.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),rn},unput:function(rn){var Zn=rn.length,an=rn.split(/(?:\r\n?|\n)/g);this._input=rn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var nn=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),an.length-1&&(this.yylineno-=an.length-1);var nr=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:an?(an.length===nn.length?this.yylloc.first_column:0)+nn[nn.length-an.length].length-an[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[nr[0],nr[0]+this.yyleng-Zn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
19`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(rn){this.unput(this.match.slice(rn))},pastInput:function(){var rn=this.matched.substr(0,this.matched.length-this.match.length);return(rn.length>20?"...":"")+rn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rn=this.match;return rn.length<20&&(rn+=this._input.substr(0,20-rn.length)),(rn.substr(0,20)+(rn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rn=this.pastInput(),Zn=new Array(rn.length+1).join("-");return rn+this.upcomingInput()+`
20`+Zn+"^"},test_match:function(rn,Zn){var an,nn,nr;if(this.options.backtrack_lexer&&(nr={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&&(nr.yylloc.range=this.yylloc.range.slice(0))),(nn=rn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nn?nn[nn.length-1].length-nn[nn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rn[0].length},this.yytext+=rn[0],this.match+=rn[0],this.matches=rn,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(rn[0].length),this.matched+=rn[0],an=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),an)return an;if(this._backtrack){for(var qt in nr)this[qt]=nr[qt];return!1}return!1},next:function(){if(this.done)return this.EOF;var rn,Zn,an,nn;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var nr=this._currentRules(),qt=0;qt<nr.length;
20qt++)if((an=this._input.match(this.rules[nr[qt]]))&&(!Zn||an[0].length>Zn[0].length)){if(Zn=an,nn=qt,this.options.backtrack_lexer){if((rn=this.test_match(an,nr[qt]))!==!1)return rn;if(this._backtrack){Zn=!1;continue}return!1}if(!this.options.flex)break}return Zn?(rn=this.test_match(Zn,nr[nn]))!==!1&&rn:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
21`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(rn){this.conditionStack.push(rn)},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(rn){return(rn=this.conditionStack.length-1-Math.abs(rn||0))>=0?this.conditionStack[rn]:"INITIAL"},pushState:function(rn){this.begin(rn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(rn,Zn,an,nn){switch(an){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 rn.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;
21case 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*)
21/,/^(?:_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\uFB
21D3-\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 Ni(){this.yy={}}return ea.lexer=na,Ni.prototype=ea,ea.Parser=Ni,new Ni}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(5354).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},9959:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(mt,X,ot,z){for(ot=ot||{},z=mt.length;z--;ot[mt[z]]=X);return ot},_=[1,3],y=[1,5],E=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],A=[1,15],w=[1,16],F=[1,17],O=[1,18],j=[1,19],H=[1,20],tt=[1,21],Q=[1,22],ht=[1,23],K=[1,24],xt=[1,25],at=[1,26],ut=[1,28],vt=[1,30],Zt=[1,33],Gt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],kt={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(mt,X,ot,z,yt,Y,bt){var Ct=Y.length-1;switch(yt){case 2:return Y[Ct-1];case 3:case 7:case 8:this.$=[];break;case 4:Y[Ct-1].push(Y[Ct]),this.$=Y[Ct-1];break;case 5:case 6:this.$=Y[Ct];break;case 9:z.setDateFormat(Y[Ct].substr(11)),this.$=Y[Ct].substr(11);break;case 10:z.enableInclusiveEndDates(),this.$=Y[Ct].substr(18);break;case 11:z.TopAxis(),this.$=Y[Ct].substr(8);break;case 12:z.setAxisFormat(Y[Ct].substr(11)),this.$=Y[Ct].substr(11);break;case 13:z.setExcludes(Y[Ct].substr(9)),this.$=Y[Ct].substr(9);break;case 14:z.setIncludes(Y[Ct].substr(9)),this.$=Y[Ct].substr(9);break;case 15:z.setTodayMarker(Y[Ct].substr(12)),this.$=Y[Ct].substr(12);break;case 16:z.setDiagramTitle(Y[Ct].substr(6)),this.$=Y[Ct].substr(6);break;case 17:this.$=Y[Ct].trim(),z.setAccTitle(this.$);break;case 18:case 19:this.$=Y[Ct].trim(),z.setAccDescription(this.$);break;case 20:z.addSection(Y[Ct].substr(8)),this.$=Y[Ct].substr(8);break;case 22:z.addTask(Y[Ct-1],Y[Ct]),this.$="task";break;case 26:this.$=Y[Ct-1],z.setClickEvent(Y[Ct-1],Y[Ct],null);break;case 27:this.$=Y[Ct-2],z.setClickEvent(Y[Ct-2],Y[Ct-1],Y[Ct]);break;case 28:this.$=Y[Ct-2],z.setClickEvent(Y[Ct-2],Y[Ct-1],null),z.setLink(Y[Ct-2],Y[Ct]);break;case 29:this.$=Y[Ct-3],z.setClickEvent(Y[Ct-3],Y[Ct-2],Y[Ct-1]),z.setLink(Y[Ct-3],Y[Ct]);break;case 30:this.$=Y[Ct-2],z.setClickEvent(Y[Ct-2],Y[Ct],null),z.setLink(Y[Ct-2],Y[Ct-1]);break;case 31:this.$=Y[Ct-3],z.setClickEvent(Y[Ct-3],Y[Ct-1],Y[Ct]),z.setLink(Y[Ct-3],Y[Ct-2]);break;case 32:this.$=Y[Ct-1],z.setLink(Y[Ct-1],Y[Ct]);break;case 33:case 39:this.$=Y[Ct-1]+" "+Y[Ct];break;case 34:case 35:case 37:this.$=Y[Ct-2]+" "+Y[Ct-1]+" "+Y[Ct];break;case 36:case 38:this.$=Y[Ct-3]+" "+Y[Ct-2]+" "+Y[Ct-1]+" "+Y[Ct];break;case 40:z.parseDirective("%%{","open_directive");break;case 41:z.parseDirective(Y[Ct],"type_directive");break;case 42:Y[Ct]=Y[Ct].trim().replace(/'/g,'"'),z.parseDirective(Y[Ct],"arg_directive");break;case 43:z.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,29:4,39:y},{1:[3]},{3:6,4:2,5:_,29:4,39:y},u(E,[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:A,13:w,14:F,15:O,16:j,17:H,18:tt,19:Q,20:ht,22:K,24:xt,25:at,26:27,27:ut,29:4,34:vt,39:y},{31:31,32:[1,32],42:Zt},u([32,42],[2,41]),u(E,[2,8],{1:[2,2]}),u(E,[2,4]),{4:29,10:34,12:A,13:w,14:F,15:O,16:j,17:H,18:tt,19:Q,20:ht,22:K,24:xt,25:at,26:27,27:ut,29:4,34:vt,39:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,9]),u(E,[2,10]),u(E,[2,11]),u(E,[2,12]),u(E,[2,13]),u(E,[2,14]),u(E,[2,15]),u(E,[2,16]),{21:[1,35]},{23:[1,36]},u(E,[2,19]),u(E,[2,20]),u(E,[2,21]),{28:[1,37]},u(E,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},u(E,[2,5]),u(E,[2,17]),u(E,[2,18]),u(E,[2,22]),u(E,[2,26],{36:[1,43],37:[1,44]}),u(E,[2,32],{35:[1,45]}),u(Gt,[2,24]),{31:46,42:Zt},{42:[2,42]},u(E,[2,27],{37:[1,47]}),u(E,[2,28]),u(E,[2,30],{36:[1,48]}),{11:[1,49]},u(E,[2,29]),u(E,[2,31]),u(Gt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]}
21,parseError:function(mt,X){if(!X.recoverable){var ot=new Error(mt);throw ot.hash=X,ot}this.trace(mt)},parse:function(mt){var X=this,ot=[0],z=[],yt=[null],Y=[],bt=this.table,Ct="",$t=0,be=0,We=0,xe=2,pe=1,_e=Y.slice.call(arguments,1),Ae=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]);Ae.setInput(mt,De.yy),De.yy.lexer=Ae,De.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var wn=Ae.yylloc;Y.push(wn);var fe=Ae.options&&Ae.options.ranges;function Qe(){var en;return typeof(en=z.pop()||Ae.lex()||pe)!="number"&&(en instanceof Array&&(en=(z=en).pop()),en=X.symbols_[en]||en),en}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ne,Qt,oe,Et,te,st,ft,dt,Mt,de={};;){if(oe=ot[ot.length-1],this.defaultActions[oe]?Et=this.defaultActions[oe]:(ne==null&&(ne=Qe()),Et=bt[oe]&&bt[oe][ne]),Et===void 0||!Et.length||!Et[0]){var Le="";for(st in Mt=[],bt[oe])this.terminals_[st]&&st>xe&&Mt.push("'"+this.terminals_[st]+"'");Le=Ae.showPosition?"Parse error on line "+($t+1)+`:
22`+Ae.showPosition()+`
23Expecting `+Mt.join(", ")+", got '"+(this.terminals_[ne]||ne)+"'":"Parse error on line "+($t+1)+": Unexpected "+(ne==pe?"end of input":"'"+(this.terminals_[ne]||ne)+"'"),this.parseError(Le,{text:Ae.match,token:this.terminals_[ne]||ne,line:Ae.yylineno,loc:wn,expected:Mt})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+ne);switch(Et[0]){case 1:ot.push(ne),yt.push(Ae.yytext),Y.push(Ae.yylloc),ot.push(Et[1]),ne=null,Qt?(ne=Qt,Qt=null):(be=Ae.yyleng,Ct=Ae.yytext,$t=Ae.yylineno,wn=Ae.yylloc,We>0);break;case 2:if(ft=this.productions_[Et[1]][1],de.$=yt[yt.length-ft],de._$={first_line:Y[Y.length-(ft||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(ft||1)].first_column,last_column:Y[Y.length-1].last_column},fe&&(de._$.range=[Y[Y.length-(ft||1)].range[0],Y[Y.length-1].range[1]]),(te=this.performAction.apply(de,[Ct,be,$t,De.yy,Et[1],yt,Y].concat(_e)))!==void 0)return te;ft&&(ot=ot.slice(0,-1*ft*2),yt=yt.slice(0,-1*ft),Y=Y.slice(0,-1*ft)),ot.push(this.productions_[Et[1]][0]),yt.push(de.$),Y.push(de._$),dt=bt[ot[ot.length-2]][ot[ot.length-1]],ot.push(dt);break;case 3:return!0}}return!0}},It={EOF:1,parseError:function(mt,X){if(!this.yy.parser)throw new Error(mt);this.yy.parser.parseError(mt,X)},setInput:function(mt,X){return this.yy=X||this.yy||{},this._input=mt,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 mt=this._input[0];return this.yytext+=mt,this.yyleng++,this.offset++,this.match+=mt,this.matched+=mt,mt.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),mt},unput:function(mt){var X=mt.length,ot=mt.split(/(?:\r\n?|\n)/g);this._input=mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var z=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),ot.length-1&&(this.yylineno-=ot.length-1);var yt=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:ot?(ot.length===z.length?this.yylloc.first_column:0)+z[z.length-ot.length].length-ot[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[yt[0],yt[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
24`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(mt){this.unput(this.match.slice(mt))},pastInput:function(){var mt=this.matched.substr(0,this.matched.length-this.match.length);return(mt.length>20?"...":"")+mt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var mt=this.match;return mt.length<20&&(mt+=this._input.substr(0,20-mt.length)),(mt.substr(0,20)+(mt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var mt=this.pastInput(),X=new Array(mt.length+1).join("-");return mt+this.upcomingInput()+`
25`+X+"^"},test_match:function(mt,X){var ot,z,yt;if(this.options.backtrack_lexer&&(yt={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&&(yt.yylloc.range=this.yylloc.range.slice(0))),(z=mt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+mt[0].length},this.yytext+=mt[0],this.match+=mt[0],this.matches=mt,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(mt[0].length),this.matched+=mt[0],ot=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var Y in yt)this[Y]=yt[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;var mt,X,ot,z;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var yt=this._currentRules(),Y=0;Y<yt.length;Y++)if((ot=this._input.match(this.rules[yt[Y]]))&&(!X||ot[0].length>X[0].length)){if(X=ot,z=Y,this.options.backtrack_lexer){if((mt=this.test_match(ot,yt[Y]))!==!1)return mt;if(this._backtrack){X=!1;continue}return!1}if(!this.options.flex)break}return X?(mt=this.test_match(X,yt[z]))!==!1&&mt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
26`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(mt){this.conditionStack.push(mt)},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(mt){return(mt=this.conditionStack.length-1-Math.abs(mt||0))>=0?this.conditionStack[mt]:"INITIAL"},pushState:function(mt){this.begin(mt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(mt,X,ot,z){switch(ot){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 wt(){this.yy={}}return kt.lexer=It,wt.prototype=kt,kt.Parser=wt,new wt}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(6878).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},2553:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(It,wt,mt,X){for(mt=mt||{},X=It.length;X--;mt[It[X]]=wt);return mt},_=[1,4],y=[1,7],E=[1,5],A=[1,9],w=[1,6],F=[2,6],O=[1,16],j=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],H=[8,14,20,22,24,25,27,29,32,35,39],tt=[8,13,14,20,22,24,25,27,29,32,35,39],Q=[1,26],ht=[
266,8,14,49,53],K=[8,14,53],xt=[1,64],at=[1,65],ut=[1,66],vt=[8,14,33,38,41,53],Zt={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_TYPE:36,commitType:37,COMMIT_TAG:38,COMMIT:39,commit_arg: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_TYPE",38:"COMMIT_TAG",39:"COMMIT",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],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[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],[40,0],[40,1],[37,1],[37,1],[37,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(It,wt,mt,X,ot,z,yt){var Y=z.length-1;switch(ot){case 3:return z[Y];case 4:return z[Y-1];case 5:return X.setDirection(z[Y-3]),z[Y-1];case 7:X.setOptions(z[Y-1]),this.$=z[Y];break;case 8:z[Y-1]+=z[Y],this.$=z[Y-1];break;case 10:this.$=[];break;case 11:z[Y-1].push(z[Y]),this.$=z[Y-1];break;case 12:this.$=z[Y-1];break;case 17:this.$=z[Y].trim(),X.setAccTitle(this.$);break;case 18:case 19:this.$=z[Y].trim(),X.setAccDescription(this.$);break;case 20:X.addSection(z[Y].substr(8)),this.$=z[Y].substr(8);break;case 22:X.checkout(z[Y]);break;case 23:X.branch(z[Y]);break;case 24:X.branch(z[Y-2],z[Y]);break;case 25:X.cherryPick(z[Y]);break;case 26:X.merge(z[Y],"","","");break;case 27:X.merge(z[Y-2],z[Y],"","");break;case 28:X.merge(z[Y-2],"",z[Y],"");break;case 29:X.merge(z[Y-2],"","",z[Y]);break;case 30:X.merge(z[Y-4],z[Y],"",z[Y-2]);break;case 31:X.merge(z[Y-4],"",z[Y],z[Y-2]);break;case 32:X.merge(z[Y-4],"",z[Y-2],z[Y]);break;case 33:X.merge(z[Y-4],z[Y-2],z[Y],"");break;case 34:X.merge(z[Y-4],z[Y-2],"",z[Y]);break;case 35:X.merge(z[Y-4],z[Y],z[Y-2],"");break;case 36:X.merge(z[Y-6],z[Y-4],z[Y-2],z[Y]);break;case 37:X.merge(z[Y-6],z[Y],z[Y-4],z[Y-2]);break;case 38:X.merge(z[Y-6],z[Y-4],z[Y],z[Y-2]);break;case 39:X.merge(z[Y-6],z[Y-2],z[Y-4],z[Y]);break;case 40:X.merge(z[Y-6],z[Y],z[Y-2],z[Y-4]);break;case 41:X.merge(z[Y-6],z[Y-2],z[Y],z[Y-4]);break;case 42:X.commit(z[Y]);break;case 43:X.commit("","",X.commitType.NORMAL,z[Y]);break;case 44:X.commit("","",z[Y],"");break;case 45:X.commit("","",z[Y],z[Y-2]);break;case 46:X.commit("","",z[Y-2],z[Y]);break;case 47:X.commit("",z[Y],X.commitType.NORMAL,"");break;case 48:X.commit("",z[Y-2],X.commitType.NORMAL,z[Y]);break;case 49:X.commit("",z[Y],X.commitType.NORMAL,z[Y-2]);break;case 50:X.commit("",z[Y-2],z[Y],"");break;case 51:X.commit("",z[Y],z[Y-2],"");break;case 52:X.commit("",z[Y-4],z[Y-2],z[Y]);break;case 53:X.commit("",z[Y-4],z[Y],z[Y-2]);break;case 54:X.commit("",z[Y-2],z[Y-4],z[Y]);break;case 55:X.commit("",z[Y],z[Y-4],z[Y-2]);break;case 56:X.commit("",z[Y],z[Y-2],z[Y-4]);break;case 57:X.commit("",z[Y-2],z[Y],z[Y-4]);break;
26case 58:X.commit(z[Y],"",X.commitType.NORMAL,"");break;case 59:X.commit(z[Y],"",X.commitType.NORMAL,z[Y-2]);break;case 60:X.commit(z[Y-2],"",X.commitType.NORMAL,z[Y]);break;case 61:X.commit(z[Y-2],"",z[Y],"");break;case 62:X.commit(z[Y],"",z[Y-2],"");break;case 63:X.commit(z[Y],z[Y-2],X.commitType.NORMAL,"");break;case 64:X.commit(z[Y-2],z[Y],X.commitType.NORMAL,"");break;case 65:X.commit(z[Y-4],"",z[Y-2],z[Y]);break;case 66:X.commit(z[Y-4],"",z[Y],z[Y-2]);break;case 67:X.commit(z[Y-2],"",z[Y-4],z[Y]);break;case 68:X.commit(z[Y],"",z[Y-4],z[Y-2]);break;case 69:X.commit(z[Y],"",z[Y-2],z[Y-4]);break;case 70:X.commit(z[Y-2],"",z[Y],z[Y-4]);break;case 71:X.commit(z[Y-4],z[Y],z[Y-2],"");break;case 72:X.commit(z[Y-4],z[Y-2],z[Y],"");break;case 73:X.commit(z[Y-2],z[Y],z[Y-4],"");break;case 74:X.commit(z[Y],z[Y-2],z[Y-4],"");break;case 75:X.commit(z[Y],z[Y-4],z[Y-2],"");break;case 76:X.commit(z[Y-2],z[Y-4],z[Y],"");break;case 77:X.commit(z[Y-4],z[Y],X.commitType.NORMAL,z[Y-2]);break;case 78:X.commit(z[Y-4],z[Y-2],X.commitType.NORMAL,z[Y]);break;case 79:X.commit(z[Y-2],z[Y],X.commitType.NORMAL,z[Y-4]);break;case 80:X.commit(z[Y],z[Y-2],X.commitType.NORMAL,z[Y-4]);break;case 81:X.commit(z[Y],z[Y-4],X.commitType.NORMAL,z[Y-2]);break;case 82:X.commit(z[Y-2],z[Y-4],X.commitType.NORMAL,z[Y]);break;case 83:X.commit(z[Y-6],z[Y-4],z[Y-2],z[Y]);break;case 84:X.commit(z[Y-6],z[Y-4],z[Y],z[Y-2]);break;case 85:X.commit(z[Y-6],z[Y-2],z[Y-4],z[Y]);break;case 86:X.commit(z[Y-6],z[Y],z[Y-4],z[Y-2]);break;case 87:X.commit(z[Y-6],z[Y-2],z[Y],z[Y-4]);break;case 88:X.commit(z[Y-6],z[Y],z[Y-2],z[Y-4]);break;case 89:X.commit(z[Y-4],z[Y-6],z[Y-2],z[Y]);break;case 90:X.commit(z[Y-4],z[Y-6],z[Y],z[Y-2]);break;case 91:X.commit(z[Y-2],z[Y-6],z[Y-4],z[Y]);break;case 92:X.commit(z[Y],z[Y-6],z[Y-4],z[Y-2]);break;case 93:X.commit(z[Y-2],z[Y-6],z[Y],z[Y-4]);break;case 94:X.commit(z[Y],z[Y-6],z[Y-2],z[Y-4]);break;case 95:X.commit(z[Y],z[Y-4],z[Y-2],z[Y-6]);break;case 96:X.commit(z[Y-2],z[Y-4],z[Y],z[Y-6]);break;case 97:X.commit(z[Y],z[Y-2],z[Y-4],z[Y-6]);break;case 98:X.commit(z[Y-2],z[Y],z[Y-4],z[Y-6]);break;case 99:X.commit(z[Y-4],z[Y-2],z[Y],z[Y-6]);break;case 100:X.commit(z[Y-4],z[Y],z[Y-2],z[Y-6]);break;case 101:X.commit(z[Y-2],z[Y-4],z[Y-6],z[Y]);break;case 102:X.commit(z[Y],z[Y-4],z[Y-6],z[Y-2]);break;case 103:X.commit(z[Y-2],z[Y],z[Y-6],z[Y-4]);break;case 104:X.commit(z[Y],z[Y-2],z[Y-6],z[Y-4]);break;case 105:X.commit(z[Y-4],z[Y-2],z[Y-6],z[Y]);break;case 106:X.commit(z[Y-4],z[Y],z[Y-6],z[Y-2]);break;case 107:this.$="";break;case 108:this.$=z[Y];break;case 109:this.$=X.commitType.NORMAL;break;case 110:this.$=X.commitType.REVERSE;break;case 111:this.$=X.commitType.HIGHLIGHT;break;case 114:X.parseDirective("%%{","open_directive");break;case 115:X.parseDirective(z[Y],"type_directive");break;case 116:z[Y]=z[Y].trim().replace(/'/g,'"'),X.parseDirective(z[Y],"arg_directive");break;case 117:X.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{1:[3]},{3:10,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{3:11,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{7:12,8:F,9:[1,13],10:[1,14],11:15,14:O},u(j,[2,118]),u(j,[2,119]),u(j,[2,120]),{46:17,50:[1,18]},{50:[2,114]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:F,11:15,14:O},{9:[1,21]},u(H,[2,10],{12:22,13:[1,23]}),u(tt,[2,9]),{9:[1,25],47:24,52:Q},u([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:F,11:15,14:O}
vendor: 4,221 bytes, line 26
26,{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],39:[1,41]},u(tt,[2,8]),u(ht,[2,112]),{48:45,51:[1,46]},u(ht,[2,117]),{1:[2,4]},{8:[1,47]},u(H,[2,11]),{4:48,8:y,14:E,53:w},u(H,[2,13]),u(K,[2,14]),u(K,[2,15]),u(K,[2,16]),{21:[1,49]},{23:[1,50]},u(K,[2,19]),u(K,[2,20]),u(K,[2,21]),{28:[1,51]},u(K,[2,107],{40:52,33:[1,55],34:[1,57],36:[1,54],38:[1,53],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:Q},{52:[2,116]},{1:[2,5]},u(H,[2,12]),u(K,[2,17]),u(K,[2,18]),u(K,[2,22]),u(K,[2,42]),{34:[1,62]},{37:63,42:xt,43:at,44:ut},{34:[1,67]},{34:[1,68]},u(K,[2,108]),u(K,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},u(K,[2,23],{30:[1,73]}),u(ht,[2,113]),u(K,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),u(K,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),u(vt,[2,109]),u(vt,[2,110]),u(vt,[2,111]),u(K,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),u(K,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:xt,43:at,44:ut},{34:[1,88]},u(K,[2,25]),{31:[1,89]},{37:90,42:xt,43:at,44:ut},{34:[1,91]},{34:[1,92]},{34:[1,93]},{34:[1,94]},{34:[1,95]},{34:[1,96]},{37:97,42:xt,43:at,44:ut},{34:[1,98]},{34:[1,99]},{37:100,42:xt,43:at,44:ut},{34:[1,101]},u(K,[2,27],{36:[1,102],38:[1,103]}),u(K,[2,28],{33:[1,105],38:[1,104]}),u(K,[2,29],{33:[1,106],36:[1,107]}),u(K,[2,24]),u(K,[2,45],{33:[1,108],41:[1,109]}),u(K,[2,49],{36:[1,110],41:[1,111]}),u(K,[2,59],{33:[1,113],36:[1,112]}),u(K,[2,46],{33:[1,114],41:[1,115]}),u(K,[2,51],{38:[1,116],41:[1,117]}),u(K,[2,62],{33:[1,119],38:[1,118]}),u(K,[2,48],{36:[1,120],41:[1,121]}),u(K,[2,50],{38:[1,122],41:[1,123]}),u(K,[2,63],{36:[1,124],38:[1,125]}),u(K,[2,60],{33:[1,127],36:[1,126]}),u(K,[2,61],{33:[1,129],38:[1,128]}),u(K,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:xt,43:at,44:ut},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:xt,43:at,44:ut},{34:[1,138]},{34:[1,139]},{37:140,42:xt,43:at,44:ut},{34:[1,141]},{37:142,42:xt,43:at,44:ut},{34:[1,143]},{34:[1,144]},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{34:[1,149]},{37:150,42:xt,43:at,44:ut},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:xt,43:at,44:ut},{34:[1,155]},{37:156,42:xt,43:at,44:ut},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:xt,43:at,44:ut},{34:[1,161]},u(K,[2,33],{38:[1,162]}),u(K,[2,34],{36:[1,163]}),u(K,[2,32],{33:[1,164]}),u(K,[2,35],{38:[1,165]}),u(K,[2,30],{36:[1,166]}),u(K,[2,31],{33:[1,167]}),u(K,[2,56],{41:[1,168]}),u(K,[2,69],{33:[1,169]}),u(K,[2,57],{41:[1,170]}),u(K,[2,80],{36:[1,171]}),u(K,[2,70],{33:[1,172]}),u(K,[2,79],{36:[1,173]}),u(K,[2,55],{41:[1,174]}),u(K,[2,68],{33:[1,175]}),u(K,[2,54],{41:[1,176]}),u(K,[2,74],{38:[1,177]}),u(K,[2,67],{33:[1,178]}),u(K,[2,73],{38:[1,179]}),u(K,[2,53],{41:[1,180]}),u(K,[2,81],{36:[1,181]}),u(K,[2,52],{41:[1,182]}),u(K,[2,75],{38:[1,183]}),u(K,[2,76],{38:[1,184]}),u(K,[2,82],{36:[1,185]}),u(K,[2,66],{33:[1,186]}),u(K,[2,77],{36:[1,187]}),u(K,[2,65],{33:[1,188]}),u(K,[2,71],{38:[1,189]}),u(K,[2,72],{38:[1,190]}),u(K,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:xt,43:at,44:ut},{34:[1,194]},{34:[1,195]},{37:196,42:xt,43:at,44:ut},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:xt,43:at,44:ut},{34:[1,202]},{37:203,42:xt,43:at,44:ut},{34:[1,204]},{34:[1,205]},{34:[1,206]},{34:[1,207]},{34:[1,208]},{34:[1,209]},{34:[1,210]},{37:211,42:xt,43:at,44:ut},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:xt,43:at,44:ut},{34:[1,216]},{37:217,42:xt,43:at,44:ut},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:xt,43:at,44:ut},u(K,[2,36]),u(K,[2,38]),u(K,[2,37]),u(K,[2,39]),u(K,[2,41]),u(K,[2,40]),u(K,[2,97]),u(K,[2,98]),u(K,[2,95]),u(K,[2,96]),u(K,[2,100]),u(K,[2,99]),u(K,[2,104]),u(K,[2,103]),u(K,[2,102]),u(K,[2,101]),u(K,[2,106]),u(K,[2,105]),u(K,[2,94]),u(K,[2,93]),u(K,[2,92]),u(K,[2,91]),u(K,[2,89]),u(K,[2,90]),u(K,[2,88]),u(K,[2,87]),u(K,[2,86]),u(K,[2,85]),u(K,[2,83]),u(K,[2,84])],defaultActions:{9:[2,114],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,116],47:[2,5]},parseError:function(It,wt){if(!wt.recoverable){var mt=new Error(It);throw mt.hash=wt,mt}this.trace(It)},parse:function(It){var wt=this,mt=[0],X=[],ot=[null],z=[],yt=this.table,Y="",bt=0,Ct=0,$t=0,be=2,We=1,xe=z.slice.call(arguments,1
26),pe=Object.create(this.lexer),_e={yy:{}};for(var Ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ae)&&(_e.yy[Ae]=this.yy[Ae]);pe.setInput(It,_e.yy),_e.yy.lexer=pe,_e.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var De=pe.yylloc;z.push(De);var me=pe.options&&pe.options.ranges;function wn(){var de;return typeof(de=X.pop()||pe.lex()||We)!="number"&&(de instanceof Array&&(de=(X=de).pop()),de=wt.symbols_[de]||de),de}typeof _e.yy.parseError=="function"?this.parseError=_e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fe,Qe,ne,Qt,oe,Et,te,st,ft,dt={};;){if(ne=mt[mt.length-1],this.defaultActions[ne]?Qt=this.defaultActions[ne]:(fe==null&&(fe=wn()),Qt=yt[ne]&&yt[ne][fe]),Qt===void 0||!Qt.length||!Qt[0]){var Mt="";for(Et in ft=[],yt[ne])this.terminals_[Et]&&Et>be&&ft.push("'"+this.terminals_[Et]+"'");Mt=pe.showPosition?"Parse error on line "+(bt+1)+`:
27`+pe.showPosition()+`
28Expecting `+ft.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":"Parse error on line "+(bt+1)+": Unexpected "+(fe==We?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Mt,{text:pe.match,token:this.terminals_[fe]||fe,line:pe.yylineno,loc:De,expected:ft})}if(Qt[0]instanceof Array&&Qt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+fe);switch(Qt[0]){case 1:mt.push(fe),ot.push(pe.yytext),z.push(pe.yylloc),mt.push(Qt[1]),fe=null,Qe?(fe=Qe,Qe=null):(Ct=pe.yyleng,Y=pe.yytext,bt=pe.yylineno,De=pe.yylloc,$t>0);break;case 2:if(te=this.productions_[Qt[1]][1],dt.$=ot[ot.length-te],dt._$={first_line:z[z.length-(te||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(te||1)].first_column,last_column:z[z.length-1].last_column},me&&(dt._$.range=[z[z.length-(te||1)].range[0],z[z.length-1].range[1]]),(oe=this.performAction.apply(dt,[Y,Ct,bt,_e.yy,Qt[1],ot,z].concat(xe)))!==void 0)return oe;te&&(mt=mt.slice(0,-1*te*2),ot=ot.slice(0,-1*te),z=z.slice(0,-1*te)),mt.push(this.productions_[Qt[1]][0]),ot.push(dt.$),z.push(dt._$),st=yt[mt[mt.length-2]][mt[mt.length-1]],mt.push(st);break;case 3:return!0}}return!0}},Gt={EOF:1,parseError:function(It,wt){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,wt)},setInput:function(It,wt){return this.yy=wt||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 wt=It.length,mt=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;var X=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mt.length-1&&(this.yylineno-=mt.length-1);var ot=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mt?(mt.length===X.length?this.yylloc.first_column:0)+X[X.length-mt.length].length-mt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[ot[0],ot[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
29`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(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(),wt=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
30`+wt+"^"},test_match:function(It,wt){var mt,X,ot;if(this.options.backtrack_lexer&&(ot={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&&(ot.yylloc.range=this.yylloc.range.slice(0))),(X=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.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],mt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var z in ot)this[z]=ot[z];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,wt,mt,X;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ot=this._currentRules(),z=0;z<ot.length;z++)if((mt=this._input.match(this.rules[ot[z]]))&&(!wt||mt[0].length>wt[0].length)){if(wt=mt,X=z,this.options.backtrack_lexer){if((It=this.test_match(mt,ot[z]))!==!1)return It;if(this._backtrack){wt=!1;continue}return!1}if(!this.options.flex)break}return wt?(It=this.test_match(wt,ot[X]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
31`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(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,wt,mt,X){switch(mt){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 39;case 18:return 33;case 19:return 36;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 38;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;
31case 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 kt(){this.yy={}}return Zt.lexer=Gt,kt.prototype=Zt,Zt.Parser=kt,new kt}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(8183).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},6765:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(w,F,O,j){for(O=O||{},j=w.length;j--;O[w[j]]=F);return O},_=[6,9,10],y={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(w,F,O,j,H,tt,Q){switch(tt.length,H){case 1:return j;case 4:break;case 6:j.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},u(_,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},u(_,[2,3]),u(_,[2,4]),u(_,[2,5]),u(_,[2,6])],defaultActions:{4:[2,1]},parseError:function(w,F){if(!F.recoverable){var O=new Error(w);throw O.hash=F,O}this.trace(w)},parse:function(w){var F=this,O=[0],j=[],H=[null],tt=[],Q=this.table,ht="",K=0,xt=0,at=0,ut=2,vt=1,Zt=tt.slice.call(arguments,1),Gt=Object.create(this.lexer),kt={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(kt.yy[It]=this.yy[It]);Gt.setInput(w,kt.yy),kt.yy.lexer=Gt,kt.yy.parser=this,Gt.yylloc===void 0&&(Gt.yylloc={});var wt=Gt.yylloc;tt.push(wt);var mt=Gt.options&&Gt.options.ranges;function X(){var _e;return typeof(_e=j.pop()||Gt.lex()||vt)!="number"&&(_e instanceof Array&&(_e=(j=_e).pop()),_e=F.symbols_[_e]||_e),_e}typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ot,z,yt,Y,bt,Ct,$t,be,We,xe={};;){if(yt=O[O.length-1],this.defaultActions[yt]?Y=this.defaultActions[yt]:(ot==null&&(ot=X()),Y=Q[yt]&&Q[yt][ot]),Y===void 0||!Y.length||!Y[0]){var pe="";for(Ct in We=[],Q[yt])this.terminals_[Ct]&&Ct>ut&&We.push("'"+this.terminals_[Ct]+"'");pe=Gt.showPosition?"Parse error on line "+(K+1)+`:
32`+Gt.showPosition()+`
33Expecting `+We.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":"Parse error on line "+(K+1)+": Unexpected "+(ot==vt?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(pe,{text:Gt.match,token:this.terminals_[ot]||ot,line:Gt.yylineno,loc:wt,expected:We})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+ot);switch(Y[0]){case 1:O.push(ot),H.push(Gt.yytext),tt.push(Gt.yylloc),O.push(Y[1]),ot=null,z?(ot=z,z=null):(xt=Gt.yyleng,ht=Gt.yytext,K=Gt.yylineno,wt=Gt.yylloc,at>0);break;case 2:if($t=this.productions_[Y[1]][1],xe.$=H[H.length-$t],xe._$={first_line:tt[tt.length-($t||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-($t||1)].first_column,last_column:tt[tt.length-1].last_column},mt&&(xe._$.range=[tt[tt.length-($t||1)].range[0],tt[tt.length-1].range[1]]),(bt=this.performAction.apply(xe,[ht,xt,K,kt.yy,Y[1],H,tt].concat(Zt)))!==void 0)return bt;$t&&(O=O.slice(0,-1*$t*2),H=H.slice(0,-1*$t),tt=tt.slice(0,-1*$t)),O.push(this.productions_[Y[1]][0]),H.push(xe.$),tt.push(xe._$),be=Q[O[O.length-2]][O[O.length-1]],O.push(be);break;case 3:return!0}}return!0}}
vendor: 4,718 bytes, lines 33-36
33,E={EOF:1,parseError:function(w,F){if(!this.yy.parser)throw new Error(w);this.yy.parser.parseError(w,F)},setInput:function(w,F){return this.yy=F||this.yy||{},this._input=w,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 w=this._input[0];return this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w,w.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),w},unput:function(w){var F=w.length,O=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;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),O.length-1&&(this.yylineno-=O.length-1);var H=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===j.length?this.yylloc.first_column:0)+j[j.length-O.length].length-O[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[H[0],H[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
34`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),F=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
35`+F+"^"},test_match:function(w,F){var O,j,H;if(this.options.backtrack_lexer&&(H={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(H.yylloc.range=this.yylloc.range.slice(0))),(j=w[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+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,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(w[0].length),this.matched+=w[0],O=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var tt in H)this[tt]=H[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var w,F,O,j;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var H=this._currentRules(),tt=0;tt<H.length;tt++)if((O=this._input.match(this.rules[H[tt]]))&&(!F||O[0].length>F[0].length)){if(F=O,j=tt,this.options.backtrack_lexer){if((w=this.test_match(O,H[tt]))!==!1)return w;if(this._backtrack){F=!1;continue}return!1}if(!this.options.flex)break}return F?(w=this.test_match(F,H[j]))!==!1&&w:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
36`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(w){this.conditionStack.push(w)},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(w){return(w=this.conditionStack.length-1-Math.abs(w||
360))>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,F,O,j){switch(O){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function A(){this.yy={}}return y.lexer=E,A.prototype=y,y.Parser=A,new A}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(1428).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},7062:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(wt,mt,X,ot){for(X=X||{},ot=wt.length;ot--;X[wt[ot]]=mt);return X},_=[1,4],y=[1,5],E=[1,6],A=[1,7],w=[1,9],F=[1,11,13,15,17,19,20,26,27,28,29],O=[2,5],j=[1,6,11,13,15,17,19,20,26,27,28,29],H=[26,27,28],tt=[2,8],Q=[1,18],ht=[1,19],K=[1,20],xt=[1,21],at=[1,22],ut=[1,23],vt=[1,28],Zt=[6,26,27,28,29],Gt={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(wt,mt,X,ot,z,yt,Y){var bt=yt.length-1;switch(z){case 4:ot.setShowData(!0);break;case 7:this.$=yt[bt-1];break;case 9:ot.addSection(yt[bt-1],ot.cleanupValue(yt[bt]));break;case 10:this.$=yt[bt].trim(),ot.setDiagramTitle(this.$);break;case 11:this.$=yt[bt].trim(),ot.setAccTitle(this.$);break;case 12:case 13:this.$=yt[bt].trim(),ot.setAccDescription(this.$);break;case 14:ot.addSection(yt[bt].substr(8)),this.$=yt[bt].substr(8);break;case 21:ot.parseDirective("%%{","open_directive");break;case 22:ot.parseDirective(yt[bt],"type_directive");break;case 23:yt[bt]=yt[bt].trim().replace(/'/g,'"'),ot.parseDirective(yt[bt],"arg_directive");break;case 24:ot.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},{1:[3]},{3:10,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},{3:11,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},u(F,O,{7:12,8:[1,13]}),u(j,[2,18]),u(j,[2,19]),u(j,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},u(H,tt,{21:8,9:16,10:17,5:24,1:[2,3],11:Q,13:ht,15:K,17:xt,19:at,20:ut,29:w}),u(F,O,{7:25}),{23:26,24:[1,27],32:vt},u([24,32],[2,22]),u(F,[2,6]),{4:29,26:y,27:E,28:A},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},u(H,[2,13]),u(H,[2,14]),u(H,[2,15]),u(H,tt,{21:8,9:16,10:17,5:24,1:[2,4],11:Q,13:ht,15:K,17:xt,19:at,20:ut,29:w}),u(Zt,[2,16]),{25:34,31:[1,35]},u(Zt,[2,24]),u(F,[2,7]),u(H,[2,9]),u(H,[2,10]),u(H,[2,11]),u(H,[2,12]),{23:36,32:vt},{32:[2,23]},u(Zt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(wt,mt){if(!mt.recoverable){var X=new Error(wt);throw X.hash=mt,X}this.trace(wt)},parse:function(wt){var mt=this,X=[0],ot=[],z=[null],yt=[],Y=this.table,bt="",Ct=0,$t=0,be=0,We=2,xe=1,pe=yt.slice.call(arguments,1),_e=Object.create(this.lexer),Ae={yy:{}};for(var De in this.yy)Object.prototype.hasOwnProperty.call(this.yy,De)&&(Ae.yy[De]=this.yy[De]);_e.setInput(wt,Ae.yy),Ae.yy.lexer=_e,Ae.yy.parser=this,_e.yylloc===void 0&&(_e.yylloc={});var me=_e.yylloc;yt.push(me);var wn=_e.options&&_e.options.ranges;function fe(){var Le;return typeof(Le=ot.pop()||_e.lex()||xe)!="number"&&(Le instanceof Array&&(Le=(ot=Le).pop()),Le=mt.symbols_[Le]||Le),Le}typeof Ae.yy.parseError=="function"?this.parseError=Ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qe,ne,Qt,oe,Et,te,st,ft,dt,Mt={};;){if(Qt=X[X.length-1],this.defaultActions[Qt]?oe=this.defaultActions[Qt]:(Qe==null&&(Qe=fe()),oe=Y[Qt]&&Y[Qt][Qe]),oe===void 0||!oe.length||!oe[0]){var de="";for(te in dt=[],Y[Qt])this.terminals_[te]&&te>We&&dt.push("'"+this.terminals_[te]+"'");de=_e.showPosition?"Parse error on line "+(Ct+1)+`:
37`+_e.showPosition()+`
38Expecting `+dt.join(", ")+", got '"+(this.terminals_[Qe]||Qe)+"'":"Parse error on line "+(Ct+1)+": Unexpected "+(Qe==xe?"end of input":"'"+(this.terminals_[Qe]||Qe)+"'"),this.parseError(de,{text:_e.match,token:this.terminals_[Qe]||Qe,line:_e.yylineno,loc:me,expected:dt})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+Qe);switch(oe[0]){case 1:X.push(Qe),z.push(_e.yytext),yt.push(_e.yylloc),X.push(oe[1]),Qe=null,ne?(Qe=ne,ne=null):($t=_e.yyleng,bt=_e.yytext,Ct=_e.yylineno,me=_e.yylloc,be>0);break;case 2:if(st=this.productions_[oe[1]][1],Mt.$=z[z.length-st],Mt._$={first_line:yt[yt.length-(st||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(st||1)].first_column,last_column:yt[yt.length-1].last_column},wn&&(Mt._$.range=[yt[yt.length-(st||1)].range[0],yt[yt.length-1].range[1]]),(Et=this.performAction.apply(Mt,[bt,$t,Ct,Ae.yy,oe[1],z,yt].concat(pe)))!==void 0)return Et;
vendor: 5,449 bytes, lines 38-41
38st&&(X=X.slice(0,-1*st*2),z=z.slice(0,-1*st),yt=yt.slice(0,-1*st)),X.push(this.productions_[oe[1]][0]),z.push(Mt.$),yt.push(Mt._$),ft=Y[X[X.length-2]][X[X.length-1]],X.push(ft);break;case 3:return!0}}return!0}},kt={EOF:1,parseError:function(wt,mt){if(!this.yy.parser)throw new Error(wt);this.yy.parser.parseError(wt,mt)},setInput:function(wt,mt){return this.yy=mt||this.yy||{},this._input=wt,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 wt=this._input[0];return this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt,wt.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),wt},unput:function(wt){var mt=wt.length,X=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var ot=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===ot.length?this.yylloc.first_column:0)+ot[ot.length-X.length].length-X[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
39`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),mt=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
40`+mt+"^"},test_match:function(wt,mt){var X,ot,z;if(this.options.backtrack_lexer&&(z={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&&(z.yylloc.range=this.yylloc.range.slice(0))),(ot=wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ot.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ot?ot[ot.length-1].length-ot[ot.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,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(wt[0].length),this.matched+=wt[0],X=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var yt in z)this[yt]=z[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;var wt,mt,X,ot;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),yt=0;yt<z.length;yt++)if((X=this._input.match(this.rules[z[yt]]))&&(!mt||X[0].length>mt[0].length)){if(mt=X,ot=yt,this.options.backtrack_lexer){if((wt=this.test_match(X,z[yt]))!==!1)return wt;if(this._backtrack){mt=!1;continue}return!1}if(!this.options.flex)break}return mt?(wt=this.test_match(mt,z[ot]))!==!1&&wt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
41`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(wt){this.conditionStack.push(wt)},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(wt){return(wt=this.conditionStack.length-1-Math.abs(wt||0))>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,mt,X,ot){switch(X){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;
41case 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 It(){this.yy={}}return Gt.lexer=kt,It.prototype=Gt,Gt.Parser=It,new It}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(4551).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},3176:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(ne,Qt,oe,Et){for(oe=oe||{},Et=ne.length;Et--;oe[ne[Et]]=Qt);return oe},_=[1,3],y=[1,5],E=[1,6],A=[1,7],w=[1,8],F=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],O=[1,22],j=[2,13],H=[1,26],tt=[1,27],Q=[1,28],ht=[1,29],K=[1,30],xt=[1,31],at=[1,24],ut=[1,32],vt=[1,33],Zt=[1,36],Gt=[71,72],kt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],It=[1,56],wt=[1,57],mt=[1,58],X=[1,59],ot=[1,60],z=[1,61],yt=[1,62],Y=[62,63],bt=[1,74],Ct=[1,70],$t=[1,71],be=[1,72],We=[1,73],xe=[1,75],pe=[1,79],_e=[1,80],Ae=[1,77],De=[1,78],me=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],wn={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,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:
4151,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(ne,Qt,oe,Et,te,st,ft){var dt=st.length-1;switch(te){case 6:this.$=st[dt].trim(),Et.setAccTitle(this.$);break;case 7:case 8:this.$=st[dt].trim(),Et.setAccDescription(this.$);break;case 9:Et.parseDirective("%%{","open_directive");break;case 10:Et.parseDirective(st[dt],"type_directive");break;case 11:st[dt]=st[dt].trim().replace(/'/g,'"'),Et.parseDirective(st[dt],"arg_directive");break;case 12:Et.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Et.addRequirement(st[dt-3],st[dt-4]);break;case 20:Et.setNewReqId(st[dt-2]);break;case 21:Et.setNewReqText(st[dt-2]);break;case 22:Et.setNewReqRisk(st[dt-2]);break;case 23:Et.setNewReqVerifyMethod(st[dt-2]);break;case 26:this.$=Et.RequirementType.REQUIREMENT;break;case 27:this.$=Et.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Et.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Et.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Et.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Et.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Et.RiskLevel.LOW_RISK;break;case 33:this.$=Et.RiskLevel.MED_RISK;break;case 34:this.$=Et.RiskLevel.HIGH_RISK;break;case 35:this.$=Et.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Et.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Et.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Et.VerifyType.VERIFY_TEST;break;case 39:Et.addElement(st[dt-3]);break;case 40:Et.setNewElementType(st[dt-2]);break;case 41:Et.setNewElementDocRef(st[dt-2]);break;case 44:Et.addRelationship(st[dt-2],st[dt],st[dt-4]);break;case 45:Et.addRelationship(st[dt-2],st[dt-4],st[dt]);break;case 46:this.$=Et.Relationships.CONTAINS;break;case 47:this.$=Et.Relationships.COPIES;break;case 48:this.$=Et.Relationships.DERIVES;break;case 49:this.$=Et.Relationships.SATISFIES;break;case 50:this.$=Et.Relationships.VERIFIES;break;case 51:this.$=Et.Relationships.REFINES;break;case 52:this.$=Et.Relationships.TRACES}},table:[{3:1,4:2,6:_,9:4,14:y,16:E,18:A,19:w},{1:[3]},{3:10,4:2,5:[1,9],6:_,9:4,14:y,16:E,18:A,19:w},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},u(F,[2,8]),{20:[2,9]},{3:16,4:2,6:_,9:4,14:y,16:E,18:A,19:w},{1:[2,2]},{4:21,5:O,7:17,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{11:34,12:[1,35],22:Zt},u([12,22],[2,10]),u(F,[2,6]),u(F,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:O,7:38,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{4:21,5:O,7:39,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{4:21,5:O,7:40,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{4:21,5:O,7:41,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{4:21,5:O,7:42,8:j,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:H,41:tt,42:Q,43:ht,44:K,45:xt,53:at,71:ut,72:vt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},u(Gt,[2,26]),u(Gt,[2,27]),u(Gt,[2,28]),u(Gt,[2,29]),u(Gt,[2,30]),u(Gt,[2,31]),u(kt,[2,55]),u(kt,[2,56]),u(F,[2,4]),{13:51,21:[1,52]},u(F,[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]}
41,{28:[2,60]},{61:55,64:It,65:wt,66:mt,67:X,68:ot,69:z,70:yt},{61:63,64:It,65:wt,66:mt,67:X,68:ot,69:z,70:yt},{11:64,22:Zt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},u(Y,[2,46]),u(Y,[2,47]),u(Y,[2,48]),u(Y,[2,49]),u(Y,[2,50]),u(Y,[2,51]),u(Y,[2,52]),{63:[1,68]},u(F,[2,5]),{5:bt,29:69,30:Ct,33:$t,35:be,37:We,39:xe},{5:pe,39:_e,55:76,56:Ae,58:De},{32:81,71:ut,72:vt},{32:82,71:ut,72:vt},u(me,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:bt,29:87,30:Ct,33:$t,35:be,37:We,39:xe},u(me,[2,25]),u(me,[2,39]),{31:[1,88]},{31:[1,89]},{5:pe,39:_e,55:90,56:Ae,58:De},u(me,[2,43]),u(me,[2,44]),u(me,[2,45]),{32:91,71:ut,72:vt},{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]},u(me,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},u(me,[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:bt,29:116,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:117,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:118,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:119,30:Ct,33:$t,35:be,37:We,39:xe},{5:pe,39:_e,55:120,56:Ae,58:De},{5:pe,39:_e,55:121,56:Ae,58:De},u(me,[2,20]),u(me,[2,21]),u(me,[2,22]),u(me,[2,23]),u(me,[2,40]),u(me,[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(ne,Qt){if(!Qt.recoverable){var oe=new Error(ne);throw oe.hash=Qt,oe}this.trace(ne)},parse:function(ne){var Qt=this,oe=[0],Et=[],te=[null],st=[],ft=this.table,dt="",Mt=0,de=0,Le=0,en=2,qe=1,sn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Te={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Te.yy[Oe]=this.yy[Oe]);Fe.setInput(ne,Te.yy),Te.yy.lexer=Fe,Te.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Be=Fe.yylloc;st.push(Be);var ge=Fe.options&&Fe.options.ranges;function re(){var Ee;return typeof(Ee=Et.pop()||Fe.lex()||qe)!="number"&&(Ee instanceof Array&&(Ee=(Et=Ee).pop()),Ee=Qt.symbols_[Ee]||Ee),Ee}typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,ln,Ye,dn,Jn,Dn,Tn,Me,Ke={};;){if(ln=oe[oe.length-1],this.defaultActions[ln]?Ye=this.defaultActions[ln]:(An==null&&(An=re()),Ye=ft[ln]&&ft[ln][An]),Ye===void 0||!Ye.length||!Ye[0]){var Xe="";for(Jn in Me=[],ft[ln])this.terminals_[Jn]&&Jn>en&&Me.push("'"+this.terminals_[Jn]+"'");Xe=Fe.showPosition?"Parse error on line "+(Mt+1)+`:
42`+Fe.showPosition()+`
43Expecting `+Me.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(An==qe?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Xe,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Be,expected:Me})}if(Ye[0]instanceof Array&&Ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ln+", token: "+An);switch(Ye[0]){case 1:oe.push(An),te.push(Fe.yytext),st.push(Fe.yylloc),oe.push(Ye[1]),An=null,Ie?(An=Ie,Ie=null):(de=Fe.yyleng,dt=Fe.yytext,Mt=Fe.yylineno,Be=Fe.yylloc,Le>0);break;case 2:if(Dn=this.productions_[Ye[1]][1],Ke.$=te[te.length-Dn],Ke._$={first_line:st[st.length-(Dn||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(Dn||1)].first_column,last_column:st[st.length-1].last_column},ge&&(Ke._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(dn=this.performAction.apply(Ke,[dt,de,Mt,Te.yy,Ye[1],te,st].concat(sn)))!==void 0)return dn;Dn&&(oe=oe.slice(0,-1*Dn*2),te=te.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),oe.push(this.productions_[Ye[1]][0]),te.push(Ke.$),st.push(Ke._$),Tn=ft[oe[oe.length-2]][oe[oe.length-1]],oe.push(Tn);break;case 3:return!0}}return!0}},fe={EOF:1,parseError:function(ne,Qt){if(!this.yy.parser)throw new Error(ne);this.yy.parser.parseError(ne,Qt)},setInput:function(ne,Qt){return this.yy=Qt||this.yy||{},this._input=ne,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}
43,input:function(){var ne=this._input[0];return this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne,ne.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),ne},unput:function(ne){var Qt=ne.length,oe=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;var Et=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),oe.length-1&&(this.yylineno-=oe.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-oe.length].length-oe[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-Qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
44`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),Qt=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
45`+Qt+"^"},test_match:function(ne,Qt){var oe,Et,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),(Et=ne[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,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(ne[0].length),this.matched+=ne[0],oe=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var st in te)this[st]=te[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var ne,Qt,oe,Et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),st=0;st<te.length;st++)if((oe=this._input.match(this.rules[te[st]]))&&(!Qt||oe[0].length>Qt[0].length)){if(Qt=oe,Et=st,this.options.backtrack_lexer){if((ne=this.test_match(oe,te[st]))!==!1)return ne;if(this._backtrack){Qt=!1;continue}return!1}if(!this.options.flex)break}return Qt?(ne=this.test_match(Qt,te[Et]))!==!1&&ne:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
46`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ne){this.conditionStack.push(ne)},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(ne){return(ne=this.conditionStack.length-1-Math.abs(ne||0))>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,Qt,oe,Et){switch(oe){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 Qt.yytext=Qt.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 wn.lexer=fe,Qe.prototype=wn,wn.Parser=Qe,new Qe}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(8800).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},6876:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(ne,Qt,oe,Et){for(oe=oe||{},Et=ne.length;Et--;oe[ne[Et]]=Qt);return oe},_=[1,2],y=[1,3],E=[1,5],A=[1,7],w=[2,5],F=[1,15],O=[1,17],j=[1,18],H=[1,19],tt=[1,21],Q=[1,22],ht=[1,23],K=[1,29],xt=[1,30],at=[1,31],ut=[1,32],vt=[
vendor: 5,732 bytes, line 46
461,33],Zt=[1,34],Gt=[1,35],kt=[1,36],It=[1,37],wt=[1,38],mt=[1,39],X=[1,40],ot=[1,43],z=[1,44],yt=[1,45],Y=[1,46],bt=[1,47],Ct=[1,48],$t=[1,51],be=[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],We=[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],xe=[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],pe=[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],_e=[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],Ae=[67,68,69],De=[1,121],me=[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],wn={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(ne,Qt,oe,Et,te,st,ft){var dt=st.length-1;switch(te){case 4:return Et.apply(st[dt]),st[dt];case 5:case 9:this.$=[];break;case 6:st[dt-1].push(st[dt]),this.$=st[dt-1];break;case 7:case 8:case 56:this.$=st[dt];break;case 12:st[dt-3].type="addParticipant",st[dt-3].description=Et.parseMessage(st[dt-1]),this.$=st[dt-3];break;case 13:st[dt-1].type="addParticipant",this.$=st[dt-1];break;case 14:st[dt-3].type="addActor",st[dt-3].description=Et.parseMessage(st[dt-1]),this.$=st[dt-3];break;case 15:st[dt-1].type="addActor",this.$=st[dt-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(st[dt-2]),sequenceIndexStep:Number(st[dt-1]),sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(st[dt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Et.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Et.LINETYPE.ACTIVE_START,actor:st[dt-1]};break;case 22:this.$={type:"activeEnd",signalType:Et.LINETYPE.ACTIVE_END,actor:st[dt-1]};break;case 28:Et.setDiagramTitle(st[dt].substring(6)),this.$=st[dt].substring(6);break;case 29:Et.setDiagramTitle(st[dt].substring(7)),this.$=st[dt].substring(7);break;case 30:this.$=st[dt].trim(),Et.setAccTitle(this.$);break;case 31:case 32:this.$=st[dt].trim(),Et.setAccDescription(this.$);break;case 33:st[dt-1].unshift({type:"loopStart",loopText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.LOOP_START}),st[dt-1].push({type:"loopEnd",loopText:st[dt-2],signalType:Et.LINETYPE.LOOP_END}),this.$=st[dt-1];break;case 34:st[dt-1].unshift({type:"rectStart",color:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.RECT_START}),st[dt-1].push({type:"rectEnd",color:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.RECT_END}),this.$=st[dt-1];break;case 35:st[dt-1].unshift({type:"optStart",optText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.OPT_START}),st[dt-1].push({type:"optEnd",optText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.OPT_END}),this.$=st[dt-1];break;case 36:st[dt-1].unshift({type:"altStart",altText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.ALT_START}),st[dt-1].push({type:"altEnd",signalType:Et.LINETYPE.ALT_END}),this.$=st[dt-1];break;case 37:st[dt-1].unshift({type:"parStart",parText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.PAR_START}),st[dt-1].push({type:"parEnd",signalType:Et.LINETYPE.PAR_END}),this.$=st[dt-1];break;
46case 38:st[dt-1].unshift({type:"criticalStart",criticalText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.CRITICAL_START}),st[dt-1].push({type:"criticalEnd",signalType:Et.LINETYPE.CRITICAL_END}),this.$=st[dt-1];break;case 39:st[dt-1].unshift({type:"breakStart",breakText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.BREAK_START}),st[dt-1].push({type:"breakEnd",optText:Et.parseMessage(st[dt-2]),signalType:Et.LINETYPE.BREAK_END}),this.$=st[dt-1];break;case 42:this.$=st[dt-3].concat([{type:"option",optionText:Et.parseMessage(st[dt-1]),signalType:Et.LINETYPE.CRITICAL_OPTION},st[dt]]);break;case 44:this.$=st[dt-3].concat([{type:"and",parText:Et.parseMessage(st[dt-1]),signalType:Et.LINETYPE.PAR_AND},st[dt]]);break;case 46:this.$=st[dt-3].concat([{type:"else",altText:Et.parseMessage(st[dt-1]),signalType:Et.LINETYPE.ALT_ELSE},st[dt]]);break;case 47:this.$=[st[dt-1],{type:"addNote",placement:st[dt-2],actor:st[dt-1].actor,text:st[dt]}];break;case 48:st[dt-2]=[].concat(st[dt-1],st[dt-1]).slice(0,2),st[dt-2][0]=st[dt-2][0].actor,st[dt-2][1]=st[dt-2][1].actor,this.$=[st[dt-1],{type:"addNote",placement:Et.PLACEMENT.OVER,actor:st[dt-2].slice(0,2),text:st[dt]}];break;case 49:this.$=[st[dt-1],{type:"addLinks",actor:st[dt-1].actor,text:st[dt]}];break;case 50:this.$=[st[dt-1],{type:"addALink",actor:st[dt-1].actor,text:st[dt]}];break;case 51:this.$=[st[dt-1],{type:"addProperties",actor:st[dt-1].actor,text:st[dt]}];break;case 52:this.$=[st[dt-1],{type:"addDetails",actor:st[dt-1].actor,text:st[dt]}];break;case 55:this.$=[st[dt-2],st[dt]];break;case 57:this.$=Et.PLACEMENT.LEFTOF;break;case 58:this.$=Et.PLACEMENT.RIGHTOF;break;case 59:this.$=[st[dt-4],st[dt-1],{type:"addMessage",from:st[dt-4].actor,to:st[dt-1].actor,signalType:st[dt-3],msg:st[dt]},{type:"activeStart",signalType:Et.LINETYPE.ACTIVE_START,actor:st[dt-1]}];break;case 60:this.$=[st[dt-4],st[dt-1],{type:"addMessage",from:st[dt-4].actor,to:st[dt-1].actor,signalType:st[dt-3],msg:st[dt]},{type:"activeEnd",signalType:Et.LINETYPE.ACTIVE_END,actor:st[dt-4]}];break;case 61:this.$=[st[dt-3],st[dt-1],{type:"addMessage",from:st[dt-3].actor,to:st[dt-1].actor,signalType:st[dt-2],msg:st[dt]}];break;case 62:this.$={type:"addParticipant",actor:st[dt]};break;case 63:this.$=Et.LINETYPE.SOLID_OPEN;break;case 64:this.$=Et.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Et.LINETYPE.SOLID;break;case 66:this.$=Et.LINETYPE.DOTTED;break;case 67:this.$=Et.LINETYPE.SOLID_CROSS;break;case 68:this.$=Et.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Et.LINETYPE.SOLID_POINT;break;case 70:this.$=Et.LINETYPE.DOTTED_POINT;break;case 71:this.$=Et.parseMessage(st[dt].trim().substring(1));break;case 72:Et.parseDirective("%%{","open_directive");break;case 73:Et.parseDirective(st[dt],"type_directive");break;case 74:st[dt]=st[dt].trim().replace(/'/g,'"'),Et.parseDirective(st[dt],"arg_directive");break;case 75:Et.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:y,6:4,7:E,11:6,79:A},{1:[3]},{3:8,4:_,5:y,6:4,7:E,11:6,79:A},{3:9,4:_,5:y,6:4,7:E,11:6,79:A},{3:10,4:_,5:y,6:4,7:E,11:6,79:A},u([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],w,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{13:49,14:[1,50],82:$t},u([14,82],[2,73]),u(be,[2,6]),{6:41,10:52,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},u(be,[2,8]),u(be,[2,9]),{17:53,69:Ct},{17:54,69:Ct},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Ct},{17:60,69:Ct},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},u(be,[2,28]),u(be,[2,29]),{35:[1,66]},{37:[1,67]},u(be,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},u(be,[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:Ct},{17:89,69:Ct},{17:90,69:Ct},{17:91,69:Ct},u([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]}
46,{15:93,81:[1,94]},{5:[2,75]},u(be,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},u(be,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},u(be,[2,20]),{5:[1,102]},{5:[1,103]},u(be,[2,23]),u(be,[2,24]),u(be,[2,25]),u(be,[2,26]),u(be,[2,27]),u(be,[2,30]),u(be,[2,31]),u(We,w,{8:104}),u(We,w,{8:105}),u(We,w,{8:106}),u(xe,w,{44:107,8:108}),u(pe,w,{46:109,8:110}),u(_e,w,{48:111,8:112}),u(We,w,{8:113}),{17:116,67:[1,114],68:[1,115],69:Ct},u(Ae,[2,63]),u(Ae,[2,64]),u(Ae,[2,65]),u(Ae,[2,66]),u(Ae,[2,67]),u(Ae,[2,68]),u(Ae,[2,69]),u(Ae,[2,70]),{17:117,69:Ct},{17:119,57:118,69:Ct},{69:[2,57]},{69:[2,58]},{55:120,78:De},{55:122,78:De},{55:123,78:De},{55:124,78:De},u(me,[2,10]),{13:125,82:$t},{82:[2,74]},{19:[1,126]},u(be,[2,13]),{19:[1,127]},u(be,[2,15]),{5:[1,128]},u(be,[2,18]),u(be,[2,19]),u(be,[2,21]),u(be,[2,22]),{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[1,129],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[1,130],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[1,131],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,132]},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[2,45],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,52:[1,133],53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,134]},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[2,43],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,51:[1,135],53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,136]},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[2,41],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,50:[1,137],53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:j,17:42,20:H,21:20,22:tt,25:Q,26:ht,27:24,28:25,29:26,30:27,31:28,32:K,33:xt,34:at,36:ut,38:vt,39:Zt,40:[1,138],41:Gt,42:kt,43:It,45:wt,47:mt,49:X,53:ot,58:z,59:yt,60:Y,61:bt,69:Ct,79:A},{17:139,69:Ct},{17:140,69:Ct},{55:141,78:De},{55:142,78:De},{55:143,78:De},{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]},u(be,[2,17]),u(be,[2,33]),u(be,[2,34]),u(be,[2,35]),u(be,[2,36]),{19:[1,148]},u(be,[2,37]),{19:[1,149]},u(be,[2,38]),{19:[1,150]},u(be,[2,39]),{55:151,78:De},{55:152,78:De},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Ct},u(me,[2,11]),u(be,[2,12]),u(be,[2,14]),u(xe,w,{8:108,44:154}),u(pe,w,{8:110,46:155}),u(_e,w,{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(ne,Qt){if(!Qt.recoverable){var oe=new Error(ne);throw oe.hash=Qt,oe}this.trace(ne)},parse:function(ne){var Qt=this,oe=[0],Et=[],te=[null],st=[],ft=this.table,dt="",Mt=0,de=0,Le=0,en=2,qe=1,sn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Te={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Te.yy[Oe]=this.yy[Oe]);Fe.setInput(ne,Te.yy),Te.yy.lexer=Fe,Te.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Be=Fe.yylloc;st.push(Be);var ge=Fe.options&&Fe.options.ranges;function re(){var Ee;return typeof(Ee=Et.pop()||Fe.lex()||qe)!="number"&&(Ee instanceof Array&&(Ee=(Et=Ee).pop()),Ee=Qt.symbols_[Ee]||Ee),Ee}typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,ln,Ye,dn,Jn,Dn,Tn,Me,Ke={};;){if(ln=oe[oe.length-1],this.defaultActions[ln]?Ye=this.defaultActions[ln]:(An==null&&(An=re(
46)),Ye=ft[ln]&&ft[ln][An]),Ye===void 0||!Ye.length||!Ye[0]){var Xe="";for(Jn in Me=[],ft[ln])this.terminals_[Jn]&&Jn>en&&Me.push("'"+this.terminals_[Jn]+"'");Xe=Fe.showPosition?"Parse error on line "+(Mt+1)+`:
47`+Fe.showPosition()+`
48Expecting `+Me.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(An==qe?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Xe,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Be,expected:Me})}if(Ye[0]instanceof Array&&Ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ln+", token: "+An);switch(Ye[0]){case 1:oe.push(An),te.push(Fe.yytext),st.push(Fe.yylloc),oe.push(Ye[1]),An=null,Ie?(An=Ie,Ie=null):(de=Fe.yyleng,dt=Fe.yytext,Mt=Fe.yylineno,Be=Fe.yylloc,Le>0);break;case 2:if(Dn=this.productions_[Ye[1]][1],Ke.$=te[te.length-Dn],Ke._$={first_line:st[st.length-(Dn||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(Dn||1)].first_column,last_column:st[st.length-1].last_column},ge&&(Ke._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(dn=this.performAction.apply(Ke,[dt,de,Mt,Te.yy,Ye[1],te,st].concat(sn)))!==void 0)return dn;Dn&&(oe=oe.slice(0,-1*Dn*2),te=te.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),oe.push(this.productions_[Ye[1]][0]),te.push(Ke.$),st.push(Ke._$),Tn=ft[oe[oe.length-2]][oe[oe.length-1]],oe.push(Tn);break;case 3:return!0}}return!0}},fe={EOF:1,parseError:function(ne,Qt){if(!this.yy.parser)throw new Error(ne);this.yy.parser.parseError(ne,Qt)},setInput:function(ne,Qt){return this.yy=Qt||this.yy||{},this._input=ne,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 ne=this._input[0];return this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne,ne.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),ne},unput:function(ne){var Qt=ne.length,oe=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;var Et=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),oe.length-1&&(this.yylineno-=oe.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-oe.length].length-oe[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-Qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
49`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),Qt=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
50`+Qt+"^"},test_match:function(ne,Qt){var oe,Et,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),(Et=ne[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,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(ne[0].length),this.matched+=ne[0],oe=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var st in te)this[st]=te[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var ne,Qt,oe,Et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),st=0;st<te.length;st++)if((oe=this._input.match(this.rules[te[st]]))&&(!Qt||oe[0].length>Qt[0].length)){if(Qt=oe,Et=st,this.options.backtrack_lexer){if((ne=this.test_match(oe,te[st]))!==!1)return ne;if(this._backtrack){Qt=!1;continue}return!1}if(!this.options.flex)break}return Qt?(ne=this.test_match(Qt,te[Et]))!==!1&&ne:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
51`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ne){this.conditionStack.push(ne)},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(ne){return(ne=this.conditionStack.length-1-Math.abs(ne||0))>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,Qt,oe,Et){switch(oe){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 Qt.yytext=Qt.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 Qt.yytext=Qt.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,;
51]+)*)/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 wn.lexer=fe,Qe.prototype=wn,wn.Parser=Qe,new Qe}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(1993).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},3584:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(xe,pe,_e,Ae){for(_e=_e||{},Ae=xe.length;Ae--;_e[xe[Ae]]=pe);return _e},_=[1,2],y=[1,3],E=[1,5],A=[1,7],w=[2,5],F=[1,15],O=[1,17],j=[1,19],H=[1,20],tt=[1,21],Q=[1,22],ht=[1,33],K=[1,23],xt=[1,24],at=[1,25],ut=[1,26],vt=[1,27],Zt=[1,30],Gt=[1,31],kt=[1,32],It=[1,35],wt=[1,36],mt=[1,37],X=[1,38],ot=[1,34],z=[1,41],yt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Y=[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],bt=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ct=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],$t={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(xe,pe,_e,Ae,De,me,wn){var fe=me.length-1;switch(De){case 4:return Ae.setRootDoc(me[fe]),me[fe];case 5:this.$=[];break;case 6:me[fe]!="nl"&&(me[fe-1].push(me[fe]),this.$=me[fe-1]);break;case 7:case 8:case 39:case 40:this.$=me[fe];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:me[fe],type:"default",description:""};break;case 11:this.$={stmt:"state",id:me[fe-1],type:"default",description:Ae.trimColon(me[fe])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:me[fe-2],type:"default",description:""},state2:{stmt:"state",id:me[fe],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:me[fe-3],type:"default",description:""},state2:{stmt:"state",id:me[fe-1],type:"default",description:""},description:me[fe].substr(1).trim()};break;case 17:this.$={stmt:"state",id:me[fe-3],type:"default",description:"",doc:me[fe-1]};break;case 18:var Qe=me[fe],ne=me[fe-2].trim();if(me[fe].match(":")){var Qt=me[fe].split(":");Qe=Qt[0],ne=[ne,Qt[1]]}this.$={stmt:"state",id:Qe,type:"default",description:ne};break;case 19:this.$={stmt:"state",id:me[fe-3],type:"default",description:me[fe-5],doc:me[fe-1]};break;case 20:this.$={stmt:"state",id:me[fe],type:"fork"};break;case 21:this.$={stmt:"state",id:me[fe],type:"join"};break;case 22:this.$={stmt:"state",id:me[fe],type:"choice"};break;case 23:this.$={stmt:"state",id:Ae.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:me[fe-1].trim(),note:{position:me[fe-2].trim(),text:me[fe].trim()}};break;case 28:this.$=me[fe].trim(),Ae.setAccTitle(this.$);break;case 29:case 30:this.$=me[fe].trim(),Ae.setAccDescription(this.$);break;case 33:Ae.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Ae.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Ae.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Ae.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Ae.parseDirective("%%{","open_directive");break;case 44:Ae.parseDirective(me[fe],"type_directive");break;case 45:me[fe]=me[fe].trim().replace(/'/g,'"'),Ae.parseDirective(me[fe],"arg_directive");break;case 46:Ae.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:y,6:4,7:E,36:6,50:A},{1:[3]},{3:8,4:_,5:y,6:4,7:E,36:6,50:A},{3:9,4:_,5:y,6:4,7:E,36:6,50:A},{3:10,4:_,5:y,6:4,7:E,36:6,50:A},u([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],w,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:O,6:28,9:14,10:16,11:18,14:j,15:H,17:tt,20:Q,22:ht,23:K,24:xt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:kt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},{38:39,39:[1,40],53:z},u([39,53],[2,44]),u(yt,[2,6]),{6:28,10:42,11:18,14:j,15:H,17:tt,20:Q,22:ht,23:K,24:xt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:kt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[2,8]),u(yt,[2,9]),u(yt,[2,10],{12:[1,43],13:[1,44]}),u(yt,[2,14]),{16:[1,45]},u(yt,[2,16],{18:[1,46]}),{21:[1,47]},u(yt,[2,20]),u(yt,[2,21]),u(yt,[2,22]),u(yt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},u(yt,[2,26]),u(yt,[2,27]),{32:[1,52]},{34:[1,53]},u(yt,[2,30]),u(Y,[2,39]),u(Y,[2,40]),u(yt,[2,33]),u(yt,[2,34]),u(yt,[2,35]),u(yt,[2,36]),u(bt,[2,31]),{40:54,52:[1,55]},u(bt,[2,46]),u(yt,[2,7]),u(yt,[2,11]),{11:56,22:ht,47:ot},u(yt,[2,15]),u(Ct,w,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]}
51,u(yt,[2,28]),u(yt,[2,29]),{38:61,53:z},{53:[2,45]},u(yt,[2,12],{12:[1,62]}),{4:F,5:O,6:28,9:14,10:16,11:18,14:j,15:H,17:tt,19:[1,63],20:Q,22:ht,23:K,24:xt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:kt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},u(bt,[2,32]),u(yt,[2,13]),u(yt,[2,17]),u(Ct,w,{8:67}),u(yt,[2,24]),u(yt,[2,25]),{4:F,5:O,6:28,9:14,10:16,11:18,14:j,15:H,17:tt,19:[1,68],20:Q,22:ht,23:K,24:xt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:kt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[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(xe,pe){if(!pe.recoverable){var _e=new Error(xe);throw _e.hash=pe,_e}this.trace(xe)},parse:function(xe){var pe=this,_e=[0],Ae=[],De=[null],me=[],wn=this.table,fe="",Qe=0,ne=0,Qt=0,oe=2,Et=1,te=me.slice.call(arguments,1),st=Object.create(this.lexer),ft={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(ft.yy[dt]=this.yy[dt]);st.setInput(xe,ft.yy),ft.yy.lexer=st,ft.yy.parser=this,st.yylloc===void 0&&(st.yylloc={});var Mt=st.yylloc;me.push(Mt);var de=st.options&&st.options.ranges;function Le(){var ln;return typeof(ln=Ae.pop()||st.lex()||Et)!="number"&&(ln instanceof Array&&(ln=(Ae=ln).pop()),ln=pe.symbols_[ln]||ln),ln}typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var en,qe,sn,Fe,Te,Oe,Be,ge,re,An={};;){if(sn=_e[_e.length-1],this.defaultActions[sn]?Fe=this.defaultActions[sn]:(en==null&&(en=Le()),Fe=wn[sn]&&wn[sn][en]),Fe===void 0||!Fe.length||!Fe[0]){var Ie="";for(Oe in re=[],wn[sn])this.terminals_[Oe]&&Oe>oe&&re.push("'"+this.terminals_[Oe]+"'");Ie=st.showPosition?"Parse error on line "+(Qe+1)+`:
52`+st.showPosition()+`
53Expecting `+re.join(", ")+", got '"+(this.terminals_[en]||en)+"'":"Parse error on line "+(Qe+1)+": Unexpected "+(en==Et?"end of input":"'"+(this.terminals_[en]||en)+"'"),this.parseError(Ie,{text:st.match,token:this.terminals_[en]||en,line:st.yylineno,loc:Mt,expected:re})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sn+", token: "+en);switch(Fe[0]){case 1:_e.push(en),De.push(st.yytext),me.push(st.yylloc),_e.push(Fe[1]),en=null,qe?(en=qe,qe=null):(ne=st.yyleng,fe=st.yytext,Qe=st.yylineno,Mt=st.yylloc,Qt>0);break;case 2:if(Be=this.productions_[Fe[1]][1],An.$=De[De.length-Be],An._$={first_line:me[me.length-(Be||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Be||1)].first_column,last_column:me[me.length-1].last_column},de&&(An._$.range=[me[me.length-(Be||1)].range[0],me[me.length-1].range[1]]),(Te=this.performAction.apply(An,[fe,ne,Qe,ft.yy,Fe[1],De,me].concat(te)))!==void 0)return Te;Be&&(_e=_e.slice(0,-1*Be*2),De=De.slice(0,-1*Be),me=me.slice(0,-1*Be)),_e.push(this.productions_[Fe[1]][0]),De.push(An.$),me.push(An._$),ge=wn[_e[_e.length-2]][_e[_e.length-1]],_e.push(ge);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function(xe,pe){if(!this.yy.parser)throw new Error(xe);this.yy.parser.parseError(xe,pe)},setInput:function(xe,pe){return this.yy=pe||this.yy||{},this._input=xe,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 xe=this._input[0];return this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe,xe.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),xe},unput:function(xe){var pe=xe.length,_e=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var Ae=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),_e.length-1&&(this.yylineno-=_e.length-1);var De=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:_e?(_e.length===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-_e.length].length-_e[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[De[0],De[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).
54`+this.showPosition(),{text:"",token:null,line:this.yylineno})}
54,less:function(xe){this.unput(this.match.slice(xe))},pastInput:function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xe=this.pastInput(),pe=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+`
55`+pe+"^"},test_match:function(xe,pe){var _e,Ae,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),(Ae=xe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ae?Ae[Ae.length-1].length-Ae[Ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,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(xe[0].length),this.matched+=xe[0],_e=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_e)return _e;if(this._backtrack){for(var me in De)this[me]=De[me];return!1}return!1},next:function(){if(this.done)return this.EOF;var xe,pe,_e,Ae;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),me=0;me<De.length;me++)if((_e=this._input.match(this.rules[De[me]]))&&(!pe||_e[0].length>pe[0].length)){if(pe=_e,Ae=me,this.options.backtrack_lexer){if((xe=this.test_match(_e,De[me]))!==!1)return xe;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(xe=this.test_match(pe,De[Ae]))!==!1&&xe:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
56`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(xe){this.conditionStack.push(xe)},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(xe){return(xe=this.conditionStack.length-1-Math.abs(xe||0))>=0?this.conditionStack[xe]:"INITIAL"},pushState:function(xe){this.begin(xe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xe,pe,_e,Ae){switch(_e){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(),pe.yytext=pe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),pe.yytext=pe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),pe.yytext=pe.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(),pe.yytext=pe.yytext.substr(2).trim(),29;case 57:return this.popState(),pe.yytext=pe.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 pe.yytext=pe.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>>
56)/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 We(){this.yy={}}return $t.lexer=be,We.prototype=$t,$t.Parser=We,new We}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(3069).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},9763:(M,R,f)=>{M=f.nmd(M);var b=function(){var u=function(at,ut,vt,Zt){for(vt=vt||{},Zt=at.length;Zt--;vt[at[Zt]]=ut);return vt},_=[1,2],y=[1,5],E=[6,9,11,17,18,20,22,23,24,26],A=[1,15],w=[1,16],F=[1,17],O=[1,18],j=[1,19],H=[1,20],tt=[1,24],Q=[4,6,9,11,17,18,20,22,23,24,26],ht={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(at,ut,vt,Zt,Gt,kt,It){var wt=kt.length-1;switch(Gt){case 1:return kt[wt-1];case 3:case 7:case 8:this.$=[];break;case 4:kt[wt-1].push(kt[wt]),this.$=kt[wt-1];break;case 5:case 6:this.$=kt[wt];break;case 11:Zt.setDiagramTitle(kt[wt].substr(6)),this.$=kt[wt].substr(6);break;case 12:this.$=kt[wt].trim(),Zt.setAccTitle(this.$);break;case 13:case 14:this.$=kt[wt].trim(),Zt.setAccDescription(this.$);break;case 15:Zt.addSection(kt[wt].substr(8)),this.$=kt[wt].substr(8);break;case 16:Zt.addTask(kt[wt-1],kt[wt]),this.$="task";break;case 18:Zt.parseDirective("%%{","open_directive");break;case 19:Zt.parseDirective(kt[wt],"type_directive");break;case 20:kt[wt]=kt[wt].trim().replace(/'/g,'"'),Zt.parseDirective(kt[wt],"arg_directive");break;case 21:Zt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,26:y},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,26:y},{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:A,18:w,20:F,22:O,23:j,24:H,26:y},{1:[2,2]},{14:22,15:[1,23],29:tt},u([15,29],[2,19]),u(E,[2,8],{1:[2,1]}),u(E,[2,4]),{7:21,10:25,12:4,17:A,18:w,20:F,22:O,23:j,24:H,26:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,11]),{19:[1,26]},{21:[1,27]},u(E,[2,14]),u(E,[2,15]),{25:[1,28]},u(E,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},u(E,[2,5]),u(E,[2,12]),u(E,[2,13]),u(E,[2,16]),u(Q,[2,9]),{14:32,29:tt},{29:[2,20]},{11:[1,33]},u(Q,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,ut){if(!ut.recoverable){var vt=new Error(at);throw vt.hash=ut,vt}this.trace(at)},parse:function(at){var ut=this,vt=[0],Zt=[],Gt=[null],kt=[],It=this.table,wt="",mt=0,X=0,ot=0,z=2,yt=1,Y=kt.slice.call(arguments,1
56),bt=Object.create(this.lexer),Ct={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(Ct.yy[$t]=this.yy[$t]);bt.setInput(at,Ct.yy),Ct.yy.lexer=bt,Ct.yy.parser=this,bt.yylloc===void 0&&(bt.yylloc={});var be=bt.yylloc;kt.push(be);var We=bt.options&&bt.options.ranges;function xe(){var Et;return typeof(Et=Zt.pop()||bt.lex()||yt)!="number"&&(Et instanceof Array&&(Et=(Zt=Et).pop()),Et=ut.symbols_[Et]||Et),Et}typeof Ct.yy.parseError=="function"?this.parseError=Ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pe,_e,Ae,De,me,wn,fe,Qe,ne,Qt={};;){if(Ae=vt[vt.length-1],this.defaultActions[Ae]?De=this.defaultActions[Ae]:(pe==null&&(pe=xe()),De=It[Ae]&&It[Ae][pe]),De===void 0||!De.length||!De[0]){var oe="";for(wn in ne=[],It[Ae])this.terminals_[wn]&&wn>z&&ne.push("'"+this.terminals_[wn]+"'");oe=bt.showPosition?"Parse error on line "+(mt+1)+`:
57`+bt.showPosition()+`
58Expecting `+ne.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+(mt+1)+": Unexpected "+(pe==yt?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(oe,{text:bt.match,token:this.terminals_[pe]||pe,line:bt.yylineno,loc:be,expected:ne})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+pe);switch(De[0]){case 1:vt.push(pe),Gt.push(bt.yytext),kt.push(bt.yylloc),vt.push(De[1]),pe=null,_e?(pe=_e,_e=null):(X=bt.yyleng,wt=bt.yytext,mt=bt.yylineno,be=bt.yylloc,ot>0);break;case 2:if(fe=this.productions_[De[1]][1],Qt.$=Gt[Gt.length-fe],Qt._$={first_line:kt[kt.length-(fe||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(fe||1)].first_column,last_column:kt[kt.length-1].last_column},We&&(Qt._$.range=[kt[kt.length-(fe||1)].range[0],kt[kt.length-1].range[1]]),(me=this.performAction.apply(Qt,[wt,X,mt,Ct.yy,De[1],Gt,kt].concat(Y)))!==void 0)return me;fe&&(vt=vt.slice(0,-1*fe*2),Gt=Gt.slice(0,-1*fe),kt=kt.slice(0,-1*fe)),vt.push(this.productions_[De[1]][0]),Gt.push(Qt.$),kt.push(Qt._$),Qe=It[vt[vt.length-2]][vt[vt.length-1]],vt.push(Qe);break;case 3:return!0}}return!0}},K={EOF:1,parseError:function(at,ut){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,ut)},setInput:function(at,ut){return this.yy=ut||this.yy||{},this._input=at,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),at},unput:function(at){var ut=at.length,vt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ut),this.offset-=ut;var Zt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),vt.length-1&&(this.yylineno-=vt.length-1);var Gt=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:vt?(vt.length===Zt.length?this.yylloc.first_column:0)+Zt[Zt.length-vt.length].length-vt[0].length:this.yylloc.first_column-ut},this.options.ranges&&(this.yylloc.range=[Gt[0],Gt[0]+this.yyleng-ut]),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).
59`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),ut=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
60`+ut+"^"},test_match:function(at,ut){var vt,Zt,Gt;if(this.options.backtrack_lexer&&(Gt={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&&(Gt.yylloc.range=this.yylloc.range.slice(0))),(Zt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Zt?Zt[Zt.length-1].length-Zt[Zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(at[0].length),this.matched+=at[0],vt=this.performAction.call(this,this.yy,this,ut,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),vt)return vt;if(this._backtrack){for(var kt in Gt)this[kt]=Gt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,ut,vt,Zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Gt=this._currentRules(),kt=0;kt<Gt.length;kt++)if((vt=this._input.match(this.rules[Gt[kt]]))&&(!ut||vt[0].length>ut[0].length)){if(ut=vt,Zt=kt,this.options.backtrack_lexer){if((at=this.test_match(vt,Gt[kt]))!==!1)return at;if(this._backtrack){ut=!1;continue}return!1}if(!this.options.flex)break}return ut?(at=this.test_match(ut,Gt[Zt]))!==!1&&at:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
61`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(at){this.conditionStack.push(at)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,ut,vt,Zt){switch(vt){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;
61case 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 xt(){this.yy={}}return ht.lexer=K,xt.prototype=ht,ht.Parser=xt,new xt}();R.parser=b,R.Parser=b.Parser,R.parse=function(){return b.parse.apply(b,arguments)},R.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=f(9143).readFileSync(f(6470).normalize(u[1]),"utf8");return R.parser.parse(_)},f.c[f.s]===M&&R.main(process.argv.slice(1))},7967:(M,R)=>{R.N=void 0;var f=/^([^\w]*)(javascript|data|vbscript)/im,b=/&#(\w+)(^\w|;)?/g,u=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,_=/^([^:]+):/gm,y=[".","/"];R.N=function(E){var A,w=(A=E||"",A.replace(b,function(j,H){return String.fromCharCode(H)})).replace(u,"").trim();if(!w)return"about:blank";if(function(j){return y.indexOf(j[0])>-1}(w))return w;var F=w.match(_);if(!F)return w;var O=F[0];return f.test(O)?"about:blank":w}},3841:M=>{M.exports=function(R,f){return R.intersect(f)}},6187:(M,R,f)=>{f.d(R,{Z:()=>ps});var b=f(1941),u=f.n(b),_={debug:1,info:2,warn:3,error:4,fatal:5},y={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},E=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(i)&&(i=i.toLowerCase(),_[i]!==void 0&&(i=_[i])),y.trace=function(){},y.debug=function(){},y.info=function(){},y.warn=function(){},y.error=function(){},y.fatal=function(){},i<=_.fatal&&(y.fatal=console.error?console.error.bind(console,A("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",A("FATAL"))),i<=_.error&&(y.error=console.error?console.error.bind(console,A("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",A("ERROR"))),i<=_.warn&&(y.warn=console.warn?console.warn.bind(console,A("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",A("WARN"))),i<=_.info&&(y.info=console.info?console.info.bind(console,A("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",A("INFO"))),i<=_.debug&&(y.debug=console.debug?console.debug.bind(console,A("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",A("DEBUG")))},A=function(i){var n=u()().format("ss.SSS");return"%c".concat(n," : ").concat(i," : ")},w=f(7543),F="comm",O="rule",j="decl",H=Math.abs,tt=String.fromCharCode;function Q(i){return i.trim()}function ht(i,n,l){return i.replace(n,l)}function K(i,n){return i.indexOf(n)}function xt(i,n){return 0|i.charCodeAt(n)}function at(i,n,l){return i.slice(n,l)}function ut(i){return i.length}function vt(i){return i.length}function Zt(i,n){return n.push(i),i}function Gt(i,n){for(var l="",p=vt(i),g=0;g<p;g++)l+=n(i[g],g,i,n)||"";return l}function kt(i,n,l,p){switch(i.type){case"@import":case j:return i.return=i.return||i.value;case F:return"";case"@keyframes":return i.return=i.value+"{"+Gt(i.children,p)+"}";case O:i.value=i.props.join(",")}return ut(l=Gt(i.children,p))?i.return=i.value+"{"+l+"}":""}var It=1,wt=1,mt=0,X=0,ot=0,z="";function yt(i,n,l,p,g,T,k){return{value:i,root:n,parent:l,type:p,props:g,children:T,line:It,column:wt,length:k,return:""}}function Y(){return ot=X>0?xt(z,--X):0,wt--,ot===10&&(wt=1,It--),ot}function bt(){return ot=X<mt?xt(z,X++):0,wt++,ot===10&&(wt=1,It++),ot}function Ct(){return xt(z,X)}function $t(){return X}function be(i,n){return at(z,i,n)}function We(i){switch(i){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 xe(i){return Q(be(X-1,Ae(i===91?i+2:i===40?i+1:i)))}function pe(i){for(;(ot=Ct())&&ot<33;)bt();return We(i)>2||We(ot)>3?"":" "}function _e(i,n){for(;--n&&bt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return be(i,$t()+(n<6&&Ct()==32&&bt()==32))}function Ae(i){for(;bt();)switch(ot){case i:return X;case 34:case 39:i!==34&&i!==39&&Ae(ot);break;case 40:i===41&&Ae(i);break;case 92:bt()}return X}function De(i,n){for(;bt()&&i+ot!==57&&(i+ot!==84||Ct()!==47););return"/*"+be(n,X-1)+"*"+tt(i===47?i:bt())}function me(i){for(;!We(Ct());)bt();return be(i,X)}function wn(i){return function(n){return z="",n}(fe("",null,null,null,[""],i=function(n){return It=wt=1,mt=ut(z=n),X=0,[]}(i),0,[0],i))}
61function fe(i,n,l,p,g,T,k,S,N){for(var B=0,q=0,V=k,et=0,J=0,Tt=0,St=1,Lt=1,Nt=1,Ot=0,Ft="",_t=g,ee=T,ke=p,ue=Ft;Lt;)switch(Tt=Ot,Ot=bt()){case 40:if(Tt!=108&&ue.charCodeAt(V-1)==58){K(ue+=ht(xe(Ot),"&","&\f"),"&\f")!=-1&&(Nt=-1);break}case 34:case 39:case 91:ue+=xe(Ot);break;case 9:case 10:case 13:case 32:ue+=pe(Tt);break;case 92:ue+=_e($t()-1,7);continue;case 47:switch(Ct()){case 42:case 47:Zt(ne(De(bt(),$t()),n,l),N);break;default:ue+="/"}break;case 123*St:S[B++]=ut(ue)*Nt;case 125*St:case 59:case 0:switch(Ot){case 0:case 125:Lt=0;case 59+q:J>0&&ut(ue)-V&&Zt(J>32?Qt(ue+";",p,l,V-1):Qt(ht(ue," ","")+";",p,l,V-2),N);break;case 59:ue+=";";default:if(Zt(ke=Qe(ue,n,l,B,q,g,S,Ft,_t=[],ee=[],V),T),Ot===123)if(q===0)fe(ue,n,ke,ke,_t,T,V,S,ee);else switch(et){case 100:case 109:case 115:fe(i,ke,ke,p&&Zt(Qe(i,ke,ke,0,0,g,S,Ft,g,_t=[],V),ee),g,ee,V,S,p?_t:ee);break;default:fe(ue,ke,ke,ke,[""],ee,0,S,ee)}}B=q=J=0,St=Nt=1,Ft=ue="",V=k;break;case 58:V=1+ut(ue),J=Tt;default:if(St<1){if(Ot==123)--St;else if(Ot==125&&St++==0&&Y()==125)continue}switch(ue+=tt(Ot),Ot*St){case 38:Nt=q>0?1:(ue+="\f",-1);break;case 44:S[B++]=(ut(ue)-1)*Nt,Nt=1;break;case 64:Ct()===45&&(ue+=xe(bt())),et=Ct(),q=V=ut(Ft=ue+=me($t())),Ot++;break;case 45:Tt===45&&ut(ue)==2&&(St=0)}}return T}function Qe(i,n,l,p,g,T,k,S,N,B,q){for(var V=g-1,et=g===0?T:[""],J=vt(et),Tt=0,St=0,Lt=0;Tt<p;++Tt)for(var Nt=0,Ot=at(i,V+1,V=H(St=k[Tt])),Ft=i;Nt<J;++Nt)(Ft=Q(St>0?et[Nt]+" "+Ot:ht(Ot,/&\f/g,et[Nt])))&&(N[Lt++]=Ft);return yt(i,n,l,g===0?O:S,N,B,q)}function ne(i,n,l){return yt(i,n,l,F,tt(ot),at(i,2,-2),0)}function Qt(i,n,l,p){return yt(i,n,l,j,at(i,0,p),at(i,p+1,-1),p)}const oe="9.1.7";function Et(i){return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Et(i)}const te=function i(n,l,p){var g=Object.assign({depth:2,clobber:!1},p),T=g.depth,k=g.clobber;return Array.isArray(l)&&!Array.isArray(n)?(l.forEach(function(S){return i(n,S,p)}),n):Array.isArray(l)&&Array.isArray(n)?(l.forEach(function(S){n.indexOf(S)===-1&&n.push(S)}),n):n===void 0||T<=0?n!=null&&Et(n)==="object"&&Et(l)==="object"?Object.assign(n,l):l:(l!==void 0&&Et(n)==="object"&&Et(l)==="object"&&Object.keys(l).forEach(function(S){Et(l[S])!=="object"||n[S]!==void 0&&Et(n[S])!=="object"?(k||Et(n[S])!=="object"&&Et(l[S])!=="object")&&(n[S]=l[S]):(n[S]===void 0&&(n[S]=Array.isArray(l[S])?[]:{}),n[S]=i(n[S],l[S],{depth:T-1,clobber:k}))}),n)},st={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:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const n=i/255;return i>.03928?Math.pow((n+.055)/1.055,2.4):n/12.92},hue2rgb:(i,n,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<1/6?i+6*(n-i)*l:l<.5?n:l<2/3?i+(n-i)*(2/3-l)*6:i),hsl2rgb:({h:i,s:n,l},p)=>{if(!n)return 2.55*l;i/=360,n/=100;const g=(l/=100)<.5?l*(1+n):l+n-l*n,T=2*l-g;switch(p){case"r":return 255*st.hue2rgb(T,g,i+1/3);case"g":return 255*st.hue2rgb(T,g,i);case"b":return 255*st.hue2rgb(T,g,i-1/3)}},rgb2hsl:({r:i,g:n,b:l},p)=>{i/=255,n/=255,l/=255;const g=Math.max(i,n,l),T=Math.min(i,n,l),k=(g+T)/2;if(p==="l")return 100*k;if(g===T)return 0;const S=g-T;if(p==="s")return 100*(k>.5?S/(2-g-T):S/(g+T));switch(g){case i:return 60*((n-l)/S+(n<l?6:0));case n:return 60*((l-i)/S+2);case l:return 60*((i-n)/S+4);default:return-1}}},ft={channel:st,lang:{clamp:(i,n,l)=>n>l?Math.min(n,Math.max(l,i)):Math.min(l,Math.max(n,i)),round:i=>Math.round(1e10*i)/1e10},unit:{dec2hex:i=>{const n=Math.round(i).toString(16);return n.length>1?n:`0${n}`}}},dt={};for(let i=0;i<=255;i++)dt[i]=ft.unit.dec2hex(i);const Mt=new class{constructor(i,n){this.color=n,this.changed=!1,this.data=i,this.type=new class{constructor(){this.type=0}get(){return this.type}set(l){if(this.type&&this.type!==l)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=l}reset(){this.type=0}is(l){return this.type===l}}}set(i,n){return this.color=n,this.changed=!1,this.data=i,this.type.type=0,this}_ensureHSL(){const i=this.data,{h:n,s:l,l:p}=i;n===void 0&&(i.h=ft.channel.rgb2hsl(i,"h")),l===void 0&&(i.s=ft.channel.rgb2hsl(i,"s")),p===void 0&&(i.l=ft.channel.rgb2hsl(i,"l"))}_ensureRGB(){const i=this.data,{r:n,g:l,b:p}=i;n===void 0&&(i.r=ft.channel.hsl2rgb(i,"r")),l===void 0&&(i.g=ft.channel.hsl2rgb(i,"g")),p===void 0&&(i.b=ft.channel.hsl2rgb(i,"b"))}get r(){const i=this.data,n=i.r;return this.type.is(2)||n===void 0?(this._ensureHSL(),ft.channel.hsl2rgb(i,"r")):n}get g(){const i=this.data,n=i.g;return this.type.is(2)||n===void 0?(this._ensureHSL(),ft.channel.hsl2rgb(i,"g")):n}get b(){const i=this.data,n=i.b;return this.type.is(2)||n===void 0?(this._ensureHSL(),ft.channel.hsl2rgb(i,"b")):n}get h(){const i=this.data,n=i.h;return this.type.is(1)||n===void 0?(this._ensureRGB(),ft.channel.rgb2hsl(i,"h")):n}get s(){const i=this.data,n=i.s;return this.type.is(1)||n===void 0?(this._ensureRGB(),ft.channel.rgb2hsl(i,"s")):n}get l(){const i=this.data,n=i.l;return this.type.is(1)||n===void 0?(this._ensureRGB(),ft.channel.rgb2hsl(i,"l")):n}get a(){return this.data.a}set r(i){this.type.set(1),this.changed=!0,this.data.r=i}set g(i){this.type.set(1),this.changed=!0,this.data.g=i}set b(i){this.type.set(1),this.changed=!0,this.data.b=i}set h(i){this.type.set(2),this.changed=!0,this.data.h=i}set s(i){this.type.set(2),this.changed=!0,this.data.s=i}set l(i){this.type.set(2),this.changed=!0,this.data.l=i}set a(i){this.changed=!0,this.data.a=i}}({r:0,g:0,b:0,a:0},"transparent"),de={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const n=i.match(de.re);if(!n)return;const l=n[1],p=parseInt(l,16),g=l.length,T=g%4==0,k=g>4,S=k?1:17,N=k?8:4,B=T?0:-1,q=k?255:15;return Mt.set({r:(p>>N*(B+3)&q)*S,g:(p>>N*(B+2)&q)*S,b:(p>>N*(B+1)&q)*S,a:T?(p&q)*S/255:1},i)},stringify:i=>{const{r:n,g:l,b:p,a:g}=i;return g<1?`#${dt[Math.round(n)]}${dt[Math.round(l)]}${dt[Math.round(p)]}${dt[Math.round(255*g)]}`:`#${dt[Math.round(n)]}${dt[Math.round(l)]}${dt[Math.round(p)]}`}},Le=de,en={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:i=>{const n=i.match(en.hueRe);if(n){const[,l,p]=n;switch(p){case"grad":return ft.channel.clamp.h(.9*parseFloat(l));case"rad":return ft.channel.clamp.h(180*parseFloat(l)/Math.PI);case"turn":return ft.channel.clamp.h(360*parseFloat(l))}}return ft.channel.clamp.h(parseFloat(i))},parse:i=>
61{const n=i.charCodeAt(0);if(n!==104&&n!==72)return;const l=i.match(en.re);if(!l)return;const[,p,g,T,k,S]=l;return Mt.set({h:en._hue2deg(p),s:ft.channel.clamp.s(parseFloat(g)),l:ft.channel.clamp.l(parseFloat(T)),a:k?ft.channel.clamp.a(S?parseFloat(k)/100:parseFloat(k)):1},i)},stringify:i=>{const{h:n,s:l,l:p,a:g}=i;return g<1?`hsla(${ft.lang.round(n)}, ${ft.lang.round(l)}%, ${ft.lang.round(p)}%, ${g})`:`hsl(${ft.lang.round(n)}, ${ft.lang.round(l)}%, ${ft.lang.round(p)}%)`}},qe=en,sn={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:i=>{i=i.toLowerCase();const n=sn.colors[i];if(n)return Le.parse(n)},stringify:i=>{const n=Le.stringify(i);for(const l in sn.colors)if(sn.colors[l]===n)return l}},Fe=sn,Te={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:i=>{const n=i.charCodeAt(0);if(n!==114&&n!==82)return;const l=i.match(Te.re);if(!l)return;const[,p,g,T,k,S,N,B,q]=l;return Mt.set({r:ft.channel.clamp.r(g?2.55*parseFloat(p):parseFloat(p)),g:ft.channel.clamp.g(k?2.55*parseFloat(T):parseFloat(T)),b:ft.channel.clamp.b(N?2.55*parseFloat(S):parseFloat(S)),a:B?ft.channel.clamp.a(q?parseFloat(B)/100:parseFloat(B)):1},i)},stringify:i=>{const{r:n,g:l,b:p,a:g}=i;return g<1?`rgba(${ft.lang.round(n)}, ${ft.lang.round(l)}, ${ft.lang.round(p)}, ${ft.lang.round(g)})`:`rgb(${ft.lang.round(n)}, ${ft.lang.round(l)}, ${ft.lang.round(p)})`}},Oe=Te,Be={format:{keyword:Fe,hex:Le,rgb:Oe,rgba:Oe,hsl:qe,hsla:qe},parse:i=>
61{if(typeof i!="string")return i;const n=Le.parse(i)||Oe.parse(i)||qe.parse(i)||Fe.parse(i);if(n)return n;throw new Error(`Unsupported color format: "${i}"`)},stringify:i=>!i.changed&&i.color?i.color:i.type.is(2)||i.data.r===void 0?qe.stringify(i):i.a<1||!Number.isInteger(i.r)||!Number.isInteger(i.g)||!Number.isInteger(i.b)?Oe.stringify(i):Le.stringify(i)},ge=(i,n)=>{const l=Be.parse(i);for(const p in n)l[p]=ft.channel.clamp[p](n[p]);return Be.stringify(l)},re=(i,n)=>{const l=Be.parse(i),p={};for(const g in n)n[g]&&(p[g]=l[g]+n[g]);return ge(i,p)},An=(i,n,l=0,p=1)=>{if(typeof i!="number")return ge(i,{a:n});const g=Mt.set({r:ft.channel.clamp.r(i),g:ft.channel.clamp.g(n),b:ft.channel.clamp.b(l),a:ft.channel.clamp.a(p)});return Be.stringify(g)},Ie=(i,n=100)=>{const l=Be.parse(i);return l.r=255-l.r,l.g=255-l.g,l.b=255-l.b,((p,g,T=50)=>{const{r:k,g:S,b:N,a:B}=Be.parse(p),{r:q,g:V,b:et,a:J}=Be.parse(g),Tt=T/100,St=2*Tt-1,Lt=B-J,Nt=((St*Lt==-1?St:(St+Lt)/(1+St*Lt))+1)/2,Ot=1-Nt;return An(k*Nt+q*Ot,S*Nt+V*Ot,N*Nt+et*Ot,B*Tt+J*(1-Tt))})(l,i,n)},ln=(i,n,l)=>{const p=Be.parse(i),g=p[n],T=ft.channel.clamp[n](g+l);return g!==T&&(p[n]=T),Be.stringify(p)},Ye=(i,n)=>ln(i,"l",-n),dn=(i,n)=>ln(i,"l",n);var Jn=function(i,n){return re(i,n?{s:-40,l:10}:{s:-40,l:-10})};function Dn(i){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dn(i)}function Tn(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}var Me=function(){function i(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),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 n,l;return n=i,l=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Jn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Jn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ie(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ie(this.tertiaryColor),this.lineColor=this.lineColor||Ie(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?Ye(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||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ie(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||dn(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.labelBackgroun
61dColor=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||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(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||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}
61),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(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?Ye(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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=dn(this.git0,25),this.git1=dn(this.git1,25),this.git2=dn(this.git2,25),this.git3=dn(this.git3,25),this.git4=dn(this.git4,25),this.git5=dn(this.git5,25),this.git6=dn(this.git6,25),this.git7=dn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(p){var g=this;if(Dn(p)==="object"){var T=Object.keys(p);T.forEach(function(k){g[k]=p[k]}),this.updateColors(),T.forEach(function(k){g[k]=p[k]})}else this.updateColors()}}],l&&Tn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Ke(i){return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ke(i)}function Xe(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}var Ee=function(){function i(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=dn(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ie(this.background),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=dn(Ie("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=An(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackgroun
61d="#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=Ye("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=An(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=An(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 n,l;return n=i,l=[{key:"updateColors",value:function(){this.secondBkg=dn(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=dn(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=dn(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(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.requirementBackgroun
61d=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?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=dn(this.secondaryColor,20),this.git1=dn(this.pie2||this.secondaryColor,20),this.git2=dn(this.pie3||this.tertiaryColor,20),this.git3=dn(this.pie4||re(this.primaryColor,{h:-30}),20),this.git4=dn(this.pie5||re(this.primaryColor,{h:-60}),20),this.git5=dn(this.pie6||re(this.primaryColor,{h:-90}),10),this.git6=dn(this.pie7||re(this.primaryColor,{h:60}),10),this.git7=dn(this.pie8||re(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(p){var g=this;if(Ke(p)==="object"){var T=Object.keys(p);T.forEach(function(k){g[k]=p[k]}),this.updateColors(),T.forEach(function(k){g[k]=p[k]})}else this.updateColors()}}],l&&Xe(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function mn(i){return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mn(i)}function At(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}var vr=function(){function i(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=re(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(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=An(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 n,l;return n=i,l=[{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.edgeLabelBackgroun
vendor: 2,097 bytes, line 61
61d=this.labelBackground,this.actorBorder=dn(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||re(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-40}
61),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||re(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||re(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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=dn(this.git0,25),this.git1=dn(this.git1,25),this.git2=dn(this.git2,25),this.git3=dn(this.git3,25),this.git4=dn(this.git4,25),this.git5=dn(this.git5,25),this.git6=dn(this.git6,25),this.git7=dn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ye(Ie(this.git0),25),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ie(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ie(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(p){var g=this;if(mn(p)==="object"){var T=Object.keys(p);T.forEach(function(k){g[k]=p[k]}),this.updateColors(),T.forEach(function(k){g[k]=p[k]})}else this.updateColors()}}],l&&At(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Yt(i){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yt(i)}function Un(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}var Rn=function(){function i(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),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=dn("#cde498",10),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.primaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackgroun
61d="#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 n,l;return n=i,l=[{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=Ye(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(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||re(this.primaryColor,{l:-30}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}
61),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||re(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||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=dn(this.git0,25),this.git1=dn(this.git1,25),this.git2=dn(this.git2,25),this.git3=dn(this.git3,25),this.git4=dn(this.git4,25),this.git5=dn(this.git5,25),this.git6=dn(this.git6,25),this.git7=dn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(p){var g=this;if(Yt(p)==="object"){var T=Object.keys(p);T.forEach(function(k){g[k]=p[k]}),this.updateColors(),T.forEach(function(k){g[k]=p[k]})}else this.updateColors()}}],l&&Un(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Vn(i){return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vn(i)}function Mn(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}var Hn=function(){function i(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=dn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(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.edgeLabelBackgroun
61d="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 n,l;return n=i,l=[{key:"updateColors",value:function(){this.secondBkg=dn(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=dn(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=dn(this.contrast,30),this.sectionBkgColor2=dn(this.contrast,30),this.taskBorderColor=Ye(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=dn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ye(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=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(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.requirementBackgroun
61d=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=Ye(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||re(this.primaryColor,{h:-30}),this.git4=this.pie5||re(this.primaryColor,{h:-60}),this.git5=this.pie6||re(this.primaryColor,{h:-90}),this.git6=this.pie7||re(this.primaryColor,{h:60}),this.git7=this.pie8||re(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(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.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(p){var g=this;if(Vn(p)==="object"){var T=Object.keys(p);T.forEach(function(k){g[k]=p[k]}),this.updateColors(),T.forEach(function(k){g[k]=p[k]})}else this.updateColors()}}],l&&Mn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const In={base:{getThemeVariables:function(i){var n=new Me;return n.calculate(i),n}},dark:{getThemeVariables:function(i){var n=new Ee;return n.calculate(i),n}},default:{getThemeVariables:function(i){var n=new vr;return n.calculate(i),n}},forest:{getThemeVariables:function(i){var n=new Rn;return n.calculate(i),n}},neutral:{getThemeVariables:function(i){var n=new Hn;return n.calculate(i),n}}};function En(i){return function(n){if(Array.isArray(n))return Fn(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return Fn(n,l);var p=Object.prototype.toString.call(n).slice(8,-1);return p==="Object"&&n.constructor&&(p=n.constructor.name),p==="Map"||p==="Set"?Array.from(n):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Fn(n,l):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fn(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}function Pn(i){return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pn(i)}var jn={theme:"default",themeVariables:In.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,dividerMargin:10,padding:5,textHeight:10,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"}};jn.class.arrowMarkerAbsolute=jn.arrowMarkerAbsolute,jn.gitGraph.arrowMarkerAbsolute=jn.arrowMarkerAbsolute;var fa=function i(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(n).reduce(function(p,g){return Array.isArray(n[g])?p:Pn(n[g])==="object"&&n[g]!==null?[].concat(En(p),[l+g],En(i(n[g],""))):[].concat(En(p),[l+g])},[])}(jn,"");const Dr=jn;function Tr(i){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tr(i)}var Sn,oi=Object.freeze(Dr),Nn=te({},oi),_r=[],Cr=te({},oi),yr=function(i,n){for(var l=te({},i),p={},g=0;g<n.length;g++){var T=n[g];Ar(T),p=te(p,T)}if(l=te(l,p),p.theme&&In[p.theme]){var k=te({},Sn),S=te(k.themeVariables||{},p.themeVariables);l.themeVariables=In[l.theme].getThemeVariables(S)}return Cr=l,l},qr=function(){return te({},Nn)},Dt=function(){return te({},Cr)},Ar=function i(n){Object.keys(Nn.secure).forEach(function(l){n[Nn.secure[l]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Nn.secure[l]),n[Nn.secure[l]]),delete n[Nn.secure[l]])}
62),Object.keys(n).forEach(function(l){l.indexOf("__")===0&&delete n[l]}),Object.keys(n).forEach(function(l){typeof n[l]=="string"&&(n[l].indexOf("<")>-1||n[l].indexOf(">")>-1||n[l].indexOf("url(data:")>-1)&&delete n[l],Tr(n[l])==="object"&&i(n[l])})},Nr=function(i){i.fontFamily&&(i.themeVariables&&i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),_r.push(i),yr(Nn,_r)},Gn=function(){yr(Nn,_r=[])},Zr=f(7856),Ur=f.n(Zr),Ir=function(i){var n=i.replace(/\\u[\dA-F]{4}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\u/g,""),16))});return n=(n=(n=n.replace(/\\x([0-9a-f]{2})/gi,function(l,p){return String.fromCharCode(parseInt(p,16))})).replace(/\\[\d\d\d]{3}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\/g,""),8))})},Qr=function(i){for(var n="",l=0;l>=0;){if(!((l=i.indexOf("<script"))>=0)){n+=i,l=-1;break}n+=i.substr(0,l),(l=(i=i.substr(l+1)).indexOf("<\/script>"))>=0&&(l+=9,i=i.substr(l))}var p=Ir(n);return(p=(p=(p=(p=p.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},ka=function(i,n){var l=i,p=!0;if(!n.flowchart||n.flowchart.htmlLabels!==!1&&n.flowchart.htmlLabels!=="false"||(p=!1),p){var g=n.securityLevel;g==="antiscript"||g==="strict"?l=Qr(l):g!=="loose"&&(l=(l=(l=Ni(l)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),l=na(l))}return l},cr=function(i,n){return i&&(n.dompurifyConfig?Ur().sanitize(ka(i,n),n.dompurifyConfig):Ur().sanitize(ka(i,n)))},ea=/<br\s*\/?>/gi,na=function(i){return i.replace(/#br#/g,"<br/>")},Ni=function(i){return i.replace(ea,"#br#")},rn=function(i){return i!=="false"&&i!==!1},Zn=function i(n){var l=n;return n.indexOf("~")!=-1?i(l=(l=l.replace("~","<")).replace("~",">")):l};const an={getRows:function(i){if(!i)return 1;var n=Ni(i);
62return(n=n.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:cr,sanitizeTextOrArray:function(i,n){return typeof i=="string"?cr(i,n):i.flat().map(function(l){return cr(l,n)})},hasBreaks:function(i){return ea.test(i)},splitBreaks:function(i){return i.split(ea)},lineBreakRegex:ea,removeScript:Qr,getUrl:function(i){var n="";return i&&(n=(n=(n=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),n},evaluate:rn,removeEscapes:Ir};var nn="",nr="",qt="",wi=function(i){return cr(i,Dt())},Kt=function(){nn="",qt="",nr=""},xr=function(i){nn=wi(i).replace(/^\s+/g,"")},Or=function(){return nn||nr},Vr=function(i){qt=wi(i).replace(/\n\s+/g,`
63`)},li=function(){return qt},wa=function(i){nr=wi(i)},hr=function(){return nr};function xn(i,n){return function(l){if(Array.isArray(l))return l}(i)||function(l,p){var g=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(g!=null){var T,k,S=[],N=!0,B=!1;try{for(g=g.call(l);!(N=(T=g.next()).done)&&(S.push(T.value),!p||S.length!==p);N=!0);}catch(q){B=!0,k=q}finally{try{N||g.return==null||g.return()}finally{if(B)throw k}}return S}}(i,n)||function(l,p){if(l){if(typeof l=="string")return ra(l,p);var g=Object.prototype.toString.call(l).slice(8,-1);return g==="Object"&&l.constructor&&(g=l.constructor.name),g==="Map"||g==="Set"?Array.from(l):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?ra(l,p):void 0}}(i,n)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ra(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}function On(i){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},On(i)}var bi,si=[],Oi=[""],lr="global",Kr="",Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Gr=[],ni="",Ti=!1,Xr=4,Ta=2,La=function(i){return i==null?si:si.filter(function(n){return n.parentBoundary===i})},pr=function(){return Ti};const Jr={addPersonOrSystem:function(i,n,l,p,g,T,k){if(n!==null&&l!==null){var S={},N=si.find(function(ee){return ee.alias===n});if(N&&n===N.alias?S=N:(S.alias=n,si.push(S)),S.label=l==null?{text:""}:{text:l},p==null)S.descr={text:""};else if(On(p)==="object"){var B=xn(Object.entries(p)[0],2),q=B[0],V=B[1];S[q]={text:V}}else S.descr={text:p};if(On(g)==="object"){var et=xn(Object.entries(g)[0],2),J=et[0],Tt=et[1];S[J]=Tt}else S.sprite=g;if(On(T)==="object"){var St=xn(Object.entries(T)[0],2),Lt=St[0],Nt=St[1];S[Lt]=Nt}else S.tags=T;if(On(k)==="object"){var Ot=xn(Object.entries(k)[0],2),Ft=Ot[0],_t=Ot[1];S[Ft]=_t}else S.link=k;S.typeC4Shape={text:i},S.parentBoundary=lr,S.wrap=pr()}},addPersonOrSystemBoundary:function(i,n,l,p,g){if(i!==null&&n!==null){var T={},k=Hr.find(function(Lt){return Lt.alias===i});if(k&&i===k.alias?T=k:(T.alias=i,Hr.push(T)),T.label=n==null?{text:""}:{text:n},l==null)T.type={text:"system"};else if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=S[0],B=S[1];T[N]={text:B}}else T.type={text:l};if(On(p)==="object"){var q=xn(Object.entries(p)[0],2),V=q[0],et=q[1];T[V]=et}else T.tags=p;if(On(g)==="object"){var J=xn(Object.entries(g)[0],2),Tt=J[0],St=J[1];T[Tt]=St}else T.link=g;T.parentBoundary=lr,T.wrap=pr(),Kr=lr,lr=i,Oi.push(Kr)}},addContainer:function(i,n,l,p,g,T,k,S){if(n!==null&&l!==null){var N={},B=si.find(function(Rt){return Rt.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,si.push(N)),N.label=l==null?{text:""}:{text:l},p==null)N.techn={text:""};else if(On(p)==="object"){var q=xn(Object.entries(p)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.techn={text:p};if(g==null)N.descr={text:""};else if(On(g)==="object"){var J=xn(Object.entries(g)[0],2),Tt=J[0],St=J[1];N[Tt]={text:St}}else N.descr={text:g};if(On(T)==="object"){var Lt=xn(Object.entries(T)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.sprite=T;if(On(k)==="object"){var Ft=xn(Object.entries(k)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.tags=k;if(On(S)==="object"){var ke=xn(Object.entries(S)[0],2),ue=ke[0],ve=ke[1];N[ue]=ve}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=lr}},addContainerBoundary:function(i,n,l,p,g){if(i!==null&&n!==null){var T={},k=Hr.find(function(Lt){return Lt.alias===i});if(k&&i===k.alias?T=k:(T.alias=i,Hr.push(T)),T.label=n==null?{text:""}:{text:n},l==null)T.type={text:"container"};else if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=S[0],B=S[1];T[N]={text:B}}else T.type={text:l};if(On(p)==="object"){var q=xn(Object.entries(p)[0],2),V=q[0],et=q[1];T[V]=et}else T.tags=p;if(On(g)==="object"){var J=xn(Object.entries(g)[0],2),Tt=J[0],St=J[1];T[Tt]=St}else T.link=g;T.parentBoundary=lr,T.wrap=pr(),Kr=lr,lr=i,Oi.push(Kr)}},addComponent:function(i,n,l,p,g,T,k,S){if(n!==null&&l!==null){var N={},B=si.find(function(Rt){return Rt.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,si.push(N)),N.label=l==null?{text:""}:{text:l},p==null)N.techn={text:""};else if(On(p)==="object"){var q=xn(Object.entries(p)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.techn={text:p};if(g==null)N.descr={text:""};else if(On(g)==="object"){var J=xn(Object.entries(g)[0],2),Tt=J[0],St=J[1];N[Tt]={text:St}}else N.descr={text:g};if(On(T)==="object"){var Lt=xn(Object.entries(T)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.sprite=T;if(On(k)==="object"){var Ft=xn(Object.entries(k)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.tags=k;if(On(S)==="object"){var ke=xn(Object.entries(S)[0],2),ue=ke[0],ve=ke[1];N[ue]=ve}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=lr}},addDeploymentNode:function(i,n,l,p,g,T,k,S){if(n!==null&&l!==null){var N={},B=Hr.find(function(ke){return ke.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,Hr.push(N)),N.label=l==null?{text:""}:{text:l},p==null)N.type={text:"node"};else if(On(p)==="object"){var q=xn(Object.entries(p)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.type={text:p};if(g==null)N.descr={text:""};else if(On(g)==="object"){var J=xn(Object.entries(g)[0],2),Tt=J[0],St=J[1];N[Tt]={text:St}}else N.descr={text:g};if(On(k)==="object"){var Lt=xn(Object.entries(k)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.tags=k;if(On(S)==="object"){var Ft=xn(Object.entries(S)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.link=S;N.nodeType=i,N.parentBoundary=lr,N.wrap=pr(),Kr=lr,lr=n,Oi.push(Kr)}},popBoundaryParseStack:function(){lr=Kr,Oi.pop(),Kr=Oi.pop(),Oi.push(Kr)}
64,addRel:function(i,n,l,p,g,T,k,S,N){if(i!=null&&n!=null&&l!=null&&p!=null){var B={},q=Gr.find(function(le){return le.from===n&&le.to===l});if(q?B=q:Gr.push(B),B.type=i,B.from=n,B.to=l,B.label={text:p},g==null)B.techn={text:""};else if(On(g)==="object"){var V=xn(Object.entries(g)[0],2),et=V[0],J=V[1];B[et]={text:J}}else B.techn={text:g};if(T==null)B.descr={text:""};else if(On(T)==="object"){var Tt=xn(Object.entries(T)[0],2),St=Tt[0],Lt=Tt[1];B[St]={text:Lt}}else B.descr={text:T};if(On(k)==="object"){var Nt=xn(Object.entries(k)[0],2),Ot=Nt[0],Ft=Nt[1];B[Ot]=Ft}else B.sprite=k;if(On(S)==="object"){var _t=xn(Object.entries(S)[0],2),ee=_t[0],ke=_t[1];B[ee]=ke}else B.tags=S;if(On(N)==="object"){var ue=xn(Object.entries(N)[0],2),ve=ue[0],Rt=ue[1];B[ve]=Rt}else B.link=N;B.wrap=pr()}},updateElStyle:function(i,n,l,p,g,T,k,S,N,B,q){var V=si.find(function($e){return $e.alias===n});if(V!==void 0||(V=Hr.find(function($e){return $e.alias===n}))!==void 0){if(l!=null)if(On(l)==="object"){var et=xn(Object.entries(l)[0],2),J=et[0],Tt=et[1];V[J]=Tt}else V.bgColor=l;if(p!=null)if(On(p)==="object"){var St=xn(Object.entries(p)[0],2),Lt=St[0],Nt=St[1];V[Lt]=Nt}else V.fontColor=p;if(g!=null)if(On(g)==="object"){var Ot=xn(Object.entries(g)[0],2),Ft=Ot[0],_t=Ot[1];V[Ft]=_t}else V.borderColor=g;if(T!=null)if(On(T)==="object"){var ee=xn(Object.entries(T)[0],2),ke=ee[0],ue=ee[1];V[ke]=ue}else V.shadowing=T;if(k!=null)if(On(k)==="object"){var ve=xn(Object.entries(k)[0],2),Rt=ve[0],le=ve[1];V[Rt]=le}else V.shape=k;if(S!=null)if(On(S)==="object"){var Wt=xn(Object.entries(S)[0],2),ie=Wt[0],ce=Wt[1];V[ie]=ce}else V.sprite=S;if(N!=null)if(On(N)==="object"){var se=xn(Object.entries(N)[0],2),Ne=se[0],Ce=se[1];V[Ne]=Ce}else V.techn=N;if(B!=null)if(On(B)==="object"){var je=xn(Object.entries(B)[0],2),_n=je[0],Re=je[1];V[_n]=Re}else V.legendText=B;if(q!=null)if(On(q)==="object"){var tn=xn(Object.entries(q)[0],2),yn=tn[0],Ue=tn[1];V[yn]=Ue}else V.legendSprite=q}},updateRelStyle:function(i,n,l,p,g,T,k){var S=Gr.find(function(_t){return _t.from===n&&_t.to===l});if(S!==void 0){if(p!=null)if(On(p)==="object"){var N=xn(Object.entries(p)[0],2),B=N[0],q=N[1];S[B]=q}else S.textColor=p;if(g!=null)if(On(g)==="object"){var V=xn(Object.entries(g)[0],2),et=V[0],J=V[1];S[et]=J}else S.lineColor=g;if(T!=null)if(On(T)==="object"){var Tt=xn(Object.entries(T)[0],2),St=Tt[0],Lt=Tt[1];S[St]=parseInt(Lt)}else S.offsetX=parseInt(T);if(k!=null)if(On(k)==="object"){var Nt=xn(Object.entries(k)[0],2),Ot=Nt[0],Ft=Nt[1];S[Ot]=parseInt(Ft)}else S.offsetY=parseInt(k)}},updateLayoutConfig:function(i,n,l){var p=Xr,g=Ta;if(On(n)==="object"){var T=xn(Object.entries(n)[0],2),k=(T[0],T[1]);p=parseInt(k)}else p=parseInt(n);if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=(S[0],S[1]);g=parseInt(N)}else g=parseInt(l);p>=1&&(Xr=p),g>=1&&(Ta=g)},autoWrap:pr,setWrap:function(i){Ti=i},getC4ShapeArray:La,getC4Shape:function(i){return si.find(function(n){return n.alias===i})},getC4ShapeKeys:function(i){return Object.keys(La(i))},getBoundarys:function(i){return i==null?Hr:Hr.filter(function(n){return n.parentBoundary===i})},getCurrentBoundaryParse:function(){return lr},getParentBoundaryParse:function(){return Kr},getRels:function(){return Gr},getTitle:function(){return ni},getC4Type:function(){return bi},getC4ShapeInRow:function(){return Xr},getC4BoundaryInRow:function(){return Ta},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().c4},clear:function(){si=[],Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Kr="",lr="global",Oi=[""],Gr=[],Oi=[""],ni="",Ti=!1,Xr=4,Ta=2},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(i){var n=cr(i,Dt());ni=n},setC4Type:function(i){var n=cr(i,Dt());bi=n}};var ti=f(7967);function Oo(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var Za=function(i,n){var l=i.append("rect");
64if(l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.attrs!=="undefined"&&n.attrs!==null)for(var p in n.attrs)l.attr(p,n.attrs[p]);return n.class!=="undefined"&&l.attr("class",n.class),l},ia=function(){function i(g,T,k,S,N,B,q){p(T.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,B,q,V){for(var et=V.fontSize,J=V.fontFamily,Tt=V.fontWeight,St=g.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=Lt*et-et*(St.length-1)/2,Ot=T.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",et).style("font-weight",Tt).style("font-family",J);Ot.append("tspan").attr("dy",Nt).text(St[Lt]).attr("alignment-baseline","mathematical"),p(Ot,q)}}function l(g,T,k,S,N,B,q,V){var et=T.append("switch"),J=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");J.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,0,q,V),p(J,q)}function p(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const oc=function(i,n,l){var p=n.bgColor?n.bgColor:l[n.typeC4Shape.text+"_bg_color"],g=n.borderColor?n.borderColor:l[n.typeC4Shape.text+"_border_color"],T=n.fontColor?n.fontColor:"#FFFFFF",k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(n.typeC4Shape.text){case"person":k="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":k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var S=i.append("g");S.attr("class","person-man");var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(n.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":N.x=n.x,N.y=n.y,N.fill=p,N.width=n.width,N.height=n.height,N.style="stroke:"+g+";stroke-width:0.5;",N.rx=2.5,N.ry=2.5,Za(S,N);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":S.append("path").attr("fill",p).attr("stroke-width","0.5").attr("stroke",g).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",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2).replaceAll("height",n.height)),S.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":S.append("path").attr("fill",p).attr("stroke-width","0.5").attr("stroke",g).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",n.x).replaceAll("starty",n.y).replaceAll("width",n.width).replaceAll("half",n.height/2)),S.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",n.x+n.width).replaceAll("starty",n.y).replaceAll("half",n.height/2))}var B,q,V=(B=l,q=n.typeC4Shape.text,{fontFamily:B[q+"FontFamily"],fontSize:B[q+"FontSize"],fontWeight:B[q+"FontWeight"]});switch(S.append("text").attr("fill",T).attr("font-family",V.fontFamily).attr("font-size",V.fontSize-2).attr("font-style","
64italic").attr("lengthAdjust","spacing").attr("textLength",n.typeC4Shape.width).attr("x",n.x+n.width/2-n.typeC4Shape.width/2).attr("y",n.y+n.typeC4Shape.Y).text("<<"+n.typeC4Shape.text+">>"),n.typeC4Shape.text){case"person":case"external_person":(function(J,Tt,St,Lt,Nt,Ot){var Ft=J.append("image");Ft.attr("width",Tt),Ft.attr("height",St),Ft.attr("x",Lt),Ft.attr("y",Nt);var _t=Ot.startsWith("data:image/png;base64")?Ot:(0,ti.N)(Ot);Ft.attr("xlink:href",_t)})(S,48,48,n.x+n.width/2-24,n.y+n.image.Y,k)}var et=l[n.typeC4Shape.text+"Font"]();return et.fontWeight="bold",et.fontSize=et.fontSize+2,et.fontColor=T,ia(l)(n.label.text,S,n.x,n.y+n.label.Y,n.width,n.height,{fill:T},et),(et=l[n.typeC4Shape.text+"Font"]()).fontColor=T,n.thchn&&n.thchn.text!==""?ia(l)(n.thchn.text,S,n.x,n.y+n.thchn.Y,n.width,n.height,{fill:T,"font-style":"italic"},et):n.type&&n.type.text!==""&&ia(l)(n.type.text,S,n.x,n.y+n.type.Y,n.width,n.height,{fill:T,"font-style":"italic"},et),n.descr&&n.descr.text!==""&&((et=l.personFont()).fontColor=T,ia(l)(n.descr.text,S,n.x,n.y+n.descr.Y,n.width,n.height,{fill:T},et)),n.height},Ht=function(i,n,l){var p,g=i.append("g"),T=0,k=function(St,Lt){var Nt=typeof Symbol<"u"&&St[Symbol.iterator]||St["@@iterator"];if(!Nt){if(Array.isArray(St)||(Nt=function(ue,ve){if(ue){if(typeof ue=="string")return Oo(ue,ve);var Rt=Object.prototype.toString.call(ue).slice(8,-1);return Rt==="Object"&&ue.constructor&&(Rt=ue.constructor.name),Rt==="Map"||Rt==="Set"?Array.from(ue):Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt)?Oo(ue,ve):void 0}}(St))||Lt){Nt&&(St=Nt);var Ot=0,Ft=function(){};return{s:Ft,n:function(){return Ot>=St.length?{done:!0}:{done:!1,value:St[Ot++]}},e:function(ue){throw ue},f:Ft}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _t,ee=!0,ke=!1;return{s:function(){Nt=Nt.call(St)},n:function(){var ue=Nt.next();return ee=ue.done,ue},e:function(ue){ke=!0,_t=ue},f:function(){try{ee||Nt.return==null||Nt.return()}finally{if(ke)throw _t}}}}(n);try{for(k.s();!(p=k.n()).done;){var S=p.value,N=S.textColor?S.textColor:"#444444",B=S.lineColor?S.lineColor:"#444444",q=S.offsetX?parseInt(S.offsetX):0,V=S.offsetY?parseInt(S.offsetY):0;if(T===0){var et=g.append("line");et.attr("x1",S.startPoint.x),et.attr("y1",S.startPoint.y),et.attr("x2",S.endPoint.x),et.attr("y2",S.endPoint.y),et.attr("stroke-width","1"),et.attr("stroke",B),et.style("fill","none"),S.type!=="rel_b"&&et.attr("marker-end","url(#arrowhead)"),S.type!=="birel"&&S.type!=="rel_b"||et.attr("marker-start","url(#arrowend)"),T=-1}else{var J=g.append("path");J.attr("fill","none").attr("stroke-width","1").attr("stroke",B).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",S.startPoint.x).replaceAll("starty",S.startPoint.y).replaceAll("controlx",S.startPoint.x+(S.endPoint.x-S.startPoint.x)/2-(S.endPoint.x-S.startPoint.x)/4).replaceAll("controly",S.startPoint.y+(S.endPoint.y-S.startPoint.y)/2).replaceAll("stopx",S.endPoint.x).replaceAll("stopy",S.endPoint.y)),S.type!=="rel_b"&&J.attr("marker-end","url(#arrowhead)"),S.type!=="birel"&&S.type!=="rel_b"||J.attr("marker-start","url(#arrowend)")}var Tt=l.messageFont();ia(l)(S.label.text,g,Math.min(S.startPoint.x,S.endPoint.x)+Math.abs(S.endPoint.x-S.startPoint.x)/2+q,Math.min(S.startPoint.y,S.endPoint.y)+Math.abs(S.endPoint.y-S.startPoint.y)/2+V,S.label.width,S.label.height,{fill:N},Tt),S.techn&&S.techn.text!==""&&(Tt=l.messageFont(),ia(l)("["+S.techn.text+"]",g,Math.min(S.startPoint.x,S.endPoint.x)+Math.abs(S.endPoint.x-S.startPoint.x)/2+q,Math.min(S.startPoint.y,S.endPoint.y)+Math.abs(S.endPoint.y-S.startPoint.y)/2+l.messageFontSize+5+V,Math.max(S.label.width,S.techn.width),S.techn.height,{fill:N,"font-style":"italic"},Tt))}}catch(St){k.e(St)}finally{k.f()}};ti.N;var Ve=f(2536),pn=f.n(Ve),ar=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,ci=/\s*%%.*\n/gm,Er={};const ui=function(i,n){if((i=i.replace(ar,"").replace(ci,`
66`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(i==="error")return"error";if(i.match(/^\s*sequenceDiagram/))return"sequence";if(i.match(/^\s*gantt/))return"gantt";if(i.match(/^\s*classDiagram-v2/))return"classDiagram";if(i.match(/^\s*classDiagram/))return n&&n.class&&n.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class";if(i.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(i.match(/^\s*stateDiagram/))return n&&n.class&&n.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state";if(i.match(/^\s*flowchart/))return"flowchart-v2";if(i.match(/^\s*info/))return"info";if(i.match(/^\s*pie/))return"pie";if(i.match(/^\s*erDiagram/))return"er";if(i.match(/^\s*journey/))return"journey";if(i.match(/^\s*requirement/)||i.match(/^\s*requirementDiagram/))return"requirement";if(n&&n.flowchart&&n.flowchart.defaultRenderer==="dagre-wrapper")return"flowchart-v2";for(var l=Object.keys(Er),p=0;p<l.length;p++){var g=l[p],T=Er[g];if(T&&T.detector(i))return g}return"flowchart"};var Ia=void 0;function hi(i){return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hi(i)}function Ei(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}function Bo(i,n){var l=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Fa(i))||n){l&&(i=l);var p=0,g=function(){};return{s:g,n:function(){return p>=i.length?{done:!0}:{done:!1,value:i[p++]}},e:function(N){throw N},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T,k=!0,S=!1;return{s:function(){l=l.call(i)},n:function(){var N=l.next();return k=N.done,N},e:function(N){S=!0,T=N},f:function(){try{k||l.return==null||l.return()}finally{if(S)throw T}}}}function sc(i){return function(n){if(Array.isArray(n))return cc(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||Fa(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fa(i,n){if(i){if(typeof i=="string")return cc(i,n);var l=Object.prototype.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(i):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?cc(i,n):void 0}}function cc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var bs,lu={curveBasis:w.curveBasis,curveBasisClosed:w.curveBasisClosed,curveBasisOpen:w.curveBasisOpen,curveLinear:w.curveLinear,curveLinearClosed:w.curveLinearClosed,curveMonotoneX:w.curveMonotoneX,curveMonotoneY:w.curveMonotoneY,curveNatural:w.curveNatural,curveStep:w.curveStep,curveStepAfter:w.curveStepAfter,curveStepBefore:w.curveStepBefore},on=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}
68).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Kc=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Mr=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var l=new RegExp("[%]{2}(?![{]".concat(Kc.source,`)(?=[}][%]{2}).*
69`),"ig");i=i.trim().replace(l,"").replace(/'/gm,'"'),y.debug("Detecting diagram directive".concat(n!==null?" type:"+n:""," based on the text:").concat(i));for(var p,g=[];(p=on.exec(i))!==null;)if(p.index===on.lastIndex&&on.lastIndex++,p&&!n||n&&p[1]&&p[1].match(n)||n&&p[2]&&p[2].match(n)){var T=p[1]?p[1]:p[2],k=p[3]?p[3].trim():p[4]?JSON.parse(p[4].trim()):null;g.push({type:T,args:k})}return g.length===0&&g.push({type:i,args:null}),g.length===1?g[0]:g}catch(S){return y.error("ERROR: ".concat(S.message,` - Unable to parse directive
70      `).concat(n!==null?" type:"+n:""," based on the text:").concat(i)),{type:null,args:null}}},fo=function(i,n){var l={};return function(){for(var p=arguments.length,g=new Array(p),T=0;T<p;T++)g[T]=arguments[T];var k=n?n.apply(Ia,g):g[0];if(k in l)return l[k];var S=i.apply(void 0,g);return l[k]=S,S}},pa=function(i,n){if(!i)return n;var l="curve".concat(i.charAt(0).toUpperCase()+i.slice(1));return lu[l]||n},Qa=function(i,n){return i&&n?Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)):0},Si=function(i){for(var n="",l="",p=0;p<i.length;p++)i[p]!==void 0&&(i[p].startsWith("color:")||i[p].startsWith("text-align:")?l=l+i[p]+";":n=n+i[p]+";");return{style:n,labelStyle:l}},Lo=0,lc=function(){return Lo++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Lo},uc=function(i){return function(n){for(var l="",p="0123456789abcdef",g=p.length,T=0;T<n;T++)l+=p.charAt(Math.floor(Math.random()*g));return l}(i.length)},hc=function(i,n){var l=n.text.replace(an.lineBreakRegex," "),p=i.append("text");p.attr("x",n.x),p.attr("y",n.y),p.style("text-anchor",n.anchor),p.style("font-family",n.fontFamily),p.style("font-size",n.fontSize),p.style("font-weight",n.fontWeight),p.attr("fill",n.fill),n.class!==void 0&&p.attr("class",n.class);var g=p.append("tspan");return g.attr("x",n.x+2*n.textMargin),g.attr("fill",n.fill),g.text(l),p},Ea=fo(function(i,n,l){if(!i||(l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},l),an.lineBreakRegex.test(i)))return i;var p=i.split(" "),g=[],T="";return p.forEach(function(k,S){var N=Sa("".concat(k," "),l),B=Sa(T,l);if(N>n){var q=uu(k,n,"-",l),V=q.hyphenatedStrings,et=q.remainingWord;g.push.apply(g,[T].concat(sc(V))),T=et}else B+N>=n?(g.push(T),T=k):T=[T,k].filter(Boolean).join(" ");S+1===p.length&&g.push(T)}),g.filter(function(k){return k!==""}).join(l.joinWith)},function(i,n,l){return"".concat(i,"-").concat(n,"-").concat(l.fontSize,"-").concat(l.fontWeight,"-").concat(l.fontFamily,"-").concat(l.joinWith)}),uu=fo(function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",p=arguments.length>3?arguments[3]:void 0;p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);var g=i.split(""),T=[],k="";return g.forEach(function(S,N){var B="".concat(k).concat(S);if(Sa(B,p)>=n){var q=N+1,V=g.length===q,et="".concat(B).concat(l);T.push(V?B:et),k=""}else k=B}),{hyphenatedStrings:T,remainingWord:k}},function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",p=arguments.length>3?arguments[3]:void 0;return"".concat(i,"-").concat(n,"-").concat(l,"-").concat(p.fontSize,"-").concat(p.fontWeight,"-").concat(p.fontFamily)}),dc=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},n),vs(i,n).height},Sa=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),vs(i,n).width},vs=fo(function(i,n){var l=n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),p=l.fontSize,g=l.fontFamily,T=l.fontWeight;if(!i)return{width:0,height:0};var k=["sans-serif",g],S=i.split(an.lineBreakRegex),N=[],B=(0,w.select)("body");if(!B.remove)return{width:0,height:0,lineHeight:0};for(var q=B.append("svg"),V=0,et=k;V<et.length;V++){var J,Tt=et[V],St=0,Lt={width:0,height:0,lineHeight:0},Nt=Bo(S);try{for(Nt.s();!(J=Nt.n()).done;){var Ot=J.value,Ft={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Ft.text=Ot;var _t=hc(q,Ft).style("font-size",p).style("font-weight",T).style("font-family",Tt),ee=(_t._groups||_t)[0][0].getBBox();Lt.width=Math.round(Math.max(Lt.width,ee.width)),St=Math.round(ee.height),Lt.height+=St,Lt.lineHeight=Math.round(Math.max(Lt.lineHeight,St))}}catch(ke){Nt.e(ke)}finally{Nt.f()}N.push(Lt)}return q.remove(),N[isNaN(N[1].height)||isNaN(N[1].width)||isNaN(N[1].lineHeight)||N[0].height>N[1].height&&N[0].width>N[1].width&&N[0].lineHeight>N[1].lineHeight?0:1]},function(i,n){return"".concat(i,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily)}),Jc=function(i,n,l){var p=new Map;return l?(p.set("width","100%"),p.set("style","max-width: ".concat(n,"px;"))):p.set("width",n),p},Gi=function(i,n,l,p){(function(g,T){var k,S=Bo(T);try{for(S.s();!(k=S.n()).done;){var N=k.value;g.attr(N[0],N[1])}}catch(B){S.e(B)}finally{S.f()}})(i,Jc(0,1*l,p))},Io=function(i,n,l,p){var g=n.node().getBBox(),T=g.width,k=g.height;y.info("SVG bounds: ".concat(T,"x").concat(k),g);var S=i._label.width,N=i._label.height;y.info("Graph bounds: ".concat(S,"x").concat(N),i),S=T+2*l,N=k+2*l,y.info("Calculated bounds: ".concat(S,"x").concat(N)),Gi(n,0,S,p);var B="".concat(g.x-l," ").concat(g.y-l," ").concat(g.width+2*l," ").concat(g.height+2*l);y.info("Graph.label",i._label,"swidth",T,"sheight",k,"width",S,"height",N,"vBox",B),n.attr("viewBox",B)},di=function i(n){if(y.debug("directiveSanitizer called with",n),hi(n)==="object"&&(n.length?n.forEac
70h(function(k){return i(k)}):Object.keys(n).forEach(function(k){y.debug("Checking key",k),k.indexOf("__")===0&&(y.debug("sanitize deleting __ option",k),delete n[k]),k.indexOf("proto")>=0&&(y.debug("sanitize deleting proto option",k),delete n[k]),k.indexOf("constr")>=0&&(y.debug("sanitize deleting constr option",k),delete n[k]),k.indexOf("themeCSS")>=0&&(y.debug("sanitizing themeCss option"),n[k]=Jo(n[k])),k.indexOf("fontFamily")>=0&&(y.debug("sanitizing fontFamily option"),n[k]=Jo(n[k])),k.indexOf("altFontFamily")>=0&&(y.debug("sanitizing altFontFamily option"),n[k]=Jo(n[k])),fa.indexOf(k)<0?(y.debug("sanitize deleting option",k),delete n[k]):hi(n[k])==="object"&&(y.debug("sanitize deleting object",k),i(n[k]))})),n.themeVariables)for(var l=Object.keys(n.themeVariables),p=0;p<l.length;p++){var g=l[p],T=n.themeVariables[g];T&&T.match&&!T.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(n.themeVariables[g]="")}y.debug("After sanitization",n)},Jo=function(i){for(var n=0,l=0,p=0;p<i.length;p++){if(n<l)return"{ /* ERROR: Unbalanced CSS */ }";i[p]==="{"?n++:i[p]==="}"&&l++}return n!==l?"{ /* ERROR: Unbalanced CSS */ }":i};const qn={assignWithDepth:te,wrapLabel:Ea,calculateTextHeight:dc,calculateTextWidth:Sa,calculateTextDimensions:vs,calculateSvgSizeAttrs:Jc,configureSvgSize:Gi,setupGraphViewbox:Io,detectInit:function(i,n){var l=Mr(i,/(?:init\b)|(?:initialize\b)/),p={};if(Array.isArray(l)){var g=l.map(function(k){return k.args});di(g),p=te(p,sc(g))}else p=l.args;if(p){var T=ui(i,n);["config"].forEach(function(k){p[k]!==void 0&&(T==="flowchart-v2"&&(T="flowchart"),p[T]=p[k],delete p[k])})}return p},detectDirective:Mr,isSubstringInArray:function(i,n){for(var l=0;l<n.length;l++)if(n[l].match(i))return l;return-1},interpolateToCurve:pa,calcLabelPosition:function(i){return i.length===1?i[0]:function(n){var l,p=0;n.forEach(function(k){p+=Qa(k,l),l=k});var g=p/2,T=void 0;return l=void 0,n.forEach(function(k){if(l&&!T){var S=Qa(k,l);if(S<g)g-=S;else{var N=g/S;N<=0&&(T=l),N>=1&&(T={x:k.x,y:k.y}),N>0&&N<1&&(T={x:(1-N)*l.x+N*k.x,y:(1-N)*l.y+N*k.y})}}l=k}),T}(i)},calcCardinalityPosition:function(i,n,l){var p;y.info("our points",n),n[0]!==l&&(n=n.reverse()),n.forEach(function(B){Qa(B,p),p=B});var g,T=25;p=void 0,n.forEach(function(B){if(p&&!g){var q=Qa(B,p);if(q<T)T-=q;else{var V=T/q;V<=0&&(g=p),V>=1&&(g={x:B.x,y:B.y}),V>0&&V<1&&(g={x:(1-V)*p.x+V*B.x,y:(1-V)*p.y+V*B.y})}}p=B});var k=i?10:5,S=Math.atan2(n[0].y-g.y,n[0].x-g.x),N={x:0,y:0};return N.x=Math.sin(S)*k+(n[0].x+g.x)/2,N.y=-Math.cos(S)*k+(n[0].y+g.y)/2,N},calcTerminalLabelPosition:function(i,n,l){var p,g=JSON.parse(JSON.stringify(l));y.info("our points",g),n!=="start_left"&&n!=="start_right"&&(g=g.reverse()),g.forEach(function(q){Qa(q,p),p=q});var T,k=25+i;p=void 0,g.forEach(function(q){if(p&&!T){var V=Qa(q,p);if(V<k)k-=V;else{var et=k/V;et<=0&&(T=p),et>=1&&(T={x:q.x,y:q.y}),et>0&&et<1&&(T={x:(1-et)*p.x+et*q.x,y:(1-et)*p.y+et*q.y})}}p=q});var S=10+.5*i,N=Math.atan2(g[0].y-T.y,g[0].x-T.x),B={x:0,y:0};return B.x=Math.sin(N)*S+(g[0].x+T.x)/2,B.y=-Math.cos(N)*S+(g[0].y+T.y)/2,n==="start_left"&&(B.x=Math.sin(N+Math.PI)*S+(g[0].x+T.x)/2,B.y=-Math.cos(N+Math.PI)*S+(g[0].y+T.y)/2),n==="end_right"&&(B.x=Math.sin(N-Math.PI)*S+(g[0].x+T.x)/2-5,B.y=-Math.cos(N-Math.PI)*S+(g[0].y+T.y)/2-5),n==="end_left"&&(B.x=Math.sin(N)*S+(g[0].x+T.x)/2-5,B.y=-Math.cos(N)*S+(g[0].y+T.y)/2-5),B},formatUrl:function(i,n){var l=i.trim();if(l)return n.securityLevel!=="loose"?(0,ti.N)(l):l},getStylesFromArray:Si,generateId:lc,random:uc,memoize:fo,runFunc:function(i){for(var n,l=i.split("."),p=l.length-1,g=l[p],T=window,k=0;k<p;k++)if(!(T=T[l[k]]))return;for(var S=arguments.length,N=new Array(S>1?S-1:0),B=1;B<S;B++)N[B-1]=arguments[B];(n=T)[g].apply(n,N)},entityDecode:function(i){return bs=bs||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),bs.innerHTML=i,unescape(bs.textContent)},initIdGenerator:function(){function i(p,g){(function(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")})(this,i),this.deterministic=p,this.seed=g,this.count=g?g.length:0}var n,l;return n=i,(l=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ei(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}(),directiveSanitizer:di,sanitizeCss:Jo};function kr(i,n,l){if(n.insert!==void 0){var p=i.getAccTitle(),g=i.getAccDescription();n.attr("role","img").attr("aria-labelledby","chart-title-"+l+" chart-desc-"+l),n.insert("desc",":first-child").attr("id","chart-desc-"+l).text(g),n.insert("title",":first-child").attr("id","chart-title-"+l).text(p)}}function tl(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}function Fo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function fc(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}function po(i,n,l){return n&&fc(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}var go=0,yo=0,ji=4,Ci=2;Ve.parser.yy=Jr;var kn={},Xi=function(){function i(n){Fo(this,i),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,ga(n.db.getConfig())}return po(i,[{key:"setData",value:function(n,l,p,g){this.nextData.startx=this.data.startx=n,this.nextData.stopx=this.data.stopx=l,this.nextData.starty=this.data.starty=p,this.nextData.stopy=this.data.stopy=g}}
70,{key:"updateVal",value:function(n,l,p,g){n[l]===void 0?n[l]=p:n[l]=g(p,n[l])}},{key:"insert",value:function(n){this.nextData.cnt=this.nextData.cnt+1;var l=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+n.margin:this.nextData.stopx+2*n.margin,p=l+n.width,g=this.nextData.starty+2*n.margin,T=g+n.height;(l>=this.data.widthLimit||p>=this.data.widthLimit||this.nextData.cnt>ji)&&(l=this.nextData.startx+n.margin+kn.nextLinePaddingX,g=this.nextData.stopy+2*n.margin,this.nextData.stopx=p=l+n.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=T=g+n.height,this.nextData.cnt=1),n.x=l,n.y=g,this.updateVal(this.data,"startx",l,Math.min),this.updateVal(this.data,"starty",g,Math.min),this.updateVal(this.data,"stopx",p,Math.max),this.updateVal(this.data,"stopy",T,Math.max),this.updateVal(this.nextData,"startx",l,Math.min),this.updateVal(this.nextData,"starty",g,Math.min),this.updateVal(this.nextData,"stopx",p,Math.max),this.updateVal(this.nextData,"stopy",T,Math.max)}},{key:"init",value:function(n){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},ga(n.db.getConfig())}},{key:"bumpLastMargin",value:function(n){this.data.stopx+=n,this.data.stopy+=n}}]),i}(),ga=function(i){te(kn,i),i.fontFamily&&(kn.personFontFamily=kn.systemFontFamily=kn.messageFontFamily=i.fontFamily),i.fontSize&&(kn.personFontSize=kn.systemFontSize=kn.messageFontSize=i.fontSize),i.fontWeight&&(kn.personFontWeight=kn.systemFontWeight=kn.messageFontWeight=i.fontWeight)},Qn=function(i,n){return{fontFamily:i[n+"FontFamily"],fontSize:i[n+"FontSize"],fontWeight:i[n+"FontWeight"]}},x=function(i){return{fontFamily:i.boundaryFontFamily,fontSize:i.boundaryFontSize,fontWeight:i.boundaryFontWeight}};function L(i,n,l,p,g){if(!n[i].width)if(l)n[i].text=Ea(n[i].text,g,p),n[i].textLines=n[i].text.split(an.lineBreakRegex).length,n[i].width=g,n[i].height=dc(n[i].text,p);else{var T=n[i].text.split(an.lineBreakRegex);n[i].textLines=T.length;var k=0;n[i].height=0,n[i].width=0;for(var S=0;S<T.length;S++)n[i].width=Math.max(Sa(T[S],p),n[i].width),k=dc(T[S],p),n[i].height=n[i].height+k}}var G=function(i,n,l){n.x=l.data.startx,n.y=l.data.starty,n.width=l.data.stopx-l.data.startx,n.height=l.data.stopy-l.data.starty,n.label.y=kn.c4ShapeMargin-35;var p=n.wrap&&kn.wrap,g=x(kn);g.fontSize=g.fontSize+2,g.fontWeight="bold",L("label",n,p,g,Sa(n.label.text,g)),function(T,k,S){var N=T.append("g"),B=k.bgColor?k.bgColor:"none",q=k.borderColor?k.borderColor:"#444444",V=k.fontColor?k.fontColor:"black",et={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};k.nodeType&&(et={"stroke-width":1});var J={x:k.x,y:k.y,fill:B,stroke:q,width:k.width,height:k.height,rx:2.5,ry:2.5,attrs:et};Za(N,J);var Tt=S.boundaryFont();Tt.fontWeight="bold",Tt.fontSize=Tt.fontSize+2,Tt.fontColor=V,ia(S)(k.label.text,N,k.x,k.y+k.label.Y,k.width,k.height,{fill:"#444444"},Tt),k.type&&k.type.text!==""&&((Tt=S.boundaryFont()).fontColor=V,ia(S)(k.type.text,N,k.x,k.y+k.type.Y,k.width,k.height,{fill:"#444444"},Tt)),k.descr&&k.descr.text!==""&&((Tt=S.boundaryFont()).fontSize=Tt.fontSize-2,Tt.fontColor=V,ia(S)(k.descr.text,N,k.x,k.y+k.descr.Y,k.width,k.height,{fill:"#444444"},Tt))}(i,n,kn)},ct=function(i,n,l,p){for(var g=0,T=0;T<p.length;T++){g=0;var k=l[p[T]],S=Qn(kn,k.typeC4Shape.text);switch(S.fontSize=S.fontSize-2,k.typeC4Shape.width=Sa("<<"+k.typeC4Shape.text+">>",S),k.typeC4Shape.height=S.fontSize+2,k.typeC4Shape.Y=kn.c4ShapePadding,g=k.typeC4Shape.Y+k.typeC4Shape.height-4,k.image={width:0,height:0,Y:0},k.typeC4Shape.text){case"person":case"external_person":k.image.width=48,k.image.height=48,k.image.Y=g,g=k.image.Y+k.image.height}k.sprite&&(k.image.width=48,k.image.height=48,k.image.Y=g,g=k.image.Y+k.image.height);var N=k.wrap&&kn.wrap,B=kn.width-2*kn.c4ShapePadding,q=Qn(kn,k.typeC4Shape.text);q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",k,N,q,B),k.label.Y=g+8,g=k.label.Y+k.label.height,k.type&&k.type.text!==""?(k.type.text="["+k.type.text+"]",L("type",k,N,Qn(kn,k.typeC4Shape.text),B),k.type.Y=g+5,g=k.type.Y+k.type.height):k.techn&&k.techn.text!==""&&(k.techn.text="["+k.techn.text+"]",L("techn",k,N,Qn(kn,k.techn.text),B),k.techn.Y=g+5,g=k.techn.Y+k.techn.height);var V=g,et=k.label.width;k.descr&&k.descr.text!==""&&(L("descr",k,N,Qn(kn,k.typeC4Shape.text),B),k.descr.Y=g+20,g=k.descr.Y+k.descr.height,et=Math.max(k.label.width,k.descr.width),V=g-5*k.descr.textLines),et+=kn.c4ShapePadding,k.width=Math.max(k.width||kn.width,et,kn.width),k.height=Math.max(k.height||kn.height,V,kn.height),k.margin=k.margin||kn.c4ShapeMargin,i.insert(k),oc(n,k,kn)}i.bumpLastMargin(kn.c4ShapeMargin)},Xt=po(function i(n,l){Fo(this,i),this.x=n,this.y=l}
70),Se=function(i,n){var l=i.x,p=i.y,g=n.x,T=n.y,k=l+i.width/2,S=p+i.height/2,N=Math.abs(l-g),B=Math.abs(p-T),q=B/N,V=i.height/i.width,et=null;return p==T&&l<g?et=new Xt(l+i.width,S):p==T&&l>g?et=new Xt(l,S):l==g&&p<T?et=new Xt(k,p+i.height):l==g&&p>T&&(et=new Xt(k,p)),l>g&&p<T?et=V>=q?new Xt(l,S+q*i.width/2):new Xt(k-N/B*i.height/2,p+i.height):l<g&&p<T?et=V>=q?new Xt(l+i.width,S+q*i.width/2):new Xt(k+N/B*i.height/2,p+i.height):l<g&&p>T?et=V>=q?new Xt(l+i.width,S-q*i.width/2):new Xt(k+i.height/2*N/B,p):l>g&&p>T&&(et=V>=q?new Xt(l,S-i.width/2*q):new Xt(k-i.height/2*N/B,p)),et},Pe=function(i,n){var l={x:0,y:0};l.x=n.x+n.width/2,l.y=n.y+n.height/2;var p=Se(i,l);return l.x=i.x+i.width/2,l.y=i.y+i.height/2,{startPoint:p,endPoint:Se(n,l)}};function Ze(i,n,l,p,g){var T=new Xi(g);T.data.widthLimit=l.data.widthLimit/Math.min(Ci,p.length);for(var k=0;k<p.length;k++){var S=p[k],N=0;S.image={width:0,height:0,Y:0},S.sprite&&(S.image.width=48,S.image.height=48,S.image.Y=N,N=S.image.Y+S.image.height);var B=S.wrap&&kn.wrap,q=x(kn);if(q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",S,B,q,T.data.widthLimit),S.label.Y=N+8,N=S.label.Y+S.label.height,S.type&&S.type.text!==""&&(S.type.text="["+S.type.text+"]",L("type",S,B,x(kn),T.data.widthLimit),S.type.Y=N+5,N=S.type.Y+S.type.height),S.descr&&S.descr.text!==""){var V=x(kn);V.fontSize=V.fontSize-2,L("descr",S,B,V,T.data.widthLimit),S.descr.Y=N+20,N=S.descr.Y+S.descr.height}if(k==0||k%Ci==0){var et=l.data.startx+kn.diagramMarginX,J=l.data.stopy+kn.diagramMarginY+N;T.setData(et,et,J,J)}else{var Tt=T.data.stopx!==T.data.startx?T.data.stopx+kn.diagramMarginX:T.data.startx,St=T.data.starty;T.setData(Tt,Tt,St,St)}T.name=S.alias;var Lt=g.db.getC4ShapeArray(S.alias),Nt=g.db.getC4ShapeKeys(S.alias);Nt.length>0&&ct(T,i,Lt,Nt),n=S.alias;var Ot=g.db.getBoundarys(n);Ot.length>0&&Ze(i,n,T,Ot,g),S.alias!=="global"&&G(i,S,T),l.data.stopy=Math.max(T.data.stopy+kn.c4ShapeMargin,l.data.stopy),l.data.stopx=Math.max(T.data.stopx+kn.c4ShapeMargin,l.data.stopx),go=Math.max(go,l.data.stopx),yo=Math.max(yo,l.data.stopy)}}const Je={drawPersonOrSystemArray:ct,drawBoundary:G,setConf:ga,draw:function(i,n,l,p){kn=Dt().c4;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=p.db;p.db.setWrap(kn.wrap),ji=S.getC4ShapeInRow(),Ci=S.getC4BoundaryInRow(),y.debug("C:".concat(JSON.stringify(kn,null,2)));var N=T==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,w.select)('[id="'.concat(n,'"]'));N.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(St){St.append("defs").append("symbol").attr("id","
vendor: 3,660 bytes, line 70
70database").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.
vendor: 9,600 bytes, line 70
70127.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")}
70(N),function(St){St.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(N);var B=new Xi(p);B.setData(kn.diagramMarginX,kn.diagramMarginX,kn.diagramMarginY,kn.diagramMarginY),B.data.widthLimit=screen.availWidth,go=kn.diagramMarginX,yo=kn.diagramMarginY;var q=p.db.getTitle();p.db.getC4Type(),Ze(N,"",B,p.db.getBoundarys(""),p),function(St){St.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")}(N),function(St){St.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")}(N),function(St){var Lt=St.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Lt.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"),Lt.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")}(N),function(St){St.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")}(N),function(St,Lt,Nt,Ot){var Ft,_t,ee=0,ke=function(se,Ne){var Ce=typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(!Ce){if(Array.isArray(se)||(Ce=function(Ue,$e){if(Ue){if(typeof Ue=="string")return tl(Ue,$e);var bn=Object.prototype.toString.call(Ue).slice(8,-1);return bn==="Object"&&Ue.constructor&&(bn=Ue.constructor.name),bn==="Map"||bn==="Set"?Array.from(Ue):bn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bn)?tl(Ue,$e):void 0}}(se))||Ne){Ce&&(se=Ce);var je=0,_n=function(){};return{s:_n,n:function(){return je>=se.length?{done:!0}:{done:!1,value:se[je++]}},e:function(Ue){throw Ue},f:_n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re,tn=!0,yn=!1;return{s:function(){Ce=Ce.call(se)},n:function(){var Ue=Ce.next();return tn=Ue.done,Ue},e:function(Ue){yn=!0,Re=Ue},f:function(){try{tn||Ce.return==null||Ce.return()}finally{if(yn)throw Re}}}}(Lt);try{for(ke.s();!(Ft=ke.n()).done;){var ue=Ft.value;ee+=1;var ve=ue.wrap&&kn.wrap,Rt={fontFamily:(_t=kn).messageFontFamily,fontSize:_t.messageFontSize,fontWeight:_t.messageFontWeight};Ot.db.getC4Type()==="C4Dynamic"&&(ue.label.text=ee+": "+ue.label.text);var le=Sa(ue.label.text,Rt);L("label",ue,ve,Rt,le),ue.techn&&ue.techn.text!==""&&L("techn",ue,ve,Rt,le=Sa(ue.techn.text,Rt)),ue.descr&&ue.descr.text!==""&&L("descr",ue,ve,Rt,le=Sa(ue.descr.text,Rt));var Wt=Nt(ue.from),ie=Nt(ue.to),ce=Pe(Wt,ie);ue.startPoint=ce.startPoint,ue.endPoint=ce.endPoint}}catch(se){ke.e(se)}finally{ke.f()}Ht(St,Lt,kn)}(N,p.db.getRels(),p.db.getC4Shape,p),B.data.stopx=go,B.data.stopy=yo;var V=B.data,et=V.stopy-V.starty+2*kn.diagramMarginY,J=V.stopx-V.startx+2*kn.diagramMarginX;q&&N.append("text").text(q).attr("x",(V.stopx-V.startx)/2-4*kn.diagramMarginX).attr("y",V.starty+kn.diagramMarginY),Gi(N,0,J,kn.useMaxWidth);var Tt=q?60:0;N.attr("viewBox",V.startx-kn.diagramMarginX+" -"+(kn.diagramMarginY+Tt)+" "+J+" "+(et+Tt)),kr(Ve.parser.yy,N,n),y.debug("models:",V)}};function un(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var gn="classid-",zn=[],hn={},mr=0,or=[],$r=function(i){return an.sanitizeText(i,Dt())},ri=function(i){var n="",l=i;if(i.indexOf("~")>0){var p=i.split("~");l=p[0],n=an.sanitizeText(p[1],Dt())}return{className:l,type:n}},Yr=function(i){var n=ri(i);
71hn[n.className]===void 0&&(hn[n.className]={id:n.className,type:n.type,cssClasses:[],methods:[],members:[],annotations:[],domId:gn+n.className+"-"+mr},mr++)},_s=function(i){for(var n=Object.keys(hn),l=0;l<n.length;l++)if(hn[n[l]].id===i)return hn[n[l]].domId},hu=function(i,n){var l=ri(i).className,p=hn[l];if(typeof n=="string"){var g=n.trim();g.startsWith("<<")&&g.endsWith(">>")?p.annotations.push($r(g.substring(2,g.length-2))):g.indexOf(")")>0?p.methods.push($r(g)):g&&p.members.push($r(g))}},pc=function(i,n){i.split(",").forEach(function(l){var p=l;l[0].match(/\d/)&&(p=gn+p),hn[p]!==void 0&&hn[p].cssClasses.push(n)})},i1=function(i,n,l){var p=Dt(),g=i,T=_s(g);if(p.securityLevel==="loose"&&n!==void 0&&hn[g]!==void 0){var k=[];if(typeof l=="string"){k=l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<k.length;S++){var N=k[S].trim();N.charAt(0)==='"'&&N.charAt(N.length-1)==='"'&&(N=N.substr(1,N.length-2)),k[S]=N}}k.length===0&&k.push(T),or.push(function(){var B=document.querySelector('[id="'.concat(T,'"]'));B!==null&&B.addEventListener("click",function(){var q;qn.runFunc.apply(qn,[n].concat(function(V){if(Array.isArray(V))return un(V)}(q=k)||function(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}(q)||function(V,et){if(V){if(typeof V=="string")return un(V,et);var J=Object.prototype.toString.call(V).slice(8,-1);return J==="Object"&&V.constructor&&(J=V.constructor.name),J==="Map"||J==="Set"?Array.from(V):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?un(V,et):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},du=function(i){var n=(0,w.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,w.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,w.select)(this);if(l.attr("title")!==null){var p=this.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(l.attr("title")).style("left",window.scrollX+p.left+(p.right-p.left)/2+"px").style("top",window.scrollY+p.top-14+document.body.scrollTop+"px"),n.html(n.html().replace(/&lt;br\/&gt;/g,"<br/>")),l.classed("hover",!0)}}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),(0,w.select)(this).classed("hover",!1)})};or.push(du);var gc="TB";const aa={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,getConfig:function(){return Dt().class},addClass:Yr,bindFunctions:function(i){or.forEach(function(n){n(i)})},clear:function(){zn=[],hn={},(or=[]).push(du),Kt()},getClass:function(i){return hn[i]},getClasses:function(){return hn},addAnnotation:function(i,n){var l=ri(i).className;hn[l].annotations.push(n)},getRelations:function(){return zn},addRelation:function(i){y.debug("Adding relation: "+JSON.stringify(i)),Yr(i.id1),Yr(i.id2),i.id1=ri(i.id1).className,i.id2=ri(i.id2).className,i.relationTitle1=an.sanitizeText(i.relationTitle1.trim(),Dt()),i.relationTitle2=an.sanitizeText(i.relationTitle2.trim(),Dt()),zn.push(i)},getDirection:function(){return gc},setDirection:function(i){gc=i},addMember:hu,addMembers:function(i,n){Array.isArray(n)&&(n.reverse(),n.forEach(function(l){return hu(i,l)}))},cleanupLabel:function(i){return i.substring(0,1)===":"?an.sanitizeText(i.substr(1).trim(),Dt()):$r(i.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(i,n,l){i.split(",").forEach(function(p){i1(p,n,l),hn[p].haveCallback=!0}),pc(i,"clickable")},setCssClass:pc,setLink:function(i,n,l){var p=Dt();i.split(",").forEach(function(g){var T=g;g[0].match(/\d/)&&(T=gn+T),hn[T]!==void 0&&(hn[T].link=qn.formatUrl(n,p),p.securityLevel==="sandbox"?hn[T].linkTarget="_top":hn[T].linkTarget=typeof l=="string"?$r(l):"_blank")}),pc(i,"clickable")},getTooltip:function(i){return hn[i].tooltip},setTooltip:function(i,n){var l=Dt();
72i.split(",").forEach(function(p){n!==void 0&&(hn[p].tooltip=an.sanitizeText(n,l))})},lookUpDomId:_s};var fu=f(681),xs=f.n(fu),a1=f(8282),fi=f.n(a1),yc=0,el=function(i){var n=i.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),l=i.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return n&&!l?nl(n):l?Ai(l):mc(i)},nl=function(i){var n="",l="";try{var p=i[1]?i[1].trim():"",g=i[2]?i[2].trim():"",T=i[3]?Zn(i[3].trim()):"",k=i[4]?i[4].trim():"",S=i[5]?i[5].trim():"";l=p+g+T+" "+k,n=rl(S)}catch{l=i}return{displayText:l,cssStyle:n}},Ai=function(i){var n="",l="";try{var p=i[1]?i[1].trim():"",g=i[2]?i[2].trim():"",T=i[3]?Zn(i[3].trim()):"",k=i[4]?i[4].trim():"";l=p+g+"("+T+")"+(i[5]?" : "+Zn(i[5]).trim():""),n=rl(k)}catch{l=i}return{displayText:l,cssStyle:n}},mc=function(i){var n="",l="",p="",g=i.indexOf("("),T=i.indexOf(")");if(g>1&&T>g&&T<=i.length){var k="",S="",N=i.substring(0,1);N.match(/\w/)?S=i.substring(0,g).trim():(N.match(/\+|-|~|#/)&&(k=N),S=i.substring(1,g).trim());var B=i.substring(g+1,T),q=i.substring(T+1,1);l=rl(q),n=k+S+"("+Zn(B.trim())+")",T<0&&(p=i.substring(T+2).trim())!==""&&(p=" : "+Zn(p))}else n=Zn(i);return{displayText:n,cssStyle:l}},pu=function(i,n,l,p){var g=el(n),T=i.append("tspan").attr("x",p.padding).text(g.displayText);g.cssStyle!==""&&T.attr("style",g.cssStyle),l||T.attr("dy",p.textHeight)},rl=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const hd=function(i,n,l,p){y.debug("Rendering class ",n,l);var g,T=n.id,k={id:T,label:n.id,width:0,height:0},S=i.append("g").attr("id",p.db.lookUpDomId(T)).attr("class","classGroup");g=n.link?S.append("svg:a").attr("xlink:href",n.link).attr("target",n.linkTarget).append("text").attr("y",l.textHeight+l.padding).attr("x",0):S.append("text").attr("y",l.textHeight+l.padding).attr("x",0);var N=!0;n.annotations.forEach(function(_t){var ee=g.append("tspan").text("«"+_t+"»");N||ee.attr("dy",l.textHeight),N=!1});var B=n.id;n.type!==void 0&&n.type!==""&&(B+="<"+n.type+">");var q=g.append("tspan").text(B).attr("class","title");N||q.attr("dy",l.textHeight);var V=g.node().getBBox().height,et=S.append("line").attr("x1",0).attr("y1",l.padding+V+l.dividerMargin/2).attr("y2",l.padding+V+l.dividerMargin/2),J=S.append("text").attr("x",l.padding).attr("y",V+l.dividerMargin+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.members.forEach(function(_t){pu(J,_t,N,l),N=!1});var Tt=J.node().getBBox(),St=S.append("line").attr("x1",0).attr("y1",l.padding+V+l.dividerMargin+Tt.height).attr("y2",l.padding+V+l.dividerMargin+Tt.height),Lt=S.append("text").attr("x",l.padding).attr("y",V+2*l.dividerMargin+Tt.height+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.methods.forEach(function(_t){pu(Lt,_t,N,l),N=!1});var Nt=S.node().getBBox(),Ot=" ";
72n.cssClasses.length>0&&(Ot+=n.cssClasses.join(" "));var Ft=S.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Nt.width+2*l.padding).attr("height",Nt.height+l.padding+.5*l.dividerMargin).attr("class",Ot).node().getBBox().width;return g.node().childNodes.forEach(function(_t){_t.setAttribute("x",(Ft-_t.getBBox().width)/2)}),n.tooltip&&g.insert("title").text(n.tooltip),et.attr("x2",Ft),St.attr("x2",Ft),k.width=Ft,k.height=Nt.height+l.padding+.5*l.dividerMargin,k};var bc={},vc=function(i){var n=Object.entries(bc).find(function(l){return l[1].label===i});if(n)return n[0]};const dd={draw:function(i,n,l,p){var g=Dt().class;bc={},y.info("Rendering diagram "+i);var T,k=Dt().securityLevel;k==="sandbox"&&(T=(0,w.select)("#i"+n));var S,N=k==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body"),B=(k==="sandbox"&&T.nodes()[0].contentDocument,N.select("[id='".concat(n,"']")));(S=B).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 q=new(fi()).Graph({multigraph:!0});q.setGraph({isMultiGraph:!0}),q.setDefaultEdgeLabel(function(){return{}});for(var V=p.db.getClasses(),et=Object.keys(V),J=0;J<et.length;J++){var Tt=V[et[J]],St=hd(B,Tt,g,p);bc[St.id]=St,q.setNode(St.id,St),y.info("Org height: "+St.height)}p.db.getRelations().forEach(function(_t){y.info("tjoho"+vc(_t.id1)+vc(_t.id2)+JSON.stringify(_t)),q.setEdge(vc(_t.id1),vc(_t.id2),{relation:_t},_t.title||"DEFAULT")}),xs().layout(q),q.nodes().forEach(function(_t){_t!==void 0&&q.node(_t)!==void 0&&(y.debug("Node "+_t+": "+JSON.stringify(q.node(_t))),N.select("#"+p.db.lookUpDomId(_t)).attr("transform","translate("+(q.node(_t).x-q.node(_t).width/2)+","+(q.node(_t).y-q.node(_t).height/2)+" )"))}
72),q.edges().forEach(function(_t){_t!==void 0&&q.edge(_t)!==void 0&&(y.debug("Edge "+_t.v+" -> "+_t.w+": "+JSON.stringify(q.edge(_t))),function(ee,ke,ue,ve,Rt){var le=function(fr){switch(fr){case Rt.db.relationType.AGGREGATION:return"aggregation";case Rt.db.EXTENSION:return"extension";case Rt.db.COMPOSITION:return"composition";case Rt.db.DEPENDENCY:return"dependency";case Rt.db.LOLLIPOP:return"lollipop"}};ke.points=ke.points.filter(function(fr){return!Number.isNaN(fr.y)});var Wt,ie,ce=ke.points,se=(0,w.line)().x(function(fr){return fr.x}).y(function(fr){return fr.y}).curve(w.curveBasis),Ne=ee.append("path").attr("d",se(ce)).attr("id","edge"+yc).attr("class","relation"),Ce="";ve.arrowMarkerAbsolute&&(Ce=(Ce=(Ce=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ue.relation.lineType==1&&Ne.attr("class","relation dashed-line"),ue.relation.type1!=="none"&&Ne.attr("marker-start","url("+Ce+"#"+le(ue.relation.type1)+"Start)"),ue.relation.type2!=="none"&&Ne.attr("marker-end","url("+Ce+"#"+le(ue.relation.type2)+"End)");var je,_n,Re,tn,yn=ke.points.length,Ue=qn.calcLabelPosition(ke.points);if(Wt=Ue.x,ie=Ue.y,yn%2!=0&&yn>1){var $e=qn.calcCardinalityPosition(ue.relation.type1!=="none",ke.points,ke.points[0]),bn=qn.calcCardinalityPosition(ue.relation.type2!=="none",ke.points,ke.points[yn-1]);y.debug("cardinality_1_point "+JSON.stringify($e)),y.debug("cardinality_2_point "+JSON.stringify(bn)),je=$e.x,_n=$e.y,Re=bn.x,tn=bn.y}if(ue.title!==void 0){var gr=ee.append("g").attr("class","classLabel"),dr=gr.append("text").attr("class","label").attr("x",Wt).attr("y",ie).attr("fill","red").attr("text-anchor","middle").text(ue.title);window.label=dr;var jr=dr.node().getBBox();gr.insert("rect",":first-child").attr("class","box").attr("x",jr.x-ve.padding/2).attr("y",jr.y-ve.padding/2).attr("width",jr.width+ve.padding).attr("height",jr.height+ve.padding)}y.info("Rendering relation "+JSON.stringify(ue)),ue.relationTitle1!==void 0&&ue.relationTitle1!=="none"&&ee.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",je).attr("y",_n).attr("fill","black").attr("font-size","6").text(ue.relationTitle1),ue.relationTitle2!==void 0&&ue.relationTitle2!=="none"&&ee.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Re).attr("y",tn).attr("fill","black").attr("font-size","6").text(ue.relationTitle2),yc++}(B,q.edge(_t),q.edge(_t).relation,g,p))});var Lt=B.node().getBBox(),Nt=Lt.width+40,Ot=Lt.height+40;Gi(B,0,Nt,g.useMaxWidth);var Ft="".concat(Lt.x-20," ").concat(Lt.y-20," ").concat(Nt," ").concat(Ot);y.debug("viewBox ".concat(Ft)),B.attr("viewBox",Ft),kr(p.db,B,n)}};var o1={extension:function(i,n,l){y.trace("Making markers for ",l),i.append("defs").append("marker").attr("id",n+"-extensionStart").attr("class","marker extension "+n).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"),i.append("defs").append("marker").attr("id",n+"-extensionEnd").attr("class","marker extension "+n).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(i,n){i.append("defs").append("marker").attr("id",n+"-compositionStart").attr("class","marker composition "+n).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"),i.append("defs").append("marker").attr("id",n+"-compositionEnd").attr("class","marker composition "+n).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(i,n){i.append("defs").append("marker").attr("id",n+"-aggregationStart").attr("class","marker aggregation "+n).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"),i.append("defs").append("marker").attr("id",n+"-aggregationEnd").attr("class","marker aggregation "+n).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(i,n){i.append("defs").append("marker").attr("id",n+"-dependencyStart").attr("class","marker dependency "+n).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"),i.append("defs").append("marker").attr("id",n+"-dependencyEnd").attr("class","marker dependency "+n).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")},lollipop:function(i,n,l){i.append("defs").append("marker").attr("id",n+"-lollipopStart").attr("class","marker lollipop "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:function(i,n){i.append("marker").attr("id",n+"-pointEnd").attr("class","marker "+n).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"),i.append("marker").attr("id",n+"-pointStart").attr("class","marker "+n).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(i,n){i.append("marker").attr("id",n+"-circleEnd").attr("class","marker "+n).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"),i.append("marker").attr("id",n+"-circleStart").attr("class","marker "+n).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(i,n){i.append("marker").attr("id",n+"-crossEnd").attr("class","marker cross "+n).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"),i.append("marker").attr("id",n+"-crossStart").attr("class","marker cross "+n).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(i,n){i.append("defs").append("marker").attr("id",n+"-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")}};
72const s1=function(i,n,l,p){n.forEach(function(g){o1[g](i,l,p)})};function oa(i){return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oa(i)}const Zi=function(i,n,l,p){var g=i||"";if(oa(g)==="object"&&(g=g[0]),rn(Dt().flowchart.htmlLabels)){g=g.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+g);var T=function(q){var V,et=(0,w.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),J=et.append("xhtml:div"),Tt=q.label,St=q.isNode?"nodeLabel":"edgeLabel";return J.html('<span class="'+St+'" '+(q.labelStyle?'style="'+q.labelStyle+'"':"")+">"+Tt+"</span>"),(V=q.labelStyle)&&J.attr("style",V),J.style("display","inline-block"),J.style("white-space","nowrap"),J.attr("xmlns","http://www.w3.org/1999/xhtml"),et.node()}({isNode:p,label:Vs(g).replace(/fa[lrsb]?:fa-[\w-]+/g,function(q){return"<i class='".concat(q.replace(":"," "),"'></i>")}),labelStyle:n.replace("fill:","color:")});return T}var k=document.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",n.replace("color:","fill:"));var S=[];S=typeof g=="string"?g.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(g)?g:[];for(var N=0;N<S.length;N++){var B=document.createElementNS("http://www.w3.org/2000/svg","tspan");B.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),B.setAttribute("dy","1em"),B.setAttribute("x","0"),l?B.setAttribute("class","title-row"):B.setAttribute("class","row"),B.textContent=S[N].trim(),k.appendChild(B)}return k};var Mi=function(i,n,l,p){var g;g=l||"node default";var T=i.insert("g").attr("class",g).attr("id",n.domId||n.id),k=T.insert("g").attr("class","label").attr("style",n.labelStyle),S=typeof n.labelText=="string"?n.labelText:n.labelText[0],N=k.node().appendChild(Zi(cr(Vs(S),Dt()),n.labelStyle,!1,p)),B=N.getBBox();if(rn(Dt().flowchart.htmlLabels)){var q=N.children[0],V=(0,w.select)(N);B=q.getBoundingClientRect(),V.attr("width",B.width),V.attr("height",B.height)}var et=n.padding/2;return k.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),{shapeSvg:T,bbox:B,halfPadding:et,label:k}},ei=function(i,n){var l=n.node().getBBox();i.width=l.width,i.height=l.height};function Ra(i,n,l,p){return i.insert("polygon",":first-child").attr("points",p.map(function(g){return g.x+","+g.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-n/2+","+l/2+")")}var Kn={},Ca={},sa={},ts=function(i,n){return y.trace("In isDecendant",n," ",i," = ",Ca[n].indexOf(i)>=0),Ca[n].indexOf(i)>=0},_c=function i(n,l,p,g){y.warn("Copying children of ",n,"root",g,"data",l.node(n),g);var T=l.children(n)||[];n!==g&&T.push(n),y.warn("Copying (nodes) clusterId",n,"nodes",T),T.forEach(function(k){if(l.children(k).length>0)i(k,l,p,g);else{var S=l.node(k);y.info("cp ",k," to ",g," with parent ",n),p.setNode(k,S),g!==l.parent(k)&&(y.warn("Setting parent",k,l.parent(k)),p.setParent(k,l.parent(k))),n!==g&&k!==n?(y.debug("Setting parent",k,n),p.setParent(k,n)):(y.info("In copy ",n,"root",g,"data",l.node(n),g),y.debug("Not Setting parent for node=",k,"cluster!==rootId",n!==g,"node!==clusterId",k!==n));var N=l.edges(k);y.debug("Copying Edges",N),N.forEach(function(B){y.info("Edge",B);var q=l.edge(B.v,B.w,B.name);y.info("Edge data",q,g);try{(function(V,et){return y.info("Decendants of ",et," is ",Ca[et]),y.info("Edge is ",V),V.v!==et&&V.w!==et&&(Ca[et]?(y.info("Here "),Ca[et].indexOf(V.v)>=0||!!ts(V.v,et)||!!ts(V.w,et)||Ca[et].indexOf(V.w)>=0):(y.debug("Tilt, ",et,",not in decendants"),!1))})(B,g)?(y.info("Copying as ",B.v,B.w,q,B.name),p.setEdge(B.v,B.w,q,B.name),y.info("newGraph edges ",p.edges(),p.edge(p.edges()[0]))):y.info("Skipping copy of edge ",B.v,"-->",B.w," rootId: ",g," clusterId:",n)}catch(V){y.error(V)}})}y.debug("Removing node",k),l.removeNode(k)})},ks=function i(n,l){for(var p=l.children(n),g=[].concat(p),T=0;T<p.length;T++)sa[p[T]]=n,g=g.concat(i(p[T],l));return g},Ro=function i(n,l){y.trace("Searching",n);var p=l.children(n);if(y.trace("Searching children of id ",n,p),p.length<1)return y.trace("This is a valid node",n),n;for(var g=0;g<p.length;g++){var T=i(p[g],l);if(T)return y.trace("Found replacement for",n," => ",T),T}},Po=function(i){return Kn[i]&&Kn[i].externalConnections&&Kn[i]?Kn[i].id:i},il=function(i,n){!i||n>10?y.debug("Opting out, no graph "):(y.debug("Opting in, graph "),i.nodes().forEac
72h(function(l){i.children(l).length>0&&(y.warn("Cluster identified",l," Replacement id in edges: ",Ro(l,i)),Ca[l]=ks(l,i),Kn[l]={id:Ro(l,i),clusterData:i.node(l)})}),i.nodes().forEach(function(l){var p=i.children(l),g=i.edges();p.length>0?(y.debug("Cluster identified",l,Ca),g.forEach(function(T){T.v!==l&&T.w!==l&&ts(T.v,l)^ts(T.w,l)&&(y.warn("Edge: ",T," leaves cluster ",l),y.warn("Decendants of XXX ",l,": ",Ca[l]),Kn[l].externalConnections=!0)})):y.debug("Not a cluster ",l,Ca)}),i.edges().forEach(function(l){var p=i.edge(l);y.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),y.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(i.edge(l)));var g=l.v,T=l.w;if(y.warn("Fix XXX",Kn,"ids:",l.v,l.w,"Translateing: ",Kn[l.v]," --- ",Kn[l.w]),Kn[l.v]&&Kn[l.w]&&Kn[l.v]===Kn[l.w]){y.warn("Fixing and trixing link to self - removing XXX",l.v,l.w,l.name),y.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),g=Po(l.v),T=Po(l.w),i.removeEdge(l.v,l.w,l.name);var k=l.w+"---"+l.v;i.setNode(k,{domId:k,id:k,labelStyle:"",labelText:p.label,padding:0,shape:"labelRect",style:""});var S=JSON.parse(JSON.stringify(p)),N=JSON.parse(JSON.stringify(p));S.label="",S.arrowTypeEnd="none",N.label="",S.fromCluster=l.v,N.toCluster=l.v,i.setEdge(g,k,S,l.name+"-cyclic-special"),i.setEdge(k,T,N,l.name+"-cyclic-special")}else(Kn[l.v]||Kn[l.w])&&(y.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),g=Po(l.v),T=Po(l.w),i.removeEdge(l.v,l.w,l.name),g!==l.v&&(p.fromCluster=l.v),T!==l.w&&(p.toCluster=l.w),y.warn("Fix Replacing with XXX",g,T,l.name),i.setEdge(g,T,p,l.name))}),y.warn("Adjusted Graph",fi().json.write(i)),es(i,0),y.trace(Kn))},es=function i(n,l){if(y.warn("extractor - ",l,fi().json.write(n),n.children("D")),l>10)y.error("Bailing out");else{for(var p=n.nodes(),g=!1,T=0;T<p.length;T++){var k=p[T],S=n.children(k);g=g||S.length>0}if(g){y.debug("Nodes = ",p,l);for(var N=0;N<p.length;N++){var B=p[N];if(y.debug("Extracting node",B,Kn,Kn[B]&&!Kn[B].externalConnections,!n.parent(B),n.node(B),n.children("D")," Depth ",l),Kn[B])if(!Kn[B].externalConnections&&n.children(B)&&n.children(B).length>0){y.warn("Cluster without external connections, without a parent and with children",B,l);var q=n.graph().rankdir==="TB"?"LR":"TB";Kn[B]&&Kn[B].clusterData&&Kn[B].clusterData.dir&&(q=Kn[B].clusterData.dir,y.warn("Fixing dir",Kn[B].clusterData.dir,q));var V=new(fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:q,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});y.warn("Old graph before copy",fi().json.write(n)),_c(B,n,V,B),n.setNode(B,{clusterNode:!0,id:B,clusterData:Kn[B].clusterData,labelText:Kn[B].labelText,graph:V}),y.warn("New graph after copy node: (",B,")",fi().json.write(V)),y.debug("Old graph after copy",fi().json.write(n))}else y.warn("Cluster ** ",B," **not meeting the criteria !externalConnections:",!Kn[B].externalConnections," no parent: ",!n.parent(B)," children ",n.children(B)&&n.children(B).length>0,n.children("D"),l),y.debug(Kn);else y.debug("Not a cluster",B,l)}p=n.nodes(),y.warn("New list of nodes",p);for(var et=0;et<p.length;et++){var J=p[et],Tt=n.node(J);y.warn(" Now next level",J,Tt),Tt.clusterNode&&i(Tt.graph,l+1)}}else y.debug("Done, no node has children",n.nodes())}},al=function i(n,l){if(l.length===0)return[];var p=Object.assign(l);return l.forEach(function(g){var T=n.children(g),k=i(n,T);p=p.concat(k)}),p},xc=function(i){return al(i,i.children())},c1=f(3841);const kc=function(i,n,l,p){var g=i.x,T=i.y,k=g-p.x,S=T-p.y,N=Math.sqrt(n*n*S*S+l*l*k*k),B=Math.abs(n*l*k/N);p.x<g&&(B=-B);var q=Math.abs(n*l*S/N);return p.y<T&&(q=-q),{x:g+B,y:T+q}};function l1(i,n){return i*n>0}const wc=function(i,n,l,p){var g,T,k,S,N,B,q,V,et,J,Tt,St,Lt;if(g=n.y-i.y,k=i.x-n.x,N=n.x*i.y-i.x*n.y,et=g*l.x+k*l.y+N,J=g*p.x+k*p.y+N,!(et!==0&&J!==0&&l1(et,J)||(T=p.y-l.y,S=l.x-p.x,B=p.x*l.y-l.x*p.y,q=T*i.x+S*i.y+B,V=T*n.x+S*n.y+B,q!==0&&V!==0&&l1(q,V)||(Tt=g*S-T*k)==0)))return St=Math.abs(Tt/2),{x:(Lt=k*B-S*N)<0?(Lt-St)/Tt:(Lt+St)/Tt,y:(Lt=T*N-g*B)<0?(Lt-St)/Tt:(Lt+St)/Tt}},jo=function(i,n){var l,p,g=i.x,T=i.y,k=n.x-g,S=n.y-T,N=i.width/2,B=i.height/2;return Math.abs(S)*N>Math.abs(k)*B?(S<0&&(B=-B),l=S===0?0:B*k/S,p=B):(k<0&&(N=-N),l=N,p=k===0?0:N*S/k),{x:g+l,y:T+p}},ws=(f.n(c1)(),function(i,n,l){return kc(i,n,n,l)}),Ka=function(i,n,l){var p=i.x,g=i.y,T=[],k=Number.POSITIVE_INFINITY,S=Number.POSITIVE_INFINITY;
72typeof n.forEach=="function"?n.forEach(function(Tt){k=Math.min(k,Tt.x),S=Math.min(S,Tt.y)}):(k=Math.min(k,n.x),S=Math.min(S,n.y));for(var N=p-i.width/2-k,B=g-i.height/2-S,q=0;q<n.length;q++){var V=n[q],et=n[q<n.length-1?q+1:0],J=wc(i,l,{x:N+V.x,y:B+V.y},{x:N+et.x,y:B+et.y});J&&T.push(J)}return T.length?(T.length>1&&T.sort(function(Tt,St){var Lt=Tt.x-l.x,Nt=Tt.y-l.y,Ot=Math.sqrt(Lt*Lt+Nt*Nt),Ft=St.x-l.x,_t=St.y-l.y,ee=Math.sqrt(Ft*Ft+_t*_t);return Ot<ee?-1:Ot===ee?0:1}),T[0]):i},zo=jo;function Ts(i){return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ts(i)}function ol(i,n,l,p){var g=[],T=function(S){g.push(S),g.push(0)},k=function(S){g.push(0),g.push(S)};n.includes("t")?(y.debug("add top border"),T(l)):k(l),n.includes("r")?(y.debug("add right border"),T(p)):k(p),n.includes("b")?(y.debug("add bottom border"),T(l)):k(l),n.includes("l")?(y.debug("add left border"),T(p)):k(p),i.attr("stroke-dasharray",g.join(" "))}var u1=function(i,n,l){var p=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),g=70,T=10;l==="LR"&&(g=10,T=70);var k=p.append("rect").attr("x",-1*g/2).attr("y",-1*T/2).attr("width",g).attr("height",T).attr("class","fork-join");return ei(n,k),n.height=n.height+n.padding/2,n.width=n.width+n.padding/2,n.intersect=function(S){return zo(n,S)},p},h1={question:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding+(g.height+n.padding),k=[{x:T/2,y:0},{x:T,y:-T/2},{x:T/2,y:-T},{x:0,y:-T/2}];y.info("Question main (Circle)");var S=Ra(p,T,T,k);return S.attr("style",n.style),ei(n,S),n.intersect=function(N){return y.warn("Intersect called"),Ka(n,k,N)},p},rect:function(i,n){var l=Mi(i,n,"node "+n.classes,!0),p=l.shapeSvg,g=l.bbox,T=l.halfPadding;y.trace("Classes = ",n.classes);var k=p.insert("rect",":first-child"),S=g.width+n.padding,N=g.height+n.padding;if(k.attr("class","basic label-container").attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",-g.width/2-T).attr("y",-g.height/2-T).attr("width",S).attr("height",N),n.props){var B=new Set(Object.keys(n.props));n.props.borders&&(ol(k,n.props.borders,S,N),B.delete("borders")),B.forEach(function(q){y.warn("Unknown node property ".concat(q))})}return ei(n,k),n.intersect=function(q){return zo(n,q)},p},labelRect:function(i,n){var l=Mi(i,n,"label",!0),p=l.shapeSvg;y.trace("Classes = ",n.classes);var g=p.insert("rect",":first-child");if(g.attr("width",0).attr("height",0),p.attr("class","label edgeLabel"),n.props){var T=new Set(Object.keys(n.props));n.props.borders&&(ol(g,n.props.borders,0,0),T.delete("borders")),T.forEach(function(k){y.warn("Unknown node property ".concat(k))})}return ei(n,g),n.intersect=function(k){return zo(n,k)},p},rectWithTitle:function(i,n){var l;l=n.classes?"node "+n.classes:"node default";var p,g=i.insert("g").attr("class",l).attr("id",n.domId||n.id),T=g.insert("rect",":first-child"),k=g.insert("line"),S=g.insert("g").attr("class","label"),N=n.labelText.flat?n.labelText.flat():n.labelText;p=Ts(N)==="object"?N[0]:N,y.info("Label text abc79",p,N,Ts(N)==="object");var B=S.node().appendChild(Zi(p,n.labelStyle,!0,!0)),q={width:0,height:0};if(rn(Dt().flowchart.htmlLabels)){var V=B.children[0],et=(0,w.select)(B);q=V.getBoundingClientRect(),et.attr("width",q.width),et.attr("height",q.height)}y.info("Text 2",N);var J=N.slice(1,N.length),Tt=B.getBBox(),St=S.node().appendChild(Zi(J.join?J.join("<br/>"):J,n.labelStyle,!0,!0));if(rn(Dt().flowchart.htmlLabels)){var Lt=St.children[0],Nt=(0,w.select)(St);q=Lt.getBoundingClientRect(),Nt.attr("width",q.width),Nt.attr("height",q.height)}var Ot=n.padding/2;return(0,w.select)(St).attr("transform","translate( "+(q.width>Tt.width?0:(Tt.width-q.width)/2)+", "+(Tt.height+Ot+5)+")"),(0,w.select)(B).attr("transform","translate( "+(q.width<Tt.width?0:-(Tt.width-q.width)/2)+", 0)"),q=S.node().getBBox(),S.attr("transform","translate("+-q.width/2+", "+(-q.height/2-Ot+3)+")"),T.attr("class","outer title-state").attr("x",-q.width/2-Ot).attr("y",-q.height/2-Ot).attr("width",q.width+n.padding).attr("height",q.height+n.padding),k.attr("class","divider").attr("x1",-q.width/2-Ot).attr("x2",q.width/2+Ot).attr("y1",-q.height/2-Ot+Tt.height+Ot).attr("y2",-q.height/2-Ot+Tt.height+Ot),ei(n,T),n.intersect=function(Ft){return zo(n,Ft)},g},choice:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id);return l.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(p){return p.x+","+p.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),n.width=28,n.height=28,n.intersect=function(p){return ws(n,14,p)},l},circle:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=l.halfPadding,k=p.insert("circle",":first-child");return k.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T).attr("width",g.width+n.padding).attr("height",g.he
72ight+n.padding),y.info("Circle main"),ei(n,k),n.intersect=function(S){return y.info("Circle intersect",n,g.width/2+T,S),ws(n,g.width/2+T,S)},p},doublecircle:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=l.halfPadding,k=p.insert("g",":first-child"),S=k.insert("circle"),N=k.insert("circle");return S.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T+5).attr("width",g.width+n.padding+10).attr("height",g.height+n.padding+10),N.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T).attr("width",g.width+n.padding).attr("height",g.height+n.padding),y.info("DoubleCircle main"),ei(n,S),n.intersect=function(B){return y.info("DoubleCircle intersect",n,g.width/2+T+5,B),ws(n,g.width/2+T+5,B)},p},stadium:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.height+n.padding,k=g.width+T/4+n.padding,S=p.insert("rect",":first-child").attr("style",n.style).attr("rx",T/2).attr("ry",T/2).attr("x",-k/2).attr("y",-T/2).attr("width",k).attr("height",T);return ei(n,S),n.intersect=function(N){return zo(n,N)},p},hexagon:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.height+n.padding,k=T/4,S=g.width+2*k+n.padding,N=[{x:k,y:0},{x:S-k,y:0},{x:S,y:-T/2},{x:S-k,y:-T},{x:k,y:-T},{x:0,y:-T/2}],B=Ra(p,S,T,N);return B.attr("style",n.style),ei(n,B),n.intersect=function(q){return Ka(n,N,q)},p},rect_left_inv_arrow:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-k/2,y:0},{x:T,y:0},{x:T,y:-k}
72,{x:-k/2,y:-k},{x:0,y:-k/2}];return Ra(p,T,k,S).attr("style",n.style),n.width=T+k,n.height=k,n.intersect=function(N){return Ka(n,S,N)},p},lean_right:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-2*k/6,y:0},{x:T-k/6,y:0},{x:T+2*k/6,y:-k},{x:k/6,y:-k}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},lean_left:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:2*k/6,y:0},{x:T+k/6,y:0},{x:T-2*k/6,y:-k},{x:-k/6,y:-k}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},trapezoid:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-2*k/6,y:0},{x:T+2*k/6,y:0},{x:T-k/6,y:-k},{x:k/6,y:-k}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},inv_trapezoid:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:k/6,y:0},{x:T-k/6,y:0},{x:T+2*k/6,y:-k},{x:-2*k/6,y:-k}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},rect_right_inv_arrow:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:0,y:0},{x:T+k/2,y:0},{x:T,y:-k/2},{x:T+k/2,y:-k},{x:0,y:-k}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},cylinder:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=T/2,S=k/(2.5+T/50),N=g.height+S+n.padding,B="M 0,"+S+" a "+k+","+S+" 0,0,0 "+T+" 0 a "+k+","+S+" 0,0,0 "+-T+" 0 l 0,"+N+" a "+k+","+S+" 0,0,0 "+T+" 0 l 0,"+-N,q=p.attr("label-offset-y",S).insert("path",":first-child").attr("style",n.style).attr("d",B).attr("transform","translate("+-T/2+","+-(N/2+S)+")");return ei(n,q),n.intersect=function(V){var et=zo(n,V),J=et.x-n.x;if(k!=0&&(Math.abs(J)<n.width/2||Math.abs(J)==n.width/2&&Math.abs(et.y-n.y)>n.height/2-S)){var Tt=S*S*(1-J*J/(k*k));Tt!=0&&(Tt=Math.sqrt(Tt)),Tt=S-Tt,V.y-n.y>0&&(Tt=-Tt),et.y+=Tt}return et},p},start:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),p=l.insert("circle",":first-child");return p.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ei(n,p),n.intersect=function(g){return ws(n,7,g)},l},end:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),p=l.insert("circle",":first-child"),g=l.insert("circle",":first-child");return g.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),p.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ei(n,g),n.intersect=function(T){return ws(n,7,T)},l},note:function(i,n){var l=Mi(i,n,"node "+n.classes,!0),p=l.shapeSvg,g=l.bbox,T=l.halfPadding;y.info("Classes = ",n.classes);var k=p.insert("rect",":first-child");return k.attr("rx",n.rx).attr("ry",n.ry).attr("x",-g.width/2-T).attr("y",-g.height/2-T).attr("width",g.width+n.padding).attr("height",g.height+n.padding),ei(n,k),n.intersect=function(S){return zo(n,S)},p},subroutine:function(i,n){var l=Mi(i,n,void 0,!0),p=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:0,y:0},{x:T,y:0},{x:T,y:-k}
72,{x:0,y:-k},{x:0,y:0},{x:-8,y:0},{x:T+8,y:0},{x:T+8,y:-k},{x:-8,y:-k},{x:-8,y:0}],N=Ra(p,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(B){return Ka(n,S,B)},p},fork:u1,join:u1,class_box:function(i,n){var l,p=n.padding/2;l=n.classes?"node "+n.classes:"node default";var g=i.insert("g").attr("class",l).attr("id",n.domId||n.id),T=g.insert("rect",":first-child"),k=g.insert("line"),S=g.insert("line"),N=0,B=4,q=g.insert("g").attr("class","label"),V=0,et=n.classData.annotations&&n.classData.annotations[0],J=n.classData.annotations[0]?"«"+n.classData.annotations[0]+"»":"",Tt=q.node().appendChild(Zi(J,n.labelStyle,!0,!0)),St=Tt.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Lt=Tt.children[0],Nt=(0,w.select)(Tt);St=Lt.getBoundingClientRect(),Nt.attr("width",St.width),Nt.attr("height",St.height)}n.classData.annotations[0]&&(B+=St.height+4,N+=St.width);var Ot=n.classData.id;n.classData.type!==void 0&&n.classData.type!==""&&(Dt().flowchart.htmlLabels?Ot+="&lt;"+n.classData.type+"&gt;":Ot+="<"+n.classData.type+">");var Ft=q.node().appendChild(Zi(Ot,n.labelStyle,!0,!0));(0,w.select)(Ft).attr("class","classTitle");var _t=Ft.getBBox();if(rn(Dt().flowchart.htmlLabels)){var ee=Ft.children[0],ke=(0,w.select)(Ft);_t=ee.getBoundingClientRect(),ke.attr("width",_t.width),ke.attr("height",_t.height)}B+=_t.height+4,_t.width>N&&(N=_t.width);var ue=[];n.classData.members.forEach(function(Wt){var ie=el(Wt),ce=ie.displayText;Dt().flowchart.htmlLabels&&(ce=ce.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var se=q.node().appendChild(Zi(ce,ie.cssStyle?ie.cssStyle:n.labelStyle,!0,!0)),Ne=se.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Ce=se.children[0],je=(0,w.select)(se);Ne=Ce.getBoundingClientRect(),je.attr("width",Ne.width),je.attr("height",Ne.height)}Ne.width>N&&(N=Ne.width),B+=Ne.height+4,ue.push(se)}),B+=8;var ve=[];if(n.classData.methods.forEach(function(Wt){var ie=el(Wt),ce=ie.displayText;Dt().flowchart.htmlLabels&&(ce=ce.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var se=q.node().appendChild(Zi(ce,ie.cssStyle?ie.cssStyle:n.labelStyle,!0,!0)),Ne=se.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Ce=se.children[0],je=(0,w.select)(se);Ne=Ce.getBoundingClientRect(),je.attr("width",Ne.width),je.attr("height",Ne.height)}Ne.width>N&&(N=Ne.width),B+=Ne.height+4,ve.push(se)}),B+=8,et){var Rt=(N-St.width)/2;(0,w.select)(Tt).attr("transform","translate( "+(-1*N/2+Rt)+", "+-1*B/2+")"),V=St.height+4}var le=(N-_t.width)/2;return(0,w.select)(Ft).attr("transform","translate( "+(-1*N/2+le)+", "+(-1*B/2+V)+")"),V+=_t.height+4,k.attr("class","divider").attr("x1",-N/2-p).attr("x2",N/2+p).attr("y1",-B/2-p+8+V).attr("y2",-B/2-p+8+V),V+=8,ue.forEach(function(Wt){(0,w.select)(Wt).attr("transform","translate( "+-N/2+", "+(-1*B/2+V+4)+")"),V+=_t.height+4}),V+=8,S.attr("class","divider").attr("x1",-N/2-p).attr("x2",N/2+p).attr("y1",-B/2-p+8+V).attr("y2",-B/2-p+8+V),V+=8,ve.forEach(function(Wt){(0,w.select)(Wt).attr("transform","translate( "+-N/2+", "+(-1*B/2+V)+")"),V+=_t.height+4}),T.attr("class","outer title-state").attr("x",-N/2-p).attr("y",-B/2-p).attr("width",N+n.padding).attr("height",B+n.padding),ei(n,T),n.intersect=function(Wt){return zo(n,Wt)},g}},mo={},sl=function(i){var n=mo[i.id];y.trace("Transforming node",i.diff,i,"translate("+(i.x-i.width/2-5)+", "+i.width/2+")");var l=i.diff||0;return i.clusterNode?n.attr("transform","translate("+(i.x+l-i.width/2)+", "+(i.y-i.height/2-8)+")"):n.attr("transform","translate("+i.x+", "+i.y+")"),l},Ja={rect:function(i,n){y.trace("Creating subgraph rect for ",n.id,n);var l=i.insert("g").attr("class","cluster"+(n.class?" "+n.class:"")).attr("id",n.id),p=l.insert("rect",":first-child"),g=l.insert("g").attr("class","cluster-label"),T=g.node().appendChild(Zi(n.labelText,n.labelStyle,void 0,!0)),k=T.getBBox();if(rn(Dt().flowchart.htmlLabels)){var S=T.children[0],N=(0,w.select)(T);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}var B=0*n.padding,q=B/2,V=n.width<=k.width+B?k.width+B:n.width;n.width<=k.width+B?n.diff=(k.width-n.width)/2-n.padding/2:n.diff=-n.padding/2,y.trace("Data ",n,JSON.stringify(n)),p.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",
72n.x-V/2).attr("y",n.y-n.height/2-q).attr("width",V).attr("height",n.height+B),g.attr("transform","translate("+(n.x-k.width/2)+", "+(n.y-n.height/2+n.padding/3)+")");var et=p.node().getBBox();return n.width=et.width,n.height=et.height,n.intersect=function(J){return jo(n,J)},l},roundedWithTitle:function(i,n){var l=i.insert("g").attr("class",n.classes).attr("id",n.id),p=l.insert("rect",":first-child"),g=l.insert("g").attr("class","cluster-label"),T=l.append("rect"),k=g.node().appendChild(Zi(n.labelText,n.labelStyle,void 0,!0)),S=k.getBBox();if(rn(Dt().flowchart.htmlLabels)){var N=k.children[0],B=(0,w.select)(k);S=N.getBoundingClientRect(),B.attr("width",S.width),B.attr("height",S.height)}S=k.getBBox();var q=0*n.padding,V=q/2,et=n.width<=S.width+n.padding?S.width+n.padding:n.width;n.width<=S.width+n.padding?n.diff=(S.width+0*n.padding-n.width)/2:n.diff=-n.padding/2,p.attr("class","outer").attr("x",n.x-et/2-V).attr("y",n.y-n.height/2-V).attr("width",et+q).attr("height",n.height+q),T.attr("class","inner").attr("x",n.x-et/2-V).attr("y",n.y-n.height/2-V+S.height-1).attr("width",et+q).attr("height",n.height+q-S.height-3),g.attr("transform","translate("+(n.x-S.width/2)+", "+(n.y-n.height/2-n.padding/3+(rn(Dt().flowchart.htmlLabels)?5:3))+")");var J=p.node().getBBox();return n.height=J.height,n.intersect=function(Tt){return jo(n,Tt)},l},noteGroup:function(i,n){var l=i.insert("g").attr("class","note-cluster").attr("id",n.id),p=l.insert("rect",":first-child"),g=0*n.padding,T=g/2;p.attr("rx",n.rx).attr("ry",n.ry).attr("x",n.x-n.width/2-T).attr("y",n.y-n.height/2-T).attr("width",n.width+g).attr("height",n.height+g).attr("fill","none");var k=p.node().getBBox();return n.width=k.width,n.height=k.height,n.intersect=function(S){return jo(n,S)},l},divider:function(i,n){var l=i.insert("g").attr("class",n.classes).attr("id",n.id),p=l.insert("rect",":first-child"),g=0*n.padding,T=g/2;p.attr("class","divider").attr("x",n.x-n.width/2-T).attr("y",n.y-n.height/2).attr("width",n.width+g).attr("height",n.height+g);var k=p.node().getBBox();return n.width=k.width,n.height=k.height,n.diff=-n.padding/2,n.intersect=function(S){return jo(n,S)},l}},Aa={},to={},pi={},d1=function(i,n){var l=Zi(n.label,n.labelStyle),p=i.insert("g").attr("class","edgeLabel"),g=p.insert("g").attr("class","label");g.node().appendChild(l);var T,k=l.getBBox();if(rn(Dt().flowchart.htmlLabels)){var S=l.children[0],N=(0,w.select)(l);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}if(g.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),to[n.id]=p,n.width=k.width,n.height=k.height,n.startLabelLeft){var B=Zi(n.startLabelLeft,n.labelStyle),q=i.insert("g").attr("class","edgeTerminals"),V=q.insert("g").attr("class","inner");T=V.node().appendChild(B);var et=B.getBBox();V.attr("transform","translate("+-et.width/2+", "+-et.height/2+")"),pi[n.id]||(pi[n.id]={}),pi[n.id].startLeft=q,Es(T,n.startLabelLeft)}if(n.startLabelRight){var J=Zi(n.startLabelRight,n.labelStyle),Tt=i.insert("g").attr("class","edgeTerminals"),St=Tt.insert("g").attr("class","inner");T=Tt.node().appendChild(J),St.node().appendChild(J);var Lt=J.getBBox();St.attr("transform","translate("+-Lt.width/2+", "+-Lt.height/2+")"),pi[n.id]||(pi[n.id]={}),pi[n.id].startRight=Tt,Es(T,n.startLabelRight)}if(n.endLabelLeft){var Nt=Zi(n.endLabelLeft,n.labelStyle),Ot=i.insert("g").attr("class","edgeTerminals"),Ft=Ot.insert("g").attr("class","inner");T=Ft.node().appendChild(Nt);var _t=Nt.getBBox();Ft.attr("transform","translate("+-_t.width/2+", "+-_t.height/2+")"),Ot.node().appendChild(Nt),pi[n.id]||(pi[n.id]={}),pi[n.id].endLeft=Ot,Es(T,n.endLabelLeft)}if(n.endLabelRight){var ee=Zi(n.endLabelRight,n.labelStyle),ke=i.insert("g").attr("class","edgeTerminals"),ue=ke.insert("g").attr("class","inner");T=ue.node().appendChild(ee);var ve=ee.getBBox();ue.attr("transform","translate("+-ve.width/2+", "+-ve.height/2+")"),ke.node().appendChild(ee),pi[n.id]||(pi[n.id]={}),pi[n.id].endRight=ke,Es(T,n.endLabelRight)}};function Es(i,n){Dt().flowchart.htmlLabels&&i&&(i.style.width=9*n.length+"px",i.style.height="12px")}var f1=function(i,n){y.info("Moving label abc78 ",i.id,i.label,to[i.id]);var l=n.updatedPath?n.updatedPath:n.originalPath;if(i.label){var p=to[i.id],g=i.x,T=i.y;if(l){var k=qn.calcLabelPosition(l);y.info("Moving label from (",g,",",T,") to (",k.x,",",k.y,") abc78")}p.attr("transform","translate("+g+", "+T+")")}if(i.startLabelLeft){var S=pi[i.id].startLeft,N=i.x,B=i.y;
72if(l){var q=qn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_left",l);N=q.x,B=q.y}S.attr("transform","translate("+N+", "+B+")")}if(i.startLabelRight){var V=pi[i.id].startRight,et=i.x,J=i.y;if(l){var Tt=qn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_right",l);et=Tt.x,J=Tt.y}V.attr("transform","translate("+et+", "+J+")")}if(i.endLabelLeft){var St=pi[i.id].endLeft,Lt=i.x,Nt=i.y;if(l){var Ot=qn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_left",l);Lt=Ot.x,Nt=Ot.y}St.attr("transform","translate("+Lt+", "+Nt+")")}if(i.endLabelRight){var Ft=pi[i.id].endRight,_t=i.x,ee=i.y;if(l){var ke=qn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_right",l);_t=ke.x,ee=ke.y}Ft.attr("transform","translate("+_t+", "+ee+")")}},gu=function(i,n){y.warn("abc88 cutPathAtIntersect",i,n);var l=[],p=i[0],g=!1;return i.forEach(function(T){if(y.info("abc88 checking point",T,n),function(N,B){var q=N.x,V=N.y,et=Math.abs(B.x-q),J=Math.abs(B.y-V),Tt=N.width/2,St=N.height/2;return et>=Tt||J>=St}(n,T)||g)y.warn("abc88 outside",T,p),p=T,g||l.push(T);else{var k=function(N,B,q){y.warn(`intersection calc abc89:
73  outsidePoint: `.concat(JSON.stringify(B),`
74  insidePoint : `).concat(JSON.stringify(q),`
75  node        : x:`).concat(N.x," y:").concat(N.y," w:").concat(N.width," h:").concat(N.height));var V=N.x,et=N.y,J=Math.abs(V-q.x),Tt=N.width/2,St=q.x<B.x?Tt-J:Tt+J,Lt=N.height/2,Nt=Math.abs(B.y-q.y),Ot=Math.abs(B.x-q.x);if(Math.abs(et-B.y)*Tt>Math.abs(V-B.x)*Lt){var Ft=q.y<B.y?B.y-Lt-et:et-Lt-B.y;St=Ot*Ft/Nt;var _t={x:q.x<B.x?q.x+St:q.x-Ot+St,y:q.y<B.y?q.y+Nt-Ft:q.y-Nt+Ft};return St===0&&(_t.x=B.x,_t.y=B.y),Ot===0&&(_t.x=B.x),Nt===0&&(_t.y=B.y),y.warn("abc89 topp/bott calc, Q ".concat(Nt,", q ").concat(Ft,", R ").concat(Ot,", r ").concat(St),_t),_t}var ee=Nt*(St=q.x<B.x?B.x-Tt-V:V-Tt-B.x)/Ot,ke=q.x<B.x?q.x+Ot-St:q.x-Ot+St,ue=q.y<B.y?q.y+ee:q.y-ee;return y.warn("sides calc abc89, Q ".concat(Nt,", q ").concat(ee,", R ").concat(Ot,", r ").concat(St),{_x:ke,_y:ue}),St===0&&(ke=B.x,ue=B.y),Ot===0&&(ke=B.x),Nt===0&&(ue=B.y),{x:ke,y:ue}}(n,p,T);y.warn("abc88 inside",T,p,k),y.warn("abc88 intersection",k);var S=!1;l.forEach(function(N){S=S||N.x===k.x&&N.y===k.y}),l.find(function(N){return N.x===k.x&&N.y===k.y})?y.warn("abc88 no intersect",k,l):l.push(k),g=!0}}),y.warn("abc88 returning points",l),l},p1=function i(n,l,p,g){y.info("Graph in recursive render: XXX",fi().json.write(l),g);var T=l.graph().rankdir;y.trace("Dir in recursive render - dir:",T);var k=n.insert("g").attr("class","root");l.nodes()?y.info("Recursive render XXX",l.nodes()):y.info("No nodes found for",l),l.edges().length>0&&y.trace("Recursive edges",l.edge(l.edges()[0]));var S=k.insert("g").attr("class","clusters"),N=k.insert("g").attr("class","edgePaths"),B=k.insert("g").attr("class","edgeLabels"),q=k.insert("g").attr("class","nodes");l.nodes().forEach(function(et){var J=l.node(et);if(g!==void 0){var Tt=JSON.parse(JSON.stringify(g.clusterData));y.info("Setting data for cluster XXX (",et,") ",Tt,g),l.setNode(g.id,Tt),l.parent(et)||(y.trace("Setting parent",et,g.id),l.setParent(et,g.id,Tt))}if(y.info("(Insert) Node XXX"+et+": "+JSON.stringify(l.node(et))),J&&J.clusterNode){y.info("Cluster identified",et,J.width,l.node(et));var St=i(q,J.graph,p,l.node(et)),Lt=St.elem;ei(J,Lt),J.diff=St.diff||0,y.info("Node bounds (abc123)",et,J,J.width,J.x,J.y),function(Nt,Ot){mo[Ot.id]=Nt}(Lt,J),y.warn("Recursive render complete ",Lt,J)}else l.children(et).length>0?(y.info("Cluster - the non recursive path XXX",et,J.id,J,l),y.info(Ro(J.id,l)),Kn[J.id]={id:Ro(J.id,l),node:J}):(y.info("Node - the non recursive path",et,J.id,J),function(Nt,Ot,Ft){var _t,ee,ke;Ot.link?(Dt().securityLevel==="sandbox"?ke="_top":Ot.linkTarget&&(ke=Ot.linkTarget||"_blank"),_t=Nt.insert("svg:a").attr("xlink:href",Ot.link).attr("target",ke),ee=h1[Ot.shape](_t,Ot,Ft)):_t=ee=h1[Ot.shape](Nt,Ot,Ft),Ot.tooltip&&ee.attr("title",Ot.tooltip),Ot.class&&ee.attr("class","node default "+Ot.class),mo[Ot.id]=_t,Ot.haveCallback&&mo[Ot.id].attr("class",mo[Ot.id].attr("class")+" clickable")}(q,l.node(et),T))}
75),l.edges().forEach(function(et){var J=l.edge(et.v,et.w,et.name);y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(et)),y.info("Edge "+et.v+" -> "+et.w+": ",et," ",JSON.stringify(l.edge(et))),y.info("Fix",Kn,"ids:",et.v,et.w,"Translateing: ",Kn[et.v],Kn[et.w]),d1(B,J)}),l.edges().forEach(function(et){y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(et))}),y.info("#############################################"),y.info("###                Layout                 ###"),y.info("#############################################"),y.info(l),xs().layout(l),y.info("Graph after layout:",fi().json.write(l));var V=0;return xc(l).forEach(function(et){var J=l.node(et);y.info("Position "+et+": "+JSON.stringify(l.node(et))),y.info("Position "+et+": ("+J.x,","+J.y,") width: ",J.width," height: ",J.height),J&&J.clusterNode?sl(J):l.children(et).length>0?(function(Tt,St){y.trace("Inserting cluster");var Lt=St.shape||"rect";Aa[St.id]=Ja[Lt](Tt,St)}(S,J),Kn[J.id].node=J):sl(J)}),l.edges().forEach(function(et){var J=l.edge(et);y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(J),J);var Tt=function(St,Lt,Nt,Ot,Ft,_t){var ee=Nt.points,ke=!1,ue=_t.node(Lt.v),ve=_t.node(Lt.w);y.info("abc88 InsertEdge: ",Nt),ve.intersect&&ue.intersect&&((ee=ee.slice(1,Nt.points.length-1)).unshift(ue.intersect(ee[0])),y.info("Last point",ee[ee.length-1],ve,ve.intersect(ee[ee.length-1])),ee.push(ve.intersect(ee[ee.length-1]))),Nt.toCluster&&(y.info("to cluster abc88",Ot[Nt.toCluster]),ee=gu(Nt.points,Ot[Nt.toCluster].node),ke=!0),Nt.fromCluster&&(y.info("from cluster abc88",Ot[Nt.fromCluster]),ee=gu(ee.reverse(),Ot[Nt.fromCluster].node).reverse(),ke=!0);var Rt,le=ee.filter(function(Ce){return!Number.isNaN(Ce.y)});Rt=(Ft==="graph"||Ft==="flowchart")&&Nt.curve||w.curveBasis;var Wt,ie=(0,w.line)().x(function(Ce){return Ce.x}).y(function(Ce){return Ce.y}).curve(Rt);switch(Nt.thickness){case"normal":Wt="edge-thickness-normal";break;case"thick":Wt="edge-thickness-thick";break;default:Wt=""}switch(Nt.pattern){case"solid":Wt+=" edge-pattern-solid";break;case"dotted":Wt+=" edge-pattern-dotted";break;case"dashed":Wt+=" edge-pattern-dashed"}var ce=St.append("path").attr("d",ie(le)).attr("id",Nt.id).attr("class"," "+Wt+(Nt.classes?" "+Nt.classes:"")).attr("style",Nt.style),se="";switch(Dt().state.arrowMarkerAbsolute&&(se=(se=(se=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),y.info("arrowTypeStart",Nt.arrowTypeStart),y.info("arrowTypeEnd",Nt.arrowTypeEnd),Nt.arrowTypeStart){case"arrow_cross":ce.attr("marker-start","url("+se+"#"+Ft+"-crossStart)");break;case"arrow_point":ce.attr("marker-start","url("+se+"#"+Ft+"-pointStart)");break;case"arrow_barb":ce.attr("marker-start","url("+se+"#"+Ft+"-barbStart)");break;case"arrow_circle":ce.attr("marker-start","url("+se+"#"+Ft+"-circleStart)");break;case"aggregation":ce.attr("marker-start","url("+se+"#"+Ft+"-aggregationStart)");break;case"extension":ce.attr("marker-start","url("+se+"#"+Ft+"-extensionStart)");break;case"composition":ce.attr("marker-start","url("+se+"#"+Ft+"-compositionStart)");break;case"dependency":ce.attr("marker-start","url("+se+"#"+Ft+"-dependencyStart)");break;case"lollipop":ce.attr("marker-start","url("+se+"#"+Ft+"-lollipopStart)")}switch(Nt.arrowTypeEnd){case"arrow_cross":ce.attr("marker-end","url("+se+"#"+Ft+"-crossEnd)");break;case"arrow_point":ce.attr("marker-end","url("+se+"#"+Ft+"-pointEnd)");break;case"arrow_barb":ce.attr("marker-end","url("+se+"#"+Ft+"-barbEnd)");break;case"arrow_circle":ce.attr("marker-end","url("+se+"#"+Ft+"-circleEnd)");break;case"aggregation":ce.attr("marker-end","url("+se+"#"+Ft+"-aggregationEnd)");break;case"extension":ce.attr("marker-end","url("+se+"#"+Ft+"-extensionEnd)");break;case"composition":ce.attr("marker-end","url("+se+"#"+Ft+"-compositionEnd)");break;case"dependency":ce.attr("marker-end","url("+se+"#"+Ft+"-dependencyEnd)");break;case"lollipop":ce.attr("marker-end","url("+se+"#"+Ft+"-lollipopEnd)")}var Ne={};return ke&&(Ne.updatedPath=ee),Ne.originalPath=Nt.points,Ne}(N,et,J,Kn,p,l);f1(J,Tt)}
75),l.nodes().forEach(function(et){var J=l.node(et);y.info(et,J.type,J.diff),J.type==="group"&&(V=J.diff)}),{elem:k,diff:V}},cl=function(i,n,l,p,g){s1(i,l,p,g),mo={},to={},pi={},Aa={},Ca={},sa={},Kn={},y.warn("Graph at first:",fi().json.write(n)),il(n),y.warn("Graph after:",fi().json.write(n)),p1(i,n,p)};function g1(i){var n;switch(i){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}const fd={setConf:function(i){Object.keys(i).forEach(function(n){i[n]})},draw:function(i,n,l,p){y.info("Drawing class - ",n);var g=Dt().flowchart,T=Dt().securityLevel;y.info("config:",g);var k,S=g.nodeSpacing||50,N=g.rankSpacing||50,B=new(fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:p.db.getDirection(),nodesep:S,ranksep:N,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),q=p.db.getClasses(),V=p.db.getRelations();y.info(V),function(ee,ke,ue,ve){var Rt=Object.keys(ee);y.info("keys:",Rt),y.info(ee),Rt.forEach(function(le){var Wt=ee[le],ie="";Wt.cssClasses.length>0&&(ie=ie+" "+Wt.cssClasses.join(" "));var ce,se,Ne={labelStyle:""},Ce=Wt.text!==void 0?Wt.text:Wt.id;Wt.type,se="class_box",ke.setNode(Wt.id,{labelStyle:Ne.labelStyle,shape:se,labelText:(ce=Ce,an.sanitizeText(ce,Dt())),classData:Wt,rx:0,ry:0,class:ie,style:Ne.style,id:Wt.id,domId:Wt.domId,tooltip:ve.db.getTooltip(Wt.id)||"",haveCallback:Wt.haveCallback,link:Wt.link,width:Wt.type==="group"?500:void 0,type:Wt.type,padding:Dt().flowchart.padding}),y.info("setNode",{labelStyle:Ne.labelStyle,shape:se,labelText:Ce,rx:0,ry:0,class:ie,style:Ne.style,id:Wt.id,width:Wt.type==="group"?500:void 0,type:Wt.type,padding:Dt().flowchart.padding})})}(q,B,0,p),function(ee,ke){var ue=Dt().flowchart,ve=0;ee.forEach(function(Rt){ve++;var le={classes:"relation"};le.pattern=Rt.relation.lineType==1?"dashed":"solid",le.id="id"+ve,Rt.type==="arrow_open"?le.arrowhead="none":le.arrowhead="normal",y.info(le,Rt),le.startLabelRight=Rt.relationTitle1==="none"?"":Rt.relationTitle1,le.endLabelLeft=Rt.relationTitle2==="none"?"":Rt.relationTitle2,le.arrowTypeStart=g1(Rt.relation.type1),le.arrowTypeEnd=g1(Rt.relation.type2);var Wt="",ie="";if(Rt.style!==void 0){var ce=Si(Rt.style);Wt=ce.style,ie=ce.labelStyle}else Wt="fill:none";le.style=Wt,le.labelStyle=ie,Rt.interpolate!==void 0?le.curve=pa(Rt.interpolate,w.curveLinear):ee.defaultInterpolate!==void 0?le.curve=pa(ee.defaultInterpolate,w.curveLinear):le.curve=pa(ue.curve,w.curveLinear),Rt.text=Rt.title,Rt.text===void 0?Rt.style!==void 0&&(le.arrowheadStyle="fill: #333"):(le.arrowheadStyle="fill: #333",le.labelpos="c",Dt().flowchart.htmlLabels?(le.labelType="html",le.label='<span class="edgeLabel">'+Rt.text+"</span>"):(le.labelType="text",le.label=Rt.text.replace(an.lineBreakRegex,`
76`),Rt.style===void 0&&(le.style=le.style||"stroke: #333; stroke-width: 1.5px;fill:none"),le.labelStyle=le.labelStyle.replace("color:","fill:"))),ke.setEdge(Rt.id1,Rt.id2,le,ve)})}(V,B),T==="sandbox"&&(k=(0,w.select)("#i"+n));var et=T==="sandbox"?(0,w.select)(k.nodes()[0].contentDocument.body):(0,w.select)("body"),J=et.select('[id="'.concat(n,'"]')),Tt=et.select("#"+n+" g");if(cl(Tt,B,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",n),Io(B,J,g.diagramPadding,g.useMaxWidth),!g.htmlLabels)for(var St=T==="sandbox"?k.nodes()[0].contentDocument:document,Lt=St.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Nt=0;Nt<Lt.length;Nt++){var Ot=Lt[Nt],Ft=Ot.getBBox(),_t=St.createElementNS("http://www.w3.org/2000/svg","rect");_t.setAttribute("rx",0),_t.setAttribute("ry",0),_t.setAttribute("width",Ft.width),_t.setAttribute("height",Ft.height),Ot.insertBefore(_t,Ot.firstChild)}kr(p.db,J,n)}};var yu=f(1362),mu=f.n(yu),Tc={},bu=[],y1=function(i){return Tc[i]===void 0&&(Tc[i]={attributes:[]},y.info("Added new entity :",i)),Tc[i]};const pd={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(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().er},addEntity:y1,addAttributes:function(i,n){var l,p=y1(i);for(l=n.length-1;l>=0;l--)p.attributes.push(n[l]),y.debug("Added attribute ",n[l].attributeName)},getEntities:function(){return Tc},addRelationship:function(i,n,l,p){var g={entityA:i,roleA:n,entityB:l,relSpec:p};bu.push(g),y.debug("Added new relationship :",g)},getRelationships:function(){return bu},clear:function(){Tc={},bu=[],Kt()},setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li};var bo={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 Yo=bo;var Br={},m1=function(i){return(i.entityA+i.roleA+i.entityB).replace(/\s/g,"")},b1=0;const gd={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)Br[n[l]]=i[n[l]]},draw:function(i,n,l,p){Br=Dt().er,y.info("Drawing ER diagram");var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k,S=(T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body")).select("[id='".concat(n,"']"));(function(Lt,Nt){var Ot;Lt.append("defs").append("marker").attr("id",bo.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Lt.append("defs").append("marker").attr("id",bo.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Ot=Lt.append("defs").append("marker").attr("id",bo.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Ot=Lt.append("defs").append("marker").attr("id",bo.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Lt.append("defs").append("marker").attr("id",bo.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Lt.append("defs").append("marker").attr("id",bo.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Ot=Lt.append("defs").append("marker").attr("id",bo.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Ot=Lt.append("defs").append("marker").attr("id",bo.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(S,Br),k=new(fi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Br.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var N,B,q=function(Lt,Nt,Ot){var Ft;return Object.keys(Nt).forEach(function(_t){var ee=Lt.append("g").attr("id",_t);Ft=Ft===void 0?_t:Ft;var ke="entity-"+_t,ue=ee.append("text").attr("class","er entityLabel").attr("id",ke).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+Br.fontSize+"px").text(_t),ve=function(ie,ce,se){var Ne=Br.entityPadding/3,Ce=Br.entityPadding/3,je=.85*Br.fontSize,_n=ce.node().getBBox(),Re=[],tn=!1,yn=!1,Ue=0,$e=0,bn=0,gr=0,dr=_n.height+2*Ne,jr=1;se.forEach(function(zr){zr.attributeKeyType!==void 0&&(tn=!0),zr.attributeComment!==void 0&&(yn=!0)}),se.forEach(function(zr){var Na="".concat(ce.node().id,"-attr-").concat(jr),ba=0,gs=Zn(zr.attributeType),Vo=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Na,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(gs),Ha=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Na,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeName),Oa={};Oa.tn=Vo,Oa.nn=Ha;var ql=Vo.node().getBBox(),Vl=Ha.node().getBBox();if(Ue=Math.max(Ue,ql.width),$e=Math.max($e,Vl.width),ba=Math.max(ql.height,Vl.height),tn){var Hl=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Na,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeKeyType||"");Oa.kn=Hl;var kh=Hl.node().getBBox();bn=Math.max(bn,kh.width),ba=Math.max(ba,kh.height)}if(yn){var wh=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Na,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeComment||"");Oa.cn=wh;var Vi=wh.node().getBBox();gr=Math.max(gr,Vi.width),ba=Math.max(ba,Vi.height)}Oa.height=ba,Re.push(Oa),dr+=ba+2*Ne,jr+=1});var fr=4;tn&&(fr+=2),yn&&(fr+=2);var mi=Ue+$e+bn+gr,ur={width:Math.max(Br.minEntityWidth,Math.max(_n.width+2*Br.entityPadding,mi+Ce*fr)),height:se.length>0?dr:Math.max(Br.minEntityHeight,_n.height+2*Br.entityPadding)};if(se.length>0){var Da=Math.max(0,(ur.width-mi-Ce*fr)/(fr/2));ce.attr("transform","translate("+ur.width/2+","+(Ne+_n.height/2)+")");var la=_n.height+2*Ne,ai="attributeBoxOdd";Re.forEach(function(zr){var Na=la+Ne+zr.height/2;zr.tn.attr("transform","translate("+Ce+","+Na+")");var ba=ie.insert("rect","#"+zr.tn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",0).attr("y",la).attr("width",Ue+2*Ce+Da).attr("height",zr.height+2*Ne),gs=parseFloat(ba.attr("x"))+parseFloat(ba.attr("width"));zr.nn.attr("transform","translate("+(gs+Ce)+","+Na+")");var Vo=ie.insert("rect","#"+zr.nn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",gs).attr("y",la).attr("width",$e+2*Ce+Da).attr("height",zr.height+2*Ne),Ha=parseFloat(Vo.attr("x"))+parseFloat(Vo.attr("width"));if(tn){zr.kn.attr("transform","translate("+(Ha+Ce)+","+Na+")");var Oa=ie.insert("rect","#"+zr.kn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",Ha).attr("y",la).attr("width",bn+2*Ce+Da).attr("height",zr.height+2*Ne);Ha=parseFloat(Oa.attr("x"))+parseFloat(Oa.attr("width"))}yn&&(zr.cn.attr("transform","translate("+(Ha+Ce)+","+Na+")"),ie.insert("rect","#"+zr.cn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",Ha).attr("y",la).attr("width",gr+2*Ce+Da).attr("height",zr.height+2*Ne)),la+=zr.height+2*Ne,ai=ai=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else ur.height=Math.max(Br.minEntityHeight,dr),ce.attr("transform","translate("+ur.width/2+","+ur.height/2+")");return ur}(ee,ue,Nt[_t].attributes),Rt=ve.width,le=ve.height,Wt=ee.insert("rect","#"+ke).attr("class","er entityBox").attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",0).attr("y",0).attr("width",Rt).attr("height",le).node().getBBox();Ot.setNode(_t,{width:Wt.width,height:Wt.height,shape:"rect",id:_t})}),Ft}(S,p.db.getEntities(),k),V=function(Lt,Nt){return Lt.forEach(function(Ot){Nt.setEdge(Ot.entityA,Ot.entityB,{relationship:Ot},m1(Ot))}),Lt}(p.db.getRelationships(),k);
76xs().layout(k),N=S,(B=k).nodes().forEach(function(Lt){Lt!==void 0&&B.node(Lt)!==void 0&&N.select("#"+Lt).attr("transform","translate("+(B.node(Lt).x-B.node(Lt).width/2)+","+(B.node(Lt).y-B.node(Lt).height/2)+" )")}),V.forEach(function(Lt){(function(Nt,Ot,Ft,_t,ee){b1++;var ke=Ft.edge(Ot.entityA,Ot.entityB,m1(Ot)),ue=(0,w.line)().x(function(se){return se.x}).y(function(se){return se.y}).curve(w.curveBasis),ve=Nt.insert("path","#"+_t).attr("class","er relationshipLine").attr("d",ue(ke.points)).attr("stroke",Br.stroke).attr("fill","none");Ot.relSpec.relType===ee.db.Identification.NON_IDENTIFYING&&ve.attr("stroke-dasharray","8,8");var Rt="";switch(Br.arrowMarkerAbsolute&&(Rt=(Rt=(Rt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ot.relSpec.cardA){case ee.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-end","url("+Rt+"#"+Yo.ZERO_OR_ONE_END+")");break;case ee.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-end","url("+Rt+"#"+Yo.ZERO_OR_MORE_END+")");break;case ee.db.Cardinality.ONE_OR_MORE:ve.attr("marker-end","url("+Rt+"#"+Yo.ONE_OR_MORE_END+")");break;case ee.db.Cardinality.ONLY_ONE:ve.attr("marker-end","url("+Rt+"#"+Yo.ONLY_ONE_END+")")}switch(Ot.relSpec.cardB){case ee.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-start","url("+Rt+"#"+Yo.ZERO_OR_ONE_START+")");break;case ee.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-start","url("+Rt+"#"+Yo.ZERO_OR_MORE_START+")");break;case ee.db.Cardinality.ONE_OR_MORE:ve.attr("marker-start","url("+Rt+"#"+Yo.ONE_OR_MORE_START+")");break;case ee.db.Cardinality.ONLY_ONE:ve.attr("marker-start","url("+Rt+"#"+Yo.ONLY_ONE_START+")")}var le=ve.node().getTotalLength(),Wt=ve.node().getPointAtLength(.5*le),ie="rel"+b1,ce=Nt.append("text").attr("class","er relationshipLabel").attr("id",ie).attr("x",Wt.x).attr("y",Wt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+Br.fontSize+"px").text(Ot.roleA).node().getBBox();Nt.insert("rect","#"+ie).attr("class","er relationshipLabelBox").attr("x",Wt.x-ce.width/2).attr("y",Wt.y-ce.height/2).attr("width",ce.width).attr("height",ce.height).attr("fill","white").attr("fill-opacity","85%")})(S,Lt,k,q,p)});var et=Br.diagramPadding,J=S.node().getBBox(),Tt=J.width+2*et,St=J.height+2*et;Gi(S,0,Tt,Br.useMaxWidth),S.attr("viewBox","".concat(J.x-et," ").concat(J.y-et," ").concat(Tt," ").concat(St)),kr(p.db,S,n)}}
76,vu={setConf:function(i){Object.keys(i).forEach(function(n){i[n]})},draw:function(i,n,l){try{y.debug(`Renering svg for syntax error
77`);var p=(0,w.select)("#"+n),g=p.append("g");g.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"),g.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"),g.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"),g.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.
77164-16,16v32c0,8.836 7.156,16 16,16z"),g.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"),g.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"),g.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),g.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+l),p.attr("height",100),p.attr("width",500),p.attr("viewBox","768 0 912 512")}catch(T){y.error("Error while rendering info diagram"),y.error(T.message)}}};var yd=f(5890),md=f.n(yd);function _u(i){return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_u(i)}function xu(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var vo,ll,v1="flowchart-",_1=0,ku=Dt(),ii={},ns=[],Ss=[],vi=[],Ec={},ul={},Pa=0,wu=!0,hl=[],Cs=function(i){return an.sanitizeText(i,ku)},dl=function(i){for(var n=Object.keys(ii),l=0;l<n.length;l++)if(ii[n[l]].id===i)return ii[n[l]].domId;return i},bd=function(i,n,l,p){var g={start:i,end:n,type:void 0,text:""};(p=l.text)!==void 0&&(g.text=Cs(p.trim()),g.text[0]==='"'&&g.text[g.text.length-1]==='"'&&(g.text=g.text.substring(1,g.text.length-1))),l!==void 0&&(g.type=l.type,g.stroke=l.stroke,g.length=l.length),ns.push(g)},Tu=function(i,n){i.split(",").forEach(function(l){var p=l;ii[p]!==void 0&&ii[p].classes.push(n),Ec[p]!==void 0&&Ec[p].classes.push(n)})},x1=function(i){var n=(0,w.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,w.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,w.select)(this);if(l.attr("title")!==null){var p=this.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(l.attr("title")).style("left",window.scrollX+p.left+(p.right-p.left)/2+"px").style("top",window.scrollY+p.top-14+document.body.scrollTop+"px"),n.html(n.html().replace(/&lt;br\/&gt;/g,"<br/>")),l.classed("hover",!0)}}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),(0,w.select)(this).classed("hover",!1)})};hl.push(x1);var Eu=function(i){for(var n=0;n<vi.length;n++)if(vi[n].id===i)return n;return-1},Su=-1,k1=[],Cu=function i(n,l){var p=vi[l].nodes;if(!((Su+=1)>2e3)){if(k1[Su]=l,vi[l].id===n)return{result:!0,count:0};for(var g=0,T=1;g<p.length;){var k=Eu(p[g]);if(k>=0){var S=i(n,k);if(S.result)return{result:!0,count:T+S.count};T+=S.count}g+=1}return{result:!1,count:T}}},Au=function(i,n){var l=!1;return i.forEach(function(p){p.nodes.indexOf(n)>=0&&(l=!0)}),l},fl=function(i,n){var l=[];return i.nodes.forEach(function(p,g){Au(n,p)||l.push(i.nodes[g])}),{nodes:l}};const ya={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},defaultConfig:function(){return oi.flowchart},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,addVertex:function(i,n,l,p,g,T){var k,S=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},N=i;N!==void 0&&N.trim().length!==0&&(ii[N]===void 0&&(ii[N]={id:N,domId:v1+N+"-"+_1,styles:[],classes:[]}),_1++,n!==void 0?(ku=Dt(),(k=Cs(n.trim()))[0]==='"'&&k[k.length-1]==='"'&&(k=k.substring(1,k.length-1)),ii[N].text=k):ii[N].text===void 0&&(ii[N].text=i),l!==void 0&&(ii[N].type=l),p!=null&&p.forEach(function(B){ii[N].styles.push(B)}),g!=null&&g.forEach(function(B){ii[N].classes.push(B)}),T!==void 0&&(ii[N].dir=T),ii[N].props=S)},lookUpDomId:dl,addLink:function(i,n,l,p){var g,T;for(g=0;g<i.length;g++)for(T=0;T<n.length;T++)bd(i[g],n[T],l,p)}
77,updateLinkInterpolate:function(i,n){i.forEach(function(l){l==="default"?ns.defaultInterpolate=n:ns[l].interpolate=n})},updateLink:function(i,n){i.forEach(function(l){l==="default"?ns.defaultStyle=n:(qn.isSubstringInArray("fill",n)===-1&&n.push("fill:none"),ns[l].style=n)})},addClass:function(i,n){Ss[i]===void 0&&(Ss[i]={id:i,styles:[],textStyles:[]}),n!=null&&n.forEach(function(l){if(l.match("color")){var p=l.replace("fill","bgFill").replace("color","fill");Ss[i].textStyles.push(p)}Ss[i].styles.push(l)})},setDirection:function(i){(vo=i).match(/.*</)&&(vo="RL"),vo.match(/.*\^/)&&(vo="BT"),vo.match(/.*>/)&&(vo="LR"),vo.match(/.*v/)&&(vo="TB")},setClass:Tu,setTooltip:function(i,n){i.split(",").forEach(function(l){n!==void 0&&(ul[ll==="gen-1"?dl(l):l]=Cs(n))})},getTooltip:function(i){return ul[i]},setClickEvent:function(i,n,l){i.split(",").forEach(function(p){(function(g,T,k){var S=dl(g);if(Dt().securityLevel==="loose"&&T!==void 0){var N=[];if(typeof k=="string"){N=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var B=0;B<N.length;B++){var q=N[B].trim();q.charAt(0)==='"'&&q.charAt(q.length-1)==='"'&&(q=q.substr(1,q.length-2)),N[B]=q}}N.length===0&&N.push(g),ii[g]!==void 0&&(ii[g].haveCallback=!0,hl.push(function(){var V=document.querySelector('[id="'.concat(S,'"]'));V!==null&&V.addEventListener("click",function(){var et;qn.runFunc.apply(qn,[T].concat(function(J){if(Array.isArray(J))return xu(J)}(et=N)||function(J){if(typeof Symbol<"u"&&J[Symbol.iterator]!=null||J["@@iterator"]!=null)return Array.from(J)}(et)||function(J,Tt){if(J){if(typeof J=="string")return xu(J,Tt);var St=Object.prototype.toString.call(J).slice(8,-1);return St==="Object"&&J.constructor&&(St=J.constructor.name),St==="Map"||St==="Set"?Array.from(J):St==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(St)?xu(J,Tt):void 0}}(et)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
78In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(p,n,l)}),Tu(i,"clickable")},setLink:function(i,n,l){i.split(",").forEach(function(p){ii[p]!==void 0&&(ii[p].link=qn.formatUrl(n,ku),ii[p].linkTarget=l)}),Tu(i,"clickable")},bindFunctions:function(i){hl.forEach(function(n){n(i)})},getDirection:function(){return vo.trim()},getVertices:function(){return ii},getEdges:function(){return ns},getClasses:function(){return Ss},clear:function(i){ii={},Ss={},ns=[],(hl=[]).push(x1),vi=[],Ec={},Pa=0,ul=[],wu=!0,ll=i||"gen-1",Kt()},setGen:function(i){ll=i||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(i,n,l){var p=i.trim(),g=l;i===l&&l.match(/\s/)&&(p=void 0);var T=[],k=function(V){var et,J={boolean:{},number:{},string:{}},Tt=[],St=V.filter(function(Lt){var Nt=_u(Lt);return Lt.stmt&&Lt.stmt==="dir"?(et=Lt.value,!1):Lt.trim()!==""&&(Nt in J?!J[Nt].hasOwnProperty(Lt)&&(J[Nt][Lt]=!0):!(Tt.indexOf(Lt)>=0)&&Tt.push(Lt))});return{nodeList:St,dir:et}}(T.concat.apply(T,n)),S=k.nodeList,N=k.dir;if(T=S,ll==="gen-1")for(var B=0;B<T.length;B++)T[B]=dl(T[B]);p=p||"subGraph"+Pa,g=Cs(g=g||""),Pa+=1;var q={id:p,nodes:T,title:g.trim(),classes:[],dir:N};return y.info("Adding",q.id,q.nodes,q.dir),q.nodes=fl(q,vi).nodes,vi.push(q),Ec[p]=q,p},getDepthFirstPos:function(i){return k1[i]},indexNodes:function(){Su=-1,vi.length>0&&Cu("none",vi.length-1)},getSubGraphs:function(){return vi},destructLink:function(i,n){var l,p=function(g){var T=g.trim(),k=T.slice(0,-1),S="arrow_open";switch(T.slice(-1)){case"x":S="arrow_cross",T[0]==="x"&&(S="double_"+S,k=k.slice(1));break;case">":S="arrow_point",T[0]==="<"&&(S="double_"+S,k=k.slice(1));break;case"o":S="arrow_circle",T[0]==="o"&&(S="double_"+S,k=k.slice(1))}var N="normal",B=k.length-1;k[0]==="="&&(N="thick");var q=function(V,et){for(var J=et.length,Tt=0,St=0;St<J;++St)et[St]==="."&&++Tt;return Tt}(0,k);return q&&(N="dotted",B=q),{type:S,stroke:N,length:B}}(i);if(n){if(l=function(g){var T=g.trim(),k="arrow_open";switch(T[0]){case"<":k="arrow_point",T=T.slice(1);break;case"x":k="arrow_cross",T=T.slice(1);break;case"o":k="arrow_circle",T=T.slice(1)}var S="normal";return T.indexOf("=")!==-1&&(S="thick"),T.indexOf(".")!==-1&&(S="dotted"),{type:k,stroke:S}}(n),l.stroke!==p.stroke)return{type:"INVALID",stroke:"INVALID"};if(l.type==="arrow_open")l.type=p.type;else{if(l.type!==p.type)return{type:"INVALID",stroke:"INVALID"};l.type="double_"+l.type}return l.type==="double_arrow"&&(l.type="double_arrow_point"),l.length=p.length,l}return p},lex:{firstGraph:function(){return!!wu&&(wu=!1,!0)}},exists:Au,makeUniq:fl};var As=f(4949),ca=f.n(As),zi=f(8284),Bi=f.n(zi);function w1(i,n,l){var p=.9*(n.width+n.height),g=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],T=xo(i,p,p,g);return l.intersect=function(k){return ca().intersect.polygon(l,g,k)},T}function Mu(i,n,l){var p=n.height,g=p/4,T=n.width+2*g,k=[{x:g,y:0},{x:T-g,y:0}
78,{x:T,y:-p/2},{x:T-g,y:-p},{x:g,y:-p},{x:0,y:-p/2}],S=xo(i,T,p,k);return l.intersect=function(N){return ca().intersect.polygon(l,k,N)},S}function pl(i,n,l){var p=n.width,g=n.height,T=[{x:-g/2,y:0},{x:p,y:0},{x:p,y:-g},{x:-g/2,y:-g},{x:0,y:-g/2}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function gl(i,n,l){var p=n.width,g=n.height,T=[{x:-2*g/6,y:0},{x:p-g/6,y:0},{x:p+2*g/6,y:-g},{x:g/6,y:-g}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function vd(i,n,l){var p=n.width,g=n.height,T=[{x:2*g/6,y:0},{x:p+g/6,y:0},{x:p-2*g/6,y:-g},{x:-g/6,y:-g}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function _o(i,n,l){var p=n.width,g=n.height,T=[{x:-2*g/6,y:0},{x:p+2*g/6,y:0},{x:p-g/6,y:-g},{x:g/6,y:-g}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function T1(i,n,l){var p=n.width,g=n.height,T=[{x:g/6,y:0},{x:p-g/6,y:0},{x:p+2*g/6,y:-g},{x:-2*g/6,y:-g}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function E1(i,n,l){var p=n.width,g=n.height,T=[{x:0,y:0},{x:p+g/2,y:0},{x:p,y:-g/2},{x:p+g/2,y:-g},{x:0,y:-g}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function _d(i,n,l){var p=n.height,g=n.width+p/4,T=i.insert("rect",":first-child").attr("rx",p/2).attr("ry",p/2).attr("x",-g/2).attr("y",-p/2).attr("width",g).attr("height",p);return l.intersect=function(k){return ca().intersect.rect(l,k)},T}function xd(i,n,l){var p=n.width,g=n.height,T=[{x:0,y:0},{x:p,y:0},{x:p,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-g},{x:-8,y:-g},{x:-8,y:0}],k=xo(i,p,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function Sc(i,n,l){var p=n.width,g=p/2,T=g/(2.5+p/50),k=n.height+T,S="M 0,"+T+" a "+g+","+T+" 0,0,0 "+p+" 0 a "+g+","+T+" 0,0,0 "+-p+" 0 l 0,"+k+" a "+g+","+T+" 0,0,0 "+p+" 0 l 0,"+-k,N=i.attr("label-offset-y",T).insert("path",":first-child").attr("d",S).attr("transform","translate("+-p/2+","+-(k/2+T)+")");return l.intersect=function(B){var q=ca().intersect.rect(l,B),V=q.x-l.x;if(g!=0&&(Math.abs(V)<l.width/2||Math.abs(V)==l.width/2&&Math.abs(q.y-l.y)>l.height/2-T)){var et=T*T*(1-V*V/(g*g));et!=0&&(et=Math.sqrt(et)),et=T-et,B.y-l.y>0&&(et=-et),q.y+=et}return q},N}function xo(i,n,l,p){return i.insert("polygon",":first-child").attr("points",p.map(function(g){return g.x+","+g.y}).join(" ")).attr("transform","translate("+-n/2+","+l/2+")")}const kd=function(i){i.shapes().question=w1,i.shapes().hexagon=Mu,i.shapes().stadium=_d,i.shapes().subroutine=xd,i.shapes().cylinder=Sc,i.shapes().rect_left_inv_arrow=pl,i.shapes().lean_right=gl,i.shapes().lean_left=vd,i.shapes().trapezoid=_o,i.shapes().inv_trapezoid=T1,i.shapes().rect_right_inv_arrow=E1};var S1={},yl=function(i,n,l,p,g,T){Dt().securityLevel;var k=p?p.select('[id="'.concat(l,'"]')):(0,w.select)('[id="'.concat(l,'"]')),S=g||document;
78Object.keys(i).forEach(function(N){var B=i[N],q="default";B.classes.length>0&&(q=B.classes.join(" "));var V,et=Si(B.styles),J=B.text!==void 0?B.text:B.id;if(rn(Dt().flowchart.htmlLabels)){var Tt={label:J.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ee){return"<i class='".concat(ee.replace(":"," "),"'></i>")})};(V=Bi()(k,Tt).node()).parentNode.removeChild(V)}else{var St=S.createElementNS("http://www.w3.org/2000/svg","text");St.setAttribute("style",et.labelStyle.replace("color:","fill:"));for(var Lt=J.split(an.lineBreakRegex),Nt=0;Nt<Lt.length;Nt++){var Ot=S.createElementNS("http://www.w3.org/2000/svg","tspan");Ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ot.setAttribute("dy","1em"),Ot.setAttribute("x","1"),Ot.textContent=Lt[Nt],St.appendChild(Ot)}V=St}var Ft=0,_t="";switch(B.type){case"round":Ft=5,_t="rect";break;case"square":case"group":default:_t="rect";break;case"diamond":_t="question";break;case"hexagon":_t="hexagon";break;case"odd":case"odd_right":_t="rect_left_inv_arrow";break;case"lean_right":_t="lean_right";break;case"lean_left":_t="lean_left";break;case"trapezoid":_t="trapezoid";break;case"inv_trapezoid":_t="inv_trapezoid";break;case"circle":_t="circle";break;case"ellipse":_t="ellipse";break;case"stadium":_t="stadium";break;case"subroutine":_t="subroutine";break;case"cylinder":_t="cylinder"}y.warn("Adding node",B.id,B.domId),n.setNode(T.db.lookUpDomId(B.id),{labelType:"svg",labelStyle:et.labelStyle,shape:_t,label:V,rx:Ft,ry:Ft,class:q,style:et.style,id:T.db.lookUpDomId(B.id)})})},C1=function(i,n,l){var p,g,T=0;if(i.defaultStyle!==void 0){var k=Si(i.defaultStyle);p=k.style,g=k.labelStyle}i.forEach(function(S){T++;var N="L-"+S.start+"-"+S.end,B="LS-"+S.start,q="LE-"+S.end,V={};S.type==="arrow_open"?V.arrowhead="none":V.arrowhead="normal";var et="",J="";if(S.style!==void 0){var Tt=Si(S.style);et=Tt.style,J=Tt.labelStyle}else switch(S.stroke){case"normal":et="fill:none",p!==void 0&&(et=p),g!==void 0&&(J=g);break;case"dotted":et="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":et=" stroke-width: 3.5px;fill:none"}V.style=et,V.labelStyle=J,S.interpolate!==void 0?V.curve=pa(S.interpolate,w.curveLinear):i.defaultInterpolate!==void 0?V.curve=pa(i.defaultInterpolate,w.curveLinear):V.curve=pa(S1.curve,w.curveLinear),S.text===void 0?S.style!==void 0&&(V.arrowheadStyle="fill: #333"):(V.arrowheadStyle="fill: #333",V.labelpos="c",rn(Dt().flowchart.htmlLabels)?(V.labelType="html",V.label='<span id="L-'.concat(N,'" class="edgeLabel L-').concat(B,"' L-").concat(q,'" style="').concat(V.labelStyle,'">').concat(S.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(St){return"<i class='".concat(St.replace(":"," "),"'></i>")}),"</span>")):(V.labelType="text",V.label=S.text.replace(an.lineBreakRegex,`
79`),S.style===void 0&&(V.style=V.style||"stroke: #333; stroke-width: 1.5px;fill:none"),V.labelStyle=V.labelStyle.replace("color:","fill:"))),V.id=N,V.class=B+" "+q,V.minlen=S.length||1,n.setEdge(l.db.lookUpDomId(S.start),l.db.lookUpDomId(S.end),V,T)})};const ml={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)S1[n[l]]=i[n[l]]},addVertices:yl,addEdges:C1,getClasses:function(i,n){y.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch{return}},draw:function(i,n,l,p){y.info("Drawing flowchart"),p.db.clear();var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;try{p.parser.parse(i)}catch{y.debug("Parsing failed")}var N=p.db.getDirection();N===void 0&&(N="TD");for(var B,q=Dt().flowchart,V=q.nodeSpacing||50,et=q.rankSpacing||50,J=new(fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:N,nodesep:V,ranksep:et,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Tt=p.db.getSubGraphs(),St=Tt.length-1;St>=0;St--)B=Tt[St],p.db.addVertex(B.id,B.title,"group",void 0,B.classes);var Lt=p.db.getVertices();y.warn("Get vertices",Lt);var Nt=p.db.getEdges(),Ot=0;for(Ot=Tt.length-1;Ot>=0;Ot--){B=Tt[Ot],(0,w.selectAll)("cluster").append("text");for(var Ft=0;Ft<B.nodes.length;
79Ft++)y.warn("Setting subgraph",B.nodes[Ft],p.db.lookUpDomId(B.nodes[Ft]),p.db.lookUpDomId(B.id)),J.setParent(p.db.lookUpDomId(B.nodes[Ft]),p.db.lookUpDomId(B.id))}yl(Lt,J,n,k,S,p),C1(Nt,J,p);var _t=new(ca()).render;kd(_t),_t.arrows().none=function(Re,tn,yn,Ue){var $e=Re.append("marker").attr("id",tn).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($e,yn[Ue+"Style"])},_t.arrows().normal=function(Re,tn){Re.append("marker").attr("id",tn).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 ee=k.select('[id="'.concat(n,'"]'));kr(p.db,ee,n);var ke=k.select("#"+n+" g");for(_t(ke,J),ke.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+Ot),Ot=0;Ot<Tt.length;Ot++)if((B=Tt[Ot]).title!=="undefined"){var ue=S.querySelectorAll("#"+n+' [id="'+p.db.lookUpDomId(B.id)+'"] rect'),ve=S.querySelectorAll("#"+n+' [id="'+p.db.lookUpDomId(B.id)+'"]'),Rt=ue[0].x.baseVal.value,le=ue[0].y.baseVal.value,Wt=ue[0].width.baseVal.value,ie=(0,w.select)(ve[0]).select(".label");ie.attr("transform","translate(".concat(Rt+Wt/2,", ").concat(le+14,")")),ie.attr("id",n+"Text");for(var ce=0;ce<B.classes.length;ce++)ve[0].classList.add(B.classes[ce])}rn(q.htmlLabels);for(var se=S.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Ne=0;Ne<se.length;Ne++){var Ce=se[Ne],je=Ce.getBBox(),_n=S.createElementNS("http://www.w3.org/2000/svg","rect");_n.setAttribute("rx",0),_n.setAttribute("ry",0),_n.setAttribute("width",je.width),_n.setAttribute("height",je.height),Ce.insertBefore(_n,Ce.firstChild)}Io(J,ee,q.diagramPadding,q.useMaxWidth),Object.keys(Lt).forEach(function(Re){var tn=Lt[Re];if(tn.link){var yn=k.select("#"+n+' [id="'+p.db.lookUpDomId(Re)+'"]');if(yn){var Ue=S.createElementNS("http://www.w3.org/2000/svg","a");Ue.setAttributeNS("http://www.w3.org/2000/svg","class",tn.classes.join(" ")),Ue.setAttributeNS("http://www.w3.org/2000/svg","href",tn.link),Ue.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),T==="sandbox"?Ue.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):tn.linkTarget&&Ue.setAttributeNS("http://www.w3.org/2000/svg","target",tn.linkTarget);var $e=yn.insert(function(){return Ue},":first-child"),bn=yn.select(".label-container");bn&&$e.append(function(){return bn.node()});var gr=yn.select(".label");gr&&$e.append(function(){return gr.node()})}}})}};var A1={},M1=function(i,n,l,p,g,T){var k=p.select('[id="'.concat(l,'"]'));
79Object.keys(i).forEach(function(S){var N=i[S],B="default";N.classes.length>0&&(B=N.classes.join(" "));var q,V=Si(N.styles),et=N.text!==void 0?N.text:N.id;if(rn(Dt().flowchart.htmlLabels)){var J={label:et.replace(/fa[lrsb]?:fa-[\w-]+/g,function(_t){return"<i class='".concat(_t.replace(":"," "),"'></i>")})};(q=Bi()(k,J).node()).parentNode.removeChild(q)}else{var Tt=g.createElementNS("http://www.w3.org/2000/svg","text");Tt.setAttribute("style",V.labelStyle.replace("color:","fill:"));for(var St=et.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=g.createElementNS("http://www.w3.org/2000/svg","tspan");Nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Nt.setAttribute("dy","1em"),Nt.setAttribute("x","1"),Nt.textContent=St[Lt],Tt.appendChild(Nt)}q=Tt}var Ot=0,Ft="";switch(N.type){case"round":Ot=5,Ft="rect";break;case"square":case"group":default:Ft="rect";break;case"diamond":Ft="question";break;case"hexagon":Ft="hexagon";break;case"odd":case"odd_right":Ft="rect_left_inv_arrow";break;case"lean_right":Ft="lean_right";break;case"lean_left":Ft="lean_left";break;case"trapezoid":Ft="trapezoid";break;case"inv_trapezoid":Ft="inv_trapezoid";break;case"circle":Ft="circle";break;case"ellipse":Ft="ellipse";break;case"stadium":Ft="stadium";break;case"subroutine":Ft="subroutine";break;case"cylinder":Ft="cylinder";break;case"doublecircle":Ft="doublecircle"}n.setNode(N.id,{labelStyle:V.labelStyle,shape:Ft,labelText:et,rx:Ot,ry:Ot,class:B,style:V.style,id:N.id,link:N.link,linkTarget:N.linkTarget,tooltip:T.db.getTooltip(N.id)||"",domId:T.db.lookUpDomId(N.id),haveCallback:N.haveCallback,width:N.type==="group"?500:void 0,dir:N.dir,type:N.type,props:N.props,padding:Dt().flowchart.padding}),y.info("setNode",{labelStyle:V.labelStyle,shape:Ft,labelText:et,rx:Ot,ry:Ot,class:B,style:V.style,id:N.id,domId:T.db.lookUpDomId(N.id),width:N.type==="group"?500:void 0,type:N.type,dir:N.dir,props:N.props,padding:Dt().flowchart.padding})})},D1=function(i,n,l){y.info("abc78 edges = ",i);var p,g,T=0,k={};if(i.defaultStyle!==void 0){var S=Si(i.defaultStyle);p=S.style,g=S.labelStyle}i.forEach(function(N){T++;var B="L-"+N.start+"-"+N.end;k[B]===void 0?(k[B]=0,y.info("abc78 new entry",B,k[B])):(k[B]++,y.info("abc78 new entry",B,k[B]));var q=B+"-"+k[B];y.info("abc78 new link id to be used is",B,q,k[B]);var V="LS-"+N.start,et="LE-"+N.end,J={style:"",labelStyle:""};switch(J.minlen=N.length||1,N.type==="arrow_open"?J.arrowhead="none":J.arrowhead="normal",J.arrowTypeStart="arrow_open",J.arrowTypeEnd="arrow_open",N.type){case"double_arrow_cross":J.arrowTypeStart="arrow_cross";case"arrow_cross":J.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":J.arrowTypeStart="arrow_point";case"arrow_point":J.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":J.arrowTypeStart="arrow_circle";case"arrow_circle":J.arrowTypeEnd="arrow_circle"}var Tt="",St="";switch(N.stroke){case"normal":Tt="fill:none;",p!==void 0&&(Tt=p),g!==void 0&&(St=g),J.thickness="normal",J.pattern="solid";break;case"dotted":J.thickness="normal",J.pattern="dotted",J.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":J.thickness="thick",J.pattern="solid",J.style="stroke-width: 3.5px;fill:none;"}if(N.style!==void 0){var Lt=Si(N.style);Tt=Lt.style,St=Lt.labelStyle}J.style=J.style+=Tt,J.labelStyle=J.labelStyle+=St,N.interpolate!==void 0?J.curve=pa(N.interpolate,w.curveLinear):i.defaultInterpolate!==void 0?J.curve=pa(i.defaultInterpolate,w.curveLinear):J.curve=pa(A1.curve,w.curveLinear),N.text===void 0?N.style!==void 0&&(J.arrowheadStyle="fill: #333"):(J.arrowheadStyle="fill: #333",J.labelpos="c"),J.labelType="text",J.label=N.text.replace(an.lineBreakRegex,`
80`),N.style===void 0&&(J.style=J.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),J.labelStyle=J.labelStyle.replace("color:","fill:"),J.id=q,J.classes="flowchart-link "+V+" "+et,n.setEdge(N.start,N.end,J,T)})};const Cc={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)A1[n[l]]=i[n[l]]},addVertices:M1,addEdges:D1,getClasses:function(i,n){y.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch{return}},draw:function(i,n,l,p){y.info("Drawing flowchart"),p.db.clear(),ya.setGen("gen-2"),p.parser.parse(i);var g=p.db.getDirection();g===void 0&&(g="TD");var T,k=Dt().flowchart,S=k.nodeSpacing||50,N=k.rankSpacing||50,B=Dt().securityLevel;B==="sandbox"&&(T=(0,w.select)("#i"+n));var q,V=B==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body"),et=B==="sandbox"?T.nodes()[0].contentDocument:document,J=new(fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:g,nodesep:S,ranksep:N,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),Tt=p.db.getSubGraphs();y.info("Subgraphs - ",Tt);for(var St=Tt.length-1;St>=0;St--)q=Tt[St],y.info("Subgraph - ",q),p.db.addVertex(q.id,q.title,"group",void 0,q.classes,q.dir);var Lt=p.db.getVertices(),Nt=p.db.getEdges();y.info(Nt);var Ot=0;for(Ot=Tt.length-1;Ot>=0;Ot--){q=Tt[Ot],(0,w.selectAll)("cluster").append("text");for(var Ft=0;Ft<q.nodes.length;
80Ft++)y.info("Setting up subgraphs",q.nodes[Ft],q.id),J.setParent(q.nodes[Ft],q.id)}M1(Lt,J,n,V,et,p),D1(Nt,J);var _t=V.select('[id="'.concat(n,'"]'));kr(p.db,_t,n);var ee=V.select("#"+n+" g");if(cl(ee,J,["point","circle","cross"],"flowchart",n),Io(J,_t,k.diagramPadding,k.useMaxWidth),p.db.indexNodes("subGraph"+Ot),!k.htmlLabels)for(var ke=et.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),ue=0;ue<ke.length;ue++){var ve=ke[ue],Rt=ve.getBBox(),le=et.createElementNS("http://www.w3.org/2000/svg","rect");le.setAttribute("rx",0),le.setAttribute("ry",0),le.setAttribute("width",Rt.width),le.setAttribute("height",Rt.height),ve.insertBefore(le,ve.firstChild)}Object.keys(Lt).forEach(function(Wt){var ie=Lt[Wt];if(ie.link){var ce=(0,w.select)("#"+n+' [id="'+Wt+'"]');if(ce){var se=et.createElementNS("http://www.w3.org/2000/svg","a");se.setAttributeNS("http://www.w3.org/2000/svg","class",ie.classes.join(" ")),se.setAttributeNS("http://www.w3.org/2000/svg","href",ie.link),se.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),B==="sandbox"?se.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ie.linkTarget&&se.setAttributeNS("http://www.w3.org/2000/svg","target",ie.linkTarget);var Ne=ce.insert(function(){return se},":first-child"),Ce=ce.select(".label-container");Ce&&Ne.append(function(){return Ce.node()});var je=ce.select(".label");je&&Ne.append(function(){return je.node()})}}})}};var N1=f(3602),rs=f.n(N1);function Uo(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var bl,is,ja="",vl="",Ac="",as=[],Mc=[],Du={},Nu=[],Ou=[],$o="",_l=["active","done","crit","milestone"],Ms=[],za=!1,Bu=!1,Dc=0,Lu=function(i,n,l,p){return!(p.indexOf(i.format(n.trim()))>=0)&&(i.isoWeekday()>=6&&l.indexOf("weekends")>=0||l.indexOf(i.format("dddd").toLowerCase())>=0||l.indexOf(i.format(n.trim()))>=0)},Wo=function(i,n,l,p){if(l.length&&!i.manualEndTime){var g=u()(i.startTime,n,!0);g.add(1,"d");var T=u()(i.endTime,n,!0),k=wd(g,T,n,l,p);i.endTime=T.toDate(),i.renderEndTime=k}},wd=function(i,n,l,p,g){for(var T=!1,k=null;i<=n;)T||(k=n.toDate()),(T=Lu(i,l,p,g))&&n.add(1,"d"),i.add(1,"d");return k},ko=function(i,n,l){l=l.trim();var p=/^after\s+([\d\w- ]+)/.exec(l.trim());if(p!==null){var g=null;if(p[1].split(" ").forEach(function(S){var N=Ns(S);N!==void 0&&(g?N.endTime>g.endTime&&(g=N):g=N)}),g)return g.endTime;var T=new Date;return T.setHours(0,0,0,0),T}var k=u()(l,n.trim(),!0);return k.isValid()?k.toDate():(y.debug("Invalid date:"+l),y.debug("With date format:"+n.trim()),new Date)},O1=function(i,n){if(i!==null)switch(i[2]){case"ms":n.add(i[1],"milliseconds");break;case"s":n.add(i[1],"seconds");break;case"m":n.add(i[1],"minutes");break;case"h":n.add(i[1],"hours");break;case"d":n.add(i[1],"days");break;case"w":n.add(i[1],"weeks")}return n.toDate()},B1=function(i,n,l,p){p=p||!1,l=l.trim();var g=u()(l,n.trim(),!0);return g.isValid()?(p&&g.add(1,"d"),g.toDate()):O1(/^([\d]+)([wdhms]|ms)$/.exec(l.trim()),u()(i))},Iu=0,Ds=function(i){return i===void 0?"task"+(Iu+=1):i},gi=[],L1={},Ns=function(i){var n=L1[i];return gi[n]},Fu=function(){for(var i=function(p){var g=gi[p],T="";switch(gi[p].raw.startTime.type){case"prevTaskEnd":var k=Ns(g.prevTaskId);g.startTime=k.endTime;break;case"getStartDate":(T=ko(0,ja,gi[p].raw.startTime.startData))&&(gi[p].startTime=T)}return gi[p].startTime&&(gi[p].endTime=B1(gi[p].startTime,ja,gi[p].raw.endTime.data,za),gi[p].endTime&&(gi[p].processed=!0,gi[p].manualEndTime=u()(gi[p].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wo(gi[p],ja,Mc,as))),gi[p].processed},n=!0,l=0;l<gi.length;l++)i(l),n=n&&gi[l].processed;return n},I1=function(i,n){i.split(",").forEach(function(l){var p=Ns(l);p!==void 0&&p.classes.push(n)})},F1=function(i,n){Ms.push(function(){var l=document.querySelector('[id="'.concat(i,'"]'));l!==null&&l.addEventListener("click",function(){n()})}),Ms.push(function(){var l=document.querySelector('[id="'.concat(i,'-text"]'));l!==null&&l.addEventListener("click",function(){n()})})};const Ru={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().gantt},clear:function(){Nu=[],Ou=[],$o="",Ms=[],Iu=0,bl=void 0,is=void 0,gi=[],ja="",vl="",Ac="",as=[],Mc=[],za=!1,Bu=!1,Dc=0,Du={},Kt()},setDateFormat:function(i){ja=i},getDateFormat:function(){return ja},enableInclusiveEndDates:function(){za=!0},endDatesAreInclusive:function(){return za},enableTopAxis:function(){Bu=!0},topAxisEnabled:function(){return Bu},setAxisFormat:function(i){vl=i},getAxisFormat:function(){return vl},setTodayMarker:function(i){Ac=i},getTodayMarker:function(){return Ac},setAccTitle:xr,getAccTitle:Or,setDiagramTitle:wa,getDiagramTitle:hr,setAccDescription:Vr,getAccDescription:li,addSection:function(i){$o=i,Nu.push(i)},getSections:function(){return Nu},getTasks:function(){for(var i=Fu(),n=0;!i&&n<10;)i=Fu(),n++;return Ou=gi},addTask:function(i,n){var l={section:$o,type:$o,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:i,classes:[]},p=function(T,k){var S=(k.substr(0,1)===":"?k.substr(1,k.length):k).split(","),N={};Pu(S,N,_l);for(var B=0;B<S.length;B++)S[B]=S[B].trim();switch(S.length){case 1:N.id=Ds(),N.startTime={type:"prevTaskEnd",id:T},N.endTime={data:S[0]};break;case 2:N.id=Ds(),N.startTime={type:"getStartDate",startData:S[0]},N.endTime={data:S[1]};break;case 3:N.id=Ds(S[0]),N.startTime={type:"getStartDate",startData:S[1]},N.endTime={data:S[2]}}return N}(is,n);l.raw.startTime=p.startTime,l.raw.endTime=p.endTime,l.id=p.id,l.prevTaskId=is,l.active=p.active,l.done=p.done,l.crit=p.crit,l.milestone=p.milestone,l.order=Dc,Dc++;var g=gi.push(l);is=l.id,L1[l.id]=g-1},findTaskById:Ns,addTaskOrg:function(i,n){var l={section:$o,type:$o,description:i,task:i,classes:[]},p=function(g,T){var k=(T.substr(0,1)===":"?T.substr(1,T.length):T).split(","),S={};Pu(k,S,_l);for(var N=0;N<k.length;N++)k[N]=k[N].trim();var B="";switch(k.length){case 1:S.id=Ds(),S.startTime=g.endTime,B=k[0];break;case 2:S.id=Ds(),S.startTime=ko(0,ja,k[0]),B=k[1];break;case 3:S.id=Ds(k[0]),S.startTime=ko(0,ja,k[1]),B=k[2]}return B&&(S.endTime=B1(S.startTime,ja,B,za),S.manualEndTime=u()(B,"YYYY-MM-DD",!0).isValid(),Wo(S,ja,Mc,as)),S}(bl,n);l.startTime=p.startTime,l.endTime=p.endTime,l.id=p.id,l.active=p.active,l.done=p.done,l.crit=p.crit,l.milestone=p.milestone,bl=l,Ou.push(l)},setIncludes:function(i){as=i.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return as},setExcludes:function(i){Mc=i.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Mc},setClickEvent:function(i,n,l){i.split(",").forEach(function(p){(function(g,T,k){if
80(Dt().securityLevel==="loose"&&T!==void 0){var S=[];if(typeof k=="string"){S=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var N=0;N<S.length;N++){var B=S[N].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),S[N]=B}}S.length===0&&S.push(g),Ns(g)!==void 0&&F1(g,function(){var q;qn.runFunc.apply(qn,[T].concat(function(V){if(Array.isArray(V))return Uo(V)}(q=S)||function(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}(q)||function(V,et){if(V){if(typeof V=="string")return Uo(V,et);var J=Object.prototype.toString.call(V).slice(8,-1);return J==="Object"&&V.constructor&&(J=V.constructor.name),J==="Map"||J==="Set"?Array.from(V):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?Uo(V,et):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
81In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(p,n,l)}),I1(i,"clickable")},setLink:function(i,n){var l=n;Dt().securityLevel!=="loose"&&(l=(0,ti.N)(n)),i.split(",").forEach(function(p){Ns(p)!==void 0&&(F1(p,function(){window.open(l,"_self")}),Du[p]=l)}),I1(i,"clickable")},getLinks:function(){return Du},bindFunctions:function(i){Ms.forEach(function(n){n(i)})},durationToDate:O1,isInvalidDate:Lu};function Pu(i,n,l){for(var p=!0;p;)p=!1,l.forEach(function(g){var T=new RegExp("^\\s*"+g+"\\s*$");i[0].match(T)&&(n[g]=!0,i.shift(1),p=!0)})}var wo;const xl={setConf:function(){y.debug("Something is calling, setConf, remove the call")},draw:function(i,n,l,p){var g,T=Dt().gantt,k=Dt().securityLevel;k==="sandbox"&&(g=(0,w.select)("#i"+n));var S=k==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),N=k==="sandbox"?g.nodes()[0].contentDocument:document,B=N.getElementById(n);(wo=B.parentElement.offsetWidth)===void 0&&(wo=1200),T.useWidth!==void 0&&(wo=T.useWidth);var q=p.db.getTasks(),V=q.length*(T.barHeight+T.barGap)+2*T.topPadding;B.setAttribute("viewBox","0 0 "+wo+" "+V);for(var et=S.select('[id="'.concat(n,'"]')),J=(0,w.scaleTime)().domain([(0,w.min)(q,function(Nt){return Nt.startTime}),(0,w.max)(q,function(Nt){return Nt.endTime})]).rangeRound([0,wo-T.leftPadding-T.rightPadding]),Tt=[],St=0;St<q.length;St++)Tt.push(q[St].type);var Lt=Tt;Tt=function(Nt){for(var Ot={},Ft=[],_t=0,ee=Nt.length;_t<ee;++_t)Object.prototype.hasOwnProperty.call(Ot,Nt[_t])||(Ot[Nt[_t]]=!0,Ft.push(Nt[_t]));return Ft}(Tt),q.sort(function(Nt,Ot){var Ft=Nt.startTime,_t=Ot.startTime,ee=0;return Ft>_t?ee=1:Ft<_t&&(ee=-1),ee}),function(Nt,Ot,Ft){var _t=T.barHeight,ee=_t+T.barGap,ke=T.topPadding,ue=T.leftPadding;(0,w.scaleLinear)().domain([0,Tt.length]).range(["#00B9FA","#F95002"]).interpolate(w.interpolateHcl),function(ve,Rt,le,Wt,ie,ce,se,Ne){var Ce=ce.reduce(function(Ue,$e){var bn=$e.startTime;return Ue?Math.min(Ue,bn):bn},0),je=ce.reduce(function(Ue,$e){var bn=$e.endTime;return Ue?Math.max(Ue,bn):bn},0),_n=p.db.getDateFormat();if(Ce&&je){for(var Re=[],tn=null,yn=u()(Ce);yn.valueOf()<=je;)p.db.isInvalidDate(yn,_n,se,Ne)?tn?tn.end=yn.clone():tn={start:yn.clone(),end:yn.clone()}:tn&&(Re.push(tn),tn=null),yn.add(1,"d");et.append("g").selectAll("rect").data(Re).enter().append("rect").attr("id",function(Ue){return"exclude-"+Ue.start.format("YYYY-MM-DD")}).attr("x",function(Ue){return J(Ue.start)+le}).attr("y",T.gridLineStartPadding).attr("width",function(Ue){var $e=Ue.end.clone().add(1,"day");return J($e)-J(Ue.start)}).attr("height",ie-Rt-T.gridLineStartPadding).attr("transform-origin",function(Ue,$e){return(J(Ue.start)+le+.5*(J(Ue.end)-J(Ue.start))).toString()+"px "+($e*ve+.5*ie).toString()+"px"}).attr("class","exclude-range")}}(ee,ke,ue,0,Ft,Nt,p.db.getExcludes(),p.db.getIncludes()),function(ve,Rt,le,Wt){var ie=(0,w.axisBottom)(J).tickSize(-Wt+Rt+T.gridLineStartPadding).tickFormat((0,w.timeFormat)(p.db.getAxisFormat()||T.axisFormat||"%Y-%m-%d"));if(et.append("g").attr("class","grid").attr("transform","translate("+ve+", "+(Wt-50)+")").call(ie).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),p.db.topAxisEnabled()||T.topAxis){var ce=(0,w.axisTop)(J).tickSize(-Wt+Rt+T.gridLineStartPadding).tickFormat((0,w.timeFormat)(p.db.getAxisFormat()||T.axisFormat||"%Y-%m-%d"));et.append("g").attr("class","grid").attr("transform","translate("+ve+", "+Rt+")").call(ce).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(ue,ke,0,Ft),function(ve,Rt,le,Wt,ie,ce,se){et.append("g").selectAll("rect").data(ve).enter().append("rect").attr("x",0).attr("y",function(Re,tn){return Re.order*Rt+le-2}
81).attr("width",function(){return se-T.rightPadding/2}).attr("height",Rt).attr("class",function(Re){for(var tn=0;tn<Tt.length;tn++)if(Re.type===Tt[tn])return"section section"+tn%T.numberSectionStyles;return"section section0"});var Ne=et.append("g").selectAll("rect").data(ve).enter(),Ce=p.db.getLinks();if(Ne.append("rect").attr("id",function(Re){return Re.id}).attr("rx",3).attr("ry",3).attr("x",function(Re){return Re.milestone?J(Re.startTime)+Wt+.5*(J(Re.endTime)-J(Re.startTime))-.5*ie:J(Re.startTime)+Wt}).attr("y",function(Re,tn){return Re.order*Rt+le}).attr("width",function(Re){return Re.milestone?ie:J(Re.renderEndTime||Re.endTime)-J(Re.startTime)}).attr("height",ie).attr("transform-origin",function(Re,tn){return tn=Re.order,(J(Re.startTime)+Wt+.5*(J(Re.endTime)-J(Re.startTime))).toString()+"px "+(tn*Rt+le+.5*ie).toString()+"px"}).attr("class",function(Re){var tn="";Re.classes.length>0&&(tn=Re.classes.join(" "));for(var yn=0,Ue=0;Ue<Tt.length;Ue++)Re.type===Tt[Ue]&&(yn=Ue%T.numberSectionStyles);var $e="";return Re.active?Re.crit?$e+=" activeCrit":$e=" active":Re.done?$e=Re.crit?" doneCrit":" done":Re.crit&&($e+=" crit"),$e.length===0&&($e=" task"),Re.milestone&&($e=" milestone "+$e),"task"+($e+=yn)+" "+tn}),Ne.append("text").attr("id",function(Re){return Re.id+"-text"}).text(function(Re){return Re.task}).attr("font-size",T.fontSize).attr("x",function(Re){var tn=J(Re.startTime),yn=J(Re.renderEndTime||Re.endTime);Re.milestone&&(tn+=.5*(J(Re.endTime)-J(Re.startTime))-.5*ie),Re.milestone&&(yn=tn+ie);var Ue=this.getBBox().width;return Ue>yn-tn?yn+Ue+1.5*T.leftPadding>se?tn+Wt-5:yn+Wt+5:(yn-tn)/2+tn+Wt}).attr("y",function(Re,tn){return Re.order*Rt+T.barHeight/2+(T.fontSize/2-2)+le}).attr("text-height",ie).attr("class",function(Re){var tn=J(Re.startTime),yn=J(Re.endTime);Re.milestone&&(yn=tn+ie);var Ue=this.getBBox().width,$e="";Re.classes.length>0&&($e=Re.classes.join(" "));for(var bn=0,gr=0;gr<Tt.length;gr++)Re.type===Tt[gr]&&(bn=gr%T.numberSectionStyles);var dr="";return Re.active&&(dr=Re.crit?"activeCritText"+bn:"activeText"+bn),Re.done?dr=Re.crit?dr+" doneCritText"+bn:dr+" doneText"+bn:Re.crit&&(dr=dr+" critText"+bn),Re.milestone&&(dr+=" milestoneText"),Ue>yn-tn?yn+Ue+1.5*T.leftPadding>se?$e+" taskTextOutsideLeft taskTextOutside"+bn+" "+dr:$e+" taskTextOutsideRight taskTextOutside"+bn+" "+dr+" width-"+Ue:$e+" taskText taskText"+bn+" "+dr+" width-"+Ue}),Dt().securityLevel==="sandbox"){var je;je=(0,w.select)("#i"+n),(0,w.select)(je.nodes()[0].contentDocument.body);var _n=je.nodes()[0].contentDocument;Ne.filter(function(Re){return Ce[Re.id]!==void 0}).each(function(Re){var tn=_n.querySelector("#"+Re.id),yn=_n.querySelector("#"+Re.id+"-text"),Ue=tn.parentNode,$e=_n.createElement("a");$e.setAttribute("xlink:href",Ce[Re.id]),$e.setAttribute("target","_top"),Ue.appendChild($e),$e.appendChild(tn),$e.appendChild(yn)})}}(Nt,ee,ke,ue,_t,0,Ot),function(ve,Rt){for(var le=[],Wt=0,ie=0;ie<Tt.length;ie++)le[ie]=[Tt[ie],(ce=Tt[ie],se=Lt,function(Ne){for(var Ce=Ne.length,je={};Ce;)je[Ne[--Ce]]=(je[Ne[Ce]]||0)+1;return je}(se)[ce]||0)];var ce,se;et.append("g").selectAll("text").data(le).enter().append(function(Ne){var Ce=Ne[0].split(an.lineBreakRegex),je=-(Ce.length-1)/2,_n=N.createElementNS("http://www.w3.org/2000/svg","text");_n.setAttribute("dy",je+"em");for(var Re=0;Re<Ce.length;Re++){var tn=N.createElementNS("http://www.w3.org/2000/svg","tspan");tn.setAttribute("alignment-baseline","central"),tn.setAttribute("x","10"),Re>0&&tn.setAttribute("dy","1em"),tn.textContent=Ce[Re],_n.appendChild(tn)}return _n}).attr("x",10).attr("y",function(Ne,Ce){if(!(Ce>0))return Ne[1]*ve/2+Rt;for(var je=0;je<Ce;je++)return Wt+=le[Ce-1][1],Ne[1]*ve/2+Wt*ve+Rt}).attr("font-size",T.sectionFontSize).attr("font-size",T.sectionFontSize).attr("class",function(Ne){for(var Ce=0;Ce<Tt.length;Ce++)if(Ne[0]===Tt[Ce])return"sectionTitle sectionTitle"+Ce%T.numberSectionStyles;return"sectionTitle"})}(ee,ke),function(ve,Rt,le,Wt){var ie=p.db.getTodayMarker();if(ie!=="off"){var ce=et.append("g").attr("class","today"),se=new Date,Ne=ce.append("line");Ne.attr("x1",J(se)+ve).attr("x2",J(se)+ve).attr("y1",T.titleTopMargin).attr("y2",Wt-T.titleTopMargin).attr("class","today"),ie!==""&&Ne.attr("style",ie.replace(/,/g,";"))}}(ue,0,0,Ft)}(q,wo,V),Gi(et,0,wo,T.useMaxWidth),et.append("text").text(p.db.getDiagramTitle()).attr("x",wo/2).attr("y",T.titleTopMargin).attr("class","titleText"),kr(p.db,et,n)}};var R1=f(9959),ju=f.n(R1),zu="",Yu=!1;const Td={setMessage:function(i){y.debug("Setting message to: "+i),zu=i},getMessage:function(){return zu},setInfo:function(i){Yu=i},getInfo:function(){return Yu}},kl={draw:function(i,n,l,p){try{y.debug(`Renering info diagram
82`+i);var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=(T==="sandbox"&&g.nodes()[0].contentDocument,k.select("#"+n));S.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+l),S.attr("height",100),S.attr("width",400)}catch(N){y.error("Error while rendering info diagram"),y.error(N.message)}}};var Ya=f(6765),Uu=f.n(Ya),$u=f(7062),Wu=f.n($u),Os={},wl=!1;const Ed={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().pie},addSection:function(i,n){i=an.sanitizeText(i,Dt()),Os[i]===void 0&&(Os[i]=n,y.debug("Added new section :",
82i))},getSections:function(){return Os},cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){Os={},wl=!1,Kt()},setAccTitle:xr,getAccTitle:Or,setDiagramTitle:wa,getDiagramTitle:hr,setShowData:function(i){wl=i},getShowData:function(){return wl},getAccDescription:li,setAccDescription:Vr};var Ua,Di=Dt();const P1={draw:function(i,n,l,p){try{Di=Dt(),y.debug(`Rendering info diagram
83`+i);var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;p.db.clear(),p.parser.parse(i),y.debug("Parsed info diagram");var N=S.getElementById(n);(Ua=N.parentElement.offsetWidth)===void 0&&(Ua=1200),Di.useWidth!==void 0&&(Ua=Di.useWidth),Di.pie.useWidth!==void 0&&(Ua=Di.pie.useWidth);var B=k.select("#"+n);Gi(B,0,Ua,Di.pie.useMaxWidth),kr(p.db,B,n),N.setAttribute("viewBox","0 0 "+Ua+" 450");var q=Math.min(Ua,450)/2-40,V=B.append("g").attr("transform","translate("+Ua/2+",225)"),et=p.db.getSections(),J=0;Object.keys(et).forEach(function(_t){J+=et[_t]});var Tt=Di.themeVariables,St=[Tt.pie1,Tt.pie2,Tt.pie3,Tt.pie4,Tt.pie5,Tt.pie6,Tt.pie7,Tt.pie8,Tt.pie9,Tt.pie10,Tt.pie11,Tt.pie12],Lt=(0,w.scaleOrdinal)().range(St),Nt=(0,w.pie)().value(function(_t){return _t[1]})(Object.entries(et)),Ot=(0,w.arc)().innerRadius(0).outerRadius(q);V.selectAll("mySlices").data(Nt).enter().append("path").attr("d",Ot).attr("fill",function(_t){return Lt(_t.data[0])}).attr("class","pieCircle"),V.selectAll("mySlices").data(Nt).enter().append("text").text(function(_t){return(_t.data[1]/J*100).toFixed(0)+"%"}).attr("transform",function(_t){return"translate("+Ot.centroid(_t)+")"}).style("text-anchor","middle").attr("class","slice"),V.append("text").text(p.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Ft=V.selectAll(".legend").data(Lt.domain()).enter().append("g").attr("class","legend").attr("transform",function(_t,ee){return"translate(216,"+(22*ee-22*Lt.domain().length/2)+")"});Ft.append("rect").attr("width",18).attr("height",18).style("fill",Lt).style("stroke",Lt),Ft.data(Nt).append("text").attr("x",22).attr("y",14).text(function(_t){return p.db.getShowData()||Di.showData||Di.pie.showData?_t.data[0]+" ["+_t.data[1]+"]":_t.data[0]})}catch(_t){y.error("Error while rendering info diagram"),y.error(_t)}}};var j1=f(3176),qu=f.n(j1),Nc=[],Li={},To={},Eo={},Bs={};const z1={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(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().req},addRequirement:function(i,n){return To[i]===void 0&&(To[i]={name:i,type:n,id:Li.id,text:Li.text,risk:Li.risk,verifyMethod:Li.verifyMethod}),Li={},To[i]},getRequirements:function(){return To},setNewReqId:function(i){Li!==void 0&&(Li.id=i)},setNewReqText:function(i){Li!==void 0&&(Li.text=i)},setNewReqRisk:function(i){Li!==void 0&&(Li.risk=i)},setNewReqVerifyMethod:function(i){Li!==void 0&&(Li.verifyMethod=i)}
83,setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li,addElement:function(i){return Bs[i]===void 0&&(Bs[i]={name:i,type:Eo.type,docRef:Eo.docRef},y.info("Added new requirement: ",i)),Eo={},Bs[i]},getElements:function(){return Bs},setNewElementType:function(i){Eo!==void 0&&(Eo.type=i)},setNewElementDocRef:function(i){Eo!==void 0&&(Eo.docRef=i)},addRelationship:function(i,n,l){Nc.push({type:i,src:n,dst:l})},getRelationships:function(){return Nc},clear:function(){Nc=[],Li={},To={},Eo={},Bs={},Kt()}};var Vu={CONTAINS:"contains",ARROW:"arrow"};const $a=Vu;var Fr={},Hu=0,Y1=function(i,n){return i.insert("rect","#"+n).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Fr.rect_min_width+"px").attr("height",Fr.rect_min_height+"px")},So=function(i,n,l){var p=Fr.rect_min_width/2,g=i.append("text").attr("class","req reqLabel reqTitle").attr("id",n).attr("x",p).attr("y",Fr.rect_padding).attr("dominant-baseline","hanging"),T=0;l.forEach(function(S){T==0?g.append("tspan").attr("text-anchor","middle").attr("x",Fr.rect_min_width/2).attr("dy",0).text(S):g.append("tspan").attr("text-anchor","middle").attr("x",Fr.rect_min_width/2).attr("dy",.75*Fr.line_height).text(S),T++});var k=1.5*Fr.rect_padding+T*Fr.line_height*.75;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Fr.rect_min_width).attr("y1",k).attr("y2",k),{titleNode:g,y:k}},U1=function(i,n,l,p){var g=i.append("text").attr("class","req reqLabel").attr("id",n).attr("x",Fr.rect_padding).attr("y",p).attr("dominant-baseline","hanging"),T=0,k=[];return l.forEach(function(S){for(var N=S.length;N>30&&T<3;){var B=S.substring(0,30);N=(S=S.substring(30,S.length)).length,k[k.length]=B,T++}if(T==3){var q=k[k.length-1];k[k.length-1]=q.substring(0,q.length-4)+"..."}else k[k.length]=S;T=0}),k.forEach(function(S){g.append("tspan").attr("x",Fr.rect_padding).attr("dy",Fr.line_height).text(S)}),g},Ls=function(i){return i.replace(/\s/g,"").replace(/\./g,"_")};const Sd={draw:function(i,n,l,p){Fr=Dt().requirement,p.db.clear(),p.parser.parse(i);var g,T=Fr.securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=(T==="sandbox"&&g.nodes()[0].contentDocument,k.select("[id='".concat(n,"']")));(function(Ft,_t){var ee=Ft.append("defs").append("marker").attr("id",Vu.CONTAINS+"_line_ending").attr("refX",0).attr("refY",_t.line_height/2).attr("markerWidth",_t.line_height).attr("markerHeight",_t.line_height).attr("orient","auto").append("g");ee.append("circle").attr("cx",_t.line_height/2).attr("cy",_t.line_height/2).attr("r",_t.line_height/2).attr("fill","none"),ee.append("line").attr("x1",0).attr("x2",_t.line_height).attr("y1",_t.line_height/2).attr("y2",_t.line_height/2).attr("stroke-width",1),ee.append("line").attr("y1",0).attr("y2",_t.line_height).attr("x1",_t.line_height/2).attr("x2",_t.line_height/2).attr("stroke-width",1),Ft.append("defs").append("marker").attr("id",Vu.ARROW+"_line_ending").attr("refX",_t.line_height).attr("refY",.5*_t.line_height).attr("markerWidth",_t.line_height).attr("markerHeight",_t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
84      L`.concat(_t.line_height,",").concat(_t.line_height/2,`
85      M`).concat(_t.line_height,",").concat(_t.line_height/2,`
86      L0,`).concat(_t.line_height)).attr("stroke-width",1)})(S,Fr);var N,B,q,V=new(fi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Fr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),et=p.db.getRequirements(),J=p.db.getElements(),Tt=p.db.getRelationships();N=et,B=V,q=S,Object.keys(N).forEach(function(Ft){var _t=N[Ft];Ft=Ls(Ft),y.info("Added new requirement: ",Ft);var ee=q.append("g").attr("id",Ft),ke=Y1(ee,"req-"+Ft),ue=So(ee,Ft+"_title",["<<".concat(_t.type,">>"),"".concat(_t.name)]);U1(ee,Ft+"_body",["Id: ".concat(_t.id),"Text: ".concat(_t.text),"Risk: ".concat(_t.risk),"Verification: ".concat(_t.verifyMethod)],ue.y);var ve=ke.node().getBBox();B.setNode(Ft,{width:ve.width,height:ve.height,shape:"rect",id:Ft})}),function(Ft,_t,ee){Object.keys(Ft).forEach(function(ke){var ue=Ft[ke],ve=Ls(ke),Rt=ee.append("g").attr("id",ve),le="element-"+ve,Wt=Y1(Rt,le),ie=So(Rt,le+"_title",["<<Element>>","".concat(ke)]);U1(Rt,le+"_body",["Type: ".concat(ue.type||"Not Specified"),"Doc Ref: ".concat(ue.docRef||"None")],ie.y);var ce=Wt.node().getBBox();
86_t.setNode(ve,{width:ce.width,height:ce.height,shape:"rect",id:ve})})}(J,V,S),function(Ft,_t){Ft.forEach(function(ee){var ke=Ls(ee.src),ue=Ls(ee.dst);_t.setEdge(ke,ue,{relationship:ee})})}(Tt,V),xs().layout(V),function(Ft,_t){_t.nodes().forEach(function(ee){ee!==void 0&&_t.node(ee)!==void 0&&(Ft.select("#"+ee),Ft.select("#"+ee).attr("transform","translate("+(_t.node(ee).x-_t.node(ee).width/2)+","+(_t.node(ee).y-_t.node(ee).height/2)+" )"))})}(S,V),Tt.forEach(function(Ft){(function(_t,ee,ke,ue,ve){var Rt=ke.edge(Ls(ee.src),Ls(ee.dst)),le=(0,w.line)().x(function(ie){return ie.x}).y(function(ie){return ie.y}),Wt=_t.insert("path","#"+ue).attr("class","er relationshipLine").attr("d",le(Rt.points)).attr("fill","none");ee.type==ve.db.Relationships.CONTAINS?Wt.attr("marker-start","url("+an.getUrl(Fr.arrowMarkerAbsolute)+"#"+ee.type+"_line_ending)"):(Wt.attr("stroke-dasharray","10,7"),Wt.attr("marker-end","url("+an.getUrl(Fr.arrowMarkerAbsolute)+"#"+$a.ARROW+"_line_ending)")),function(ie,ce,se,Ne){var Ce=ce.node().getTotalLength(),je=ce.node().getPointAtLength(.5*Ce),_n="rel"+Hu;Hu++;var Re=ie.append("text").attr("class","req relationshipLabel").attr("id",_n).attr("x",je.x).attr("y",je.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Ne).node().getBBox();ie.insert("rect","#"+_n).attr("class","req reqLabelBox").attr("x",je.x-Re.width/2).attr("y",je.y-Re.height/2).attr("width",Re.width).attr("height",Re.height).attr("fill","white").attr("fill-opacity","85%")}(_t,Wt,0,"<<".concat(ee.type,">>"))})(S,Ft,V,n,p)});var St=Fr.rect_padding,Lt=S.node().getBBox(),Nt=Lt.width+2*St,Ot=Lt.height+2*St;Gi(S,0,Nt,Fr.useMaxWidth),S.attr("viewBox","".concat(Lt.x-St," ").concat(Lt.y-St," ").concat(Nt," ").concat(Ot)),kr(p.db,S,n)}};var Gu,Co=f(6876),$1=f.n(Co),os=void 0,eo={},Wa=[],Tl=!1,Xu=function(i,n,l,p){var g=eo[i];g&&n===g.name&&l==null||(l!=null&&l.text!=null||(l={text:n,wrap:null,type:p}),p!=null&&l.text!=null||(l={text:n,wrap:null,type:p}),eo[i]={name:n,description:l.text,wrap:l.wrap===void 0&&no()||!!l.wrap,prevActor:os,links:{},properties:{},actorCnt:null,rectData:null,type:p||"participant"},os&&eo[os]&&(eo[os].nextActor=i),os=i)},Cd=function(i){var n,l=0;for(n=0;n<Wa.length;n++)Wa[n].type===ro.ACTIVE_START&&Wa[n].from.actor===i&&l++,Wa[n].type===ro.ACTIVE_END&&Wa[n].from.actor===i&&l--;return l},Rr=function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},p=arguments.length>3?arguments[3]:void 0;if(p===ro.ACTIVE_END){var g=Cd(i.actor);if(g<1){var T=new Error("Trying to inactivate an inactive participant ("+i.actor+")");throw T.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},T}}return Wa.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&no()||!!l.wrap,type:p}),!0},ss=function(i){return eo[i]},no=function(){return Gu!==void 0?Gu:Dt().sequence.wrap},ro={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},Zu=function(i,n,l){l.text,l.wrap===void 0&&no()||l.wrap;var p=[].concat(i,i);Wa.push({from:p[0],to:p[1],message:l.text,wrap:l.wrap===void 0&&no()||!!l.wrap,type:ro.NOTE,placement:n})},Qu=function(i,n){var l=ss(i);try{var p=cr(n.text,Dt());p=(p=p.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),El(l,JSON.parse(p))}catch(g){y.error("error while parsing actor link text",g)}};function El(i,n){if(i.links==null)i.links=n;else for(var l in n)i.links[l]=n[l]}var Yi=function(i,n){var l=ss(i);try{var p=cr(n.text,Dt());Oc(l,JSON.parse(p))}catch(g){y.error("error while parsing actor properties text",g)}};function Oc(i,n){if(i.properties==null)i.properties=n;else for(var l in n)i.properties[l]=n[l]}var Ku=function(i,n){var l=ss(i),p=document.getElementById(n.text);try{var g=p.innerHTML,T=JSON.parse(g);T.properties&&Oc(l,T.properties),T.links&&El(l,T.links)}catch(k){y.error("error while parsing actor details text",k)}};const Bc={addActor:Xu,addMessage:function(i,n,l,p){Wa.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&no()||!!l.wrap,answer:p})},addSignal:Rr,addLinks:Qu,addDetails:Ku,addProperties:Yi,autoWrap:no,setWrap:function(i){Gu=i},enableSequenceNumbers:function(){Tl=!0},disableSequenceNumbers:function(){Tl=!1},showSequenceNumbers:function(){return Tl},getMessages:function(){return Wa},getActors:function(){return eo},getActor:ss,getActorKeys:function(){return Object.keys(eo)},getActorProperty:function(i,n){if(i!==void 0&&i.properties!==void 0)return i.properties[n]},getAccTitle:Or,getDiagramTitle:hr,setDiagramTitle:wa,parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().sequence},clear:function(){eo={},Wa=[],Tl=!1,Kt()},parseMessage:function(i){var n=i.trim(),l={text:n.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:n.match(/^[:]?wrap:/)!==null||n.match(/^[:]?nowrap:/)===null&&void 0};return y.debug("parseMessage:",l),l},LINETYPE:ro,ARROWTYPE:{FILLED:0,OPEN:1}
86,PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Zu,setAccTitle:xr,apply:function i(n){if(n instanceof Array)n.forEach(function(l){i(l)});else switch(n.type){case"sequenceIndex":Wa.push({from:void 0,to:void 0,message:{start:n.sequenceIndex,step:n.sequenceIndexStep,visible:n.sequenceVisible},wrap:!1,type:n.signalType});break;case"addParticipant":Xu(n.actor,n.actor,n.description,"participant");break;case"addActor":Xu(n.actor,n.actor,n.description,"actor");break;case"activeStart":case"activeEnd":Rr(n.actor,void 0,void 0,n.signalType);break;case"addNote":Zu(n.actor,n.placement,n.text);break;case"addLinks":Qu(n.actor,n.text);break;case"addALink":(function(l,p){var g=ss(l);try{var T={},k=cr(p.text,Dt()),S=k.indexOf("@"),N=(k=(k=k.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,S-1).trim(),B=k.slice(S+1).trim();T[N]=B,El(g,T)}catch(q){y.error("error while parsing actor link text",q)}})(n.actor,n.text);break;case"addProperties":Yi(n.actor,n.text);break;case"addDetails":Ku(n.actor,n.text);break;case"addMessage":Rr(n.from,n.to,n.msg,n.signalType);break;case"loopStart":Rr(void 0,void 0,n.loopText,n.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Rr(void 0,void 0,void 0,n.signalType);break;case"rectStart":Rr(void 0,void 0,n.color,n.signalType);break;case"optStart":Rr(void 0,void 0,n.optText,n.signalType);break;case"altStart":case"else":Rr(void 0,void 0,n.altText,n.signalType);break;case"setAccTitle":xr(n.text);break;case"parStart":case"and":Rr(void 0,void 0,n.parText,n.signalType);break;case"criticalStart":Rr(void 0,void 0,n.criticalText,n.signalType);break;case"option":Rr(void 0,void 0,n.optionText,n.signalType);break;case"breakStart":Rr(void 0,void 0,n.breakText,n.signalType)}},setAccDescription:Vr,getAccDescription:li};var Is=[],Fs=function(i,n){var l=i.append("rect");return l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.class!==void 0&&l.attr("class",n.class),l},W1=function(i,n){var l;l=function(){var p=document.querySelectorAll(i);p.length!==0&&(p[0].addEventListener("mouseover",function(){Lc("actor"+n+"_popup")}),p[0].addEventListener("mouseout",function(){Md("actor"+n+"_popup")}))},Is.push(l)},Ad=function(i,n,l,p){var g=i.append("image");g.attr("x",n),g.attr("y",l);var T=(0,ti.N)(p);g.attr("xlink:href",T)},Rs=function(i,n,l,p){var g=i.append("use");g.attr("x",n),g.attr("y",l);var T=(0,ti.N)(p);g.attr("xlink:href","#"+T)},Lc=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="block")},Md=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="none")},Ic=function(i,n){var l=0,p=0,g=n.text.split(an.lineBreakRegex),T=[],k=0,S=function(){return n.y};if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case"top":case"start":S=function(){return Math.round(n.y+n.textMargin)};break;case"middle":case"center":S=function(){return Math.round(n.y+(l+p+n.textMargin)/2)};break;case"bottom":case"end":S=function(){return Math.round(n.y+(l+p+2*n.textMargin)-n.textMargin)}}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case"left":case"start":n.x=Math.round(n.x+n.textMargin),n.anchor="start",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"middle":case"center":n.x=Math.round(n.x+n.width/2),n.anchor="middle",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"right":case"end":n.x=Math.round(n.x+n.width-n.textMargin),n.anchor="end",n.dominantBaseline="middle",n.alignmentBaseline="middle"}for(var N=0;N<g.length;N++){var B=g[N];n.textMargin!==void 0&&n.textMargin===0&&n.fontSize!==void 0&&(k=N*n.fontSize);var q=i.append("text");if(q.attr("x",n.x),q.attr("y",S()),n.anchor!==void 0&&q.attr("text-anchor",n.anchor).attr("dominant-baseline",n.dominantBaseline).attr("alignment-baseline",n.alignmentBaseline),n.fontFamily!==void 0&&q.style("font-family",n.fontFamily),n.fontSize!==void 0&&q.style("font-size",n.fontSize),n.fontWeight!==void 0&&q.style("font-weight",n.fontWeight),n.fill!==void 0&&q.attr("fill",n.fill),n.class!==void 0&&q.attr("class",n.class),n.dy!==void 0?q.attr("dy",n.dy):k!==0&&q.attr("dy",k),n.tspan){var V=q.append("tspan");
86V.attr("x",n.x),n.fill!==void 0&&V.attr("fill",n.fill),V.text(B)}else q.text(B);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(p+=(q._groups||q)[0][0].getBBox().height,l=p),T.push(q)}return T},q1=function(i,n){var l=i.append("polygon");return l.attr("points",function(p,g,T,k,S){return p+","+g+" "+(p+T)+","+g+" "+(p+T)+","+(g+k-7)+" "+(p+T-8.4)+","+(g+k)+" "+p+","+(g+k)}(n.x,n.y,n.width,n.height)),l.attr("class","labelBox"),n.y=n.y+n.height/2,Ic(i,n),l},Ui=-1,Ju=function(i,n){i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",n-55)},V1=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}},Dd=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},cs=function(){function i(g,T,k,S,N,B,q){p(T.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,B,q,V){for(var et=V.actorFontSize,J=V.actorFontFamily,Tt=V.actorFontWeight,St=et&&et.replace?et.replace("px",""):et,Lt=g.split(an.lineBreakRegex),Nt=0;Nt<Lt.length;Nt++){var Ot=Nt*St-St*(Lt.length-1)/2,Ft=T.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").style("font-size",et).style("font-weight",Tt).style("font-family",J);Ft.append("tspan").attr("x",k+N/2).attr("dy",Ot).text(Lt[Nt]),Ft.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(Ft,q)}}function l(g,T,k,S,N,B,q,V){var et=T.append("switch"),J=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");J.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,B,q,V),p(J,q)}function p(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}(),Nd=function(){function i(g,T,k,S,N,B,q){p(T.append("text").attr("x",k).attr("y",S).style("text-anchor","start").text(g),q)}function n(g,T,k,S,N,B,q,V){for(var et=V.actorFontSize,J=V.actorFontFamily,Tt=V.actorFontWeight,St=g.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=Lt*et-et*(St.length-1)/2,Ot=T.append("text").attr("x",k).attr("y",S).style("text-anchor","start").style("font-size",et).style("font-weight",Tt).style("font-family",J);Ot.append("tspan").attr("x",k).attr("dy",Nt).text(St[Lt]),Ot.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(Ot,q)}}function l(g,T,k,S,N,B,q,V){var et=T.append("switch"),J=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");J.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,0,B,q,V),p(J,q)}function p(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const Od=Fs,Bd=function(i,n,l){switch(n.type){case"actor":return function(p,g,T){var k=g.x+g.width/2;g.y===0&&(Ui++,p.append("line").attr("id","actor"+Ui).attr("x1",k).attr("y1",80).attr("x2",k).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var S=p.append("g");S.attr("class","actor-man");var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};N.x=g.x,N.y=g.y,N.fill="#eaeaea",N.width=g.width,N.height=g.height,N.class="actor",N.rx=3,N.ry=3,S.append("line").attr("id","actor-man-torso"+Ui).attr("x1",k).attr("y1",g.y+25).attr("x2",k).attr("y2",g.y+45),S.append("line").attr("id","actor-man-arms"+Ui).attr("x1",k-18).attr("y1",g.y+33).attr("x2",k+18).attr("y2",g.y+33),S.append("line").attr("x1",k-18).attr("y1",g.y+60).attr("x2",k).attr("y2",g.y+45),S.append("line").attr("x1",k).attr("y1",g.y+45).attr("x2",k+16).attr("y2",g.y+60);var B=S.append("circle");B.attr("cx",g.x+g.width/2),B.attr("cy",g.y+10),B.attr("r",15),B.attr("width",g.width),B.attr("height",g.he
86ight);var q=S.node().getBBox();return g.height=q.height,cs(T)(g.description,S,N.x,N.y+35,N.width,N.height,{class:"actor"},T),g.height}(i,n,l);case"participant":return function(p,g,T){var k=g.x+g.width/2,S=p.append("g"),N=S;g.y===0&&(Ui++,N.append("line").attr("id","actor"+Ui).attr("x1",k).attr("y1",5).attr("x2",k).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),N=S.append("g"),g.actorCnt=Ui,g.links!=null&&(N.attr("id","root-"+Ui),W1("#root-"+Ui,Ui)));var B={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},q="actor";g.properties!=null&&g.properties.class?q=g.properties.class:B.fill="#eaeaea",B.x=g.x,B.y=g.y,B.width=g.width,B.height=g.height,B.class=q,B.rx=3,B.ry=3;var V=Fs(N,B);if(g.rectData=B,g.properties!=null&&g.properties.icon){var et=g.properties.icon.trim();et.charAt(0)==="@"?Rs(N,B.x+B.width-20,B.y+10,et.substr(1)):Ad(N,B.x+B.width-20,B.y+10,et)}cs(T)(g.description,N,B.x,B.y,B.width,B.height,{class:"actor"},T);var J=g.height;if(V.node){var Tt=V.node().getBBox();g.height=Tt.height,J=Tt.height}return J}(i,n,l)}},th=function(i,n,l,p,g){if(n.links===void 0||n.links===null||Object.keys(n.links).length===0)return{height:0,width:0};var T=n.links,k=n.actorCnt,S=n.rectData,N="none";g&&(N="block !important");var B=i.append("g");B.attr("id","actor"+k+"_popup"),B.attr("class","actorPopupMenu"),B.attr("display",N),W1("#actor"+k+"_popup",k);var q="";S.class!==void 0&&(q=" "+S.class);var V=S.width>l?S.width:l,et=B.append("rect");if(et.attr("class","actorPopupMenuPanel"+q),et.attr("x",S.x),et.attr("y",S.height),et.attr("fill",S.fill),et.attr("stroke",S.stroke),et.attr("width",V),et.attr("height",S.height),et.attr("rx",S.rx),et.attr("ry",S.ry),T!=null){var J=20;for(var Tt in T){var St=B.append("a"),Lt=(0,ti.N)(T[Tt]);St.attr("xlink:href",Lt),St.attr("target","_blank"),Nd(p)(Tt,St,S.x+10,S.height+J,V,20,{class:"actor"},p),J+=30}}return et.attr("height",J),{height:S.height+J,width:V}},Sl=function(i){return i.append("g")},eh=function(i,n,l,p,g){var T={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},k=n.anchored;T.x=n.startx,T.y=n.starty,T.class="activation"+g%3,T.width=n.stopx-n.startx,T.height=l-n.starty,Fs(k,T)},Ps=function(i,n,l,p){var g=p.boxMargin,T=p.boxTextMargin,k=p.labelBoxHeight,S=p.labelBoxWidth,N=p.messageFontFamily,B=p.messageFontSize,q=p.messageFontWeight,V=i.append("g"),et=function(St,Lt,Nt,Ot){return V.append("line").attr("x1",St).attr("y1",Lt).attr("x2",Nt).attr("y2",Ot).attr("class","loopLine")};et(n.startx,n.starty,n.stopx,n.starty),et(n.stopx,n.starty,n.stopx,n.stopy),et(n.startx,n.stopy,n.stopx,n.stopy),et(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(St){et(n.startx,St.y,n.stopx,St.y).style("stroke-dasharray","3, 3")});var J={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};J.text=l,J.x=n.startx,J.y=n.starty,J.fontFamily=N,J.fontSize=B,J.fontWeight=q,J.anchor="middle",J.valign="middle",J.tspan=!1,J.width=S||50,J.height=k||20,J.textMargin=T,J.class="labelText",q1(V,J),(J={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=n.title,J.x=n.startx+S/2+(n.stopx-n.startx)/2,J.y=n.starty+g+T,J.anchor="middle",J.valign="middle",J.textMargin=T,J.class="loopText",J.fontFamily=N,J.fontSize=B,J.fontWeight=q,J.wrap=!0;var Tt=Ic(V,J);
86return n.sectionTitles!==void 0&&n.sectionTitles.forEach(function(St,Lt){if(St.message){J.text=St.message,J.x=n.startx+(n.stopx-n.startx)/2,J.y=n.sections[Lt].y+g+T,J.class="loopText",J.anchor="middle",J.valign="middle",J.tspan=!1,J.fontFamily=N,J.fontSize=B,J.fontWeight=q,J.wrap=n.wrap,Tt=Ic(V,J);var Nt=Math.round(Tt.map(function(Ot){return(Ot._groups||Ot)[0][0].getBBox().height}).reduce(function(Ot,Ft){return Ot+Ft}));n.sections[Lt].height+=Nt-(g+T)}}),n.height=Math.round(n.stopy-n.starty),V},Ld=function(i,n){Fs(i,{x:n.startx,y:n.starty,width:n.stopx-n.startx,height:n.stopy-n.starty,fill:n.fill,class:"rect"}).lower()},Id=function(i){i.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")},Fd=function(i){i.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")},Rd=function(i){i.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)},H1=function(i){var n=i.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.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"),n.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")},nh=function(i){i
vendor: 13,305 bytes, line 86
86.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")},
86G1=function(i){i.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")},X1=function(i){i.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")},Qi=V1,Cl=Dd;ti.N;var he={},cn={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(i){return i.height||0}))+(this.loops.length===0?0:this.loops.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))+(this.messages.length===0?0:this.messages.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))+(this.notes.length===0?0:this.notes.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(i){this.actors.push(i)},addLoop:function(i){this.loops.push(i)},addMessage:function(i){this.messages.push(i)},addNote:function(i){this.notes.push(i)},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,Q1(Dt())},updateVal:function(i,n,l,p){i[n]===void 0?i[n]=l:i[n]=p(l,i[n])},updateBounds:function(i,n,l,p){var g=this,T=0;function k(S){return function(N){T++;var B=g.sequenceItems.length-T+1;g.updateVal(N,"starty",n-B*he.boxMargin,Math.min),g.updateVal(N,"stopy",p+B*he.boxMargin,Math.max),g.updateVal(cn.data,"startx",i-B*he.boxMargin,Math.min),g.updateVal(cn.data,"stopx",l+B*he.boxMargin,Math.max),S!=="activation"&&(g.updateVal(N,"startx",i-B*he.boxMargin,Math.min),g.updateVal(N,"stopx",l+B*he.boxMargin,Math.max),g.updateVal(cn.data,"starty",n-B*he.boxMargin,Math.min),g.updateVal(cn.data,"stopy",p+B*he.boxMargin,Math.max))}}this.sequenceItems.forEach(k()),this.activations.forEach(k("activation"))},insert:function(i,n,l,p){var g=Math.min(i,l),T=Math.max(i,l),k=Math.min(n,p),S=Math.max(n,p);this.updateVal(cn.data,"startx",g,Math.min),this.updateVal(cn.data,"starty",k,Math.min),this.updateVal(cn.data,"stopx",T,Math.max),this.updateVal(cn.data,"stopy",S,Math.max),this.updateBounds(g,k,T,S)},newActivation:function(i,n,l){var p=l[i.from.actor],g=io(i.from.actor).length||0,T=p.x+p.width/2+(g-1)*he.activationWidth/2;this.activations.push({startx:T,starty:this.verticalPos+2,stopx:T+he.activationWidth,stopy:void 0,actor:i.from.actor,anchored:Sl(n)})},endActivation:function(i){var n=this.activations.map(function(l){return l.actor}).lastIndexOf(i.from.actor);return this.activations.splice(n,1)[0]},createLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},n=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:i.message,wrap:i.wrap,width:i.width,height:0,fill:n}},newLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},n=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(i,n))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(i){var n=this.sequenceItems.pop();n.sections=n.sections||[],n.sectionTitles=n.sectionTitles||[],n.sections.push({y:cn.getVerticalPos(),height:0}),n.sectionTitles.push(i),this.sequenceItems.push(n)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},js=function(i){return{fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight}},zs=function(i){return{fontFamily:i.noteFontFamily,fontSize:i.noteFontSize,fontWeight:i.noteFontWeight}},rh=function(i){return{fontFamily:i.actorFontFamily,fontSize:i.actorFontSize,fontWeight:i.actorFontWeight}},ih=function(i,n,l,p,g,T){if(g.hideUnusedParticipants===!0){var k=new Set;T.forEach(function(J){k.add(J.from),k.add(J.to)}),l=l.filter(function(J){return k.has(J)})}for(var S=0,N=0,B=0,q=0;q<l.length;q++){var V=n[l[q]];V.width=V.width||he.width,V.height=Math.max(V.height||he.height,he.height),V.margin=V.margin||he.actorMargin,V.x=S+N,V.y=p;var et=Bd(i,V,he);B=Math.max(B,et),cn.insert(V.x,p,V.x+V.width,V.height),S+=V.width,N+=V.margin,cn.models.addActor(V)}cn.bumpVerticalPos(B)},Z1=function(i,n,l,p){for(var g=0,T=0,k=0;k<l.length;k++){var S=n[l[k]],N=Pd(S),B=th(i,S,N,he,he.forceMenus);B.height>g&&(g=B.height),B.width+S.x>T&&(T=B.width+S.x)}return{maxHeight:g,maxWidth:T}}
86,Q1=function(i){te(he,i),i.fontFamily&&(he.actorFontFamily=he.noteFontFamily=he.messageFontFamily=i.fontFamily),i.fontSize&&(he.actorFontSize=he.noteFontSize=he.messageFontSize=i.fontSize),i.fontWeight&&(he.actorFontWeight=he.noteFontWeight=he.messageFontWeight=i.fontWeight)},io=function(i){return cn.activations.filter(function(n){return n.actor===i})},ah=function(i,n){var l=n[i],p=io(i);return[p.reduce(function(g,T){return Math.min(g,T.startx)},l.x+l.width/2),p.reduce(function(g,T){return Math.max(g,T.stopx)},l.x+l.width/2)]};function ao(i,n,l,p,g){cn.bumpVerticalPos(l);var T=p;if(n.id&&n.message&&i[n.id]){var k=i[n.id].width,S=js(he);n.message=qn.wrapLabel("[".concat(n.message,"]"),k-2*he.wrapPadding,S),n.width=k,n.wrap=!0;var N=qn.calculateTextDimensions(n.message,S),B=Math.max(N.height,he.labelBoxHeight);T=p+B,y.debug("".concat(B," - ").concat(n.message))}g(n),cn.bumpVerticalPos(T)}var Pd=function(i){var n=0,l=rh(he);for(var p in i.links){var g=qn.calculateTextDimensions(p,l).width+2*he.wrapPadding+2*he.boxMargin;n<g&&(n=g)}return n};const Fc={bounds:cn,drawActors:ih,drawActorsPopup:Z1,setConf:Q1,draw:function(i,n,l,p){he=Dt().sequence;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body");T==="sandbox"&&g.nodes()[0].contentDocument,cn.init(),y.debug(p.db);var S=T==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,w.select)('[id="'.concat(n,'"]')),N=p.db.getActors(),B=p.db.getActorKeys(),q=p.db.getMessages(),V=p.db.getDiagramTitle(),et=function(ve,Rt,le){var Wt={};return Rt.forEach(function(ie){if(ve[ie.to]&&ve[ie.from]){var ce=ve[ie.to];if(ie.placement===le.db.PLACEMENT.LEFTOF&&!ce.prevActor||ie.placement===le.db.PLACEMENT.RIGHTOF&&!ce.nextActor)return;var se=ie.placement!==void 0,Ne=!se,Ce=se?zs(he):js(he),je=ie.wrap?qn.wrapLabel(ie.message,he.width-2*he.wrapPadding,Ce):ie.message,_n=qn.calculateTextDimensions(je,Ce).width+2*he.wrapPadding;Ne&&ie.from===ce.nextActor?Wt[ie.to]=Math.max(Wt[ie.to]||0,_n):Ne&&ie.from===ce.prevActor?Wt[ie.from]=Math.max(Wt[ie.from]||0,_n):Ne&&ie.from===ie.to?(Wt[ie.from]=Math.max(Wt[ie.from]||0,_n/2),Wt[ie.to]=Math.max(Wt[ie.to]||0,_n/2)):ie.placement===le.db.PLACEMENT.RIGHTOF?Wt[ie.from]=Math.max(Wt[ie.from]||0,_n):ie.placement===le.db.PLACEMENT.LEFTOF?Wt[ce.prevActor]=Math.max(Wt[ce.prevActor]||0,_n):ie.placement===le.db.PLACEMENT.OVER&&(ce.prevActor&&(Wt[ce.prevActor]=Math.max(Wt[ce.prevActor]||0,_n/2)),ce.nextActor&&(Wt[ie.from]=Math.max(Wt[ie.from]||0,_n/2)))}}),y.debug("maxMessageWidthPerActor:",Wt),Wt}(N,q,p);he.height=function(ve,Rt){var le=0;for(var Wt in Object.keys(ve).forEach(function(Ne){var Ce=ve[Ne];Ce.wrap&&(Ce.description=qn.wrapLabel(Ce.description,he.width-2*he.wrapPadding,rh(he)));var je=qn.calculateTextDimensions(Ce.description,rh(he));Ce.width=Ce.wrap?he.width:Math.max(he.width,je.width+2*he.wrapPadding),Ce.height=Ce.wrap?Math.max(je.height,he.height):he.height,le=Math.max(le,Ce.height)}),Rt){var ie=ve[Wt];if(ie){var ce=ve[ie.nextActor];if(ce){var se=Rt[Wt]+he.actorMargin-ie.width/2-ce.width/2;ie.margin=Math.max(se,he.actorMargin)}}}return Math.max(le,he.height)}(N,et),G1(S),nh(S),X1(S),ih(S,N,B,0,he,q);var J=function(ve,Rt,le,Wt){var ie,ce,se,Ne={},Ce=[];return ve.forEach(function(je){switch(je.id=qn.random({length:10}),je.type){case Wt.db.LINETYPE.LOOP_START:case Wt.db.LINETYPE.ALT_START:case Wt.db.LINETYPE.OPT_START:case Wt.db.LINETYPE.PAR_START:case Wt.db.LINETYPE.CRITICAL_START:case Wt.db.LINETYPE.BREAK_START:Ce.push({id:je.id,msg:je.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Wt.db.LINETYPE.ALT_ELSE:case Wt.db.LINETYPE.PAR_AND:case Wt.db.LINETYPE.CRITICAL_OPTION:je.message&&(ie=Ce.pop(),Ne[ie.id]=ie,Ne[je.id]=ie,Ce.push(ie));break;case Wt.db.LINETYPE.LOOP_END:case Wt.db.LINETYPE.ALT_END:case Wt.db.LINETYPE.OPT_END:case Wt.db.LINETYPE.PAR_END:case Wt.db.LINETYPE.CRITICAL_END:case Wt.db.LINETYPE.BREAK_END:ie=Ce.pop(),Ne[ie.id]=ie;break;case Wt.db.LINETYPE.ACTIVE_START:var _n=Rt[je.from?je.from.actor:je.to.actor],Re=io(je.from?je.from.actor:je.to.actor).length,tn=_n.x+_n.width/2+(Re-1)*he.activationWidth/2,yn={startx:tn,stopx:tn+he.activationWidth,actor:je.from.actor,enabled:!0};cn.activations.push(yn);break;case Wt.db.LINETYPE.ACTIVE_END:var Ue=cn.activations.map(function($e){return $e.actor}).lastIndexOf(je.from.actor);delete cn.activations.splice(Ue,1)[0]}je.placement!==void 0?(ce=function($e,bn,gr){var dr=bn[$e.from].x,jr=bn[$e.to].x,fr=$e.wrap&&$e.message,mi=qn.calculateTextDimensions(fr?qn.wrapLabel($e.message,he.width,zs(he)):$e.message,zs(he)),ur={width:fr?he.width:Math.max(he.width,mi.width+2*he.noteMargin),height:0,startx:bn[$e.from].x,stopx:0,starty:0,stopy:0,message:$e.message};return $e.placement===gr.db.PLACEMENT.RIGHTOF?(ur.width=fr?Math.max(he.width,mi.width):Math.max(bn[$e.from].width/2+bn[$e.to].width/2,mi.width+2*he.noteMargin),ur.startx=dr+(bn[$e.from].width+he.actorMargin)/2):$e.placement===gr.db.PLACEMENT.LEFTOF?(ur.width=Math.max(fr?he.width:bn[$e.from].width/2+bn[$e.to].width/2,mi.width+2*he.noteMargin),ur.startx=dr-ur.width+(bn[$e.from].width-he.actorMargin)/2):$e.to===$e.from?(mi=qn.calculateTextDimensions(fr?qn.wrapLabel($e.message,Math.max(he.width,bn[$e.from].width),zs(he)):$e.message,zs(he)),ur.width=fr?Math.max(he.width,bn[$e.from].width):Math.max(bn[$e.from].width,he.width,mi.width+2*he.noteMargin),ur.startx=dr+(bn[$e.from].width-ur.width)/2):(ur.width=Math.abs(dr+bn[$e.from].width/2-(jr+bn[$e.to].width/2))+he.actorMargin,ur.startx=dr<jr?dr+bn[$e.from].width/2-he.actorMargin/2:jr+bn[$e.to].width/2-he.actorMargin/2),fr&&(ur.message=qn.wrapLabel($e.message,ur.width-2*he.wrapPadding,z
86s(he))),y.debug("NM:[".concat(ur.startx,",").concat(ur.stopx,",").concat(ur.starty,",").concat(ur.stopy,":").concat(ur.width,",").concat(ur.height,"=").concat($e.message,"]")),ur}(je,Rt,Wt),je.noteModel=ce,Ce.forEach(function($e){(ie=$e).from=Math.min(ie.from,ce.startx),ie.to=Math.max(ie.to,ce.startx+ce.width),ie.width=Math.max(ie.width,Math.abs(ie.from-ie.to))-he.labelBoxWidth})):(se=function($e,bn,gr){var dr=!1;if([gr.db.LINETYPE.SOLID_OPEN,gr.db.LINETYPE.DOTTED_OPEN,gr.db.LINETYPE.SOLID,gr.db.LINETYPE.DOTTED,gr.db.LINETYPE.SOLID_CROSS,gr.db.LINETYPE.DOTTED_CROSS,gr.db.LINETYPE.SOLID_POINT,gr.db.LINETYPE.DOTTED_POINT].includes($e.type)&&(dr=!0),!dr)return{};var jr=ah($e.from,bn),fr=ah($e.to,bn),mi=jr[0]<=fr[0]?1:0,ur=jr[0]<fr[0]?0:1,Da=jr.concat(fr),la=Math.abs(fr[ur]-jr[mi]);$e.wrap&&$e.message&&($e.message=qn.wrapLabel($e.message,Math.max(la+2*he.wrapPadding,he.width),js(he)));var ai=qn.calculateTextDimensions($e.message,js(he));return{width:Math.max($e.wrap?0:ai.width+2*he.wrapPadding,la+2*he.wrapPadding,he.width),height:0,startx:jr[mi],stopx:fr[ur],starty:0,stopy:0,message:$e.message,type:$e.type,wrap:$e.wrap,fromBounds:Math.min.apply(null,Da),toBounds:Math.max.apply(null,Da)}}(je,Rt,Wt),je.msgModel=se,se.startx&&se.stopx&&Ce.length>0&&Ce.forEach(function($e){if(ie=$e,se.startx===se.stopx){var bn=Rt[je.from],gr=Rt[je.to];ie.from=Math.min(bn.x-se.width/2,bn.x-bn.width/2,ie.from),ie.to=Math.max(gr.x+se.width/2,gr.x+bn.width/2,ie.to),ie.width=Math.max(ie.width,Math.abs(ie.to-ie.from))-he.labelBoxWidth}else ie.from=Math.min(se.startx,ie.from),ie.to=Math.max(se.stopx,ie.to),ie.width=Math.max(ie.width,se.width)-he.labelBoxWidth}))}),cn.activations=[],y.debug("Loop type widths:",Ne),Ne}(q,N,0,p);Id(S),H1(S),Fd(S),Rd(S);var Tt=1,St=1,Lt=Array();q.forEach(function(ve){var Rt,le,Wt;switch(ve.type){case p.db.LINETYPE.NOTE:le=ve.noteModel,function(ce,se){cn.bumpVerticalPos(he.boxMargin),se.height=he.boxMargin,se.starty=cn.getVerticalPos();var Ne=Cl();Ne.x=se.startx,Ne.y=se.starty,Ne.width=se.width||he.width,Ne.class="note";var Ce=ce.append("g"),je=Od(Ce,Ne),_n=Qi();_n.x=se.startx,_n.y=se.starty,_n.width=Ne.width,_n.dy="1em",_n.text=se.message,_n.class="noteText",_n.fontFamily=he.noteFontFamily,_n.fontSize=he.noteFontSize,_n.fontWeight=he.noteFontWeight,_n.anchor=he.noteAlign,_n.textMargin=he.noteMargin,_n.valign="center";var Re=Ic(Ce,_n),tn=Math.round(Re.map(function(yn){return(yn._groups||yn)[0][0].getBBox().height}).reduce(function(yn,Ue){return yn+Ue}));je.attr("height",tn+2*he.noteMargin),se.height+=tn+2*he.noteMargin,cn.bumpVerticalPos(tn+2*he.noteMargin),se.stopy=se.starty+tn+2*he.noteMargin,se.stopx=se.startx+Ne.width,cn.insert(se.startx,se.starty,se.stopx,se.stopy),cn.models.addNote(se)}(S,le);break;case p.db.LINETYPE.ACTIVE_START:cn.newActivation(ve,S,N);break;case p.db.LINETYPE.ACTIVE_END:(function(ce,se){var Ne=cn.endActivation(ce);Ne.starty+18>se&&(Ne.starty=se-6,se+=12),eh(S,Ne,se,he,io(ce.from.actor).length),cn.insert(Ne.startx,se-10,Ne.stopx,se)})(ve,cn.getVerticalPos());break;case p.db.LINETYPE.LOOP_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.LOOP_END:Rt=cn.endLoop(),Ps(S,Rt,"loop",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case p.db.LINETYPE.RECT_START:ao(J,ve,he.boxMargin,he.boxMargin,function(ce){return cn.newLoop(void 0,ce.message)});break;case p.db.LINETYPE.RECT_END:Rt=cn.endLoop(),Ld(S,Rt),cn.models.addLoop(Rt),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos());break;case p.db.LINETYPE.OPT_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.OPT_END:Rt=cn.endLoop(),Ps(S,Rt,"opt",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case p.db.LINETYPE.ALT_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.ALT_ELSE:ao(J,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case p.db.LINETYPE.ALT_END:Rt=cn.endLoop(),Ps(S,Rt,"alt",he),cn.bumpVerticalPos(Rt.
86stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case p.db.LINETYPE.PAR_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.PAR_AND:ao(J,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case p.db.LINETYPE.PAR_END:Rt=cn.endLoop(),Ps(S,Rt,"par",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case p.db.LINETYPE.AUTONUMBER:Tt=ve.message.start||Tt,St=ve.message.step||St,ve.message.visible?p.db.enableSequenceNumbers():p.db.disableSequenceNumbers();break;case p.db.LINETYPE.CRITICAL_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.CRITICAL_OPTION:ao(J,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case p.db.LINETYPE.CRITICAL_END:Rt=cn.endLoop(),Ps(S,Rt,"critical",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case p.db.LINETYPE.BREAK_START:ao(J,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case p.db.LINETYPE.BREAK_END:Rt=cn.endLoop(),Ps(S,Rt,"break",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;default:try{(Wt=ve.msgModel).starty=cn.getVerticalPos(),Wt.sequenceIndex=Tt,Wt.sequenceVisible=p.db.showSequenceNumbers();var ie=function(ce,se){cn.bumpVerticalPos(10);var Ne,Ce=se.startx,je=se.stopx,_n=se.message,Re=an.splitBreaks(_n).length,tn=qn.calculateTextDimensions(_n,js(he)),yn=tn.height/Re;se.height+=yn,cn.bumpVerticalPos(yn);var Ue=tn.height-10,$e=tn.width;if(Ce===je){Ne=cn.getVerticalPos()+Ue,he.rightAngles||(Ue+=he.boxMargin,Ne=cn.getVerticalPos()+Ue),Ue+=30;var bn=Math.max($e/2,he.width/2);cn.insert(Ce-bn,cn.getVerticalPos()-10+Ue,je+bn,cn.getVerticalPos()+30+Ue)}else Ue+=he.boxMargin,Ne=cn.getVerticalPos()+Ue,cn.insert(Ce,Ne-10,je,Ne);return cn.bumpVerticalPos(Ue),se.height+=Ue,se.stopy=se.starty+se.height,cn.insert(se.fromBounds,se.starty,se.toBounds,se.stopy),Ne}(0,Wt);Lt.push({messageModel:Wt,lineStarty:ie}),cn.models.addMessage(Wt)}catch(ce){y.error("error while drawing message",ce)}}[p.db.LINETYPE.SOLID_OPEN,p.db.LINETYPE.DOTTED_OPEN,p.db.LINETYPE.SOLID,p.db.LINETYPE.DOTTED,p.db.LINETYPE.SOLID_CROSS,p.db.LINETYPE.DOTTED_CROSS,p.db.LINETYPE.SOLID_POINT,p.db.LINETYPE.DOTTED_POINT].includes(ve.type)&&(Tt+=St)}),Lt.forEach(function(ve){return function(Rt,le,Wt,ie){var ce=le.startx,se=le.stopx,Ne=le.starty,Ce=le.message,je=le.type,_n=le.sequenceIndex,Re=le.sequenceVisible,tn=qn.calculateTextDimensions(Ce,js(he)),yn=Qi();yn.x=ce,yn.y=Ne+10,yn.width=se-ce,yn.class="messageText",yn.dy="1em",yn.text=Ce,yn.fontFamily=he.messageFontFamily,yn.fontSize=he.messageFontSize,yn.fontWeight=he.messageFontWeight,yn.anchor=he.messageAlign,yn.valign="center",yn.textMargin=he.wrapPadding,yn.tspan=!1,Ic(Rt,yn);var Ue,$e=tn.width;ce===se?Ue=he.rightAngles?Rt.append("path").attr("d","M  ".concat(ce,",").concat(Wt," H ").concat(ce+Math.max(he.width/2,$e/2)," V ").concat(Wt+25," H ").concat(ce)):Rt.append("path").attr("d","M "+ce+","+Wt+" C "+(ce+60)+","+(Wt-10)+" "+(ce+60)+","+(Wt+30)+" "+ce+","+(Wt+20)):((Ue=Rt.append("line")).attr("x1",ce),Ue.attr("y1",Wt),Ue.attr("x2",se),Ue.attr("y2",Wt)),je===ie.db.LINETYPE.DOTTED||je===ie.db.LINETYPE.DOTTED_CROSS||je===ie.db.LINETYPE.DOTTED_POINT||je===ie.db.LINETYPE.DOTTED_OPEN?(Ue.style("stroke-dasharray","3, 3"),Ue.attr("class","messageLine1")):Ue.attr("class","messageLine0");var bn="";he.arrowMarkerAbsolute&&(bn=(bn=(bn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ue.attr("stroke-width",2),Ue.attr("stroke","none"),Ue.style("fill","none"),je!==ie.db.LINETYPE.SOLID&&je!==ie.db.LINETYPE.DOTTED||Ue.attr("marker-end","url("+bn+"#arrowhead)"),je!==ie.db.LINETYPE.SOLID_POINT&&je!==ie.db.LINETYPE.DOTTED_POINT||Ue.attr("marker-end","url("+bn+"#filled-head)"),je!==ie.db.LINETYPE.SOLID_CROSS&&je!==ie.db.LINETYPE.DOTTED_CROSS||Ue.attr("marker-end","url("+bn+"#crosshead)"),(Re||he.showSequenceNumbers)&&(Ue.attr("marker-start","url("+bn+"#sequencenumber)"),Rt.append("text").attr("x",ce).attr("y",Wt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(_n))}(S,ve.messageModel,ve.lineStarty,p)}),he.mirrorActors&&(cn.bumpVerticalPos(2*he.boxMargin),ih(S,N,B,cn.getVerticalPos(),he,q),cn.bumpVerticalPos(he.boxMargin),Ju(S,
86cn.getVerticalPos()));var Nt=Z1(S,N,B),Ot=cn.getBounds().bounds;y.debug("For line height fix Querying: #"+n+" .actor-line"),(0,w.selectAll)("#"+n+" .actor-line").attr("y2",Ot.stopy);var Ft=Ot.stopy-Ot.starty;Ft<Nt.maxHeight&&(Ft=Nt.maxHeight);var _t=Ft+2*he.diagramMarginY;he.mirrorActors&&(_t=_t-he.boxMargin+he.bottomMarginAdj);var ee=Ot.stopx-Ot.startx;ee<Nt.maxWidth&&(ee=Nt.maxWidth);var ke=ee+2*he.diagramMarginX;V&&S.append("text").text(V).attr("x",(Ot.stopx-Ot.startx)/2-2*he.diagramMarginX).attr("y",-25),Gi(S,0,ke,he.useMaxWidth);var ue=V?40:0;S.attr("viewBox",Ot.startx-he.diagramMarginX+" -"+(he.diagramMarginY+ue)+" "+ke+" "+(_t+ue)),kr(p.db,S,n),y.debug("models:",cn.models)}};var jd=f(3584),K1=f.n(jd);function oh(i){return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oh(i)}var Al=function(i){return JSON.parse(JSON.stringify(i))},Ml=[],zd=function i(n,l,p){if(l.stmt==="relation")i(n,l.state1,!0),i(n,l.state2,!1);else if(l.stmt==="state"&&l.id==="[*]"&&(l.id=p?n.id+"_start":n.id+"_end",l.start=p),l.doc){var g=[],T=0,k=[];for(T=0;T<l.doc.length;T++)if(l.doc[T].type==="divider"){var S=Al(l.doc[T]);S.doc=Al(k),g.push(S),k=[]}else k.push(l.doc[T]);if(g.length>0&&k.length>0){var N={stmt:"state",id:lc(),type:"divider",doc:Al(k)};g.push(Al(N)),l.doc=g}l.doc.forEach(function(B){return i(l,B,!0)})}},Dl={root:{relations:[],states:{},documents:{}}},$i=Dl.root,Nl=0,Ol=function(i,n,l,p,g){$i.states[i]===void 0?$i.states[i]={id:i,descriptions:[],type:n,doc:l,note:g}:($i.states[i].doc||($i.states[i].doc=l),$i.states[i].type||($i.states[i].type=n)),p&&(y.info("Adding state ",i,p),typeof p=="string"&&ch(i,p.trim()),oh(p)==="object"&&p.forEach(function(T){return ch(i,T.trim())})),g&&($i.states[i].note=g,$i.states[i].note.text=an.sanitizeText($i.states[i].note.text,Dt()))},J1=function(i){$i=(Dl={root:{relations:[],states:{},documents:{}}}).root,$i=Dl.root,Nl=0,e0=[],i||Kt()},sh=function(i,n,l){var p=i,g=n,T="default",k="default";i==="[*]"&&(p="start"+ ++Nl,T="start"),n==="[*]"&&(g="end"+Nl,k="end"),Ol(p,T),Ol(g,k),$i.relations.push({id1:p,id2:g,title:an.sanitizeText(l,Dt())})},ch=function(i,n){var l=$i.states[i],p=n;p[0]===":"&&(p=p.substr(1).trim()),l.descriptions.push(an.sanitizeText(p,Dt()))},t0=0,e0=[],n0="TB";const oo={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().state},addState:Ol,clear:J1,getState:function(i){return $i.states[i]},getStates:function(){return $i.states},getRelations:function(){return $i.relations},getClasses:function(){return e0},getDirection:function(){return n0},addRelation:sh,getDividerId:function(){return"divider-id-"+ ++t0},setDirection:function(i){n0=i},cleanupLabel:function(i){return i.substring(0,1)===":"?i.substr(2).trim():i.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){y.info("Documents = ",Dl)},getRootDoc:function(){return Ml},setRootDoc:function(i){y.info("Setting root doc",i),Ml=i},getRootDocV2:function(){return zd({id:"root"},{id:"root",doc:Ml},!0),{id:"root",doc:Ml}},extract:function(i){var n;n=i.doc?i.doc:i,y.info(n),J1(!0),y.info("Extract",n),n.forEach(function(l){l.stmt==="state"&&Ol(l.id,l.type,l.doc,l.description,l.note),l.stmt==="relation"&&sh(l.state1.id,l.state2.id,l.description)})},trimColon:function(i){return i&&i[0]===":"?i.substr(1).trim():i.trim()},getAccTitle:Or,setAccTitle:xr,getAccDescription:li,setAccDescription:Vr};function Ao(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var ma,Yd=function(i,n,l){var p,g=Dt().state.padding,T=2*Dt().state.padding,k=i.node().getBBox(),S=k.width,N=k.x,B=i.append("text").attr("x",0).attr("y",Dt().state.titleShift).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(n.id),q=B.node().getBBox().width+T,V=Math.max(q,S);V===S&&(V+=T);var et=i.node().getBBox();n.doc,p=N-g,q>S&&(p=(S-V)/2+g),Math.abs(N-et.x)<g&&q>S&&(p=N-(q-S)/2);var J=1-Dt().state.textHeight;return i.insert("rect",":first-child").attr("x",p).attr("y",J).attr("class",l?"alt-composit":"composit").attr("width",V).attr("height",et.height+Dt().state.textHeight+Dt().state.titleShift+1).attr("rx","0"),B.attr("x",p+g),q<=S&&B.attr("x",N+(V-T)/2-q/2+g),i.insert("rect",":first-child").attr("x",p).attr("y",Dt().state.titleShift-Dt().state.textHeight-Dt().state.padding).attr("width",V).attr("height",3*Dt().state.textHeight).attr("rx",Dt().state.radius),i.insert("rect",":first-child").attr("x",p).attr("y",Dt().state.titleShift-Dt().state.textHeight-Dt().state.padding).attr("width",V).attr("height",et.height+3+2*Dt().state.textHeight).attr("rx",Dt().state.radius),i},r0=function(i,n){n.attr("class","state-note");var l=n.append("rect").attr("x",0).attr("y",Dt().state.padding),p=function(k,S,N,B){var q=0,V=B.append("text");V.style("text-anchor","start"),V.attr("class","noteText");var et,J=k.replace(/\r\n/g,"<br/>"),Tt=(J=J.replace(/\n/g,"<br/>")).split(an.lineBreakRegex),St=1.25*Dt().state.noteMargin,Lt=function(Ft,_t){var ee=typeof Symbol<"u"&&Ft[Symbol.iterator]||Ft["@@iterator"];if(!ee){if(Array.isArray(Ft)||(ee=function(Wt,ie){if(Wt){if(typeof Wt=="string")return Ao(Wt,ie);var ce=Object.prototype.toString.call(Wt).slice(8,-1);
86return ce==="Object"&&Wt.constructor&&(ce=Wt.constructor.name),ce==="Map"||ce==="Set"?Array.from(Wt):ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce)?Ao(Wt,ie):void 0}}(Ft))||_t){ee&&(Ft=ee);var ke=0,ue=function(){};return{s:ue,n:function(){return ke>=Ft.length?{done:!0}:{done:!1,value:Ft[ke++]}},e:function(Wt){throw Wt},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve,Rt=!0,le=!1;return{s:function(){ee=ee.call(Ft)},n:function(){var Wt=ee.next();return Rt=Wt.done,Wt},e:function(Wt){le=!0,ve=Wt},f:function(){try{Rt||ee.return==null||ee.return()}finally{if(le)throw ve}}}}(Tt);try{for(Lt.s();!(et=Lt.n()).done;){var Nt=et.value.trim();if(Nt.length>0){var Ot=V.append("tspan");Ot.text(Nt),St===0&&(St+=Ot.node().getBBox().height),q+=St,Ot.attr("x",0+Dt().state.noteMargin),Ot.attr("y",0+q+1.25*Dt().state.noteMargin)}}}catch(Ft){Lt.e(Ft)}finally{Lt.f()}return{textWidth:V.node().getBBox().width,textHeight:q}}(i,0,0,n.append("g")),g=p.textWidth,T=p.textHeight;return l.attr("height",T+2*Dt().state.noteMargin),l.attr("width",g+2*Dt().state.noteMargin),l},i0=function(i,n){var l=n.id,p={id:l,label:n.id,width:0,height:0},g=i.append("g").attr("id",l).attr("class","stateGroup");n.type==="start"&&function(k){k.append("circle").attr("class","start-state").attr("r",Dt().state.sizeUnit).attr("cx",Dt().state.padding+Dt().state.sizeUnit).attr("cy",Dt().state.padding+Dt().state.sizeUnit)}(g),n.type==="end"&&function(k){k.append("circle").attr("class","end-state-outer").attr("r",Dt().state.sizeUnit+Dt().state.miniPadding).attr("cx",Dt().state.padding+Dt().state.sizeUnit+Dt().state.miniPadding).attr("cy",Dt().state.padding+Dt().state.sizeUnit+Dt().state.miniPadding),k.append("circle").attr("class","end-state-inner").attr("r",Dt().state.sizeUnit).attr("cx",Dt().state.padding+Dt().state.sizeUnit+2).attr("cy",Dt().state.padding+Dt().state.sizeUnit+2)}(g),n.type!=="fork"&&n.type!=="join"||function(k,S){var N=Dt().state.forkWidth,B=Dt().state.forkHeight;if(S.parentId){var q=N;N=B,B=q}k.append("rect").style("stroke","black").style("fill","black").attr("width",N).attr("height",B).attr("x",Dt().state.padding).attr("y",Dt().state.padding)}(g,n),n.type==="note"&&r0(n.note.text,g),n.type==="divider"&&function(k){k.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Dt().state.textHeight).attr("class","divider").attr("x2",2*Dt().state.textHeight).attr("y1",0).attr("y2",0)}(g),n.type==="default"&&n.descriptions.length===0&&function(k,S){var N=k.append("text").attr("x",2*Dt().state.padding).attr("y",Dt().state.textHeight+2*Dt().state.padding).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(S.id).node().getBBox();k.insert("rect",":first-child").attr("x",Dt().state.padding).attr("y",Dt().state.padding).attr("width",N.width+2*Dt().state.padding).attr("height",N.height+2*Dt().state.padding).attr("rx",Dt().state.radius)}(g,n),n.type==="default"&&n.descriptions.length>0&&function(k,S){var N=k.append("text").attr("x",2*Dt().state.padding).attr("y",Dt().state.textHeight+1.3*Dt().state.padding).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(S.descriptions[0]).node().getBBox(),B=N.height,q=k.append("text").attr("x",Dt().state.padding).attr("y",B+.4*Dt().state.padding+Dt().state.dividerMargin+Dt().state.textHeight).attr("class","state-description"),V=!0,et=!0;S.descriptions.forEach(function(Lt){V||(function(Nt,Ot,Ft){var _t=Nt.append("tspan").attr("x",2*Dt().state.padding).text(Ot);Ft||_t.attr("dy",Dt().state.textHeight)}(q,Lt,et),et=!1),V=!1});var J=k.append("line").attr("x1",Dt().state.padding).attr("y1",Dt().state.padding+B+Dt().state.dividerMargin/2).attr("y2",Dt().state.padding+B+Dt().state.dividerMargin/2).attr("class","descr-divider"),Tt=q.node().getBBox(),St=Math.max(Tt.width,N.width);J.attr("x2",St+3*Dt().state.padding),k.insert("rect",":first-child").attr("x",Dt().state.padding).attr("y",Dt().state.padding).attr("width",St+2*Dt().state.padding).attr("height",Tt.height+B+2*Dt
87().state.padding).attr("rx",Dt().state.radius)}(g,n);var T=g.node().getBBox();return p.width=T.width+2*Dt().state.padding,p.height=T.height+2*Dt().state.padding,p},a0=0,Bl={},Ll=function i(n,l,p,g,T,k,S){var N,B=new(fi()).Graph({compound:!0,multigraph:!0}),q=!0;for(N=0;N<n.length;N++)if(n[N].stmt==="relation"){q=!1;break}p?B.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:q?1:ma.edgeLengthFactor,nodeSep:q?1:50,isMultiGraph:!0}):B.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:q?1:ma.edgeLengthFactor,nodeSep:q?1:50,ranker:"tight-tree",isMultiGraph:!0}),B.setDefaultEdgeLabel(function(){return{}}),S.db.extract(n);for(var V=S.db.getStates(),et=S.db.getRelations(),J=Object.keys(V),Tt=0;Tt<J.length;Tt++){var St=V[J[Tt]];p&&(St.parentId=p);var Lt=void 0;if(St.doc){var Nt=l.append("g").attr("id",St.id).attr("class","stateGroup");Lt=i(St.doc,Nt,St.id,!g,T,k,S);var Ot=(Nt=Yd(Nt,St,g)).node().getBBox();Lt.width=Ot.width,Lt.height=Ot.height+ma.padding/2,Bl[St.id]={y:ma.compositTitleSize}}else Lt=i0(l,St);if(St.note){var Ft={descriptions:[],id:St.id+"-note",note:St.note,type:"note"},_t=i0(l,Ft);St.note.position==="left of"?(B.setNode(Lt.id+"-note",_t),B.setNode(Lt.id,Lt)):(B.setNode(Lt.id,Lt),B.setNode(Lt.id+"-note",_t)),B.setParent(Lt.id,Lt.id+"-group"),B.setParent(Lt.id+"-note",Lt.id+"-group")}else B.setNode(Lt.id,Lt)}y.debug("Count=",B.nodeCount(),B);var ee=0;et.forEach(function(Rt){var le;ee++,y.debug("Setting edge",Rt),B.setEdge(Rt.id1,Rt.id2,{relation:Rt,width:(le=Rt.title,le?le.length*ma.fontSizeFactor:1),height:ma.labelHeight*an.getRows(Rt.title).length,labelpos:"c"},"id"+ee)}),xs().layout(B),y.debug("Graph after layout",B.nodes());var ke=l.node();B.nodes().forEach(function(Rt){Rt!==void 0&&B.node(Rt)!==void 0?(y.warn("Node "+Rt+": "+JSON.stringify(B.node(Rt))),T.select("#"+ke.id+" #"+Rt).attr("transform","translate("+(B.node(Rt).x-B.node(Rt).width/2)+","+(B.node(Rt).y+(Bl[Rt]?Bl[Rt].y:0)-B.node(Rt).height/2)+" )"),T.select("#"+ke.id+" #"+Rt).attr("data-x-shift",B.node(Rt).x-B.node(Rt).width/2),k.querySelectorAll("#"+ke.id+" #"+Rt+" .divider").forEach(function(le){var Wt=le.parentElement,ie=0,ce=0;Wt&&(Wt.parentElement&&(ie=Wt.parentElement.getBBox().width),ce=parseInt(Wt.getAttribute("data-x-shift"),10),Number.isNaN(ce)&&(ce=0)),le.setAttribute("x1",0-ce+8),le.setAttribute("x2",ie-ce-8)})):y.debug("No Node "+Rt+": "+JSON.stringify(B.node(Rt)))});var ue=ke.getBBox();
87B.edges().forEach(function(Rt){Rt!==void 0&&B.edge(Rt)!==void 0&&(y.debug("Edge "+Rt.v+" -> "+Rt.w+": "+JSON.stringify(B.edge(Rt))),function(le,Wt,ie){Wt.points=Wt.points.filter(function(ai){return!Number.isNaN(ai.y)});var ce=Wt.points,se=(0,w.line)().x(function(ai){return ai.x}).y(function(ai){return ai.y}).curve(w.curveBasis),Ne=le.append("path").attr("d",se(ce)).attr("id","edge"+a0).attr("class","transition"),Ce="";if(Dt().state.arrowMarkerAbsolute&&(Ce=(Ce=(Ce=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ne.attr("marker-end","url("+Ce+"#"+function(ai){switch(ai){case oo.relationType.AGGREGATION:return"aggregation";case oo.relationType.EXTENSION:return"extension";case oo.relationType.COMPOSITION:return"composition";case oo.relationType.DEPENDENCY:return"dependency"}}(oo.relationType.DEPENDENCY)+"End)"),ie.title!==void 0){for(var je=le.append("g").attr("class","stateLabel"),_n=qn.calcLabelPosition(Wt.points),Re=_n.x,tn=_n.y,yn=an.getRows(ie.title),Ue=0,$e=[],bn=0,gr=0,dr=0;dr<=yn.length;dr++){var jr=je.append("text").attr("text-anchor","middle").text(yn[dr]).attr("x",Re).attr("y",tn+Ue),fr=jr.node().getBBox();if(bn=Math.max(bn,fr.width),gr=Math.min(gr,fr.x),y.info(fr.x,Re,tn+Ue),Ue===0){var mi=jr.node().getBBox();Ue=mi.height,y.info("Title height",Ue,tn)}$e.push(jr)}var ur=Ue*yn.length;if(yn.length>1){var Da=(yn.length-1)*Ue*.5;$e.forEach(function(ai,zr){return ai.attr("y",tn+zr*Ue-Da)}),ur=Ue*yn.length}var la=je.node().getBBox();je.insert("rect",":first-child").attr("class","box").attr("x",Re-bn/2-Dt().state.padding/2).attr("y",tn-ur/2-Dt().state.padding/2-3.5).attr("width",bn+Dt().state.padding).attr("height",ur+Dt().state.padding),y.info(la)}a0++}(l,B.edge(Rt),B.edge(Rt).relation))}),ue=ke.getBBox();var ve={id:p||"root",label:p||"root",width:0,height:0};return ve.width=ue.width+2*ma.padding,ve.height=ue.height+2*ma.padding,y.debug("Doc rendered",ve,B),ve};const o0={setConf:function(){},draw:function(i,n,l,p){ma=Dt().state;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;y.debug("Rendering diagram "+i);var N=k.select("[id='".concat(n,"']"));N.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(fi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var B=p.db.getRootDoc();Ll(B,N,void 0,!1,k,S,p);var q=ma.padding,V=N.node().getBBox(),et=V.width+2*q,J=V.height+2*q;Gi(N,0,1.75*et,ma.useMaxWidth),N.attr("viewBox","".concat(V.x-ma.padding,"  ").concat(V.y-ma.padding," ")+et+" "+J),kr(p.db,N,n)}};var Rc={},br={},Ys=function(i,n,l,p){if(l.id!=="root"){var g="rect";l.start===!0&&(g="start"),l.start===!1&&(g="end"),l.type!=="default"&&(g=l.type),br[l.id]||(br[l.id]={id:l.id,shape:g,description:an.sanitizeText(l.id,Dt()),classes:"statediagram-state"}),l.description&&(Array.isArray(br[l.id].description)?(br[l.id].shape="rectWithTitle",br[l.id].description.push(l.description)):br[l.id].description.length>0?(br[l.id].shape="rectWithTitle",br[l.id].description===l.id?br[l.id].description=[l.description]:br[l.id].description=[br[l.i
87d].description,l.description]):(br[l.id].shape="rect",br[l.id].description=l.description),br[l.id].description=an.sanitizeTextOrArray(br[l.id].description,Dt())),br[l.id].description.length===1&&br[l.id].shape==="rectWithTitle"&&(br[l.id].shape="rect"),!br[l.id].type&&l.doc&&(y.info("Setting cluster for ",l.id,Il(l)),br[l.id].type="group",br[l.id].dir=Il(l),br[l.id].shape=l.type==="divider"?"divider":"roundedWithTitle",br[l.id].classes=br[l.id].classes+" "+(p?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var T={labelStyle:"",shape:br[l.id].shape,labelText:br[l.id].description,classes:br[l.id].classes,style:"",id:l.id,dir:br[l.id].dir,domId:"state-"+l.id+"-"+qo,type:br[l.id].type,padding:15};if(l.note){var k={labelStyle:"",shape:"note",labelText:l.note.text,classes:"statediagram-note",style:"",id:l.id+"----note-"+qo,domId:"state-"+l.id+"----note-"+qo,type:br[l.id].type,padding:15},S={labelStyle:"",shape:"noteGroup",labelText:l.note.text,classes:br[l.id].classes,style:"",id:l.id+"----parent",domId:"state-"+l.id+"----parent-"+qo,type:"group",padding:0};qo++,i.setNode(l.id+"----parent",S),i.setNode(k.id,k),i.setNode(l.id,T),i.setParent(l.id,l.id+"----parent"),i.setParent(k.id,l.id+"----parent");var N=l.id,B=k.id;l.note.position==="left of"&&(N=k.id,B=l.id),i.setEdge(N,B,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else i.setNode(l.id,T)}n&&n.id!=="root"&&(y.trace("Setting node ",l.id," to be child of its parent ",n.id),i.setParent(l.id,n.id)),l.doc&&(y.trace("Adding nodes children "),Ud(i,l,l.doc,!p))},qo=0,Ud=function(i,n,l,p){y.trace("items",l),l.forEach(function(g){if(g.stmt==="state"||g.stmt==="default")Ys(i,n,g,p);else if(g.stmt==="relation"){Ys(i,n,g.state1,p),Ys(i,n,g.state2,p);var T={id:"edge"+qo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:an.sanitizeText(g.description,Dt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},k=g.state1.id,S=g.state2.id;i.setEdge(k,S,T,qo),qo++}})},Il=function(i,n){var l=n||"TB";if(i.doc)for(var p=0;p<i.doc.length;p++){var g=i.doc[p];g.stmt==="dir"&&(l=g.value)}return l};const ls={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)Rc[n[l]]=i[n[l]]},getClasses:function(i,n){return y.trace("Extracting classes"),n.sb.clear(),n.parser.parse(i),n.sb.getClasses()},draw:function(i,n,l,p){y.info("Drawing state diagram (v2)",n),br={},p.db.getDirection();var g=Dt().state,T=g.nodeSpacing||50,k=g.rankSpacing||50,S=Dt().securityLevel;y.info(p.db.getRootDocV2()),p.db.extract(p.db.getRootDocV2()),y.info(p.db.getRootDocV2());var N,B=new(fi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Il(p.db.getRootDocV2()),nodesep:T,ranksep:k,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Ys(B,void 0,p.db.getRootDocV2(),!0),S==="sandbox"&&(N=(0,w.select)("#i"+n));var q=S==="sandbox"?(0,w.select)(N.nodes()[0].contentDocument.body):(0,w.select)("body"),V=(S==="sandbox"&&N.nodes()[0].contentDocument,q.select('[id="'.concat(n,'"]'))),et=q.select("#"+n+" g");cl(et,B,["barb"],"statediagram",n);var J=V.node().getBBox(),Tt=J.width+16,St=J.height+16;V.attr("class","statediagram");var Lt=V.node().getBBox();Gi(V,0,Tt,g.useMaxWidth);var Nt="".concat(Lt.x-8," ").concat(Lt.y-8," ").concat(Tt," ").concat(St);y.debug("viewBox ".concat(Nt)),V.attr("viewBox",Nt);for(var Ot=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Ft=0;Ft<Ot.length;Ft++){var _t=Ot[Ft],ee=_t.getBBox(),ke=document.createElementNS("http://www.w3.org/2000/svg","rect");ke.setAttribute("rx",0),ke.setAttribute("ry",0),ke.setAttribute("width",ee.width),ke.setAttribute("height",ee.height),_t.insertBefore(ke,_t.firstChild)}kr(p.db,V,n)}};function s0(i){return function(n){if(Array.isArray(n))return Fl(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return Fl(n,l);var p=Object.prototype.toString.call(n).slice(8,-1);return p==="Object"&&n.constructor&&(p=n.constructor.name),p==="Map"||p==="Set"?Array.from(n):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Fl(n,l):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fl(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,p=new Array(n);l<n;l++)p[l]=i[l];return p}var Us="",lh=[],$s=[],Ws=[],c0=function(){for(var i=!0,n=0;n<Ws.length;n++)Ws[n].processed,i=i&&Ws[n].processed;return i};const l0={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().journey},clear:function(){lh.length=0,$s.length=0,Us="",Ws.length=0,Kt()},setDiagramTitle:wa,getDiagramTitle:hr,setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li,addSection:function(i){Us=i,lh.push(i)},getSections:function(){return lh},getTasks:function(){for(var i=c0(),n=0;!i&&n<100;)i=c0(),n++;return $s.push.apply($s,Ws),$s},addTask:function(i,n){var l=n.substr(1).split(":"),p=0,g=[];l.length===1?(p=Number(l[0]),g=[]):(p=Number(l[0]),g=l[1].split(","));var T=g.map(function(S){return S.trim()}),k={section:Us,type:Us,people:T,task:i,score:p};Ws.push(k)},addTaskOrg:function(i){var n={section:Us,type:Us,description:i,task:i,classes:[]};$s.push(n)}
88,getActors:function(){return i=[],$s.forEach(function(n){n.people&&i.push.apply(i,s0(n.people))}),s0(new Set(i)).sort();var i}};var Pc=function(i,n){var l=i.append("rect");return l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.class!==void 0&&l.attr("class",n.class),l},uh=function(i,n){var l=i.append("circle");return l.attr("cx",n.cx),l.attr("cy",n.cy),l.attr("class","actor-"+n.pos),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("r",n.r),l.class!==void 0&&l.attr("class",l.class),n.title!==void 0&&l.append("title").text(n.title),l},u0=-1,h0=function(){function i(g,T,k,S,N,B,q,V){p(T.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("font-color",V).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,B,q,V,et){for(var J=V.taskFontSize,Tt=V.taskFontFamily,St=g.split(/<br\s*\/?>/gi),Lt=0;Lt<St.length;Lt++){var Nt=Lt*J-J*(St.length-1)/2,Ot=T.append("text").attr("x",k+N/2).attr("y",S).attr("fill",et).style("text-anchor","middle").style("font-size",J).style("font-family",Tt);Ot.append("tspan").attr("x",k+N/2).attr("dy",Nt).text(St[Lt]),Ot.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(Ot,q)}}function l(g,T,k,S,N,B,q,V){var et=T.append("switch"),J=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");J.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,B,q,V),p(J,q)}function p(g,T){for(var k in T)k in T&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const $d=uh,Wd=function(i,n,l){var p=i.append("g"),g={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};g.x=n.x,g.y=n.y,g.fill=n.fill,g.width=l.width,g.height=l.height,g.class="journey-section section-type-"+n.num,g.rx=3,g.ry=3,Pc(p,g),h0(l)(n.text,p,g.x,g.y,g.width,g.height,{class:"journey-section section-type-"+n.num},l,n.colour)},qd=function(i,n){var l=n.text.replace(/<br\s*\/?>/gi," "),p=i.append("text");p.attr("x",n.x),p.attr("y",n.y),p.attr("class","legend"),p.style("text-anchor",n.anchor),n.class!==void 0&&p.attr("class",n.class);var g=p.append("tspan");return g.attr("x",n.x+2*n.textMargin),g.text(l),p},Vd=function(i,n,l){var p,g,T,k=n.x+l.width/2,S=i.append("g");u0++,S.append("line").attr("id","task"+u0).attr("x1",k).attr("y1",n.y).attr("x2",k).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),p=S,g={cx:k,cy:300+30*(5-n.score),score:n.score},p.append("circle").attr("cx",g.cx).attr("cy",g.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(T=p.append("g")).append("circle").attr("cx",g.cx-5).attr("cy",g.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),T.append("circle").attr("cx",g.cx+5).attr("cy",g.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),g.score>3?function(q){var V=(0,w.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);q.append("path").attr("class","mouth").attr("d",V).attr("transform","translate("+g.cx+","+(g.cy+2)+")")}(T):g.score<3?function(q){var V=(0,w.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);q.append("path").attr("class","mouth").attr("d",V).attr("transform","translate("+g.cx+","+(g.cy+7)+")")}(T):function(q){q.append("line").attr("class","mouth").attr("stroke",2).attr("x1",g.cx-5).attr("y1",g.cy+7).attr("x2",g.cx+5).attr("y2",g.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(T);var N={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};N.x=n.x,N.y=n.y,N.fill=n.fill,N.width=l.width,N.height=l.height,N.class="task task-type-"+n.num,N.rx=3,N.ry=3,Pc(S,N);var B=n.x+14;n.people.forEach(function(q){var V=n.actors[q].color,et={cx:B,cy:n.y,r:7,fill:V,stroke:"#000",title:q,pos:n.actors[q].position};uh(S,et),B+=10}),h0(l)(n.task,S,N.x,N.y,N.width,N.height,{class:"task"},l,n.colour)};var qa={},hh=Dt().journey,us=Dt().journey.leftMargin,Ma={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}
88,updateVal:function(i,n,l,p){i[n]===void 0?i[n]=l:i[n]=p(l,i[n])},updateBounds:function(i,n,l,p){var g=Dt().journey,T=this,k=0;this.sequenceItems.forEach(function(S){k++;var N=T.sequenceItems.length-k+1;T.updateVal(S,"starty",n-N*g.boxMargin,Math.min),T.updateVal(S,"stopy",p+N*g.boxMargin,Math.max),T.updateVal(Ma.data,"startx",i-N*g.boxMargin,Math.min),T.updateVal(Ma.data,"stopx",l+N*g.boxMargin,Math.max),T.updateVal(S,"startx",i-N*g.boxMargin,Math.min),T.updateVal(S,"stopx",l+N*g.boxMargin,Math.max),T.updateVal(Ma.data,"starty",n-N*g.boxMargin,Math.min),T.updateVal(Ma.data,"stopy",p+N*g.boxMargin,Math.max)})},insert:function(i,n,l,p){var g=Math.min(i,l),T=Math.max(i,l),k=Math.min(n,p),S=Math.max(n,p);this.updateVal(Ma.data,"startx",g,Math.min),this.updateVal(Ma.data,"starty",k,Math.min),this.updateVal(Ma.data,"stopx",T,Math.max),this.updateVal(Ma.data,"stopy",S,Math.max),this.updateBounds(g,k,T,S)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},dh=hh.sectionFills,fh=hh.sectionColours;
88const Ii={setConf:function(i){Object.keys(i).forEach(function(n){hh[n]=i[n]})},draw:function(i,n,l,p){var g=Dt().journey;p.db.clear(),p.parser.parse(i+`
89`);var T,k=Dt().securityLevel;k==="sandbox"&&(T=(0,w.select)("#i"+n));var S=k==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body");Ma.init();var N=S.select("#"+n);N.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 B=p.db.getTasks(),q=p.db.getDiagramTitle(),V=p.db.getActors();for(var et in qa)delete qa[et];var J=0;V.forEach(function(Ot){qa[Ot]={color:g.actorColours[J%g.actorColours.length],position:J},J++}),function(Ot){var Ft=Dt().journey,_t=60;Object.keys(qa).forEach(function(ee){var ke=qa[ee].color,ue={cx:20,cy:_t,r:7,fill:ke,stroke:"#000",pos:qa[ee].position};$d(Ot,ue);var ve={x:40,y:_t+7,fill:"#666",text:ee,textMargin:5|Ft.boxTextMargin};qd(Ot,ve),_t+=20})}(N),Ma.insert(0,0,us,50*Object.keys(qa).length),function(Ot,Ft,_t){for(var ee=Dt().journey,ke="",ue=_t+(2*ee.height+ee.diagramMarginY),ve=0,Rt="#CCC",le="black",Wt=0,ie=0;ie<Ft.length;ie++){var ce=Ft[ie];if(ke!==ce.section){Rt=dh[ve%dh.length],Wt=ve%dh.length,le=fh[ve%fh.length];var se={x:ie*ee.taskMargin+ie*ee.width+us,y:50,text:ce.section,fill:Rt,num:Wt,colour:le};Wd(Ot,se,ee),ke=ce.section,ve++}var Ne=ce.people.reduce(function(Ce,je){return qa[je]&&(Ce[je]=qa[je]),Ce},{});ce.x=ie*ee.taskMargin+ie*ee.width+us,ce.y=ue,ce.width=ee.diagramMarginX,ce.height=ee.diagramMarginY,ce.colour=le,ce.fill=Rt,ce.num=Wt,ce.actors=Ne,Vd(Ot,ce,ee),Ma.insert(ce.x,ce.y,ce.x+ce.width+ee.taskMargin,450)}}(N,B,0);var Tt=Ma.getBounds();q&&N.append("text").text(q).attr("x",us).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var St=Tt.stopy-Tt.starty+2*g.diagramMarginY,Lt=us+Tt.stopx+2*g.diagramMarginX;Gi(N,0,Lt,g.useMaxWidth),N.append("line").attr("x1",us).attr("y1",4*g.height).attr("x2",Lt-us-4).attr("y2",4*g.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Nt=q?70:0;N.attr("viewBox","".concat(Tt.startx," -25 ").concat(Lt," ").concat(St+Nt)),N.attr("preserveAspectRatio","xMinYMin meet"),N.attr("height",St+Nt+25),kr(p.db,N,n)}};var Hd=f(9763),Gd=f.n(Hd),jc={c4:{db:Jr,renderer:Je,parser:pn(),init:function(i){Je.setConf(i.c4)}},class:{db:aa,renderer:dd,parser:mu(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,aa.clear()}},error:{db:{},renderer:vu,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},classDiagram:{db:aa,renderer:fd,parser:mu(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,aa.clear()}},er:{db:pd,renderer:gd,parser:md()},flowchart:{db:ya,renderer:ml,parser:rs(),init:function(i){ml.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ya.clear(),ya.setGen("gen-1")}},"flowchart-v2":{db:ya,renderer:Cc,parser:rs(),init:function(i){Cc.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ya.clear(),ya.setGen("gen-2")}},gantt:{db:Ru,renderer:xl,parser:ju(),init:function(i){xl.setConf(i.gantt)}},info:{db:Td,renderer:kl,parser:Uu()},pie:{db:Ed,renderer:P1,parser:Wu()},requirement:{db:z1,renderer:Sd,parser:qu()},sequence:{db:Bc,renderer:Fc,parser:$1(),init:function(i){i.sequence.arrowMarkerAbsolute=i.arrowMarkerAbsolute,i.sequenceDiagram&&(Fc.setConf(Object.assign(i.sequence,i.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),Bc.setWrap(i.wrap),Fc.setConf(i.sequence)}},state:{db:oo,renderer:o0,parser:K1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,oo.clear()}},stateDiagram:{db:oo,renderer:ls,parser:K1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,oo.clear()}},journey:{db:l0,renderer:Ii,parser:Gd(),init:function(i){Ii.setConf(i.journey),l0.clear()}}},ph=function(){return jc};function gh(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(i);n&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(i,g).enumerable})),l.push.apply(l,p)}return l}function Wi(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};
89n%2?gh(Object(l),!0).forEach(function(p){_i(i,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):gh(Object(l)).forEach(function(p){Object.defineProperty(i,p,Object.getOwnPropertyDescriptor(l,p))})}return i}function _i(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var Va=Dt().gitGraph.mainBranchName,Xd=Dt().gitGraph.mainBranchOrder,xi={},Ki=null,Rl={};Rl[Va]={name:Va,order:Xd};var yi={};yi[Va]=Ki;var Fi=Va,yh="LR",hs=0;function mh(){return uc({length:7})}var d0={},f0=function(i){if(i=an.sanitizeText(i,Dt()),yi[i]===void 0){var n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+i+'")');throw n.hash={text:"checkout "+i,token:"checkout "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+i+'"']},n}var l=yi[Fi=i];Ki=xi[l]};function p0(i,n,l){var p=i.indexOf(n);p===-1?i.push(l):i.splice(p,1,l)}function g0(i){var n=i.reduce(function(q,V){return q.seq>V.seq?q:V},i[0]),l="";i.forEach(function(q){l+=q===n?"	*":"	|"});var p,g,T,k=[l,n.id,n.seq];for(var S in yi)yi[S]===n.id&&k.push(S);if(y.debug(k.join(" ")),n.parents&&n.parents.length==2){var N=xi[n.parents[0]];p0(i,n,N),i.push(xi[n.parents[1]])}else{if(n.parents.length==0)return;var B=xi[n.parents];p0(i,n,B)}p=i,g=function(q){return q.id},T=Object.create(null),g0(i=p.reduce(function(q,V){var et=g(V);return T[et]||(T[et]=!0,q.push(V)),q},[]))}var y0=function(){var i=Object.keys(xi).map(function(n){return xi[n]});return i.forEach(function(n){y.debug(n.id)}),i.sort(function(n,l){return n.seq-l.seq}),i},zc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Pl={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().gitGraph},setDirection:function(i){yh=i},setOptions:function(i){y.debug("options str",i),i=(i=i&&i.trim())||"{}";try{d0=JSON.parse(i)}catch(n){y.error("error while parsing gitGraph options",n.message)}},getOptions:function(){return d0},commit:function(i,n,l,p){y.debug("Entering commit:",i,n,l,p),n=an.sanitizeText(n,Dt()),i=an.sanitizeText(i,Dt()),p=an.sanitizeText(p,Dt());var g={id:n||hs+"-"+mh(),message:i,seq:hs++,type:l||zc.NORMAL,tag:p||"",parents:Ki==null?[]:[Ki.id],branch:Fi};Ki=g,xi[g.id]=g,yi[Fi]=g.id,y.debug("in pushCommit "+g.id)},branch:function(i,n){if(i=an.sanitizeText(i,Dt()),yi[i]!==void 0){var l=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 '+i+'")');throw l.hash={text:"branch "+i,token:"branch "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+i+'"']},l}yi[i]=Ki!=null?Ki.id:null,Rl[i]={name:i,order:n?parseInt(n,10):null},f0(i),y.debug("in createBranch")},merge:function(i,n,l,p){i=an.sanitizeText(i,Dt()),n=an.sanitizeText(n,Dt());var g=xi[yi[Fi]],T=xi[yi[i]];if(Fi===i){var k=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw k.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},k}if(g===void 0||!g){var S=new Error('Incorrect usage of "merge". Current branch ('+Fi+")has no commits");throw S.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},S}if(yi[i]===void 0){var N=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") does not exist");throw N.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+i]},N}if(T===void 0||!T){var B=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw B.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},B}if(g===T){var q=new Error('Incorrect usage of "merge". Both branches have same head');throw q.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},q}if(n&&xi[n]!==void 0){var V=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw V.hash={text:"merge "+i+n+l+p,token:"merge "+i+n+l+p,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+i+" "+n+"_UNIQUE "+l+" "+p]},V}var et={id:n||hs+"-"+mh(),message:"merged branch "+i+" into "+Fi,seq:hs++,parents:[Ki==null?null:Ki.id,yi[i]],branch:Fi,type:zc.MERGE,customType:l,customId:!!n,tag:p||""};Ki=et,xi[et.id]=et,yi[Fi]=et.id,y.debug(yi),y.debug("in mergeBranch")},cherryPick:function(i,n){if(i=an.sanitizeText(i,Dt()),n=an.sanitizeText(n,Dt()),!i||xi[i]===void 0){var l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}var p=xi[i],g=p.branch;if(p.type===zc.MERGE){var T=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw T.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},T}if(!n||xi[n]===void 0){if(g===Fi){var k=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw k.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},k}var S=xi[yi[Fi]];if(S===void 0||!S){var N=new Error('Incorrect usage of "cherry-pick". Current branch ('+Fi+")has no commits");throw N.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},N}var B={id:hs+"-"+mh(),message:"cherry-picked "+p+" into "+Fi,seq:hs++,parents:[Ki==null?null:Ki.id,p.id],branch:Fi,type:zc.CHERRY_PICK,tag:"cherry-pick:"+p.id};Ki=B,xi[B.id]=B,yi[Fi]=B.id,y.debug(yi),y.debug("in cheeryPick")}},checkout:f0,prettyPrint:function(){y.debug(xi),g0([y0()[0]])},clear:function(){xi={},Ki=null;
89var i=Dt().gitGraph.mainBranchName,n=Dt().gitGraph.mainBranchOrder;(yi={})[i]=null,(Rl={})[i]={name:i,order:n},Fi=i,hs=0,Kt()},getBranchesAsObjArray:function(){return Object.values(Rl).map(function(i,n){return i.order!==null?i:Wi(Wi({},i),{},{order:parseFloat("0.".concat(n),10)})}).sort(function(i,n){return i.order-n.order}).map(function(i){return{name:i.name}})},getBranches:function(){return yi},getCommits:function(){return xi},getCommitsArray:y0,getCurrentBranch:function(){return Fi},getDirection:function(){return yh},getHead:function(){return Ki},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,commitType:zc};var so={},Ji={},qs={},co=[],ds=0,bh=function(i,n,l){var p=Dt().gitGraph,g=i.append("g").attr("class","commit-bullets"),T=i.append("g").attr("class","commit-labels"),k=0;Object.keys(n).sort(function(S,N){return n[S].seq-n[N].seq}).forEach(function(S,N){var B=n[S],q=Ji[B.branch].pos,V=k+10;if(l){var et,J=B.customType!==void 0&&B.customType!==""?B.customType:B.type;switch(J){case 0:default:et="commit-normal";break;case 1:et="commit-reverse";break;case 2:et="commit-highlight";break;case 3:et="commit-merge";break;case 4:et="commit-cherry-pick"}if(J===2){var Tt=g.append("rect");Tt.attr("x",V-10),Tt.attr("y",q-10),Tt.attr("height",20),Tt.attr("width",20),Tt.attr("class","commit ".concat(B.id," commit-highlight").concat(Ji[B.branch].index%8," ").concat(et,"-outer")),g.append("rect").attr("x",V-6).attr("y",q-6).attr("height",12).attr("width",12).attr("class","commit ".concat(B.id," commit").concat(Ji[B.branch].index%8," ").concat(et,"-inner"))}else if(J===4)g.append("circle").attr("cx",V).attr("cy",q).attr("r",10).attr("class","commit ".concat(B.id," ").concat(et)),g.append("circle").attr("cx",V-3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(B.id," ").concat(et)),g.append("circle").attr("cx",V+3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(B.id," ").concat(et)),g.append("line").attr("x1",V+3).attr("y1",q+1).attr("x2",V).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(B.id," ").concat(et)),g.append("line").attr("x1",V-3).attr("y1",q+1).attr("x2",V).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(B.id," ").concat(et));else{var St=g.append("circle");if(St.attr("cx",V),St.attr("cy",q),St.attr("r",B.type===3?9:10),St.attr("class","commit ".concat(B.id," commit").concat(Ji[B.branch].index%8)),J===3){var Lt=g.append("circle");Lt.attr("cx",V),Lt.attr("cy",q),Lt.attr("r",6),Lt.attr("class","commit ".concat(et," ").concat(B.id," commit").concat(Ji[B.branch].index%8))}J===1&&g.append("path").attr("d","M ".concat(V-5,",").concat(q-5,"L").concat(V+5,",").concat(q+5,"M").concat(V-5,",").concat(q+5,"L").concat(V+5,",").concat(q-5)).attr("class","commit ".concat(et," ").concat(B.id," commit").concat(Ji[B.branch].index%8))}}if(qs[B.id]={x:k+10,y:q},l){if(B.type!==4&&(B.customId&&B.type===3||B.type!==3)&&p.showCommitLabel){var Nt=T.append("g"),Ot=Nt.insert("rect").attr("class","commit-label-bkg"),Ft=Nt.append("text").attr("x",k).attr("y",q+25).attr("class","commit-label").text(B.id),_t=Ft.node().getBBox();if(Ot.attr("x",k+10-_t.width/2-2).attr("y",q+13.5).attr("width",_t.width+4).attr("height",_t.height+4),Ft.attr("x",k+10-_t.width/2),p.rotateCommitLabel){var ee=-7.5-(_t.width+10)/25*9.5,ke=10+_t.width/25*8.5;Nt.attr("transform","translate("+ee+", "+ke+") rotate(-45, "+k+", "+q+")")}}if(B.tag){var ue=T.insert("polygon"),ve=T.append("circle"),Rt=T.append("text").attr("y",q-16).attr("class","tag-label").text(B.tag),le=Rt.node().getBBox();Rt.attr("x",k+10-le.width/2);var Wt=le.height/2,ie=q-19.2;ue.attr("class","tag-label-bkg").attr("points",`
90          `.concat(k-le.width/2-2,",").concat(ie+2,`
91          `).concat(k-le.width/2-2,",").concat(ie-2,`
92          `).concat(k+10-le.width/2-4,",").concat(ie-Wt-2,`
93          `).concat(k+10+le.width/2+4,",").concat(ie-Wt-2,`
94          `).concat(k+10+le.width/2+4,",").concat(ie+Wt+2,`
95          `).concat(k+10-le.width/2-4,",").concat(ie+Wt+2)),ve.attr("cx",k-le.width/2+2).attr("cy",ie).attr("r",1.5).attr("class","tag-hole")}}(k+=50)>ds&&(ds=k)})},vh=function i(n,l,p){var g=p||0,T=n+Math.abs(n-l)/2;if(g>5)return T;for(var k=!0,S=0;S<co.length;S++)Math.abs(co[S]-T)<10&&(k=!1);return k?(co.push(T),T):i(n,l-Math.abs(n-l)/5,g+1)};const m0={draw:function(i,n,l,p){Ji={},qs={},so={},ds=0,co=[];var g=Dt(),T=Dt().gitGraph;y.debug("in gitgraph renderer",i+`
96`,"id:",n,l),so=p.db.getCommits();var k=p.db.getBranchesAsObjArray(),S=0;
96k.forEach(function(Tt,St){Ji[Tt.name]={pos:S,index:St},S+=50+(T.rotateCommitLabel?40:0)});var N=(0,w.select)('[id="'.concat(n,'"]'));kr(p.db,N,n),bh(N,so,!1),T.showBranches&&function(Tt,St){var Lt=Dt().gitGraph,Nt=Tt.append("g");St.forEach(function(Ot,Ft){var _t=Ft%8,ee=Ji[Ot.name].pos,ke=Nt.append("line");ke.attr("x1",0),ke.attr("y1",ee),ke.attr("x2",ds),ke.attr("y2",ee),ke.attr("class","branch branch"+_t),co.push(ee);var ue=function(Wt){var ie=document.createElementNS("http://www.w3.org/2000/svg","text"),ce=[];ce=typeof Wt=="string"?Wt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Wt)?Wt:[];for(var se=0;se<ce.length;se++){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");Ne.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ne.setAttribute("dy","1em"),Ne.setAttribute("x","0"),Ne.setAttribute("class","row"),Ne.textContent=ce[se].trim(),ie.appendChild(Ne)}return ie}(Ot.name),ve=Nt.insert("rect"),Rt=Nt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+_t);Rt.node().appendChild(ue);var le=ue.getBBox();ve.attr("class","branchLabelBkg label"+_t).attr("rx",4).attr("ry",4).attr("x",-le.width-4-(Lt.rotateCommitLabel===!0?30:0)).attr("y",-le.height/2+8).attr("width",le.width+18).attr("height",le.height+4),Rt.attr("transform","translate("+(-le.width-14-(Lt.rotateCommitLabel===!0?30:0))+", "+(ee-le.height/2-1)+")"),ve.attr("transform","translate(-19, "+(ee-le.height/2)+")")})}(N,k),function(Tt,St){var Lt=Tt.append("g").attr("class","commit-arrows");Object.keys(St).forEach(function(Nt,Ot){var Ft=St[Nt];Ft.parents&&Ft.parents.length>0&&Ft.parents.forEach(function(_t){(function(ee,ke,ue,ve){var Rt=Dt(),le=qs[ke.id],Wt=qs[ue.id],ie=function(tn,yn,Ue){return qs[yn.id],qs[tn.id],Object.keys(Ue).filter(function($e){return Ue[$e].branch===yn.branch&&Ue[$e].seq>tn.seq&&Ue[$e].seq<yn.seq}).length>0}(ke,ue,ve);Rt.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var ce,se="",Ne="",Ce=0,je=0,_n=Ji[ue.branch].index;if(ie){se="A 10 10, 0, 0, 0,",Ne="A 10 10, 0, 0, 1,",Ce=10,je=10,_n=Ji[ue.branch].index;var Re=le.y<Wt.y?vh(le.y,Wt.y):vh(Wt.y,le.y);ce=le.y<Wt.y?"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Re-Ce," ").concat(se," ").concat(le.x+je," ").concat(Re," L ").concat(Wt.x-Ce," ").concat(Re," ").concat(Ne," ").concat(Wt.x," ").concat(Re+je," L ").concat(Wt.x," ").concat(Wt.y):"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Re+Ce," ").concat(Ne," ").concat(le.x+je," ").concat(Re," L ").concat(Wt.x-Ce," ").concat(Re," ").concat(se," ").concat(Wt.x," ").concat(Re-je," L ").concat(Wt.x," ").concat(Wt.y)}else le.y<Wt.y&&(se="A 20 20, 0, 0, 0,",Ce=20,je=20,_n=Ji[ue.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Wt.y-Ce," ").concat(se," ").concat(le.x+je," ").concat(Wt.y," L ").concat(Wt.x," ").concat(Wt.y)),le.y>Wt.y&&(se="A 20 20, 0, 0, 0,",Ce=20,je=20,_n=Ji[ke.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(Wt.x-Ce," ").concat(le.y," ").concat(se," ").concat(Wt.x," ").concat(le.y-je," L ").concat(Wt.x," ").concat(Wt.y)),le.y===Wt.y&&(_n=Ji[ke.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Wt.y-Ce," ").concat(se," ").concat(le.x+je," ").concat(Wt.y," L ").concat(Wt.x," ").concat(Wt.y));ee.append("path").attr("d",ce).attr("class","arrow arrow"+_n%8)})(Lt,St[_t],Ft,St)})})}(N,so),bh(N,so,!0);var B=T.diagramPadding,q=N.node().getBBox(),V=q.width+2*B,et=q.height+2*B;Gi(N,0,V,g.useMaxWidth);var J="".concat(q.x-B-(T.showBranches&&T.rotateCommitLabel===!0?30:0)," ").concat(q.y-B," ").concat(V," ").concat(et);N.attr("viewBox",J)}};var jl=f(2553),zl=f.n(jl);const _h=function(i){return i.match(/^\s*gitGraph/)?"gitGraph":null},Yl=function(){var i,n,l,p,g,T;i="gitGraph",n=zl(),l=Pl,p=m0,g=void 0,T=_h,jc[i]={parser:n,db:l,renderer:p,init:g},function(k,S){Er[k]={detector:S}}(i,T)};function b0(i,n){for(var l=0;l<n.length;l++){var p=n[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(i,p.key,p)}}function Yc(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var v0=function(){function i(p){var g,T;(function(N,B){if(!(N instanceof B))throw new TypeError("Cannot call a class as a function")}
96)(this,i),Yc(this,"type","graph"),Yc(this,"parser",void 0),Yc(this,"renderer",void 0),Yc(this,"db",void 0);var k=ph(),S=Dt();this.txt=p,this.type=ui(p,S),y.debug("Type "+this.type),this.db=k[this.type].db,(g=(T=this.db).clear)===null||g===void 0||g.call(T),this.renderer=k[this.type].renderer,this.parser=k[this.type].parser,this.parser.parser.yy=this.db,typeof k[this.type].init=="function"&&(k[this.type].init(S),y.debug("Initialized diagram "+this.type,S)),this.txt=this.txt+`
97`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(N,B){throw{str:N,hash:B}},this.parser.parse(this.txt)}var n,l;return n=i,(l=[{key:"parse",value:function(p){var g=!1;try{p+=`
98`,this.db.clear(),this.parser.parse(p)}catch(T){if(g=!0,!f.g.mermaid.parseError)throw T;T.str!=null?f.g.mermaid.parseError(T.str,T.hash):f.g.mermaid.parseError(T)}return!g}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&b0(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const Ul=v0,$l=function(i){return`g.classGroup text {
99  fill: `.concat(i.nodeBorder,`;
100  fill: `).concat(i.classText,`;
101  stroke: none;
102  font-family: `).concat(i.fontFamily,`;
103  font-size: 10px;
104
105  .title {
106    font-weight: bolder;
107  }
108
109}
110
111.nodeLabel, .edgeLabel {
112  color: `).concat(i.classText,`;
113}
114.edgeLabel .label rect {
115  fill: `).concat(i.mainBkg,`;
116}
117.label text {
118  fill: `).concat(i.classText,`;
119}
120.edgeLabel .label span {
121  background: `).concat(i.mainBkg,`;
122}
123
124.classTitle {
125  font-weight: bolder;
126}
127.node rect,
128  .node circle,
129  .node ellipse,
130  .node polygon,
131  .node path {
132    fill: `).concat(i.mainBkg,`;
133    stroke: `).concat(i.nodeBorder,`;
134    stroke-width: 1px;
135  }
136
137
138.divider {
139  stroke: `).concat(i.nodeBorder,`;
140  stroke: 1;
141}
142
143g.clickable {
144  cursor: pointer;
145}
146
147g.classGroup rect {
148  fill: `).concat(i.mainBkg,`;
149  stroke: `).concat(i.nodeBorder,`;
150}
151
152g.classGroup line {
153  stroke: `).concat(i.nodeBorder,`;
154  stroke-width: 1;
155}
156
157.classLabel .box {
158  stroke: none;
159  stroke-width: 0;
160  fill: `).concat(i.mainBkg,`;
161  opacity: 0.5;
162}
163
164.classLabel .label {
165  fill: `).concat(i.nodeBorder,`;
166  font-size: 10px;
167}
168
169.relation {
170  stroke: `).concat(i.lineColor,`;
171  stroke-width: 1;
172  fill: none;
173}
174
175.dashed-line{
176  stroke-dasharray: 3;
177}
178
179#compositionStart, .composition {
180  fill: `).concat(i.lineColor,` !important;
181  stroke: `).concat(i.lineColor,` !important;
182  stroke-width: 1;
183}
184
185#compositionEnd, .composition {
186  fill: `).concat(i.lineColor,` !important;
187  stroke: `).concat(i.lineColor,` !important;
188  stroke-width: 1;
189}
190
191#dependencyStart, .dependency {
192  fill: `).concat(i.lineColor,` !important;
193  stroke: `).concat(i.lineColor,` !important;
194  stroke-width: 1;
195}
196
197#dependencyStart, .dependency {
198  fill: `).concat(i.lineColor,` !important;
199  stroke: `).concat(i.lineColor,` !important;
200  stroke-width: 1;
201}
202
203#extensionStart, .extension {
204  fill: `).concat(i.lineColor,` !important;
205  stroke: `).concat(i.lineColor,` !important;
206  stroke-width: 1;
207}
208
209#extensionEnd, .extension {
210  fill: `).concat(i.lineColor,` !important;
211  stroke: `).concat(i.lineColor,` !important;
212  stroke-width: 1;
213}
214
215#aggregationStart, .aggregation {
216  fill: `).concat(i.mainBkg,` !important;
217  stroke: `).concat(i.lineColor,` !important;
218  stroke-width: 1;
219}
220
221#aggregationEnd, .aggregation {
222  fill: `).concat(i.mainBkg,` !important;
223  stroke: `).concat(i.lineColor,` !important;
224  stroke-width: 1;
225}
226
227#lollipopStart, .lollipop {
228  fill: `).concat(i.mainBkg,` !important;
229  stroke: `).concat(i.lineColor,` !important;
230  stroke-width: 1;
231}
232
233#lollipopEnd, .lollipop {
234  fill: `).concat(i.mainBkg,` !important;
235  stroke: `).concat(i.lineColor,` !important;
236  stroke-width: 1;
237}
238
239.edgeTerminals {
240  font-size: 11px;
241}
242
243`)},xh=function(i){return`.label {
244    font-family: `.concat(i.fontFamily,`;
245    color: `).concat(i.nodeTextColor||i.textColor,`;
246  }
247  .cluster-label text {
248    fill: `).concat(i.titleColor,`;
249  }
250  .cluster-label span {
251    color: `).concat(i.titleColor,`;
252  }
253
254  .label text,span {
255    fill: `).concat(i.nodeTextColor||i.textColor,`;
256    color: `).concat(i.nodeTextColor||i.textColor,`;
257  }
258
259  .node rect,
260  .node circle,
261  .node ellipse,
262  .node polygon,
263  .node path {
264    fill: `).concat(i.mainBkg,`;
265    stroke: `).concat(i.nodeBorder,`;
266    stroke-width: 1px;
267  }
268
269  .node .label {
270    text-align: center;
271  }
272  .node.clickable {
273    cursor: pointer;
274  }
275
276  .arrowheadPath {
277    fill: `).concat(i.arrowheadColor,`;
278  }
279
280  .edgePath .path {
281    stroke: `).concat(i.lineColor,`;
282    stroke-width: 2.0px;
283  }
284
285  .flowchart-link {
286    stroke: `).concat(i.lineColor,`;
287    fill: none;
288  }
289
290  .edgeLabel {
291    background-color: `).concat(i.edgeLabelBackground,`;
292    rect {
293      opacity: 0.5;
294      background-color: `).concat(i.edgeLabelBackground,`;
295      fill: `).concat(i.edgeLabelBackground,`;
296    }
297    text-align: center;
298  }
299
300  .cluster rect {
301    fill: `).concat(i.clusterBkg,`;
302    stroke: `).concat(i.clusterBorder,`;
303    stroke-width: 1px;
304  }
305
306  .cluster text {
307    fill: `).concat(i.titleColor,`;
308  }
309
310  .cluster span {
311    color: `).concat(i.titleColor,`;
312  }
313  /* .cluster div {
314    color: `).concat(i.titleColor,`;
315  } */
316
317  div.mermaidTooltip {
318    position: absolute;
319    text-align: center;
320    max-width: 200px;
321    padding: 2px;
322    font-family: `).concat(i.fontFamily,`;
323    font-size: 12px;
324    background: `).concat(i.tertiaryColor,`;
325    border: 1px solid `).concat(i.border2,`;
326    border-radius: 2px;
327    pointer-events: none;
328    z-index: 100;
329  }
330`)},Xn=function(i){return`
331defs #statediagram-barbEnd {
332    fill: `.concat(i.transitionColor,`;
333    stroke: `).concat(i.transitionColor,`;
334  }
335g.stateGroup text {
336  fill: `).concat(i.nodeBorder,`;
337  stroke: none;
338  font-size: 10px;
339}
340g.stateGroup text {
341  fill: `).concat(i.textColor,`;
342  stroke: none;
343  font-size: 10px;
344
345}
346g.stateGroup .state-title {
347  font-weight: bolder;
348  fill: `).concat(i.stateLabelColor,`;
349}
350
351g.stateGroup rect {
352  fill: `).concat(i.mainBkg,`;
353  stroke: `).concat(i.nodeBorder,`;
354}
355
356g.stateGroup line {
357  stroke: `).concat(i.lineColor,`;
358  stroke-width: 1;
359}
360
361.transition {
362  stroke: `).concat(i.transitionColor,`;
363  stroke-width: 1;
364  fill: none;
365}
366
367.stateGroup .composit {
368  fill: `).concat(i.background,`;
369  border-bottom: 1px
370}
371
372.stateGroup .alt-composit {
373  fill: #e0e0e0;
374  border-bottom: 1px
375}
376
377.state-note {
378  stroke: `).concat(i.noteBorderColor,`;
379  fill: `).concat(i.noteBkgColor,`;
380
381  text {
382    fill: `).concat(i.noteTextColor,`;
383    stroke: none;
384    font-size: 10px;
385  }
386}
387
388.stateLabel .box {
389  stroke: none;
390  stroke-width: 0;
391  fill: `).concat(i.mainBkg,`;
392  opacity: 0.5;
393}
394
395.edgeLabel .label rect {
396  fill: `).concat(i.labelBackgroundColor,`;
397  opacity: 0.5;
398}
399.edgeLabel .label text {
400  fill: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
401}
402.label div .edgeLabel {
403  color: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
404}
405
406.stateLabel text {
407  fill: `).concat(i.stateLabelColor,`;
408  font-size: 10px;
409  font-weight: bold;
410}
411
412.node circle.state-start {
413  fill: `).concat(i.specialStateColor,`;
414  stroke: `).concat(i.specialStateColor,`;
415}
416
417.node .fork-join {
418  fill: `).concat(i.specialStateColor,`;
419  stroke: `).concat(i.specialStateColor,`;
420}
421
422.node circle.state-end {
423  fill: `).concat(i.innerEndBackground,`;
424  stroke: `).concat(i.background,`;
425  stroke-width: 1.5
426}
427.end-state-inner {
428  fill: `).concat(i.compositeBackground||i.background,`;
429  // stroke: `).concat(i.background,`;
430  stroke-width: 1.5
431}
432
433.node rect {
434  fill: `).concat(i.stateBkg||i.mainBkg,`;
435  stroke: `).concat(i.stateBorder||i.nodeBorder,`;
436  stroke-width: 1px;
437}
438.node polygon {
439  fill: `).concat(i.mainBkg,`;
440  stroke: `).concat(i.stateBorder||i.nodeBorder,`;;
441  stroke-width: 1px;
442}
443#statediagram-barbEnd {
444  fill: `).concat(i.lineColor,`;
445}
446
447.statediagram-cluster rect {
448  fill: `).concat(i.compositeTitleBackground,`;
449  stroke: `).concat(i.stateBorder||i.nodeBorder,`;
450  stroke-width: 1px;
451}
452
453.cluster-label, .nodeLabel {
454  color: `).concat(i.stateLabelColor,`;
455}
456
457.statediagram-cluster rect.outer {
458  rx: 5px;
459  ry: 5px;
460}
461.statediagram-state .divider {
462  stroke: `).concat(i.stateBorder||i.nodeBorder,`;
463}
464
465.statediagram-state .title-state {
466  rx: 5px;
467  ry: 5px;
468}
469.statediagram-cluster.statediagram-cluster .inner {
470  fill: `).concat(i.compositeBackground||i.background,`;
471}
472.statediagram-cluster.statediagram-cluster-alt .inner {
473  fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
474}
475
476.statediagram-cluster .inner {
477  rx:0;
478  ry:0;
479}
480
481.statediagram-state rect.basic {
482  rx: 5px;
483  ry: 5px;
484}
485.statediagram-state rect.divider {
486  stroke-dasharray: 10,10;
487  fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
488}
489
490.note-edge {
491  stroke-dasharray: 5;
492}
493
494.statediagram-note rect {
495  fill: `).concat(i.noteBkgColor,`;
496  stroke: `).concat(i.noteBorderColor,`;
497  stroke-width: 1px;
498  rx: 0;
499  ry: 0;
500}
501.statediagram-note rect {
502  fill: `).concat(i.noteBkgColor,`;
503  stroke: `).concat(i.noteBorderColor,`;
504  stroke-width: 1px;
505  rx: 0;
506  ry: 0;
507}
508
509.statediagram-note text {
510  fill: `).concat(i.noteTextColor,`;
511}
512
513.statediagram-note .nodeLabel {
514  color: `).concat(i.noteTextColor,`;
515}
516.statediagram .edgeLabel {
517  color: red; // `).concat(i.noteTextColor,`;
518}
519
520#dependencyStart, #dependencyEnd {
521  fill: `).concat(i.lineColor,`;
522  stroke: `).concat(i.lineColor,`;
523  stroke-width: 1;
524}
525`)};var Wl={flowchart:xh,"flowchart-v2":xh,sequence:function(i){return`.actor {
526    stroke: `.concat(i.actorBorder,`;
527    fill: `).concat(i.actorBkg,`;
528  }
529
530  text.actor > tspan {
531    fill: `).concat(i.actorTextColor,`;
532    stroke: none;
533  }
534
535  .actor-line {
536    stroke: `).concat(i.actorLineColor,`;
537  }
538
539  .messageLine0 {
540    stroke-width: 1.5;
541    stroke-dasharray: none;
542    stroke: `).concat(i.signalColor,`;
543  }
544
545  .messageLine1 {
546    stroke-width: 1.5;
547    stroke-dasharray: 2, 2;
548    stroke: `).concat(i.signalColor,`;
549  }
550
551  #arrowhead path {
552    fill: `).concat(i.signalColor,`;
553    stroke: `).concat(i.signalColor,`;
554  }
555
556  .sequenceNumber {
557    fill: `).concat(i.sequenceNumberColor,`;
558  }
559
560  #sequencenumber {
561    fill: `).concat(i.signalColor,`;
562  }
563
564  #crosshead path {
565    fill: `).concat(i.signalColor,`;
566    stroke: `).concat(i.signalColor,`;
567  }
568
569  .messageText {
570    fill: `).concat(i.signalTextColor,`;
571    stroke: none;
572  }
573
574  .labelBox {
575    stroke: `).concat(i.labelBoxBorderColor,`;
576    fill: `).concat(i.labelBoxBkgColor,`;
577  }
578
579  .labelText, .labelText > tspan {
580    fill: `).concat(i.labelTextColor,`;
581    stroke: none;
582  }
583
584  .loopText, .loopText > tspan {
585    fill: `).concat(i.loopTextColor,`;
586    stroke: none;
587  }
588
589  .loopLine {
590    stroke-width: 2px;
591    stroke-dasharray: 2, 2;
592    stroke: `).concat(i.labelBoxBorderColor,`;
593    fill: `).concat(i.labelBoxBorderColor,`;
594  }
595
596  .note {
597    //stroke: #decc93;
598    stroke: `).concat(i.noteBorderColor,`;
599    fill: `).concat(i.noteBkgColor,`;
600  }
601
602  .noteText, .noteText > tspan {
603    fill: `).concat(i.noteTextColor,`;
604    stroke: none;
605  }
606
607  .activation0 {
608    fill: `).concat(i.activationBkgColor,`;
609    stroke: `).concat(i.activationBorderColor,`;
610  }
611
612  .activation1 {
613    fill: `).concat(i.activationBkgColor,`;
614    stroke: `).concat(i.activationBorderColor,`;
615  }
616
617  .activation2 {
618    fill: `).concat(i.activationBkgColor,`;
619    stroke: `).concat(i.activationBorderColor,`;
620  }
621
622  .actorPopupMenu {
623    position: absolute;
624  }
625
626  .actorPopupMenuPanel {
627    position: absolute;
628    fill: `).concat(i.actorBkg,`;
629    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
630    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
631}
632  .actor-man line {
633    stroke: `).concat(i.actorBorder,`;
634    fill: `).concat(i.actorBkg,`;
635  }
636  .actor-man circle, line {
637    stroke: `).concat(i.actorBorder,`;
638    fill: `).concat(i.actorBkg,`;
639    stroke-width: 2px;
640  }
641`)},gantt:function(i){return`
642  .mermaid-main-font {
643    font-family: "trebuchet ms", verdana, arial, sans-serif;
644    font-family: var(--mermaid-font-family);
645  }
646  .exclude-range {
647    fill: `.concat(i.excludeBkgColor,`;
648  }
649
650  .section {
651    stroke: none;
652    opacity: 0.2;
653  }
654
655  .section0 {
656    fill: `).concat(i.sectionBkgColor,`;
657  }
658
659  .section2 {
660    fill: `).concat(i.sectionBkgColor2,`;
661  }
662
663  .section1,
664  .section3 {
665    fill: `).concat(i.altSectionBkgColor,`;
666    opacity: 0.2;
667  }
668
669  .sectionTitle0 {
670    fill: `).concat(i.titleColor,`;
671  }
672
673  .sectionTitle1 {
674    fill: `).concat(i.titleColor,`;
675  }
676
677  .sectionTitle2 {
678    fill: `).concat(i.titleColor,`;
679  }
680
681  .sectionTitle3 {
682    fill: `).concat(i.titleColor,`;
683  }
684
685  .sectionTitle {
686    text-anchor: start;
687    // font-size: `).concat(i.ganttFontSize,`;
688    // text-height: 14px;
689    font-family: 'trebuchet ms', verdana, arial, sans-serif;
690    font-family: var(--mermaid-font-family);
691
692  }
693
694
695  /* Grid and axis */
696
697  .grid .tick {
698    stroke: `).concat(i.gridColor,`;
699    opacity: 0.8;
700    shape-rendering: crispEdges;
701    text {
702      font-family: `).concat(i.fontFamily,`;
703      fill: `).concat(i.textColor,`;
704    }
705  }
706
707  .grid path {
708    stroke-width: 0;
709  }
710
711
712  /* Today line */
713
714  .today {
715    fill: none;
716    stroke: `).concat(i.todayLineColor,`;
717    stroke-width: 2px;
718  }
719
720
721  /* Task styling */
722
723  /* Default task */
724
725  .task {
726    stroke-width: 2;
727  }
728
729  .taskText {
730    text-anchor: middle;
731    font-family: 'trebuchet ms', verdana, arial, sans-serif;
732    font-family: var(--mermaid-font-family);
733  }
734
735  // .taskText:not([font-size]) {
736  //   font-size: `).concat(i.ganttFontSize,`;
737  // }
738
739  .taskTextOutsideRight {
740    fill: `).concat(i.taskTextDarkColor,`;
741    text-anchor: start;
742    // font-size: `).concat(i.ganttFontSize,`;
743    font-family: 'trebuchet ms', verdana, arial, sans-serif;
744    font-family: var(--mermaid-font-family);
745
746  }
747
748  .taskTextOutsideLeft {
749    fill: `).concat(i.taskTextDarkColor,`;
750    text-anchor: end;
751    // font-size: `).concat(i.ganttFontSize,`;
752  }
753
754  /* Special case clickable */
755  .task.clickable {
756    cursor: pointer;
757  }
758  .taskText.clickable {
759    cursor: pointer;
760    fill: `).concat(i.taskTextClickableColor,` !important;
761    font-weight: bold;
762  }
763
764  .taskTextOutsideLeft.clickable {
765    cursor: pointer;
766    fill: `).concat(i.taskTextClickableColor,` !important;
767    font-weight: bold;
768  }
769
770  .taskTextOutsideRight.clickable {
771    cursor: pointer;
772    fill: `).concat(i.taskTextClickableColor,` !important;
773    font-weight: bold;
774  }
775
776  /* Specific task settings for the sections*/
777
778  .taskText0,
779  .taskText1,
780  .taskText2,
781  .taskText3 {
782    fill: `).concat(i.taskTextColor,`;
783  }
784
785  .task0,
786  .task1,
787  .task2,
788  .task3 {
789    fill: `).concat(i.taskBkgColor,`;
790    stroke: `).concat(i.taskBorderColor,`;
791  }
792
793  .taskTextOutside0,
794  .taskTextOutside2
795  {
796    fill: `).concat(i.taskTextOutsideColor,`;
797  }
798
799  .taskTextOutside1,
800  .taskTextOutside3 {
801    fill: `).concat(i.taskTextOutsideColor,`;
802  }
803
804
805  /* Active task */
806
807  .active0,
808  .active1,
809  .active2,
810  .active3 {
811    fill: `).concat(i.activeTaskBkgColor,`;
812    stroke: `).concat(i.activeTaskBorderColor,`;
813  }
814
815  .activeText0,
816  .activeText1,
817  .activeText2,
818  .activeText3 {
819    fill: `).concat(i.taskTextDarkColor,` !important;
820  }
821
822
823  /* Completed task */
824
825  .done0,
826  .done1,
827  .done2,
828  .done3 {
829    stroke: `).concat(i.doneTaskBorderColor,`;
830    fill: `).concat(i.doneTaskBkgColor,`;
831    stroke-width: 2;
832  }
833
834  .doneText0,
835  .doneText1,
836  .doneText2,
837  .doneText3 {
838    fill: `).concat(i.taskTextDarkColor,` !important;
839  }
840
841
842  /* Tasks on the critical line */
843
844  .crit0,
845  .crit1,
846  .crit2,
847  .crit3 {
848    stroke: `).concat(i.critBorderColor,`;
849    fill: `).concat(i.critBkgColor,`;
850    stroke-width: 2;
851  }
852
853  .activeCrit0,
854  .activeCrit1,
855  .activeCrit2,
856  .activeCrit3 {
857    stroke: `).concat(i.critBorderColor,`;
858    fill: `).concat(i.activeTaskBkgColor,`;
859    stroke-width: 2;
860  }
861
862  .doneCrit0,
863  .doneCrit1,
864  .doneCrit2,
865  .doneCrit3 {
866    stroke: `).concat(i.critBorderColor,`;
867    fill: `).concat(i.doneTaskBkgColor,`;
868    stroke-width: 2;
869    cursor: pointer;
870    shape-rendering: crispEdges;
871  }
872
873  .milestone {
874    transform: rotate(45deg) scale(0.8,0.8);
875  }
876
877  .milestoneText {
878    font-style: italic;
879  }
880  .doneCritText0,
881  .doneCritText1,
882  .doneCritText2,
883  .doneCritText3 {
884    fill: `).concat(i.taskTextDarkColor,` !important;
885  }
886
887  .activeCritText0,
888  .activeCritText1,
889  .activeCritText2,
890  .activeCritText3 {
891    fill: `).concat(i.taskTextDarkColor,` !important;
892  }
893
894  .titleText {
895    text-anchor: middle;
896    font-size: 18px;
897    fill: `).concat(i.textColor,`    ;
898    font-family: 'trebuchet ms', verdana, arial, sans-serif;
899    font-family: var(--mermaid-font-family);
900  }
901`)},classDiagram:$l,"classDiagram-v2":$l,class:$l,stateDiagram:Xn,state:Xn,gitGraph:function(i){return`
902  .commit-id,
903  .commit-msg,
904  .branch-label {
905    fill: lightgrey;
906    color: lightgrey;
907    font-family: 'trebuchet ms', verdana, arial, sans-serif;
908    font-family: var(--mermaid-font-family);
909  }
910  `.concat([0,1,2,3,4,5,6,7].map(function(n){return`
911        .branch-label`.concat(n," { fill: ").concat(i["gitBranchLabel"+n],`; }
912        .commit`).concat(n," { stroke: ").concat(i["git"+n],"; fill: ").concat(i["git"+n],`; }
913        .commit-highlight`).concat(n," { stroke: ").concat(i["gitInv"+n],"; fill: ").concat(i["gitInv"+n],`; }
914        .label`).concat(n,"  { fill: ").concat(i["git"+n],`; }
915        .arrow`).concat(n," { stroke: ").concat(i["git"+n],`; }
916        `)}).join(`
917`),`
918
919  .branch {
920    stroke-width: 1;
921    stroke: `).concat(i.lineColor,`;
922    stroke-dasharray: 2;
923  }
924  .commit-label { font-size: `).concat(i.commitLabelFontSize,"; fill: ").concat(i.commitLabelColor,`;}
925  .commit-label-bkg { font-size: `).concat(i.commitLabelFontSize,";
925 fill: ").concat(i.commitLabelBackground,`; opacity: 0.5; }
926  .tag-label { font-size: `).concat(i.tagLabelFontSize,"; fill: ").concat(i.tagLabelColor,`;}
927  .tag-label-bkg { fill: `).concat(i.tagLabelBackground,"; stroke: ").concat(i.tagLabelBorder,`; }
928  .tag-hole { fill: `).concat(i.textColor,`; }
929
930  .commit-merge {
931    stroke: `).concat(i.primaryColor,`;
932    fill: `).concat(i.primaryColor,`;
933  }
934  .commit-reverse {
935    stroke: `).concat(i.primaryColor,`;
936    fill: `).concat(i.primaryColor,`;
937    stroke-width: 3;
938  }
939  .commit-highlight-outer {
940  }
941  .commit-highlight-inner {
942    stroke: `).concat(i.primaryColor,`;
943    fill: `).concat(i.primaryColor,`;
944  }
945
946  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
947  }
948`)},info:function(){return""},pie:function(i){return`
949  .pieCircle{
950    stroke: `.concat(i.pieStrokeColor,`;
951    stroke-width : `).concat(i.pieStrokeWidth,`;
952    opacity : `).concat(i.pieOpacity,`;
953  }
954  .pieTitleText {
955    text-anchor: middle;
956    font-size: `).concat(i.pieTitleTextSize,`;
957    fill: `).concat(i.pieTitleTextColor,`;
958    font-family: `).concat(i.fontFamily,`;
959  }
960  .slice {
961    font-family: `).concat(i.fontFamily,`;
962    fill: `).concat(i.pieSectionTextColor,`;
963    font-size:`).concat(i.pieSectionTextSize,`;
964    // fill: white;
965  }
966  .legend text {
967    fill: `).concat(i.pieLegendTextColor,`;
968    font-family: `).concat(i.fontFamily,`;
969    font-size: `).concat(i.pieLegendTextSize,`;
970  }
971`)},er:function(i){return`
972  .entityBox {
973    fill: `.concat(i.mainBkg,`;
974    stroke: `).concat(i.nodeBorder,`;
975  }
976
977  .attributeBoxOdd {
978    fill: #ffffff;
979    stroke: `).concat(i.nodeBorder,`;
980  }
981
982  .attributeBoxEven {
983    fill: #f2f2f2;
984    stroke: `).concat(i.nodeBorder,`;
985  }
986
987  .relationshipLabelBox {
988    fill: `).concat(i.tertiaryColor,`;
989    opacity: 0.7;
990    background-color: `).concat(i.tertiaryColor,`;
991      rect {
992        opacity: 0.5;
993      }
994  }
995
996    .relationshipLine {
997      stroke: `).concat(i.lineColor,`;
998    }
999`)},error:function(){return""},journey:function(i){return`.label {
1000    font-family: 'trebuchet ms', verdana, arial, sans-serif;
1001    font-family: var(--mermaid-font-family);
1002    color: `.concat(i.textColor,`;
1003  }
1004  .mouth {
1005    stroke: #666;
1006  }
1007
1008  line {
1009    stroke: `).concat(i.textColor,`
1010  }
1011
1012  .legend {
1013    fill: `).concat(i.textColor,`;
1014  }
1015
1016  .label text {
1017    fill: #333;
1018  }
1019  .label {
1020    color: `).concat(i.textColor,`
1021  }
1022
1023  .face {
1024    `).concat(i.faceColor?"fill: ".concat(i.faceColor):"fill: #FFF8DC",`;
1025    stroke: #999;
1026  }
1027
1028  .node rect,
1029  .node circle,
1030  .node ellipse,
1031  .node polygon,
1032  .node path {
1033    fill: `).concat(i.mainBkg,`;
1034    stroke: `).concat(i.nodeBorder,`;
1035    stroke-width: 1px;
1036  }
1037
1038  .node .label {
1039    text-align: center;
1040  }
1041  .node.clickable {
1042    cursor: pointer;
1043  }
1044
1045  .arrowheadPath {
1046    fill: `).concat(i.arrowheadColor,`;
1047  }
1048
1049  .edgePath .path {
1050    stroke: `).concat(i.lineColor,`;
1051    stroke-width: 1.5px;
1052  }
1053
1054  .flowchart-link {
1055    stroke: `).concat(i.lineColor,`;
1056    fill: none;
1057  }
1058
1059  .edgeLabel {
1060    background-color: `).concat(i.edgeLabelBackground,`;
1061    rect {
1062      opacity: 0.5;
1063    }
1064    text-align: center;
1065  }
1066
1067  .cluster rect {
1068  }
1069
1070  .cluster text {
1071    fill: `).concat(i.titleColor,`;
1072  }
1073
1074  div.mermaidTooltip {
1075    position: absolute;
1076    text-align: center;
1077    max-width: 200px;
1078    padding: 2px;
1079    font-family: 'trebuchet ms', verdana, arial, sans-serif;
1080    font-family: var(--mermaid-font-family);
1081    font-size: 12px;
1082    background: `).concat(i.tertiaryColor,`;
1083    border: 1px solid `).concat(i.border2,`;
1084    border-radius: 2px;
1085    pointer-events: none;
1086    z-index: 100;
1087  }
1088
1089  .task-type-0, .section-type-0  {
1090    `).concat(i.fillType0?"fill: ".concat(i.fillType0):"",`;
1091  }
1092  .task-type-1, .section-type-1  {
1093    `).concat(i.fillType0?"fill: ".concat(i.fillType1):"",`;
1094  }
1095  .task-type-2, .section-type-2  {
1096    `).concat(i.fillType0?"fill: ".concat(i.fillType2):"",`;
1097  }
1098  .task-type-3, .section-type-3  {
1099    `).concat(i.fillType0?"fill: ".concat(i.fillType3):"",`;
1100  }
1101  .task-type-4, .section-type-4  {
1102    `).concat(i.fillType0?"fill: ".concat(i.fillType4):"",`;
1103  }
1104  .task-type-5, .section-type-5  {
1105    `).concat(i.fillType0?"fill: ".concat(i.fillType5):"",`;
1106  }
1107  .task-type-6, .section-type-6  {
1108    `).concat(i.fillType0?"fill: ".concat(i.fillType6):"",`;
1109  }
1110  .task-type-7, .section-type-7  {
1111    `).concat(i.fillType0?"fill: ".concat(i.fillType7):"",`;
1112  }
1113
1114  .actor-0 {
1115    `).concat(i.actor0?"fill: ".concat(i.actor0):"",`;
1116  }
1117  .actor-1 {
1118    `).concat(i.actor1?"fill: ".concat(i.actor1):"",`;
1119  }
1120  .actor-2 {
1121    `).concat(i.actor2?"fill: ".concat(i.actor2):"",`;
1122  }
1123  .actor-3 {
1124    `).concat(i.actor3?"fill: ".concat(i.actor3):"",`;
1125  }
1126  .actor-4 {
1127    `).concat(i.actor4?"fill: ".concat(i.actor4):"",`;
1128  }
1129  .actor-5 {
1130    `).concat(i.actor5?"fill: ".concat(i.actor5):"",`;
1131  }
1132
1133  }
1134`)},requirement:function(i){return`
1135
1136  marker {
1137    fill: `.concat(i.relationColor,`;
1138    stroke: `).concat(i.relationColor,`;
1139  }
1140
1141  marker.cross {
1142    stroke: `).concat(i.lineColor,`;
1143  }
1144
1145  svg {
1146    font-family: `).concat(i.fontFamily,`;
1147    font-size: `).concat(i.fontSize,`;
1148  }
1149
1150  .reqBox {
1151    fill: `).concat(i.requirementBackground,`;
1152    fill-opacity: 100%;
1153    stroke: `).concat(i.requirementBorderColor,`;
1154    stroke-width: `).concat(i.requirementBorderSize,`;
1155  }
1156  
1157  .reqTitle, .reqLabel{
1158    fill:  `).concat(i.requirementTextColor,`;
1159  }
1160  .reqLabelBox {
1161    fill: `).concat(i.relationLabelBackground,`;
1162    fill-opacity: 100%;
1163  }
1164
1165  .req-title-line {
1166    stroke: `).concat(i.requirementBorderColor,`;
1167    stroke-width: `).concat(i.requirementBorderSize,`;
1168  }
1169  .relationshipLine {
1170    stroke: `).concat(i.relationColor,`;
1171    stroke-width: 1;
1172  }
1173  .relationshipLabel {
1174    fill: `).concat(i.relationLabelColor,`;
1175  }
1176
1177`)},c4:function(i){return`.person {
1178    stroke: `.concat(i.personBorder,`;
1179    fill: `).concat(i.personBkg,`;
1180  }
1181`)}};function tr(i){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tr(i)}var Pr=!1,Vs=function(i){var n=i;return(n=(n=n.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},ki={};function Lr(i){ml.setConf(i.flowchart),Cc.setConf(i.flowchart),i.sequenceDiagram!==void 0&&Fc.setConf(te(i.sequence,i.sequenceDiagram)),Fc.setConf(i.sequence),xl.setConf(i.gantt),o0.setConf(i.state),ls.setConf(i.state),Ii.setConf(i.journey),vu.setConf(i.class)}var $n=Object.freeze({render:function(i,n,l,p){Pr||(Yl(),Pr=!0),Gn();var g=n.replace(/\r\n?/g,`
1182`),T=qn.detectInit(g);T&&(di(T),Nr(T));
1182var k=Dt();y.debug(k),n.length>k.maxTextSize&&(g="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var S,N,B=(0,w.select)("body");if(p!==void 0){if(k.securityLevel==="sandbox"){var q=(0,w.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,w.select)(q.nodes()[0].contentDocument.body)).node().style.margin=0}if(p.innerHTML="",k.securityLevel==="sandbox"){var V=(0,w.select)(p).append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,w.select)(V.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,w.select)(p);B.append("div").attr("id","d"+i).attr("style","font-family: "+k.fontFamily).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var et,J=document.getElementById(i);if(J&&J.remove(),(et=k.securityLevel!=="sandbox"?document.querySelector("#d"+i):document.querySelector("#i"+i))&&et.remove(),k.securityLevel==="sandbox"){var Tt=(0,w.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,w.select)(Tt.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,w.select)("body");B.append("div").attr("id","d"+i).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}g=g.replace(/style.*:\S*#.*;/g,function(se){return se.substring(0,se.length-1)}).replace(/classDef.*:\S*#.*;/g,function(se){return se.substring(0,se.length-1)}).replace(/#\w+;/g,function(se){var Ne=se.substring(1,se.length-1);return/^\+?\d+$/.test(Ne)?"fl°°"+Ne+"¶ß":"fl°"+Ne+"¶ß"});try{S=new Ul(g)}catch(se){S=new Ul("error"),N=se}var St=B.select("#d"+i).node(),Lt=S.type,Nt=St.firstChild,Ot=Nt.firstChild,Ft="";if(k.themeCSS!==void 0&&(Ft+=`
1183`.concat(k.themeCSS)),k.fontFamily!==void 0&&(Ft+=`
1184:root { --mermaid-font-family: `.concat(k.fontFamily,"}")),k.altFontFamily!==void 0&&(Ft+=`
1185:root { --mermaid-alt-font-family: `.concat(k.altFontFamily,"}")),Lt==="flowchart"||Lt==="flowchart-v2"||Lt==="graph"){var _t=ml.getClasses(g,S),ee=k.htmlLabels||k.flowchart.htmlLabels;for(var ke in _t)ee?(Ft+=`
1186.`.concat(ke," > * { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
1187.`.concat(ke," span { ").concat(_t[ke].styles.join(" !important; ")," !important; }")):(Ft+=`
1188.`.concat(ke," path { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
1189.`.concat(ke," rect { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
1190.`.concat(ke," polygon { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
1191.`.concat(ke," ellipse { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
1192.`.concat(ke," circle { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),_t[ke].textStyles&&(Ft+=`
1193.`.concat(ke," tspan { ").concat(_t[ke].textStyles.join(" !important; ")," !important; }")))}var ue=function(se,Ne){return Gt(wn("".concat(se,"{").concat(Ne,"}")),kt)}("#".concat(i),function(se,Ne,Ce){return` {
1194    font-family: `.concat(Ce.fontFamily,`;
1195    font-size: `).concat(Ce.fontSize,`;
1196    fill: `).concat(Ce.textColor,`
1197  }
1198
1199  /* Classes common for multiple diagrams */
1200
1201  .error-icon {
1202    fill: `).concat(Ce.errorBkgColor,`;
1203  }
1204  .error-text {
1205    fill: `).concat(Ce.errorTextColor,`;
1206    stroke: `).concat(Ce.errorTextColor,`;
1207  }
1208
1209  .edge-thickness-normal {
1210    stroke-width: 2px;
1211  }
1212  .edge-thickness-thick {
1213    stroke-width: 3.5px
1214  }
1215  .edge-pattern-solid {
1216    stroke-dasharray: 0;
1217  }
1218
1219  .edge-pattern-dashed{
1220    stroke-dasharray: 3;
1221  }
1222  .edge-pattern-dotted {
1223    stroke-dasharray: 2;
1224  }
1225
1226  .marker {
1227    fill: `).concat(Ce.lineColor,`;
1228    stroke: `).concat(Ce.lineColor,`;
1229  }
1230  .marker.cross {
1231    stroke: `).concat(Ce.lineColor,`;
1232  }
1233
1234  svg {
1235    font-family: `).concat(Ce.fontFamily,`;
1236    font-size: `).concat(Ce.fontSize,`;
1237  }
1238
1239  `).concat(Wl[se](Ce),`
1240
1241  `).concat(Ne,`
1242`)}(Lt,Ft,k.themeVariables)),ve=document.createElement("style");ve.innerHTML="#".concat(i," ")+ue,Nt.insertBefore(ve,Ot);try{S.renderer.draw(g,i,oe,S)}catch(se){throw vu.draw(i,oe),se}B.select('[id="'.concat(i,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var Rt=B.select("#d"+i).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",k.arrowMarkerAbsolute),k.arrowMarkerAbsolute&&k.arrowMarkerAbsolute!=="false"||k.arrowMarkerAbsolute==="sandbox"||(Rt=Rt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),Rt=(Rt=Vs(Rt)).replace(/<br>/g,"<br/>"),k.securityLevel==="sandbox"){var le=B.select("#d"+i+" svg").node(),Wt="100%";le&&(Wt=le.viewBox.baseVal.height+"px"),Rt='<iframe style="width:'.concat("100%",";height:").concat(Wt,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+Rt+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
1243  The “iframe” tag is not supported by your browser.
1244</iframe>`)}else k.securityLevel!=="loose"&&(Rt=Ur().sanitize(Rt,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));
1244if(l!==void 0)switch(Lt){case"flowchart":case"flowchart-v2":l(Rt,ya.bindFunctions);break;case"gantt":l(Rt,Ru.bindFunctions);break;case"class":case"classDiagram":l(Rt,aa.bindFunctions);break;default:l(Rt)}else y.debug("CB = undefined!");Is.forEach(function(se){se()}),Is=[];var ie=k.securityLevel==="sandbox"?"#i"+i:"#d"+i,ce=(0,w.select)(ie).node();if(ce!==null&&typeof ce.remove=="function"&&(0,w.select)(ie).node().remove(),N)throw N;return Rt},parse:function(i,n){Pr||(Yl(),Pr=!0);var l=!1;try{var p=n||new Ul(i);return p.db.clear(),p.parse(i)}catch(g){if(l=!0,!ps.parseError)throw g;g.str!=null?ps.parseError(g.str,g.hash):ps.parseError(g)}return!l},parseDirective:function(i,n,l,p){try{if(n!==void 0)switch(n=n.trim(),l){case"open_directive":ki={};break;case"type_directive":ki.type=n.toLowerCase();break;case"arg_directive":ki.args=JSON.parse(n);break;case"close_directive":(function(g,T,k){switch(y.debug("Directive type=".concat(T.type," with args:"),T.args),T.type){case"init":case"initialize":["config"].forEach(function(S){T.args[S]!==void 0&&(k==="flowchart-v2"&&(k="flowchart"),T.args[k]=T.args[S],delete T.args[S])}),y.debug("sanitize in handleDirective",T.args),di(T.args),y.debug("sanitize in handleDirective (done)",T.args),Nr(T.args);break;case"wrap":case"nowrap":g&&g.setWrap&&g.setWrap(T.type==="wrap");break;case"themeCss":y.warn("themeCss encountered");break;default:y.warn("Unhandled directive: source: '%%{".concat(T.type,": ").concat(JSON.stringify(T.args?T.args:{}),"}%%"),T)}})(i,ki,p),ki=null}}catch(g){y.error("Error while rendering sequenceDiagram directive: ".concat(n," jison context: ").concat(l)),y.error(g.message)}},initialize:function(i){var n;i!=null&&i.fontFamily&&((n=i.themeVariables)!==null&&n!==void 0&&n.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),function(p){Sn=te({},p)}(i),i!=null&&i.theme&&In[i.theme]?i.themeVariables=In[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=In.default.getThemeVariables(i.themeVariables));var l=tr(i)==="object"?function(p){return Nn=te({},oi),Nn=te(Nn,p),p.theme&&In[p.theme]&&(Nn.themeVariables=In[p.theme].getThemeVariables(p.themeVariables)),Cr=yr(Nn,_r),Nn}(i):qr();Lr(l),E(l.logLevel),Pr||(Yl(),Pr=!0)},getConfig:Dt,setConfig:function(i){return te(Cr,i),Dt()},getSiteConfig:qr,updateSiteConfig:function(i){return Nn=te(Nn,i),yr(Nn,_r),Nn},reset:function(){Gn()},globalReset:function(){Gn(),Lr(Dt())},defaultConfig:oi});E(Dt().logLevel),Gn(Dt());const Bn=$n;var fs=function(){var i,n,l=Bn.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(vn.sequenceConfig=arguments[0]),i=arguments[1]):i=arguments[0],typeof arguments[arguments.length-1]=="function"?(n=arguments[arguments.length-1],y.debug("Callback function found")):l.mermaid!==void 0&&(typeof l.mermaid.callback=="function"?(n=l.mermaid.callback,y.debug("Callback function found")):y.debug("No Callback function found")),i=i===void 0?document.querySelectorAll(".mermaid"):typeof i=="string"?document.querySelectorAll(i):i instanceof window.Node?[i]:i,y.debug("Start On Load before: "+vn.startOnLoad),vn.startOnLoad!==void 0&&(y.debug("Start On Load inner: "+vn.startOnLoad),Bn.updateSiteConfig({startOnLoad:vn.startOnLoad})),vn.ganttConfig!==void 0&&Bn.updateSiteConfig({gantt:vn.ganttConfig});for(var p,g=new qn.initIdGenerator(l.deterministicIds,l.deterministicIDSeed),T=[],k=function(N){y.info("Rendering diagram: "+i[N].id,N);var B=i[N];if(B.getAttribute("data-processed"))return"continue";B.setAttribute("data-processed",!0);var q="mermaid-".concat(g.next());p=B.innerHTML,p=qn.entityDecode(p).trim().replace(/<br\s*\/?>/gi,"<br/>");var V=qn.detectInit(p);V&&y.debug("Detected early reinit: ",V);try{Bn.render(q,p,function(et,J){B.innerHTML=et,n!==void 0&&n(q),J&&J(B)},B)}catch(et){y.warn("Catching Error (bootstrap)",et),typeof vn.parseError=="function"&&vn.parseError({error:et,str:et.str,hash:et.hash,message:et.str}),T.push({error:et,str:et.str,hash:et.hash,message:et.str})}},S=0;S<i.length;S++)k(S);if(T.length>0)throw T[0]},qi=function(){vn.startOnLoad?Bn.getConfig().startOnLoad&&vn.init():vn.startOnLoad===void 0&&(y.debug("In start, no config"),Bn.getConfig().startOnLoad&&vn.init())};typeof document<"u"&&window.addEventListener("load",function(){qi()},!1);var vn={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:Bn,parse:Bn!=null?Bn.parse:null,render:Bn!=null?Bn.render:null,init:function(){try{fs.apply(void 0,arguments)}catch(i){y.warn("Syntax Error rendering"),y.warn(i.str)}},initThrowsErrors:fs,initialize:function(i){i.mermaid!==void 0&&(i.mermaid.startOnLoad!==void 0&&(vn.startOnLoad=i.mermaid.startOnLoad),i.mermaid.htmlLabels!==void 0&&(vn.htmlLabels=i.mermaid.htmlLabels!=="false"&&i.mermaid.htmlLabels!==!1)),Bn.initialize(i)},contentLoaded:qi,setParseErrorHandler:function(i){vn.parseError=i}};const ps=vn},4949:(M,R,f)=>{M.exports={graphlib:f(6614),dagre:f(6478),intersect:f(8114),render:f(5787),util:f(8355),version:f(5689)}},9144:(M,R,f)=>{var b=f(8355);function u(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])}M.exports={default:u,normal:u,vee:function(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])},undirected:function(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])}}},5632:(M,R,f)=>{var b=f(8355),u=f(4322),_=f(1322);M.exports=function(y,E){var A,w=E.nodes().filter(function(O){return b.isSubgraph(E,O)}),F=y.selectAll("g.cluster").data(w,function(O){return O});return F.selectAll("*").remove(),F.enter().append("g").attr("class","cluster").attr("id",function(O){return E.node(O).id}).style("opacity",0),F=y.selectAll("g.cluster"),b.applyTransition(F,E).style("opacity",1),F.each(function(O){var j=E.node(O),H=u.select(this);u.select(this).append("rect");var tt=H.append("g").attr("class","label");_(tt,j,j.clusterLabelPos)}),F.selectAll("rect").each(function(O){var j=E.node(O),H=u.select(this);b.applyStyle(H,j.style)}),A=F.exit?F.exit():F.selectAll(null),b.applyTransition(A,E).style("opacity",0).remove(),F}},6315:(M,R,f)=>{var b=f(1034),u=f(1322),_=f(8355),y=f(4322);M.exports=function(E,A){var w,F=E.selectAll("g.edgeLabel").data(A.edges(),function(O){return _.edgeToId(O)}).classed("update",!0);return F.exit().remove(),F.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(F=E.selectAll("g.edgeLabel")).each(function(O){var j=y.select(this);j.select(".label").remove();var H=A.edge(O),tt=u(j,A.edge(O),0,0).classed("label",!0),Q=tt.node().getBBox();H.labelId&&tt.attr("id",H.labelId),b.has(H,"width")||(H.width=Q.width),b.has(H,"he
1244ight")||(H.height=Q.height)}),w=F.exit?F.exit():F.selectAll(null),_.applyTransition(w,A).style("opacity",0).remove(),F}},940:(M,R,f)=>{var b=f(1034),u=f(3042),_=f(8355),y=f(4322);function E(A,w){var F=(y.line||y.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(F.curve||F.interpolate)(A.curve),F(w)}M.exports=function(A,w,F){var O=A.selectAll("g.edgePath").data(w.edges(),function(tt){return _.edgeToId(tt)}).classed("update",!0),j=function(tt,Q){var ht=tt.enter().append("g").attr("class","edgePath").style("opacity",0);return ht.append("path").attr("class","path").attr("d",function(K){var xt=Q.edge(K),at=Q.node(K.v).elem;return E(xt,b.range(xt.points.length).map(function(){return vt=(ut=at).getBBox(),{x:(Zt=ut.ownerSVGElement.getScreenCTM().inverse().multiply(ut.getScreenCTM()).translate(vt.width/2,vt.height/2)).e,y:Zt.f};var ut,vt,Zt}))}),ht.append("defs"),ht}(O,w);(function(tt,Q){var ht=tt.exit();_.applyTransition(ht,Q).style("opacity",0).remove()})(O,w);var H=O.merge!==void 0?O.merge(j):O;return _.applyTransition(H,w).style("opacity",1),H.each(function(tt){var Q=y.select(this),ht=w.edge(tt);ht.elem=this,ht.id&&Q.attr("id",ht.id),_.applyClass(Q,ht.class,(Q.classed("update")?"update ":"")+"edgePath")}),H.selectAll("path.path").each(function(tt){var Q=w.edge(tt);Q.arrowheadId=b.uniqueId("arrowhead");var ht=y.select(this).attr("marker-end",function(){return"url("+(K=location.href,xt=Q.arrowheadId,K.split("#")[0]+"#"+xt+")");var K,xt}).style("fill","none");_.applyTransition(ht,w).attr("d",function(K){return function(xt,at){var ut=xt.edge(at),vt=xt.node(at.v),Zt=xt.node(at.w),Gt=ut.points.slice(1,ut.points.length-1);return Gt.unshift(u(vt,Gt[0])),Gt.push(u(Zt,Gt[Gt.length-1])),E(ut,Gt)}(w,K)}),_.applyStyle(ht,Q.style)}),H.selectAll("defs *").remove(),H.selectAll("defs").each(function(tt){var Q=w.edge(tt);(0,F[Q.arrowhead])(y.select(this),Q.arrowheadId,Q,"arrowhead")}),H}},607:(M,R,f)=>{var b=f(1034),u=f(1322),_=f(8355),y=f(4322);M.exports=function(E,A,w){var F,O=A.nodes().filter(function(H){return!_.isSubgraph(A,H)}),j=E.selectAll("g.node").data(O,function(H){return H}).classed("update",!0);return j.exit().remove(),j.enter().append("g").attr("class","node").style("opacity",0),(j=E.selectAll("g.node")).each(function(H){var tt=A.node(H),Q=y.select(this);_.applyClass(Q,tt.class,(Q.classed("update")?"update ":"")+"node"),Q.select("g.label").remove();var ht=Q.append("g").attr("class","label"),K=u(ht,tt),xt=w[tt.shape],at=b.pick(K.node().getBBox(),"width","height");tt.elem=this,tt.id&&Q.attr("id",tt.id),tt.labelId&&ht.attr("id",tt.labelId),b.has(tt,"width")&&(at.width=tt.width),b.has(tt,"height")&&(at.height=tt.height),at.width+=tt.paddingLeft+tt.paddingRight,at.height+=tt.paddingTop+tt.paddingBottom,ht.attr("transform","translate("+(tt.paddingLeft-tt.paddingRight)/2+","+(tt.paddingTop-tt.paddingBottom)/2+")");var ut=y.select(this);ut.select(".label-container").remove();var vt=xt(ut,at,tt).classed("label-container",!0);_.applyStyle(vt,tt.style);var Zt=vt.node().getBBox();tt.width=Zt.width,tt.height=Zt.height}),F=j.exit?j.exit():j.selectAll(null),_.applyTransition(F,A).style("opacity",0).remove(),j}},4322:(M,R,f)=>{var b;if(!b)try{b=f(7543)}catch{}b||(b=window.d3),M.exports=b},6478:(M,R,f)=>{var b;try{b=f(681)}catch{}b||(b=window.dagre),M.exports=b},6614:(M,R,f)=>{var b;try{b=f(8282)}catch{}b||(b=window.graphlib),M.exports=b},8114:(M,R,f)=>{M.exports={node:f(3042),circle:f(6587),ellipse:f(3260),polygon:f(5337),rect:f(8049)}},6587:(M,R,f)=>{var b=f(3260);M.exports=function(u,_,y){return b(u,_,_,y)}},3260:M=>{M.exports=function(R,f,b,u){var _=R.x,y=R.y,E=_-u.x,A=y-u.y,w=Math.sqrt(f*f*A*A+b*b*E*E),F=Math.abs(f*b*E/w);u.x<_&&(F=-F);var O=Math.abs(f*b*A/w);return u.y<y&&(O=-O),{x:_+F,y:y+O}}},6808:M=>{function R(f,b){return f*b>0}M.exports=function(f,b,u,_){var y,E,A,w,F,O,j,H,tt,Q,ht,K,xt;if(y=b.y-f.y,A=f.x-b.x,F=b.x*f.y-f.x*b.y,tt=y*u.x+A*u.y+F,Q=y*_.x+A*_.y+F,!(tt!==0&&Q!==0&&R(tt,Q)||(E=_.y-u.y,w=u.x-_.x,O=_.x*u.y-u.x*_.y,j=E*f.x+w*f.y+O,H=E*b.x+w*b.y+O,j!==0&&H!==0&&R(j,H)||(ht=y*w-E*A)==0)))return K=Math.abs(ht/2),{x:(xt=A*O-w*F)<0?(xt-K)/ht:(xt+K)/ht,y:(xt=E*F-y*O)<0?(xt-K)/ht:(xt+K)/ht}}},3042:M=>{M.exports=function(R,f){return R.intersect(f)}},5337:(M,R,f)=>{var b=f(6808);M.exports=function(u,_,y){var E=u.x,A=u.y,w=[],F=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;_.forEach(function(xt){F=Math.min(F,xt.x),O=Math.min(O,xt.y)});for(var j=E-u.width/2-F,H=A-u.height/2-O,tt=0;tt<_.length;tt++){var Q=_[tt],ht=_[tt<_.length-1?tt+1:0],K=b(u,y,{x:j+Q.x,y:H+Q.y},{x:j+ht.x,y:H+ht.y});K&&w.push(K)}return w.length?(w.length>1&&w.sort(function(xt,at){var ut=xt.x-y.x,vt=xt.y-y.y,Zt=Math.sqrt(ut*ut+vt*vt),Gt=at.x-y.x,kt=at.y-y.y,It=Math.sqrt(Gt*Gt+kt*kt);return Zt<It?-1:Zt===It?0:1}),w[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",u),u)}},8049:M=>{M.exports=function(R,f){var b,u,_=R.x,y=R.y,E=f.x-_,A=f.y-y,w=R.width/2,F=R.height/2;return Math.abs(A)*w>Math.abs(E)*F?(A<0&&(F=-F),b=A===0?0:F*E/A,u=F):(E<0&&(w=-w),b=w,u=E===0?0:w*A/E),{x:_+b,y:y+u}}},8284:(M,R,f)=>{var b=f(8355);M.exports=function(u,_){var y=u.append("foreignObject").attr("width","100000"),E=y.append("xhtml:div");E.attr("xmlns","http://www.w3.org/1999/xhtml");var A=_.label;switch(typeof A){case"function":E.insert(A);break;case"object":E.insert(function(){return A});break;default:E.html(A)}b.applyStyle(E,_.labelStyle),E.style("display","inline-block"),E.style("white-space","nowrap");var w=E.node().getBoundingClientRect();return y.attr("width",w.width).attr("height",w.height),y}},1322:(M,R,f)=>{var b=f(7318),u=f(8284),_=f(8287);M.exports=function(y,E,A){var w=E.label,F=y.append("g");
1244E.labelType==="svg"?_(F,E):typeof w!="string"||E.labelType==="html"?u(F,E):b(F,E);var O,j=F.node().getBBox();switch(A){case"top":O=-E.height/2;break;case"bottom":O=E.height/2-j.height;break;default:O=-j.height/2}return F.attr("transform","translate("+-j.width/2+","+O+")"),F}},8287:(M,R,f)=>{var b=f(8355);M.exports=function(u,_){var y=u;return y.node().appendChild(_.label),b.applyStyle(y,_.labelStyle),y}},7318:(M,R,f)=>{var b=f(8355);M.exports=function(u,_){for(var y=u.append("text"),E=function(w){for(var F,O="",j=!1,H=0;H<w.length;++H)F=w[H],j?(O+=F==="n"?`
1245`:F,j=!1):F==="\\"?j=!0:O+=F;return O}(_.label).split(`
1246`),A=0;A<E.length;A++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(E[A]);return b.applyStyle(y,_.labelStyle),y}},1034:(M,R,f)=>{var b;try{b={defaults:f(1747),each:f(6073),isFunction:f(3560),isPlainObject:f(8630),pick:f(9722),has:f(8721),range:f(6026),uniqueId:f(3955)}}catch{}b||(b=window._),M.exports=b},6381:(M,R,f)=>{var b=f(8355),u=f(4322);M.exports=function(_,y){var E=_.filter(function(){return!u.select(this).classed("update")});function A(w){var F=y.node(w);return"translate("+F.x+","+F.y+")"}E.attr("transform",A),b.applyTransition(_,y).style("opacity",1).attr("transform",A),b.applyTransition(E.selectAll("rect"),y).attr("width",function(w){return y.node(w).width}).attr("height",function(w){return y.node(w).height}).attr("x",function(w){return-y.node(w).width/2}).attr("y",function(w){return-y.node(w).height/2})}},4577:(M,R,f)=>{var b=f(8355),u=f(4322),_=f(1034);M.exports=function(y,E){function A(w){var F=E.edge(w);return _.has(F,"x")?"translate("+F.x+","+F.y+")":""}y.filter(function(){return!u.select(this).classed("update")}).attr("transform",A),b.applyTransition(y,E).style("opacity",1).attr("transform",A)}},4849:(M,R,f)=>{var b=f(8355),u=f(4322);M.exports=function(_,y){function E(A){var w=y.node(A);return"translate("+w.x+","+w.y+")"}_.filter(function(){return!u.select(this).classed("update")}).attr("transform",E),b.applyTransition(_,y).style("opacity",1).attr("transform",E)}},5787:(M,R,f)=>{var b=f(1034),u=f(4322),_=f(6478).layout;M.exports=function(){var w=f(607),F=f(5632),O=f(6315),j=f(940),H=f(4849),tt=f(4577),Q=f(6381),ht=f(4418),K=f(9144),xt=function(at,ut){(function(mt){mt.nodes().forEach(function(X){var ot=mt.node(X);b.has(ot,"label")||mt.children(X).length||(ot.label=X),b.has(ot,"paddingX")&&b.defaults(ot,{paddingLeft:ot.paddingX,paddingRight:ot.paddingX}),b.has(ot,"paddingY")&&b.defaults(ot,{paddingTop:ot.paddingY,paddingBottom:ot.paddingY}),b.has(ot,"padding")&&b.defaults(ot,{paddingLeft:ot.padding,paddingRight:ot.padding,paddingTop:ot.padding,paddingBottom:ot.padding}),b.defaults(ot,y),b.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(z){ot[z]=Number(ot[z])}),b.has(ot,"width")&&(ot._prevWidth=ot.width),b.has(ot,"height")&&(ot._prevHeight=ot.height)}
1246),mt.edges().forEach(function(X){var ot=mt.edge(X);b.has(ot,"label")||(ot.label=""),b.defaults(ot,E)})})(ut);var vt=A(at,"output"),Zt=A(vt,"clusters"),Gt=A(vt,"edgePaths"),kt=O(A(vt,"edgeLabels"),ut),It=w(A(vt,"nodes"),ut,ht);_(ut),H(It,ut),tt(kt,ut),j(Gt,ut,K);var wt=F(Zt,ut);Q(wt,ut),function(mt){b.each(mt.nodes(),function(X){var ot=mt.node(X);b.has(ot,"_prevWidth")?ot.width=ot._prevWidth:delete ot.width,b.has(ot,"_prevHeight")?ot.height=ot._prevHeight:delete ot.height,delete ot._prevWidth,delete ot._prevHeight})}(ut)};return xt.createNodes=function(at){return arguments.length?(w=at,xt):w},xt.createClusters=function(at){return arguments.length?(F=at,xt):F},xt.createEdgeLabels=function(at){return arguments.length?(O=at,xt):O},xt.createEdgePaths=function(at){return arguments.length?(j=at,xt):j},xt.shapes=function(at){return arguments.length?(ht=at,xt):ht},xt.arrows=function(at){return arguments.length?(K=at,xt):K},xt};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},E={arrowhead:"normal",curve:u.curveLinear};function A(w,F){var O=w.select("g."+F);return O.empty()&&(O=w.append("g").attr("class",F)),O}},4418:(M,R,f)=>{var b=f(8049),u=f(3260),_=f(6587),y=f(5337);M.exports={rect:function(E,A,w){var F=E.insert("rect",":first-child").attr("rx",w.rx).attr("ry",w.ry).attr("x",-A.width/2).attr("y",-A.height/2).attr("width",A.width).attr("height",A.height);return w.intersect=function(O){return b(w,O)},F},ellipse:function(E,A,w){var F=A.width/2,O=A.height/2,j=E.insert("ellipse",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("rx",F).attr("ry",O);return w.intersect=function(H){return u(w,F,O,H)},j},circle:function(E,A,w){var F=Math.max(A.width,A.height)/2,O=E.insert("circle",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("r",F);return w.intersect=function(j){return _(w,F,j)},O},diamond:function(E,A,w){var F=A.width*Math.SQRT2/2,O=A.height*Math.SQRT2/2,j=[{x:0,y:-O},{x:-F,y:0},{x:0,y:O},{x:F,y:0}],H=E.insert("polygon",":first-child").attr("points",j.map(function(tt){return tt.x+","+tt.y}).join(" "));return w.intersect=function(tt){return y(w,j,tt)},H}}},8355:(M,R,f)=>{var b=f(1034);M.exports={isSubgraph:function(y,E){return!!y.children(E).length},edgeToId:function(y){return _(y.v)+":"+_(y.w)+":"+_(y.name)},applyStyle:function(y,E){E&&y.attr("style",E)},applyClass:function(y,E,A){E&&y.attr("class",E).attr("class",A+" "+y.attr("class"))},applyTransition:function(y,E){var A=E.graph();if(b.isPlainObject(A)){var w=A.transition;if(b.isFunction(w))return w(y)}return y}};var u=/:/g;function _(y){return y?String(y).replace(u,"\\:"):""}},5689:M=>{M.exports="0.6.4"},681:(M,R,f)=>{M.exports={graphlib:f(574),layout:f(8123),debug:f(7570),util:{time:f(1138).time,notime:f(1138).notime},version:f(8177)}},2188:(M,R,f)=>{var b=f(8436),u=f(4079);M.exports={run:function(_){var y=_.graph().acyclicer==="greedy"?u(_,function(E){return function(A){return E.edge(A).weight}}(_)):function(E){var A=[],w={},F={};return b.forEach(E.nodes(),function O(j){b.has(F,j)||(F[j]=!0,w[j]=!0,b.forEach(E.outEdges(j),function(H){b.has(w,H.w)?A.push(H):O(H.w)}),delete w[j])}),A}(_);b.forEach(y,function(E){var A=_.edge(E);_.removeEdge(E),A.forwardName=E.name,A.reversed=!0,_.setEdge(E.w,E.v,A,b.uniqueId("rev"))})},undo:function(_){b.forEach(_.edges(),function(y){var E=_.edge(y);if(E.reversed){_.removeEdge(y);var A=E.forwardName;delete E.reversed,delete E.forwardName,_.setEdge(y.w,y.v,E,A)}})}}},1133:(M,R,f)=>{var b=f(8436),u=f(1138);function _(y,E,A,w,F,O){var j={width:0,height:0,rank:O,borderType:E},H=F[E][O-1],tt=u.addDummyNode(y,"border",j,A);F[E][O]=tt,y.setParent(tt,w),H&&y.setEdge(H,tt,{weight:1})}M.exports=function(y){b.forEach(y.children(),function E(A){var w=y.children(A),F=y.node(A);if(w.length&&b.forEach(w,E),b.has(F,"minRank")){F.borderLeft=[],F.borderRight=[];for(var O=F.minRank,j=F.maxRank+1;O<j;++O)_(y,"borderLeft","_bl",A,F,O),_(y,"borderRight","_br",A,F,O)}})}},3258:(M,R,f)=>{var b=f(8436);function u(A){b.forEach(A.nodes(),function(w){_(A.node(w))}),b.forEach(A.edges(),function(w){_(A.edge(w))})}function _(A){var w=A.width;A.width=A.height,A.height=w}function y(A){A.y=-A.y}function E(A){var w=A.x;A.x=A.y,A.y=w}M.exports={adjust:function(A){var w=A.graph().rankdir.toLowerCase();w!=="lr"&&w!=="rl"||u(A)},undo:function(A){var w=A.graph().rankdir.toLowerCase();w!=="bt"&&w!=="rl"||function(F){b.forEach(F.nodes(),function(O){y(F.node(O))}),b.forEach(F.edges(),function(O){var j=F.edge(O);b.forEach(j.points,y),b.has(j,"y")&&y(j)})}(A),w!=="lr"&&w!=="rl"||(function(F){b.forEach(F.nodes(),function(O){E(F.node(O))}),b.forEach(F.edges(),function(O){var j=F.edge(O);b.forEach(j.points,E),b.has(j,"x")&&E(j)})}(A),u(A))}}},7822:M=>{function R(){var u={};u._next=u._prev=u,this._sentinel=u}function f(u){u._prev._next=u._next,u._next._prev=u._prev,delete u._next,delete u._prev}function b(u,_){if(u!=="_next"&&u!=="_prev")return _}M.exports=R,R.prototype.dequeue=function(){var u=this._sentinel,_=u._prev;if(_!==u)return f(_),_},R.prototype.enqueue=function(u){var _=this._sentinel;u._prev&&u._next&&f(u),u._next=_._next,_._next._prev=u,_._next=u,u._prev=_},R.prototype.toString=function(){for(var u=[],_=this._sentinel,y=_._prev;y!==_;)u.push(JSON.stringify(y,b)),y=y._prev;return"["+u.join(", ")+"]"}},7570:(M,R,f)=>{var b=f(8436),u=f(1138),_=f(574).Graph;M.exports={debugOrdering:function(y){var E=u.buildLayerMatrix(y),A=new _({compound:!0,multigraph:!0}).setGraph({});return b.forEach(y.nodes(),function(w){A.setNode(w,{label:w}),A.setParent(w,"layer"+y.node(w).rank)}),b.forEach(y.edges(),function(w){A.setEdge(w.v,w.w,{},w.name)}),b.forEach(E,function(w,F){var O="layer"+F;A.setNode(O,{rank:"same"}
1246),b.reduce(w,function(j,H){return A.setEdge(j,H,{style:"invis"}),H})}),A}}},574:(M,R,f)=>{var b;try{b=f(8282)}catch{}b||(b=window.graphlib),M.exports=b},4079:(M,R,f)=>{var b=f(8436),u=f(574).Graph,_=f(7822);M.exports=function(w,F){if(w.nodeCount()<=1)return[];var O=function(H,tt){var Q=new u,ht=0,K=0;b.forEach(H.nodes(),function(ut){Q.setNode(ut,{v:ut,in:0,out:0})}),b.forEach(H.edges(),function(ut){var vt=Q.edge(ut.v,ut.w)||0,Zt=tt(ut),Gt=vt+Zt;Q.setEdge(ut.v,ut.w,Gt),K=Math.max(K,Q.node(ut.v).out+=Zt),ht=Math.max(ht,Q.node(ut.w).in+=Zt)});var xt=b.range(K+ht+3).map(function(){return new _}),at=ht+1;return b.forEach(Q.nodes(),function(ut){A(xt,at,Q.node(ut))}),{graph:Q,buckets:xt,zeroIdx:at}}(w,F||y),j=function(H,tt,Q){for(var ht,K=[],xt=tt[tt.length-1],at=tt[0];H.nodeCount();){for(;ht=at.dequeue();)E(H,tt,Q,ht);for(;ht=xt.dequeue();)E(H,tt,Q,ht);if(H.nodeCount()){for(var ut=tt.length-2;ut>0;--ut)if(ht=tt[ut].dequeue()){K=K.concat(E(H,tt,Q,ht,!0));break}}}return K}(O.graph,O.buckets,O.zeroIdx);return b.flatten(b.map(j,function(H){return w.outEdges(H.v,H.w)}),!0)};var y=b.constant(1);function E(w,F,O,j,H){var tt=H?[]:void 0;return b.forEach(w.inEdges(j.v),function(Q){var ht=w.edge(Q),K=w.node(Q.v);H&&tt.push({v:Q.v,w:Q.w}),K.out-=ht,A(F,O,K)}),b.forEach(w.outEdges(j.v),function(Q){var ht=w.edge(Q),K=Q.w,xt=w.node(K);xt.in-=ht,A(F,O,xt)}),w.removeNode(j.v),tt}function A(w,F,O){O.out?O.in?w[O.out-O.in+F].enqueue(O):w[w.length-1].enqueue(O):w[0].enqueue(O)}},8123:(M,R,f)=>{var b=f(8436),u=f(2188),_=f(5995),y=f(8093),E=f(1138).normalizeRanks,A=f(4219),w=f(1138).removeEmptyRanks,F=f(2981),O=f(1133),j=f(3258),H=f(3408),tt=f(7873),Q=f(1138),ht=f(574).Graph;M.exports=function(mt,X){var ot=X&&X.debugTiming?Q.time:Q.notime;ot("layout",function(){var z=ot("  buildLayoutGraph",function(){return function(yt){var Y=new ht({multigraph:!0,compound:!0}),bt=wt(yt.graph());return Y.setGraph(b.merge({},xt,It(bt,K),b.pick(bt,at))),b.forEach(yt.nodes(),function(Ct){var $t=wt(yt.node(Ct));Y.setNode(Ct,b.defaults(It($t,ut),vt)),Y.setParent(Ct,yt.parent(Ct))}),b.forEach(yt.edges(),function(Ct){var $t=wt(yt.edge(Ct));Y.setEdge(Ct,b.merge({},Gt,It($t,Zt),b.pick($t,kt)))}),Y}(mt)});ot("  runLayout",function(){(function(yt,Y){Y("    makeSpaceForEdgeLabels",function(){(function(bt){var Ct=bt.graph();Ct.ranksep/=2,b.forEach(bt.edges(),function($t){var be=bt.edge($t);be.minlen*=2,be.labelpos.toLowerCase()!=="c"&&(Ct.rankdir==="TB"||Ct.rankdir==="BT"?be.width+=be.labeloffset:be.height+=be.labeloffset)})})(yt)}),Y("    removeSelfEdges",function(){(function(bt){b.forEach(bt.edges(),function(Ct){if(Ct.v===Ct.w){var $t=bt.node(Ct.v);$t.selfEdges||($t.selfEdges=[]),$t.selfEdges.push({e:Ct,label:bt.edge(Ct)}),bt.removeEdge(Ct)}})})(yt)}),Y("    acyclic",function(){u.run(yt)}),Y("    nestingGraph.run",function(){F.run(yt)}),Y("    rank",function(){y(Q.asNonCompoundGraph(yt))}),Y("    injectEdgeLabelProxies",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);if($t.width&&$t.height){var be=bt.node(Ct.v),We={rank:(bt.node(Ct.w).rank-be.rank)/2+be.rank,e:Ct};Q.addDummyNode(bt,"edge-proxy",We,"_ep")}})})(yt)}),Y("    removeEmptyRanks",function(){w(yt)}),Y("    nestingGraph.cleanup",function(){F.cleanup(yt)}),Y("    normalizeRanks",function(){E(yt)}),Y("    assignRankMinMax",function(){(function(bt){var Ct=0;b.forEach(bt.nodes(),function($t){var be=bt.node($t);be.borderTop&&(be.minRank=bt.node(be.borderTop).rank,be.maxRank=bt.node(be.borderBottom).rank,Ct=b.max(Ct,be.maxRank))}),bt.graph().maxRank=Ct})(yt)}),Y("    removeEdgeLabelProxies",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){var $t=bt.node(Ct);$t.dummy==="edge-proxy"&&(bt.edge($t.e).labelRank=$t.rank,bt.removeNode(Ct))})})(yt)}),Y("    normalize.run",function(){_.run(yt)}),Y("    parentDummyChains",function(){A(yt)}),Y("    addBorderSegments",function(){O(yt)}),Y("    order",function(){H(yt)}),Y("    insertSelfEdges",function(){(function(bt){var Ct=Q.buildLayerMatrix(bt);b.forEach(Ct,function($t){var be=0;b.forEach($t,function(We,xe){var pe=bt.node(We);pe.order=xe+be,b.forEach(pe.selfEdges,function(_e){Q.addDummyNode(bt,"selfedge",{width:_e.label.width,height:_e.label.height,rank:pe.rank,order:xe+ ++be,e:_e.e,label:_e.label},"_se")}),delete pe.selfEdges})})})(yt)}),Y("    adjustCoordinateSystem",function(){j.adjust(yt)}),Y("    position",function(){tt(yt)}),Y("    positionSelfEdges",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){var $t=bt.node(Ct);if($t.dummy==="selfedge"){var be=bt.node($t.e.v),We=be.x+be.width/2,xe=be.y,pe=$t.x-We,_e=be.height/2;bt.setEdge($t.e,$t.label),bt.removeNode(Ct),$t.label.points=[{x:We+2*pe/3,y:xe-_e},{x:We+5*pe/6,y:xe-_e},{x:We+pe,y:xe},{x:We+5*pe/6,y:xe+_e},{x:We+2*pe/3,y:xe+_e}],$t.label.x=$t.x,$t.label.y=$t.y}})})(yt)}),Y("    removeBorderNodes",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){if(bt.children(Ct).length){var $t=bt.node(Ct),be=bt.node($t.borderTop),We=bt.node($t.borderBottom),xe=bt.node(b.last($t.borderLeft)),pe=bt.node(b.last($t.borderRight));$t.width=Math.abs(pe.x-xe.x),$t.height=Math.abs(We.y-be.y),$t.x=xe.x+$t.width/2,$t.y=be.y+$t.height/2}}),b.forEach(bt.nodes(),function(Ct){bt.node(Ct).dummy==="border"&&bt.removeNode(Ct)})})(yt)}),Y("    normalize.undo",function(){_.undo(yt)}),Y("    fixupEdgeLabelCoords",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);if(b.has($t,"x"))switch($t.labelpos!=="l"&&$t.labelpos!=="r"||($t.width-=$t.labeloffset),$t.labelpos){case"l":$t.x-=$t.width/2+$t.labeloffset;break;case"r":$t.x+=$t.width/2+$t.labeloffset}})})(yt)}),Y("    undoCoordinateSystem",function(){j.undo(yt)}),Y("    translateGraph",function(){(function(bt){var Ct=Number.POSITIVE_INFINITY,$t=0,be=Number.POSITIVE_INFINITY,We=0,xe=bt.graph(),pe=xe.marginx||0,_e=xe.marginy||0;function Ae(De){var me=De.x,wn=De.y,fe=De.width,Qe=De.height;Ct=Math.min(Ct,me-fe/2),$t=Math.max($t,me+fe/2),be=Math.min(be,wn-Qe/2),We=Math.max(We,wn+Qe/2)}b.forEach(bt.nodes(),function(De){Ae(bt.node(De))}),b.forEach(bt.edges(),function(De){var me=bt.edge(De);b.has(me,"x")&&Ae(me)}),Ct-=pe,be-=_e,b.forEach(bt.nodes(),function(De){var me=bt.node(De);me.x-=Ct,me.y-=be}),b.forEach(bt.edges(),function(De){var me=bt.edge(De);b.forEach(me.points,function(wn){wn.x-=Ct,wn.y-=be}),b.has(me,"x")&&(me.x-=Ct),b.has(me,"y")&&(me.y-=be)}),xe.width=$t-Ct+pe,xe.height=We-be+_e})(yt)}),Y("    assignNodeIntersects",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t,be,We=bt.edge(Ct),xe=bt.node(Ct.v),pe=bt.node(Ct.w);We.points?($t=We.points[0],be=We.points[We.points.length-1]):(We.points=[],$t=pe,be=xe),We.points.unshift(Q.intersectRect(xe,$t)),We.points.push(Q.intersectRect(pe,be))})})(yt)}),Y("    reversePoints",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);$t.reversed&&$t.points.reverse()})})(yt)}
1246),Y("    acyclic.undo",function(){u.undo(yt)})})(z,ot)}),ot("  updateInputGraph",function(){(function(yt,Y){b.forEach(yt.nodes(),function(bt){var Ct=yt.node(bt),$t=Y.node(bt);Ct&&(Ct.x=$t.x,Ct.y=$t.y,Y.children(bt).length&&(Ct.width=$t.width,Ct.height=$t.height))}),b.forEach(yt.edges(),function(bt){var Ct=yt.edge(bt),$t=Y.edge(bt);Ct.points=$t.points,b.has($t,"x")&&(Ct.x=$t.x,Ct.y=$t.y)}),yt.graph().width=Y.graph().width,yt.graph().height=Y.graph().height})(mt,z)})})};var K=["nodesep","edgesep","ranksep","marginx","marginy"],xt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],ut=["width","height"],vt={width:0,height:0},Zt=["minlen","weight","width","height","labeloffset"],Gt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},kt=["labelpos"];function It(mt,X){return b.mapValues(b.pick(mt,X),Number)}function wt(mt){var X={};return b.forEach(mt,function(ot,z){X[z.toLowerCase()]=ot}),X}},8436:(M,R,f)=>{var b;try{b={cloneDeep:f(361),constant:f(5703),defaults:f(1747),each:f(6073),filter:f(3105),find:f(3311),flatten:f(5564),forEach:f(4486),forIn:f(2620),has:f(8721),isUndefined:f(2353),last:f(928),map:f(5161),mapValues:f(6604),max:f(6162),merge:f(3857),min:f(3632),minBy:f(2762),now:f(7771),pick:f(9722),range:f(6026),reduce:f(4061),sortBy:f(9734),uniqueId:f(3955),values:f(2628),zipObject:f(7287)}}catch{}b||(b=window._),M.exports=b},2981:(M,R,f)=>{var b=f(8436),u=f(1138);function _(y,E,A,w,F,O,j){var H=y.children(j);if(H.length){var tt=u.addBorderNode(y,"_bt"),Q=u.addBorderNode(y,"_bb"),ht=y.node(j);y.setParent(tt,j),ht.borderTop=tt,y.setParent(Q,j),ht.borderBottom=Q,b.forEach(H,function(K){_(y,E,A,w,F,O,K);var xt=y.node(K),at=xt.borderTop?xt.borderTop:K,ut=xt.borderBottom?xt.borderBottom:K,vt=xt.borderTop?w:2*w,Zt=at!==ut?1:F-O[j]+1;y.setEdge(tt,at,{weight:vt,minlen:Zt,nestingEdge:!0}),y.setEdge(ut,Q,{weight:vt,minlen:Zt,nestingEdge:!0})}),y.parent(j)||y.setEdge(E,tt,{weight:0,minlen:F+O[j]})}else j!==E&&y.setEdge(E,j,{weight:0,minlen:A})}M.exports={run:function(y){var E=u.addDummyNode(y,"root",{},"_root"),A=function(j){var H={};function tt(Q,ht){var K=j.children(Q);K&&K.length&&b.forEach(K,function(xt){tt(xt,ht+1)}),H[Q]=ht}return b.forEach(j.children(),function(Q){tt(Q,1)}),H}(y),w=b.max(b.values(A))-1,F=2*w+1;y.graph().nestingRoot=E,b.forEach(y.edges(),function(j){y.edge(j).minlen*=F});var O=function(j){return b.reduce(j.edges(),function(H,tt){return H+j.edge(tt).weight},0)}(y)+1;b.forEach(y.children(),function(j){_(y,E,F,O,w,A,j)}),y.graph().nodeRankFactor=F},cleanup:function(y){var E=y.graph();y.removeNode(E.nestingRoot),delete E.nestingRoot,b.forEach(y.edges(),function(A){y.edge(A).nestingEdge&&y.removeEdge(A)})}}},5995:(M,R,f)=>{var b=f(8436),u=f(1138);M.exports={run:function(_){_.graph().dummyChains=[],b.forEach(_.edges(),function(y){(function(E,A){var w,F,O,j=A.v,H=E.node(j).rank,tt=A.w,Q=E.node(tt).rank,ht=A.name,K=E.edge(A),xt=K.labelRank;if(Q!==H+1){for(E.removeEdge(A),O=0,++H;H<Q;++O,++H)K.points=[],F={width:0,height:0,edgeLabel:K,edgeObj:A,rank:H},w=u.addDummyNode(E,"edge",F,"_d"),H===xt&&(F.width=K.width,F.height=K.height,F.dummy="edge-label",F.labelpos=K.labelpos),E.setEdge(j,w,{weight:K.weight},ht),O===0&&E.graph().dummyChains.push(w),j=w;E.setEdge(j,tt,{weight:K.weight},ht)}})(_,y)})},undo:function(_){b.forEach(_.graph().dummyChains,function(y){var E,A=_.node(y),w=A.edgeLabel;for(_.setEdge(A.edgeObj,w);A.dummy;)E=_.successors(y)[0],_.removeNode(y),w.points.push({x:A.x,y:A.y}),A.dummy==="edge-label"&&(w.x=A.x,w.y=A.y,w.width=A.width,w.height=A.height),y=E,A=_.node(y)})}}},5093:(M,R,f)=>{var b=f(8436);M.exports=function(u,_,y){var E,A={};b.forEach(y,function(w){for(var F,O,j=u.parent(w);j;){if((F=u.parent(j))?(O=A[F],A[F]=j):(O=E,E=j),O&&O!==j)return void _.setEdge(O,j);j=F}})}},5439:(M,R,f)=>{var b=f(8436);M.exports=function(u,_){return b.map(_,function(y){var E=u.inEdges(y);if(E.length){var A=b.reduce(E,function(w,F){var O=u.edge(F),j=u.node(F.v);return{sum:w.sum+O.weight*j.order,weight:w.weight+O.weight}},{sum:0,weight:0});return{v:y,barycenter:A.sum/A.weight,weight:A.weight}}return{v:y}})}},3128:(M,R,f)=>{var b=f(8436),u=f(574).Graph;M.exports=function(_,y,E){var A=function(F){for(var O;F.hasNode(O=b.uniqueId("_root")););return O}(_),w=new u({compound:!0}).setGraph({root:A}
1246).setDefaultNodeLabel(function(F){return _.node(F)});return b.forEach(_.nodes(),function(F){var O=_.node(F),j=_.parent(F);(O.rank===y||O.minRank<=y&&y<=O.maxRank)&&(w.setNode(F),w.setParent(F,j||A),b.forEach(_[E](F),function(H){var tt=H.v===F?H.w:H.v,Q=w.edge(tt,F),ht=b.isUndefined(Q)?0:Q.weight;w.setEdge(tt,F,{weight:_.edge(H).weight+ht})}),b.has(O,"minRank")&&w.setNode(F,{borderLeft:O.borderLeft[y],borderRight:O.borderRight[y]}))}),w}},6630:(M,R,f)=>{var b=f(8436);function u(_,y,E){for(var A=b.zipObject(E,b.map(E,function(tt,Q){return Q})),w=b.flatten(b.map(y,function(tt){return b.sortBy(b.map(_.outEdges(tt),function(Q){return{pos:A[Q.w],weight:_.edge(Q).weight}}),"pos")}),!0),F=1;F<E.length;)F<<=1;var O=2*F-1;F-=1;var j=b.map(new Array(O),function(){return 0}),H=0;return b.forEach(w.forEach(function(tt){var Q=tt.pos+F;j[Q]+=tt.weight;for(var ht=0;Q>0;)Q%2&&(ht+=j[Q+1]),j[Q=Q-1>>1]+=tt.weight;H+=tt.weight*ht})),H}M.exports=function(_,y){for(var E=0,A=1;A<y.length;++A)E+=u(_,y[A-1],y[A]);return E}},3408:(M,R,f)=>{var b=f(8436),u=f(2588),_=f(6630),y=f(1026),E=f(3128),A=f(5093),w=f(574).Graph,F=f(1138);function O(tt,Q,ht){return b.map(Q,function(K){return E(tt,K,ht)})}function j(tt,Q){var ht=new w;b.forEach(tt,function(K){var xt=K.graph().root,at=y(K,xt,ht,Q);b.forEach(at.vs,function(ut,vt){K.node(ut).order=vt}),A(K,ht,at.vs)})}function H(tt,Q){b.forEach(Q,function(ht){b.forEach(ht,function(K,xt){tt.node(K).order=xt})})}M.exports=function(tt){var Q=F.maxRank(tt),ht=O(tt,b.range(1,Q+1),"inEdges"),K=O(tt,b.range(Q-1,-1,-1),"outEdges"),xt=u(tt);H(tt,xt);for(var at,ut=Number.POSITIVE_INFINITY,vt=0,Zt=0;Zt<4;++vt,++Zt){j(vt%2?ht:K,vt%4>=2),xt=F.buildLayerMatrix(tt);var Gt=_(tt,xt);Gt<ut&&(Zt=0,at=b.cloneDeep(xt),ut=Gt)}H(tt,at)}},2588:(M,R,f)=>{var b=f(8436);M.exports=function(u){var _={},y=b.filter(u.nodes(),function(F){return!u.children(F).length}),E=b.max(b.map(y,function(F){return u.node(F).rank})),A=b.map(b.range(E+1),function(){return[]}),w=b.sortBy(y,function(F){return u.node(F).rank});return b.forEach(w,function F(O){if(!b.has(_,O)){_[O]=!0;var j=u.node(O);A[j.rank].push(O),b.forEach(u.successors(O),F)}}),A}},9567:(M,R,f)=>{var b=f(8436);M.exports=function(u,_){var y={};return b.forEach(u,function(E,A){var w=y[E.v]={indegree:0,in:[],out:[],vs:[E.v],i:A};b.isUndefined(E.barycenter)||(w.barycenter=E.barycenter,w.weight=E.weight)}),b.forEach(_.edges(),function(E){var A=y[E.v],w=y[E.w];b.isUndefined(A)||b.isUndefined(w)||(w.indegree++,A.out.push(y[E.w]))}),function(E){var A=[];function w(j){return function(H){var tt,Q,ht,K;H.merged||(b.isUndefined(H.barycenter)||b.isUndefined(j.barycenter)||H.barycenter>=j.barycenter)&&(Q=H,ht=0,K=0,(tt=j).weight&&(ht+=tt.barycenter*tt.weight,K+=tt.weight),Q.weight&&(ht+=Q.barycenter*Q.weight,K+=Q.weight),tt.vs=Q.vs.concat(tt.vs),tt.barycenter=ht/K,tt.weight=K,tt.i=Math.min(Q.i,tt.i),Q.merged=!0)}}function F(j){return function(H){H.in.push(j),--H.indegree==0&&E.push(H)}}for(;E.length;){var O=E.pop();A.push(O),b.forEach(O.in.reverse(),w(O)),b.forEach(O.out,F(O))}return b.map(b.filter(A,function(j){return!j.merged}),function(j){return b.pick(j,["vs","i","barycenter","weight"])})}(b.filter(y,function(E){return!E.indegree}))}},1026:(M,R,f)=>{var b=f(8436),u=f(5439),_=f(9567),y=f(7304);M.exports=function E(A,w,F,O){var j=A.children(w),H=A.node(w),tt=H?H.borderLeft:void 0,Q=H?H.borderRight:void 0,ht={};tt&&(j=b.filter(j,function(Zt){return Zt!==tt&&Zt!==Q}));var K=u(A,j);b.forEach(K,function(Zt){if(A.children(Zt.v).length){var Gt=E(A,Zt.v,F,O);ht[Zt.v]=Gt,b.has(Gt,"barycenter")&&(kt=Zt,It=Gt,b.isUndefined(kt.barycenter)?(kt.barycenter=It.barycenter,kt.weight=It.weight):(kt.barycenter=(kt.barycenter*kt.weight+It.barycenter*It.weight)/(kt.weight+It.weight),kt.weight+=It.weight))}var kt,It});var xt=_(K,F);(function(Zt,Gt){b.forEach(Zt,function(kt){kt.vs=b.flatten(kt.vs.map(function(It){return Gt[It]?Gt[It].vs:It}),!0)})})(xt,ht);var at=y(xt,O);if(tt&&(at.vs=b.flatten([tt,at.vs,Q],!0),A.predecessors(tt).length)){var ut=A.node(A.predecessors(tt)[0]),vt=A.node(A.predecessors(Q)[0]);b.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+ut.order+vt.order)/(at.weight+2),at.weight+=2}return at}},7304:(M,R,f)=>{var b=f(8436),u=f(1138);function _(y,E,A){for(var w;E.length&&(w=b.last(E)).i<=A;)E.pop(),y.push(w.vs),A++;return A}M.exports=function(y,E){var A,w=u.partition(y,function(K){return b.has(K,"barycenter")}),F=w.lhs,O=b.sortBy(w.rhs,function(K){return-K.i}),j=[],H=0,tt=0,Q=0;F.sort((A=!!E,function(K,xt){return K.barycenter<xt.barycenter?-1:K.barycenter>xt.barycenter?1:A?xt.i-K.i:K.i-xt.i})),Q=_(j,O,Q),b.forEach(F,function(K){Q+=K.vs.length,j.push(K.vs),H+=K.barycenter*K.weight,tt+=K.weight,Q=_(j,O,Q)});var ht={vs:b.flatten(j,!0)};return tt&&(ht.barycenter=H/tt,ht.weight=tt),ht}}
1246,4219:(M,R,f)=>{var b=f(8436);M.exports=function(u){var _=function(y){var E={},A=0;return b.forEach(y.children(),function w(F){var O=A;b.forEach(y.children(F),w),E[F]={low:O,lim:A++}}),E}(u);b.forEach(u.graph().dummyChains,function(y){for(var E=u.node(y),A=E.edgeObj,w=function(Q,ht,K,xt){var at,ut,vt=[],Zt=[],Gt=Math.min(ht[K].low,ht[xt].low),kt=Math.max(ht[K].lim,ht[xt].lim);at=K;do at=Q.parent(at),vt.push(at);while(at&&(ht[at].low>Gt||kt>ht[at].lim));for(ut=at,at=xt;(at=Q.parent(at))!==ut;)Zt.push(at);return{path:vt.concat(Zt.reverse()),lca:ut}}(u,_,A.v,A.w),F=w.path,O=w.lca,j=0,H=F[j],tt=!0;y!==A.w;){if(E=u.node(y),tt){for(;(H=F[j])!==O&&u.node(H).maxRank<E.rank;)j++;H===O&&(tt=!1)}if(!tt){for(;j<F.length-1&&u.node(H=F[j+1]).minRank<=E.rank;)j++;H=F[j]}u.setParent(y,H),y=u.successors(y)[0]}})}},3573:(M,R,f)=>{var b=f(8436),u=f(574).Graph,_=f(1138);function y(Q,ht){var K={};return b.reduce(ht,function(xt,at){var ut=0,vt=0,Zt=xt.length,Gt=b.last(at);return b.forEach(at,function(kt,It){var wt=function(X,ot){if(X.node(ot).dummy)return b.find(X.predecessors(ot),function(z){return X.node(z).dummy})}(Q,kt),mt=wt?Q.node(wt).order:Zt;(wt||kt===Gt)&&(b.forEach(at.slice(vt,It+1),function(X){b.forEach(Q.predecessors(X),function(ot){var z=Q.node(ot),yt=z.order;!(yt<ut||mt<yt)||z.dummy&&Q.node(X).dummy||A(K,ot,X)})}),vt=It+1,ut=mt)}),at}),K}function E(Q,ht){var K={};function xt(at,ut,vt,Zt,Gt){var kt;b.forEach(b.range(ut,vt),function(It){kt=at[It],Q.node(kt).dummy&&b.forEach(Q.predecessors(kt),function(wt){var mt=Q.node(wt);mt.dummy&&(mt.order<Zt||mt.order>Gt)&&A(K,wt,kt)})})}return b.reduce(ht,function(at,ut){var vt,Zt=-1,Gt=0;return b.forEach(ut,function(kt,It){if(Q.node(kt).dummy==="border"){var wt=Q.predecessors(kt);wt.length&&(vt=Q.node(wt[0]).order,xt(ut,Gt,It,Zt,vt),Gt=It,Zt=vt)}xt(ut,Gt,ut.length,vt,at.length)}),ut}),K}function A(Q,ht,K){if(ht>K){var xt=ht;ht=K,K=xt}var at=Q[ht];at||(Q[ht]=at={}),at[K]=!0}function w(Q,ht,K){if(ht>K){var xt=ht;ht=K,K=xt}return b.has(Q[ht],K)}function F(Q,ht,K,xt){var at={},ut={},vt={};return b.forEach(ht,function(Zt){b.forEach(Zt,function(Gt,kt){at[Gt]=Gt,ut[Gt]=Gt,vt[Gt]=kt})}),b.forEach(ht,function(Zt){var Gt=-1;b.forEach(Zt,function(kt){var It=xt(kt);if(It.length){It=b.sortBy(It,function(z){return vt[z]});for(var wt=(It.length-1)/2,mt=Math.floor(wt),X=Math.ceil(wt);mt<=X;++mt){var ot=It[mt];ut[kt]===kt&&Gt<vt[ot]&&!w(K,kt,ot)&&(ut[ot]=kt,ut[kt]=at[kt]=at[ot],Gt=vt[ot])}}})}),{root:at,align:ut}}function O(Q,ht,K,xt,at){var ut={},vt=function(kt,It,wt,mt){var X=new u,ot=kt.graph(),z=function(yt,Y,bt){return function(Ct,$t,be){var We,xe=Ct.node($t),pe=Ct.node(be),_e=0;if(_e+=xe.width/2,b.has(xe,"labelpos"))switch(xe.labelpos.toLowerCase()){case"l":We=-xe.width/2;break;case"r":We=xe.width/2}if(We&&(_e+=bt?We:-We),We=0,_e+=(xe.dummy?Y:yt)/2,_e+=(pe.dummy?Y:yt)/2,_e+=pe.width/2,b.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":We=pe.width/2;break;case"r":We=-pe.width/2}return We&&(_e+=bt?We:-We),We=0,_e}}(ot.nodesep,ot.edgesep,mt);return b.forEach(It,function(yt){var Y;b.forEach(yt,function(bt){var Ct=wt[bt];if(X.setNode(Ct),Y){var $t=wt[Y],be=X.edge($t,Ct);X.setEdge($t,Ct,Math.max(z(kt,bt,Y),be||0))}Y=bt})}),X}(Q,ht,K,at),Zt=at?"borderLeft":"borderRight";function Gt(kt,It){for(var wt=vt.nodes(),mt=wt.pop(),X={};mt;)X[mt]?kt(mt):(X[mt]=!0,wt.push(mt),wt=wt.concat(It(mt))),mt=wt.pop()}return Gt(function(kt){ut[kt]=vt.inEdges(kt).reduce(function(It,wt){return Math.max(It,ut[wt.v]+vt.edge(wt))},0)},vt.predecessors.bind(vt)),Gt(function(kt){var It=vt.outEdges(kt).reduce(function(mt,X){return Math.min(mt,ut[X.w]-vt.edge(X))},Number.POSITIVE_INFINITY),wt=Q.node(kt);It!==Number.POSITIVE_INFINITY&&wt.borderType!==Zt&&(ut[kt]=Math.max(ut[kt],It))},vt.successors.bind(vt)),b.forEach(xt,function(kt){ut[kt]=ut[K[kt]]}),ut}function j(Q,ht){return b.minBy(b.values(ht),function(K){var xt=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return b.forIn(K,function(ut,vt){var Zt=function(Gt,kt){return Gt.node(kt).width}(Q,vt)/2;xt=Math.max(ut+Zt,xt),at=Math.min(ut-Zt,at)}),xt-at})}function H(Q,ht){var K=b.values(ht),xt=b.min(K),at=b.max(K);b.forEach(["u","d"],function(ut){b.forEach(["l","r"],function(vt){var Zt,Gt=ut+vt,kt=Q[Gt];if(kt!==ht){var It=b.values(kt);(Zt=vt==="l"?xt-b.min(It):at-b.max(It))&&(Q[Gt]=b.mapValues(kt,function(wt){return wt+Zt}))}})})}function tt(Q,ht){return b.mapValues(Q.ul,function(K,xt){if(ht)return Q[ht.toLowerCase()][xt];var at=b.sortBy(b.map(Q,xt));return(at[1]+at[2])/2})}M.exports={positionX:function(Q){var ht,K=_.buildLayerMatrix(Q),xt=b.merge(y(Q,K),E(Q,K)),at={};b.forEach(["u","d"],function(vt){ht=vt==="u"?K:b.values(K).reverse(),b.forEach(["l","r"],function(Zt){Zt==="r"&&(ht=b.map(ht,function(wt){return b.values(wt).reverse()}));var Gt=(vt==="u"?Q.predecessors:Q.successors).bind(Q),kt=F(0,ht,xt,Gt),It=O(Q,ht,kt.root,kt.align,Zt==="r");Zt==="r"&&(It=b.mapValues(It,function(wt){return-wt})),at[vt+Zt]=It})});var ut=j(Q,at);return H(at,ut),tt(at,Q.graph().align)},findType1Conflicts:y,findType2Conflicts:E,addConflict:A,hasConflict:w,verticalAlignment:F,horizontalCompaction:O,alignCoordinates:H,findSmallestWidthAlignment:j,balance:tt}},7873:(M,R,f)=>{var b=f(8436),u=f(1138),_=f(3573).positionX;M.exports=function(y){(function(E){var A=u.buildLayerMatrix(E),w=E.graph().ranksep,F=0;b.forEach(A,function(O){var j=b.max(b.map(O,function(H){return E.node(H).height}));b.forEach(O,function(H){E.node(H).y=F+j/2}),F+=j+w}
1246)})(y=u.asNonCompoundGraph(y)),b.forEach(_(y),function(E,A){y.node(A).x=E})}},300:(M,R,f)=>{var b=f(8436),u=f(574).Graph,_=f(6681).slack;function y(w,F){return b.forEach(w.nodes(),function O(j){b.forEach(F.nodeEdges(j),function(H){var tt=H.v,Q=j===tt?H.w:tt;w.hasNode(Q)||_(F,H)||(w.setNode(Q,{}),w.setEdge(j,Q,{}),O(Q))})}),w.nodeCount()}function E(w,F){return b.minBy(F.edges(),function(O){if(w.hasNode(O.v)!==w.hasNode(O.w))return _(F,O)})}function A(w,F,O){b.forEach(w.nodes(),function(j){F.node(j).rank+=O})}M.exports=function(w){var F,O,j=new u({directed:!1}),H=w.nodes()[0],tt=w.nodeCount();for(j.setNode(H,{});y(j,w)<tt;)F=E(j,w),O=j.hasNode(F.v)?_(w,F):-_(w,F),A(j,w,O);return j}},8093:(M,R,f)=>{var b=f(6681).longestPath,u=f(300),_=f(2472);M.exports=function(E){switch(E.graph().ranker){case"network-simplex":default:(function(A){_(A)})(E);break;case"tight-tree":(function(A){b(A),u(A)})(E);break;case"longest-path":y(E)}};var y=b},2472:(M,R,f)=>{var b=f(8436),u=f(300),_=f(6681).slack,y=f(6681).longestPath,E=f(574).alg.preorder,A=f(574).alg.postorder,w=f(1138).simplify;function F(at){at=w(at),y(at);var ut,vt=u(at);for(H(vt),O(vt,at);ut=Q(vt);)K(vt,at,ut,ht(vt,at,ut))}function O(at,ut){var vt=A(at,at.nodes());vt=vt.slice(0,vt.length-1),b.forEach(vt,function(Zt){(function(Gt,kt,It){var wt=Gt.node(It).parent;Gt.edge(It,wt).cutvalue=j(Gt,kt,It)})(at,ut,Zt)})}function j(at,ut,vt){var Zt=at.node(vt).parent,Gt=!0,kt=ut.edge(vt,Zt),It=0;return kt||(Gt=!1,kt=ut.edge(Zt,vt)),It=kt.weight,b.forEach(ut.nodeEdges(vt),function(wt){var mt,X,ot=wt.v===vt,z=ot?wt.w:wt.v;if(z!==Zt){var yt=ot===Gt,Y=ut.edge(wt).weight;if(It+=yt?Y:-Y,mt=vt,X=z,at.hasEdge(mt,X)){var bt=at.edge(vt,z).cutvalue;It+=yt?-bt:bt}}}),It}function H(at,ut){arguments.length<2&&(ut=at.nodes()[0]),tt(at,{},1,ut)}function tt(at,ut,vt,Zt,Gt){var kt=vt,It=at.node(Zt);return ut[Zt]=!0,b.forEach(at.neighbors(Zt),function(wt){b.has(ut,wt)||(vt=tt(at,ut,vt,wt,Zt))}),It.low=kt,It.lim=vt++,Gt?It.parent=Gt:delete It.parent,vt}function Q(at){return b.find(at.edges(),function(ut){return at.edge(ut).cutvalue<0})}function ht(at,ut,vt){var Zt=vt.v,Gt=vt.w;ut.hasEdge(Zt,Gt)||(Zt=vt.w,Gt=vt.v);var kt=at.node(Zt),It=at.node(Gt),wt=kt,mt=!1;kt.lim>It.lim&&(wt=It,mt=!0);var X=b.filter(ut.edges(),function(ot){return mt===xt(0,at.node(ot.v),wt)&&mt!==xt(0,at.node(ot.w),wt)});return b.minBy(X,function(ot){return _(ut,ot)})}function K(at,ut,vt,Zt){var Gt=vt.v,kt=vt.w;at.removeEdge(Gt,kt),at.setEdge(Zt.v,Zt.w,{}),H(at),O(at,ut),function(It,wt){var mt=b.find(It.nodes(),function(ot){return!wt.node(ot).parent}),X=E(It,mt);X=X.slice(1),b.forEach(X,function(ot){var z=It.node(ot).parent,yt=wt.edge(ot,z),Y=!1;yt||(yt=wt.edge(z,ot),Y=!0),wt.node(ot).rank=wt.node(z).rank+(Y?yt.minlen:-yt.minlen)})}(at,ut)}function xt(at,ut,vt){return vt.low<=ut.lim&&ut.lim<=vt.lim}M.exports=F,F.initLowLimValues=H,F.initCutValues=O,F.calcCutValue=j,F.leaveEdge=Q,F.enterEdge=ht,F.exchangeEdges=K},6681:(M,R,f)=>{var b=f(8436);M.exports={longestPath:function(u){var _={};b.forEach(u.sources(),function y(E){var A=u.node(E);if(b.has(_,E))return A.rank;_[E]=!0;var w=b.min(b.map(u.outEdges(E),function(F){return y(F.w)-u.edge(F).minlen}));return w!==Number.POSITIVE_INFINITY&&w!=null||(w=0),A.rank=w})},slack:function(u,_){return u.node(_.w).rank-u.node(_.v).rank-u.edge(_).minlen}}},1138:(M,R,f)=>{var b=f(8436),u=f(574).Graph;function _(E,A,w,F){var O;do O=b.uniqueId(F);while(E.hasNode(O));return w.dummy=A,E.setNode(O,w),O}function y(E){return b.max(b.map(E.nodes(),function(A){var w=E.node(A).rank;if(!b.isUndefined(w))return w}))}M.exports={addDummyNode:_,simplify:function(E){var A=new u().setGraph(E.graph());return b.forEach(E.nodes(),function(w){A.setNode(w,E.node(w))}),b.forEach(E.edges(),function(w){var F=A.edge(w.v,w.w)||{weight:0,minlen:1},O=E.edge(w);A.setEdge(w.v,w.w,{weight:F.weight+O.weight,minlen:Math.max(F.minlen,O.minlen)})}),A},asNonCompoundGraph:function(E){var A=new u({multigraph:E.isMultigraph()}).setGraph(E.graph());return b.forEach(E.nodes(),function(w){E.children(w).length||A.setNode(w,E.node(w))}),b.forEach(E.edges(),function(w){A.setEdge(w,E.edge(w))}),A},successorWeights:function(E){var A=b.map(E.nodes(),function(w){var F={};return b.forEach(E.outEdges(w),function(O){F[O.w]=(F[O.w]||0)+E.edge(O).weight}),F}
1246);return b.zipObject(E.nodes(),A)},predecessorWeights:function(E){var A=b.map(E.nodes(),function(w){var F={};return b.forEach(E.inEdges(w),function(O){F[O.v]=(F[O.v]||0)+E.edge(O).weight}),F});return b.zipObject(E.nodes(),A)},intersectRect:function(E,A){var w,F,O=E.x,j=E.y,H=A.x-O,tt=A.y-j,Q=E.width/2,ht=E.height/2;if(!H&&!tt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(tt)*Q>Math.abs(H)*ht?(tt<0&&(ht=-ht),w=ht*H/tt,F=ht):(H<0&&(Q=-Q),w=Q,F=Q*tt/H),{x:O+w,y:j+F}},buildLayerMatrix:function(E){var A=b.map(b.range(y(E)+1),function(){return[]});return b.forEach(E.nodes(),function(w){var F=E.node(w),O=F.rank;b.isUndefined(O)||(A[O][F.order]=w)}),A},normalizeRanks:function(E){var A=b.min(b.map(E.nodes(),function(w){return E.node(w).rank}));b.forEach(E.nodes(),function(w){var F=E.node(w);b.has(F,"rank")&&(F.rank-=A)})},removeEmptyRanks:function(E){var A=b.min(b.map(E.nodes(),function(j){return E.node(j).rank})),w=[];b.forEach(E.nodes(),function(j){var H=E.node(j).rank-A;w[H]||(w[H]=[]),w[H].push(j)});var F=0,O=E.graph().nodeRankFactor;b.forEach(w,function(j,H){b.isUndefined(j)&&H%O!=0?--F:F&&b.forEach(j,function(tt){E.node(tt).rank+=F})})},addBorderNode:function(E,A,w,F){var O={width:0,height:0};return arguments.length>=4&&(O.rank=w,O.order=F),_(E,"border",O,A)},maxRank:y,partition:function(E,A){var w={lhs:[],rhs:[]};return b.forEach(E,function(F){A(F)?w.lhs.push(F):w.rhs.push(F)}),w},time:function(E,A){var w=b.now();try{return A()}finally{console.log(E+" time: "+(b.now()-w)+"ms")}},notime:function(E,A){return A()}}},8177:M=>{M.exports="0.8.5"},7856:function(M){M.exports=function(){function R(dt){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Mt){return typeof Mt}:function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt},R(dt)}function f(dt,Mt){return f=Object.setPrototypeOf||function(de,Le){return de.__proto__=Le,de},f(dt,Mt)}function b(){if(typeof Reflect>"u"||!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 u(dt,Mt,de){return u=b()?Reflect.construct:function(Le,en,qe){var sn=[null];sn.push.apply(sn,en);var Fe=new(Function.bind.apply(Le,sn));return qe&&f(Fe,qe.prototype),Fe},u.apply(null,arguments)}function _(dt){return function(Mt){if(Array.isArray(Mt))return y(Mt)}(dt)||function(Mt){if(typeof Symbol<"u"&&Mt[Symbol.iterator]!=null||Mt["@@iterator"]!=null)return Array.from(Mt)}(dt)||function(Mt,de){if(Mt){if(typeof Mt=="string")return y(Mt,de);var Le=Object.prototype.toString.call(Mt).slice(8,-1);return Le==="Object"&&Mt.constructor&&(Le=Mt.constructor.name),Le==="Map"||Le==="Set"?Array.from(Mt):Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le)?y(Mt,de):void 0}}(dt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1247In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(dt,Mt){(Mt==null||Mt>dt.length)&&(Mt=dt.length);for(var de=0,Le=new Array(Mt);de<Mt;de++)Le[de]=dt[de];return Le}var E=Object.hasOwnProperty,A=Object.setPrototypeOf,w=Object.isFrozen,F=Object.getPrototypeOf,O=Object.getOwnPropertyDescriptor,j=Object.freeze,H=Object.seal,tt=Object.create,Q=typeof Reflect<"u"&&Reflect,ht=Q.apply,K=Q.construct;ht||(ht=function(dt,Mt,de){return dt.apply(Mt,de)}),j||(j=function(dt){return dt}),H||(H=function(dt){return dt}),K||(K=function(dt,Mt){return u(dt,_(Mt))});var xt,at=ot(Array.prototype.forEach),ut=ot(Array.prototype.pop),vt=ot(Array.prototype.push),Zt=ot(String.prototype.toLowerCase),Gt=ot(String.prototype.match),kt=ot(String.prototype.replace),It=ot(String.prototype.indexOf),wt=ot(String.prototype.trim),mt=ot(RegExp.prototype.test),X=(xt=TypeError,function(){for(var dt=arguments.length,Mt=new Array(dt),de=0;de<dt;de++)Mt[de]=arguments[de];return K(xt,Mt)});function ot(dt){return function(Mt){for(var de=arguments.length,Le=new Array(de>1?de-1:0),en=1;en<de;en++)Le[en-1]=arguments[en];return ht(dt,Mt,Le)}}function z(dt,Mt,de){de=de||Zt,A&&A(dt,null);for(var Le=Mt.length;Le--;){var en=Mt[Le];if(typeof en=="string"){var qe=de(en);qe!==en&&(w(Mt)||(Mt[Le]=qe),en=qe)}dt[en]=!0}return dt}function yt(dt){var Mt,de=tt(null);for(Mt in dt)ht(E,dt,[Mt])&&(de[Mt]=dt[Mt]);return de}function Y(dt,Mt){for(;dt!==null;){var de=O(dt,Mt);if(de){if(de.get)return ot(de.get);if(typeof de.value=="function")return ot(de.value)}dt=F(dt)}return function(Le){return console.warn("fallback value for",Le),null}}var bt=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"]),Ct=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"]),$t=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"]),be=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"]),We=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"]),xe=j(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=j(["#text"]),_e=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","
1247spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ae=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"]),De=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"]),me=j(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wn=H(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fe=H(/<%[\w\W]*|[\w\W]*%>/gm),Qe=H(/^data-[\-\w.\u00B7-\uFFFF]/),ne=H(/^aria-[\-\w]+$/),Qt=H(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=H(/^(?:\w+script|data):/i),Et=H(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=H(/^html$/i),st=function(){return typeof window>"u"?null:window},ft=function(dt,Mt){if(R(dt)!=="object"||typeof dt.createPolicy!="function")return null;var de=null,Le="data-tt-policy-suffix";Mt.currentScript&&Mt.currentScript.hasAttribute(Le)&&(de=Mt.currentScript.getAttribute(Le));var en="dompurify"+(de?"#"+de:"");try{return dt.createPolicy(en,{createHTML:function(qe){return qe},createScriptURL:function(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+en+" could not be created."),null}};return function dt(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st(),de=function(Ht){return dt(Ht)};if(de.version="2.4.0",de.removed=[],!Mt||!Mt.document||Mt.document.nodeType!==9)return de.isSupported=!1,de;var Le=Mt.document,en=Mt.document,qe=Mt.DocumentFragment,sn=Mt.HTMLTemplateElement,Fe=Mt.Node,Te=Mt.Element,Oe=Mt.NodeFilter,Be=Mt.NamedNodeMap,ge=Be===void 0?Mt.NamedNodeMap||Mt.MozNamedAttrMap:Be,re=Mt.HTMLFormElement,An=Mt.DOMParser,Ie=Mt.trustedTypes,ln=Te.prototype,Ye=Y(ln,"cloneNode"),dn=Y(ln,"nextSibling"),Jn=Y(ln,"childNodes"),Dn=Y(ln,"parentNode");if(typeof sn=="function"){var Tn=en.createElement("template");
1247Tn.content&&Tn.content.ownerDocument&&(en=Tn.content.ownerDocument)}var Me=ft(Ie,Le),Ke=Me?Me.createHTML(""):"",Xe=en,Ee=Xe.implementation,mn=Xe.createNodeIterator,At=Xe.createDocumentFragment,vr=Xe.getElementsByTagName,Yt=Le.importNode,Un={};try{Un=yt(en).documentMode?en.documentMode:{}}catch{}var Rn={};de.isSupported=typeof Dn=="function"&&Ee&&Ee.createHTMLDocument!==void 0&&Un!==9;var Vn,Mn,Hn=wn,In=fe,En=Qe,Fn=ne,Pn=oe,jn=Et,fa=Qt,Dr=null,Tr=z({},[].concat(_(bt),_(Ct),_($t),_(We),_(pe))),Sn=null,oi=z({},[].concat(_(_e),_(Ae),_(De),_(me))),Nn=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}})),_r=null,Cr=null,yr=!0,qr=!0,Dt=!1,Ar=!1,Nr=!1,Gn=!1,Zr=!1,Ur=!1,Ir=!1,Qr=!1,ka=!0,cr=!1,ea="user-content-",na=!0,Ni=!1,rn={},Zn=null,an=z({},["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"]),nn=null,nr=z({},["audio","video","img","source","image","track"]),qt=null,wi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",xr="http://www.w3.org/2000/svg",Or="http://www.w3.org/1999/xhtml",Vr=Or,li=!1,wa=["application/xhtml+xml","text/html"],hr="text/html",xn=null,ra=en.createElement("form"),On=function(Ht){return Ht instanceof RegExp||Ht instanceof Function},bi=function(Ht){xn&&xn===Ht||(Ht&&R(Ht)==="object"||(Ht={}),Ht=yt(Ht),Vn=Vn=wa.indexOf(Ht.PARSER_MEDIA_TYPE)===-1?hr:Ht.PARSER_MEDIA_TYPE,Mn=Vn==="application/xhtml+xml"?function(Ve){return Ve}:Zt,Dr="ALLOWED_TAGS"in Ht?z({},Ht.ALLOWED_TAGS,Mn):Tr,Sn="ALLOWED_ATTR"in Ht?z({},Ht.ALLOWED_ATTR,Mn):oi,qt="ADD_URI_SAFE_ATTR"in Ht?z(yt(wi),Ht.ADD_URI_SAFE_ATTR,Mn):wi,nn="ADD_DATA_URI_TAGS"in Ht?z(yt(nr),Ht.ADD_DATA_URI_TAGS,Mn):nr,Zn="FORBID_CONTENTS"in Ht?z({},Ht.FORBID_CONTENTS,Mn):an,_r="FORBID_TAGS"in Ht?z({},Ht.FORBID_TAGS,Mn):{},Cr="FORBID_ATTR"in Ht?z({},Ht.FORBID_ATTR,Mn):{},rn="USE_PROFILES"in Ht&&Ht.USE_PROFILES,yr=Ht.ALLOW_ARIA_ATTR!==!1,qr=Ht.ALLOW_DATA_ATTR!==!1,Dt=Ht.ALLOW_UNKNOWN_PROTOCOLS||!1,Ar=Ht.SAFE_FOR_TEMPLATES||!1,Nr=Ht.WHOLE_DOCUMENT||!1,Ur=Ht.RETURN_DOM||!1,Ir=Ht.RETURN_DOM_FRAGMENT||!1,Qr=Ht.RETURN_TRUSTED_TYPE||!1,Zr=Ht.FORCE_BODY||!1,ka=Ht.SANITIZE_DOM!==!1,cr=Ht.SANITIZE_NAMED_PROPS||!1,na=Ht.KEEP_CONTENT!==!1,Ni=Ht.IN_PLACE||!1,fa=Ht.ALLOWED_URI_REGEXP||fa,Vr=Ht.NAMESPACE||Or,Ht.CUSTOM_ELEMENT_HANDLING&&On(Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Nn.tagNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&On(Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Nn.attributeNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&typeof Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Nn.allowCustomizedBuiltInElements=Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ar&&(qr=!1),Ir&&(Ur=!0),rn&&(Dr=z({},_(pe)),Sn=[],rn.html===!0&&(z(Dr,bt),z(Sn,_e)),rn.svg===!0&&(z(Dr,Ct),z(Sn,Ae),z(Sn,me)),rn.svgFilters===!0&&(z(Dr,$t),z(Sn,Ae),z(Sn,me)),rn.mathMl===!0&&(z(Dr,We),z(Sn,De),z(Sn,me))),Ht.ADD_TAGS&&(Dr===Tr&&(Dr=yt(Dr)),z(Dr,Ht.ADD_TAGS,Mn)),Ht.ADD_ATTR&&(Sn===oi&&(Sn=yt(Sn)),z(Sn,Ht.ADD_ATTR,Mn)),Ht.ADD_URI_SAFE_ATTR&&z(qt,Ht.ADD_URI_SAFE_ATTR,Mn),Ht.FORBID_CONTENTS&&(Zn===an&&(Zn=yt(Zn)),z(Zn,Ht.FORBID_CONTENTS,Mn)),na&&(Dr["#text"]=!0),Nr&&z(Dr,["html","head","body"]),Dr.table&&(z(Dr,["tbody"]),delete _r.tbody),j&&j(Ht),xn=Ht)},si=z({},["mi","mo","mn","ms","mtext"]),Oi=z({},["foreignobject","desc","title","annotation-xml"]),lr=z({},["title","style","font","a","script"]),Kr=z({},Ct);z(Kr,$t),z(Kr,be);var Hr=z({},We);z(Hr,xe);var Gr=function(Ht){var Ve=Dn(Ht);Ve&&Ve.tagName||(Ve={namespaceURI:Or,tagName:"template"});var pn=Zt(Ht.tagName),ar=Zt(Ve.tagName);return Ht.namespaceURI===xr?Ve.namespaceURI===Or?pn==="svg":Ve.namespaceURI===Kt?pn==="svg"&&(ar==="annotation-xml"||si[ar]):!!Kr[pn
1247]:Ht.namespaceURI===Kt?Ve.namespaceURI===Or?pn==="math":Ve.namespaceURI===xr?pn==="math"&&Oi[ar]:!!Hr[pn]:Ht.namespaceURI===Or&&!(Ve.namespaceURI===xr&&!Oi[ar])&&!(Ve.namespaceURI===Kt&&!si[ar])&&!Hr[pn]&&(lr[pn]||!Kr[pn])},ni=function(Ht){vt(de.removed,{element:Ht});try{Ht.parentNode.removeChild(Ht)}catch{try{Ht.outerHTML=Ke}catch{Ht.remove()}}},Ti=function(Ht,Ve){try{vt(de.removed,{attribute:Ve.getAttributeNode(Ht),from:Ve})}catch{vt(de.removed,{attribute:null,from:Ve})}if(Ve.removeAttribute(Ht),Ht==="is"&&!Sn[Ht])if(Ur||Ir)try{ni(Ve)}catch{}else try{Ve.setAttribute(Ht,"")}catch{}},Xr=function(Ht){var Ve,pn;if(Zr)Ht="<remove></remove>"+Ht;else{var ar=Gt(Ht,/^[\r\n\t ]+/);pn=ar&&ar[0]}Vn==="application/xhtml+xml"&&(Ht='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ht+"</body></html>");var ci=Me?Me.createHTML(Ht):Ht;if(Vr===Or)try{Ve=new An().parseFromString(ci,Vn)}catch{}if(!Ve||!Ve.documentElement){Ve=Ee.createDocument(Vr,"template",null);try{Ve.documentElement.innerHTML=li?"":ci}catch{}}var Er=Ve.body||Ve.documentElement;return Ht&&pn&&Er.insertBefore(en.createTextNode(pn),Er.childNodes[0]||null),Vr===Or?vr.call(Ve,Nr?"html":"body")[0]:Nr?Ve.documentElement:Er},Ta=function(Ht){return mn.call(Ht.ownerDocument||Ht,Ht,Oe.SHOW_ELEMENT|Oe.SHOW_COMMENT|Oe.SHOW_TEXT,null,!1)},La=function(Ht){return Ht instanceof re&&(typeof Ht.nodeName!="string"||typeof Ht.textContent!="string"||typeof Ht.removeChild!="function"||!(Ht.attributes instanceof ge)||typeof Ht.removeAttribute!="function"||typeof Ht.setAttribute!="function"||typeof Ht.namespaceURI!="string"||typeof Ht.insertBefore!="function")},pr=function(Ht){return R(Fe)==="object"?Ht instanceof Fe:Ht&&R(Ht)==="object"&&typeof Ht.nodeType=="number"&&typeof Ht.nodeName=="string"},Jr=function(Ht,Ve,pn){Rn[Ht]&&at(Rn[Ht],function(ar){ar.call(de,Ve,pn,xn)})},ti=function(Ht){var Ve;if(Jr("beforeSanitizeElements",Ht,null),La(Ht)||mt(/[\u0080-\uFFFF]/,Ht.nodeName))return ni(Ht),!0;var pn=Mn(Ht.nodeName);if(Jr("uponSanitizeElement",Ht,{tagName:pn,allowedTags:Dr}),Ht.hasChildNodes()&&!pr(Ht.firstElementChild)&&(!pr(Ht.content)||!pr(Ht.content.firstElementChild))&&mt(/<[/\w]/g,Ht.innerHTML)&&mt(/<[/\w]/g,Ht.textContent)||pn==="select"&&mt(/<template/i,Ht.innerHTML))return ni(Ht),!0;if(!Dr[pn]||_r[pn]){if(!_r[pn]&&Za(pn)&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,pn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(pn)))return!1;if(na&&!Zn[pn]){var ar=Dn(Ht)||Ht.parentNode,ci=Jn(Ht)||Ht.childNodes;if(ci&&ar)for(var Er=ci.length-1;Er>=0;--Er)ar.insertBefore(Ye(ci[Er],!0),dn(Ht))}return ni(Ht),!0}return Ht instanceof Te&&!Gr(Ht)?(ni(Ht),!0):pn!=="noscript"&&pn!=="noembed"||!mt(/<\/no(script|embed)/i,Ht.innerHTML)?(Ar&&Ht.nodeType===3&&(Ve=Ht.textContent,Ve=kt(Ve,Hn," "),Ve=kt(Ve,In," "),Ht.textContent!==Ve&&(vt(de.removed,{element:Ht.cloneNode()}),Ht.textContent=Ve)),Jr("afterSanitizeElements",Ht,null),!1):(ni(Ht),!0)},Oo=function(Ht,Ve,pn){if(ka&&(Ve==="id"||Ve==="name")&&(pn in en||pn in ra))return!1;if(!(qr&&!Cr[Ve]&&mt(En,Ve))){if(!(yr&&mt(Fn,Ve))){if(!Sn[Ve]||Cr[Ve]){if(!(Za(Ht)&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,Ht)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(Ht))&&(Nn.attributeNameCheck instanceof RegExp&&mt(Nn.attributeNameCheck,Ve)||Nn.attributeNameCheck instanceof Function&&Nn.attributeNameCheck(Ve))||Ve==="is"&&Nn.allowCustomizedBuiltInElements&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,pn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(pn))))return!1}else if(!qt[Ve]){if(!mt(fa,kt(pn,jn,""))){if((Ve!=="src"&&Ve!=="xlink:href"&&Ve!=="href"||Ht==="script"||It(pn,"data:")!==0||!nn[Ht])&&!(Dt&&!mt(Pn,kt(pn,jn,"")))){if(pn)return!1}}}}}return!0},Za=function(Ht){return Ht.indexOf("-")>0},ia=function(Ht){var Ve,pn,ar,ci;Jr("beforeSanitizeAttributes",Ht,null);var Er=Ht.attributes;if(Er){var ui={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Sn};for(ci=Er.length;ci--;){var Ia=Ve=Er[ci],hi=Ia.name,Ei=Ia.namespaceURI;if(pn=hi==="value"?Ve.value:wt(Ve.value),ar=Mn(hi),ui.attrName=ar,ui.attrValue=pn,ui.keepAttr=!0,ui.forceKeepAttr=void 0,Jr("uponSanitizeAttribute",Ht,ui),pn=ui.attrValue,!ui.forceKeepAttr&&(Ti(hi,Ht),ui.keepAttr))if(mt(/\/>/i,pn))Ti(hi,Ht);else{Ar&&(pn=kt(pn,Hn," "),pn=kt(pn,In," "));var Bo=Mn(Ht.nodeName);if(Oo(Bo,ar,pn)){if(!cr||ar!=="id"&&ar!=="name"||(Ti(hi,Ht),pn=ea+pn),Me&&R(Ie)==="object"&&typeof Ie.getAttributeType=="function"&&!Ei)switch(Ie.getAttributeType(Bo,ar)){case"TrustedHTML":pn=Me.createHTML(pn);break;case"TrustedScriptURL":pn=Me.createScriptURL(pn)}try{Ei?Ht.setAttributeNS(Ei,hi,pn):Ht.setAttribute(hi,pn),ut(de.removed)}catch{}}}}Jr("afterSanitizeAttributes",Ht,null)}},oc=function Ht(Ve){var pn,ar=Ta(Ve);for(Jr("beforeSanitizeShadowDOM",Ve,null);pn=ar.nextNode();)Jr("uponSanitizeShadowNode",pn,null),ti(pn)||(pn.content instanceof qe&&Ht(pn.content),ia(pn));Jr("afterSanitizeShadowDOM",Ve,null)};return de.sanitize=function(Ht){var Ve,pn,ar,ci,Er,ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((li=!Ht)&&(Ht="<!-->"),typeof Ht!="string"&&!pr(Ht)){if(typeof Ht.toString!="function")throw X("toString is not a function");if(typeof(Ht=Ht.toString())!="string")throw X("dirty is not a string, aborting")}if(!de.isSupported){if(R(Mt.toStaticHTML)==="object"||typeof Mt.toStaticHTML=="function"){if(typeof Ht=="string")return Mt.toStaticHTML(Ht);if(pr(Ht))return Mt.toStaticHTML(Ht.outerHTML)}return Ht}if(Gn||bi(ui),de.removed=[],typeof Ht=="string"&&(Ni=!1),Ni){if(Ht.nodeName){var Ia=Mn(Ht.nodeName);if(!Dr[Ia]||_r[Ia])throw X("root node is forbidden and cannot be sanitized in-place")}}else if(Ht instanceof Fe)(pn=(Ve=Xr("<!---->")).ownerDocument.importNode(Ht,!0)).nodeType===1&&pn.nodeName==="BODY"||pn.nodeName==="HTML"?Ve=pn:Ve.appendChild(pn);else{if(!Ur&&!Ar&&!Nr&&Ht.indexOf("<")===-1)return Me&&Qr?Me.createHTML(Ht):Ht;if(!(Ve=Xr(Ht)))return Ur?null:Qr?Ke:""}Ve&&Zr&&ni(Ve.firstChild);for(var hi=Ta(Ni?Ht:Ve);ar=hi.nextNode();)ar.nodeType===3&&ar===ci||ti(ar)||(ar.content instanceof qe&&oc(ar.content),ia(ar),ci=ar);if(ci=null,Ni)return Ht;if(Ur){if(Ir)for(Er=At.call(Ve.ownerDocument);Ve.firstChild;)Er.appendChild(Ve.firstChild);else Er=Ve;return Sn.shadowroot&&(Er=Yt.call(Le,Er,!0)),Er}var Ei=Nr?Ve.outerHTML:Ve.innerHTML;return Nr&&Dr["!doctype"]&&Ve.ownerDocument&&Ve.ownerDocument.doctype&&Ve.ownerDocument.doctype.name&&mt(te,Ve.ownerDocument.doctype.name)&&(Ei="<!DOCTYPE "+Ve.ownerDocument.doctype.name+`>
1248`+Ei),Ar&&(Ei=kt(Ei,Hn," "),Ei=kt(Ei,In," ")),Me&&Qr?Me.createHTML(Ei):Ei},de.setConfig=function(Ht){bi(Ht),Gn=!0},de.clearConfig=function(){xn=null,Gn=!1},de.isValidAttribute=function(Ht,Ve,pn){xn||bi({});var ar=Mn(Ht),ci=Mn(Ve);return Oo(ar,ci,pn)},de.addHook=function(Ht,Ve){typeof Ve=="function"&&(Rn[Ht]=Rn[Ht]||[],vt(Rn[Ht],Ve))},de.removeHook=function(Ht){if(Rn[Ht])return ut(Rn[Ht])},de.removeHooks=function(Ht){Rn[Ht]&&(Rn[Ht]=[])},de.removeAllHooks=function(){Rn={}},de}()}()},8282:(M,R,f)=>{var b=f(2354);M.exports={Graph:b.Graph,json:f(8974),alg:f(2440),version:b.version}},2842:(M,R,f)=>
1248{var b=f(9126);M.exports=function(u){var _,y={},E=[];function A(w){b.has(y,w)||(y[w]=!0,_.push(w),b.each(u.successors(w),A),b.each(u.predecessors(w),A))}return b.each(u.nodes(),function(w){_=[],A(w),_.length&&E.push(_)}),E}},3984:(M,R,f)=>{var b=f(9126);function u(_,y,E,A,w,F){b.has(A,y)||(A[y]=!0,E||F.push(y),b.each(w(y),function(O){u(_,O,E,A,w,F)}),E&&F.push(y))}M.exports=function(_,y,E){b.isArray(y)||(y=[y]);var A=(_.isDirected()?_.successors:_.neighbors).bind(_),w=[],F={};return b.each(y,function(O){if(!_.hasNode(O))throw new Error("Graph does not have node: "+O);u(_,O,E==="post",F,A,w)}),w}},4847:(M,R,f)=>{var b=f(3763),u=f(9126);M.exports=function(_,y,E){return u.transform(_.nodes(),function(A,w){A[w]=b(_,w,y,E)},{})}},3763:(M,R,f)=>{var b=f(9126),u=f(9675);M.exports=function(y,E,A,w){return function(F,O,j,H){var tt,Q,ht={},K=new u,xt=function(at){var ut=at.v!==tt?at.v:at.w,vt=ht[ut],Zt=j(at),Gt=Q.distance+Zt;if(Zt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+Zt);Gt<vt.distance&&(vt.distance=Gt,vt.predecessor=tt,K.decrease(ut,Gt))};for(F.nodes().forEach(function(at){var ut=at===O?0:Number.POSITIVE_INFINITY;ht[at]={distance:ut},K.add(at,ut)});K.size()>0&&(tt=K.removeMin(),(Q=ht[tt]).distance!==Number.POSITIVE_INFINITY);)H(tt).forEach(xt);return ht}(y,String(E),A||_,w||function(F){return y.outEdges(F)})};var _=b.constant(1)},9096:(M,R,f)=>{var b=f(9126),u=f(5023);M.exports=function(_){return b.filter(u(_),function(y){return y.length>1||y.length===1&&_.hasEdge(y[0],y[0])})}},8924:(M,R,f)=>{var b=f(9126);M.exports=function(_,y,E){return function(A,w,F){var O={},j=A.nodes();return j.forEach(function(H){O[H]={},O[H][H]={distance:0},j.forEach(function(tt){H!==tt&&(O[H][tt]={distance:Number.POSITIVE_INFINITY})}),F(H).forEach(function(tt){var Q=tt.v===H?tt.w:tt.v,ht=w(tt);O[H][Q]={distance:ht,predecessor:H}})}),j.forEach(function(H){var tt=O[H];j.forEach(function(Q){var ht=O[Q];j.forEach(function(K){var xt=ht[H],at=tt[K],ut=ht[K],vt=xt.distance+at.distance;vt<ut.distance&&(ut.distance=vt,ut.predecessor=at.predecessor)})})}),O}(_,y||u,E||function(A){return _.outEdges(A)})};var u=b.constant(1)},2440:(M,R,f)=>{M.exports={components:f(2842),dijkstra:f(3763),dijkstraAll:f(4847),findCycles:f(9096),floydWarshall:f(8924),isAcyclic:f(2707),postorder:f(8828),preorder:f(2648),prim:f(514),tarjan:f(5023),topsort:f(2166)}},2707:(M,R,f)=>{var b=f(2166);M.exports=function(u){try{b(u)}catch(_){if(_ instanceof b.CycleException)return!1;throw _}return!0}},8828:(M,R,f)=>{var b=f(3984);M.exports=function(u,_){return b(u,_,"post")}},2648:(M,R,f)=>{var b=f(3984);M.exports=function(u,_){return b(u,_,"pre")}},514:(M,R,f)=>{var b=f(9126),u=f(771),_=f(9675);M.exports=function(y,E){var A,w=new u,F={},O=new _;function j(tt){var Q=tt.v===A?tt.w:tt.v,ht=O.priority(Q);if(ht!==void 0){var K=E(tt);K<ht&&(F[Q]=A,O.decrease(Q,K))}}if(y.nodeCount()===0)return w;b.each(y.nodes(),function(tt){O.add(tt,Number.POSITIVE_INFINITY),w.setNode(tt)}),O.decrease(y.nodes()[0],0);for(var H=!1;O.size()>0;){if(A=O.removeMin(),b.has(F,A))w.setEdge(A,F[A]);else{if(H)throw new Error("Input graph is not connected: "+y);H=!0}y.nodeEdges(A).forEach(j)}return w}},5023:(M,R,f)=>{var b=f(9126);M.exports=function(u){var _=0,y=[],E={},A=[];function w(F){var O=E[F]={onStack:!0,lowlink:_,index:_++};if(y.push(F),u.successors(F).forEach(function(tt){b.has(E,tt)?E[tt].onStack&&(O.lowlink=Math.min(O.lowlink,E[tt].index)):(w(tt),O.lowlink=Math.min(O.lowlink,E[tt].lowlink))}),O.lowlink===O.index){var j,H=[];do j=y.pop(),E[j].onStack=!1,H.push(j);while(F!==j);A.push(H)}}return u.nodes().forEach(function(F){b.has(E,F)||w(F)}),A}},2166:(M,R,f)=>{var b=f(9126);function u(y){var E={},A={},w=[];if(b.each(y.sinks(),function F(O){if(b.has(A,O))throw new _;b.has(E,O)||(A[O]=!0,E[O]=!0,b.each(y.predecessors(O),F),delete A[O],w.push(O))}),b.size(E)!==y.nodeCount())throw new _;return w}function _(){}M.exports=u,u.CycleException=_,_.prototype=new Error},9675:(M,R,f)=>{var b=f(9126);function u(){this._arr=[],this._keyIndices={}}M.exports=u,u.prototype.size=function(){return this._arr.length},u.prototype.keys=function(){return this._arr.map(function(_){return _.key})},u.prototype.has=function(_){return b.has(this._keyIndices,_)},u.prototype.priority=function(_){var y=this._keyIndices[_];if(y!==void 0)return this._arr[y].priority},u.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},u.prototype.add=function(_,y){var E=this._keyIndices;if(_=String(_),!b.has(E,_)){var A=this._arr,w=A.length;return E[_]=w,A.push({key:_,priority:y}),this._decrease(w),!0}return!1},u.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},u.prototype.decrease=function(_,y){var E=this._keyIndices[_];if(y>this._arr[E].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[E].priority+" New: "+y);this._arr[E].priority=y,this._decrease(E)},u.prototype._heapify=function(_){var y=this._arr,E=2*_,A=E+1,w=_;E<y.length&&(w=y[E].priority<y[w].priority?E:w,A<y.length&&(w=y[A].priority<y[w].priority?A:w),w!==_&&(this._swap(_,w),this._heapify(w)))},u.prototype._decrease=function(_){for(var y,E=this._arr,A=E[_].priority;_!==0&&!(E[y=_>>1].priority<A);)this._swap(_,y),_=y},u.prototype._swap=function(_,y){var E=this._arr,A=this._keyIndices,w=E[_],F=E[y];E[_]=F,E[y]=w,A[F.key]=_,A[w.key]=y}},771:(M,R,f)=>
vendor: 6,668 bytes, line 1248
1248{var b=f(9126);M.exports=_;var u="\0";function _(O){this._isDirected=!b.has(O,"directed")||O.directed,this._isMultigraph=!!b.has(O,"multigraph")&&O.multigraph,this._isCompound=!!b.has(O,"compound")&&O.compound,this._label=void 0,this._defaultNodeLabelFn=b.constant(void 0),this._defaultEdgeLabelFn=b.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function y(O,j){O[j]?O[j]++:O[j]=1}function E(O,j){--O[j]||delete O[j]}function A(O,j,H,tt){var Q=""+j,ht=""+H;if(!O&&Q>ht){var K=Q;Q=ht,ht=K}return Q+"�"+ht+"�"+(b.isUndefined(tt)?"\0":tt)}function w(O,j,H,tt){var Q=""+j,ht=""+H;if(!O&&Q>ht){var K=Q;Q=ht,ht=K}var xt={v:Q,w:ht};return tt&&(xt.name=tt),xt}function F(O,j){return A(O,j.v,j.w,j.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(O){return this._label=O,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(O){return b.isFunction(O)||(O=b.constant(O)),this._defaultNodeLabelFn=O,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return b.keys(this._nodes)},_.prototype.sources=function(){var O=this;return b.filter(this.nodes(),function(j){return b.isEmpty(O._in[j])})},_.prototype.sinks=function(){var O=this;return b.filter(this.nodes(),function(j){return b.isEmpty(O._out[j])})},_.prototype.setNodes=function(O,j){var H=arguments,tt=this;return b.each(O,function(Q){H.length>1?tt.setNode(Q,j):tt.setNode(Q)}),this},_.prototype.setNode=function(O,j){return b.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=j),this):(this._nodes[O]=arguments.length>1?j:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=u,this._children[O]={},this._children["\0"][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},_.prototype.node=function(O){return this._nodes[O]},_.prototype.hasNode=function(O){return b.has(this._nodes,O)},_.prototype.removeNode=function(O){var j=this;if(b.has(this._nodes,O)){var H=function(tt){j.removeEdge(j._edgeObjs[tt])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],b.each(this.children(O),function(tt){j.setParent(tt)}),delete this._children[O]),b.each(b.keys(this._in[O]),H),delete this._in[O],delete this._preds[O],b.each(b.keys(this._out[O]),H),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},_.prototype.setParent=function(O,j){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.isUndefined(j))j=u;else{for(var H=j+="";!b.isUndefined(H);H=this.parent(H))if(H===O)throw new Error("Setting "+j+" as parent of "+O+" would create a cycle");this.setNode(j)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=j,this._children[j][O]=!0,this},_.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},_.prototype.parent=function(O){if(this._isCompound){var j=this._parent[O];if(j!==u)return j}},_.prototype.children=function(O){if(b.isUndefined(O)&&(O=u),this._isCompound){var j=this._children[O];if(j)return b.keys(j)}else{if(O===u)return this.nodes();if(this.hasNode(O))return[]}},_.prototype.predecessors=function(O){var j=this._preds[O];if(j)return b.keys(j)},_.prototype.successors=function(O){var j=this._sucs[O];if(j)return b.keys(j)},_.prototype.neighbors=function(O){var j=this.predecessors(O);if(j)return b.union(j,this.successors(O))},_.prototype.isLeaf=function(O){return(this.isDirected()?this.successors(O):this.neighbors(O)).length===0},_.prototype.filterNodes=function(O){var j=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});j.setGraph(this.graph());var H=this;b.each(this._nodes,function(ht,K){O(K)&&j.setNode(K,ht)}),b.each(this._edgeObjs,function(ht){j.hasNode(ht.v)&&j.hasNode(ht.w)&&j.setEdge(ht,H.edge(ht))});var tt={};function Q(ht){var K=H.parent(ht);return K===void 0||j.hasNode(K)?(tt[ht]=K,K):K in tt?tt[K]:Q(K)}return this._isCompound&&b.each(j.nodes(),function(ht){j.setParent(ht,Q(ht))}),j},_.prototype.setDefaultEdgeLabel=function(O){return b.isFunction(O)||(O=b.constant(O)),this._defaultEdgeLabelFn=O,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return b.values(this._edgeObjs)},_.prototype.setPath=function(O,j){var H=this,tt=arguments;return b.reduce(O,function(Q,ht){return tt.length>1?H.setEdge(Q,ht,j):H.setEdge(Q,ht),ht}),this},_.prototype.setEdge=function(){var O,j,H,tt,Q=!1,ht=arguments[0];typeof ht=="object"&&ht!==null&&"v"in ht?(O=ht.v,j=ht.w,H=ht.name,arguments.length===2&&(tt=arguments[1],Q=!0)):(O=ht,j=arguments[1],H=arguments[3],arguments.length>2&&(tt=arguments[2],Q=!0)),O=""+O,j=""+j,b.isUndefined(H)||(H=""+H);var K=A(this._isDirected,O,j,H);if(b.has(this._edgeLabels,K))return Q&&(this._edgeLabels[K]=tt),this;if(!b.isUndefined(H)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(j),this._edgeLabels[K]=Q?tt:this._defaultEdgeLabelFn(O,j,H);var xt=w(this._isDirected,O,j,H);return O=xt.v,j=xt.w,Object.freeze(xt),this._edgeObjs[K]=xt,y(this._preds[j],O),y(this._sucs[O],j),this._in[j][K]=xt,this._out[O][K]=xt,this._edgeCount++,this},_.prototype.edge=function(O,j,H){var tt=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,j,H);return this._edgeLabels[tt]},_.prototype.hasEdge=function(O,j,H){var tt=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,j,H);return b.has(this._edgeLabels,tt)},_.prototype.removeEdge=function(O,j,H){var tt=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,j,H),Q=this._edgeObjs[tt];return Q&&(O=Q.v,j=Q.w,delete this._edgeLabels[tt],delete this._edgeObjs[tt],E(this._preds[j],O),E(this._sucs[O],j),delete this._in[j][tt],delete this._out[O][tt],this._edgeCount--),this},_.prototype.inEdges=function(O,j){var H=this._in[O];if(H){var tt=b.values(H);return j?b.filter(tt,function(Q){return Q.v===j}):tt}},_.prototype.outEdges=function(O,j){var H=this._out[O];if(H){var tt=b.values(H);return j?b.filter(tt,function(Q){return Q.w===j}):tt}},_.prototype.nodeEdges=function(O,j){var H=this.inEdges(O,j);if(H)return H.concat(this.outEdges(O,j))}},2354:(M,R,f)=>{M.exports={Graph:f(771),version:f(9631)}},8974:(M,R,f)=>
1248{var b=f(9126),u=f(771);function _(E){return b.map(E.nodes(),function(A){var w=E.node(A),F=E.parent(A),O={v:A};return b.isUndefined(w)||(O.value=w),b.isUndefined(F)||(O.parent=F),O})}function y(E){return b.map(E.edges(),function(A){var w=E.edge(A),F={v:A.v,w:A.w};return b.isUndefined(A.name)||(F.name=A.name),b.isUndefined(w)||(F.value=w),F})}M.exports={write:function(E){var A={options:{directed:E.isDirected(),multigraph:E.isMultigraph(),compound:E.isCompound()},nodes:_(E),edges:y(E)};return b.isUndefined(E.graph())||(A.value=b.clone(E.graph())),A},read:function(E){var A=new u(E.options).setGraph(E.value);return b.each(E.nodes,function(w){A.setNode(w.v,w.value),w.parent&&A.setParent(w.v,w.parent)}),b.each(E.edges,function(w){A.setEdge({v:w.v,w:w.w,name:w.name},w.value)}),A}}},9126:(M,R,f)=>{var b;try{b={clone:f(6678),constant:f(5703),each:f(6073),filter:f(3105),has:f(8721),isArray:f(1469),isEmpty:f(1609),isFunction:f(3560),isUndefined:f(2353),keys:f(3674),map:f(5161),reduce:f(4061),size:f(4238),transform:f(8718),union:f(3386),values:f(2628)}}catch{}b||(b=window._),M.exports=b},9631:M=>{M.exports="2.1.8"},8552:(M,R,f)=>{var b=f(852)(f(5639),"DataView");M.exports=b},1989:(M,R,f)=>{var b=f(1789),u=f(401),_=f(7667),y=f(1327),E=f(1866);function A(w){var F=-1,O=w==null?0:w.length;for(this.clear();++F<O;){var j=w[F];this.set(j[0],j[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},8407:(M,R,f)=>{var b=f(7040),u=f(4125),_=f(2117),y=f(7518),E=f(4705);function A(w){var F=-1,O=w==null?0:w.length;for(this.clear();++F<O;){var j=w[F];this.set(j[0],j[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},7071:(M,R,f)=>{var b=f(852)(f(5639),"Map");M.exports=b},3369:(M,R,f)=>{var b=f(4785),u=f(1285),_=f(6e3),y=f(9916),E=f(5265);function A(w){var F=-1,O=w==null?0:w.length;for(this.clear();++F<O;){var j=w[F];this.set(j[0],j[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},3818:(M,R,f)=>{var b=f(852)(f(5639),"Promise");M.exports=b},8525:(M,R,f)=>{var b=f(852)(f(5639),"Set");M.exports=b},8668:(M,R,f)=>{var b=f(3369),u=f(619),_=f(2385);function y(E){var A=-1,w=E==null?0:E.length;for(this.__data__=new b;++A<w;)this.add(E[A])}y.prototype.add=y.prototype.push=u,y.prototype.has=_,M.exports=y},6384:(M,R,f)=>{var b=f(8407),u=f(7465),_=f(3779),y=f(7599),E=f(4758),A=f(4309);function w(F){var O=this.__data__=new b(F);this.size=O.size}w.prototype.clear=u,w.prototype.delete=_,w.prototype.get=y,w.prototype.has=E,w.prototype.set=A,M.exports=w},2705:(M,R,f)=>{var b=f(5639).Symbol;M.exports=b},1149:(M,R,f)=>{var b=f(5639).Uint8Array;M.exports=b},577:(M,R,f)=>{var b=f(852)(f(5639),"WeakMap");M.exports=b},6874:M=>{M.exports=function(R,f,b){switch(b.length){case 0:return R.call(f);case 1:return R.call(f,b[0]);case 2:return R.call(f,b[0],b[1]);case 3:return R.call(f,b[0],b[1],b[2])}return R.apply(f,b)}},7412:M=>{M.exports=function(R,f){for(var b=-1,u=R==null?0:R.length;++b<u&&f(R[b],b,R)!==!1;);return R}},4963:M=>{M.exports=function(R,f){for(var b=-1,u=R==null?0:R.length,_=0,y=[];++b<u;){var E=R[b];f(E,b,R)&&(y[_++]=E)}return y}},7443:(M,R,f)=>{var b=f(2118);M.exports=function(u,_){return!(u==null||!u.length)&&b(u,_,0)>-1}},1196:M=>{M.exports=function(R,f,b){for(var u=-1,_=R==null?0:R.length;++u<_;)if(b(f,R[u]))return!0;return!1}},4636:(M,R,f)=>{var b=f(2545),u=f(5694),_=f(1469),y=f(4144),E=f(5776),A=f(6719),w=Object.prototype.hasOwnProperty;M.exports=function(F,O){var j=_(F),H=!j&&u(F),tt=!j&&!H&&y(F),Q=!j&&!H&&!tt&&A(F),ht=j||H||tt||Q,K=ht?b(F.length,String):[],xt=K.length;
1248for(var at in F)!O&&!w.call(F,at)||ht&&(at=="length"||tt&&(at=="offset"||at=="parent")||Q&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||E(at,xt))||K.push(at);return K}},9932:M=>{M.exports=function(R,f){for(var b=-1,u=R==null?0:R.length,_=Array(u);++b<u;)_[b]=f(R[b],b,R);return _}},2488:M=>{M.exports=function(R,f){for(var b=-1,u=f.length,_=R.length;++b<u;)R[_+b]=f[b];return R}},2663:M=>{M.exports=function(R,f,b,u){var _=-1,y=R==null?0:R.length;for(u&&y&&(b=R[++_]);++_<y;)b=f(b,R[_],_,R);return b}},2908:M=>{M.exports=function(R,f){for(var b=-1,u=R==null?0:R.length;++b<u;)if(f(R[b],b,R))return!0;return!1}},8983:(M,R,f)=>{var b=f(371)("length");M.exports=b},6556:(M,R,f)=>{var b=f(9465),u=f(7813);M.exports=function(_,y,E){(E!==void 0&&!u(_[y],E)||E===void 0&&!(y in _))&&b(_,y,E)}},4865:(M,R,f)=>{var b=f(9465),u=f(7813),_=Object.prototype.hasOwnProperty;M.exports=function(y,E,A){var w=y[E];_.call(y,E)&&u(w,A)&&(A!==void 0||E in y)||b(y,E,A)}},8470:(M,R,f)=>{var b=f(7813);M.exports=function(u,_){for(var y=u.length;y--;)if(b(u[y][0],_))return y;return-1}},4037:(M,R,f)=>{var b=f(8363),u=f(3674);M.exports=function(_,y){return _&&b(y,u(y),_)}},3886:(M,R,f)=>{var b=f(8363),u=f(1704);M.exports=function(_,y){return _&&b(y,u(y),_)}},9465:(M,R,f)=>{var b=f(8777);M.exports=function(u,_,y){_=="__proto__"&&b?b(u,_,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[_]=y}},5990:(M,R,f)=>{var b=f(6384),u=f(7412),_=f(4865),y=f(4037),E=f(3886),A=f(4626),w=f(278),F=f(8805),O=f(1911),j=f(8234),H=f(6904),tt=f(4160),Q=f(3824),ht=f(9148),K=f(8517),xt=f(1469),at=f(4144),ut=f(6688),vt=f(3218),Zt=f(2928),Gt=f(3674),kt=f(1704),It="[object Arguments]",wt="[object Function]",mt="[object Object]",X={};X[It]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object DataView]"]=X["[object Boolean]"]=X["[object Date]"]=X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Map]"]=X["[object Number]"]=X[mt]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object Symbol]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Error]"]=X[wt]=X["[object WeakMap]"]=!1,M.exports=function ot(z,yt,Y,bt,Ct,$t){var be,We=1&yt,xe=2&yt,pe=4&yt;if(Y&&(be=Ct?Y(z,bt,Ct,$t):Y(z)),be!==void 0)return be;if(!vt(z))return z;var _e=xt(z);if(_e){if(be=Q(z),!We)return w(z,be)}else{var Ae=tt(z),De=Ae==wt||Ae=="[object GeneratorFunction]";if(at(z))return A(z,We);if(Ae==mt||Ae==It||De&&!Ct){if(be=xe||De?{}:K(z),!We)return xe?O(z,E(be,z)):F(z,y(be,z))}else{if(!X[Ae])return Ct?z:{};be=ht(z,Ae,We)}}$t||($t=new b);var me=$t.get(z);if(me)return me;$t.set(z,be),Zt(z)?z.forEach(function(fe){be.add(ot(fe,yt,Y,fe,z,$t))}):ut(z)&&z.forEach(function(fe,Qe){be.set(Qe,ot(fe,yt,Y,Qe,z,$t))});var wn=_e?void 0:(pe?xe?H:j:xe?kt:Gt)(z);return u(wn||z,function(fe,Qe){wn&&(fe=z[Qe=fe]),_(be,Qe,ot(fe,yt,Y,Qe,z,$t))}),be}},3118:(M,R,f)=>{var b=f(3218),u=Object.create,_=function(){function y(){}return function(E){if(!b(E))return{};if(u)return u(E);y.prototype=E;var A=new y;return y.prototype=void 0,A}}();M.exports=_},9881:(M,R,f)=>{var b=f(7816),u=f(9291)(b);M.exports=u},6029:(M,R,f)=>{var b=f(3448);M.exports=function(u,_,y){for(var E=-1,A=u.length;++E<A;){var w=u[E],F=_(w);if(F!=null&&(O===void 0?F==F&&!b(F):y(F,O)))var O=F,j=w}return j}},760:(M,R,f)=>{var b=f(9881);M.exports=function(u,_){var y=[];return b(u,function(E,A,w){_(E,A,w)&&y.push(E)}),y}},1848:M=>{M.exports=function(R,f,b,u){for(var _=R.length,y=b+(u?1:-1);u?y--:++y<_;)if(f(R[y],y,R))return y;return-1}},1078:(M,R,f)=>{var b=f(2488),u=f(7285);M.exports=function _(y,E,A,w,F){var O=-1,j=y.length;for(A||(A=u),F||(F=[]);++O<j;){var H=y[O];E>0&&A(H)?E>1?_(H,E-1,A,w,F):b(F,H):w||(F[F.length]=H)}return F}},8483:(M,R,f)=>{var b=f(5063)();M.exports=b},7816:(M,R,f)=>{var b=f(8483),u=f(3674);M.exports=function(_,y){return _&&b(_,y,u)}},7786:(M,R,f)=>{var b=f(1811),u=f(327);M.exports=function(_,y){for(var E=0,A=(y=b(y,_)).length;_!=null&&E<A;)_=_[u(y[E++])];return E&&E==A?_:void 0}},8866:(M,R,f)=>{var b=f(2488),u=f(1469);M.exports=function(_,y,E){var A=y(_);return u(_)?A:b(A,E(_))}},4239:(M,R,f)=>{var b=f(2705),u=f(9607),_=f(2333),y=b?b.toStringTag:void 0;
1248M.exports=function(E){return E==null?E===void 0?"[object Undefined]":"[object Null]":y&&y in Object(E)?u(E):_(E)}},3325:M=>{M.exports=function(R,f){return R>f}},8565:M=>{var R=Object.prototype.hasOwnProperty;M.exports=function(f,b){return f!=null&&R.call(f,b)}},13:M=>{M.exports=function(R,f){return R!=null&&f in Object(R)}},2118:(M,R,f)=>{var b=f(1848),u=f(2722),_=f(2351);M.exports=function(y,E,A){return E==E?_(y,E,A):b(y,u,A)}},9454:(M,R,f)=>{var b=f(4239),u=f(7005);M.exports=function(_){return u(_)&&b(_)=="[object Arguments]"}},939:(M,R,f)=>{var b=f(2492),u=f(7005);M.exports=function _(y,E,A,w,F){return y===E||(y==null||E==null||!u(y)&&!u(E)?y!=y&&E!=E:b(y,E,A,w,_,F))}},2492:(M,R,f)=>{var b=f(6384),u=f(7114),_=f(8351),y=f(6096),E=f(4160),A=f(1469),w=f(4144),F=f(6719),O="[object Arguments]",j="[object Array]",H="[object Object]",tt=Object.prototype.hasOwnProperty;M.exports=function(Q,ht,K,xt,at,ut){var vt=A(Q),Zt=A(ht),Gt=vt?j:E(Q),kt=Zt?j:E(ht),It=(Gt=Gt==O?H:Gt)==H,wt=(kt=kt==O?H:kt)==H,mt=Gt==kt;if(mt&&w(Q)){if(!w(ht))return!1;vt=!0,It=!1}if(mt&&!It)return ut||(ut=new b),vt||F(Q)?u(Q,ht,K,xt,at,ut):_(Q,ht,Gt,K,xt,at,ut);if(!(1&K)){var X=It&&tt.call(Q,"__wrapped__"),ot=wt&&tt.call(ht,"__wrapped__");
1248if(X||ot){var z=X?Q.value():Q,yt=ot?ht.value():ht;return ut||(ut=new b),at(z,yt,K,xt,ut)}}return!!mt&&(ut||(ut=new b),y(Q,ht,K,xt,at,ut))}},5588:(M,R,f)=>{var b=f(4160),u=f(7005);M.exports=function(_){return u(_)&&b(_)=="[object Map]"}},2958:(M,R,f)=>{var b=f(6384),u=f(939);M.exports=function(_,y,E,A){var w=E.length,F=w,O=!A;if(_==null)return!F;for(_=Object(_);w--;){var j=E[w];if(O&&j[2]?j[1]!==_[j[0]]:!(j[0]in _))return!1}for(;++w<F;){var H=(j=E[w])[0],tt=_[H],Q=j[1];if(O&&j[2]){if(tt===void 0&&!(H in _))return!1}else{var ht=new b;if(A)var K=A(tt,Q,H,_,y,ht);if(!(K===void 0?u(Q,tt,3,A,ht):K))return!1}}return!0}},2722:M=>{M.exports=function(R){return R!=R}},8458:(M,R,f)=>{var b=f(3560),u=f(5346),_=f(3218),y=f(346),E=/^\[object .+?Constructor\]$/,A=Function.prototype,w=Object.prototype,F=A.toString,O=w.hasOwnProperty,j=RegExp("^"+F.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");M.exports=function(H){return!(!_(H)||u(H))&&(b(H)?j:E).test(y(H))}},9221:(M,R,f)=>{var b=f(4160),u=f(7005);M.exports=function(_){return u(_)&&b(_)=="[object Set]"}},8749:(M,R,f)=>{var b=f(4239),u=f(1780),_=f(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,M.exports=function(E){return _(E)&&u(E.length)&&!!y[b(E)]}},7206:(M,R,f)=>{var b=f(1573),u=f(6432),_=f(6557),y=f(1469),E=f(9601);M.exports=function(A){return typeof A=="function"?A:A==null?_:typeof A=="object"?y(A)?u(A[0],A[1]):b(A):E(A)}},280:(M,R,f)=>{var b=f(5726),u=f(6916),_=Object.prototype.hasOwnProperty;M.exports=function(y){if(!b(y))return u(y);var E=[];for(var A in Object(y))_.call(y,A)&&A!="constructor"&&E.push(A);return E}},313:(M,R,f)=>{var b=f(3218),u=f(5726),_=f(3498),y=Object.prototype.hasOwnProperty;M.exports=function(E){if(!b(E))return _(E);var A=u(E),w=[];for(var F in E)(F!="constructor"||!A&&y.call(E,F))&&w.push(F);return w}},433:M=>{M.exports=function(R,f){return R<f}},9199:(M,R,f)=>{var b=f(9881),u=f(8612);M.exports=function(_,y){var E=-1,A=u(_)?Array(_.length):[];return b(_,function(w,F,O){A[++E]=y(w,F,O)}),A}},1573:(M,R,f)=>{var b=f(2958),u=f(1499),_=f(2634);M.exports=function(y){var E=u(y);return E.length==1&&E[0][2]?_(E[0][0],E[0][1]):function(A){return A===y||b(A,y,E)}}},6432:(M,R,f)=>{var b=f(939),u=f(7361),_=f(9095),y=f(5403),E=f(9162),A=f(2634),w=f(327);M.exports=function(F,O){return y(F)&&E(O)?A(w(F),O):function(j){var H=u(j,F);return H===void 0&&H===O?_(j,F):b(O,H,3)}}},2980:(M,R,f)=>{var b=f(6384),u=f(6556),_=f(8483),y=f(9783),E=f(3218),A=f(1704),w=f(6390);M.exports=function F(O,j,H,tt,Q){O!==j&&_(j,function(ht,K){if(Q||(Q=new b),E(ht))y(O,j,K,H,F,tt,Q);else{var xt=tt?tt(w(O,K),ht,K+"",O,j,Q):void 0;xt===void 0&&(xt=ht),u(O,K,xt)}},A)}},9783:(M,R,f)=>{var b=f(6556),u=f(4626),_=f(7133),y=f(278),E=f(8517),A=f(5694),w=f(1469),F=f(9246),O=f(4144),j=f(3560),H=f(3218),tt=f(8630),Q=f(6719),ht=f(6390),K=f(3678);M.exports=function(xt,at,ut,vt,Zt,Gt,kt){var It=ht(xt,ut),wt=ht(at,ut),mt=kt.get(wt);if(mt)b(xt,ut,mt);else{var X=Gt?Gt(It,wt,ut+"",xt,at,kt):void 0,ot=X===void 0;if(ot){var z=w(wt),yt=!z&&O(wt),Y=!z&&!yt&&Q(wt);X=wt,z||yt||Y?w(It)?X=It:F(It)?X=y(It):yt?(ot=!1,X=u(wt,!0)):Y?(ot=!1,X=_(wt,!0)):X=[]:tt(wt)||A(wt)?(X=It,A(It)?X=K(It):H(It)&&!j(It)||(X=E(wt))):ot=!1}ot&&(kt.set(wt,X),Zt(X,wt,vt,Gt,kt),kt.delete(wt)),b(xt,ut,X)}}},9556:(M,R,f)=>{var b=f(9932),u=f(7786),_=f(7206),y=f(9199),E=f(1131),A=f(1717),w=f(5022),F=f(6557),O=f(1469);M.exports=function(j,H,tt){H=H.length?b(H,function(K){return O(K)?function(xt){return u(xt,K.length===1?K[0]:K)}:K}):[F];var Q=-1;H=b(H,A(_));var ht=y(j,function(K,xt,at){return{criteria:b(H,function(ut){return ut(K)}),index:++Q,value:K}});return E(ht,function(K,xt){return w(K,xt,tt)})}},5970:(M,R,f)=>{var b=f(3012),u=f(9095);M.exports=function(_,y){return b(_,y,function(E,A){return u(_,A)})}},3012:(M,R,f)=>{var b=f(7786),u=f(611),_=f(1811);M.exports=function(y,E,A){for(var w=-1,F=E.length,O={};++w<F;){var j=E[w],H=b(y,j);A(H,j)&&u(O,_(j,y),H)}return O}},371:M=>{M.exports=function(R){return function(f){return f==null?void 0:f[R]}}},9152:(M,R,f)=>{var b=f(7786);M.exports=function(u){return function(_){return b(_,u)}}},98:M=>{var R=Math.ceil,f=Math.max;M.exports=function(b,u,_,y){for(var E=-1,A=f(R((u-b)/(_||1)),0),w=Array(A);A--;
1248)w[y?A:++E]=b,b+=_;return w}},107:M=>{M.exports=function(R,f,b,u,_){return _(R,function(y,E,A){b=u?(u=!1,y):f(b,y,E,A)}),b}},5976:(M,R,f)=>{var b=f(6557),u=f(5357),_=f(61);M.exports=function(y,E){return _(u(y,E,b),y+"")}},611:(M,R,f)=>{var b=f(4865),u=f(1811),_=f(5776),y=f(3218),E=f(327);M.exports=function(A,w,F,O){if(!y(A))return A;for(var j=-1,H=(w=u(w,A)).length,tt=H-1,Q=A;Q!=null&&++j<H;){var ht=E(w[j]),K=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return A;if(j!=tt){var xt=Q[ht];(K=O?O(xt,ht,Q):void 0)===void 0&&(K=y(xt)?xt:_(w[j+1])?[]:{})}b(Q,ht,K),Q=Q[ht]}return A}},6560:(M,R,f)=>{var b=f(5703),u=f(8777),_=f(6557),y=u?function(E,A){return u(E,"toString",{configurable:!0,enumerable:!1,value:b(A),writable:!0})}:_;M.exports=y},1131:M=>{M.exports=function(R,f){var b=R.length;for(R.sort(f);b--;)R[b]=R[b].value;return R}},2545:M=>{M.exports=function(R,f){for(var b=-1,u=Array(R);++b<R;)u[b]=f(b);return u}},531:(M,R,f)=>{var b=f(2705),u=f(9932),_=f(1469),y=f(3448),E=b?b.prototype:void 0,A=E?E.toString:void 0;M.exports=function w(F){if(typeof F=="string")return F;if(_(F))return u(F,w)+"";if(y(F))return A?A.call(F):"";var O=F+"";return O=="0"&&1/F==-1/0?"-0":O}},7561:(M,R,f)=>{var b=f(7990),u=/^\s+/;M.exports=function(_){return _&&_.slice(0,b(_)+1).replace(u,"")}},1717:M=>{M.exports=function(R){return function(f){return R(f)}}},5652:(M,R,f)=>{var b=f(8668),u=f(7443),_=f(1196),y=f(4757),E=f(3593),A=f(1814);M.exports=function(w,F,O){var j=-1,H=u,tt=w.length,Q=!0,ht=[],K=ht;if(O)Q=!1,H=_;else if(tt>=200){var xt=F?null:E(w);if(xt)return A(xt);Q=!1,H=y,K=new b}else K=F?[]:ht;t:for(;++j<tt;){var at=w[j],ut=F?F(at):at;if(at=O||at!==0?at:0,Q&&ut==ut){for(var vt=K.length;vt--;)if(K[vt]===ut)continue t;F&&K.push(ut),ht.push(at)}else H(K,ut,O)||(K!==ht&&K.push(ut),ht.push(at))}return ht}},7415:(M,R,f)=>{var b=f(9932);M.exports=function(u,_){return b(_,function(y){return u[y]})}},1757:M=>{M.exports=function(R,f,b){for(var u=-1,_=R.length,y=f.length,E={};++u<_;){var A=u<y?f[u]:void 0;b(E,R[u],A)}return E}},4757:M=>{M.exports=function(R,f){return R.has(f)}},4290:(M,R,f)=>{var b=f(6557);M.exports=function(u){return typeof u=="function"?u:b}},1811:(M,R,f)=>{var b=f(1469),u=f(5403),_=f(5514),y=f(9833);M.exports=function(E,A){return b(E)?E:u(E,A)?[E]:_(y(E))}},4318:(M,R,f)=>{var b=f(1149);M.exports=function(u){var _=new u.constructor(u.byteLength);return new b(_).set(new b(u)),_}},4626:(M,R,f)=>{M=f.nmd(M);var b=f(5639),u=R&&!R.nodeType&&R,_=u&&M&&!M.nodeType&&M,y=_&&_.exports===u?b.Buffer:void 0,E=y?y.allocUnsafe:void 0;M.exports=function(A,w){if(w)return A.slice();var F=A.length,O=E?E(F):new A.constructor(F);return A.copy(O),O}},7157:(M,R,f)=>{var b=f(4318);M.exports=function(u,_){var y=_?b(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}},3147:M=>{var R=/\w*$/;M.exports=function(f){var b=new f.constructor(f.source,R.exec(f));return b.lastIndex=f.lastIndex,b}},419:(M,R,f)=>{var b=f(2705),u=b?b.prototype:void 0,_=u?u.valueOf:void 0;M.exports=function(y){return _?Object(_.call(y)):{}}},7133:(M,R,f)=>{var b=f(4318);M.exports=function(u,_){var y=_?b(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}},6393:(M,R,f)=>{var b=f(3448);M.exports=function(u,_){if(u!==_){var y=u!==void 0,E=u===null,A=u==u,w=b(u),F=_!==void 0,O=_===null,j=_==_,H=b(_);if(!O&&!H&&!w&&u>_||w&&F&&j&&!O&&!H||E&&F&&j||!y&&j||!A)return 1;if(!E&&!w&&!H&&u<_||H&&y&&A&&!E&&!w||O&&y&&A||!F&&A||!j)return-1}return 0}},5022:(M,R,f)=>{var b=f(6393);M.exports=function(u,_,y){for(var E=-1,A=u.criteria,w=_.criteria,F=A.length,O=y.length;++E<F;){var j=b(A[E],w[E]);if(j)return E>=O?j:j*(y[E]=="desc"?-1:1)}return u.index-_.index}},278:M=>{M.exports=function(R,f){var b=-1,u=R.length;for(f||(f=Array(u));++b<u;)f[b]=R[b];return f}},8363:(M,R,f)=>{var b=f(4865),u=f(9465);M.exports=function(_,y,E,A){var w=!E;E||(E={});for(var F=-1,O=y.length;++F<O;){var j=y[F],H=A?A(E[j],_[j],j,E,_):void 0;H===void 0&&(H=_[j]),w?u(E,j,H):b(E,j,H)}return E}},8805:(M,R,f)=>{var b=f(8363),u=f(9551);M.exports=function(_,y){return b(_,u(_),y)}},1911:(M,R,f)=>{var b=f(8363),u=f(1442);M.exports=function(_,y){return b(_,u(_),y)}},4429:(M,R,f)=>{var b=f(5639)["__core-js_shared__"];M.exports=b},1463:(M,R,f)=>{var b=f(5976),u=f(6612);M.exports=function(_){return b(function(y,E){var A=-1,w=E.length,F=w>1?E[w-1]:void 0,O=w>2?E[2]:void 0;for(F=_.length>3&&typeof F=="function"?(w--,F):void 0,O&&u(E[0],E[1],O)&&(F=w<3?void 0:F,w=1),y=Object(y);++A<w;){var j=E[A];j&&_(y,j,A,F)}return y})}},9291:(M,R,f)=>{var b=f(8612);
1248M.exports=function(u,_){return function(y,E){if(y==null)return y;if(!b(y))return u(y,E);for(var A=y.length,w=_?A:-1,F=Object(y);(_?w--:++w<A)&&E(F[w],w,F)!==!1;);return y}}},5063:M=>{M.exports=function(R){return function(f,b,u){for(var _=-1,y=Object(f),E=u(f),A=E.length;A--;){var w=E[R?A:++_];if(b(y[w],w,y)===!1)break}return f}}},7740:(M,R,f)=>{var b=f(7206),u=f(8612),_=f(3674);M.exports=function(y){return function(E,A,w){var F=Object(E);if(!u(E)){var O=b(A,3);E=_(E),A=function(H){return O(F[H],H,F)}}var j=y(E,A,w);return j>-1?F[O?E[j]:j]:void 0}}},7445:(M,R,f)=>{var b=f(98),u=f(6612),_=f(8601);M.exports=function(y){return function(E,A,w){return w&&typeof w!="number"&&u(E,A,w)&&(A=w=void 0),E=_(E),A===void 0?(A=E,E=0):A=_(A),w=w===void 0?E<A?1:-1:_(w),b(E,A,w,y)}}},3593:(M,R,f)=>{var b=f(8525),u=f(308),_=f(1814),y=b&&1/_(new b([,-0]))[1]==1/0?function(E){return new b(E)}:u;M.exports=y},8777:(M,R,f)=>{var b=f(852),u=function(){try{var _=b(Object,"defineProperty");return _({},"",{}),_}catch{}}();M.exports=u},7114:(M,R,f)=>{var b=f(8668),u=f(2908),_=f(4757);M.exports=function(y,E,A,w,F,O){var j=1&A,H=y.length,tt=E.length;if(H!=tt&&!(j&&tt>H))return!1;var Q=O.get(y),ht=O.get(E);if(Q&&ht)return Q==E&&ht==y;var K=-1,xt=!0,at=2&A?new b:void 0;for(O.set(y,E),O.set(E,y);++K<H;){var ut=y[K],vt=E[K];if(w)var Zt=j?w(vt,ut,K,E,y,O):w(ut,vt,K,y,E,O);if(Zt!==void 0){if(Zt)continue;xt=!1;break}if(at){if(!u(E,function(Gt,kt){if(!_(at,kt)&&(ut===Gt||F(ut,Gt,A,w,O)))return at.push(kt)})){xt=!1;break}}else if(ut!==vt&&!F(ut,vt,A,w,O)){xt=!1;break}}return O.delete(y),O.delete(E),xt}},8351:(M,R,f)=>{var b=f(2705),u=f(1149),_=f(7813),y=f(7114),E=f(8776),A=f(1814),w=b?b.prototype:void 0,F=w?w.valueOf:void 0;M.exports=function(O,j,H,tt,Q,ht,K){switch(H){case"[object DataView]":if(O.byteLength!=j.byteLength||O.byteOffset!=j.byteOffset)return!1;O=O.buffer,j=j.buffer;case"[object ArrayBuffer]":return!(O.byteLength!=j.byteLength||!ht(new u(O),new u(j)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+O,+j);case"[object Error]":return O.name==j.name&&O.message==j.message;case"[object RegExp]":case"[object String]":return O==j+"";case"[object Map]":var xt=E;case"[object Set]":var at=1&tt;if(xt||(xt=A),O.size!=j.size&&!at)return!1;var ut=K.get(O);if(ut)return ut==j;tt|=2,K.set(O,j);var vt=y(xt(O),xt(j),tt,Q,ht,K);return K.delete(O),vt;case"[object Symbol]":if(F)return F.call(O)==F.call(j)}return!1}},6096:(M,R,f)=>{var b=f(8234),u=Object.prototype.hasOwnProperty;M.exports=function(_,y,E,A,w,F){var O=1&E,j=b(_),H=j.length;if(H!=b(y).length&&!O)return!1;for(var tt=H;tt--;){var Q=j[tt];if(!(O?Q in y:u.call(y,Q)))return!1}var ht=F.get(_),K=F.get(y);if(ht&&K)return ht==y&&K==_;var xt=!0;F.set(_,y),F.set(y,_);for(var at=O;++tt<H;){var ut=_[Q=j[tt]],vt=y[Q];if(A)var Zt=O?A(vt,ut,Q,y,_,F):A(ut,vt,Q,_,y,F);if(!(Zt===void 0?ut===vt||w(ut,vt,E,A,F):Zt)){xt=!1;break}at||(at=Q=="constructor")}if(xt&&!at){var Gt=_.constructor,kt=y.constructor;Gt==kt||!("constructor"in _)||!("constructor"in y)||typeof Gt=="function"&&Gt instanceof Gt&&typeof kt=="function"&&kt instanceof kt||(xt=!1)}return F.delete(_),F.delete(y),xt}},9021:(M,R,f)=>{var b=f(5564),u=f(5357),_=f(61);M.exports=function(y){return _(u(y,void 0,b),y+"")}},1957:(M,R,f)=>{var b=typeof f.g=="object"&&f.g&&f.g.Object===Object&&f.g;M.exports=b},8234:(M,R,f)=>{var b=f(8866),u=f(9551),_=f(3674);M.exports=function(y){return b(y,_,u)}},6904:(M,R,f)=>{var b=f(8866),u=f(1442),_=f(1704);M.exports=function(y){return b(y,_,u)}},5050:(M,R,f)=>{var b=f(7019);M.exports=function(u,_){var y=u.__data__;return b(_)?y[typeof _=="string"?"string":"hash"]:y.map}},1499:(M,R,f)=>{var b=f(9162),u=f(3674);M.exports=function(_){for(var y=u(_),E=y.length;E--;){var A=y[E],w=_[A];y[E]=[A,w,b(w)]}return y}},852:(M,R,f)=>{var b=f(8458),u=f(7801);M.exports=function(_,y){var E=u(_,y);return b(E)?E:void 0}},5924:(M,R,f)=>{var b=f(5569)(Object.getPrototypeOf,Object);M.exports=b},9607:(M,R,f)=>{var b=f(2705),u=Object.prototype,_=u.hasOwnProperty,y=u.toString,E=b?b.toStringTag:void 0;M.exports=function(A){var w=_.call(A,E),F=A[E];try{A[E]=void 0;var O=!0}catch{}var j=y.call(A);return O&&(w?A[E]=F:delete A[E]),j}},9551:(M,R,f)=>{var b=f(4963),u=f(479),_=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,E=y?function(A){return A==null?[]:(A=Object(A),b(y(A),function(w){return _.call(A,w
1248)}))}:u;M.exports=E},1442:(M,R,f)=>{var b=f(2488),u=f(5924),_=f(9551),y=f(479),E=Object.getOwnPropertySymbols?function(A){for(var w=[];A;)b(w,_(A)),A=u(A);return w}:y;M.exports=E},4160:(M,R,f)=>{var b=f(8552),u=f(7071),_=f(3818),y=f(8525),E=f(577),A=f(4239),w=f(346),F="[object Map]",O="[object Promise]",j="[object Set]",H="[object WeakMap]",tt="[object DataView]",Q=w(b),ht=w(u),K=w(_),xt=w(y),at=w(E),ut=A;(b&&ut(new b(new ArrayBuffer(1)))!=tt||u&&ut(new u)!=F||_&&ut(_.resolve())!=O||y&&ut(new y)!=j||E&&ut(new E)!=H)&&(ut=function(vt){var Zt=A(vt),Gt=Zt=="[object Object]"?vt.constructor:void 0,kt=Gt?w(Gt):"";if(kt)switch(kt){case Q:return tt;case ht:return F;case K:return O;case xt:return j;case at:return H}return Zt}),M.exports=ut},7801:M=>{M.exports=function(R,f){return R==null?void 0:R[f]}},222:(M,R,f)=>{var b=f(1811),u=f(5694),_=f(1469),y=f(5776),E=f(1780),A=f(327);M.exports=function(w,F,O){for(var j=-1,H=(F=b(F,w)).length,tt=!1;++j<H;){var Q=A(F[j]);if(!(tt=w!=null&&O(w,Q)))break;w=w[Q]}return tt||++j!=H?tt:!!(H=w==null?0:w.length)&&E(H)&&y(Q,H)&&(_(w)||u(w))}},2689:M=>{var R=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");M.exports=function(f){return R.test(f)}},1789:(M,R,f)=>{var b=f(4536);M.exports=function(){this.__data__=b?b(null):{},this.size=0}},401:M=>{M.exports=function(R){var f=this.has(R)&&delete this.__data__[R];return this.size-=f?1:0,f}},7667:(M,R,f)=>{var b=f(4536),u=Object.prototype.hasOwnProperty;M.exports=function(_){var y=this.__data__;if(b){var E=y[_];return E==="__lodash_hash_undefined__"?void 0:E}return u.call(y,_)?y[_]:void 0}},1327:(M,R,f)=>{var b=f(4536),u=Object.prototype.hasOwnProperty;M.exports=function(_){var y=this.__data__;return b?y[_]!==void 0:u.call(y,_)}},1866:(M,R,f)=>{var b=f(4536);M.exports=function(u,_){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=b&&_===void 0?"__lodash_hash_undefined__":_,this}},3824:M=>{var R=Object.prototype.hasOwnProperty;M.exports=function(f){var b=f.length,u=new f.constructor(b);return b&&typeof f[0]=="string"&&R.call(f,"index")&&(u.index=f.index,u.
1248input=f.input),u}},9148:(M,R,f)=>{var b=f(4318),u=f(7157),_=f(3147),y=f(419),E=f(7133);M.exports=function(A,w,F){var O=A.constructor;switch(w){case"[object ArrayBuffer]":return b(A);case"[object Boolean]":case"[object Date]":return new O(+A);case"[object DataView]":return u(A,F);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 E(A,F);case"[object Map]":case"[object Set]":return new O;case"[object Number]":case"[object String]":return new O(A);case"[object RegExp]":return _(A);case"[object Symbol]":return y(A)}}},8517:(M,R,f)=>{var b=f(3118),u=f(5924),_=f(5726);M.exports=function(y){return typeof y.constructor!="function"||_(y)?{}:b(u(y))}},7285:(M,R,f)=>{var b=f(2705),u=f(5694),_=f(1469),y=b?b.isConcatSpreadable:void 0;M.exports=function(E){return _(E)||u(E)||!!(y&&E&&E[y])}},5776:M=>{var R=/^(?:0|[1-9]\d*)$/;M.exports=function(f,b){var u=typeof f;return!!(b=b??9007199254740991)&&(u=="number"||u!="symbol"&&R.test(f))&&f>-1&&f%1==0&&f<b}},6612:(M,R,f)=>{var b=f(7813),u=f(8612),_=f(5776),y=f(3218);M.exports=function(E,A,w){if(!y(w))return!1;var F=typeof A;return!!(F=="number"?u(w)&&_(A,w.length):F=="string"&&A in w)&&b(w[A],E)}},5403:(M,R,f)=>{var b=f(1469),u=f(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;M.exports=function(E,A){if(b(E))return!1;var w=typeof E;return!(w!="number"&&w!="symbol"&&w!="boolean"&&E!=null&&!u(E))||y.test(E)||!_.test(E)||A!=null&&E in Object(A)}},7019:M=>{M.exports=function(R){var f=typeof R;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?R!=="__proto__":R===null}},5346:(M,R,f)=>{var b,u=f(4429),_=(b=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";M.exports=function(y){return!!_&&_ in y}},5726:M=>{var R=Object.prototype;M.exports=function(f){var b=f&&f.constructor;return f===(typeof b=="function"&&b.prototype||R)}},9162:(M,R,f)=>{var b=f(3218);M.exports=function(u){return u==u&&!b(u)}},7040:M=>{M.exports=function(){this.__data__=[],this.size=0}},4125:(M,R,f)=>{var b=f(8470),u=Array.prototype.splice;M.exports=function(_){var y=this.__data__,E=b(y,_);return!(E<0||(E==y.length-1?y.pop():u.call(y,E,1),--this.size,0))}},2117:(M,R,f)=>{var b=f(8470);M.exports=function(u){var _=this.__data__,y=b(_,u);return y<0?void 0:_[y][1]}},7518:(M,R,f)=>{var b=f(8470);M.exports=function(u){return b(this.__data__,u)>-1}},4705:(M,R,f)=>{var b=f(8470);M.exports=function(u,_){var y=this.__data__,E=b(y,u);return E<0?(++this.size,y.push([u,_])):y[E][1]=_,this}},4785:(M,R,f)=>{var b=f(1989),u=f(8407),_=f(7071);M.exports=function(){this.size=0,this.__data__={hash:new b,map:new(_||u),string:new b}}},1285:(M,R,f)=>{var b=f(5050);M.exports=function(u){var _=b(this,u).delete(u);return this.size-=_?1:0,_}},6e3:(M,R,f)=>{var b=f(5050);M.exports=function(u){return b(this,u).get(u)}},9916:(M,R,f)=>{var b=f(5050);M.exports=function(u){return b(this,u).has(u)}},5265:(M,R,f)=>{var b=f(5050);M.exports=function(u,_){var y=b(this,u),E=y.size;return y.set(u,_),this.size+=y.size==E?0:1,this}},8776:M=>{M.exports=function(R){var f=-1,b=Array(R.size);return R.forEach(function(u,_){b[++f]=[_,u]}),b}},2634:M=>{M.exports=function(R,f){return function(b){return b!=null&&b[R]===f&&(f!==void 0||R in Object(b))}}},4523:(M,R,f)=>{var b=f(8306);M.exports=function(u){var _=b(u,function(E){return y.size===500&&y.clear(),E}),y=_.cache;return _}},4536:(M,R,f)=>{var b=f(852)(Object,"create");M.exports=b},6916:(M,R,f)=>{var b=f(5569)(Object.keys,Object);M.exports=b},3498:M=>{M.exports=function(R){var f=[];if(R!=null)for(var b in Object(R))f.push(b);return f}},1167:(M,R,f)=>{M=f.nmd(M);var b=f(1957),u=R&&!R.nodeType&&R,_=u&&M&&!M.nodeType&&M,y=_&&_.exports===u&&b.process,E=function(){try{return _&&_.require&&_.require("util").types||y&&y.binding&&y.binding("util")}catch{}}();M.exports=E},2333:M=>{var R=Object.prototype.toString;M.exports=function(f){return R.call(f)}},5569:M=>{M.exports=function(R,f){return function(b){return R(f(b))}}},5357:(M,R,f)=>{var b=f(6874),u=Math.max;M.exports=function(_,y,E){return y=u(y===void 0?_.length-1:y,0),function(){for(var A=arguments,w=-1,F=u(A.length-y,0),O=Array(F);++w<F;)O[w]=A[y+w];w=-1;for(var j=Array(y+1);++w<y;)j[w]=A[w];return j[y]=E(O),b(_,this,j)}}},5639:(M,R,f)=>{var b=f(1957),u=typeof self=="object"&&self&&self.Object===Object&&self,_=b||u||Function("return this")();M.exports=_},6390:M=>{M.exports=function(R,f){if((f!=="constructor"||typeof R[f]!="function")&&f!="__proto__")return R[f]}},619:M=>{M.exports=function(R){return this.__data__.set(R,"__lodash_hash_undefined__"),this}},2385:M=>{M.exports=function(R){return this.__data__.has(R)}},1814:M=>{M.exports=function(R){var f=-1,b=Array(R.size);return R.forEach(function(u){b[++f]=u}),b}},61:(M,R,f)=>{var b=f(6560),u=f(1275)(b);M.exports=u},1275:M=>{var R=Date.now;M.exports=function(f){var b=0,u=0;return function(){var _=R(),y=16-(_-u);if(u=_,y>0){if(++b>=800)return arguments[0]}else b=0;return f.apply(void 0,arguments)}}},7465:(M,R,f)=>{var b=f(8407);M.exports=function(){this.__data__=new b,this.size=0}}
1248,3779:M=>{M.exports=function(R){var f=this.__data__,b=f.delete(R);return this.size=f.size,b}},7599:M=>{M.exports=function(R){return this.__data__.get(R)}},4758:M=>{M.exports=function(R){return this.__data__.has(R)}},4309:(M,R,f)=>{var b=f(8407),u=f(7071),_=f(3369);M.exports=function(y,E){var A=this.__data__;if(A instanceof b){var w=A.__data__;if(!u||w.length<199)return w.push([y,E]),this.size=++A.size,this;A=this.__data__=new _(w)}return A.set(y,E),this.size=A.size,this}},2351:M=>{M.exports=function(R,f,b){for(var u=b-1,_=R.length;++u<_;)if(R[u]===f)return u;return-1}},8016:(M,R,f)=>{var b=f(8983),u=f(2689),_=f(1903);M.exports=function(y){return u(y)?_(y):b(y)}},5514:(M,R,f)=>{var b=f(4523),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,y=b(function(E){var A=[];return E.charCodeAt(0)===46&&A.push(""),E.replace(u,function(w,F,O,j){A.push(O?j.replace(_,"$1"):F||w)}),A});M.exports=y},327:(M,R,f)=>{var b=f(3448);M.exports=function(u){if(typeof u=="string"||b(u))return u;var _=u+"";return _=="0"&&1/u==-1/0?"-0":_}},346:M=>{var R=Function.prototype.toString;M.exports=function(f){if(f!=null){try{return R.call(f)}catch{}try{return f+""}catch{}}return""}},7990:M=>{var R=/\s/;M.exports=function(f){for(var b=f.length;b--&&R.test(f.charAt(b)););return b}},1903:M=>{var R="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",f="\\ud83c[\\udffb-\\udfff]",b="[^\\ud800-\\udfff]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+R+"|"+f+")?",E="[\\ufe0e\\ufe0f]?",A=E+y+"(?:\\u200d(?:"+[b,u,_].join("|")+")"+E+y+")*",w="(?:"+[b+R+"?",R,u,_,"[\\ud800-\\udfff]"].join("|")+")",F=RegExp(f+"(?="+f+")|"+w+A,"g");M.exports=function(O){for(var j=F.lastIndex=0;F.test(O);)++j;return j}},6678:(M,R,f)=>{var b=f(5990);M.exports=function(u){return b(u,4)}},361:(M,R,f)=>{var b=f(5990);M.exports=function(u){return b(u,5)}},5703:M=>{M.exports=function(R){return function(){return R}}},1747:(M,R,f)=>{var b=f(5976),u=f(7813),_=f(6612),y=f(1704),E=Object.prototype,A=E.hasOwnProperty,w=b(function(F,O){F=Object(F);var j=-1,H=O.length,tt=H>2?O[2]:void 0;for(tt&&_(O[0],O[1],tt)&&(H=1);++j<H;)for(var Q=O[j],ht=y(Q),K=-1,xt=ht.length;++K<xt;){var at=ht[K],ut=F[at];(ut===void 0||u(ut,E[at])&&!A.call(F,at))&&(F[at]=Q[at])}return F});M.exports=w},6073:(M,R,f)=>{M.exports=f(4486)},7813:M=>{M.exports=function(R,f){return R===f||R!=R&&f!=f}},3105:(M,R,f)=>{var b=f(4963),u=f(760),_=f(7206),y=f(1469);M.exports=function(E,A){return(y(E)?b:u)(E,_(A,3))}},3311:(M,R,f)=>{var b=f(7740)(f(998));M.exports=b},998:(M,R,f)=>{var b=f(1848),u=f(7206),_=f(554),y=Math.max;M.exports=function(E,A,w){var F=E==null?0:E.length;if(!F)return-1;var O=w==null?0:_(w);return O<0&&(O=y(F+O,0)),b(E,u(A,3),O)}},5564:(M,R,f)=>{var b=f(1078);M.exports=function(u){return u!=null&&u.length?b(u,1):[]}},4486:(M,R,f)=>{var b=f(7412),u=f(9881),_=f(4290),y=f(1469);M.exports=function(E,A){return(y(E)?b:u)(E,_(A))}},2620:(M,R,f)=>{var b=f(8483),u=f(4290),_=f(1704);M.exports=function(y,E){return y==null?y:b(y,u(E),_)}},7361:(M,R,f)=>{var b=f(7786);M.exports=function(u,_,y){var E=u==null?void 0:b(u,_);return E===void 0?y:E}},8721:(M,R,f)=>{var b=f(8565),u=f(222);M.exports=function(_,y){return _!=null&&u(_,y,b)}},9095:(M,R,f)=>{var b=f(13),u=f(222);M.exports=function(_,y){return _!=null&&u(_,y,b)}},6557:M=>{M.exports=function(R){return R}},5694:(M,R,f)=>{var b=f(9454),u=f(7005),_=Object.prototype,y=_.hasOwnProperty,E=_.propertyIsEnumerable,A=b(function(){return arguments}())?b:function(w){return u(w)&&y.call(w,"callee")&&!E.call(w,"callee")};M.exports=A},1469:M=>{var R=Array.isArray;M.exports=R},8612:(M,R,f)=>{var b=f(3560),u=f(1780);M.exports=function(_){return _!=null&&u(_.length)&&!b(_)}},9246:(M,R,f)=>{var b=f(8612),u=f(7005);M.exports=function(_){return u(_)&&b(_)}},4144:(M,R,f)=>{M=f.nmd(M);var b=f(5639),u=f(5062),_=R&&!R.nodeType&&R,y=_&&M&&!M.nodeType&&M,E=y&&y.exports===_?b.Buffer:void 0,A=(E?E.isBuffer:void 0)||u;M.exports=A},1609:(M,R,f)=>{var b=f(280),u=f(4160),_=f(5694),y=f(1469),E=f(8612),A=f(4144),w=f(5726),F=f(6719),O=Object.prototype.hasOwnProperty;M.exports=function(j){if(j==null)return!0;
1248if(E(j)&&(y(j)||typeof j=="string"||typeof j.splice=="function"||A(j)||F(j)||_(j)))return!j.length;var H=u(j);if(H=="[object Map]"||H=="[object Set]")return!j.size;if(w(j))return!b(j).length;for(var tt in j)if(O.call(j,tt))return!1;return!0}},3560:(M,R,f)=>{var b=f(4239),u=f(3218);M.exports=function(_){if(!u(_))return!1;var y=b(_);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:M=>{M.exports=function(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=9007199254740991}},6688:(M,R,f)=>{var b=f(5588),u=f(1717),_=f(1167),y=_&&_.isMap,E=y?u(y):b;M.exports=E},3218:M=>{M.exports=function(R){var f=typeof R;return R!=null&&(f=="object"||f=="function")}},7005:M=>{M.exports=function(R){return R!=null&&typeof R=="object"}},8630:(M,R,f)=>{var b=f(4239),u=f(5924),_=f(7005),y=Function.prototype,E=Object.prototype,A=y.toString,w=E.hasOwnProperty,F=A.call(Object);M.exports=function(O){if(!_(O)||b(O)!="[object Object]")return!1;var j=u(O);if(j===null)return!0;var H=w.call(j,"constructor")&&j.constructor;return typeof H=="function"&&H instanceof H&&A.call(H)==F}},2928:(M,R,f)=>{var b=f(9221),u=f(1717),_=f(1167),y=_&&_.isSet,E=y?u(y):b;M.exports=E},7037:(M,R,f)=>{var b=f(4239),u=f(1469),_=f(7005);M.exports=function(y){return typeof y=="string"||!u(y)&&_(y)&&b(y)=="[object String]"}},3448:(M,R,f)=>{var b=f(4239),u=f(7005);M.exports=function(_){return typeof _=="symbol"||u(_)&&b(_)=="[object Symbol]"}},6719:(M,R,f)=>{var b=f(8749),u=f(1717),_=f(1167),y=_&&_.isTypedArray,E=y?u(y):b;M.exports=E},2353:M=>{M.exports=function(R){return R===void 0}},3674:(M,R,f)=>{var b=f(4636),u=f(280),_=f(8612);M.exports=function(y){return _(y)?b(y):u(y)}},1704:(M,R,f)=>{var b=f(4636),u=f(313),_=f(8612);M.exports=function(y){return _(y)?b(y,!0):u(y)}},928:M=>{M.exports=function(R){var f=R==null?0:R.length;return f?R[f-1]:void 0}},5161:(M,R,f)=>{var b=f(9932),u=f(7206),_=f(9199),y=f(1469);M.exports=function(E,A){return(y(E)?b:_)(E,u(A,3))}},6604:(M,R,f)=>{var b=f(9465),u=f(7816),_=f(7206);M.exports=function(y,E){var A={};return E=_(E,3),u(y,function(w,F,O){b(A,F,E(w,F,O))}),A}},6162:(M,R,f)=>{var b=f(6029),u=f(3325),_=f(6557);M.exports=function(y){return y&&y.length?b(y,_,u):void 0}},8306:(M,R,f)=>{var b=f(3369);function u(_,y){if(typeof _!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var E=function(){var A=arguments,w=y?y.apply(this,A):A[0],F=E.cache;if(F.has(w))return F.get(w);var O=_.apply(this,A);return E.cache=F.set(w,O)||F,O};return E.cache=new(u.Cache||b),E}u.Cache=b,M.exports=u},3857:(M,R,f)=>{var b=f(2980),u=f(1463)(function(_,y,E){b(_,y,E)});M.exports=u},3632:(M,R,f)=>{var b=f(6029),u=f(433),_=f(6557);M.exports=function(y){return y&&y.length?b(y,_,u):void 0}},2762:(M,R,f)=>{var b=f(6029),u=f(7206),_=f(433);M.exports=function(y,E){return y&&y.length?b(y,u(E,2),_):void 0}},308:M=>{M.exports=function(){}},7771:(M,R,f)=>{var b=f(5639);M.exports=function(){return b.Date.now()}},9722:(M,R,f)=>{var b=f(5970),u=f(9021)(function(_,y){return _==null?{}:b(_,y)});M.exports=u},9601:(M,R,f)=>{var b=f(371),u=f(9152),_=f(5403),y=f(327);M.exports=function(E){return _(E)?b(y(E)):u(E)}},6026:(M,R,f)=>{var b=f(7445)();M.exports=b},4061:(M,R,f)=>{var b=f(2663),u=f(9881),_=f(7206),y=f(107),E=f(1469);M.exports=function(A,w,F){var O=E(A)?b:y,j=arguments.length<3;return O(A,_(w,4),F,j,u)}},4238:(M,R,f)=>{var b=f(280),u=f(4160),_=f(8612),y=f(7037),E=f(8016);M.exports=function(A){if(A==null)return 0;if(_(A))return y(A)?E(A):A.length;var w=u(A);return w=="[object Map]"||w=="[object Set]"?A.size:b(A).length}},9734:(M,R,f)=>{var b=f(1078),u=f(9556),_=f(5976),y=f(6612),E=_(function(A,w){if(A==null)return[];var F=w.length;return F>1&&y(A,w[0],w[1])?w=[]:F>2&&y(w[0],w[1],w[2])&&(w=[w[0]]),u(A,b(w,1),[])});M.exports=E},479:M=>{M.exports=function(){return[]}},5062:M=>{M.exports=function(){return!1}},8601:(M,R,f)=>{var b=f(4841);M.exports=function(u){return u?(u=b(u))===1/0||u===-1/0?17976931348623157e292*(u<0?-1:1):u==u?u:0:u===0?u:0}},554:(M,R,f)=>{var b=f(8601);M.exports=function(u){var _=b(u),y=_%1;return _==_?y?_-y:_:0}},4841:(M,R,f)=>{var b=f(7561),u=f(3218),_=f(3448),y=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,A=/^0o[0-7]+$/i,w=parseInt;M.exports=function(F){if(typeof F=="number")return F;if(_(F))return NaN;if(u(F)){var O=typeof F.valueOf=="function"?F.valueOf():F;F=u(O)?O+"":O}if(typeof F!="string")return F===0?F:+F;F=b(F);var j=E.test(F);return j||A.test(F)?w(F.slice(2),j?2:8):y.test(F)?NaN:+F}},3678:(M,R,f)=>{var b=f(8363),u=f(1704);M.exports=function(_){return b(_,u(_))}},9833:(M,R,f)=>{var b=f(531);M.exports=function(u){return u==null?"":b(u)}},8718:(M,R,f)=>{var b=f(7412),u=f(3118),_=f(7816),y=f(7206),E=f(5924),A=f(1469),w=f(4144),F=f(3560),O=f(3218),j=f(6719);M.exports=function(H,tt,Q){var ht=A(H),K=ht||w(H)||j(H);if(tt=y(tt,4),Q==null){var xt=H&&H.constructor;Q=K?ht?new xt:[]:O(H)&&F(xt)?u(E(H)):{}}return(K?b:_)(H,function(at,ut,vt){return tt(Q,at,ut,vt)}),Q}},3386:(M,R,f)=>{var b=f(1078),u=f(5976),_=f(5652),y=f(9246),E=u(function(A){return _(b(A,1,y,!0))});M.exports=E},3955:(M,R,f)=>{var b=f(9833),u=0;M.exports=function(_){var y=++u;return b(_)+y}},2628:(M,R,f)=>{var b=f(7415),u=f(3674);M.exports=function(_){return _==null?[]:b(_,u(_))}},7287:(M,R,f)=>{var b=f(4865),u=f(1757);M.exports=function(_,y){return u(_||[],y||[],b)}},9234:()=>{},1748:(M,R,f)=>{var b={"./locale":9234,"./locale.js":9234};function u(y){var E=_(y);return f(E)}function _(y){if(!f.o(b,y)){var E=new Error("Cannot find module '"+y+"'");throw E.code="MODULE_NOT_FOUND",E}return b[y]}u.keys=function(){return Object.keys(b)},u.resolve=_,M.exports=u,u.id=1748},1941:function(M,R,f){(M=f.nmd(M)).exports=function(){var b,u;function _(){return b.apply(null,arguments)}function y(x){return x instanceof Array||Object.prototype.toString.call(x)==="[object Array]"}function E(x){return x!=null&&Object.prototype.toString.call(x)==="[object Object]"}function A(x){return x===void 0}function w(x){return typeof x=="number"||Object.prototype.toString.call(x)==="[object Number]"}function F(x){return x instanceof Date||Object.prototype.toString.call(x)==="[object Date]"}function O(x,L){var G,ct=[];for(G=0;
1248G<x.length;++G)ct.push(L(x[G],G));return ct}function j(x,L){return Object.prototype.hasOwnProperty.call(x,L)}function H(x,L){for(var G in L)j(L,G)&&(x[G]=L[G]);return j(L,"toString")&&(x.toString=L.toString),j(L,"valueOf")&&(x.valueOf=L.valueOf),x}function tt(x,L,G,ct){return wa(x,L,G,ct,!0).utc()}function Q(x){return x._pf==null&&(x._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}),x._pf}function ht(x){if(x._isValid==null){var L=Q(x),G=u.call(L.parsedDateParts,function(Xt){return Xt!=null}),ct=!isNaN(x._d.getTime())&&L.overflow<0&&!L.empty&&!L.invalidMonth&&!L.invalidWeekday&&!L.weekdayMismatch&&!L.nullInput&&!L.invalidFormat&&!L.userInvalidated&&(!L.meridiem||L.meridiem&&G);if(x._strict&&(ct=ct&&L.charsLeftOver===0&&L.unusedTokens.length===0&&L.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(x))return ct;x._isValid=ct}return x._isValid}function K(x){var L=tt(NaN);return x!=null?H(Q(L),x):Q(L).userInvalidated=!0,L}u=Array.prototype.some?Array.prototype.some:function(x){for(var L=Object(this),G=L.length>>>0,ct=0;ct<G;ct++)if(ct in L&&x.call(this,L[ct],ct,L))return!0;return!1};var xt=_.momentProperties=[];function at(x,L){var G,ct,Xt;if(A(L._isAMomentObject)||(x._isAMomentObject=L._isAMomentObject),A(L._i)||(x._i=L._i),A(L._f)||(x._f=L._f),A(L._l)||(x._l=L._l),A(L._strict)||(x._strict=L._strict),A(L._tzm)||(x._tzm=L._tzm),A(L._isUTC)||(x._isUTC=L._isUTC),A(L._offset)||(x._offset=L._offset),A(L._pf)||(x._pf=Q(L)),A(L._locale)||(x._locale=L._locale),0<xt.length)for(G=0;G<xt.length;G++)A(Xt=L[ct=xt[G]])||(x[ct]=Xt);return x}var ut=!1;function vt(x){at(this,x),this._d=new Date(x._d!=null?x._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ut===!1&&(ut=!0,_.updateOffset(this),ut=!1)}function Zt(x){return x instanceof vt||x!=null&&x._isAMomentObject!=null}function Gt(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function kt(x){var L=+x,G=0;return L!==0&&isFinite(L)&&(G=Gt(L)),G}function It(x,L,G){var ct,Xt=Math.min(x.length,L.length),Se=Math.abs(x.length-L.length),Pe=0;for(ct=0;ct<Xt;ct++)(G&&x[ct]!==L[ct]||!G&&kt(x[ct])!==kt(L[ct]))&&Pe++;return Pe+Se}function wt(x){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+x)}function mt(x,L){var G=!0;return H(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,x),G){for(var ct,Xt=[],Se=0;Se<arguments.length;Se++){if(ct="",typeof arguments[Se]=="object"){for(var Pe in ct+=`
1249[`+Se+"] ",arguments[0])ct+=Pe+": "+arguments[0][Pe]+", ";ct=ct.slice(0,-2)}else ct=arguments[Se];Xt.push(ct)}wt(x+`
1250Arguments: `+Array.prototype.slice.call(Xt).join("")+`
1251`+new Error().stack),G=!1}return L.apply(this,arguments)},L)}var X,ot={};function z(x,L){_.deprecationHandler!=null&&_.deprecationHandler(x,L),ot[x]||(wt(L),ot[x]=!0)}function yt(x){return x instanceof Function||Object.prototype.toString.call(x)==="[object Function]"}function Y(x,L){var G,ct=H({},x);for(G in L)j(L,G)&&(E(x[G])&&E(L[G])?(ct[G]={},H(ct[G],x[G]),H(ct[G],L[G])):L[G]!=null?ct[G]=L[G]:delete ct[G]);for(G in x)j(x,G)&&!j(L,G)&&E(x[G])&&(ct[G]=H({},ct[G]));return ct}function bt(x){x!=null&&this.set(x)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null,X=Object.keys?Object.keys:function(x){var L,G=[];for(L in x)j(x,L)&&G.push(L);return G};var Ct={};function $t(x,L){var G=x.toLowerCase();Ct[G]=Ct[G+"s"]=Ct[L]=x}function be(x){return typeof x=="string"?Ct[x]||Ct[x.toLowerCase()]:void 0}function We(x){var L,G,ct={};for(G in x)j(x,G)&&(L=be(G))&&(ct[L]=x[G]);return ct}var xe={};function pe(x,L){xe[x]=L}function _e(x,L,G){var ct=""+Math.abs(x),Xt=L-ct.length;return(0<=x?G?"+":"":"-")+Math.pow(10,Math.max(0,Xt)).toString().substr(1)+ct}var Ae=/(\[[^\[]*\])|(\\)?([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,De=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},wn={};function fe(x,L,G,ct){var Xt=ct;typeof ct=="string"&&(Xt=function(){return this[ct]()}),x&&(wn[x]=Xt),L&&(wn[L[0]]=function(){return _e(Xt.apply(this,arguments),L[1],L[2])}
1251),G&&(wn[G]=function(){return this.localeData().ordinal(Xt.apply(this,arguments),x)})}function Qe(x,L){return x.isValid()?(L=ne(L,x.localeData()),me[L]=me[L]||function(G){var ct,Xt,Se,Pe=G.match(Ae);for(ct=0,Xt=Pe.length;ct<Xt;ct++)wn[Pe[ct]]?Pe[ct]=wn[Pe[ct]]:Pe[ct]=(Se=Pe[ct]).match(/\[[\s\S]/)?Se.replace(/^\[|\]$/g,""):Se.replace(/\\/g,"");return function(Ze){var Je,un="";for(Je=0;Je<Xt;Je++)un+=yt(Pe[Je])?Pe[Je].call(Ze,G):Pe[Je];return un}}(L),me[L](x)):x.localeData().invalidDate()}function ne(x,L){var G=5;function ct(Xt){return L.longDateFormat(Xt)||Xt}for(De.lastIndex=0;0<=G&&De.test(x);)x=x.replace(De,ct),De.lastIndex=0,G-=1;return x}var Qt=/\d/,oe=/\d\d/,Et=/\d{3}/,te=/\d{4}/,st=/[+-]?\d{6}/,ft=/\d\d?/,dt=/\d\d\d\d?/,Mt=/\d\d\d\d\d\d?/,de=/\d{1,3}/,Le=/\d{1,4}/,en=/[+-]?\d{1,6}/,qe=/\d+/,sn=/[+-]?\d+/,Fe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Oe=/[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,Be={};function ge(x,L,G){Be[x]=yt(L)?L:function(ct,Xt){return ct&&G?G:L}}function re(x,L){return j(Be,x)?Be[x](L._strict,L._locale):new RegExp(An(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,ct,Xt,Se,Pe){return ct||Xt||Se||Pe})))}function An(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ie={};function ln(x,L){var G,ct=L;for(typeof x=="string"&&(x=[x]),w(L)&&(ct=function(Xt,Se){Se[L]=kt(Xt)}),G=0;G<x.length;G++)Ie[x[G]]=ct}function Ye(x,L){ln(x,function(G,ct,Xt,Se){Xt._w=Xt._w||{},L(G,Xt._w,Xt,Se)})}function dn(x){return Jn(x)?366:365}function Jn(x){return x%4==0&&x%100!=0||x%400==0}fe("Y",0,0,function(){var x=this.year();return x<=9999?""+x:"+"+x}),fe(0,["YY",2],0,function(){return this.year()%100}),fe(0,["YYYY",4],0,"year"),fe(0,["YYYYY",5],0,"year"),fe(0,["YYYYYY",6,!0],0,"year"),$t("year","y"),pe("year",1),ge("Y",sn),ge("YY",ft,oe),ge("YYYY",Le,te),ge("YYYYY",en,st),ge("YYYYYY",en,st),ln(["YYYYY","YYYYYY"],0),ln("YYYY",function(x,L){L[0]=x.length===2?_.parseTwoDigitYear(x):kt(x)}),ln("YY",function(x,L){L[0]=_.parseTwoDigitYear(x)}),ln("Y",function(x,L){L[0]=parseInt(x,10)}),_.parseTwoDigitYear=function(x){return kt(x)+(68<kt(x)?1900:2e3)};var Dn,Tn=Me("FullYear",!0);function Me(x,L){return function(G){return G!=null?(Xe(this,x,G),_.updateOffset(this,L),this):Ke(this,x)}}function Ke(x,L){return x.isValid()?x._d["get"+(x._isUTC?"UTC":"")+L]():NaN}function Xe(x,L,G){x.isValid()&&!isNaN(G)&&(L==="FullYear"&&Jn(x.year())&&x.month()===1&&x.date()===29?x._d["set"+(x._isUTC?"UTC":"")+L](G,x.month(),Ee(G,x.month())):x._d["set"+(x._isUTC?"UTC":"")+L](G))}function Ee(x,L){if(isNaN(x)||isNaN(L))return NaN;var G=(L%12+12)%12;return x+=(L-G)/12,G===1?Jn(x)?29:28:31-G%7%2}Dn=Array.prototype.indexOf?Array.prototype.indexOf:function(x){var L;for(L=0;L<this.length;++L)if(this[L]===x)return L;return-1},fe("M",["MM",2],"Mo",function(){return this.month()+1}),fe("MMM",0,0,function(x){return this.localeData().monthsShort(this,x)}),fe("MMMM",0,0,function(x){return this.localeData().months(this,x)}),$t("month","M"),pe("month",8),ge("M",ft),ge("MM",ft,oe),ge("MMM",function(x,L){return L.monthsShortRegex(x)}),ge("MMMM",function(x,L){return L.monthsRegex(x)}),ln(["M","MM"],function(x,L){L[1]=kt(x)-1}),ln(["MMM","MMMM"],function(x,L,G,ct){var Xt=G._locale.monthsParse(x,ct,G._strict);Xt!=null?L[1]=Xt:Q(G).invalidMonth=x});var mn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Yt(x,L){var G;if(!x.isValid())return x;if(typeof L=="string"){if(/^\d+$/.test(L))L=kt(L);else if(!w(L=x.localeData().monthsParse(L)))return x}return G=Math.min(x.date(),Ee(x.year(),L)),x._d["set"+(x._isUTC?"UTC":"")+"Month"](L,G),x}function Un(x){return x!=null?(Yt(this,x),_.updateOffset(this,!0),this):Ke(this,"Month")}var Rn=Oe,Vn=Oe;function Mn(){function x(Pe,Ze){return Ze.length-Pe.length}var L,G,ct=[],Xt=[],Se=[];for(L=0;L<12;L++)G=tt([2e3,L]),ct.push(this.monthsShort(G,"")),Xt.push(this.months(G,"")),Se.pu
vendor: 5,296 bytes, line 1251
1251sh(this.months(G,"")),Se.push(this.monthsShort(G,""));for(ct.sort(x),Xt.sort(x),Se.sort(x),L=0;L<12;L++)ct[L]=An(ct[L]),Xt[L]=An(Xt[L]);for(L=0;L<24;L++)Se[L]=An(Se[L]);this._monthsRegex=new RegExp("^("+Se.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Xt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ct.join("|")+")","i")}function Hn(x){var L;if(x<100&&0<=x){var G=Array.prototype.slice.call(arguments);G[0]=x+400,L=new Date(Date.UTC.apply(null,G)),isFinite(L.getUTCFullYear())&&L.setUTCFullYear(x)}else L=new Date(Date.UTC.apply(null,arguments));return L}function In(x,L,G){var ct=7+L-G;return-(7+Hn(x,0,ct).getUTCDay()-L)%7+ct-1}function En(x,L,G,ct,Xt){var Se,Pe,Ze=1+7*(L-1)+(7+G-ct)%7+In(x,ct,Xt);return Pe=Ze<=0?dn(Se=x-1)+Ze:Ze>dn(x)?(Se=x+1,Ze-dn(x)):(Se=x,Ze),{year:Se,dayOfYear:Pe}}function Fn(x,L,G){var ct,Xt,Se=In(x.year(),L,G),Pe=Math.floor((x.dayOfYear()-Se-1)/7)+1;return Pe<1?ct=Pe+Pn(Xt=x.year()-1,L,G):Pe>Pn(x.year(),L,G)?(ct=Pe-Pn(x.year(),L,G),Xt=x.year()+1):(Xt=x.year(),ct=Pe),{week:ct,year:Xt}}function Pn(x,L,G){var ct=In(x,L,G),Xt=In(x+1,L,G);return(dn(x)-ct+Xt)/7}function jn(x,L){return x.slice(L,7).concat(x.slice(0,L))}fe("w",["ww",2],"wo","week"),fe("W",["WW",2],"Wo","isoWeek"),$t("week","w"),$t("isoWeek","W"),pe("week",5),pe("isoWeek",5),ge("w",ft),ge("ww",ft,oe),ge("W",ft),ge("WW",ft,oe),Ye(["w","ww","W","WW"],function(x,L,G,ct){L[ct.substr(0,1)]=kt(x)}),fe("d",0,"do","day"),fe("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),fe("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),fe("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),fe("e",0,0,"weekday"),fe("E",0,0,"isoWeekday"),$t("day","d"),$t("weekday","e"),$t("isoWeekday","E"),pe("day",11),pe("weekday",11),pe("isoWeekday",11),ge("d",ft),ge("e",ft),ge("E",ft),ge("dd",function(x,L){return L.weekdaysMinRegex(x)}),ge("ddd",function(x,L){return L.weekdaysShortRegex(x)}),ge("dddd",function(x,L){return L.weekdaysRegex(x)}),Ye(["dd","ddd","dddd"],function(x,L,G,ct){var Xt=G._locale.weekdaysParse(x,ct,G._strict);Xt!=null?L.d=Xt:Q(G).invalidWeekday=x}),Ye(["d","e","E"],function(x,L,G,ct){L[ct]=kt(x)});var fa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Tr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sn=Oe,oi=Oe,Nn=Oe;function _r(){function x(gn,zn){return zn.length-gn.length}var L,G,ct,Xt,Se,Pe=[],Ze=[],Je=[],un=[];for(L=0;L<7;L++)G=tt([2e3,1]).day(L),ct=this.weekdaysMin(G,""),Xt=this.weekdaysShort(G,""),Se=this.weekdays(G,""),Pe.push(ct),Ze.push(Xt),Je.push(Se),un.push(ct),un.push(Xt),un.push(Se);for(Pe.sort(x),Ze.sort(x),Je.sort(x),un.sort(x),L=0;L<7;L++)Ze[L]=An(Ze[L]),Je[L]=An(Je[L]),un[L]=An(un[L]);this._weekdaysRegex=new RegExp("^("+un.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Je.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ze.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Pe.join("|")+")","i")}function Cr(){return this.hours()%12||12}function yr(x,L){fe(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}function qr(x,L){return L._meridiemParse}fe("H",["HH",2],0,"hour"),fe("h",["hh",2],0,Cr),fe("k",["kk",2],0,function(){return this.hours()||24}),fe("hmm",0,0,function(){return""+Cr.apply(this)+_e(this.minutes(),2)}),fe("hmmss",0,0,function(){return""+Cr.apply(this)+_e(this.minutes(),2)+_e(this.seconds(),2)}),fe("Hmm",0,0,function(){return""+this.hours()+_e(this.minutes(),2)}),fe("Hmmss",0,0,function(){return""+this.hours()+_e(this.minutes(),2)+_e(this.seconds(),2)}),yr("a",!0),yr("A",!1),$t("hour","h"),pe("hour",13),ge("a",qr),ge("A",qr),ge("H",ft),ge("h",ft),ge("k",ft),ge("HH",ft,oe),ge("hh",ft,oe),ge("kk",ft,oe),ge("hmm",dt),ge("hmmss",Mt),ge("Hmm",dt),ge("Hmmss",Mt),ln(["H","HH"],3),ln(["k","kk"],function(x,L,G){var ct=kt(x);L[3]=ct===24?0:ct}),ln(["a","A"],function(x,L,G){G._isPm=G._locale.isPM(x),G._meridiem=x}),ln(["h","hh"],function(x,L,G){L[3]=kt(x),Q(G).bigHour=!0}),ln("hmm",function(x,L,G){var ct=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct)),Q(G).bigHour=!0}),ln("hmmss",function(x,L,G){var ct=x.length-4,Xt=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct,2)),L[5]=kt(x.substr(Xt)),Q(G).bigHour=!0}),ln("Hmm",function(x,L,G){var ct=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct))}),ln("Hmmss",function(x,L,G){var ct=x.length-4,Xt=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct,2)),L[5]=kt(x.substr(Xt))});var Dt,Ar=Me("Hours",!0),Nr={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:At,monthsShort:vr,week:{dow:0,doy:6}
1251,weekdays:fa,weekdaysMin:Tr,weekdaysShort:Dr,meridiemParse:/[ap]\.?m?\.?/i},Gn={},Zr={};function Ur(x){return x&&x.toLowerCase().replace("_","-")}function Ir(x){var L=null;if(!Gn[x]&&M&&M.exports)try{L=Dt._abbr,f(1748)("./"+x),Qr(L)}catch{}return Gn[x]}function Qr(x,L){var G;return x&&((G=A(L)?cr(x):ka(x,L))?Dt=G:typeof console<"u"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Dt._abbr}function ka(x,L){if(L===null)return delete Gn[x],null;var G,ct=Nr;if(L.abbr=x,Gn[x]!=null)z("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."),ct=Gn[x]._config;else if(L.parentLocale!=null)if(Gn[L.parentLocale]!=null)ct=Gn[L.parentLocale]._config;else{if((G=Ir(L.parentLocale))==null)return Zr[L.parentLocale]||(Zr[L.parentLocale]=[]),Zr[L.parentLocale].push({name:x,config:L}),null;ct=G._config}return Gn[x]=new bt(Y(ct,L)),Zr[x]&&Zr[x].forEach(function(Xt){ka(Xt.name,Xt.config)}),Qr(x),Gn[x]}function cr(x){var L;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Dt;if(!y(x)){if(L=Ir(x))return L;x=[x]}return function(G){for(var ct,Xt,Se,Pe,Ze=0;Ze<G.length;){for(ct=(Pe=Ur(G[Ze]).split("-")).length,Xt=(Xt=Ur(G[Ze+1]))?Xt.split("-"):null;0<ct;){if(Se=Ir(Pe.slice(0,ct).join("-")))return Se;if(Xt&&Xt.length>=ct&&It(Pe,Xt,!0)>=ct-1)break;ct--}Ze++}return Dt}(x)}function ea(x){var L,G=x._a;return G&&Q(x).overflow===-2&&(L=G[1]<0||11<G[1]?1:G[2]<1||G[2]>Ee(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,Q(x)._overflowDayOfYear&&(L<0||2<L)&&(L=2),Q(x)._overflowWeeks&&L===-1&&(L=7),Q(x)._overflowWeekday&&L===-1&&(L=8),Q(x).overflow=L),x}function na(x,L,G){return x??L??G}function Ni(x){var L,G,ct,Xt,Se,Pe=[];if(!x._d){var Ze,Je;for(Ze=x,Je=new Date(_.now()),ct=Ze._useUTC?[Je.getUTCFullYear(),Je.getUTCMonth(),Je.getUTCDate()]:[Je.getFullYear(),Je.getMonth(),Je.getDate()],x._w&&x._a[2]==null&&x._a[1]==null&&function(un){var gn,zn,hn,mr,or,$r,ri,Yr;if((gn=un._w).GG!=null||gn.W!=null||gn.E!=null)or=1,$r=4,zn=na(gn.GG,un._a[0],Fn(hr(),1,4).year),hn=na(gn.W,1),((mr=na(gn.E,1))<1||7<mr)&&(Yr=!0);else{or=un._locale._week.dow,$r=un._locale._week.doy;var _s=Fn(hr(),or,$r);zn=na(gn.gg,un._a[0],_s.year),hn=na(gn.w,_s.week),gn.d!=null?((mr=gn.d)<0||6<mr)&&(Yr=!0):gn.e!=null?(mr=gn.e+or,(gn.e<0||6<gn.e)&&(Yr=!0)):mr=or}hn<1||hn>Pn(zn,or,$r)?Q(un)._overflowWeeks=!0:Yr!=null?Q(un)._overflowWeekday=!0:(ri=En(zn,hn,mr,or,$r),un._a[0]=ri.year,un._dayOfYear=ri.dayOfYear)}(x),x._dayOfYear!=null&&(Se=na(x._a[0],ct[0]),(x._dayOfYear>dn(Se)||x._dayOfYear===0)&&(Q(x)._overflowDayOfYear=!0),G=Hn(Se,0,x._dayOfYear),x._a[1]=G.getUTCMonth(),x._a[2]=G.getUTCDate()),L=0;L<3&&x._a[L]==null;++L)x._a[L]=Pe[L]=ct[L];for(;L<7;L++)x._a[L]=Pe[L]=x._a[L]==null?L===2?1:0:x._a[L];x._a[3]===24&&x._a[4]===0&&x._a[5]===0&&x._a[6]===0&&(x._nextDay=!0,x._a[3]=0),x._d=(x._useUTC?Hn:function(un,gn,zn,hn,mr,or,$r){var ri;return un<100&&0<=un?(ri=new Date(un+400,gn,zn,hn,mr,or,$r),isFinite(ri.getFullYear())&&ri.setFullYear(un)):ri=new Date(un,gn,zn,hn,mr,or,$r),ri}).apply(null,Pe),Xt=x._useUTC?x._d.getUTCDay():x._d.getDay(),x._tzm!=null&&x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),x._nextDay&&(x._a[3]=24),x._w&&x._w.d!==void 0&&x._w.d!==Xt&&(Q(x).weekdayMismatch=!0)}}var rn=/^\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)?)?$/,Zn=/^\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)?)?$/,an=/Z|[+-]\d\d(?::?\d\d)?/,nn=[["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}/]],nr=[["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 wi(x){var L,G,ct,Xt,Se,Pe,Ze=x._i,Je=rn.exec(Ze)||Zn.exec(Ze);
1251if(Je){for(Q(x).iso=!0,L=0,G=nn.length;L<G;L++)if(nn[L][1].exec(Je[1])){Xt=nn[L][0],ct=nn[L][2]!==!1;break}if(Xt==null)return void(x._isValid=!1);if(Je[3]){for(L=0,G=nr.length;L<G;L++)if(nr[L][1].exec(Je[3])){Se=(Je[2]||" ")+nr[L][0];break}if(Se==null)return void(x._isValid=!1)}if(!ct&&Se!=null)return void(x._isValid=!1);if(Je[4]){if(!an.exec(Je[4]))return void(x._isValid=!1);Pe="Z"}x._f=Xt+(Se||"")+(Pe||""),Vr(x)}else x._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}))$/,xr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Or(x){var L,G,ct,Xt=Kt.exec(x._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Xt){var Se=function(Pe,Ze,Je,un,gn,zn){var hn=[function(mr){var or=parseInt(mr,10);return or<=49?2e3+or:or<=999?1900+or:or}(Pe),vr.indexOf(Ze),parseInt(Je,10),parseInt(un,10),parseInt(gn,10)];return zn&&hn.push(parseInt(zn,10)),hn}(Xt[4],Xt[3],Xt[2],Xt[5],Xt[6],Xt[7]);if(G=Se,ct=x,(L=Xt[1])&&Dr.indexOf(L)!==new Date(G[0],G[1],G[2]).getDay()&&(Q(ct).weekdayMismatch=!0,!(ct._isValid=!1)))return;x._a=Se,x._tzm=function(Pe,Ze,Je){if(Pe)return xr[Pe];if(Ze)return 0;var un=parseInt(Je,10),gn=un%100;return(un-gn)/100*60+gn}(Xt[8],Xt[9],Xt[10]),x._d=Hn.apply(null,x._a),x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),Q(x).rfc2822=!0}else x._isValid=!1}function Vr(x){if(x._f!==_.ISO_8601)if(x._f!==_.RFC_2822){x._a=[],Q(x).empty=!0;var L,G,ct,Xt,Se,Pe,Ze,Je,un=""+x._i,gn=un.length,zn=0;for(ct=ne(x._f,x._locale).match(Ae)||[],L=0;L<ct.length;L++)Xt=ct[L],(G=(un.match(re(Xt,x))||[])[0])&&(0<(Se=un.substr(0,un.indexOf(G))).length&&Q(x).unusedInput.push(Se),un=un.slice(un.indexOf(G)+G.length),zn+=G.length),wn[Xt]?(G?Q(x).empty=!1:Q(x).unusedTokens.push(Xt),Pe=Xt,Je=x,(Ze=G)!=null&&j(Ie,Pe)&&Ie[Pe](Ze,Je._a,Je,Pe)):x._strict&&!G&&Q(x).unusedTokens.push(Xt);Q(x).charsLeftOver=gn-zn,0<un.length&&Q(x).unusedInput.push(un),x._a[3]<=12&&Q(x).bigHour===!0&&0<x._a[3]&&(Q(x).bigHour=void 0),Q(x).parsedDateParts=x._a.slice(0),Q(x).meridiem=x._meridiem,x._a[3]=function(hn,mr,or){var $r;return or==null?mr:hn.meridiemHour!=null?hn.meridiemHour(mr,or):(hn.isPM!=null&&(($r=hn.isPM(or))&&mr<12&&(mr+=12),$r||mr!==12||(mr=0)),mr)}(x._locale,x._a[3],x._meridiem),Ni(x),ea(x)}else Or(x);else wi(x)}function li(x){var L,G,ct,Xt,Se=x._i,Pe=x._f;return x._locale=x._locale||cr(x._l),Se===null||Pe===void 0&&Se===""?K({nullInput:!0}):(typeof Se=="string"&&(x._i=Se=x._locale.preparse(Se)),Zt(Se)?new vt(ea(Se)):(F(Se)?x._d=Se:y(Pe)?function(Ze){var Je,un,gn,zn,hn;if(Ze._f.length===0)return Q(Ze).invalidFormat=!0,Ze._d=new Date(NaN);for(zn=0;zn<Ze._f.length;zn++)hn=0,Je=at({},Ze),Ze._useUTC!=null&&(Je._useUTC=Ze._useUTC),Je._f=Ze._f[zn],Vr(Je),ht(Je)&&(hn+=Q(Je).charsLeftOver,hn+=10*Q(Je).unusedTokens.length,Q(Je).score=hn,(gn==null||hn<gn)&&(gn=hn,un=Je));H(Ze,un||Je)}(x):Pe?Vr(x):A(G=(L=x)._i)?L._d=new Date(_.now()):F(G)?L._d=new Date(G.valueOf()):typeof G=="string"?(ct=L,(Xt=qt.exec(ct._i))===null?(wi(ct),ct._isValid===!1&&(delete ct._isValid,Or(ct),ct._isValid===!1&&(delete ct._isValid,_.createFromInputFallback(ct)))):ct._d=new Date(+Xt[1])):y(G)?(L._a=O(G.slice(0),function(Ze){return parseInt(Ze,10)}),Ni(L)):E(G)?function(Ze){if(!Ze._d){var Je=We(Ze._i);Ze._a=O([Je.year,Je.month,Je.day||Je.date,Je.hour,Je.minute,Je.second,Je.millisecond],function(un){return un&&parseInt(un,10)}),Ni(Ze)}}(L):w(G)?L._d=new Date(G):_.createFromInputFallback(L),ht(x)||(x._d=null),x))}function wa(x,L,G,ct,Xt){var Se,Pe={};return G!==!0&&G!==!1||(ct=G,G=void 0),(E(x)&&function(Ze){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ze).length===0;var Je;
1251for(Je in Ze)if(Ze.hasOwnProperty(Je))return!1;return!0}(x)||y(x)&&x.length===0)&&(x=void 0),Pe._isAMomentObject=!0,Pe._useUTC=Pe._isUTC=Xt,Pe._l=G,Pe._i=x,Pe._f=L,Pe._strict=ct,(Se=new vt(ea(li(Pe))))._nextDay&&(Se.add(1,"d"),Se._nextDay=void 0),Se}function hr(x,L,G,ct){return wa(x,L,G,ct,!1)}_.createFromInputFallback=mt("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(x){x._d=new Date(x._i+(x._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};var xn=mt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=hr.apply(null,arguments);return this.isValid()&&x.isValid()?x<this?this:x:K()}),ra=mt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=hr.apply(null,arguments);return this.isValid()&&x.isValid()?this<x?this:x:K()});function On(x,L){var G,ct;if(L.length===1&&y(L[0])&&(L=L[0]),!L.length)return hr();for(G=L[0],ct=1;ct<L.length;++ct)L[ct].isValid()&&!L[ct][x](G)||(G=L[ct]);return G}var bi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function si(x){var L=We(x),G=L.year||0,ct=L.quarter||0,Xt=L.month||0,Se=L.week||L.isoWeek||0,Pe=L.day||0,Ze=L.hour||0,Je=L.minute||0,un=L.second||0,gn=L.millisecond||0;this._isValid=function(zn){for(var hn in zn)if(Dn.call(bi,hn)===-1||zn[hn]!=null&&isNaN(zn[hn]))return!1;for(var mr=!1,or=0;or<bi.length;++or)if(zn[bi[or]]){if(mr)return!1;parseFloat(zn[bi[or]])!==kt(zn[bi[or]])&&(mr=!0)}return!0}(L),this._milliseconds=+gn+1e3*un+6e4*Je+1e3*Ze*60*60,this._days=+Pe+7*Se,this._months=+Xt+3*ct+12*G,this._data={},this._locale=cr(),this._bubble()}function Oi(x){return x instanceof si}function lr(x){return x<0?-1*Math.round(-1*x):Math.round(x)}function Kr(x,L){fe(x,0,0,function(){var G=this.utcOffset(),ct="+";return G<0&&(G=-G,ct="-"),ct+_e(~~(G/60),2)+L+_e(~~G%60,2)})}Kr("Z",":"),Kr("ZZ",""),ge("Z",Te),ge("ZZ",Te),ln(["Z","ZZ"],function(x,L,G){G._useUTC=!0,G._tzm=Gr(Te,x)});var Hr=/([\+\-]|\d\d)/gi;function Gr(x,L){var G=(L||"").match(x);if(G===null)return null;var ct=((G[G.length-1]||[])+"").match(Hr)||["-",0,0],Xt=60*ct[1]+kt(ct[2]);return Xt===0?0:ct[0]==="+"?Xt:-Xt}function ni(x,L){var G,ct;return L._isUTC?(G=L.clone(),ct=(Zt(x)||F(x)?x.valueOf():hr(x).valueOf())-G.valueOf(),G._d.setTime(G._d.valueOf()+ct),_.updateOffset(G,!1),G):hr(x).local()}function Ti(x){return 15*-Math.round(x._d.getTimezoneOffset()/15)}function Xr(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var Ta=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,La=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pr(x,L){var G,ct,Xt,Se=x,Pe=null;return Oi(x)?Se={ms:x._milliseconds,d:x._days,M:x._months}:w(x)?(Se={},L?Se[L]=x:Se.milliseconds=x):(Pe=Ta.exec(x))?(G=Pe[1]==="-"?-1:1,Se={y:0,d:kt(Pe[2])*G,h:kt(Pe[3])*G,m:kt(Pe[4])*G,s:kt(Pe[5])*G,ms:kt(lr(1e3*Pe[6]))*G}):(Pe=La.exec(x))?(G=Pe[1]==="-"?-1:1,Se={y:Jr(Pe[2],G),M:Jr(Pe[3],G),w:Jr(Pe[4],G),d:Jr(Pe[5],G),h:Jr(Pe[6],G),m:Jr(Pe[7],G),s:Jr(Pe[8],G)}):Se==null?Se={}:typeof Se=="object"&&("from"in Se||"to"in Se)&&(Xt=function(Ze,Je){var un;return Ze.isValid()&&Je.isValid()?(Je=ni(Je,Ze),Ze.isBefore(Je)?un=ti(Ze,Je):((un=ti(Je,Ze)).milliseconds=-un.milliseconds,un.months=-un.months),un):{milliseconds:0,months:0}}(hr(Se.from),hr(Se.to)),(Se={}).ms=Xt.milliseconds,Se.M=Xt.months),ct=new si(Se),Oi(x)&&j(x,"_locale")&&(ct._locale=x._locale),ct}function Jr(x,L){var G=x&&parseFloat(x.replace(",","."));return(isNaN(G)?0:G)*L}function ti(x,L){var G={};return G.months=L.month()-x.month()+12*(L.year()-x.year()),x.clone().add(G.months,"M").isAfter(L)&&--G.months,G.milliseconds=+L-+x.clone().add(G.months,"M"),G}function Oo(x,L){return function(G,ct){var Xt;return ct===null||isNaN(+ct)||(z(L,"moment()."+L+"(period, number) is deprecated. Please use moment()."+L+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Xt=G,G=ct,ct=Xt),Za(this,pr(G=typeof G=="string"?+G:G,ct),x),this}}function Za(x,L,G,ct){var Xt=L._milliseconds,Se=lr(L._days),Pe=lr(L._months);x.isValid()&&(ct=ct==null||ct,Pe&&Yt(x,Ke(x,"Month")+Pe*G),Se&&Xe(x,"Date",Ke(x,"Date")+Se*G),Xt&&x._d.setTime(x._d.valueOf()+Xt*G),ct&&_.updateOffset(x,Se||Pe))}
1251pr.fn=si.prototype,pr.invalid=function(){return pr(NaN)};var ia=Oo(1,"add"),oc=Oo(-1,"subtract");function Ht(x,L){var G=12*(L.year()-x.year())+(L.month()-x.month()),ct=x.clone().add(G,"months");return-(G+(L-ct<0?(L-ct)/(ct-x.clone().add(G-1,"months")):(L-ct)/(x.clone().add(G+1,"months")-ct)))||0}function Ve(x){var L;return x===void 0?this._locale._abbr:((L=cr(x))!=null&&(this._locale=L),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var pn=mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x){return x===void 0?this.localeData():this.locale(x)});function ar(){return this._locale}var ci=126227808e5;function Er(x,L){return(x%L+L)%L}function ui(x,L,G){return x<100&&0<=x?new Date(x+400,L,G)-ci:new Date(x,L,G).valueOf()}function Ia(x,L,G){return x<100&&0<=x?Date.UTC(x+400,L,G)-ci:Date.UTC(x,L,G)}function hi(x,L){fe(0,[x,x.length],0,L)}function Ei(x,L,G,ct,Xt){var Se;return x==null?Fn(this,ct,Xt).year:((Se=Pn(x,ct,Xt))<L&&(L=Se),(function(Pe,Ze,Je,un,gn){var zn=En(Pe,Ze,Je,un,gn),hn=Hn(zn.year,0,zn.dayOfYear);return this.year(hn.getUTCFullYear()),this.month(hn.getUTCMonth()),this.date(hn.getUTCDate()),this}).call(this,x,L,G,ct,Xt))}fe(0,["gg",2],0,function(){return this.weekYear()%100}),fe(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hi("gggg","weekYear"),hi("ggggg","weekYear"),hi("GGGG","isoWeekYear"),hi("GGGGG","isoWeekYear"),$t("weekYear","gg"),$t("isoWeekYear","GG"),pe("weekYear",1),pe("isoWeekYear",1),ge("G",sn),ge("g",sn),ge("GG",ft,oe),ge("gg",ft,oe),ge("GGGG",Le,te),ge("gggg",Le,te),ge("GGGGG",en,st),ge("ggggg",en,st),Ye(["gggg","ggggg","GGGG","GGGGG"],function(x,L,G,ct){L[ct.substr(0,2)]=kt(x)}),Ye(["gg","GG"],function(x,L,G,ct){L[ct]=_.parseTwoDigitYear(x)}),fe("Q",0,"Qo","quarter"),$t("quarter","Q"),pe("quarter",7),ge("Q",Qt),ln("Q",function(x,L){L[1]=3*(kt(x)-1)}),fe("D",["DD",2],"Do","date"),$t("date","D"),pe("date",9),ge("D",ft),ge("DD",ft,oe),ge("Do",function(x,L){return x?L._dayOfMonthOrdinalParse||L._ordinalParse:L._dayOfMonthOrdinalParseLenient}),ln(["D","DD"],2),ln("Do",function(x,L){L[2]=kt(x.match(ft)[0])});var Bo=Me("Date",!0);fe("DDD",["DDDD",3],"DDDo","dayOfYear"),$t("dayOfYear","DDD"),pe("dayOfYear",4),ge("DDD",de),ge("DDDD",Et),ln(["DDD","DDDD"],function(x,L,G){G._dayOfYear=kt(x)}),fe("m",["mm",2],0,"minute"),$t("minute","m"),pe("minute",14),ge("m",ft),ge("mm",ft,oe),ln(["m","mm"],4);var sc=Me("Minutes",!1);fe("s",["ss",2],0,"second"),$t("second","s"),pe("second",15),ge("s",ft),ge("ss",ft,oe),ln(["s","ss"],5);var Fa,cc=Me("Seconds",!1);for(fe("S",0,0,function(){return~~(this.millisecond()/100)}),fe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),fe(0,["SSS",3],0,"millisecond"),fe(0,["SSSS",4],0,function(){return 10*this.millisecond()}),fe(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),fe(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),fe(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),fe(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),fe(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$t("millisecond","ms"),pe("millisecond",16),ge("S",de,Qt),ge("SS",de,oe),ge("SSS",de,Et),Fa="SSSS";Fa.length<=9;Fa+="S")ge(Fa,qe);function bs(x,L){L[6]=kt(1e3*("0."+x))}for(Fa="S";Fa.length<=9;Fa+="S")ln(Fa,bs);var lu=Me("Milliseconds",!1);fe("z",0,0,"zoneAbbr"),fe("zz",0,0,"zoneName");var on=vt.prototype;function Kc(x){return x}on.add=ia,on.calendar=function(x,L){var G=x||hr(),ct=ni(G,this).startOf("day"),Xt=_.calendarFormat(this,ct)||"sameElse",Se=L&&(yt(L[Xt])?L[Xt].call(this,G):L[Xt]);return this.format(Se||this.localeData().calendar(Xt,this,hr(G)))},on.clone=function(){return new vt(this)},on.diff=function(x,L,G){var ct,Xt,Se;if(!this.isValid())return NaN;if(!(ct=ni(x,this)).isValid())return NaN;switch(Xt=6e4*(ct.utcOffset()-this.utcOffset()),L=be(L)){case"year":Se=Ht(this,ct)/12;break;case"month":Se=Ht(this,ct);break;case"quarter":Se=Ht(this,ct)/3;break;case"second":Se=(this-ct)/1e3;break;case"minute":Se=(this-ct)/6e4;break;case"hour":Se=(this-ct)/36e5;break;case"day":Se=(this-ct-Xt)/864e5;break;case"week":Se=(this-ct-Xt)/6048e5;break;default:Se=this-ct}return G?Se:Gt(Se)},on.endOf=function(x){var L;if((x=be(x))===void 0||x==="millisecond"||!this.isValid())return this;var G=this._isUTC?Ia:ui;switch(x){case"year":L=G(this.year()+1,0,1)-1;break;case"quarter":L=G(this.year(),this.month()-this.month()%3+3,1)-1;break;
1251case"month":L=G(this.year(),this.month()+1,1)-1;break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":L=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":L=this._d.valueOf(),L+=36e5-Er(L+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":L=this._d.valueOf(),L+=6e4-Er(L,6e4)-1;break;case"second":L=this._d.valueOf(),L+=1e3-Er(L,1e3)-1}return this._d.setTime(L),_.updateOffset(this,!0),this},on.format=function(x){x||(x=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var L=Qe(this,x);return this.localeData().postformat(L)},on.from=function(x,L){return this.isValid()&&(Zt(x)&&x.isValid()||hr(x).isValid())?pr({to:this,from:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},on.fromNow=function(x){return this.from(hr(),x)},on.to=function(x,L){return this.isValid()&&(Zt(x)&&x.isValid()||hr(x).isValid())?pr({from:this,to:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},on.toNow=function(x){return this.to(hr(),x)},on.get=function(x){return yt(this[x=be(x)])?this[x]():this},on.invalidAt=function(){return Q(this).overflow},on.isAfter=function(x,L){var G=Zt(x)?x:hr(x);return!(!this.isValid()||!G.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()>G.valueOf():G.valueOf()<this.clone().startOf(L).valueOf())},on.isBefore=function(x,L){var G=Zt(x)?x:hr(x);return!(!this.isValid()||!G.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()<G.valueOf():this.clone().endOf(L).valueOf()<G.valueOf())},on.isBetween=function(x,L,G,ct){var Xt=Zt(x)?x:hr(x),Se=Zt(L)?L:hr(L);return!!(this.isValid()&&Xt.isValid()&&Se.isValid())&&((ct=ct||"()")[0]==="("?this.isAfter(Xt,G):!this.isBefore(Xt,G))&&(ct[1]===")"?this.isBefore(Se,G):!this.isAfter(Se,G))},on.isSame=function(x,L){var G,ct=Zt(x)?x:hr(x);return!(!this.isValid()||!ct.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()===ct.valueOf():(G=ct.valueOf(),this.clone().startOf(L).valueOf()<=G&&G<=this.clone().endOf(L).valueOf()))},on.isSameOrAfter=function(x,L){return this.isSame(x,L)||this.isAfter(x,L)},on.isSameOrBefore=function(x,L){return this.isSame(x,L)||this.isBefore(x,L)},on.isValid=function(){return ht(this)},on.lang=pn,on.locale=Ve,on.localeData=ar,on.max=ra,on.min=xn,on.parsingFlags=function(){return H({},Q(this))},on.set=function(x,L){if(typeof x=="object")for(var G=function(Xt){var Se=[];for(var Pe in Xt)Se.push({unit:Pe,priority:xe[Pe]});return Se.sort(function(Ze,Je){return Ze.priority-Je.priority}),Se}(x=We(x)),ct=0;ct<G.length;ct++)this[G[ct].unit](x[G[ct].unit]);else if(yt(this[x=be(x)]))return this[x](L);return this},on.startOf=function(x){var L;if((x=be(x))===void 0||x==="millisecond"||!this.isValid())return this;var G=this._isUTC?Ia:ui;switch(x){case"year":L=G(this.year(),0,1);break;case"quarter":L=G(this.year(),this.month()-this.month()%3,1);break;case"month":L=G(this.year(),this.month(),1);break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":L=G(this.year(),this.month(),this.date());break;case"hour":L=this._d.valueOf(),L-=Er(L+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":L=this._d.valueOf(),L-=Er(L,6e4);break;case"second":L=this._d.valueOf(),L-=Er(L,1e3)}return this._d.setTime(L),_.updateOffset(this,!0),this},on.subtract=oc,on.toArray=function(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]},on.toObject=function(){var x=this;return{years:x.year(),months:x.month(),date:x.date(),hours:x.hours(),minutes:x.minutes(),seconds:x.seconds(),milliseconds:x.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(x){if(!this.isValid())return null;var L=x!==!0,G=L?this.clone().utc():this;return G.year()<0||9999<G.year()?Qe(G,L?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):yt(Date.prototype.toISOString)?L?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Qe(G,"Z")):Qe(G,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1251,on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x="moment",L="";this.isLocal()||(x=this.utcOffset()===0?"moment.utc":"moment.parseZone",L="Z");var G="["+x+'("]',ct=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Xt=L+'[")]';return this.format(G+ct+"-MM-DD[T]HH:mm:ss.SSS"+Xt)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=Tn,on.isLeapYear=function(){return Jn(this.year())},on.weekYear=function(x){return Ei.call(this,x,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(x){return Ei.call(this,x,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(x){return x==null?Math.ceil((this.month()+1)/3):this.month(3*(x-1)+this.month()%3)},on.month=Un,on.daysInMonth=function(){return Ee(this.year(),this.month())},on.week=on.weeks=function(x){var L=this.localeData().week(this);return x==null?L:this.add(7*(x-L),"d")},on.isoWeek=on.isoWeeks=function(x){var L=Fn(this,1,4).week;return x==null?L:this.add(7*(x-L),"d")},on.weeksInYear=function(){var x=this.localeData()._week;return Pn(this.year(),x.dow,x.doy)},on.isoWeeksInYear=function(){return Pn(this.year(),1,4)},on.date=Bo,on.day=on.days=function(x){if(!this.isValid())return x!=null?this:NaN;var L,G,ct=this._isUTC?this._d.getUTCDay():this._d.getDay();return x!=null?(L=x,G=this.localeData(),x=typeof L!="string"?L:isNaN(L)?typeof(L=G.weekdaysParse(L))=="number"?L:null:parseInt(L,10),this.add(x-ct,"d")):ct},on.weekday=function(x){if(!this.isValid())return x!=null?this:NaN;var L=(this.day()+7-this.localeData()._week.dow)%7;return x==null?L:this.add(x-L,"d")},on.isoWeekday=function(x){if(!this.isValid())return x!=null?this:NaN;if(x==null)return this.day()||7;var L,G,ct=(L=x,G=this.localeData(),typeof L=="string"?G.weekdaysParse(L)%7||7:isNaN(L)?null:L);return this.day(this.day()%7?ct:ct-7)},on.dayOfYear=function(x){var L=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x==null?L:this.add(x-L,"d")},on.hour=on.hours=Ar,on.minute=on.minutes=sc,on.second=on.seconds=cc,on.millisecond=on.milliseconds=lu,on.utcOffset=function(x,L,G){var ct,Xt=this._offset||0;if(!this.isValid())return x!=null?this:NaN;if(x==null)return this._isUTC?Xt:Ti(this);if(typeof x=="string"){if((x=Gr(Te,x))===null)return this}else Math.abs(x)<16&&!G&&(x*=60);return!this._isUTC&&L&&(ct=Ti(this)),this._offset=x,this._isUTC=!0,ct!=null&&this.add(ct,"m"),Xt!==x&&(!L||this._changeInProgress?Za(this,pr(x-Xt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(x){return this.utcOffset(0,x)},on.local=function(x){return this._isUTC&&(this.utcOffset(0,x),this._isUTC=!1,x&&this.subtract(Ti(this),"m")),this},on.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var x=Gr(Fe,this._i);x!=null?this.utcOffset(x):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(x){return!!this.isValid()&&(x=x?hr(x).utcOffset():0,(this.utcOffset()-x)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Xr,on.isUTC=Xr,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=mt("dates accessor is deprecated. Use date instead.",Bo),on.months=mt("months accessor is deprecated. Use month instead",Un),on.years=mt("years accessor is deprecated. Use year instead",Tn),on.zone=mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(x,L){return x!=null?(typeof x!="string"&&(x=-x),this.utcOffset(x,L),this):-this.utcOffset()}),on.isDSTShifted=mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!A(this._isDSTShifted))return this._isDSTShifted;var x={};if(at(x,this),(x=li(x))._a){var L=x._isUTC?tt(x._a):hr(x._a);this._isDSTShifted=this.isValid()&&0<It(x._a,L.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Mr=bt.prototype;function fo(x,L,G,ct){var Xt=cr(),Se=tt().set(ct,L);return Xt[G](Se,x)}function pa(x,L,G){if(w(x)&&(L=x,x=void 0),x=x||"",L!=null)return fo(x,L,G,"month");var ct,Xt=[];for(ct=0;ct<12;ct++)Xt[ct]=fo(x,ct,G,"month");return Xt}function Qa(x,L,G,ct){typeof x=="boolean"?w(L)&&(G=L,L=void 0):(L=x,x=!1,w(G=L)&&(G=L,L=void 0)),L=L||"";var Xt,Se=cr(),Pe=x?Se._week.dow:0;if(G!=null)return fo(L,(G+Pe)%7,ct,"day");var Ze=[];for(Xt=0;Xt<7;Xt++)Ze[Xt]=fo(L,(Xt+Pe)%7,ct,"day");return Ze}Mr.calendar=function(x,L,G){var ct=this._calendar[x]||this._calendar.sameElse;return yt(ct)?ct.call(L,G):ct},Mr.longDateFormat=function(x){var L=this._longDateFormat[x],G=this._longDateFormat[x.toUpperCase()];return L||!G?L:(this._longDateFormat[x]=G.replace(/MMMM|MM|DD|dddd/g,function(ct){return ct.slice(1)}),this._longDateFormat[x])}
vendor: 11,552 bytes, line 1251
1251,Mr.invalidDate=function(){return this._invalidDate},Mr.ordinal=function(x){return this._ordinal.replace("%d",x)},Mr.preparse=Kc,Mr.postformat=Kc,Mr.relativeTime=function(x,L,G,ct){var Xt=this._relativeTime[G];return yt(Xt)?Xt(x,L,G,ct):Xt.replace(/%d/i,x)},Mr.pastFuture=function(x,L){var G=this._relativeTime[0<x?"future":"past"];return yt(G)?G(L):G.replace(/%s/i,L)},Mr.set=function(x){var L,G;for(G in x)yt(L=x[G])?this[G]=L:this["_"+G]=L;this._config=x,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Mr.months=function(x,L){return x?y(this._months)?this._months[x.month()]:this._months[(this._months.isFormat||mn).test(L)?"format":"standalone"][x.month()]:y(this._months)?this._months:this._months.standalone},Mr.monthsShort=function(x,L){return x?y(this._monthsShort)?this._monthsShort[x.month()]:this._monthsShort[mn.test(L)?"format":"standalone"][x.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Mr.monthsParse=function(x,L,G){var ct,Xt,Se;if(this._monthsParseExact)return(function(Pe,Ze,Je){var un,gn,zn,hn=Pe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],un=0;un<12;++un)zn=tt([2e3,un]),this._shortMonthsParse[un]=this.monthsShort(zn,"").toLocaleLowerCase(),this._longMonthsParse[un]=this.months(zn,"").toLocaleLowerCase();return Je?Ze==="MMM"?(gn=Dn.call(this._shortMonthsParse,hn))!==-1?gn:null:(gn=Dn.call(this._longMonthsParse,hn))!==-1?gn:null:Ze==="MMM"?(gn=Dn.call(this._shortMonthsParse,hn))!==-1||(gn=Dn.call(this._longMonthsParse,hn))!==-1?gn:null:(gn=Dn.call(this._longMonthsParse,hn))!==-1||(gn=Dn.call(this._shortMonthsParse,hn))!==-1?gn:null}).call(this,x,L,G);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ct=0;ct<12;ct++)if(Xt=tt([2e3,ct]),G&&!this._longMonthsParse[ct]&&(this._longMonthsParse[ct]=new RegExp("^"+this.months(Xt,"").replace(".","")+"$","i"),this._shortMonthsParse[ct]=new RegExp("^"+this.monthsShort(Xt,"").replace(".","")+"$","i")),G||this._monthsParse[ct]||(Se="^"+this.months(Xt,"")+"|^"+this.monthsShort(Xt,""),this._monthsParse[ct]=new RegExp(Se.replace(".",""),"i")),G&&L==="MMMM"&&this._longMonthsParse[ct].test(x)||G&&L==="MMM"&&this._shortMonthsParse[ct].test(x)||!G&&this._monthsParse[ct].test(x))return ct},Mr.monthsRegex=function(x){return this._monthsParseExact?(j(this,"_monthsRegex")||Mn.call(this),x?this._monthsStrictRegex:this._monthsRegex):(j(this,"_monthsRegex")||(this._monthsRegex=Vn),this._monthsStrictRegex&&x?this._monthsStrictRegex:this._monthsRegex)},Mr.monthsShortRegex=function(x){return this._monthsParseExact?(j(this,"_monthsRegex")||Mn.call(this),x?this._monthsShortStrictRegex:this._monthsShortRegex):(j(this,"_monthsShortRegex")||(this._monthsShortRegex=Rn),this._monthsShortStrictRegex&&x?this._monthsShortStrictRegex:this._monthsShortRegex)},Mr.week=function(x){return Fn(x,this._week.dow,this._week.doy).week},Mr.firstDayOfYear=function(){return this._week.doy},Mr.firstDayOfWeek=function(){return this._week.dow},Mr.weekdays=function(x,L){var G=y(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return x===!0?jn(G,this._week.dow):x?G[x.day()]:G},Mr.weekdaysMin=function(x){return x===!0?jn(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin},Mr.weekdaysShort=function(x){return x===!0?jn(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort},Mr.weekdaysParse=function(x,L,G){var ct,Xt,Se;if(this._weekdaysParseExact)return(function(Pe,Ze,Je){var un,gn,zn,hn=Pe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],un=0;un<7;++un)zn=tt([2e3,1]).day(un),this._minWeekdaysParse[un]=this.weekdaysMin(zn,"").toLocaleLowerCase(),this._shortWeekdaysParse[un]=this.weekdaysShort(zn,"").toLocaleLowerCase(),this._weekdaysParse[un]=this.weekdays(zn,"").toLocaleLowerCase();return Je?Ze==="dddd"?(gn=Dn.call(this._weekdaysParse,hn))!==-1?gn:null:Ze==="ddd"?(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1?gn:null:(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:Ze==="dddd"?(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1||(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:Ze==="ddd"?(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1||(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:(gn=Dn.call(this._minWeekdaysParse,hn))!==-1||(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1?gn:null}).call(this,x,L,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ct=0;ct<7;ct++)if(Xt=tt([2e3,1]).day(ct),G&&!this._fullWeekdaysParse[ct]&&(this._fullWeekdaysParse[ct]=new RegExp("^"+this.weekdays(Xt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ct]=new RegExp("^"+this.weekdaysShort(Xt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ct]=new RegExp("^"+this.weekdaysMin(Xt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ct]||(Se="^"+this.weekdays(Xt,"")+"|^"+this.weekdaysShort(Xt,"")+"|^"+this.weekdaysMin(Xt,""),this._weekdaysParse[ct]=new RegExp(Se.replace(".",""),"i")),G&&L==="dddd"&&this._fullWeekdaysParse[ct].test(x)||G&&L==="ddd"&&this._shortWeekdaysParse[ct].test(x)||G&&L==="dd"&&this._minWeekdaysParse[ct].test(x)||!G&&this._weekdaysParse[ct].test(x))return ct},Mr.weekdaysRegex=function(x){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysStrictRegex:this._weekdaysRegex):(j(this,"_weekdaysRegex")||(this._weekdaysRegex=Sn),this._weekdaysStrictRegex&&x?this._weekdaysStrictRegex:this._weekdaysRegex)},Mr.weekdaysShortRegex=function(x){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(j(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oi),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Mr.weekdaysMinRegex=function(x){return this._weekdaysParseExact?(j(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(j(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nn),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Mr.isPM=function(x){return(x+"").toLowerCase().charAt(0)==="p"},Mr.meridiem=function(x,L,G){return 11<x?G?"pm":"PM":G?"am":"AM"},Qr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var L=x%10;return x+(kt(x%100/10)===1?"th":L===1?"st":L===2?"nd":L===3?"rd":"th")}}),_.lang=mt("moment.lang is deprecated. Use moment.locale instead.",Qr),_.langData=mt("moment.langData is deprecated. Use moment.localeData instead.",cr);var Si=Math.abs;function Lo(x,L,G,ct){var Xt=pr(L,G);return x._milliseconds+=ct*Xt._milliseconds,x._days+=ct*Xt._days,x._months+=ct*Xt._months,x._bubble()}function lc(x){return x<0?Math.floor(x):Math.ceil(x)}function uc(x){return 4800*x/146097}function hc(x){return 146097*x/4800}function Ea(x){return function(){return this.as(x)}}var uu=Ea("ms"),dc=Ea("s"),Sa=Ea("m"),vs=Ea("h"),Jc=Ea("d"),Gi=Ea("w"),Io=Ea("M"),di=Ea("Q"),Jo=Ea("y");function qn(x){return function(){return this.isValid()?this._data[x]:NaN}}var kr=qn("milliseconds"),tl=qn("seconds"),Fo=qn("minutes"),fc=qn("hours"),po=qn("days"),go=qn("months"),yo=qn("years"),ji=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,M:11},kn=Math.abs;function Xi(x){return(0<x)-(x<0)||+x}function ga(){if(!this.isValid())return this.localeData().invalidDate();var x,L,G=kn(this._milliseconds)/1e3,ct=kn(this._days),Xt=kn(this._months);L=Gt((x=Gt(G/60))/60),G%=60,x%=60;var Se=Gt(Xt/12),Pe=Xt%=12,Ze=ct,Je=L,un=x,gn=G?G.toFixed(3).replace(/\.?0+$/,""):"",zn=this.asSeconds();if(!zn)return"P0D";var hn=zn<0?"-":"",mr=Xi(this._months)!==Xi(zn)?"-":"",or=Xi(this._days)!==Xi(zn)?"-":"",$r=Xi(this._milliseconds)!==Xi(zn)?"-":"";return hn+"P"+(Se?mr+Se+"Y":"")+(Pe?mr+Pe+"M":"")+(Ze?or+Ze+"D":"")+(Je||un||gn?"T":"")+(Je?$r+Je+"H":"")+(un?$r+un+"M":"")+(gn?$r+gn+"S":"")}var Qn=si.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var x=this._data;return this._milliseconds=Si(this._milliseconds),this._days=Si(this._days),this._months=Si(this._months),x.milliseconds=Si(x.milliseconds),x.seconds=Si(x.seconds),x.minutes=Si(x.minutes),x.hours=Si(x.hours),x.months=Si(x.months),x.years=Si(x.years),this},Qn.add=function(x,L){return Lo(this,x,L,1)},Qn.subtract=function(x,L){return Lo(this,x,L,-1)},Qn.as=function(x){if(!this.isValid())return NaN;var L,G,ct=this._milliseconds;if((x=be(x))==="month"||x==="quarter"||x==="year")switch(L=this._days+ct/864e5,G=this._months+uc(L),x){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(L=this._days+Math.round(hc(this._months)),x){case"week":return L/7+ct/6048e5;case"day":return L+ct/864e5;case"hour":return 24*L+ct/36e5;case"minute":return 1440*L+ct/6e4;case"second":return 86400*L+ct/1e3;case"millisecond":return Math.floor(864e5*L)+ct;default:throw new Error("Unknown unit "+x)}},Qn.asMilliseconds=uu,Qn.asSeconds=dc,Qn.asMinutes=Sa,Qn.asHours=vs,Qn.asDays=Jc,Qn.asWeeks=Gi,Qn.asMonths=Io,Qn.asQuarters=di,Qn.asYears=Jo,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*kt(this._months/12):NaN},Qn._bubble=function(){var x,L,G,ct,Xt,Se=this._milliseconds,Pe=this._days,Ze=this._months,Je=this._data;return 0<=Se&&0<=Pe&&0<=Ze||Se<=0&&Pe<=0&&Ze<=0||(Se+=864e5*lc(hc(Ze)+Pe),Ze=Pe=0),Je.milliseconds=Se%1e3,x=Gt(Se/1e3),Je.seconds=x%60,L=Gt(x/60),Je.minutes=L%60,G=Gt(L/60),Je.hours=G%24,Ze+=Xt=Gt(uc(Pe+=Gt(G/24))),Pe-=lc(hc(Xt)),ct=Gt(Ze/12),Ze%=12,Je.days=Pe,Je.months=Ze,Je.years=ct,this},Qn.clone=function(){return pr(this)},Qn.get=function(x){return x=be(x),this.isValid()?this[x+"s"]():NaN},Qn.milliseconds=kr,Qn.seconds=tl,Qn.minutes=Fo,Qn.hours=fc,Qn.days=po,Qn.weeks=function(){return Gt(this.days()/7)},Qn.months=go,Qn.years=yo,Qn.humanize=function(x){if(!this.isValid())return this.localeData().invalidDate();var L,G,ct,Xt,Se,Pe,Ze,Je,un,gn,zn=this.localeData(),hn=(L=!x,G=zn,ct=pr(this).abs(),Xt=ji(ct.as("s")),Se=ji(ct.as("m")),Pe=ji(ct.as("h")),Ze=ji(ct.as("d")),Je=ji(ct.as("M")),un=ji(ct.as("y")),(gn=Xt<=Ci.ss&&["s",Xt]||Xt<Ci.s&&["ss",Xt]||Se<=1&&["m"]||Se<Ci.m&&["mm",Se]||Pe<=1&&["h"]||Pe<Ci.h&&["hh",Pe]||Ze<=1&&["d"]||Ze<Ci.d&&["dd",Ze]||Je<=1&&["M"]||Je<Ci.M&&["MM",Je]||un<=1&&["y"]||["yy",un])[2]=L,gn[3]=0<+this,gn[4]=G,(function(mr,or,$r,ri,Yr){return Yr.relativeTime(or||1,!!$r,mr,ri)}).apply(null,gn));return x&&(hn=zn.pastFuture(+this,hn)),zn.postformat(hn)},Qn.toISOString=ga,Qn.toString=ga,Qn.toJSON=ga,Qn.locale=Ve,Qn.localeData=ar,Qn.toIsoString=mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ga),Qn.lang=pn,fe("X",0,0,"unix"),fe("x",0,0,"valueOf"),ge("x",sn),ge("X",/[+-]?\d+(\.\d{1,3})?/),ln("X",function(x,L,G){G._d=new Date(1e3*parseFloat(x,10))}),ln("x",function(x,L,G){G._d=new Date(kt(x))}),_.version="2.24.0",b=hr,_.fn=on,_.min=function(){return On("isBefore",[].slice.call(arguments,0))},_.max=function(){return On("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=tt,_.unix=function(x){return hr(1e3*x)},_.months=function(x,L){return pa(x,L,"months")}
1251,_.isDate=F,_.locale=Qr,_.invalid=K,_.duration=pr,_.isMoment=Zt,_.weekdays=function(x,L,G){return Qa(x,L,G,"weekdays")},_.parseZone=function(){return hr.apply(null,arguments).parseZone()},_.localeData=cr,_.isDuration=Oi,_.monthsShort=function(x,L){return pa(x,L,"monthsShort")},_.weekdaysMin=function(x,L,G){return Qa(x,L,G,"weekdaysMin")},_.defineLocale=ka,_.updateLocale=function(x,L){if(L!=null){var G,ct,Xt=Nr;(ct=Ir(x))!=null&&(Xt=ct._config),(G=new bt(L=Y(Xt,L))).parentLocale=Gn[x],Gn[x]=G,Qr(x)}else Gn[x]!=null&&(Gn[x].parentLocale!=null?Gn[x]=Gn[x].parentLocale:Gn[x]!=null&&delete Gn[x]);return Gn[x]},_.locales=function(){return X(Gn)},_.weekdaysShort=function(x,L,G){return Qa(x,L,G,"weekdaysShort")},_.normalizeUnits=be,_.relativeTimeRounding=function(x){return x===void 0?ji:typeof x=="function"&&(ji=x,!0)},_.relativeTimeThreshold=function(x,L){return Ci[x]!==void 0&&(L===void 0?Ci[x]:(Ci[x]=L,x==="s"&&(Ci.ss=L-1),!0))},_.calendarFormat=function(x,L){var G=x.diff(L,"days",!0);return G<-6?"sameElse":G<-1?"lastWeek":G<0?"lastDay":G<1?"sameDay":G<2?"nextDay":G<7?"nextWeek":"sameElse"},_.prototype=on,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}()},6470:M=>{function R(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function f(u,_){for(var y,E="",A=0,w=-1,F=0,O=0;O<=u.length;++O){if(O<u.length)y=u.charCodeAt(O);else{if(y===47)break;y=47}if(y===47){if(!(w===O-1||F===1))if(w!==O-1&&F===2){if(E.length<2||A!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var j=E.lastIndexOf("/");if(j!==E.length-1){j===-1?(E="",A=0):A=(E=E.slice(0,j)).length-1-E.lastIndexOf("/"),w=O,F=0;continue}}else if(E.length===2||E.length===1){E="",A=0,w=O,F=0;continue}}_&&(E.length>0?E+="/..":E="..",A=2)}else E.length>0?E+="/"+u.slice(w+1,O):E=u.slice(w+1,O),A=O-w-1;w=O,F=0}else y===46&&F!==-1?++F:F=-1}return E}var b={resolve:function(){for(var u,_="",y=!1,E=arguments.length-1;E>=-1&&!y;E--){var A;E>=0?A=arguments[E]:(u===void 0&&(u=process.cwd()),A=u),R(A),A.length!==0&&(_=A+"/"+_,y=A.charCodeAt(0)===47)}return _=f(_,!y),y?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(u){if(R(u),u.length===0)return".";var _=u.charCodeAt(0)===47,y=u.charCodeAt(u.length-1)===47;return(u=f(u,!_)).length!==0||_||(u="."),u.length>0&&y&&(u+="/"),_?"/"+u:u},isAbsolute:function(u){return R(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,_=0;_<arguments.length;++_){var y=arguments[_];R(y),y.length>0&&(u===void 0?u=y:u+="/"+y)}return u===void 0?".":b.normalize(u)},relative:function(u,_){if(R(u),R(_),u===_||(u=b.resolve(u))===(_=b.resolve(_)))return"";for(var y=1;y<u.length&&u.charCodeAt(y)===47;++y);for(var E=u.length,A=E-y,w=1;w<_.length&&_.charCodeAt(w)===47;++w);for(var F=_.length-w,O=A<F?A:F,j=-1,H=0;H<=O;++H){if(H===O){if(F>O){if(_.charCodeAt(w+H)===47)return _.slice(w+H+1);if(H===0)return _.slice(w+H)}else A>O&&(u.charCodeAt(y+H)===47?j=H:H===0&&(j=0));break}var tt=u.charCodeAt(y+H);if(tt!==_.charCodeAt(w+H))break;tt===47&&(j=H)}var Q="";for(H=y+j+1;H<=E;++H)H!==E&&u.charCodeAt(H)!==47||(Q.length===0?Q+="..":Q+="/..");return Q.length>0?Q+_.slice(w+j):(w+=j,_.charCodeAt(w)===47&&++w,_.slice(w))},_makeLong:function(u){return u},dirname:function(u){if(R(u),u.length===0)return".";for(var _=u.charCodeAt(0),y=_===47,E=-1,A=!0,w=u.length-1;w>=1;--w)if((_=u.charCodeAt(w))===47){if(!A){E=w;break}}else A=!1;return E===-1?y?"/":".":y&&E===1?"//":u.slice(0,E)},basename:function(u,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');R(u);var y,E=0,A=-1,w=!0;if(_!==void 0&&_.length>0&&_.length<=u.length){if(_.length===u.length&&_===u)return"";var F=_.length-1,O=-1;for(y=u.length-1;y>=0;--y){var j=u.charCodeAt(y);if(j===47){if(!w){E=y+1;break}}else O===-1&&(w=!1,O=y+1),F>=0&&(j===_.charCodeAt(F)?--F==-1&&(A=y):(F=-1,A=O))}return E===A?A=O:A===-1&&(A=u.length),u.slice(E,A)}for(y=u.length-1;y>=0;--y)if(u.charCodeAt(y)===47){if(!w){E=y+1;break}}else A===-1&&(w=!1,A=y+1);return A===-1?"":u.slice(E,A)},extname:function(u){R(u);for(var _=-1,y=0,E=-1,A=!0,w=0,F=u.length-1;F>=0;--F){var O=u.charCodeAt(F);if(O!==47)E===-1&&(A=!1,E=F+1),O===46?_===-1?_=F:w!==1&&(w=1):_!==-1&&(w=-1);else if(!A){y=F+1;break}}return _===-1||E===-1||w===0||w===1&&_===E-1&&_===y+1?"":u.slice(_,E)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(_,y){var E=y.dir||y.root,A=y.base||(y.name||"")+(y.ext||"");return E?E===y.root?E+A:E+"/"+A:A}(0,u)},parse:function(u){R(u);var _={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return _;var y,E=u.charCodeAt(0),A=E===47;A?(_.root="/",y=1):y=0;for(var w=-1,F=0,O=-1,j=!0,H=u.length-1,tt=0;H>=y;
1251--H)if((E=u.charCodeAt(H))!==47)O===-1&&(j=!1,O=H+1),E===46?w===-1?w=H:tt!==1&&(tt=1):w!==-1&&(tt=-1);else if(!j){F=H+1;break}return w===-1||O===-1||tt===0||tt===1&&w===O-1&&w===F+1?O!==-1&&(_.base=_.name=F===0&&A?u.slice(1,O):u.slice(F,O)):(F===0&&A?(_.name=u.slice(1,w),_.base=u.slice(1,O)):(_.name=u.slice(F,w),_.base=u.slice(F,O)),_.ext=u.slice(w,O)),F>0?_.dir=u.slice(0,F-1):A&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b,M.exports=b},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(M,R,f)=>{function b(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function u(t){let e=t,r=t,a=t;function o(s,h,d=0,m=s.length){if(d<m){if(r(h,h)!==0)return m;do{const v=d+m>>>1;a(s[v],h)<0?d=v+1:m=v}while(d<m)}return d}return t.length!==2&&(e=(s,h)=>t(s)-h,r=b,a=(s,h)=>b(t(s),h)),{left:o,center:function(s,h,d=0,m=s.length){const v=o(s,h,d,m-1);return v>d&&e(s[v-1],h)>-e(s[v],h)?v-1:v},right:function(s,h,d=0,m=s.length){if(d<m){if(r(h,h)!==0)return m;do{const v=d+m>>>1;a(s[v],h)<=0?d=v+1:m=v}while(d<m)}return d}}}function _(t){return t===null?NaN:+t}f.r(R),f.d(R,{Adder:()=>vt,Delaunay:()=>th,FormatSpecifier:()=>ds,InternMap:()=>kt,InternSet:()=>It,Node:()=>$c,Voronoi:()=>V1,ZoomTransform:()=>Qo,active:()=>x1,arc:()=>Av,area:()=>rm,areaRadial:()=>sm,ascending:()=>b,autoType:()=>Al,axisBottom:()=>cr,axisLeft:()=>ea,axisRight:()=>ka,axisTop:()=>Qr,bin:()=>en,bisect:()=>F,bisectCenter:()=>w,bisectLeft:()=>A,bisectRight:()=>E,bisector:()=>u,blob:()=>$s,brush:()=>D1,brushSelection:()=>ml,brushX:()=>A1,brushY:()=>M1,buffer:()=>c0,chord:()=>Du,chordDirected:()=>Ou,chordTranspose:()=>Nu,cluster:()=>z3,color:()=>hn,contourDensity:()=>Cd,contours:()=>$1,count:()=>O,create:()=>yv,creator:()=>Lo,cross:()=>Q,csv:()=>h0,csvFormat:()=>zs,csvFormatBody:()=>rh,csvFormatRow:()=>Z1,csvFormatRows:()=>ih,csvFormatValue:()=>Q1,csvParse:()=>cn,csvParseRows:()=>js,cubehelix:()=>$a,cumsum:()=>ht,curveBasis:()=>Hv,curveBasisClosed:()=>Gv,curveBasisOpen:()=>Xv,curveBumpX:()=>Zv,curveBumpY:()=>Qv,curveBundle:()=>Kv,curveCardinal:()=>Jv,curveCardinalClosed:()=>t6,curveCardinalOpen:()=>e6,curveCatmullRom:()=>n6,curveCatmullRomClosed:()=>r6,curveCatmullRomOpen:()=>i6,curveLinear:()=>rd,curveLinearClosed:()=>a6,curveMonotoneX:()=>o6,curveMonotoneY:()=>s6,curveNatural:()=>c6,curveStep:()=>l6,curveStepAfter:()=>h6,curveStepBefore:()=>u6,descending:()=>K,deviation:()=>at,difference:()=>Dr,disjoint:()=>Tr,dispatch:()=>nr,drag:()=>Rd,dragDisable:()=>go,dragEnable:()=>yo,dsv:()=>u0,dsvFormat:()=>Cl,easeBack:()=>Il,easeBackIn:()=>qo,easeBackInOut:()=>Il,easeBackOut:()=>Ud,easeBounce:()=>Rc,easeBounceIn:()=>o0,easeBounceInOut:()=>br,easeBounceOut:()=>
1251Rc,easeCircle:()=>Bl,easeCircleIn:()=>i0,easeCircleInOut:()=>Bl,easeCircleOut:()=>a0,easeCubic:()=>Cs,easeCubicIn:()=>wu,easeCubicInOut:()=>Cs,easeCubicOut:()=>hl,easeElastic:()=>Fl,easeElasticIn:()=>s0,easeElasticInOut:()=>Us,easeElasticOut:()=>Fl,easeExp:()=>r0,easeExpIn:()=>ma,easeExpInOut:()=>r0,easeExpOut:()=>Yd,easeLinear:()=>zd,easePoly:()=>sh,easePolyIn:()=>Ol,easePolyInOut:()=>sh,easePolyOut:()=>J1,easeQuad:()=>Nl,easeQuadIn:()=>Dl,easeQuadInOut:()=>Nl,easeQuadOut:()=>$i,easeSin:()=>oo,easeSinIn:()=>e0,easeSinInOut:()=>oo,easeSinOut:()=>n0,every:()=>In,extent:()=>ut,fcumsum:()=>Gt,filter:()=>Fn,flatGroup:()=>Ct,flatRollup:()=>$t,forceCenter:()=>dh,forceCollide:()=>Ki,forceLink:()=>Fi,forceManyBody:()=>p0,forceRadial:()=>g0,forceSimulation:()=>f0,forceX:()=>y0,forceY:()=>zc,format:()=>zl,formatDefaultLocale:()=>v0,formatLocale:()=>Yc,formatPrefix:()=>_h,formatSpecifier:()=>co,fsum:()=>Zt,geoAlbers:()=>Np,geoAlbersUsa:()=>w3,geoArea:()=>gr,geoAzimuthalEqualArea:()=>T3,geoAzimuthalEqualAreaRaw:()=>Tf,geoAzimuthalEquidistant:()=>E3,geoAzimuthalEquidistantRaw:()=>Ef,geoBounds:()=>Wm,geoCentroid:()=>Zm,geoCircle:()=>Qm,geoClipAntimeridian:()=>nf,geoClipCircle:()=>tp,geoClipExtent:()=>t3,geoClipRectangle:()=>E0,geoConicConformal:()=>C3,geoConicConformalRaw:()=>Lp,geoConicEqualArea:()=>I0,geoConicEqualAreaRaw:()=>Dp,geoConicEquidistant:()=>M3,geoConicEquidistantRaw:()=>Ip,geoContains:()=>o3,geoDistance:()=>S0,geoEqualEarth:()=>D3,geoEqualEarthRaw:()=>Sf,geoEquirectangular:()=>A3,geoEquirectangularRaw:()=>Ih,geoGnomonic:()=>N3,geoGnomonicRaw:()=>Cf,geoGraticule:()=>up,geoGraticule10:()=>s3,geoIdentity:()=>O3,geoInterpolate:()=>c3,geoLength:()=>ep,geoMercator:()=>S3,geoMercatorRaw:()=>Lh,geoNaturalEarth1:()=>B3,geoNaturalEarth1Raw:()=>Af,geoOrthographic:()=>L3,geoOrthographicRaw:()=>Mf,geoPath:()=>v3,geoProjection:()=>Xo,geoProjectionMutator:()=>kf,geoRotation:()=>V2,geoStereographic:()=>I3,geoStereographicRaw:()=>Df,geoStream:()=>Nt,geoTransform:()=>_3,geoTransverseMercator:()=>F3,geoTransverseMercatorRaw:()=>Nf,gray:()=>Td,greatest:()=>mn,greatestIndex:()=>At,group:()=>yt,groupSort:()=>Qe,groups:()=>Y,hcl:()=>Ua,hierarchy:()=>Of,histogram:()=>en,hsl:()=>gc,html:()=>us,image:()=>Wd,index:()=>xe,indexes:()=>pe,interpolate:()=>Kn,interpolateArray:()=>dd,interpolateBasis:()=>a1,interpolateBasisClosed:()=>fi,interpolateBlues:()=>Qb,interpolateBrBG:()=>Db,interpolateBuGn:()=>jb,interpolateBuPu:()=>zb,interpolateCividis:()=>rv,interpolateCool:()=>ov,interpolateCubehelix:()=>y4,interpolateCubehelixDefault:()=>iv,interpolateCubehelixLong:()=>W0,interpolateDate:()=>s1,interpolateDiscrete:()=>l4,interpolateGnBu:()=>Yb,interpolateGreens:()=>Kb,interpolateGreys:()=>Jb,interpolateHcl:()=>p4,interpolateHclLong:()=>g4,interpolateHsl:()=>h4,interpolateHslLong:()=>d4,interpolateHue:()=>u4,interpolateInferno:()=>pv,interpolateLab:()=>f4,interpolateMagma:()=>fv,interpolateNumber:()=>oa,interpolateNumberArray:()=>bc,interpolateObject:()=>Zi,interpolateOrRd:()=>Ub,interpolateOranges:()=>nv,interpolatePRGn:()=>Nb,interpolatePiYG:()=>Ob,interpolatePlasma:()=>gv,interpolatePuBu:()=>Wb,interpolatePuBuGn:()=>$b,interpolatePuOr:()=>Bb,interpolatePuRd:()=>qb,interpolatePurples:()=>tv,interpolateRainbow:()=>sv,interpolateRdBu:()=>Lb,interpolateRdGy:()=>Ib,interpolateRdPu:()=>Vb,interpolateRdYlBu:()=>Fb,interpolateRdYlGn:()=>Rb,interpolateReds:()=>ev,interpolateRgb:()=>mc,interpolateRgbBasis:()=>rl,interpolateRgbBasisClosed:()=>hd,interpolateRound:()=>$0,interpolateSinebow:()=>uv,interpolateSpectral:()=>Pb,interpolateString:()=>Ra,interpolateTransformCss:()=>p1,interpolateTransformSvg:()=>cl,interpolateTurbo:()=>hv,interpolateViridis:()=>dv,interpolateWarm:()=>av,interpolateYlGn:()=>Gb,interpolateYlGnBu:()=>Hb,interpolateYlOrBr:()=>Xb,interpolateYlOrRd:()=>Zb,interpolateZoom:()=>tg,interrupt:()=>to,intersection:()=>Sn,interval:()=>C6,isoFormat:()=>T6,isoParse:()=>S6,json:()=>Vd,lab:()=>kl,lch:()=>Ed,least:()=>Xe,leastIndex:()=>Ee,line:()=>x2,lineRadial:()=>om,linkHorizontal:()=>Pv,linkRadial:()=>zv,linkVertical:()=>jv,local:()=>Jy,map:()=>Pn,matcher:()=>Vr,max:()=>qe,maxIndex:()=>An,mean:()=>Ie,median:()=>ln,merge:()=>Ye,min:()=>sn,minIndex:()=>dn,mode:()=>Jn,namespace:()=>Xr,namespaces:()=>Ti,nice:()=>de,now:()=>kc,pack:()=>X3,packEnclose:()=>Rp,packSiblings:()=>H3,pairs:()=>Dn,partition:()=>Z3,path:()=>Wo,permute:()=>De,pie:()=>Ov,piecewise:()=>ig,pointRadial:()=>Jh,pointer:()=>sa,pointers:()=>bv,polygonArea:()=>b4,polygonCentroid:()=>v4,polygonContains:()=>
1251w4,polygonHull:()=>k4,polygonLength:()=>T4,precisionFixed:()=>Ul,precisionPrefix:()=>$l,precisionRound:()=>xh,quadtree:()=>jc,quantile:()=>Oe,quantileSorted:()=>Be,quantize:()=>m4,quickselect:()=>Fe,radialArea:()=>sm,radialLine:()=>om,randomBates:()=>A4,randomBernoulli:()=>N4,randomBeta:()=>cg,randomBinomial:()=>lg,randomCauchy:()=>B4,randomExponential:()=>M4,randomGamma:()=>zf,randomGeometric:()=>sg,randomInt:()=>S4,randomIrwinHall:()=>og,randomLcg:()=>F4,randomLogNormal:()=>C4,randomLogistic:()=>L4,randomNormal:()=>jf,randomPareto:()=>D4,randomPoisson:()=>I4,randomUniform:()=>E4,randomWeibull:()=>O4,range:()=>Me,rank:()=>Ke,reduce:()=>jn,reverse:()=>fa,rgb:()=>ri,ribbon:()=>I1,ribbonArrow:()=>F1,rollup:()=>be,rollups:()=>We,scaleBand:()=>$f,scaleDiverging:()=>wy,scaleDivergingLog:()=>Ty,scaleDivergingPow:()=>y2,scaleDivergingSqrt:()=>vb,scaleDivergingSymlog:()=>Ey,scaleIdentity:()=>gg,scaleImplicit:()=>Yf,scaleLinear:()=>pg,scaleLog:()=>_g,scaleOrdinal:()=>Uf,scalePoint:()=>R4,scalePow:()=>Xf,scaleQuantile:()=>Cg,scaleQuantize:()=>Ag,scaleRadial:()=>Sg,scaleSequential:()=>vy,scaleSequentialLog:()=>_y,scaleSequentialPow:()=>g2,scaleSequentialQuantile:()=>ky,scaleSequentialSqrt:()=>bb,scaleSequentialSymlog:()=>xy,scaleSqrt:()=>q4,scaleSymlog:()=>wg,scaleThreshold:()=>Mg,scaleTime:()=>yb,scaleUtc:()=>mb,scan:()=>vr,schemeAccent:()=>xb,schemeBlues:()=>Hy,schemeBrBG:()=>Sy,schemeBuGn:()=>Iy,schemeBuPu:()=>Fy,schemeCategory10:()=>_b,schemeDark2:()=>kb,schemeGnBu:()=>Ry,schemeGreens:()=>Gy,schemeGreys:()=>Xy,schemeOrRd:()=>Py,schemeOranges:()=>Ky,schemePRGn:()=>Cy,schemePaired:()=>wb,schemePastel1:()=>Tb,schemePastel2:()=>Eb,schemePiYG:()=>Ay,schemePuBu:()=>zy,schemePuBuGn:()=>jy,schemePuOr:()=>My,schemePuRd:()=>Yy,schemePurples:()=>Zy,schemeRdBu:()=>Dy,schemeRdGy:()=>Ny,schemeRdPu:()=>Uy,schemeRdYlBu:()=>Oy,schemeRdYlGn:()=>By,schemeReds:()=>Qy,schemeSet1:()=>Sb,schemeSet2:()=>Cb,schemeSet3:()=>Ab,schemeSpectral:()=>Ly,schemeTableau10:()=>Mb,schemeYlGn:()=>Wy,schemeYlGnBu:()=>$y,schemeYlOrBr:()=>qy,schemeYlOrRd:()=>Vy,select:()=>kr,selectAll:()=>vv,selection:()=>qn,selector:()=>wi,selectorAll:()=>Or,shuffle:()=>Yt,shuffler:()=>Un,some:()=>En,sort:()=>me,stack:()=>p6,stackOffsetDiverging:()=>y6,stackOffsetExpand:()=>g6,stackOffsetNone:()=>ru,stackOffsetSilhouette:()=>m6,stackOffsetWiggle:()=>b6,stackOrderAppearance:()=>Nm,stackOrderAscending:()=>Om,stackOrderDescending:()=>_6,stackOrderInsideOut:()=>x6,stackOrderNone:()=>iu,stackOrderReverse:()=>k6,stratify:()=>t4,style:()=>Ve,subset:()=>Cr,sum:()=>Rn,superset:()=>Nn,svg:()=>Ma,symbol:()=>Vv,symbolCircle:()=>T2,symbolCross:()=>cm,symbolDiamond:()=>um,symbolSquare:()=>fm,symbolStar:()=>dm,symbolTriangle:()=>pm,symbolWye:()=>gm,symbols:()=>qv,text:()=>Pc,thresholdFreedmanDiaconis:()=>ge,thresholdScott:()=>re,thresholdSturges:()=>Le,tickFormat:()=>fg,tickIncrement:()=>dt,tickStep:()=>Mt,ticks:()=>ft,timeDay:()=>qh,timeDays:()=>X4,timeFormat:()=>d2,timeFormatDefaultLocale:()=>by,timeFormatLocale:()=>ny,timeFriday:()=>Pg,timeFridays:()=>t5,timeHour:()=>r2,timeHours:()=>G4,timeInterval:()=>Ri,timeMillisecond:()=>e2,timeMilliseconds:()=>Dg,timeMinute:()=>n2,timeMinutes:()=>H4,timeMonday:()=>Vh,timeMondays:()=>Z4,timeMonth:()=>i2,timeMonths:()=>n5,timeParse:()=>ry,timeSaturday:()=>jg,timeSaturdays:()=>e5,timeSecond:()=>Zs,timeSeconds:()=>Og,timeSunday:()=>Jl,timeSundays:()=>zg,timeThursday:()=>Vc,timeThursdays:()=>J4,timeTickInterval:()=>ey,timeTicks:()=>ty,timeTuesday:()=>Fg,timeTuesdays:()=>Q4,timeWednesday:()=>Rg,timeWednesdays:()=>K4,timeWeek:()=>Jl,timeWeeks:()=>zg,timeYear:()=>Qs,timeYears:()=>r5,timeout:()=>ol,timer:()=>jo,timerFlush:()=>ws,transition:()=>Ec,transpose:()=>Vn,tree:()=>i4,treemap:()=>a4,treemapBinary:()=>o4,treemapDice:()=>Yh,treemapResquarify:()=>c4,treemapSlice:()=>U0,treemapSliceDice:()=>s4,treemapSquarify:()=>Kp,tsv:()=>$d,tsvFormat:()=>Pd,tsvFormatBody:()=>Fc,tsvFormatRow:()=>K1,tsvFormatRows:()=>jd,tsvFormatValue:()=>oh,tsvParse:()=>ah,tsvParseRows:()=>ao,union:()=>yr,utcDay:()=>Hh,utcDays:()=>o5,utcFormat:()=>G0,utcFriday:()=>Hg,utcFridays:()=>h5,utcHour:()=>s2,utcHours:()=>a5,utcMillisecond:()=>e2,utcMilliseconds:()=>Dg,utcMinute:()=>o2,utcMinutes:()=>i5,utcMonday:()=>Gh,utcMondays:()=>s5,utcMonth:()=>c2,utcMonths:()=>f5,utcParse:()=>f2,utcSaturday:()=>Gg,utcSaturdays:()=>d5,utcSecond:()=>Zs,utcSeconds:()=>Og,utcSunday:()=>tu,utcSundays:()=>Xg,utcThursday:()=>Gc,utcThursdays:()=>u5,utcTickInterval:()=>Jg,utcTicks:()=>Kg,utcTuesday:()=>qg,utcTuesdays:()=>c5,utcWednesday:()=>Vg,utcWednesdays:()=>l5,utcWeek:()=>tu,utcWeeks:()=>Xg,utcYear:()=>Ks,utcYears:()=>p5,variance:()=>xt,window:()=>Za,xml:()=>hh,zip:()=>Hn,zoom:()=>L6,zoomIdentity:()=>ud,zoomTransform:()=>Im});const y=u(b),E=y.right,A=y.left,w=u(_).center,F=E;function O(t,e){let r=0;if(e===void 0)for(let a of t)a!=null&&(a=+a)>=a&&++r;else{let a=-1;for(let o of t)(o=e(o,++a,t))!=null&&(o=+o)>=o&&++r}return r}function j(t){return 0|t.length}function H(t){return!(t>0)}function tt(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function Q(...t){const e=typeof t[t.length-1]=="function"&&function(h){return d=>h(...d)}(t.pop()),r=(t=t.map(tt)).map(j),a=t.length-1,o=new Array(a+1).fill(0),s=[];if(a<0||r.some(H))return s;for(;;){s.push(o.map((d,m)=>
1251t[m][d]));let h=a;for(;++o[h]===r[h];){if(h===0)return e?s.map(e):s;o[h--]=0}}}function ht(t,e){var r=0,a=0;return Float64Array.from(t,e===void 0?o=>r+=+o||0:o=>r+=+e(o,a++,t)||0)}function K(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xt(t,e){let r,a=0,o=0,s=0;if(e===void 0)for(let h of t)h!=null&&(h=+h)>=h&&(r=h-o,o+=r/++a,s+=r*(h-o));else{let h=-1;for(let d of t)(d=e(d,++h,t))!=null&&(d=+d)>=d&&(r=d-o,o+=r/++a,s+=r*(d-o))}if(a>1)return s/(a-1)}function at(t,e){const r=xt(t,e);return r&&Math.sqrt(r)}function ut(t,e){let r,a;if(e===void 0)for(const o of t)o!=null&&(r===void 0?o>=o&&(r=a=o):(r>o&&(r=o),a<o&&(a=o)));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(r===void 0?s>=s&&(r=a=s):(r>s&&(r=s),a<s&&(a=s)))}return[r,a]}class vt{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const r=this._partials;let a=0;for(let o=0;o<this._n&&o<32;o++){const s=r[o],h=e+s,d=Math.abs(e)<Math.abs(s)?e-(h-s):s-(h-e);d&&(r[a++]=d),e=h}return r[a]=e,this._n=a+1,this}valueOf(){const e=this._partials;let r,a,o,s=this._n,h=0;if(s>0){for(h=e[--s];s>0&&(r=h,a=e[--s],h=r+a,o=a-(h-r),!o););s>0&&(o<0&&e[s-1]<0||o>0&&e[s-1]>0)&&(a=2*o,r=h+a,a==r-h&&(h=r))}return h}}function Zt(t,e){const r=new vt;if(e===void 0)for(let a of t)(a=+a)&&r.add(a);else{let a=-1;for(let o of t)(o=+e(o,++a,t))&&r.add(o)}return+r}function Gt(t,e){const r=new vt;let a=-1;return Float64Array.from(t,e===void 0?o=>r.add(+o||0):o=>r.add(+e(o,++a,t)||0))}class kt extends Map{constructor(e,r=ot){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(wt(this,e))}has(e){return super.has(wt(this,e))}set(e,r){return super.set(mt(this,e),r)}delete(e){return super.delete(X(this,e))}}class It extends Set{constructor(e,r=ot){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(wt(this,e))}add(e){return super.add(mt(this,e))}delete(e){return super.delete(X(this,e))}}function wt({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function mt({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function X({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function ot(t){return t!==null&&typeof t=="object"?t.valueOf():t}function z(t){return t}function yt(t,...e){return Ae(t,z,z,e)}function Y(t,...e){return Ae(t,Array.from,z,e)}function bt(t,e){for(let r=1,a=e.length;r<a;++r)t=t.flatMap(o=>o.pop().map(([s,h])=>[...o,s,h]));return t}function Ct(t,...e){return bt(Y(t,...e),e)}function $t(t,e,...r){return bt(We(t,e,...r),r)}function be(t,e,...r){return Ae(t,z,e,r)}function We(t,e,...r){return Ae(t,Array.from,e,r)}function xe(t,...e){return Ae(t,z,_e,e)}function pe(t,...e){return Ae(t,Array.from,_e,e)}function _e(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Ae(t,e,r,a){return function o(s,h){if(h>=a.length)return r(s);const d=new kt,m=a[h++];let v=-1;for(const C of s){const I=m(C,++v,s),D=d.get(I);D?D.push(C):d.set(I,[C])}for(const[C,I]of d)d.set(C,o(I,h));return e(d)}(t,0)}function De(t,e){return Array.from(e,r=>t[r])}function me(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[r]=e;if(r&&r.length!==2||e.length>1){const a=Uint32Array.from(t,(o,s)=>s);return e.length>1?(e=e.map(o=>t.map(o)),a.sort((o,s)=>{for(const h of e){const d=fe(h[o],h[s]);if(d)return d}})):(r=t.map(r),a.sort((o,s)=>fe(r[o],r[s]))),De(t,a)}return t.sort(wn(r))}function wn(t=b){if(t===b)return fe;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const a=t(e,r);return a||a===0?a:(t(r,r)===0)-(t(e,e)===0)}}function fe(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Qe(t,e,r){return(e.length!==2?me(be(t,e,r),([a,o],[s,h])=>
1251b(o,h)||b(a,s)):me(yt(t,r),([a,o],[s,h])=>e(o,h)||b(a,s))).map(([a])=>a)}var ne=Array.prototype,Qt=ne.slice;function oe(t){return()=>t}var Et=Math.sqrt(50),te=Math.sqrt(10),st=Math.sqrt(2);function ft(t,e,r){var a,o,s,h,d=-1;if(r=+r,(t=+t)==(e=+e)&&r>0)return[t];if((a=e<t)&&(o=t,t=e,e=o),(h=dt(t,e,r))===0||!isFinite(h))return[];if(h>0){let m=Math.round(t/h),v=Math.round(e/h);for(m*h<t&&++m,v*h>e&&--v,s=new Array(o=v-m+1);++d<o;)s[d]=(m+d)*h}else{h=-h;let m=Math.round(t*h),v=Math.round(e*h);for(m/h<t&&++m,v/h>e&&--v,s=new Array(o=v-m+1);++d<o;)s[d]=(m+d)/h}return a&&s.reverse(),s}function dt(t,e,r){var a=(e-t)/Math.max(0,r),o=Math.floor(Math.log(a)/Math.LN10),s=a/Math.pow(10,o);return o>=0?(s>=Et?10:s>=te?5:s>=st?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(s>=Et?10:s>=te?5:s>=st?2:1)}function Mt(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),o=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),s=a/o;return s>=Et?o*=10:s>=te?o*=5:s>=st&&(o*=2),e<t?-o:o}function de(t,e,r){let a;for(;;){const o=dt(t,e,r);if(o===a||o===0||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),a=o}}function Le(t){return Math.ceil(Math.log(O(t))/Math.LN2)+1}function en(){var t=z,e=ut,r=Le;function a(o){Array.isArray(o)||(o=Array.from(o));var s,h,d=o.length,m=new Array(d);for(s=0;s<d;++s)m[s]=t(o[s],s,o);var v=e(m),C=v[0],I=v[1],D=r(m,C,I);if(!Array.isArray(D)){const $=I,W=+D;if(e===ut&&([C,I]=de(C,I,W)),(D=ft(C,I,W))[D.length-1]>=I)if($>=I&&e===ut){const it=dt(C,I,W);isFinite(it)&&(it>0?I=(Math.floor(I/it)+1)*it:it<0&&(I=(Math.ceil(I*-it)+1)/-it))}else D.pop()}for(var P=D.length;D[0]<=C;)D.shift(),--P;for(;D[P-1]>I;)D.pop(),--P;var Z,U=new Array(P+1);for(s=0;s<=P;++s)(Z=U[s]=[]).x0=s>0?D[s-1]:C,Z.x1=s<P?D[s]:I;for(s=0;s<d;++s)(h=m[s])!=null&&C<=h&&h<=I&&U[F(D,h,0,P)].push(o[s]);return U}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:oe(o),a):t},a.domain=function(o){return arguments.length?(e=typeof o=="function"?o:oe([o[0],o[1]]),a):e},a.thresholds=function(o){return arguments.length?(r=typeof o=="function"?o:Array.isArray(o)?oe(Qt.call(o)):oe(o),a):r},a}function qe(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 o of t)(o=e(o,++a,t))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function sn(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 o of t)(o=e(o,++a,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Fe(t,e,r=0,a=t.length-1,o){for(o=o===void 0?fe:wn(o);a>r;){if(a-r>600){const m=a-r+1,v=e-r+1,C=Math.log(m),I=.5*Math.exp(2*C/3),D=.5*Math.sqrt(C*I*(m-I)/m)*(v-m/2<0?-1:1);Fe(t,e,Math.max(r,Math.floor(e-v*I/m+D)),Math.min(a,Math.floor(e+(m-v)*I/m+D)),o)}const s=t[e];let h=r,d=a;for(Te(t,r,e),o(t[a],s)>0&&Te(t,r,a);h<d;){for(Te(t,h,d),++h,--d;o(t[h],s)<0;)++h;for(;o(t[d],s)>0;)--d}o(t[r],s)===0?Te(t,r,d):(++d,Te(t,d,a)),d<=e&&(r=d+1),e<=d&&(a=d-1)}return t}function Te(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function Oe(t,e,r){if(t=Float64Array.from(function*(d,m){if(m===void 0)for(let v of d)v!=null&&(v=+v)>=v&&(yield v);else{let v=-1;for(let C of d)(C=m(C,++v,d))!=null&&(C=+C)>=C&&(yield C)}}(t,r)),a=t.length){if((e=+e)<=0||a<2)return sn(t);if(e>=1)return qe(t);var a,o=(a-1)*e,s=Math.floor(o),h=qe(Fe(t,s).subarray(0,s+1));return h+(sn(t.subarray(s+1))-h)*(o-s)}}function Be(t,e,r=_){if(a=t.length){if((e=+e)<=0||a<2)return+r(t[0],0,t);if(e>=1)return+r(t[a-1],a-1,t);var a,o=(a-1)*e,s=Math.floor(o),h=+r(t[s],s,t);return h+(+r(t[s+1],s+1,t)-h)*(o-s)}}function ge(t,e,r){return Math.ceil((r-e)/(2*(Oe(t,.75)-Oe(t,.25))*Math.pow(O(t),-1/3)))}function re(t,e,r){return Math.ceil((r-e)/(3.5*at(t)*Math.pow(O(t),-1/3)))}function An(t,e){let r,a=-1,o=-1;if(e===void 0)for(const s of t)++o,s!=null&&(r<s||r===void 0&&s>=s)&&(r=s,a=o);else for(let s of t)(s=e(s,++o,t))!=null&&(r<s||r===void 0&&s>=s)&&(r=s,a=o);return a}function Ie(t,e){let r=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++r,a+=o);else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(++r,a+=s)}if(r)return a/r}function ln(t,e){return Oe(t,.5,e)}function Ye(t){return Array.from(function*(e){for(const r of e)yield*r}(t))}function dn(t,e){let r,a=-1,o=-1;if(e===void 0)for(const s of t)++o,s!=null&&(r>s||r===void 0&&s>=s)&&(r=s,a=o);else for(let s of t)(s=e(s,++o,t))!=null&&(r>s||r===void 0&&s>=s)&&(r=s,a=o);return a}function Jn(t,e){const r=new kt;if(e===void 0)for(let s of t)s!=null&&s>=s&&r.set(s,(r.get(s)||0)+1);else{let s=-1;for(let h of t)(h=e(h,++s,t))!=null&&h>=h&&r.set(h,(r.get(h)||0)+1)}let a,o=0;for(const[s,h]of r)h>o&&(o=h,a=s);return a}function Dn(t,e=Tn){const r=[];let a,o=!1;for(const s of t)o&&r.push(e(a,s)),a=s,o=!0;return r}function Tn(t,e){return[t,e]}function Me(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var a=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),s=new Array(o);++a<o;)s[a]=t+a*r;return s}function Ke(t,e=b){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let r=Array.from(t);const a=new Float64Array(r.length);e.length!==2&&(r=r.map(e),e=b);const o=(d,m)=>e(r[d],r[m]);let s,h;return Uint32Array.from(r,(d,m)=>m).sort(e===b?(d,m)=>
1251fe(r[d],r[m]):wn(o)).forEach((d,m)=>{const v=o(d,s===void 0?d:s);v>=0?((s===void 0||v>0)&&(s=d,h=m),a[d]=h):a[d]=NaN}),a}function Xe(t,e=b){let r,a=!1;if(e.length===1){let o;for(const s of t){const h=e(s);(a?b(h,o)<0:b(h,h)===0)&&(r=s,o=h,a=!0)}}else for(const o of t)(a?e(o,r)<0:e(o,o)===0)&&(r=o,a=!0);return r}function Ee(t,e=b){if(e.length===1)return dn(t,e);let r,a=-1,o=-1;for(const s of t)++o,(a<0?e(s,s)===0:e(s,r)<0)&&(r=s,a=o);return a}function mn(t,e=b){let r,a=!1;if(e.length===1){let o;for(const s of t){const h=e(s);(a?b(h,o)>0:b(h,h)===0)&&(r=s,o=h,a=!0)}}else for(const o of t)(a?e(o,r)>0:e(o,o)===0)&&(r=o,a=!0);return r}function At(t,e=b){if(e.length===1)return An(t,e);let r,a=-1,o=-1;for(const s of t)++o,(a<0?e(s,s)===0:e(s,r)>0)&&(r=s,a=o);return a}function vr(t,e){const r=Ee(t,e);return r<0?void 0:r}const Yt=Un(Math.random);function Un(t){return function(e,r=0,a=e.length){let o=a-(r=+r);for(;o;){const s=t()*o--|0,h=e[o+r];e[o+r]=e[s+r],e[s+r]=h}return e}}function Rn(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let o of t)(o=+e(o,++a,t))&&(r+=o)}return r}function Vn(t){if(!(o=t.length))return[];for(var e=-1,r=sn(t,Mn),a=new Array(r);++e<r;)for(var o,s=-1,h=a[e]=new Array(o);++s<o;)h[s]=t[s][e];return a}function Mn(t){return t.length}function Hn(){return Vn(arguments)}function In(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let r=-1;for(const a of t)if(!e(a,++r,t))return!1;return!0}function En(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let r=-1;for(const a of t)if(e(a,++r,t))return!0;return!1}function Fn(t,e){if(typeof e!="function")throw new TypeError("test is not a function");const r=[];let a=-1;for(const o of t)e(o,++a,t)&&r.push(o);return r}function Pn(t,e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof e!="function")throw new TypeError("mapper is not a function");return Array.from(t,(r,a)=>e(r,a,t))}function jn(t,e,r){if(typeof e!="function")throw new TypeError("reducer is not a function");const a=t[Symbol.iterator]();let o,s,h=-1;if(arguments.length<3){if({done:o,value:r}=a.next(),o)return;++h}for(;{done:o,value:s}=a.next(),!o;)r=e(r,s,++h,t);return r}function fa(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Dr(t,...e){t=new It(t);for(const r of e)for(const a of r)t.delete(a);return t}function Tr(t,e){const r=e[Symbol.iterator](),a=new It;for(const o of t){if(a.has(o))return!1;let s,h;for(;({value:s,done:h}=r.next())&&!h;){if(Object.is(o,s))return!1;a.add(s)}}return!0}function Sn(t,...e){t=new It(t),e=e.map(oi);t:for(const r of t)for(const a of e)if(!a.has(r)){t.delete(r);continue t}return t}function oi(t){return t instanceof It?t:new It(t)}function Nn(t,e){const r=t[Symbol.iterator](),a=new Set;for(const o of e){const s=_r(o);if(a.has(s))continue;let h,d;for(;{value:h,done:d}=r.next();){if(d)return!1;const m=_r(h);if(a.add(m),Object.is(s,m))break}}return!0}function _r(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Cr(t,e){return Nn(e,t)}function yr(...t){const e=new It;for(const r of t)for(const a of r)e.add(a);return e}function qr(t){return t}var Dt=1e-6;function Ar(t){return"translate("+t+",0)"}function Nr(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function Zr(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Ur(){return!this.__axis}function Ir(t,e){var r=[],a=null,o=null,s=6,h=6,d=3,m=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=t===1||t===4?-1:1,C=t===4||t===2?"x":"y",I=t===1||t===3?Ar:Nr;function D(P){var Z=a??(e.ticks?e.ticks.apply(e,r):e.domain()),U=o??(e.tickFormat?e.tickFormat.apply(e,r):qr),$=Math.max(s,0)+d,W=e.range(),it=+W[0]+m,nt=+W[W.length-1]+m,rt=(e.bandwidth?Zr:Gn)(e.copy(),m),lt=P.selection?P.selection():P,pt=lt.selectAll(".domain").data([null]),Jt=lt.selectAll(".tick").data(Z,e).order(),ye=Jt.exit(),Ut=Jt.enter().append("g").attr("class","tick"),Pt=Jt.select("line"),jt=Jt.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Jt=Jt.merge(Ut),Pt=Pt.merge(Ut.append("line").attr("stroke","currentColor").attr(C+"2",v*s)),jt=jt.merge(Ut.append("text").attr("fill","currentColor").attr(C,v*$).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),P!==lt&&(pt=pt.transition(P),Jt=Jt.transition(P),Pt=Pt.transition(P),jt=jt.transition(P),ye=ye.transition(P).attr("opacity",Dt).attr("transform",function(zt){return isFinite(zt=rt(zt))?I(zt+m):this.getAttribute("transform")}),Ut.attr("opacity",Dt).attr("transform",function(zt){var gt=this.parentNode.__axis;return I((gt&&isFinite(gt=gt(zt))?gt:rt(zt))+m)})),ye.remove(),pt.attr("d",t===4||t===2?h?"M"+v*h+","+it+"H"+m+"V"+nt+"H"+v*
vendor: 8,578 bytes, line 1251
1251h:"M"+m+","+it+"V"+nt:h?"M"+it+","+v*h+"V"+m+"H"+nt+"V"+v*h:"M"+it+","+m+"H"+nt),Jt.attr("opacity",1).attr("transform",function(zt){return I(rt(zt)+m)}),Pt.attr(C+"2",v*s),jt.attr(C,v*$).text(U),lt.filter(Ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),lt.each(function(){this.__axis=rt})}return D.scale=function(P){return arguments.length?(e=P,D):e},D.ticks=function(){return r=Array.from(arguments),D},D.tickArguments=function(P){return arguments.length?(r=P==null?[]:Array.from(P),D):r.slice()},D.tickValues=function(P){return arguments.length?(a=P==null?null:Array.from(P),D):a&&a.slice()},D.tickFormat=function(P){return arguments.length?(o=P,D):o},D.tickSize=function(P){return arguments.length?(s=h=+P,D):s},D.tickSizeInner=function(P){return arguments.length?(s=+P,D):s},D.tickSizeOuter=function(P){return arguments.length?(h=+P,D):h},D.tickPadding=function(P){return arguments.length?(d=+P,D):d},D.offset=function(P){return arguments.length?(m=+P,D):m},D}function Qr(t){return Ir(1,t)}function ka(t){return Ir(2,t)}function cr(t){return Ir(3,t)}function ea(t){return Ir(4,t)}var na={value:()=>{}};function Ni(){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 rn(a)}function rn(t){this._=t}function Zn(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",o=r.indexOf(".");if(o>=0&&(a=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function an(t,e){for(var r,a=0,o=t.length;a<o;++a)if((r=t[a]).name===e)return r.value}function nn(t,e,r){for(var a=0,o=t.length;a<o;++a)if(t[a].name===e){t[a]=na,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}rn.prototype=Ni.prototype={constructor:rn,on:function(t,e){var r,a=this._,o=Zn(t+"",a),s=-1,h=o.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<h;)if(r=(t=o[s]).type)a[r]=nn(a[r],t.name,e);else if(e==null)for(r in a)a[r]=nn(a[r],t.name,null);return this}for(;++s<h;)if((r=(t=o[s]).type)&&(r=an(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new rn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,o=new Array(r),s=0;s<r;++s)o[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,r=(a=this._[t]).length;s<r;++s)a[s].value.apply(e,o)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],o=0,s=a.length;o<s;++o)a[o].value.apply(e,r)}};const nr=Ni;function qt(){}function wi(t){return t==null?qt:function(){return this.querySelector(t)}}function Kt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function xr(){return[]}function Or(t){return t==null?xr:function(){return this.querySelectorAll(t)}}function Vr(t){return function(){return this.matches(t)}}function li(t){return function(e){return e.matches(t)}}var wa=Array.prototype.find;function hr(){return this.firstElementChild}var xn=Array.prototype.filter;function ra(){return Array.from(this.children)}function On(t){return new Array(t.length)}function bi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function si(t){return function(){return t}}function Oi(t,e,r,a,o,s){for(var h,d=0,m=e.length,v=s.length;d<v;++d)(h=e[d])?(h.__data__=s[d],a[d]=h):r[d]=new bi(t,s[d]);for(;d<m;++d)(h=e[d])&&(o[d]=h)}function lr(t,e,r,a,o,s,h){var d,m,v,C=new Map,I=e.length,D=s.length,P=new Array(I);for(d=0;d<I;++d)(m=e[d])&&(P[d]=v=h.call(m,m.__data__,d,e)+"",C.has(v)?o[d]=m:C.set(v,m));for(d=0;d<D;++d)v=h.call(t,s[d],d,s)+"",(m=C.get(v))?(a[d]=m,m.__data__=s[d],C.delete(v)):r[d]=new bi(t,s[d]);for(d=0;d<I;++d)(m=e[d])&&C.get(P[d])===m&&(o[d]=m)}function Kr(t){return t.__data__}function Hr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Gr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}bi.prototype={constructor:bi,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 ni="http://www.w3.org/1999/xhtml";const Ti={svg:"http://www.w3.org/2000/svg",xhtml:ni,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xr(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Ti.hasOwnProperty(e)?{space:Ti[e],local:t}:t}function Ta(t){return function(){this.removeAttribute(t)}}function La(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function Jr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ti(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Oo(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 Za(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ia(t){return function(){this.style.removeProperty(t)}}function oc(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Ht(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Ve(t,e){return t.style.getPropertyValue(e)||Za(t).getComputedStyle(t,null).getPropertyValue(e)}function pn(t){return function(){delete this[t]}}function ar(t,e){return function(){this[t]=e}}function ci(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Er(t){return t.trim().split(/^|\s+/)}function ui(t){return t.classList||new Ia(t)}function Ia(t){this._node=t,this._names=Er(t.getAttribute("class")||"")}function hi(t,e){for(var r=ui(t),a=-1,o=e.length;++a<o;)r.add(e[a])}function Ei(t,e){for(var r=ui(t),a=-1,o=e.length;++a<o;)r.remove(e[a])}function Bo(t){return function(){hi(this,t)}}function sc(t){return function(){Ei(this,t)}}function Fa(t,e){return function(){(e.apply(this,arguments)?hi:Ei)(this,t)}}function cc(){this.textContent=""}function bs(t){return function(){this.textContent=t}}function lu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function on(){this.innerHTML=""}function Kc(t){return function(){this.innerHTML=t}}function Mr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function fo(){this.nextSibling&&this.parentNode.appendChild(this)}function pa(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qa(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===ni&&e.documentElement.namespaceURI===ni?e.createElement(t):e.createElementNS(r,t)}}function Si(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Lo(t){var e=Xr(t);return(e.local?Si:Qa)(e)}function lc(){return null}function uc(){var t=this.parentNode;t&&t.removeChild(this)}function hc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ea(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function uu(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 dc(t){return function(){var e=this.__on;if(e){for(var r,a=0,o=-1,s=e.length;a<s;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:this.removeEventListener(r.type,r.listener,r.options);++o?e.length=o:delete this.__on}}}function Sa(t,e,r){return function(){var a,o=this.__on,s=function(m){return function(v){m.call(this,v,this.__data__)}}(e);if(o){for(var h=0,d=o.length;h<d;++h)if((a=o[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=r),void(a.value=e)}this.addEventListener(t.type,s,r),a={type:t.type,name:t.name,value:e,listener:s,options:r},o?o.push(a):this.__on=[a]}}function vs(t,e,r){var a=Za(t),o=a.CustomEvent;typeof o=="function"?o=new o(e,r):(o=a.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dis
1251patchEvent(o)}function Jc(t,e){return function(){return vs(this,t,e)}}function Gi(t,e){return function(){return vs(this,t,e.apply(this,arguments))}}Ia.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 Io=[null];function di(t,e){this._groups=t,this._parents=e}function Jo(){return new di([[document.documentElement]],Io)}di.prototype=Jo.prototype={constructor:di,select:function(t){typeof t!="function"&&(t=wi(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h,d=e[o],m=d.length,v=a[o]=new Array(m),C=0;C<m;++C)(s=d[C])&&(h=t.call(s,s.__data__,C,d))&&("__data__"in s&&(h.__data__=s.__data__),v[C]=h);return new di(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(C){return function(){return Kt(C.apply(this,arguments))}}(t):Or(t);for(var e=this._groups,r=e.length,a=[],o=[],s=0;s<r;++s)for(var h,d=e[s],m=d.length,v=0;v<m;++v)(h=d[v])&&(a.push(t.call(h,h.__data__,v,d)),o.push(h));return new di(a,o)},selectChild:function(t){return this.select(t==null?hr:function(e){return function(){return wa.call(this.children,e)}}(typeof t=="function"?t:li(t)))},selectChildren:function(t){return this.selectAll(t==null?ra:function(e){return function(){return xn.call(this.children,e)}}(typeof t=="function"?t:li(t)))},filter:function(t){typeof t!="function"&&(t=Vr(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h=e[o],d=h.length,m=a[o]=[],v=0;v<d;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&m.push(s);return new di(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Kr);var r=e?lr:Oi,a=this._parents,o=this._groups;typeof t!="function"&&(t=si(t));for(var s=o.length,h=new Array(s),d=new Array(s),m=new Array(s),v=0;v<s;++v){var C=a[v],I=o[v],D=I.length,P=Hr(t.call(C,C&&C.__data__,v,a)),Z=P.length,U=d[v]=new Array(Z),$=h[v]=new Array(Z),W=m[v]=new Array(D);r(C,I,U,$,W,P,e);for(var it,nt,rt=0,lt=0;rt<Z;++rt)if(it=U[rt]){for(rt>=lt&&(lt=rt+1);!(nt=$[lt])&&++lt<Z;);it._next=nt||null}}return(h=new di(h,a))._enter=d,h._exit=m,h},enter:function(){return new di(this._enter||this._groups.map(On),this._parents)},exit:function(){return new di(this._exit||this._groups.map(On),this._parents)},join:function(t,e,r){var a=this.enter(),o=this,s=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(o=e(o))&&(o=o.selection()),r==null?s.remove():r(s),a&&o?a.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,o=r.length,s=a.length,h=Math.min(o,s),d=new Array(o),m=0;m<h;++m)for(var v,C=r[m],I=a[m],D=C.length,P=d[m]=new Array(D),Z=0;Z<D;++Z)(v=C[Z]||I[Z])&&(P[Z]=v);for(;m<o;++m)d[m]=r[m];return new di(d,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,o=t[e],s=o.length-1,h=o[s];--s>=0;)(a=o[s])&&(h&&4^a.compareDocumentPosition(h)&&h.parentNode.insertBefore(a,h),h=a);return this},sort:function(t){function e(I,D){return I&&D?t(I.__data__,D.__data__):!I-!D}t||(t=Gr);for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s){for(var h,d=r[s],m=d.length,v=o[s]=new Array(m),C=0;C<m;++C)(h=d[C])&&(v[C]=h);v.sort(e)}return new di(o,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],o=0,s=a.length;o<s;++o){var h=a[o];if(h)return h}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var o,s=e[r],h=0,d=s.length;h<d;++h)(o=s[h])&&t.call(o,o.__data__,h,s);return this},attr:function(t,e){var r=Xr(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?La:Ta:typeof e=="function"?r.local?Oo:ti:r.local?Jr:pr)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?ia:typeof e=="function"?Ht:oc)(t,e,r??"")):Ve(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?pn:typeof e=="function"?ci:ar)(t,e)):this.node()[t]},classed:function(t,e){var r=Er(t+"");
1251if(arguments.length<2){for(var a=ui(this.node()),o=-1,s=r.length;++o<s;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?Fa:e?Bo:sc)(r,e))},text:function(t){return arguments.length?this.each(t==null?cc:(typeof t=="function"?lu:bs)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?on:(typeof t=="function"?Mr:Kc)(t)):this.node().innerHTML},raise:function(){return this.each(fo)},lower:function(){return this.each(pa)},append:function(t){var e=typeof t=="function"?t:Lo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Lo(t),a=e==null?lc:typeof e=="function"?e:wi(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(uc)},clone:function(t){return this.select(t?Ea:hc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,o,s=uu(t+""),h=s.length;if(!(arguments.length<2)){for(d=e?Sa:dc,a=0;a<h;++a)this.each(d(s[a],e,r));return this}var d=this.node().__on;if(d){for(var m,v=0,C=d.length;v<C;++v)for(a=0,m=d[v];a<h;++a)if((o=s[a]).type===m.type&&o.name===m.name)return m.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Gi:Jc)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,o=t[e],s=0,h=o.length;s<h;++s)(a=o[s])&&(yield a)}};const qn=Jo;function kr(t){return typeof t=="string"?new di([[document.querySelector(t)]],[document.documentElement]):new di([[t]],Io)}const tl={passive:!1},Fo={capture:!0,passive:!1};function fc(t){t.stopImmediatePropagation()}function po(t){t.preventDefault(),t.stopImmediatePropagation()}function go(t){var e=t.document.documentElement,r=kr(t).on("dragstart.drag",po,Fo);"onselectstart"in e?r.on("selectstart.drag",po,Fo):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function yo(t,e){var r=t.document.documentElement,a=kr(t).on("dragstart.drag",null);e&&(a.on("click.drag",po,Fo),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ji(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ci(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function kn(){}var Xi=.7,ga=1/Xi,Qn="\\s*([+-]?\\d+)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G=/^#([0-9a-f]{3,8})$/,ct=new RegExp("^rgb\\("+[Qn,Qn,Qn]+"\\)$"),Xt=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),Se=new RegExp("^rgba\\("+[Qn,Qn,Qn,x]+"\\)$"),Pe=new RegExp("^rgba\\("+[L,L,L,x]+"\\)$"),Ze=new RegExp("^hsl\\("+[x,L,L]+"\\)$"),Je=new RegExp("^hsla\\("+[x,L,L,x]+"\\)$"),un={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 gn(){return this.rgb().formatHex()}function zn(){return this.rgb().formatRgb()}function hn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=G.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?mr(e):r===3?new Yr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?or(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?or(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ct.exec(t))?new Yr(e[1],e[2],e[3],1):(e=Xt.exec(t))?new Yr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Se.exec(t))?or(e[1],e[2],e[3],e[4]):(e=Pe.exec(t))?or(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ze.exec(t))?i1(e[1],e[2]/100,e[3]/100,1):(e=Je.exec(t))?i1(e[1],e[2]/100,e[3]/100,e[4]):un.hasOwnProperty(t)?mr(un[t]):t==="transparent"?new Yr(NaN,NaN,NaN,0):null}function mr(t){return new Yr(t>>16&255,t>>8&255,255&t,1)}function or(t,e,r,a){return a<=0&&(t=e=r=NaN),new Yr(t,e,r,a)}function $r(t){return t instanceof kn||(t=hn(t)),t?new Yr((t=t.rgb()).r,t.g,t.b,t.opacity):new Yr}function ri(t,e,r,a){return arguments.length===1?$r(t):new Yr(t,e,r,a??1)}function Yr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function _s(){return"#"+pc(this.r)+pc(this.g)+pc(this.b)}function hu(){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)||
vendor: 4,877 bytes, line 1251
12510))+", "+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 pc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function i1(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new aa(t,e,r,a)}function du(t){if(t instanceof aa)return new aa(t.h,t.s,t.l,t.opacity);if(t instanceof kn||(t=hn(t)),!t)return new aa;if(t instanceof aa)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,o=Math.min(e,r,a),s=Math.max(e,r,a),h=NaN,d=s-o,m=(s+o)/2;return d?(h=e===s?(r-a)/d+6*(r<a):r===s?(a-e)/d+2:(e-r)/d+4,d/=m<.5?s+o:2-s-o,h*=60):d=m>0&&m<1?0:h,new aa(h,d,m,t.opacity)}function gc(t,e,r,a){return arguments.length===1?du(t):new aa(t,e,r,a??1)}function aa(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function fu(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function xs(t,e,r,a,o){var s=t*t,h=s*t;return((1-3*t+3*s-h)*e+(4-6*s+3*h)*r+(1+3*t+3*s-3*h)*a+h*o)/6}function a1(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[a],s=t[a+1],h=a>0?t[a-1]:2*o-s,d=a<e-1?t[a+2]:2*s-o;return xs((r-a/e)*e,h,o,s,d)}}function fi(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),o=t[(a+e-1)%e],s=t[a%e],h=t[(a+1)%e],d=t[(a+2)%e];return xs((r-a/e)*e,o,s,h,d)}}ji(kn,hn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:gn,formatHex:gn,formatHsl:function(){return du(this).formatHsl()},formatRgb:zn,toString:zn}),ji(Yr,ri,Ci(kn,{brighter:function(t){return t=t==null?ga:Math.pow(ga,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_s,formatHex:_s,formatRgb:hu,toString:hu})),ji(aa,gc,Ci(kn,{brighter:function(t){return t=t==null?ga:Math.pow(ga,t),new aa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new aa(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,o=2*r-a;return new Yr(fu(t>=240?t-240:t+120,o,a),fu(t,o,a),fu(t<120?t+240:t-120,o,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 yc=t=>()=>t;function el(t,e){return function(r){return t+r*e}}function nl(t,e){var r=e-t;return r?el(t,r>180||r<-180?r-360*Math.round(r/360):r):yc(isNaN(t)?e:t)}function Ai(t,e){var r=e-t;return r?el(t,r):yc(isNaN(t)?e:t)}const mc=function t(e){var r=function(o){return(o=+o)==1?Ai:function(s,h){return h-s?function(d,m,v){return d=Math.pow(d,v),m=Math.pow(m,v)-d,v=1/v,function(C){return Math.pow(d+C*m,v)}}(s,h,o):yc(isNaN(s)?h:s)}}(e);function a(o,s){var h=r((o=ri(o)).r,(s=ri(s)).r),d=r(o.g,s.g),m=r(o.b,s.b),v=Ai(o.opacity,s.opacity);return function(C){return o.r=h(C),o.g=d(C),o.b=m(C),o.opacity=v(C),o+""}}return a.gamma=t,a}(1);function pu(t){return function(e){var r,a,o=e.length,s=new Array(o),h=new Array(o),d=new Array(o);for(r=0;r<o;++r)a=ri(e[r]),s[r]=a.r||0,h[r]=a.g||0,d[r]=a.b||0;return s=t(s),h=t(h),d=t(d),a.opacity=1,function(m){return a.r=s(m),a.g=h(m),a.b=d(m),a+""}}}var rl=pu(a1),hd=pu(fi);function bc(t,e){e||(e=[]);var r,a=t?Math.min(e.length,t.length):0,o=e.slice();return function(s){for(r=0;r<a;++r)o[r]=t[r]*(1-s)+e[r]*s;return o}}function vc(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function dd(t,e){return(vc(e)?bc:o1)(t,e)}function o1(t,e){var r,a=e?e.length:0,o=t?Math.min(a,t.length):0,s=new Array(o),h=new Array(a);for(r=0;r<o;++r)s[r]=Kn(t[r],e[r]);for(;r<a;++r)h[r]=e[r];return function(d){for(r=0;r<o;++r)h[r]=s[r](d);return h}}function s1(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function oa(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Zi(t,e){var r,a={},o={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?a[r]=Kn(t[r],e[r]):o[r]=e[r];return function(s){for(r in a)o[r]=a[r](s);return o}}var Mi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp(Mi.source,"g");function Ra(t,e){var r,a,o,s=Mi.lastIndex=ei.lastIndex=0,h=-1,d=[],m=[];for(t+="",e+="";(r=Mi.exec(t))&&(a=ei.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),d[h]?d[h]+=o:d[++h]=o),(r=r[0])===(a=a[0])?d[h]?d[h]+=a:d[++h]=a:(d[++h]=null,m.push({i:h,x:oa(r,a)}
1251)),s=ei.lastIndex;return s<e.length&&(o=e.slice(s),d[h]?d[h]+=o:d[++h]=o),d.length<2?m[0]?function(v){return function(C){return v(C)+""}}(m[0].x):function(v){return function(){return v}}(e):(e=m.length,function(v){for(var C,I=0;I<e;++I)d[(C=m[I]).i]=C.x(v);return d.join("")})}function Kn(t,e){var r,a=typeof e;return e==null||a==="boolean"?yc(e):(a==="number"?oa:a==="string"?(r=hn(e))?(e=r,mc):Ra:e instanceof hn?mc:e instanceof Date?s1:vc(e)?bc:Array.isArray(e)?o1:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Zi:oa)(t,e)}function Ca(t){let e;for(;e=t.sourceEvent;)t=e;return t}function sa(t,e){if(t=Ca(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,[(a=a.matrixTransform(e.getScreenCTM().inverse())).x,a.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var ts,_c,ks=0,Ro=0,Po=0,il=0,es=0,al=0,xc=typeof performance=="object"&&performance.now?performance:Date,c1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kc(){return es||(c1(l1),es=xc.now()+al)}function l1(){es=0}function wc(){this._call=this._time=this._next=null}function jo(t,e,r){var a=new wc;return a.restart(t,e,r),a}function ws(){kc(),++ks;for(var t,e=ts;e;)(t=es-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ks}function Ka(){es=(il=xc.now())+al,ks=Ro=0;try{ws()}finally{ks=0,function(){for(var t,e,r=ts,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ts=e);_c=t,Ts(a)}(),es=0}}function zo(){var t=xc.now(),e=t-il;e>1e3&&(al-=e,il=t)}function Ts(t){ks||(Ro&&(Ro=clearTimeout(Ro)),t-es>24?(t<1/0&&(Ro=setTimeout(Ka,t-xc.now()-al)),Po&&(Po=clearInterval(Po))):(Po||(il=xc.now(),Po=setInterval(zo,1e3)),ks=1,c1(Ka)))}function ol(t,e,r){var a=new wc;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}wc.prototype=jo.prototype={constructor:wc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?kc():+r)+(e==null?0:+e),this._next||_c===this||(_c?_c._next=this:ts=this,_c=this),this._call=t,this._time=r,Ts()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ts())}};var u1=nr("start","end","cancel","interrupt"),h1=[];function mo(t,e,r,a,o,s){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(d,m,v){var C,I=d.__transition;function D(U){var $,W,it,nt;if(v.state!==1)return Z();for($ in I)if((nt=I[$]).name===v.name){if(nt.state===3)return ol(D);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",d,d.__data__,nt.index,nt.group),delete I[$]):+$<m&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",d,d.__data__,nt.index,nt.group),delete I[$])}if(ol(function(){v.state===3&&(v.state=4,v.timer.restart(P,v.delay,v.time),P(U))}),v.state=2,v.on.call("start",d,d.__data__,v.index,v.group),v.state===2){for(v.state=3,C=new Array(it=v.tween.length),$=0,W=-1;$<it;++$)(nt=v.tween[$].value.call(d,d.__data__,v.index,v.group))&&(C[++W]=nt);C.length=W+1}}function P(U){for(var $=U<v.duration?v.ease.call(null,U/v.duration):(v.timer.restart(Z),v.state=5,1),W=-1,it=C.length;++W<it;)C[W].call(d,$);v.state===5&&(v.on.call("end",d,d.__data__,v.index,v.group),Z())}function Z(){for(var U in v.state=6,v.timer.stop(),delete I[m],I)return;delete d.__transition}I[m]=v,v.timer=jo(function(U){v.state=1,v.timer.restart(D,v.delay,v.time),v.delay<=U&&D(U-v.delay)},0,v.time)})(t,r,{name:e,index:a,group:o,on:u1,tween:h1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function sl(t,e){var r=Aa(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Ja(t,e){var r=Aa(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Aa(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function to(t,e){var r,a,o,s=t.__transition,h=!0;if(s){for(o in e=e==null?null:e+"",s)(r=s[o]).name===e?(a=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(a?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete s[o]):h=!1;h&&delete t.__transition}}var pi,d1=180/Math.PI,Es={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function f1(t,e,r,a,o,s){var h,d,m;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(m=t*r+e*a)&&(r-=t*m,a-=e*m),(d=Math.sqrt(r*r+a*a))&&(r/=d,a/=d,m/=d),t*a<e*r&&(t=-t,e=-e,m=-m,h=-h),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*d1,skewX:Math.atan(m)*d1,scaleX:h,scaleY:d}}function gu(t,e,r,a){function o(s){return s.length?s.pop()+" ":""}return function(s,h){var d=[],m=[];return s=t(s),h=t(h),function(v,C,I,D,P,Z){if(v!==I||C!==D){var U=P.push("translate(",null,e,null,r);Z.push({i:U-4,x:oa(v,I)},{i:U-2,x:oa(C,D)})}else(I||D)&&P.push("translate("+I+e+D+r)}(s.translateX,s.translateY,h.translateX,h.translateY,d,m),function(v,C,I,D){v!==C?(v-C>180?C+=360:C-v>180&&(v+=360),D.push({i:I.push(o(I)+"rotate(",null,a)-2,x:oa(v,C)})):C&&I.push(o(I)+"rotate("+C+a)}(s.rotate,h.rotate,d,m),function(v,C,I,D){v!==C?D.push({i:I.push(o(I)+"skewX(",
1251null,a)-2,x:oa(v,C)}):C&&I.push(o(I)+"skewX("+C+a)}(s.skewX,h.skewX,d,m),function(v,C,I,D,P,Z){if(v!==I||C!==D){var U=P.push(o(P)+"scale(",null,",",null,")");Z.push({i:U-4,x:oa(v,I)},{i:U-2,x:oa(C,D)})}else I===1&&D===1||P.push(o(P)+"scale("+I+","+D+")")}(s.scaleX,s.scaleY,h.scaleX,h.scaleY,d,m),s=h=null,function(v){for(var C,I=-1,D=m.length;++I<D;)d[(C=m[I]).i]=C.x(v);return d.join("")}}}var p1=gu(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Es:f1(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),cl=gu(function(t){return t==null?Es:(pi||(pi=document.createElementNS("http://www.w3.org/2000/svg","g")),pi.setAttribute("transform",t),(t=pi.transform.baseVal.consolidate())?f1((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Es)},", ",")",")");function g1(t,e){var r,a;return function(){var o=Ja(this,t),s=o.tween;if(s!==r){for(var h=0,d=(a=r=s).length;h<d;++h)if(a[h].name===e){(a=a.slice()).splice(h,1);break}}o.tween=a}}function fd(t,e,r){var a,o;if(typeof r!="function")throw new Error;return function(){var s=Ja(this,t),h=s.tween;if(h!==a){o=(a=h).slice();for(var d={name:e,value:r},m=0,v=o.length;m<v;++m)if(o[m].name===e){o[m]=d;break}m===v&&o.push(d)}s.tween=o}}function yu(t,e,r){var a=t._id;return t.each(function(){var o=Ja(this,a);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return Aa(o,a).value[e]}}function mu(t,e){var r;return(typeof e=="number"?oa:e instanceof hn?mc:(r=hn(e))?(e=r,mc):Ra)(t,e)}function Tc(t){return function(){this.removeAttribute(t)}}function bu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function y1(t,e,r){var a,o,s=r+"";return function(){var h=this.getAttribute(t);return h===s?null:h===a?o:o=e(a=h,r)}}function pd(t,e,r){var a,o,s=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===s?null:h===a?o:o=e(a=h,r)}}function bo(t,e,r){var a,o,s;return function(){var h,d,m=r(this);if(m!=null)return(h=this.getAttribute(t))===(d=m+"")?null:h===a&&d===o?s:(o=d,s=e(a=h,m));this.removeAttribute(t)}}function Yo(t,e,r){var a,o,s;return function(){var h,d,m=r(this);if(m!=null)return(h=this.getAttributeNS(t.space,t.local))===(d=m+"")?null:h===a&&d===o?s:(o=d,s=e(a=h,m));this.removeAttributeNS(t.space,t.local)}}function Br(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function m1(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function b1(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&m1(t,s)),r}return o._value=e,o}function gd(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&Br(t,s)),r}return o._value=e,o}function vu(t,e){return function(){sl(this,t).delay=+e.apply(this,arguments)}}function yd(t,e){return e=+e,function(){sl(this,t).delay=e}}function md(t,e){return function(){Ja(this,t).duration=+e.apply(this,arguments)}}function _u(t,e){return e=+e,function(){Ja(this,t).duration=e}}function xu(t,e){if(typeof e!="function")throw new Error;return function(){Ja(this,t).ease=e}}function vo(t,e,r){var a,o,s=function(h){return(h+"").trim().split(/^|\s+/).every(function(d){var m=d.indexOf(".");return m>=0&&(d=d.slice(0,m)),!d||d==="start"})}(e)?sl:Ja;return function(){var h=s(this,t),d=h.on;d!==a&&(o=(a=d).copy()).on(e,r),h.on=o}}var ll=qn.prototype.constructor;function v1(t){return function(){this.style.removeProperty(t)}}function _1(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function ku(t,e,r){var a,o;function s(){var h=e.apply(this,arguments);return h!==o&&(a=(o=h)&&_1(t,h,r)),a}return s._value=e,s}function ii(t){return function(e){this.textContent=t.call(this,e)}}function ns(t){var e,r;function a(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&ii(o)),e}return a._value=t,a}var Ss=0;function vi(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Ec(t){return qn().transition(t)}function ul(){return++Ss}var Pa=qn.prototype;function wu(t){return t*t*t}function hl(t){return--t*t*t+1}function Cs(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}vi.prototype=Ec.prototype={constructor:vi,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=wi(t));for(var a=this._groups,o=a.length,s=new Array(o),h=0;h<o;++h)for(var d,m,v=a[h],C=v.length,I=s[h]=new Array(C),D=0;D<C;++D)(d=v[D])&&(m=t.call(d,d.__data__,D,v))&&("__data__"in d&&(m.__data__=d.__data__),I[D]=m,mo(I[D],e,r,D,I,Aa(d,r)));return new vi(s,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Or(t));for(var a=this._groups,o=a.length,s=[],h=[],d=0;d<o;++d)for(var m,v=a[d],C=v.length,I=0;I<C;++I)if(m=v[I]){for(var D,P=t.call(m,m.__data__,I,v),Z=Aa(m,r),U=0,$=P.length;U<$;++U)(D=P[U])&&mo(D,e,r,U,P,Z);s.push(P),h.push(m)}return new vi(s,h,e,r)},selectChild:Pa.selectChild,selectChildren:Pa.selectChildren,filter:function(t){typeof t!="function"&&(t=Vr(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h=e[o],d=h.length,m=a[o]=[],v=0;v<d;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&m.push(s);return new vi(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,o=r.length,s=Math.min(a,o),h=new Array(a),d=0;d<s;++d)for(var m,v=e[d],C=r[d],I=v.length,D=h[d]=new Array(I),P=0;P<I;
1251++P)(m=v[P]||C[P])&&(D[P]=m);for(;d<a;++d)h[d]=e[d];return new vi(h,this._parents,this._name,this._id)},selection:function(){return new ll(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=ul(),a=this._groups,o=a.length,s=0;s<o;++s)for(var h,d=a[s],m=d.length,v=0;v<m;++v)if(h=d[v]){var C=Aa(h,e);mo(h,t,r,v,d,{time:C.time+C.delay+C.duration,delay:0,duration:C.duration,ease:C.ease})}return new vi(a,this._parents,t,r)},call:Pa.call,nodes:Pa.nodes,node:Pa.node,size:Pa.size,empty:Pa.empty,each:Pa.each,on:function(t,e){var r=this._id;return arguments.length<2?Aa(this.node(),r).on.on(t):this.each(vo(r,t,e))},attr:function(t,e){var r=Xr(t),a=r==="transform"?cl:mu;return this.attrTween(t,typeof e=="function"?(r.local?Yo:bo)(r,a,yu(this,"attr."+t,e)):e==null?(r.local?bu:Tc)(r):(r.local?pd:y1)(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=Xr(t);return this.tween(r,(a.local?b1:gd)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?p1:mu;return e==null?this.styleTween(t,function(o,s){var h,d,m;return function(){var v=Ve(this,o),C=(this.style.removeProperty(o),Ve(this,o));return v===C?null:v===h&&C===d?m:m=s(h=v,d=C)}}(t,a)).on("end.style."+t,v1(t)):typeof e=="function"?this.styleTween(t,function(o,s,h){var d,m,v;return function(){var C=Ve(this,o),I=h(this),D=I+"";return I==null&&(this.style.removeProperty(o),D=I=Ve(this,o)),C===D?null:C===d&&D===m?v:(m=D,v=s(d=C,I))}}(t,a,yu(this,"style."+t,e))).each(function(o,s){var h,d,m,v,C="style."+s,I="end."+C;return function(){var D=Ja(this,o),P=D.on,Z=D.value[C]==null?v||(v=v1(s)):void 0;P===h&&m===Z||(d=(h=P).copy()).on(I,m=Z),D.on=d}}(this._id,t)):this.styleTween(t,function(o,s,h){var d,m,v=h+"";return function(){var C=Ve(this,o);return C===v?null:C===d?m:m=s(d=C,h)}}(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,ku(t,e,r??""))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r??""}}(yu(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,ns(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,o=Aa(this.node(),r).tween,s=0,h=o.length;s<h;++s)if((a=o[s]).name===t)return a.value;return null}return this.each((e==null?g1:fd)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vu:yd)(e,t)):Aa(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?md:_u)(e,t)):Aa(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(xu(e,t)):Aa(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;Ja(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,o=r.size();return new Promise(function(s,h){var d={value:h},m={value:function(){--o==0&&s()}};r.each(function(){var v=Ja(this,a),C=v.on;C!==t&&((e=(t=C).copy())._.cancel.push(d),e._.interrupt.push(d),e._.end.push(m)),v.on=e}),o===0&&s()})},[Symbol.iterator]:Pa[Symbol.iterator]};var dl={time:null,delay:0,duration:250,ease:Cs};function bd(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}qn.prototype.interrupt=function(t){return this.each(function(){to(this,t)})},qn.prototype.transition=function(t){var e,r;t instanceof vi?(e=t._id,t=t._name):(e=ul(),(r=dl).time=kc(),t=t==null?null:t+"");for(var a=this._groups,o=a.length,s=0;s<o;++s)for(var h,d=a[s],m=d.length,v=0;v<m;++v)(h=d[v])&&mo(h,t,e,v,d,r||bd(h,e));return new vi(a,this._parents,t,e)};var Tu=[null];function x1(t,e){var r,a,o=t.__transition;if(o){for(a in e=e==null?null:e+"",o)if((r=o[a]).state>1&&r.name===e)return new vi([[t]],Tu,e,+a)}return null}const Eu=t=>()=>t;function Su(t,{sourceEvent:e,target:r,selection:a,mode:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function k1(t){t.stopImmediatePropagation()}function Cu(t){t.preventDefault(),t.stopImmediatePropagation()}var Au={name:"drag"},fl={name:"space"},ya={name:"handle"},As={name:"center"};const{abs:ca,max:zi,min:Bi}=Math;function w1(t){return[+t[0],+t[1]]}function Mu(t){return[w1(t[0]),w1(t[1])]}var pl={name:"x",handles:["w","e"].map(Sc),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},gl={name:"y",handles:["n","s"].map(Sc),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},vd={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Sc),input:function(t){return t==null?null:Mu(t)},output:function(t){return t}},_o={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"},T1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},E1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},_d={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xd={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Sc(t){return{type:t}}function xo(t){return!t.ctrlKey&&!t.button}function kd(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function S1(){return navigator.maxTouchPoints||"ontouchstart"in this}function yl(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function C1(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ml(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function A1(){return Cc(pl)}function M1(){return Cc(gl)}function D1(){return Cc(vd)}function Cc(t){var e,r=kd,a=xo,o=S1,s=!0,h=nr("start","brush","end"),d=6;function m($){var W=$.property("__brush",U).selectAll(".overlay").data([Sc("overlay")]);W.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",_o.overlay).merge(W).each(function(){var nt=yl(this).extent;
1251kr(this).attr("x",nt[0][0]).attr("y",nt[0][1]).attr("width",nt[1][0]-nt[0][0]).attr("height",nt[1][1]-nt[0][1])}),$.selectAll(".selection").data([Sc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",_o.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var it=$.selectAll(".handle").data(t.handles,function(nt){return nt.type});it.exit().remove(),it.enter().append("rect").attr("class",function(nt){return"handle handle--"+nt.type}).attr("cursor",function(nt){return _o[nt.type]}),$.each(v).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",D).filter(o).on("touchstart.brush",D).on("touchmove.brush",P).on("touchend.brush touchcancel.brush",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(){var $=kr(this),W=yl(this).selection;W?($.selectAll(".selection").style("display",null).attr("x",W[0][0]).attr("y",W[0][1]).attr("width",W[1][0]-W[0][0]).attr("height",W[1][1]-W[0][1]),$.selectAll(".handle").style("display",null).attr("x",function(it){return it.type[it.type.length-1]==="e"?W[1][0]-d/2:W[0][0]-d/2}).attr("y",function(it){return it.type[0]==="s"?W[1][1]-d/2:W[0][1]-d/2}).attr("width",function(it){return it.type==="n"||it.type==="s"?W[1][0]-W[0][0]+d:d}).attr("height",function(it){return it.type==="e"||it.type==="w"?W[1][1]-W[0][1]+d:d})):$.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function C($,W,it){var nt=$.__brush.emitter;return!nt||it&&nt.clean?new I($,W,it):nt}function I($,W,it){this.that=$,this.args=W,this.state=$.__brush,this.active=0,this.clean=it}function D($){if((!e||$.touches)&&a.apply(this,arguments)){var W,it,nt,rt,lt,pt,Jt,ye,Ut,Pt,jt,zt=this,gt=$.target.__data__.type,Bt=(s&&$.metaKey?gt="overlay":gt)==="selection"?Au:s&&$.altKey?As:ya,Vt=t===gl?null:_d[gt],ae=t===pl?null:xd[gt],we=yl(zt),ze=we.extent,He=we.selection,fn=ze[0][0],Ge=ze[0][1],Yn=ze[1][0],Wn=ze[1][1],Cn=0,Ln=0,wr=Vt&&ae&&s&&$.shiftKey,ir=Array.from($.touches||[$],sr=>{const Pi=sr.identifier;return(sr=sa(sr,zt)).point0=sr.slice(),sr.identifier=Pi,sr});to(zt);var Ba=C(zt,arguments,!0).beforestart();if(gt==="overlay"){He&&(Ut=!0);const sr=[ir[0],ir[1]||ir[0]];we.selection=He=[[W=t===gl?fn:Bi(sr[0][0],sr[1][0]),nt=t===pl?Ge:Bi(sr[0][1],sr[1][1])],[lt=t===gl?Yn:zi(sr[0][0],sr[1][0]),Jt=t===pl?Wn:zi(sr[0][1],sr[1][1])]],ir.length>1&&Zc($)}else W=He[0][0],nt=He[0][1],lt=He[1][0],Jt=He[1][1];it=W,rt=nt,pt=lt,ye=Jt;var rc=kr(zt).attr("pointer-events","none"),No=rc.selectAll(".overlay").attr("cursor",_o[gt]);if($.touches)Ba.moved=Rm,Ba.ended=Pm;else{var au=kr($.view).on("mousemove.brush",Rm,!0).on("mouseup.brush",Pm,!0);
vendor: 1,603 bytes, line 1251
1251s&&au.on("keydown.brush",I6,!0).on("keyup.brush",F6,!0),go($.view)}v.call(zt),Ba.start($,Bt.name)}function Rm(sr){for(const Pi of sr.changedTouches||[sr])for(const e1 of ir)e1.identifier===Pi.identifier&&(e1.cur=sa(Pi,zt));if(wr&&!Pt&&!jt&&ir.length===1){const Pi=ir[0];ca(Pi.cur[0]-Pi[0])>ca(Pi.cur[1]-Pi[1])?jt=!0:Pt=!0}for(const Pi of ir)Pi.cur&&(Pi[0]=Pi.cur[0],Pi[1]=Pi.cur[1]);Ut=!0,Cu(sr),Zc(sr)}function Zc(sr){const Pi=ir[0],e1=Pi.point0;var ic;switch(Cn=Pi[0]-e1[0],Ln=Pi[1]-e1[1],Bt){case fl:case Au:Vt&&(Cn=zi(fn-W,Bi(Yn-lt,Cn)),it=W+Cn,pt=lt+Cn),ae&&(Ln=zi(Ge-nt,Bi(Wn-Jt,Ln)),rt=nt+Ln,ye=Jt+Ln);break;case ya:ir[1]?(Vt&&(it=zi(fn,Bi(Yn,ir[0][0])),pt=zi(fn,Bi(Yn,ir[1][0])),Vt=1),ae&&(rt=zi(Ge,Bi(Wn,ir[0][1])),ye=zi(Ge,Bi(Wn,ir[1][1])),ae=1)):(Vt<0?(Cn=zi(fn-W,Bi(Yn-W,Cn)),it=W+Cn,pt=lt):Vt>0&&(Cn=zi(fn-lt,Bi(Yn-lt,Cn)),it=W,pt=lt+Cn),ae<0?(Ln=zi(Ge-nt,Bi(Wn-nt,Ln)),rt=nt+Ln,ye=Jt):ae>0&&(Ln=zi(Ge-Jt,Bi(Wn-Jt,Ln)),rt=nt,ye=Jt+Ln));break;case As:Vt&&(it=zi(fn,Bi(Yn,W-Cn*Vt)),pt=zi(fn,Bi(Yn,lt+Cn*Vt))),ae&&(rt=zi(Ge,Bi(Wn,nt-Ln*ae)),ye=zi(Ge,Bi(Wn,Jt+Ln*ae)))}pt<it&&(Vt*=-1,ic=W,W=lt,lt=ic,ic=it,it=pt,pt=ic,gt in T1&&No.attr("cursor",_o[gt=T1[gt]])),ye<rt&&(ae*=-1,ic=nt,nt=Jt,Jt=ic,ic=rt,rt=ye,ye=ic,gt in E1&&No.attr("cursor",_o[gt=E1[gt]])),we.selection&&(He=we.selection),Pt&&(it=He[0][0],pt=He[1][0]),jt&&(rt=He[0][1],ye=He[1][1]),He[0][0]===it&&He[0][1]===rt&&He[1][0]===pt&&He[1][1]===ye||(we.selection=[[it,rt],[pt,ye]],v.call(zt),Ba.brush(sr,Bt.name))}function Pm(sr){if(k1(sr),sr.touches){if(sr.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}
1251else yo(sr.view,Ut),au.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);rc.attr("pointer-events","all"),No.attr("cursor",_o.overlay),we.selection&&(He=we.selection),C1(He)&&(we.selection=null,v.call(zt)),Ba.end(sr,Bt.name)}function I6(sr){switch(sr.keyCode){case 16:wr=Vt&&ae;break;case 18:Bt===ya&&(Vt&&(lt=pt-Cn*Vt,W=it+Cn*Vt),ae&&(Jt=ye-Ln*ae,nt=rt+Ln*ae),Bt=As,Zc(sr));break;case 32:Bt!==ya&&Bt!==As||(Vt<0?lt=pt-Cn:Vt>0&&(W=it-Cn),ae<0?Jt=ye-Ln:ae>0&&(nt=rt-Ln),Bt=fl,No.attr("cursor",_o.selection),Zc(sr));break;default:return}Cu(sr)}function F6(sr){switch(sr.keyCode){case 16:wr&&(Pt=jt=wr=!1,Zc(sr));break;case 18:Bt===As&&(Vt<0?lt=pt:Vt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Bt=ya,Zc(sr));break;case 32:Bt===fl&&(sr.altKey?(Vt&&(lt=pt-Cn*Vt,W=it+Cn*Vt),ae&&(Jt=ye-Ln*ae,nt=rt+Ln*ae),Bt=As):(Vt<0?lt=pt:Vt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Bt=ya),No.attr("cursor",_o[gt]),Zc(sr));break;default:return}Cu(sr)}}function P($){C(this,arguments).moved($)}function Z($){C(this,arguments).ended($)}function U(){var $=this.__brush||{selection:null};return $.extent=Mu(r.apply(this,arguments)),$.dim=t,$}return m.move=function($,W,it){$.tween?$.on("start.brush",function(nt){C(this,arguments).beforestart().start(nt)}).on("interrupt.brush end.brush",function(nt){C(this,arguments).end(nt)}).tween("brush",function(){var nt=this,rt=nt.__brush,lt=C(nt,arguments),pt=rt.selection,Jt=t.input(typeof W=="function"?W.apply(this,arguments):W,rt.extent),ye=Kn(pt,Jt);function Ut(Pt){rt.selection=Pt===1&&Jt===null?null:ye(Pt),v.call(nt),lt.brush()}return pt!==null&&Jt!==null?Ut:Ut(1)}):$.each(function(){var nt=this,rt=arguments,lt=nt.__brush,pt=t.input(typeof W=="function"?W.apply(nt,rt):W,lt.extent),Jt=C(nt,rt).beforestart();to(nt),lt.selection=pt===null?null:pt,v.call(nt),Jt.start(it).brush(it).end(it)})},m.clear=function($,W){m.move($,null,W)},I.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function($,W){return this.starting?(this.starting=!1,this.emit("start",$,W)):this.emit("brush",$),this},brush:function($,W){return this.emit("brush",$,W),this},end:function($,W){return--this.active==0&&(delete this.state.emitter,this.emit("end",$,W)),this},emit:function($,W,it){var nt=kr(this.that).datum();h.call($,this.that,new Su($,{sourceEvent:W,target:m,selection:t.output(this.state.selection),mode:it,dispatch:h}),nt)}},m.extent=function($){return arguments.length?(r=typeof $=="function"?$:Eu(Mu($)),m):r},m.filter=function($){return arguments.length?(a=typeof $=="function"?$:Eu(!!$),m):a},m.touchable=function($){return arguments.length?(o=typeof $=="function"?$:Eu(!!$),m):o},m.handleSize=function($){return arguments.length?(d=+$,m):d},m.keyModifiers=function($){return arguments.length?(s=!!$,m):s},m.on=function(){var $=h.on.apply(h,arguments);return $===h?m:$},m}var N1=Math.abs,rs=Math.cos,Uo=Math.sin,bl=Math.PI,is=bl/2,ja=2*bl,vl=Math.max,Ac=1e-12;function as(t,e){return Array.from({length:e-t},(r,a)=>t+a)}function Mc(t){return function(e,r){return t(e.source.value+e.target.value,r.source.value+r.target.value)}}function Du(){return $o(!1,!1)}function Nu(){return $o(!1,!0)}function Ou(){return $o(!0,!1)}function $o(t,e){var r=0,a=null,o=null,s=null;function h(d){var m,v=d.length,C=new Array(v),I=as(0,v),D=new Array(v*v),P=new Array(v),Z=0;d=Float64Array.from({length:v*v},e?(U,$)=>d[$%v][$/v|0]:(U,$)=>d[$/v|0][$%v]);for(let U=0;U<v;++U){let $=0;for(let W=0;W<v;++W)$+=d[U*v+W]+t*d[W*v+U];Z+=C[U]=$}m=(Z=vl(0,ja-r*v)/Z)?r:ja/v;{let U=0;a&&I.sort(($,W)=>a(C[$],C[W]));for(const $ of I){const W=U;if(t){const it=as(1+~v,v).filter(nt=>nt<0?d[~nt*v+$]:d[$*v+nt]);o&&it.sort((nt,rt)=>o(nt<0?-d[~nt*v+$]:d[$*v+nt],rt<0?-d[~rt*v+$]:d[$*v+rt]));for(const nt of it)nt<0?(D[~nt*v+$]||(D[~nt*v+$]={source:null,target:null})).target={index:$,startAngle:U,endAngle:U+=d[~nt*v+$]*Z,value:d[~nt*v+$]}:(D[$*v+nt]||(D[$*v+nt]={source:null,target:null})).source={index:$,startAngle:U,endAngle:U+=d[$*v+nt]*Z,value:d[$*v+nt]};P[$]={index:$,startAngle:W,endAngle:U,value:C[$]}}else{const it=as(0,v).filter(nt=>d[$*v+nt]||d[nt*v+$]);o&&it.sort((nt,rt)=>o(d[$*v+nt],d[$*v+rt]));for(const nt of it){let rt;
vendor: 5,019 bytes, line 1251
1251if($<nt?(rt=D[$*v+nt]||(D[$*v+nt]={source:null,target:null}),rt.source={index:$,startAngle:U,endAngle:U+=d[$*v+nt]*Z,value:d[$*v+nt]}):(rt=D[nt*v+$]||(D[nt*v+$]={source:null,target:null}),rt.target={index:$,startAngle:U,endAngle:U+=d[$*v+nt]*Z,value:d[$*v+nt]},$===nt&&(rt.source=rt.target)),rt.source&&rt.target&&rt.source.value<rt.target.value){const lt=rt.source;rt.source=rt.target,rt.target=lt}}P[$]={index:$,startAngle:W,endAngle:U,value:C[$]}}U+=m}}return(D=Object.values(D)).groups=P,s?D.sort(s):D}return h.padAngle=function(d){return arguments.length?(r=vl(0,d),h):r},h.sortGroups=function(d){return arguments.length?(a=d,h):a},h.sortSubgroups=function(d){return arguments.length?(o=d,h):o},h.sortChords=function(d){return arguments.length?(d==null?s=null:(s=Mc(d))._=d,h):s&&s._},h}const _l=Math.PI,Ms=2*_l,za=1e-6,Bu=Ms-za;function Dc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lu(){return new Dc}Dc.prototype=Lu.prototype={constructor:Dc,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,o,s){this._+="C"+ +t+","+ +e+","+ +r+","+ +a+","+(this._x1=+o)+","+(this._y1=+s)},arcTo:function(t,e,r,a,o){t=+t,e=+e,r=+r,a=+a,o=+o;var s=this._x1,h=this._y1,d=r-t,m=a-e,v=s-t,C=h-e,I=v*v+C*C;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(I>za)if(Math.abs(C*d-m*v)>za&&o){var D=r-s,P=a-h,Z=d*d+m*m,U=D*D+P*P,$=Math.sqrt(Z),W=Math.sqrt(I),it=o*Math.tan((_l-Math.acos((Z+I-U)/(2*$*W)))/2),nt=it/W,rt=it/$;Math.abs(nt-1)>za&&(this._+="L"+(t+nt*v)+","+(e+nt*C)),this._+="A"+o+","+o+",0,0,"+ +(C*D>v*P)+","+(this._x1=t+rt*d)+","+(this._y1=e+rt*m)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,o,s){t=+t,e=+e,s=!!s;var h=(r=+r)*Math.cos(a),d=r*Math.sin(a),m=t+h,v=e+d,C=1^s,I=s?a-o:o-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+m+","+v:(Math.abs(this._x1-m)>za||Math.abs(this._y1-v)>za)&&(this._+="L"+m+","+v),r&&(I<0&&(I=I%Ms+Ms),I>Bu?this._+="A"+r+","+r+",0,1,"+C+","+(t-h)+","+(e-d)+"A"+r+","+r+",0,1,"+C+","+(this._x1=m)+","+(this._y1=v):I>za&&(this._+="A"+r+","+r+",0,"+ +(I>=_l)+","+C+","+(this._x1=t+r*Math.cos(o))+","+(this._y1=e+r*Math.sin(o))))},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 Wo=Lu;var wd=Array.prototype.slice;function ko(t){return function(){return t}}function O1(t){return t.source}function B1(t){return t.target}function Iu(t){return t.radius}function Ds(t){return t.startAngle}function gi(t){return t.endAngle}function L1(){return 0}function Ns(){return 10}function Fu(t){var e=O1,r=B1,a=Iu,o=Iu,s=Ds,h=gi,d=L1,m=null;function v(){var C,I=e.apply(this,arguments),D=r.apply(this,arguments),P=d.apply(this,arguments)/2,Z=wd.call(arguments),U=+a.apply(this,(Z[0]=I,Z)),$=s.apply(this,Z)-is,W=h.apply(this,Z)-is,it=+o.apply(this,(Z[0]=D,Z)),nt=s.apply(this,Z)-is,rt=h.apply(this,Z)-is;if(m||(m=C=Wo()),P>Ac&&(N1(W-$)>2*P+Ac?W>$?($+=P,W-=P):($-=P,W+=P):$=W=($+W)/2,N1(rt-nt)>2*P+Ac?rt>nt?(nt+=P,rt-=P):(nt-=P,rt+=P):nt=rt=(nt+rt)/2),m.moveTo(U*rs($),U*Uo($)),m.arc(0,0,U,$,W),$!==nt||W!==rt)if(t){var lt=+t.apply(this,arguments),pt=it-lt,Jt=(nt+rt)/2;m.quadraticCurveTo(0,0,pt*rs(nt),pt*Uo(nt)),m.lineTo(it*rs(Jt),it*Uo(Jt)),m.lineTo(pt*rs(rt),pt*Uo(rt))}else m.quadraticCurveTo(0,0,it*rs(nt),it*Uo(nt)),m.arc(0,0,it,nt,rt);if(m.quadraticCurveTo(0,0,U*rs($),U*Uo($)),m.closePath(),C)return m=null,C+""||null}return t&&(v.headRadius=function(C){return arguments.length?(t=typeof C=="function"?C:ko(+C),v):t}),v.radius=function(C){return arguments.length?(a=o=typeof C=="function"?C:ko(+C),v):a},v.sourceRadius=function(C){return arguments.length?(a=typeof C=="function"?C:ko(+C),v):a},v.targetRadius=function(C){return arguments.length?(o=typeof C=="function"?C:ko(+C),v):o},v.startAngle=function(C){return arguments.length?(s=typeof C=="function"?C:ko(+C),v):s},v.endAngle=function(C){return arguments.length?(h=typeof C=="function"?C:ko(+C),v):h},v.padAngle=function(C){return arguments.length?(d=typeof C=="function"?C:ko(+C),v):d},v.source=function(C){return arguments.length?(e=C,v):e},v.target=function(C){return arguments.length?(r=C,v):r},v.context=function(C){return arguments.length?(m=C??null,v):m},v}function I1(){return Fu()}function F1(){return Fu(Ns)}const Ru=Math.PI/180,Pu=180/Math.PI,wo=.96422,xl=.82521,R1=4/29,ju=6/29,zu=3*ju*ju;function Yu(t){if(t instanceof Ya)return new Ya(t.l,t.a,t.b,t.opacity);if(t instanceof Di)return P1(t);t instanceof Yr||(t=$r(t));var e,r,a=Os(t.r),o=Os(t.g),s=Os(t.b),h=Uu((.2225045*a+.7168786*o+.0606169*s)/1);return a===o&&o===s?e=r=h:(e=Uu((.4360747*a+.3850649*o+.1430804*s)/wo),r
1251=Uu((.0139322*a+.0971045*o+.7141733*s)/xl)),new Ya(116*h-16,500*(e-h),200*(h-r),t.opacity)}function Td(t,e){return new Ya(t,0,0,e??1)}function kl(t,e,r,a){return arguments.length===1?Yu(t):new Ya(t,e,r,a??1)}function Ya(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Uu(t){return t>.008856451679035631?Math.pow(t,1/3):t/zu+R1}function $u(t){return t>ju?t*t*t:zu*(t-R1)}function Wu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Os(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function wl(t){if(t instanceof Di)return new Di(t.h,t.c,t.l,t.opacity);if(t instanceof Ya||(t=Yu(t)),t.a===0&&t.b===0)return new Di(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Pu;return new Di(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ed(t,e,r,a){return arguments.length===1?wl(t):new Di(r,e,t,a??1)}function Ua(t,e,r,a){return arguments.length===1?wl(t):new Di(t,e,r,a??1)}function Di(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function P1(t){if(isNaN(t.h))return new Ya(t.l,0,0,t.opacity);var e=t.h*Ru;return new Ya(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ji(Ya,kl,Ci(kn,{brighter:function(t){return new Ya(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Ya(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new Yr(Wu(3.1338561*(e=wo*$u(e))-1.6168667*(t=1*$u(t))-.4906146*(r=xl*$u(r))),Wu(-.9787684*e+1.9161415*t+.033454*r),Wu(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),ji(Di,Ua,Ci(kn,{brighter:function(t){return new Di(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new Di(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return P1(this).rgb()}}));var j1=-.14861,qu=1.78277,Nc=-.29227,Li=-.90649,To=1.97294,Eo=To*Li,Bs=To*qu,z1=qu*Nc-Li*j1;function Vu(t){if(t instanceof Fr)return new Fr(t.h,t.s,t.l,t.opacity);t instanceof Yr||(t=$r(t));var e=t.r/255,r=t.g/255,a=t.b/255,o=(z1*a+Eo*e-Bs*r)/(z1+Eo-Bs),s=a-o,h=(To*(r-o)-Nc*s)/Li,d=Math.sqrt(h*h+s*s)/(To*o*(1-o)),m=d?Math.atan2(h,s)*Pu-120:NaN;return new Fr(m<0?m+360:m,d,o,t.opacity)}function $a(t,e,r,a){return arguments.length===1?Vu(t):new Fr(t,e,r,a??1)}function Fr(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}ji(Fr,$a,Ci(kn,{brighter:function(t){return t=t==null?ga:Math.pow(ga,t),new Fr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new Fr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Ru,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),a=Math.cos(t),o=Math.sin(t);return new Yr(255*(e+r*(j1*a+qu*o)),255*(e+r*(Nc*a+Li*o)),255*(e+r*(To*a)),this.opacity)}}));var Hu=Array.prototype.slice;function Y1(t,e){return t-e}const So=t=>()=>t;function U1(t,e){for(var r,a=-1,o=e.length;++a<o;)if(r=Ls(t,e[a]))return r;return 0}function Ls(t,e){for(var r=e[0],a=e[1],o=-1,s=0,h=t.length,d=h-1;s<h;d=s++){var m=t[s],v=m[0],C=m[1],I=t[d],D=I[0],P=I[1];if(Sd(m,I,e))return 0;C>a!=P>a&&r<(D-v)*(a-C)/(P-C)+v&&(o=-o)}return o}function Sd(t,e,r){var a,o,s,h;return function(d,m,v){return(m[0]-d[0])*(v[1]-d[1])==(v[0]-d[0])*(m[1]-d[1])}(t,e,r)&&(o=t[a=+(t[0]===e[0])],s=r[a],h=e[a],o<=s&&s<=h||h<=s&&s<=o)}function Gu(){}var Co=[[],[[[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 $1(){var t=1,e=1,r=Le,a=d;function o(m){var v=r(m);if(Array.isArray(v))v=v.slice().sort(Y1);else{const C=ut(m),I=Mt(C[0],C[1],v);v=ft(Math.floor(C[0]/I)*I,Math.floor(C[1]/I-1)*I,v)}return v.map(C=>s(m,C))}function s(m,v){var C=[],I=[];return function(D,P,Z){var U,$,W,it,nt,rt,lt=new Array,pt=new Array;for(U=$=-1,it=D[0]>=P,Co[it<<1].forEach(Jt);++U<t-1;)W=it,it=D[U+1]>=P,Co[W|it<<1].forEach(Jt);for(Co[it<<0].forEach(Jt);++$<e-1;){for(U=-1,it=D[$*t+t]>=P,nt=D[$*t]>=P,Co[it<<1|nt<<2].forEach(Jt);++U<t-1;
1251)W=it,it=D[$*t+t+U+1]>=P,rt=nt,nt=D[$*t+U+1]>=P,Co[W|it<<1|nt<<2|rt<<3].forEach(Jt);Co[it|nt<<3].forEach(Jt)}for(U=-1,nt=D[$*t]>=P,Co[nt<<2].forEach(Jt);++U<t-1;)rt=nt,nt=D[$*t+U+1]>=P,Co[nt<<2|rt<<3].forEach(Jt);function Jt(ye){var Ut,Pt,jt=[ye[0][0]+U,ye[0][1]+$],zt=[ye[1][0]+U,ye[1][1]+$],gt=h(jt),Bt=h(zt);(Ut=pt[gt])?(Pt=lt[Bt])?(delete pt[Ut.end],delete lt[Pt.start],Ut===Pt?(Ut.ring.push(zt),Z(Ut.ring)):lt[Ut.start]=pt[Pt.end]={start:Ut.start,end:Pt.end,ring:Ut.ring.concat(Pt.ring)}):(delete pt[Ut.end],Ut.ring.push(zt),pt[Ut.end=Bt]=Ut):(Ut=lt[Bt])?(Pt=pt[gt])?(delete lt[Ut.start],delete pt[Pt.end],Ut===Pt?(Ut.ring.push(zt),Z(Ut.ring)):lt[Pt.start]=pt[Ut.end]={start:Pt.start,end:Ut.end,ring:Pt.ring.concat(Ut.ring)}):(delete lt[Ut.start],Ut.ring.unshift(jt),lt[Ut.start=gt]=Ut):lt[gt]=pt[Bt]={start:gt,end:Bt,ring:[jt,zt]}}Co[nt<<3].forEach(Jt)}(m,v,function(D){a(D,m,v),function(P){for(var Z=0,U=P.length,$=P[U-1][1]*P[0][0]-P[U-1][0]*P[0][1];++Z<U;)$+=P[Z-1][1]*P[Z][0]-P[Z-1][0]*P[Z][1];return $}(D)>0?C.push([D]):I.push(D)}),I.forEach(function(D){for(var P,Z=0,U=C.length;Z<U;++Z)if(U1((P=C[Z])[0],D)!==-1)return void P.push(D)}),{type:"MultiPolygon",value:v,coordinates:C}}function h(m){return 2*m[0]+m[1]*(t+1)*4}function d(m,v,C){m.forEach(function(I){var D,P=I[0],Z=I[1],U=0|P,$=0|Z,W=v[$*t+U];P>0&&P<t&&U===P&&(D=v[$*t+U-1],I[0]=P+(C-D)/(W-D)-.5),Z>0&&Z<e&&$===Z&&(D=v[($-1)*t+U],I[1]=Z+(C-D)/(W-D)-.5)})}return o.contour=s,o.size=function(m){if(!arguments.length)return[t,e];var v=Math.floor(m[0]),C=Math.floor(m[1]);if(!(v>=0&&C>=0))throw new Error("invalid size");return t=v,e=C,o},o.thresholds=function(m){return arguments.length?(r=typeof m=="function"?m:Array.isArray(m)?So(Hu.call(m)):So(m),o):r},o.smooth=function(m){return arguments.length?(a=m?d:Gu,o):a===d},o}function os(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<o;++h)for(var d=0,m=0;d<a+r;++d)d<a&&(m+=t.data[d+h*a]),d>=r&&(d>=s&&(m-=t.data[d-s+h*a]),e.data[d-r+h*a]=m/Math.min(d+1,a-1+s-d,s))}function eo(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<a;++h)for(var d=0,m=0;d<o+r;++d)d<o&&(m+=t.data[h+d*a]),d>=r&&(d>=s&&(m-=t.data[h+(d-s)*a]),e.data[h+(d-r)*a]=m/Math.min(d+1,o-1+s-d,s))}function Wa(t){return t[0]}function Tl(t){return t[1]}function Xu(){return 1}function Cd(){var t=Wa,e=Tl,r=Xu,a=960,o=500,s=20,h=2,d=3*s,m=a+2*d>>h,v=o+2*d>>h,C=So(20);function I(W){var it=new Float32Array(m*v),nt=new Float32Array(m*v),rt=Math.pow(2,-h);W.forEach(function(Jt,ye,Ut){var Pt=(t(Jt,ye,Ut)+d)*rt,jt=(e(Jt,ye,Ut)+d)*rt,zt=+r(Jt,ye,Ut);if(Pt>=0&&Pt<m&&jt>=0&&jt<v){var gt=Math.floor(Pt),Bt=Math.floor(jt),Vt=Pt-gt-.5,ae=jt-Bt-.5;it[gt+Bt*m]+=(1-Vt)*(1-ae)*zt,it[gt+1+Bt*m]+=Vt*(1-ae)*zt,it[gt+1+(Bt+1)*m]+=Vt*ae*zt,it[gt+(Bt+1)*m]+=(1-Vt)*ae*zt}}),os({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),eo({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h),os({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),eo({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h),os({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),eo({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h);var lt=C(it);if(!Array.isArray(lt)){var pt=qe(it);lt=Mt(0,pt,lt),(lt=Me(0,Math.floor(pt/lt)*lt,lt)).shift()}return $1().thresholds(lt).size([m,v])(it).map(D)}function D(W){return W.value*=Math.pow(2,-2*h),W.coordinates.forEach(P),W}function P(W){W.forEach(Z)}function Z(W){W.forEach(U)}function U(W){W[0]=W[0]*Math.pow(2,h)-d,W[1]=W[1]*Math.pow(2,h)-d}function $(){return m=a+2*(d=3*s)>>h,v=o+2*d>>h,I}return I.x=function(W){return arguments.length?(t=typeof W=="function"?W:So(+W),I):t},I.y=function(W){return arguments.length?(e=typeof W=="function"?W:So(+W),I):e},I.weight=function(W){return arguments.length?(r=typeof W=="function"?W:So(+W),I):r},I.size=function(W){if(!arguments.length)return[a,o];var it=+W[0],nt=+W[1];if(!(it>=0&&nt>=0))throw new Error("invalid size");return a=it,o=nt,$()},I.cellSize=function(W){if(!arguments.length)return 1<<h;if(!((W=+W)>=1))throw new Error("invalid cell size");return h=Math.floor(Math.log(W)/Math.LN2),$()},I.thresholds=function(W){return arguments.length?(C=typeof W=="function"?W:Array.isArray(W)?S
1251o(Hu.call(W)):So(W),I):C},I.bandwidth=function(W){if(!arguments.length)return Math.sqrt(s*(s+1));if(!((W=+W)>=0))throw new Error("invalid bandwidth");return s=Math.round((Math.sqrt(4*W*W+1)-1)/2),$()},I}const Rr=134217729;function ss(t,e,r,a,o){let s,h,d,m,v=e[0],C=a[0],I=0,D=0;C>v==C>-v?(s=v,v=e[++I]):(s=C,C=a[++D]);let P=0;if(I<t&&D<r)for(C>v==C>-v?(h=v+s,d=s-(h-v),v=e[++I]):(h=C+s,d=s-(h-C),C=a[++D]),s=h,d!==0&&(o[P++]=d);I<t&&D<r;)C>v==C>-v?(h=s+v,m=h-s,d=s-(h-m)+(v-m),v=e[++I]):(h=s+C,m=h-s,d=s-(h-m)+(C-m),C=a[++D]),s=h,d!==0&&(o[P++]=d);for(;I<t;)h=s+v,m=h-s,d=s-(h-m)+(v-m),v=e[++I],s=h,d!==0&&(o[P++]=d);for(;D<r;)h=s+C,m=h-s,d=s-(h-m)+(C-m),C=a[++D],s=h,d!==0&&(o[P++]=d);return s===0&&P!==0||(o[P++]=s),P}function no(t){return new Float64Array(t)}const ro=no(4),Zu=no(8),Qu=no(12),El=no(16),Yi=no(4);function Oc(t,e,r,a,o,s){const h=(e-s)*(r-o),d=(t-o)*(a-s),m=h-d;if(h===0||d===0||h>0!=d>0)return m;const v=Math.abs(h+d);return Math.abs(m)>=33306690738754716e-32*v?m:-function(C,I,D,P,Z,U,$){let W,it,nt,rt,lt,pt,Jt,ye,Ut,Pt,jt,zt,gt,Bt,Vt,ae,we,ze;const He=C-Z,fn=D-Z,Ge=I-U,Yn=P-U;Bt=He*Yn,pt=Rr*He,Jt=pt-(pt-He),ye=He-Jt,pt=Rr*Yn,Ut=pt-(pt-Yn),Pt=Yn-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=Ge*fn,pt=Rr*Ge,Jt=pt-(pt-Ge),ye=Ge-Jt,pt=Rr*fn,Ut=pt-(pt-fn),Pt=fn-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,ro[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,ro[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,ro[2]=zt-(ze-lt)+(jt-lt),ro[3]=ze;let Wn=function(Ba,rc){let No=rc[0];for(let au=1;au<4;au++)No+=rc[au];return No}(0,ro),Cn=22204460492503146e-32*$;if(Wn>=Cn||-Wn>=Cn||(lt=C-He,W=C-(He+lt)+(lt-Z),lt=D-fn,nt=D-(fn+lt)+(lt-Z),lt=I-Ge,it=I-(Ge+lt)+(lt-U),lt=P-Yn,rt=P-(Yn+lt)+(lt-U),W===0&&it===0&&nt===0&&rt===0)||(Cn=11093356479670487e-47*$+33306690738754706e-32*Math.abs(Wn),Wn+=He*rt+Yn*W-(Ge*nt+fn*it),Wn>=Cn||-Wn>=Cn))return Wn;Bt=W*Yn,pt=Rr*W,Jt=pt-(pt-W),ye=W-Jt,pt=Rr*Yn,Ut=pt-(pt-Yn),Pt=Yn-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=it*fn,pt=Rr*it,Jt=pt-(pt-it),ye=it-Jt,pt=Rr*fn,Ut=pt-(pt-fn),Pt=fn-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const Ln=ss(4,ro,4,Yi,Zu);Bt=He*rt,pt=Rr*He,Jt=pt-(pt-He),ye=He-Jt,pt=Rr*rt,Ut=pt-(pt-rt),Pt=rt-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=Ge*nt,pt=Rr*Ge,Jt=pt-(pt-Ge),ye=Ge-Jt,pt=Rr*nt,Ut=pt-(pt-nt),Pt=nt-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const wr=ss(Ln,Zu,4,Yi,Qu);Bt=W*rt,pt=Rr*W,Jt=pt-(pt-W),ye=W-Jt,pt=Rr*rt,Ut=pt-(pt-rt),Pt=rt-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=it*nt,pt=Rr*it,Jt=pt-(pt-it),ye=it-Jt,pt=Rr*nt,Ut=pt-(pt-nt),Pt=nt-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const ir=ss(wr,Qu,4,Yi,El);return El[ir-1]}(t,e,r,a,o,s,v)}const Ku=Math.pow(2,-52),Bc=new Uint32Array(512);class Is{static from(e,r=Md,a=Ic){const o=e.length,s=new Float64Array(2*o);for(let h=0;h<o;h++){const d=e[h];s[2*h]=r(d),s[2*h+1]=a(d)}return new Is(s)}constructor(e){const r=e.length>>1;if(r>0&&typeof e[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=e;const a=Math.max(2*r-5,0);this._triangles=new Uint32Array(3*a),this._halfedges=new Int32Array(3*a),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:e,_hullPrev:r,_hullNext:a,_hullTri:o,_hullHash:s}=this,h=e.length>>1;let d=1/0,m=1/0,v=-1/0,C=-1/0;for(let Pt=0;Pt<h;Pt++){const jt=e[2*Pt],zt=e[2*Pt+1];jt<d&&(d=jt),zt<m&&(m=zt),jt>v&&(v=jt),zt>C&&(C=zt),this._ids[Pt]=Pt}const I=(d+v)/2,D=(m+C)/2;let P,Z,U,$=1/0;for(let Pt=0;Pt<h;Pt++){const jt=Fs(I,D,e[2*Pt],e[2*Pt+1]);jt<$&&(P=Pt,$=jt)}const W=e[2*P],it=e[2*P+1];$=1/0;for(let Pt=0;Pt<h;Pt++){if(Pt===P)continue;const jt=Fs(W,it,e[2*Pt],e[2*Pt+1]);jt<$&&jt>
vendor: 4,936 bytes, line 1251
12510&&(Z=Pt,$=jt)}let nt=e[2*Z],rt=e[2*Z+1],lt=1/0;for(let Pt=0;Pt<h;Pt++){if(Pt===P||Pt===Z)continue;const jt=Ad(W,it,nt,rt,e[2*Pt],e[2*Pt+1]);jt<lt&&(U=Pt,lt=jt)}let pt=e[2*U],Jt=e[2*U+1];if(lt===1/0){for(let zt=0;zt<h;zt++)this._dists[zt]=e[2*zt]-e[0]||e[2*zt+1]-e[1];Rs(this._ids,this._dists,0,h-1);const Pt=new Uint32Array(h);let jt=0;for(let zt=0,gt=-1/0;zt<h;zt++){const Bt=this._ids[zt];this._dists[Bt]>gt&&(Pt[jt++]=Bt,gt=this._dists[Bt])}return this.hull=Pt.subarray(0,jt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Oc(W,it,nt,rt,pt,Jt)<0){const Pt=Z,jt=nt,zt=rt;Z=U,nt=pt,rt=Jt,U=Pt,pt=jt,Jt=zt}const ye=function(Pt,jt,zt,gt,Bt,Vt){const ae=zt-Pt,we=gt-jt,ze=Bt-Pt,He=Vt-jt,fn=ae*ae+we*we,Ge=ze*ze+He*He,Yn=.5/(ae*He-we*ze);return{x:Pt+(He*fn-we*Ge)*Yn,y:jt+(ae*Ge-ze*fn)*Yn}}(W,it,nt,rt,pt,Jt);this._cx=ye.x,this._cy=ye.y;for(let Pt=0;Pt<h;Pt++)this._dists[Pt]=Fs(e[2*Pt],e[2*Pt+1],ye.x,ye.y);Rs(this._ids,this._dists,0,h-1),this._hullStart=P;let Ut=3;a[P]=r[U]=Z,a[Z]=r[P]=U,a[U]=r[Z]=P,o[P]=0,o[Z]=1,o[U]=2,s.fill(-1),s[this._hashKey(W,it)]=P,s[this._hashKey(nt,rt)]=Z,s[this._hashKey(pt,Jt)]=U,this.trianglesLen=0,this._addTriangle(P,Z,U,-1,-1,-1);for(let Pt,jt,zt=0;zt<this._ids.length;zt++){const gt=this._ids[zt],Bt=e[2*gt],Vt=e[2*gt+1];if(zt>0&&Math.abs(Bt-Pt)<=Ku&&Math.abs(Vt-jt)<=Ku||(Pt=Bt,jt=Vt,gt===P||gt===Z||gt===U))continue;let ae=0;for(let Ge=0,Yn=this._hashKey(Bt,Vt);Ge<this._hashSize&&(ae=s[(Yn+Ge)%this._hashSize],ae===-1||ae===a[ae]);Ge++);ae=r[ae];let we,ze=ae;for(;we=a[ze],Oc(Bt,Vt,e[2*ze],e[2*ze+1],e[2*we],e[2*we+1])>=0;)if(ze=we,ze===ae){ze=-1;break}if(ze===-1)continue;let He=this._addTriangle(ze,gt,a[ze],-1,-1,o[ze]);o[gt]=this._legalize(He+2),o[ze]=He,Ut++;let fn=a[ze];for(;we=a[fn],Oc(Bt,Vt,e[2*fn],e[2*fn+1],e[2*we],e[2*we+1])<0;)He=this._addTriangle(fn,gt,we,o[gt],-1,o[fn]),o[gt]=this._legalize(He+2),a[fn]=fn,Ut--,fn=we;if(ze===ae)for(;we=r[ze],Oc(Bt,Vt,e[2*we],e[2*we+1],e[2*ze],e[2*ze+1])<0;)He=this._addTriangle(we,gt,ze,-1,o[ze],o[we]),this._legalize(He+2),o[we]=He,a[ze]=ze,Ut--,ze=we;this._hullStart=r[gt]=ze,a[ze]=r[fn]=gt,a[gt]=fn,s[this._hashKey(Bt,Vt)]=gt,s[this._hashKey(e[2*ze],e[2*ze+1])]=ze}this.hull=new Uint32Array(Ut);for(let Pt=0,jt=this._hullStart;Pt<Ut;Pt++)this.hull[Pt]=jt,jt=a[jt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,r){return Math.floor(function(a,o){const s=a/(Math.abs(a)+Math.abs(o));return(o>0?3-s:1+s)/4}(e-this._cx,r-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:r,_halfedges:a,coords:o}=this;let s=0,h=0;for(;;){const d=a[e],m=e-e%3;if(h=m+(e+2)%3,d===-1){if(s===0)break;e=Bc[--s];continue}const v=d-d%3,C=m+(e+1)%3,I=v+(d+2)%3,D=r[h],P=r[e],Z=r[C],U=r[I];if(W1(o[2*D],o[2*D+1],o[2*P],o[2*P+1],o[2*Z],o[2*Z+1],o[2*U],o[2*U+1])){r[e]=U,r[d]=D;const $=a[I];if($===-1){let it=this._hullStart;do{if(this._hullTri[it]===I){this._hullTri[it]=e;break}it=this._hullPrev[it]}while(it!==this._hullStart)}this._link(e,$),this._link(d,a[h]),this._link(h,I);const W=v+(d+1)%3;s<Bc.length&&(Bc[s++]=W)}else{if(s===0)break;e=Bc[--s]}}return h}_link(e,r){this._halfedges[e]=r,r!==-1&&(this._halfedges[r]=e)}_addTriangle(e,r,a,o,s,h){const d=this.trianglesLen;return this._triangles[d]=e,this._triangles[d+1]=r,this._triangles[d+2]=a,this._link(d,o),this._link(d+1,s),this._link(d+2,h),this.trianglesLen+=3,d}}function Fs(t,e,r,a){const o=t-r,s=e-a;return o*o+s*s}function W1(t,e,r,a,o,s,h,d){const m=t-h,v=e-d,C=r-h,I=a-d,D=o-h,P=s-d,Z=C*C+I*I,U=D*D+P*P;return m*(I*U-Z*P)-v*(C*U-Z*D)+(m*m+v*v)*(C*P-I*D)<0}function Ad(t,e,r,a,o,s){const h=r-t,d=a-e,m=o-t,v=s-e,C=h*h+d*d,I=m*m+v*v,D=.5/(h*v-d*m),P=(v*C-d*I)*D,Z=(h*I-m*C)*D;return P*P+Z*Z}function Rs(t,e,r,a){if(a-r<=20)for(let o=r+1;o<=a;o++){const s=t[o],h=e[s];let d=o-1;for(;d>=r&&e[t[d]]>h;)t[d+1]=t[d--];t[d+1]=s}else{let o=r+1,s=a;Lc(t,r+a>>1,o),e[t[r]]>e[t[a]]&&Lc(t,r,a),e[t[o]]>e[t[a]]&&Lc(t,o,a),e[t[r]]>e[t[o]]&&Lc(t,r,o);const h=t[o],d=e[h];for(;;){do o++;while(e[t[o]]<d);do s--;while(e[t[s]]>d);if(s<o)break;Lc(t,o,s)}t[r+1]=t[s],t[s]=h,a-o+1>=s-r?(Rs(t,e,o,a),Rs(t,e,r,s-1)):(Rs(t,e,r,s-1),Rs(t,e,o,a))}}function Lc(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function Md(t){return t[0]}function Ic(t){return t[1]}const q1=1e-6;class Ui{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,r){this._+=`L${this._x1=+e},${this._y1=+r}`}arc(e,r,a){const o=(e=+e)+(a=+a),s=r=+r;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${s}`:(Math.abs(this._x1-o)>q1||Math.abs(this._y1-s)>q1)&&(this._+="L"+o+","+s),a&&(this._+=`A${a},${a},0,1,1,${e-a},${r}A${a},${a},0,1,1,${this._x1=o},${this._y1=s}`)}rect(e,r,a,o){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}
1251h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class Ju{constructor(){this._=[]}moveTo(e,r){this._.push([e,r])}closePath(){this._.push(this._[0].slice())}lineTo(e,r){this._.push([e,r])}value(){return this._.length?this._:null}}class V1{constructor(e,[r,a,o,s]=[0,0,960,500]){if(!((o=+o)>=(r=+r)&&(s=+s)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=o,this.xmin=r,this.ymax=s,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:r,triangles:a},vectors:o}=this,s=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let P,Z,U=0,$=0,W=a.length;U<W;U+=3,$+=2){const it=2*a[U],nt=2*a[U+1],rt=2*a[U+2],lt=e[it],pt=e[it+1],Jt=e[nt],ye=e[nt+1],Ut=e[rt],Pt=e[rt+1],jt=Jt-lt,zt=ye-pt,gt=Ut-lt,Bt=Pt-pt,Vt=2*(jt*Bt-zt*gt);if(Math.abs(Vt)<1e-9){let ae=1e9;const we=2*a[0];ae*=Math.sign((e[we]-lt)*Bt-(e[we+1]-pt)*gt),P=(lt+Ut)/2-ae*Bt,Z=(pt+Pt)/2+ae*gt}else{const ae=1/Vt,we=jt*jt+zt*zt,ze=gt*gt+Bt*Bt;P=lt+(Bt*we-zt*ze)*ae,Z=pt+(jt*ze-gt*we)*ae}s[$]=P,s[$+1]=Z}let h,d,m,v=r[r.length-1],C=4*v,I=e[2*v],D=e[2*v+1];o.fill(0);for(let P=0;P<r.length;++P)v=r[P],h=C,d=I,m=D,C=4*v,I=e[2*v],D=e[2*v+1],o[h+2]=o[C]=m-D,o[h+3]=o[C+1]=I-d}render(e){const r=e==null?e=new Ui:void 0,{delaunay:{halfedges:a,inedges:o,hull:s},circumcenters:h,vectors:d}=this;if(s.length<=1)return null;for(let C=0,I=a.length;C<I;++C){const D=a[C];if(D<C)continue;const P=2*Math.floor(C/3),Z=2*Math.floor(D/3),U=h[P],$=h[P+1],W=h[Z],it=h[Z+1];this._renderSegment(U,$,W,it,e)}let m,v=s[s.length-1];for(let C=0;C<s.length;++C){m=v,v=s[C];const I=2*Math.floor(o[v]/3),D=h[I],P=h[I+1],Z=4*m,U=this._project(D,P,d[Z+2],d[Z+3]);U&&this._renderSegment(D,P,U[0],U[1],e)}return r&&r.value()}renderBounds(e){const r=e==null?e=new Ui:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),r&&r.value()}renderCell(e,r){const a=r==null?r=new Ui:void 0,o=this._clip(e);if(o===null||!o.length)return;r.moveTo(o[0],o[1]);let s=o.length;for(;o[0]===o[s-2]&&o[1]===o[s-1]&&s>1;)s-=2;for(let h=2;h<s;h+=2)o[h]===o[h-2]&&o[h+1]===o[h-1]||r.lineTo(o[h],o[h+1]);return r.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let r=0,a=e.length/2;r<a;++r){const o=this.cellPolygon(r);o&&(o.index=r,yield o)}}cellPolygon(e){const r=new Ju;return this.renderCell(e,r),r.value()}_renderSegment(e,r,a,o,s){let h;const d=this._regioncode(e,r),m=this._regioncode(a,o);d===0&&m===0?(s.moveTo(e,r),s.lineTo(a,o)):(h=this._clipSegment(e,r,a,o,d,m))&&(s.moveTo(h[0],h[1]),s.lineTo(h[2],h[3]))}contains(e,r,a){return(r=+r)==r&&(a=+a)==a&&this.delaunay._step(e,r,a)===e}*neighbors(e){const r=this._clip(e);if(r)for(const a of this.delaunay.neighbors(e)){const o=this._clip(a);if(o){t:for(let s=0,h=r.length;s<h;s+=2)for(let d=0,m=o.length;d<m;d+=2)if(r[s]==o[d]&&r[s+1]==o[d+1]&&r[(s+2)%h]==o[(d+m-2)%m]&&r[(s+3)%h]==o[(d+m-1)%m]){yield a;break t}}}}_cell(e){const{circumcenters:r,delaunay:{inedges:a,halfedges:o,triangles:s}}=this,h=a[e];if(h===-1)return null;const d=[];let m=h;do{const v=Math.floor(m/3);if(d.push(r[2*v],r[2*v+1]),m=m%3==2?m-2:m+1,s[m]!==e)break;m=o[m]}while(m!==h&&m!==-1);return d}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const r=this._cell(e);if(r===null)return null;const{vectors:a}=this,o=4*e;return a[o]||a[o+1]?this._clipInfinite(e,r,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(e,r)}_clipFinite(e,r){const a=r.length;let o,s,h,d,m=null,v=r[a-2],C=r[a-1],I=this._regioncode(v,C),D=0;for(let P=0;P<a;P+=2)if(o=v,s=C,v=r[P],C=r[P+1],h=I,I=this._regioncode(v,C),h===0&&I===0)d=D,D=0,m?m.push(v,C):m=[v,C];else{let Z,U,$,W,it;if(h===0){if((Z=this._clipSegment(o,s,v,C,h,I))===null)continue;[U,$,W,it]=Z}else{if((Z=this._clipSegment(v,C,o,s,I,h))===null)continue;[W,it,U,$]=Z,d=D,D=this._edgecode(U,$),d&&D&&this._edge(e,d,D,m,m.length),m?m.push(U,$):m=[U,$]}d=D,D=this._edgecode(W,it),d&&D&&this._edge(e,d,D,m,m.length),m?m.push(W,it):m=[W,it]}if(m)d=D,D=this._edgecode(m[0],m[1]),d&&D&&this._edge(e,d,D,m,m.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return m}_clipSegment(e,r,a,o,s,h){for(;;){if(s===0&&h===0)return[e,r,a,o];if(s&h)return null;let d,m,v=s||h;8&v?(d=e+(a-e)*(this.ymax-r)/(o-r),m=this.ymax):4&v?(d=e+(a-e)*(this.ymin-r)/(o-r),m=this.ymin):2&v?(m=r+(o-r)*(this.xmax-e)/(a-e),d=this.xmax):(m=r+(o-r)*(this.xmin-e)/(a-e),d=this.xmin),s?(e=d,r=m,s=this._regioncode(e,r)):(a=d,o=m,h=this._regioncode(a,o))}}_clipInfinite(e,r,a,o,s,h){let d,m=Array.from(r);
vendor: 4,264 bytes, line 1251
1251if((d=this._project(m[0],m[1],a,o))&&m.unshift(d[0],d[1]),(d=this._project(m[m.length-2],m[m.length-1],s,h))&&m.push(d[0],d[1]),m=this._clipFinite(e,m))for(let v,C=0,I=m.length,D=this._edgecode(m[I-2],m[I-1]);C<I;C+=2)v=D,D=this._edgecode(m[C],m[C+1]),v&&D&&(C=this._edge(e,v,D,m,C),I=m.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(m=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return m}_edge(e,r,a,o,s){for(;r!==a;){let h,d;switch(r){case 5:r=4;continue;case 4:r=6,h=this.xmax,d=this.ymin;break;case 6:r=2;continue;case 2:r=10,h=this.xmax,d=this.ymax;break;case 10:r=8;continue;case 8:r=9,h=this.xmin,d=this.ymax;break;case 9:r=1;continue;case 1:r=5,h=this.xmin,d=this.ymin}o[s]===h&&o[s+1]===d||!this.contains(e,h,d)||(o.splice(s,0,h,d),s+=2)}if(o.length>4)for(let h=0;h<o.length;h+=2){const d=(h+2)%o.length,m=(h+4)%o.length;(o[h]===o[d]&&o[d]===o[m]||o[h+1]===o[d+1]&&o[d+1]===o[m+1])&&(o.splice(d,2),h-=2)}return s}_project(e,r,a,o){let s,h,d,m=1/0;if(o<0){if(r<=this.ymin)return null;(s=(this.ymin-r)/o)<m&&(d=this.ymin,h=e+(m=s)*a)}else if(o>0){if(r>=this.ymax)return null;(s=(this.ymax-r)/o)<m&&(d=this.ymax,h=e+(m=s)*a)}if(a>0){if(e>=this.xmax)return null;(s=(this.xmax-e)/a)<m&&(h=this.xmax,d=r+(m=s)*o)}else if(a<0){if(e<=this.xmin)return null;(s=(this.xmin-e)/a)<m&&(h=this.xmin,d=r+(m=s)*o)}return[h,d]}_edgecode(e,r){return(e===this.xmin?1:e===this.xmax?2:0)|(r===this.ymin?4:r===this.ymax?8:0)}_regioncode(e,r){return(e<this.xmin?1:e>this.xmax?2:0)|(r<this.ymin?4:r>this.ymax?8:0)}}const Dd=2*Math.PI,cs=Math.pow;function Nd(t){return t[0]}function Od(t){return t[1]}function Bd(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}class th{static from(e,r=Nd,a=Od,o){return new th("length"in e?function(s,h,d,m){const v=s.length,C=new Float64Array(2*v);for(let I=0;I<v;++I){const D=s[I];C[2*I]=h.call(m,D,I,s),C[2*I+1]=d.call(m,D,I,s)}return C}(e,r,a,o):Float64Array.from(function*(s,h,d,m){let v=0;for(const C of s)yield h.call(m,C,v,s),yield d.call(m,C,v,s),++v}(e,r,a,o)))}constructor(e){this._delaunator=new Is(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,r=this.points;if(e.hull&&e.hull.length>2&&function(m){const{triangles:v,coords:C}=m;for(let I=0;I<v.length;I+=3){const D=2*v[I],P=2*v[I+1],Z=2*v[I+2];if((C[Z]-C[D])*(C[P+1]-C[D+1])-(C[P]-C[D])*(C[Z+1]-C[D+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:r.length/2},(D,P)=>P).sort((D,P)=>r[2*D]-r[2*P]||r[2*D+1]-r[2*P+1]);const m=this.collinear[0],v=this.collinear[this.collinear.length-1],C=[r[2*m],r[2*m+1],r[2*v],r[2*v+1]],I=1e-8*Math.hypot(C[3]-C[1],C[2]-C[0]);for(let D=0,P=r.length/2;D<P;++D){const Z=Bd(r[2*D],r[2*D+1],I);r[2*D]=Z[0],r[2*D+1]=Z[1]}this._delaunator=new Is(r)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,h=this.inedges.fill(-1),d=this._hullIndex.fill(-1);for(let m=0,v=a.length;m<v;++m){const C=s[m%3==2?m-2:m+1];a[m]!==-1&&h[C]!==-1||(h[C]=m)}for(let m=0,v=o.length;m<v;++m)d[o[m]]=m;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],h[o[0]]=1,o.length===2&&(h[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new V1(this,e)}*neighbors(e){const{inedges:r,hull:a,_hullIndex:o,halfedges:s,triangles:h,collinear:d}=this;if(d){const I=d.indexOf(e);return I>0&&(yield d[I-1]),void(I<d.length-1&&(yield d[I+1]))}const m=r[e];if(m===-1)return;let v=m,C=-1;do{if(yield C=h[v],v=v%3==2?v-2:v+1,h[v]!==e)return;if(v=s[v],v===-1){const I=a[(o[e]+1)%a.length];return void(I!==C&&(yield I))}}while(v!==m)}find(e,r,a=0){if((e=+e)!=e||(r=+r)!=r)return-1;const o=a;let s;for(;(s=this._step(a,e,r))>=0&&s!==a&&s!==o;)a=s;return s}_step(e,r,a){const{inedges:o,hull:s,_hullIndex:h,halfedges:d,triangles:m,points:v}=this;if(o[e]===-1||!v.length)return(e+1)%(v.length>>1);let C=e,I=cs(r-v[2*e],2)+cs(a-v[2*e+1],2);const D=o[e];let P=D;do{let Z=m[P];const U=cs(r-v[2*Z],2)+cs(a-v[2*Z+1],2);
1251if(U<I&&(I=U,C=Z),P=P%3==2?P-2:P+1,m[P]!==e)break;if(P=d[P],P===-1){if(P=s[(h[e]+1)%s.length],P!==Z&&cs(r-v[2*P],2)+cs(a-v[2*P+1],2)<I)return P;break}}while(P!==D);return C}render(e){const r=e==null?e=new Ui:void 0,{points:a,halfedges:o,triangles:s}=this;for(let h=0,d=o.length;h<d;++h){const m=o[h];if(m<h)continue;const v=2*s[h],C=2*s[m];e.moveTo(a[v],a[v+1]),e.lineTo(a[C],a[C+1])}return this.renderHull(e),r&&r.value()}renderPoints(e,r){r!==void 0||e&&typeof e.moveTo=="function"||(r=e,e=null),r=r==null?2:+r;const a=e==null?e=new Ui:void 0,{points:o}=this;for(let s=0,h=o.length;s<h;s+=2){const d=o[s],m=o[s+1];e.moveTo(d+r,m),e.arc(d,m,r,0,Dd)}return a&&a.value()}renderHull(e){const r=e==null?e=new Ui:void 0,{hull:a,points:o}=this,s=2*a[0],h=a.length;e.moveTo(o[s],o[s+1]);for(let d=1;d<h;++d){const m=2*a[d];e.lineTo(o[m],o[m+1])}return e.closePath(),r&&r.value()}hullPolygon(){const e=new Ju;return this.renderHull(e),e.value()}renderTriangle(e,r){const a=r==null?r=new Ui:void 0,{points:o,triangles:s}=this,h=2*s[e*=3],d=2*s[e+1],m=2*s[e+2];return r.moveTo(o[h],o[h+1]),r.lineTo(o[d],o[d+1]),r.lineTo(o[m],o[m+1]),r.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:e}=this;for(let r=0,a=e.length/3;r<a;++r)yield this.trianglePolygon(r)}trianglePolygon(e){const r=new Ju;return this.renderTriangle(e,r),r.value()}}const Sl=t=>()=>t;function eh(t,{sourceEvent:e,subject:r,target:a,identifier:o,active:s,x:h,y:d,dx:m,dy:v,dispatch:C}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:m,enumerable:!0,configurable:!0},dy:{value:v,enumerable:!0,configurable:!0},_:{value:C}})}function Ps(t){return!t.ctrlKey&&!t.button}function Ld(){return this.parentNode}function Id(t,e){return e??{x:t.x,y:t.y}}function Fd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rd(){var t,e,r,a,o=Ps,s=Ld,h=Id,d=Fd,m={},v=nr("start","drag","end"),C=0,I=0;function D(rt){rt.on("mousedown.drag",P).filter(d).on("touchstart.drag",$).on("touchmove.drag",W,tl).on("touchend.drag touchcancel.drag",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(rt,lt){if(!a&&o.call(this,rt,lt)){var pt=nt(this,s.call(this,rt,lt),rt,lt,"mouse");pt&&(kr(rt.view).on("mousemove.drag",Z,Fo).on("mouseup.drag",U,Fo),go(rt.view),fc(rt),r=!1,t=rt.clientX,e=rt.clientY,pt("start",rt))}}function Z(rt){if(po(rt),!r){var lt=rt.clientX-t,pt=rt.clientY-e;r=lt*lt+pt*pt>I}m.mouse("drag",rt)}function U(rt){kr(rt.view).on("mousemove.drag mouseup.drag",null),yo(rt.view,r),po(rt),m.mouse("end",rt)}function $(rt,lt){if(o.call(this,rt,lt)){var pt,Jt,ye=rt.changedTouches,Ut=s.call(this,rt,lt),Pt=ye.length;for(pt=0;pt<Pt;++pt)(Jt=nt(this,Ut,rt,lt,ye[pt].identifier,ye[pt]))&&(fc(rt),Jt("start",rt,ye[pt]))}}function W(rt){var lt,pt,Jt=rt.changedTouches,ye=Jt.length;for(lt=0;lt<ye;++lt)(pt=m[Jt[lt].identifier])&&(po(rt),pt("drag",rt,Jt[lt]))}function it(rt){var lt,pt,Jt=rt.changedTouches,ye=Jt.length;for(a&&clearTimeout(a),a=setTimeout(function(){a=null},500),lt=0;lt<ye;++lt)(pt=m[Jt[lt].identifier])&&(fc(rt),pt("end",rt,Jt[lt]))}function nt(rt,lt,pt,Jt,ye,Ut){var Pt,jt,zt,gt=v.copy(),Bt=sa(Ut||pt,lt);if((zt=h.call(rt,new eh("beforestart",{sourceEvent:pt,target:D,identifier:ye,active:C,x:Bt[0],y:Bt[1],dx:0,dy:0,dispatch:gt}),Jt))!=null)return Pt=zt.x-Bt[0]||0,jt=zt.y-Bt[1]||0,function Vt(ae,we,ze){var He,fn=Bt;switch(ae){case"start":m[ye]=Vt,He=C++;break;case"end":delete m[ye],--C;case"drag":Bt=sa(ze||we,lt),He=C}gt.call(ae,rt,new eh(ae,{sourceEvent:we,subject:zt,target:D,identifier:ye,active:He,x:Bt[0]+Pt,y:Bt[1]+jt,dx:Bt[0]-fn[0],dy:Bt[1]-fn[1],dispatch:gt}),Jt)}}return D.filter=function(rt){return arguments.length?(o=typeof rt=="function"?rt:Sl(!!rt),D):o},D.container=function(rt){return arguments.length?(s=typeof rt=="function"?rt:Sl(rt),D):s},D.subject=function(rt){return arguments.length?(h=typeof rt=="function"?rt:Sl(rt),D):h},D.touchable=function(rt){return arguments.length?(d=typeof rt=="function"?rt:Sl(!!rt),D):d},D.on=function(){var rt=v.on.apply(v,arguments);return rt===v?D:rt}
1251,D.clickDistance=function(rt){return arguments.length?(I=(rt=+rt)*rt,D):Math.sqrt(I)},D}eh.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var H1={},nh={};function G1(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function X1(t){var e=Object.create(null),r=[];return t.forEach(function(a){for(var o in a)o in e||r.push(e[o]=o)}),r}function Qi(t,e){var r=t+"",a=r.length;return a<e?new Array(e-a+1).join(0)+r:r}function Cl(t){var e=new RegExp('["'+t+`
1252\r]`),r=t.charCodeAt(0);function a(d,m){var v,C=[],I=d.length,D=0,P=0,Z=I<=0,U=!1;function $(){if(Z)return nh;if(U)return U=!1,H1;var it,nt,rt=D;if(d.charCodeAt(rt)===34){for(;D++<I&&d.charCodeAt(D)!==34||d.charCodeAt(++D)===34;);return(it=D)>=I?Z=!0:(nt=d.charCodeAt(D++))===10?U=!0:nt===13&&(U=!0,d.charCodeAt(D)===10&&++D),d.slice(rt+1,it-1).replace(/""/g,'"')}for(;D<I;){if((nt=d.charCodeAt(it=D++))===10)U=!0;else if(nt===13)U=!0,d.charCodeAt(D)===10&&++D;else if(nt!==r)continue;return d.slice(rt,it)}return Z=!0,d.slice(rt,I)}for(d.charCodeAt(I-1)===10&&--I,d.charCodeAt(I-1)===13&&--I;(v=$())!==nh;){for(var W=[];v!==H1&&v!==nh;)W.push(v),v=$();m&&(W=m(W,P++))==null||C.push(W)}return C}function o(d,m){return d.map(function(v){return m.map(function(C){return h(v[C])}).join(t)})}function s(d){return d.map(h).join(t)}function h(d){return d==null?"":d instanceof Date?function(m){var v=m.getUTCHours(),C=m.getUTCMinutes(),I=m.getUTCSeconds(),D=m.getUTCMilliseconds();return isNaN(m)?"Invalid Date":function(P){return P<0?"-"+Qi(-P,6):P>9999?"+"+Qi(P,6):Qi(P,4)}(m.getUTCFullYear())+"-"+Qi(m.getUTCMonth()+1,2)+"-"+Qi(m.getUTCDate(),2)+(D?"T"+Qi(v,2)+":"+Qi(C,2)+":"+Qi(I,2)+"."+Qi(D,3)+"Z":I?"T"+Qi(v,2)+":"+Qi(C,2)+":"+Qi(I,2)+"Z":C||v?"T"+Qi(v,2)+":"+Qi(C,2)+"Z":"")}(d):e.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:function(d,m){var v,C,I=a(d,function(D,P){if(v)return v(D,P-1);C=D,v=m?function(Z,U){var $=G1(Z);return function(W,it){return U($(W),it,Z)}}(D,m):G1(D)});return I.columns=C||[],I},parseRows:a,format:function(d,m){return m==null&&(m=X1(d)),[m.map(h).join(t)].concat(o(d,m)).join(`
1253`)},formatBody:function(d,m){return m==null&&(m=X1(d)),o(d,m).join(`
1254`)},formatRows:function(d){return d.map(s).join(`
1255`)},formatRow:s,formatValue:h}}var he=Cl(","),cn=he.parse,js=he.parseRows,zs=he.format,rh=he.formatBody,ih=he.formatRows,Z1=he.formatRow,Q1=he.formatValue,io=Cl("	"),ah=io.parse,ao=io.parseRows,Pd=io.format,Fc=io.formatBody,jd=io.formatRows,K1=io.formatRow,oh=io.formatValue;function Al(t){for(var e in t){var r,a,o=t[e].trim();if(o)if(o==="true")o=!0;else if(o==="false")o=!1;else if(o==="NaN")o=NaN;else if(isNaN(r=+o)){if(!(a=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ml&&a[4]&&!a[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=r;else o=null;t[e]=o}return t}const Ml=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),zd=t=>+t;function Dl(t){return t*t}function $i(t){return t*(2-t)}function Nl(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ol=function t(e){function r(a){return Math.pow(a,e)}return e=+e,r.exponent=t,r}(3),J1=function t(e){function r(a){return 1-Math.pow(1-a,e)}return e=+e,r.exponent=t,r}(3),sh=function t(e){function r(a){return((a*=2)<=1?Math.pow(a,e):2-Math.pow(2-a,e))/2}return e=+e,r.exponent=t,r}(3),ch=Math.PI,t0=ch/2;function e0(t){return+t==1?1:1-Math.cos(t*t0)}function n0(t){return Math.sin(t*t0)}function oo(t){return(1-Math.cos(ch*t))/2}function Ao(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function ma(t){return Ao(1-+t)}function Yd(t){return 1-Ao(t)}function r0(t){return((t*=2)<=1?Ao(1-t):2-Ao(t-1))/2}function i0(t){return 1-Math.sqrt(1-t*t)}function a0(t){return Math.sqrt(1- --t*t)}function Bl(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Ll=7.5625;function o0(t){return 1-Rc(1-t)}function Rc(t){return(t=+t)<.36363636363636365?Ll*t*t:t<.7272727272727273?Ll*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Ll*(t-=.8181818181818182)*t+.9375:Ll*(t-=.9545454545454546)*t+.984375}function br(t){return((t*=2)<=1?1-Rc(1-t):Rc(t-1)+1)/2}var Ys=1.70158,qo=function t(e){function r(a){return(a=+a)*a*(e*(a-1)+a)}return e=+e,r.overshoot=t,r}(Ys),Ud=function t(e){function r(a){return--a*a*((a+1)*e+a)+1}return e=+e,r.overshoot=t,r}(Ys),Il=function t(e){function r(a){return((a*=2)<1?a*a*((e+1)*a-e):(a-=2)*a*((e+1)*a+e)+2)/2}return e=+e,r.overshoot=t,r}(Ys),ls=2*Math.PI,s0=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ls);function o(s){return e*Ao(- --s)*Math.sin((a-s)/r)}return o.amplitude=function(s){return t(s,r*ls)}
1255,o.period=function(s){return t(e,s)},o}(1,.3),Fl=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ls);function o(s){return 1-e*Ao(s=+s)*Math.sin((s+a)/r)}return o.amplitude=function(s){return t(s,r*ls)},o.period=function(s){return t(e,s)},o}(1,.3),Us=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ls);function o(s){return((s=2*s-1)<0?e*Ao(-s)*Math.sin((a-s)/r):2-e*Ao(s)*Math.sin((a+s)/r))/2}return o.amplitude=function(s){return t(s,r*ls)},o.period=function(s){return t(e,s)},o}(1,.3);function lh(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function $s(t,e){return fetch(t,e).then(lh)}function Ws(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function c0(t,e){return fetch(t,e).then(Ws)}function l0(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Pc(t,e){return fetch(t,e).then(l0)}function uh(t){return function(e,r,a){return arguments.length===2&&typeof r=="function"&&(a=r,r=void 0),Pc(e,r).then(function(o){return t(o,a)})}}function u0(t,e,r,a){arguments.length===3&&typeof r=="function"&&(a=r,r=void 0);var o=Cl(t);return Pc(e,r).then(function(s){return o.parse(s,a)})}var h0=uh(cn),$d=uh(ah);function Wd(t,e){return new Promise(function(r,a){var o=new Image;for(var s in e)o[s]=e[s];o.onerror=a,o.onload=function(){r(o)},o.src=t})}function qd(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(t.status!==204&&t.status!==205)return t.json()}function Vd(t,e){return fetch(t,e).then(qd)}function qa(t){return(e,r)=>Pc(e,r).then(a=>new DOMParser().parseFromString(a,t))}const hh=qa("application/xml");var us=qa("text/html"),Ma=qa("image/svg+xml");function dh(t,e){var r,a=1;function o(){var s,h,d=r.length,m=0,v=0;for(s=0;s<d;++s)m+=(h=r[s]).x,v+=h.y;for(m=(m/d-t)*a,v=(v/d-e)*a,s=0;s<d;++s)(h=r[s]).x-=m,h.y-=v}return t==null&&(t=0),e==null&&(e=0),o.initialize=function(s){r=s},o.x=function(s){return arguments.length?(t=+s,o):t},o.y=function(s){return arguments.length?(e=+s,o):e},o.strength=function(s){return arguments.length?(a=+s,o):a},o}function fh(t,e,r,a){if(isNaN(e)||isNaN(r))return t;var o,s,h,d,m,v,C,I,D,P=t._root,Z={data:a},U=t._x0,$=t._y0,W=t._x1,it=t._y1;if(!P)return t._root=Z,t;for(;P.length;)if((v=e>=(s=(U+W)/2))?U=s:W=s,(C=r>=(h=($+it)/2))?$=h:it=h,o=P,!(P=P[I=C<<1|v]))return o[I]=Z,t;if(d=+t._x.call(null,P.data),m=+t._y.call(null,P.data),e===d&&r===m)return Z.next=P,o?o[I]=Z:t._root=Z,t;do o=o?o[I]=new Array(4):t._root=new Array(4),(v=e>=(s=(U+W)/2))?U=s:W=s,(C=r>=(h=($+it)/2))?$=h:it=h;while((I=C<<1|v)==(D=(m>=h)<<1|d>=s));return o[D]=P,o[I]=Z,t}function Ii(t,e,r,a,o){this.node=t,this.x0=e,this.y0=r,this.x1=a,this.y1=o}function Hd(t){return t[0]}function Gd(t){return t[1]}function jc(t,e,r){var a=new ph(e??Hd,r??Gd,NaN,NaN,NaN,NaN);return t==null?a:a.addAll(t)}function ph(t,e,r,a,o,s){this._x=t,this._y=e,this._x0=r,this._y0=a,this._x1=o,this._y1=s,this._root=void 0}function gh(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var Wi=jc.prototype=ph.prototype;function _i(t){return function(){return t}}function Va(t){return 1e-6*(t()-.5)}function Xd(t){return t.x+t.vx}function xi(t){return t.y+t.vy}function Ki(t){var e,r,a,o=1,s=1;function h(){for(var v,C,I,D,P,Z,U,$=e.length,W=0;W<s;++W)for(C=jc(e,Xd,xi).visitAfter(d),v=0;v<$;++v)I=e[v],Z=r[I.index],U=Z*Z,D=I.x+I.vx,P=I.y+I.vy,C.visit(it);function it(nt,rt,lt,pt,Jt){var ye=nt.data,Ut=nt.r,Pt=Z+Ut;if(!ye)return rt>D+Pt||pt<D-Pt||lt>P+Pt||Jt<P-Pt;if(ye.index>I.index){var jt=D-ye.x-ye.vx,zt=P-ye.y-ye.vy,gt=jt*jt+zt*zt;gt<Pt*Pt&&(jt===0&&(gt+=(jt=Va(a))*jt),zt===0&&(gt+=(zt=Va(a))*zt),gt=(Pt-(gt=Math.sqrt(gt)))/gt*o,I.vx+=(jt*=gt)*(Pt=(Ut*=Ut)/(U+Ut)),I.vy+=(zt*=gt)*Pt,ye.vx-=jt*(Pt=1-Pt),ye.vy-=zt*Pt)}}}function d(v){if(v.data)return v.r=r[v.data.index];for(var C=v.r=0;C<4;++C)v[C]&&v[C].r>v.r&&(v.r=v[C].r)}function m(){if(e){var v,C,I=e.length;for(r=new Array(I),v=0;v<I;++v)C=e[v],r[C.index]=+t(C,v,e)}}return typeof t!="function"&&(t=_i(t==null?1:+t)),h.initialize=function(v,C){e=v,a=C,m()},h.iterations=function(v){return arguments.length?(s=+v,h):s},h.strength=function(v){return arguments.length?(o=+v,h):o},h.radius=function(v){return arguments.length?(t=typeof v=="function"?v:_i(+v),m(),h):t},h}function Rl(t){return t.index}function yi(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Fi(t){var e,r,a,o,s,h,d=Rl,m=function(U){return 1/Math.min(o[U.source.index],o[U.target.index])},v=_i(30),C=1;function I(U){for(var $=0,W=t.length;$<C;++$)for(var it,nt,rt,lt,pt,Jt,ye,Ut=0;Ut<W;++Ut)nt=(it=t[Ut]).source,lt=(rt=it.target).x+rt.vx-nt.x-nt.vx||Va(h),pt=rt.y+rt.vy-nt.y-nt.vy||Va(h),lt*=Jt=((Jt=Math.sqrt(lt*lt+pt*pt))-r[Ut])/Jt*U*e[Ut],pt*=Jt,rt.vx-=lt*(ye=s[Ut]),rt.vy-=pt*ye,nt.vx+=lt*(ye=1-ye),nt.vy+=pt*ye}
vendor: 4,573 bytes, line 1255
1255function D(){if(a){var U,$,W=a.length,it=t.length,nt=new Map(a.map((rt,lt)=>[d(rt,lt,a),rt]));for(U=0,o=new Array(W);U<it;++U)($=t[U]).index=U,typeof $.source!="object"&&($.source=yi(nt,$.source)),typeof $.target!="object"&&($.target=yi(nt,$.target)),o[$.source.index]=(o[$.source.index]||0)+1,o[$.target.index]=(o[$.target.index]||0)+1;for(U=0,s=new Array(it);U<it;++U)$=t[U],s[U]=o[$.source.index]/(o[$.source.index]+o[$.target.index]);e=new Array(it),P(),r=new Array(it),Z()}}function P(){if(a)for(var U=0,$=t.length;U<$;++U)e[U]=+m(t[U],U,t)}function Z(){if(a)for(var U=0,$=t.length;U<$;++U)r[U]=+v(t[U],U,t)}return t==null&&(t=[]),I.initialize=function(U,$){a=U,h=$,D()},I.links=function(U){return arguments.length?(t=U,D(),I):t},I.id=function(U){return arguments.length?(d=U,I):d},I.iterations=function(U){return arguments.length?(C=+U,I):C},I.strength=function(U){return arguments.length?(m=typeof U=="function"?U:_i(+U),P(),I):m},I.distance=function(U){return arguments.length?(v=typeof U=="function"?U:_i(+U),Z(),I):v},I}Wi.copy=function(){var t,e,r=new ph(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root;if(!a)return r;if(!a.length)return r._root=gh(a),r;for(t=[{source:a,target:r._root=new Array(4)}];a=t.pop();)for(var o=0;o<4;++o)(e=a.source[o])&&(e.length?t.push({source:e,target:a.target[o]=new Array(4)}):a.target[o]=gh(e));return r},Wi.add=function(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return fh(this.cover(e,r),e,r,t)},Wi.addAll=function(t){var e,r,a,o,s=t.length,h=new Array(s),d=new Array(s),m=1/0,v=1/0,C=-1/0,I=-1/0;for(r=0;r<s;++r)isNaN(a=+this._x.call(null,e=t[r]))||isNaN(o=+this._y.call(null,e))||(h[r]=a,d[r]=o,a<m&&(m=a),a>C&&(C=a),o<v&&(v=o),o>I&&(I=o));if(m>C||v>I)return this;for(this.cover(m,v).cover(C,I),r=0;r<s;++r)fh(this,h[r],d[r],t[r]);return this},Wi.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,a=this._y0,o=this._x1,s=this._y1;if(isNaN(r))o=(r=Math.floor(t))+1,s=(a=Math.floor(e))+1;else{for(var h,d,m=o-r||1,v=this._root;r>t||t>=o||a>e||e>=s;)switch(d=(e<a)<<1|t<r,(h=new Array(4))[d]=v,v=h,m*=2,d){case 0:o=r+m,s=a+m;break;case 1:r=o-m,s=a+m;break;case 2:o=r+m,a=s-m;break;case 3:r=o-m,a=s-m}this._root&&this._root.length&&(this._root=v)}return this._x0=r,this._y0=a,this._x1=o,this._y1=s,this},Wi.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},Wi.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Wi.find=function(t,e,r){var a,o,s,h,d,m,v,C=this._x0,I=this._y0,D=this._x1,P=this._y1,Z=[],U=this._root;for(U&&Z.push(new Ii(U,C,I,D,P)),r==null?r=1/0:(C=t-r,I=e-r,D=t+r,P=e+r,r*=r);m=Z.pop();)if(!(!(U=m.node)||(o=m.x0)>D||(s=m.y0)>P||(h=m.x1)<C||(d=m.y1)<I))if(U.length){var $=(o+h)/2,W=(s+d)/2;Z.push(new Ii(U[3],$,W,h,d),new Ii(U[2],o,W,$,d),new Ii(U[1],$,s,h,W),new Ii(U[0],o,s,$,W)),(v=(e>=W)<<1|t>=$)&&(m=Z[Z.length-1],Z[Z.length-1]=Z[Z.length-1-v],Z[Z.length-1-v]=m)}else{var it=t-+this._x.call(null,U.data),nt=e-+this._y.call(null,U.data),rt=it*it+nt*nt;if(rt<r){var lt=Math.sqrt(r=rt);C=t-lt,I=e-lt,D=t+lt,P=e+lt,a=U.data}}return a},Wi.remove=function(t){if(isNaN(s=+this._x.call(null,t))||isNaN(h=+this._y.call(null,t)))return this;var e,r,a,o,s,h,d,m,v,C,I,D,P=this._root,Z=this._x0,U=this._y0,$=this._x1,W=this._y1;if(!P)return this;if(P.length)for(;;){if((v=s>=(d=(Z+$)/2))?Z=d:$=d,(C=h>=(m=(U+W)/2))?U=m:W=m,e=P,!(P=P[I=C<<1|v]))return this;if(!P.length)break;(e[I+1&3]||e[I+2&3]||e[I+3&3])&&(r=e,D=I)}for(;P.data!==t;)if(a=P,!(P=P.next))return this;return(o=P.next)&&delete P.next,a?(o?a.next=o:delete a.next,this):e?(o?e[I]=o:delete e[I],(P=e[0]||e[1]||e[2]||e[3])&&P===(e[3]||e[2]||e[1]||e[0])&&!P.length&&(r?r[D]=P:this._root=P),this):(this._root=o,this)},Wi.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},Wi.root=function(){return this._root},Wi.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},Wi.visit=function(t){var e,r,a,o,s,h,d=[],m=this._root;for(m&&d.push(new Ii(m,this._x0,this._y0,this._x1,this._y1));e=d.pop();)if(!t(m=e.node,a=e.x0,o=e.y0,s=e.x1,h=e.y1)&&m.length){var v=(a+s)/2,C=(o+h)/2;(r=m[3])&&d.push(new Ii(r,v,C,s,h)),(r=m[2])&&d.push(new Ii(r,a,C,v,h)),(r=m[1])&&d.push(new Ii(r,v,o,s,C)),(r=m[0])&&d.push(new Ii(r,a,o,v,C))}return this},Wi.visitAfter=function(t){var e,r=[],a=[];for(this._root&&r.push(new Ii(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();
1255){var o=e.node;if(o.length){var s,h=e.x0,d=e.y0,m=e.x1,v=e.y1,C=(h+m)/2,I=(d+v)/2;(s=o[0])&&r.push(new Ii(s,h,d,C,I)),(s=o[1])&&r.push(new Ii(s,C,d,m,I)),(s=o[2])&&r.push(new Ii(s,h,I,C,v)),(s=o[3])&&r.push(new Ii(s,C,I,m,v))}a.push(e)}for(;e=a.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Wi.x=function(t){return arguments.length?(this._x=t,this):this._x},Wi.y=function(t){return arguments.length?(this._y=t,this):this._y};const yh=4294967296;function hs(t){return t.x}function mh(t){return t.y}var d0=Math.PI*(3-Math.sqrt(5));function f0(t){var e,r=1,a=.001,o=1-Math.pow(a,1/300),s=0,h=.6,d=new Map,m=jo(I),v=nr("tick","end"),C=function(){let U=1;return()=>(U=(1664525*U+1013904223)%yh)/yh}();function I(){D(),v.call("tick",e),r<a&&(m.stop(),v.call("end",e))}function D(U){var $,W,it=t.length;U===void 0&&(U=1);for(var nt=0;nt<U;++nt)for(r+=(s-r)*o,d.forEach(function(rt){rt(r)}),$=0;$<it;++$)(W=t[$]).fx==null?W.x+=W.vx*=h:(W.x=W.fx,W.vx=0),W.fy==null?W.y+=W.vy*=h:(W.y=W.fy,W.vy=0);return e}function P(){for(var U,$=0,W=t.length;$<W;++$){if((U=t[$]).index=$,U.fx!=null&&(U.x=U.fx),U.fy!=null&&(U.y=U.fy),isNaN(U.x)||isNaN(U.y)){var it=10*Math.sqrt(.5+$),nt=$*d0;U.x=it*Math.cos(nt),U.y=it*Math.sin(nt)}(isNaN(U.vx)||isNaN(U.vy))&&(U.vx=U.vy=0)}}function Z(U){return U.initialize&&U.initialize(t,C),U}return t==null&&(t=[]),P(),e={tick:D,restart:function(){return m.restart(I),e},stop:function(){return m.stop(),e},nodes:function(U){return arguments.length?(t=U,P(),d.forEach(Z),e):t},alpha:function(U){return arguments.length?(r=+U,e):r},alphaMin:function(U){return arguments.length?(a=+U,e):a},alphaDecay:function(U){return arguments.length?(o=+U,e):+o},alphaTarget:function(U){return arguments.length?(s=+U,e):s},velocityDecay:function(U){return arguments.length?(h=1-U,e):1-h},randomSource:function(U){return arguments.length?(C=U,d.forEach(Z),e):C},force:function(U,$){return arguments.length>1?($==null?d.delete(U):d.set(U,Z($)),e):d.get(U)},find:function(U,$,W){var it,nt,rt,lt,pt,Jt=0,ye=t.length;for(W==null?W=1/0:W*=W,Jt=0;Jt<ye;++Jt)(rt=(it=U-(lt=t[Jt]).x)*it+(nt=$-lt.y)*nt)<W&&(pt=lt,W=rt);return pt},on:function(U,$){return arguments.length>1?(v.on(U,$),e):v.on(U)}}}function p0(){var t,e,r,a,o,s=_i(-30),h=1,d=1/0,m=.81;function v(P){var Z,U=t.length,$=jc(t,hs,mh).visitAfter(I);for(a=P,Z=0;Z<U;++Z)e=t[Z],$.visit(D)}function C(){if(t){var P,Z,U=t.length;for(o=new Array(U),P=0;P<U;++P)Z=t[P],o[Z.index]=+s(Z,P,t)}}function I(P){var Z,U,$,W,it,nt=0,rt=0;if(P.length){for($=W=it=0;it<4;++it)(Z=P[it])&&(U=Math.abs(Z.value))&&(nt+=Z.value,rt+=U,$+=U*Z.x,W+=U*Z.y);P.x=$/rt,P.y=W/rt}else{(Z=P).x=Z.data.x,Z.y=Z.data.y;do nt+=o[Z.data.index];while(Z=Z.next)}P.value=nt}function D(P,Z,U,$){if(!P.value)return!0;var W=P.x-e.x,it=P.y-e.y,nt=$-Z,rt=W*W+it*it;if(nt*nt/m<rt)return rt<d&&(W===0&&(rt+=(W=Va(r))*W),it===0&&(rt+=(it=Va(r))*it),rt<h&&(rt=Math.sqrt(h*rt)),e.vx+=W*P.value*a/rt,e.vy+=it*P.value*a/rt),!0;if(!(P.length||rt>=d)){(P.data!==e||P.next)&&(W===0&&(rt+=(W=Va(r))*W),it===0&&(rt+=(it=Va(r))*it),rt<h&&(rt=Math.sqrt(h*rt)));do P.data!==e&&(nt=o[P.data.index]*a/rt,e.vx+=W*nt,e.vy+=it*nt);while(P=P.next)}}return v.initialize=function(P,Z){t=P,r=Z,C()},v.strength=function(P){return arguments.length?(s=typeof P=="function"?P:_i(+P),C(),v):s},v.distanceMin=function(P){return arguments.length?(h=P*P,v):Math.sqrt(h)},v.distanceMax=function(P){return arguments.length?(d=P*P,v):Math.sqrt(d)},v.theta=function(P){return arguments.length?(m=P*P,v):Math.sqrt(m)},v}function g0(t,e,r){var a,o,s,h=_i(.1);function d(v){for(var C=0,I=a.length;C<I;++C){var D=a[C],P=D.x-e||1e-6,Z=D.y-r||1e-6,U=Math.sqrt(P*P+Z*Z),$=(s[C]-U)*o[C]*v/U;D.vx+=P*$,D.vy+=Z*$}}function m(){if(a){var v,C=a.length;for(o=new Array(C),s=new Array(C),v=0;v<C;++v)s[v]=+t(a[v],v,a),o[v]=isNaN(s[v])?0:+h(a[v],v,a)}}return typeof t!="function"&&(t=_i(+t)),e==null&&(e=0),r==null&&(r=0),d.initialize=function(v){a=v,m()},d.strength=function(v){return arguments.length?(h=typeof v=="function"?v:_i(+v),m(),d):h},d.radius=function(v){return arguments.length?(t=typeof v=="function"?v:_i(+v),m(),d):t},d.x=function(v){return arguments.length?(e=+v,d):e},d.y=function(v){return arguments.length?(r=+v,d):r},d}function y0(t){var e,r,a,o=_i(.1);function s(d){for(var m,v=0,C=e.length;v<C;++v)(m=e[v]).vx+=(a[v]-m.x)*r[v]*d}function h(){if(e){var d,m=e.length;for(r=new Array(m),a=new Array(m),d=0;d<m;++d)r[d]=isNaN(a[d]=+t(e[d],d,e))?0:+o(e[d],d,e)}}return typeof t!="function"&&(t=_i(t==null?0:+t)),s.initialize=function(d){e=d,h()},s.strength=function(d){return arguments.length?(o=typeof d=="function"?d:_i(+d),h(),s):o},s.x=function(d){return arguments.length?(t=typeof d=="function"?d:_i(+d),h(),s):t},s}function zc(t){var e,r,a,o=_i(.1);function s(d){for(var m,v=0,C=e.length;v<C;++v)(m=e[v]).vy+=(a[v]-m.y)*r[v]*d}function h(){if(e){var d,m=e.length;for(r=new Array(m),a=new Array(m),d=0;d<m;++d)r[d]=isNaN(a[d]=+t(e[d],d,e))?0:+o(e[d],d,e)}}return typeof t!="function"&&(t=_i(t==null?0:+t)),s.initialize=function(d){e=d,h()},s.strength=function(d){return arguments.length?(o=typeof d=="function"?d:_i(+d),h(),s):o},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:_i(+d),h(),s):t},s}function Pl(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 so(t){return(t=Pl(Math.abs(t)))?t[1]:NaN}var Ji,qs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(t){if(!(e=qs.exec(t)))throw new Error("invalid format: "+t);var e;return new ds({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 ds(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.
1255width,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 bh(t,e){var r=Pl(t,e);if(!r)return t+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}co.prototype=ds.prototype,ds.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 vh={"%":(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)=>bh(100*t,e),r:bh,s:function(t,e){var r=Pl(t,e);if(!r)return t+"";var a=r[0],o=r[1],s=o-(Ji=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,h=a.length;return s===h?a:s>h?a+new Array(s-h+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pl(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function m0(t){return t}var jl,zl,_h,Yl=Array.prototype.map,b0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yc(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?m0:(e=Yl.call(t.grouping,Number),r=t.thousands+"",function(D,P){for(var Z=D.length,U=[],$=0,W=e[0],it=0;Z>0&&W>0&&(it+W+1>P&&(W=Math.max(1,P-it)),U.push(D.substring(Z-=W,Z+W)),!((it+=W+1)>P));)W=e[$=($+1)%e.length];return U.reverse().join(r)}),o=t.currency===void 0?"":t.currency[0]+"",s=t.currency===void 0?"":t.currency[1]+"",h=t.decimal===void 0?".":t.decimal+"",d=t.numerals===void 0?m0:function(D){return function(P){return P.replace(/[0-9]/g,function(Z){return D[+Z]})}}(Yl.call(t.numerals,String)),m=t.percent===void 0?"%":t.percent+"",v=t.minus===void 0?"−":t.minus+"",C=t.nan===void 0?"NaN":t.nan+"";function I(D){var P=(D=co(D)).fill,Z=D.align,U=D.sign,$=D.symbol,W=D.zero,it=D.width,nt=D.comma,rt=D.precision,lt=D.trim,pt=D.type;pt==="n"?(nt=!0,pt="g"):vh[pt]||(rt===void 0&&(rt=12),lt=!0,pt="g"),(W||P==="0"&&Z==="=")&&(W=!0,P="0",Z="=");var Jt=$==="$"?o:$==="#"&&/[boxX]/.test(pt)?"0"+pt.toLowerCase():"",ye=$==="$"?s:/[%p]/.test(pt)?m:"",Ut=vh[pt],Pt=/[defgprs%]/.test(pt);function jt(zt){var gt,Bt,Vt,ae=Jt,we=ye;if(pt==="c")we=Ut(zt)+we,zt="";else{var ze=(zt=+zt)<0||1/zt<0;if(zt=isNaN(zt)?C:Ut(Math.abs(zt),rt),lt&&(zt=function(Ge){t:for(var Yn,Wn=Ge.length,Cn=1,Ln=-1;Cn<Wn;++Cn)switch(Ge[Cn]){case".":Ln=Yn=Cn;break;case"0":Ln===0&&(Ln=Cn),Yn=Cn;break;default:if(!+Ge[Cn])break t;Ln>0&&(Ln=0)}return Ln>0?Ge.slice(0,Ln)+Ge.slice(Yn+1):Ge}(zt)),ze&&+zt==0&&U!=="+"&&(ze=!1),ae=(ze?U==="("?U:v:U==="-"||U==="("?"":U)+ae,we=(pt==="s"?b0[8+Ji/3]:"")+we+(ze&&U==="("?")":""),Pt){for(gt=-1,Bt=zt.length;++gt<Bt;)if(48>(Vt=zt.charCodeAt(gt))||Vt>57){we=(Vt===46?h+zt.slice(gt+1):zt.slice(gt))+we,zt=zt.slice(0,gt);break}}}nt&&!W&&(zt=a(zt,1/0));var He=ae.length+zt.length+we.length,fn=He<it?new Array(it-He+1).join(P):"";switch(nt&&W&&(zt=a(fn+zt,fn.length?it-we.length:1/0),fn=""),Z){case"<":zt=ae+zt+we+fn;break;case"=":zt=ae+fn+zt+we;break;case"^":zt=fn.slice(0,He=fn.length>>1)+ae+zt+we+fn.slice(He);break;default:zt=fn+ae+zt+we}return d(zt)}return rt=rt===void 0?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,rt)):Math.max(0,Math.min(20,rt)),jt.toString=function(){return D+""},jt}return{format:I,formatPrefix:function(D,P){var Z=I(((D=co(D)).type="f",D)),U=3*Math.max(-8,Math.min(8,Math.floor(so(P)/3))),$=Math.pow(10,-U),W=b0[8+U/3];return function(it){return Z($*it)+W}}}}function v0(t){return jl=Yc(t),zl=jl.format,_h=jl.formatPrefix,jl}function Ul(t){return Math.max(0,-so(Math.abs(t)))}function $l(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(so(e)/3)))-so(Math.abs(t)))}function xh(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,so(e)-so(t))+1}v0({thousands:",",grouping:[3],currency:["$",""]});var Xn=1e-6,Wl=1e-12,tr=Math.PI,Pr=tr/2,Vs=tr/4,ki=2*tr,Lr=180/tr,$n=tr/180,Bn=Math.abs,fs=Math.atan,qi=Math.atan2,vn=Math.cos,ps=Math.ceil,i=Math.exp,n=Math.hypot,l=Math.log,p=Math.pow,g=Math.sin,T=Math.sign||function(t){return t>0?1:t<0?-1:0},k=Math.sqrt,S=Math.tan;function N(t){return t>1?0:t<-1?tr:Math.acos(t)}function B(t){return t>1?Pr:t<-1?-Pr:Math.asin(t)}function q(t){return(t=g(t/2))*t}function V(){}function et(t,e){t&&Tt.hasOwnProperty(t.type)&&Tt[t.type](t,e)}var J={Feature:function(t,e){et(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)et(r[a].geometry,e)}},Tt={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)t=r[a],e.point(t[0],t[1],t[2])},LineString:function(t,e){St(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)St(r[a],e,0)},Polygon:function(t,e){Lt(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)Lt(r[a],e)},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)et(r[a],e)}};function St(t,e,r){var a,o=-1,s=t.length-r;for(e.lineStart();++o<s;)a=t[o],e.point(a[0],a[1],a[2]);e.lineEnd()}function Lt(t,e){var r=-1,a=t.length;for(e.polygonStart();++r<a;)St(t[r],e,1);e.polygonEnd()}function Nt(t,e){t&&J.hasOwnProperty(t.type)?J[t.type](t,e):et(t,e)}var Ot,Ft,_t,ee,ke,ue,ve,Rt,le,Wt,ie,ce,se,Ne,Ce,je,_n=new vt,Re=new vt,tn={point:V,lineStart:V,lineEnd:V,polygonStart:function(){_n=new vt,tn.lineStart=yn,tn.lineEnd=Ue},polygonEnd:function(){var t=+_n;Re.add(t<0?ki+t:t),this.lineStart=this.lineEnd=this.point=V},sphere:function(){Re.add(ki)}};function yn(){tn.point=$e}function Ue(){bn(Ot,Ft)}function $e(t,e){tn.point=bn,Ot=t,Ft=e,_t=t*=$n,ee=vn(e=(e*=$n)/2+Vs),ke=g(e)}function bn(t,e){var r=(t*=$n)-_t,a=r>=0?1:-1,o=a*r,s=vn(e=(e*=$n)/2+Vs),h=g(e),d=ke*h,m=ee*s+d*vn(o),v=d*a*g(o);_n.add(qi(v,m)),_t=t,ee=s,ke=h}function gr(t){return Re=new vt,Nt(t,tn),2*Re}function dr(t){return[qi(t[1],t[0]),B(t[2])]}function jr(t){var e=t[0],r=t[1],a=vn(r);return[a*vn(e),a*g(e),g(r)]}function fr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function mi(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ur(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}
vendor: 9,521 bytes, line 1255
1255function Da(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function la(t){var e=k(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ai,zr,Na,ba,gs,Vo,Ha,Oa,ql,Vl,Hl,kh,wh,Vi,va,_a,ys={point:Zd,lineStart:F2,lineEnd:R2,polygonStart:function(){ys.point=P2,ys.lineStart=Ym,ys.lineEnd=Um,Ne=new vt,tn.polygonStart()},polygonEnd:function(){tn.polygonEnd(),ys.point=Zd,ys.lineStart=F2,ys.lineEnd=R2,_n<0?(ue=-(Rt=180),ve=-(le=90)):Ne>Xn?le=90:Ne<-1e-6&&(ve=-90),je[0]=ue,je[1]=Rt},sphere:function(){ue=-(Rt=180),ve=-(le=90)}};function Zd(t,e){Ce.push(je=[ue=t,Rt=t]),e<ve&&(ve=e),e>le&&(le=e)}function I2(t,e){var r=jr([t*$n,e*$n]);if(se){var a=mi(se,r),o=mi([a[1],-a[0],0],a);la(o),o=dr(o);var s,h=t-Wt,d=h>0?1:-1,m=o[0]*Lr*d,v=Bn(h)>180;v^(d*Wt<m&&m<d*t)?(s=o[1]*Lr)>le&&(le=s):v^(d*Wt<(m=(m+360)%360-180)&&m<d*t)?(s=-o[1]*Lr)<ve&&(ve=s):(e<ve&&(ve=e),e>le&&(le=e)),v?t<Wt?Ga(ue,t)>Ga(ue,Rt)&&(Rt=t):Ga(t,Rt)>Ga(ue,Rt)&&(ue=t):Rt>=ue?(t<ue&&(ue=t),t>Rt&&(Rt=t)):t>Wt?Ga(ue,t)>Ga(ue,Rt)&&(Rt=t):Ga(t,Rt)>Ga(ue,Rt)&&(ue=t)}else Ce.push(je=[ue=t,Rt=t]);e<ve&&(ve=e),e>le&&(le=e),se=r,Wt=t}function F2(){ys.point=I2}function R2(){je[0]=ue,je[1]=Rt,ys.point=Zd,se=null}function P2(t,e){if(se){var r=t-Wt;Ne.add(Bn(r)>180?r+(r>0?360:-360):r)}else ie=t,ce=e;tn.point(t,e),I2(t,e)}function Ym(){tn.lineStart()}function Um(){P2(ie,ce),tn.lineEnd(),Bn(Ne)>Xn&&(ue=-(Rt=180)),je[0]=ue,je[1]=Rt,se=null}function Ga(t,e){return(e-=t)<0?e+360:e}function $m(t,e){return t[0]-e[0]}function j2(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Wm(t){var e,r,a,o,s,h,d;if(le=Rt=-(ue=ve=1/0),Ce=[],Nt(t,ys),r=Ce.length){for(Ce.sort($m),e=1,s=[a=Ce[0]];e<r;++e)j2(a,(o=Ce[e])[0])||j2(a,o[1])?(Ga(a[0],o[1])>Ga(a[0],a[1])&&(a[1]=o[1]),Ga(o[0],a[1])>Ga(a[0],a[1])&&(a[0]=o[0])):s.push(a=o);for(h=-1/0,e=0,a=s[r=s.length-1];e<=r;a=o,++e)o=s[e],(d=Ga(a[1],o[0]))>h&&(h=d,ue=o[0],Rt=a[1])}return Ce=je=null,ue===1/0||ve===1/0?[[NaN,NaN],[NaN,NaN]]:[[ue,ve],[Rt,le]]}var Mo={sphere:V,point:Qd,lineStart:z2,lineEnd:Y2,polygonStart:function(){Mo.lineStart=Hm,Mo.lineEnd=Gm},polygonEnd:function(){Mo.lineStart=z2,Mo.lineEnd=Y2}};function Qd(t,e){t*=$n;var r=vn(e*=$n);Th(r*vn(t),r*g(t),g(e))}function Th(t,e,r){++ai,Na+=(t-Na)/ai,ba+=(e-ba)/ai,gs+=(r-gs)/ai}function z2(){Mo.point=qm}function qm(t,e){t*=$n;var r=vn(e*=$n);Vi=r*vn(t),va=r*g(t),_a=g(e),Mo.point=Vm,Th(Vi,va,_a)}function Vm(t,e){t*=$n;var r=vn(e*=$n),a=r*vn(t),o=r*g(t),s=g(e),h=qi(k((h=va*s-_a*o)*h+(h=_a*a-Vi*s)*h+(h=Vi*o-va*a)*h),Vi*a+va*o+_a*s);zr+=h,Vo+=h*(Vi+(Vi=a)),Ha+=h*(va+(va=o)),Oa+=h*(_a+(_a=s)),Th(Vi,va,_a)}function Y2(){Mo.point=Qd}function Hm(){Mo.point=Xm}function Gm(){U2(kh,wh),Mo.point=Qd}function Xm(t,e){kh=t,wh=e,t*=$n,e*=$n,Mo.point=U2;var r=vn(e);Vi=r*vn(t),va=r*g(t),_a=g(e),Th(Vi,va,_a)}function U2(t,e){t*=$n;var r=vn(e*=$n),a=r*vn(t),o=r*g(t),s=g(e),h=va*s-_a*o,d=_a*a-Vi*s,m=Vi*o-va*a,v=n(h,d,m),C=B(v),I=v&&-C/v;ql.add(I*h),Vl.add(I*d),Hl.add(I*m),zr+=C,Vo+=C*(Vi+(Vi=a)),Ha+=C*(va+(va=o)),Oa+=C*(_a+(_a=s)),Th(Vi,va,_a)}function Zm(t){ai=zr=Na=ba=gs=Vo=Ha=Oa=0,ql=new vt,Vl=new vt,Hl=new vt,Nt(t,Mo);var e=+ql,r=+Vl,a=+Hl,o=n(e,r,a);return o<Wl&&(e=Vo,r=Ha,a=Oa,zr<Xn&&(e=Na,r=ba,a=gs),(o=n(e,r,a))<Wl)?[NaN,NaN]:[qi(r,e)*Lr,B(a/o)*Lr]}function Gl(t){return function(){return t}}function Kd(t,e){function r(a,o){return a=t(a,o),e(a[0],a[1])}return t.invert&&e.invert&&(r.invert=function(a,o){return(a=e.invert(a,o))&&t.invert(a[0],a[1])}),r}function Jd(t,e){return[Bn(t)>tr?t+Math.round(-t/ki)*ki:t,e]}function tf(t,e,r){return(t%=ki)?e||r?Kd(W2(t),q2(e,r)):W2(t):e||r?q2(e,r):Jd}function $2(t){return function(e,r){return[(e+=t)>tr?e-ki:e<-tr?e+ki:e,r]}}function W2(t){var e=$2(t);return e.invert=$2(-t),e}function q2(t,e){var r=vn(t),a=g(t),o=vn(e),s=g(e);function h(d,m){var v=vn(m),C=vn(d)*v,I=g(d)*v,D=g(m),P=D*r+C*a;return[qi(I*o-P*s,C*r-D*a),B(P*o+I*s)]}return h.invert=function(d,m){var v=vn(m),C=vn(d)*v,I=g(d)*v,D=g(m),P=D*o-I*s;return[qi(I*o+D*s,C*r+P*a),B(P*r-C*a)]},h}function V2(t){function e(r){return(r=t(r[0]*$n,r[1]*$n))[0]*=Lr,r[1]*=Lr,r}return t=tf(t[0]*$n,t[1]*$n,t.length>2?t[2]*$n:0),e.invert=function(r){return(r=t.invert(r[0]*$n,r[1]*$n))[0]*=Lr,r[1]*=Lr,r},e}function H2(t,e,r,a,o,s){if(r){var h=vn(e),d=g(e),m=a*r;o==null?(o=e+a*ki,s=e-m/2):(o=G2(h,o),s=G2(h,s),(a>0?o<s:o>s)&&(o+=a*ki));for(var v,C=o;a>0?C>s:C<s;C-=m)v=dr([h,-d*vn(C),-d*g(C)]),t.point(v[0],v[1])}}function G2(t,e){(e=jr(e))[0]-=t,la(e);var r=N(-e[1]);return((-e[2]<0?-r:r)+ki-Xn)%ki}function Qm(){var t,e,r=Gl([0,0]),a=Gl(90),o=Gl(6),s={point:function(d,m){t.push(d=e(d,m)),d[0]*=Lr,d[1]*=Lr}};function h(){var d=r.apply(this,arguments),m=a.apply(this,arguments)*$n,v=o.apply(this,arguments)*$n;return t=[],e=tf(-d[0]*$n,-d[1]*$n,0).invert,H2(s,m,v,1),d={type:"Polygon",coordinates:[t]},t=e=null,d}return h.center=function(d){return arguments.length?(r=typeof d=="function"?d:Gl([+d[0],+d[1]]),h):r},h.radius=function(d){return arguments.length?(a=typeof d=="function"?d:Gl(+d),h):a},h.precision=function(d){return arguments.length?(o=typeof d=="function"?d:Gl(+d),h):o},h}function X2(){var t,e=[];return{point:function(r,a,o){t.push([r,a,o])},lineStart:function(){e.push(t=[])},lineEnd:V,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function _0(t,e){return Bn(t[0]-e[0])<Xn&&Bn(t[1]-e[1])<Xn}function x0(t,e,r,a){this.x=t,this.z=e,this.o=r,this.e=a,this.v=!1,this.n=this.p=null}function Z2(t,e,r,a,o){var s,h,d=[],m=[];if(t.forEach(function(Z){if(!((U=Z.length-1)<=0)){var U,$,W=Z[0],it=Z[U];if(_0(W,it)){if(!W[2]&&!it[2]){for(o.lineStart(),s=0;s<U;++s)o.point((W=Z[s])[0],W[1]);return void o.lineEnd()}it[0]+=2e-6}d.push($=new x0(W,Z,null,!0)),m.push($.o=new x0(W,null,$,!1)),d.push($=new x0(it,Z,null,!1)),m.push($.o=new x0(it,null,$,!0))}}),d.length){for(m.sort(e),Q2(d),Q2(m),s=0,h=m.length;s<h;++s)m[s].e=r=!r;for(var v,C,I=d[0];;){for(var D=I,P=!0;D.v;)if((D=D.n)===I)return;v=D.z,o.lineStart();do{if(D.v=D.o.v=!0,D.e){if(P)for(s=0,h=v.length;s<h;++s)o.point((C=v[s])[0],C[1]);else a(D.x,D.n.x,1,o);D=D.n}else{if(P)for(v=D.p.z,s=v.length-1;s>=0;--s)o.point((C=v[s])[0],C[1]);else a(D.x,D.p.x,-1,o);D=D.p}v=(D=D.o).z,P=!P}while(!D.v);o.lineEnd()}}}function Q2(t){if(e=t.length){for(var e,r,a=0,o=t[0];++a<e;)o.n=r=t[a],r.p=o,o=r;o.n=r=t[0],r.p=o}}function ef(t){return Bn(t[0])<=tr?t[0]:T(t[0])*((Bn(t[0])+tr)%ki-tr)}function K2(t,e){var r=ef(e),a=e[1],o=g(a),s=[g(r),-vn(r),0],h=0,d=0,m=new vt;o===1?a=Pr+Xn:o===-1&&(a=-Pr-Xn);for(var v=0,C=t.length;v<C;++v)if(D=(I=t[v]).length)for(var I,D,P=I[D-1],Z=ef(P),U=P[1]/2+Vs,$=g(U),W=vn(U),it=0;it<D;++it,Z=rt,$=pt,W=Jt,P=nt){var nt=I[it],rt=ef(nt),lt=nt[1]/2+Vs,pt=g(lt),Jt=vn(lt),ye=rt-Z,Ut=ye>=0?1:-1,Pt=Ut*ye,jt=Pt>tr,zt=$*pt;if(m.add(qi(zt*Ut*g(Pt),W*Jt+zt*vn(Pt))),h+=jt?ye+Ut*ki:ye,jt^Z>=r^rt>=r){var gt=mi(jr(P),jr(nt));la(gt);var Bt=mi(s,gt);la(Bt);var Vt=(jt^ye>=0?-1:1)*B(Bt[2]);(a>Vt||a===Vt&&(gt[0]||gt[1]))&&(d+=jt^ye>=0?1:-1)}}return(h<-1e-6||h<Xn&&m<-1e-12)^1&d}function J2(t,e,r,a){return function(o){var s,h,d,m=e(o),v=X2(),C=e(v),I=!1,D={point:P,lineStart:U,lineEnd:$,polygonStart:function(){D.point=W,D.lineStart=it,D.lineEnd=nt,h=[],s=[]},polygonEnd:function(){D.point=P,D.lineStart=U,D.lineEnd=$,h=Ye(h);var rt=K2(s,a);h.length?(I||(o.polygonStart(),I=!0),Z2(h,Jm,rt,r,o)):rt&&(I||(o.polygonStart(),I=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),I&&(o.polygonEnd(),I=!1),h=s=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function P(rt,lt){t(rt,lt)&&o.point(rt,lt)}function Z(rt,lt){m.point(rt,lt)}function U(){D.point=Z,m.lineStart()}function $(){D.point=P,m.lineEnd()}function W(rt,lt){d.push([rt,lt]),C.point(rt,lt)}function it(){C.lineStart(),d=[]}function nt(){W(d[0][0],d[0][1]),C.lineEnd();var rt,lt,pt,Jt,ye=C.clean(),Ut=v.result(),Pt=Ut.length;if(d.pop(),s.push(d),d=null,Pt)if(1&ye){if((lt=(pt=Ut[0]).length-1)>0){for(I||(o.polygonStart(),I=!0),o.lineStart(),rt=0;rt<lt;++rt)o.point((Jt=pt[rt])[0],Jt[1]);o.lineEnd()}}else Pt>1&&2&ye&&Ut.push(Ut.pop().concat(Ut.shift())),h.push(Ut.filter(Km))}return D}}function Km(t){return t.length>1}function Jm(t,e){return((t=t.x)[0]<0?t[1]-Pr-Xn:Pr-t[1])-((e=e.x)[0]<0?e[1]-Pr-Xn:Pr-e[1])}Jd.invert=Jd;const nf=J2(function(){return!0},function(t){var e,r=NaN,a=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(s,h){var d=s>0?tr:-tr,m=Bn(s-r);Bn(m-tr)<Xn?(t.point(r,a=(a+h)/2>0?Pr:-Pr),t.point(o,a),t.lineEnd(),t.lineStart(),t.point(d,a),t.point(s,a),e=0):o!==d&&m>=tr&&(Bn(r-o)<Xn&&(r-=o*Xn),Bn(s-d)<Xn&&(s-=d*Xn),a=function(v,C,I,D){var P,Z,U=g(v-I);return Bn(U)>Xn?fs((g(C)*(Z=vn(D))*g(I)-g(D)*(P=vn(C))*g(v))/(P*Z*U)):(C+D)/2}(r,a,s,h),t.point(o,a),t.lineEnd(),t.lineStart(),t.point(d,a),e=0),t.point(r=s,a=h),o=d},lineEnd:function(){t.lineEnd(),r=a=NaN},clean:function(){return 2-e}}},function(t,e,r,a){var o;if(t==null)o=r*Pr,a.point(-tr,o),a.point(0,o),a.point(tr,o),a.point(tr,0),a.point(tr,-o),a.point(0,-o),a.point(-tr,-o),a.point(-tr,0),a.point(-tr,o);else if(Bn(t[0]-e[0])>Xn){var s=t[0]<e[0]?tr:-tr;o=r*s/2,a.point(-s,o),a.point(0,o),a.point(s,o)}else a.point(e[0],e[1])},[-tr,-Pr]);function tp(t){var e=vn(t),r=6*$n,a=e>0,o=Bn(e)>Xn;function s(m,v){return vn(m)*vn(v)>e}function h(m,v,C){var I=[1,0,0],D=mi(jr(m),jr(v)),P=fr(D,D),Z=D[0],U=P-Z*Z;if(!U)return!C&&m;var $=e*P/U,W=-e*Z/U,it=mi(I,D),nt=Da(I,$);ur(nt,Da(D,W));var rt=it,lt=fr(nt,rt),pt=fr(rt,rt),Jt=lt*lt-pt*(fr(nt,nt)-1);if(!(Jt<0)){var ye=k(Jt),Ut=Da(rt,(-lt-ye)/pt);if(ur(Ut,nt),Ut=dr(Ut),!C)return Ut;
1255var Pt,jt=m[0],zt=v[0],gt=m[1],Bt=v[1];zt<jt&&(Pt=jt,jt=zt,zt=Pt);var Vt=zt-jt,ae=Bn(Vt-tr)<Xn;if(!ae&&Bt<gt&&(Pt=gt,gt=Bt,Bt=Pt),ae||Vt<Xn?ae?gt+Bt>0^Ut[1]<(Bn(Ut[0]-jt)<Xn?gt:Bt):gt<=Ut[1]&&Ut[1]<=Bt:Vt>tr^(jt<=Ut[0]&&Ut[0]<=zt)){var we=Da(rt,(-lt+ye)/pt);return ur(we,nt),[Ut,dr(we)]}}}function d(m,v){var C=a?t:tr-t,I=0;return m<-C?I|=1:m>C&&(I|=2),v<-C?I|=4:v>C&&(I|=8),I}return J2(s,function(m){var v,C,I,D,P;return{lineStart:function(){D=I=!1,P=1},point:function(Z,U){var $,W=[Z,U],it=s(Z,U),nt=a?it?0:d(Z,U):it?d(Z+(Z<0?tr:-tr),U):0;if(!v&&(D=I=it)&&m.lineStart(),it!==I&&(!($=h(v,W))||_0(v,$)||_0(W,$))&&(W[2]=1),it!==I)P=0,it?(m.lineStart(),$=h(W,v),m.point($[0],$[1])):($=h(v,W),m.point($[0],$[1],2),m.lineEnd()),v=$;else if(o&&v&&a^it){var rt;nt&C||!(rt=h(W,v,!0))||(P=0,a?(m.lineStart(),m.point(rt[0][0],rt[0][1]),m.point(rt[1][0],rt[1][1]),m.lineEnd()):(m.point(rt[1][0],rt[1][1]),m.lineEnd(),m.lineStart(),m.point(rt[0][0],rt[0][1],3)))}!it||v&&_0(v,W)||m.point(W[0],W[1]),v=W,I=it,C=nt},lineEnd:function(){I&&m.lineEnd(),v=null},clean:function(){return P|(D&&I)<<1}}},function(m,v,C,I){H2(I,t,r,C,m,v)},a?[0,-t]:[-tr,t-tr])}var rf,af,k0,w0,Eh=1e9,T0=-Eh;function E0(t,e,r,a){function o(v,C){return t<=v&&v<=r&&e<=C&&C<=a}function s(v,C,I,D){var P=0,Z=0;if(v==null||(P=h(v,I))!==(Z=h(C,I))||m(v,C)<0^I>0)do D.point(P===0||P===3?t:r,P>1?a:e);while((P=(P+I+4)%4)!==Z);else D.point(C[0],C[1])}function h(v,C){return Bn(v[0]-t)<Xn?C>0?0:3:Bn(v[0]-r)<Xn?C>0?2:1:Bn(v[1]-e)<Xn?C>0?1:0:C>0?3:2}function d(v,C){return m(v.x,C.x)}function m(v,C){var I=h(v,1),D=h(C,1);return I!==D?I-D:I===0?C[1]-v[1]:I===1?v[0]-C[0]:I===2?v[1]-C[1]:C[0]-v[0]}return function(v){var C,I,D,P,Z,U,$,W,it,nt,rt,lt=v,pt=X2(),Jt={point:ye,lineStart:function(){Jt.point=Ut,I&&I.push(D=[]),nt=!0,it=!1,$=W=NaN},lineEnd:function(){C&&(Ut(P,Z),U&&it&&pt.rejoin(),C.push(pt.result())),Jt.point=ye,it&&lt.lineEnd()},polygonStart:function(){lt=pt,C=[],I=[],rt=!0},polygonEnd:function(){var Pt=function(){for(var gt=0,Bt=0,Vt=I.length;Bt<Vt;++Bt)for(var ae,we,ze=I[Bt],He=1,fn=ze.length,Ge=ze[0],Yn=Ge[0],Wn=Ge[1];He<fn;++He)ae=Yn,we=Wn,Yn=(Ge=ze[He])[0],Wn=Ge[1],we<=a?Wn>a&&(Yn-ae)*(a-we)>(Wn-we)*(t-ae)&&++gt:Wn<=a&&(Yn-ae)*(a-we)<(Wn-we)*(t-ae)&&--gt;return gt}(),jt=rt&&Pt,zt=(C=Ye(C)).length;(jt||zt)&&(v.polygonStart(),jt&&(v.lineStart(),s(null,null,1,v),v.lineEnd()),zt&&Z2(C,d,Pt,s,v),v.polygonEnd()),lt=v,C=I=D=null}};function ye(Pt,jt){o(Pt,jt)&&lt.point(Pt,jt)}function Ut(Pt,jt){var zt=o(Pt,jt);if(I&&D.push([Pt,jt]),nt)P=Pt,Z=jt,U=zt,nt=!1,zt&&(lt.lineStart(),lt.point(Pt,jt));else if(zt&&it)lt.point(Pt,jt);else{var gt=[$=Math.max(T0,Math.min(Eh,$)),W=Math.max(T0,Math.min(Eh,W))],Bt=[Pt=Math.max(T0,Math.min(Eh,Pt)),jt=Math.max(T0,Math.min(Eh,jt))];(function(Vt,ae,we,ze,He,fn){var Ge,Yn=Vt[0],Wn=Vt[1],Cn=0,Ln=1,wr=ae[0]-Yn,ir=ae[1]-Wn;if(Ge=we-Yn,wr||!(Ge>0)){if(Ge/=wr,wr<0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}else if(wr>0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}if(Ge=He-Yn,wr||!(Ge<0)){if(Ge/=wr,wr<0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}else if(wr>0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}if(Ge=ze-Wn,ir||!(Ge>0)){if(Ge/=ir,ir<0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}else if(ir>0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}if(Ge=fn-Wn,ir||!(Ge<0)){if(Ge/=ir,ir<0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}else if(ir>0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}return Cn>0&&(Vt[0]=Yn+Cn*wr,Vt[1]=Wn+Cn*ir),Ln<1&&(ae[0]=Yn+Ln*wr,ae[1]=Wn+Ln*ir),!0}}}}})(gt,Bt,t,e,r,a)?(it||(lt.lineStart(),lt.point(gt[0],gt[1])),lt.point(Bt[0],Bt[1]),zt||lt.lineEnd(),rt=!1):zt&&(lt.lineStart(),lt.point(Pt,jt),rt=!1)}$=Pt,W=jt,it=zt}return Jt}}function t3(){var t,e,r,a=0,o=0,s=960,h=500;return r={stream:function(d){return t&&e===d?t:t=E0(a,o,s,h)(e=d)},extent:function(d){return arguments.length?(a=+d[0][0],o=+d[0][1],s=+d[1][0],h=+d[1][1],t=e=null,r):[[a,o],[s,h]]}}}var Xl={sphere:V,point:V,lineStart:function(){Xl.point=n3,Xl.lineEnd=e3},lineEnd:V,polygonStart:V,polygonEnd:V};function e3(){Xl.point=Xl.lineEnd=V}function n3(t,e){af=t*=$n,k0=g(e*=$n),w0=vn(e),Xl.point=r3}function r3(t,e){t*=$n;var r=g(e*=$n),a=vn(e),o=Bn(t-af),s=vn(o),h=a*g(o),d=w0*r-k0*a*s,m=k0*r+w0*a*s;rf.add(qi(k(h*h+d*d),m)),af=t,k0=r,w0=a}function ep(t){return rf=new vt,Nt(t,Xl),+rf}var of=[null,null],i3={type:"LineString",coordinates:of};function S0(t,e){return of[0]=t,of[1]=e,ep(i3)}var np={Feature:function(t,e){return C0(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)if(C0(r[a].geometry,e))return!0;return!1}},rp={Sphere:function(){return!0},Point:function(t,e){return ip(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(ip(r[a],e))return!0;return!1},LineString:function(t,e){return ap(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(ap(r[a],e))return!0;return!1},Polygon:function(t,e){return op(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(op(r[a],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)if(C0(r[a],e))return!0;return!1}};function C0(t,e){return!(!t||!rp.hasOwnProperty(t.type))&&rp[t.type](t,e)}function ip(t,e){return S0(t,e)===0}function ap(t,e){for(var r,a,o,s=0,h=t.length;s<h;s++){if((a=S0(t[s],e))===0||s>0&&(o=S0(t[s],t[s-1]))>
vendor: 5,290 bytes, line 1255
12550&&r<=o&&a<=o&&(r+a-o)*(1-Math.pow((r-a)/o,2))<Wl*o)return!0;r=a}return!1}function op(t,e){return!!K2(t.map(a3),sp(e))}function a3(t){return(t=t.map(sp)).pop(),t}function sp(t){return[t[0]*$n,t[1]*$n]}function o3(t,e){return(t&&np.hasOwnProperty(t.type)?np[t.type]:C0)(t,e)}function cp(t,e,r){var a=Me(t,e-Xn,r).concat(e);return function(o){return a.map(function(s){return[o,s]})}}function lp(t,e,r){var a=Me(t,e-Xn,r).concat(e);return function(o){return a.map(function(s){return[s,o]})}}function up(){var t,e,r,a,o,s,h,d,m,v,C,I,D=10,P=D,Z=90,U=360,$=2.5;function W(){return{type:"MultiLineString",coordinates:it()}}function it(){return Me(ps(a/Z)*Z,r,Z).map(C).concat(Me(ps(d/U)*U,h,U).map(I)).concat(Me(ps(e/D)*D,t,D).filter(function(nt){return Bn(nt%Z)>Xn}).map(m)).concat(Me(ps(s/P)*P,o,P).filter(function(nt){return Bn(nt%U)>Xn}).map(v))}return W.lines=function(){return it().map(function(nt){return{type:"LineString",coordinates:nt}})},W.outline=function(){return{type:"Polygon",coordinates:[C(a).concat(I(h).slice(1),C(r).reverse().slice(1),I(d).reverse().slice(1))]}},W.extent=function(nt){return arguments.length?W.extentMajor(nt).extentMinor(nt):W.extentMinor()},W.extentMajor=function(nt){return arguments.length?(a=+nt[0][0],r=+nt[1][0],d=+nt[0][1],h=+nt[1][1],a>r&&(nt=a,a=r,r=nt),d>h&&(nt=d,d=h,h=nt),W.precision($)):[[a,d],[r,h]]},W.extentMinor=function(nt){return arguments.length?(e=+nt[0][0],t=+nt[1][0],s=+nt[0][1],o=+nt[1][1],e>t&&(nt=e,e=t,t=nt),s>o&&(nt=s,s=o,o=nt),W.precision($)):[[e,s],[t,o]]},W.step=function(nt){return arguments.length?W.stepMajor(nt).stepMinor(nt):W.stepMinor()},W.stepMajor=function(nt){return arguments.length?(Z=+nt[0],U=+nt[1],W):[Z,U]},W.stepMinor=function(nt){return arguments.length?(D=+nt[0],P=+nt[1],W):[D,P]},W.precision=function(nt){return arguments.length?($=+nt,m=cp(s,o,90),v=lp(e,t,$),C=cp(d,h,90),I=lp(a,r,$),W):$},W.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function s3(){return up()()}function c3(t,e){var r=t[0]*$n,a=t[1]*$n,o=e[0]*$n,s=e[1]*$n,h=vn(a),d=g(a),m=vn(s),v=g(s),C=h*vn(r),I=h*g(r),D=m*vn(o),P=m*g(o),Z=2*B(k(q(s-a)+h*m*q(o-r))),U=g(Z),$=Z?function(W){var it=g(W*=Z)/U,nt=g(Z-W)/U,rt=nt*C+it*D,lt=nt*I+it*P,pt=nt*d+it*v;return[qi(lt,rt)*Lr,qi(pt,k(rt*rt+lt*lt))*Lr]}:function(){return[r*Lr,a*Lr]};return $.distance=Z,$}const Sh=t=>t;var hp,dp,sf,cf,lf=new vt,uf=new vt,Hs={point:V,lineStart:V,lineEnd:V,polygonStart:function(){Hs.lineStart=l3,Hs.lineEnd=h3},polygonEnd:function(){Hs.lineStart=Hs.lineEnd=Hs.point=V,lf.add(Bn(uf)),uf=new vt},result:function(){var t=lf/2;return lf=new vt,t}};function l3(){Hs.point=u3}function u3(t,e){Hs.point=fp,hp=sf=t,dp=cf=e}function fp(t,e){uf.add(cf*t-sf*e),sf=t,cf=e}function h3(){fp(hp,dp)}const pp=Hs;var Zl=1/0,A0=Zl,Ch=-Zl,M0=Ch,d3={point:function(t,e){t<Zl&&(Zl=t),t>Ch&&(Ch=t),e<A0&&(A0=e),e>M0&&(M0=e)},lineStart:V,lineEnd:V,polygonStart:V,polygonEnd:V,result:function(){var t=[[Zl,A0],[Ch,M0]];return Ch=M0=-(A0=Zl=1/0),t}};const D0=d3;var gp,yp,Ho,Go,hf=0,df=0,Ah=0,N0=0,O0=0,Ql=0,ff=0,pf=0,Mh=0,Do={point:Uc,lineStart:mp,lineEnd:bp,polygonStart:function(){Do.lineStart=g3,Do.lineEnd=y3},polygonEnd:function(){Do.point=Uc,Do.lineStart=mp,Do.lineEnd=bp},result:function(){var t=Mh?[ff/Mh,pf/Mh]:Ql?[N0/Ql,O0/Ql]:Ah?[hf/Ah,df/Ah]:[NaN,NaN];return hf=df=Ah=N0=O0=Ql=ff=pf=Mh=0,t}};function Uc(t,e){hf+=t,df+=e,++Ah}function mp(){Do.point=f3}function f3(t,e){Do.point=p3,Uc(Ho=t,Go=e)}function p3(t,e){var r=t-Ho,a=e-Go,o=k(r*r+a*a);N0+=o*(Ho+t)/2,O0+=o*(Go+e)/2,Ql+=o,Uc(Ho=t,Go=e)}function bp(){Do.point=Uc}function g3(){Do.point=m3}function y3(){vp(gp,yp)}function m3(t,e){Do.point=vp,Uc(gp=Ho=t,yp=Go=e)}function vp(t,e){var r=t-Ho,a=e-Go,o=k(r*r+a*a);N0+=o*(Ho+t)/2,O0+=o*(Go+e)/2,Ql+=o,ff+=(o=Go*t-Ho*e)*(Ho+t),pf+=o*(Go+e),Mh+=3*o,Uc(Ho=t,Go=e)}const _p=Do;function xp(t){this._context=t}xp.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,ki)}},result:V};var gf,kp,wp,Dh,Nh,yf=new vt,B0={point:V,lineStart:function(){B0.point=b3},lineEnd:function(){gf&&Tp(kp,wp),B0.point=V},polygonStart:function(){gf=!0},polygonEnd:function(){gf=null},result:function(){var t=+yf;return yf=new vt,t}};function b3(t,e){B0.point=Tp,kp=Dh=t,wp=Nh=e}function Tp(t,e){Dh-=t,Nh-=e,yf.add(k(Dh*Dh+Nh*Nh)),Dh=t,Nh=e}const Ep=B0;function Sp(){this._string=[]}function Cp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function v3(t,e){var r,a,o=4.5;function s(h){return h&&(typeof o=="function"&&a.pointRadius(+o.apply(this,arguments)),Nt(h,r(a))),a.result()}return s.area=function(h){return Nt(h,r(pp)),pp.result()},s.measure=function(h){return Nt(h,r(Ep)),Ep.result()},s.bounds=function(h){return Nt(h,r(D0)),D0.result()},s.centroid=function(h){return Nt(h,r(_p)),_p.result()},s.projection=function(h){return arguments.length?(r=h==null?(t=null,Sh):(t=h).stream,s
vendor: 4,911 bytes, line 1255
1255):t},s.context=function(h){return arguments.length?(a=h==null?(e=null,new Sp):new xp(e=h),typeof o!="function"&&a.pointRadius(o),s):e},s.pointRadius=function(h){return arguments.length?(o=typeof h=="function"?h:(a.pointRadius(+h),+h),s):o},s.projection(t).context(e)}function _3(t){return{stream:Oh(t)}}function Oh(t){return function(e){var r=new mf;for(var a in t)r[a]=t[a];return r.stream=e,r}}function mf(){}function bf(t,e,r){var a=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),Nt(r,t.stream(D0)),e(D0.result()),a!=null&&t.clipExtent(a),t}function L0(t,e,r){return bf(t,function(a){var o=e[1][0]-e[0][0],s=e[1][1]-e[0][1],h=Math.min(o/(a[1][0]-a[0][0]),s/(a[1][1]-a[0][1])),d=+e[0][0]+(o-h*(a[1][0]+a[0][0]))/2,m=+e[0][1]+(s-h*(a[1][1]+a[0][1]))/2;t.scale(150*h).translate([d,m])},r)}function vf(t,e,r){return L0(t,[[0,0],e],r)}function _f(t,e,r){return bf(t,function(a){var o=+e,s=o/(a[1][0]-a[0][0]),h=(o-s*(a[1][0]+a[0][0]))/2,d=-s*a[0][1];t.scale(150*s).translate([h,d])},r)}function xf(t,e,r){return bf(t,function(a){var o=+e,s=o/(a[1][1]-a[0][1]),h=-s*a[0][0],d=(o-s*(a[1][1]+a[0][1]))/2;t.scale(150*s).translate([h,d])},r)}Sp.prototype={_radius:4.5,_circle:Cp(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,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(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:this._circle==null&&(this._circle=Cp(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},mf.prototype={constructor:mf,point:function(t,e){this.stream.point(t,e)},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 x3=vn(30*$n);function Ap(t,e){return+e?function(r,a){function o(s,h,d,m,v,C,I,D,P,Z,U,$,W,it){var nt=I-s,rt=D-h,lt=nt*nt+rt*rt;if(lt>4*a&&W--){var pt=m+Z,Jt=v+U,ye=C+$,Ut=k(pt*pt+Jt*Jt+ye*ye),Pt=B(ye/=Ut),jt=Bn(Bn(ye)-1)<Xn||Bn(d-P)<Xn?(d+P)/2:qi(Jt,pt),zt=r(jt,Pt),gt=zt[0],Bt=zt[1],Vt=gt-s,ae=Bt-h,we=rt*Vt-nt*ae;(we*we/lt>a||Bn((nt*Vt+rt*ae)/lt-.5)>.3||m*Z+v*U+C*$<x3)&&(o(s,h,d,m,v,C,gt,Bt,jt,pt/=Ut,Jt/=Ut,ye,W,it),it.point(gt,Bt),o(gt,Bt,jt,pt,Jt,ye,I,D,P,Z,U,$,W,it))}}return function(s){var h,d,m,v,C,I,D,P,Z,U,$,W,it={point:nt,lineStart:rt,lineEnd:pt,polygonStart:function(){s.polygonStart(),it.lineStart=Jt},polygonEnd:function(){s.polygonEnd(),it.lineStart=rt}};function nt(Pt,jt){Pt=r(Pt,jt),s.point(Pt[0],Pt[1])}function rt(){P=NaN,it.point=lt,s.lineStart()}function lt(Pt,jt){var zt=jr([Pt,jt]),gt=r(Pt,jt);o(P,Z,D,U,$,W,P=gt[0],Z=gt[1],D=Pt,U=zt[0],$=zt[1],W=zt[2],16,s),s.point(P,Z)}function pt(){it.point=nt,s.lineEnd()}function Jt(){rt(),it.point=ye,it.lineEnd=Ut}function ye(Pt,jt){lt(h=Pt,jt),d=P,m=Z,v=U,C=$,I=W,it.point=lt}function Ut(){o(P,Z,D,U,$,W,d,m,h,v,C,I,16,s),it.lineEnd=pt,pt()}return it}}(t,e):function(r){return Oh({point:function(a,o){a=r(a,o),this.stream.point(a[0],a[1])}})}(t)}var k3=Oh({point:function(t,e){this.stream.point(t*$n,e*$n)}});function Mp(t,e,r,a,o,s){if(!s)return function(U,$,W,it,nt){function rt(lt,pt){return[$+U*(lt*=it),W-U*(pt*=nt)]}return rt.invert=function(lt,pt){return[(lt-$)/U*it,(W-pt)/U*nt]},rt}(t,e,r,a,o);var h=vn(s),d=g(s),m=h*t,v=d*t,C=h/t,I=d/t,D=(d*r-h*e)/t,P=(d*e+h*r)/t;function Z(U,$){return[m*(U*=a)-v*($*=o)+e,r-v*U-m*$]}return Z.invert=function(U,$){return[a*(C*U-I*$+D),o*(P-I*U-C*$)]},Z}function Xo(t){return kf(function(){return t})()}function kf(t){var e,r,a,o,s,h,d,m,v,C,I=150,D=480,P=250,Z=0,U=0,$=0,W=0,it=0,nt=0,rt=1,lt=1,pt=null,Jt=nf,ye=null,Ut=Sh,Pt=.5;function jt(Vt){return m(Vt[0]*$n,Vt[1]*$n)}function zt(Vt){return(Vt=m.invert(Vt[0],Vt[1]))&&[Vt[0]*Lr,Vt[1]*Lr]}function gt(){var Vt=Mp(I,0,0,rt,lt,nt).apply(null,e(Z,U)),ae=Mp(I,D-Vt[0],P-Vt[1],rt,lt,nt);return r=tf($,W,it),d=Kd(e,ae),m=Kd(r,d),h=Ap(d,Pt),Bt()}function Bt(){return v=C=null,jt}return jt.stream=function(Vt){return v&&C===Vt?v:v=k3(function(ae){return Oh({point:function(we,ze){var He=ae(we,ze);return this.stream.point(He[0],He[1])}})}(r)(Jt(h(Ut(C=Vt)))))},jt.preclip=function(Vt){return arguments.length?(Jt=Vt,pt=void 0,Bt()):Jt},jt.postclip=function(Vt){return arguments.length?(Ut=Vt,ye=a=o=s=null,Bt()):Ut},jt.clipAngle=function(Vt){return arguments.length?(Jt=+Vt?tp(pt=Vt*$n):(pt=null,nf),Bt()):pt*Lr},jt.clipExtent=function(Vt){return arguments.length?(Ut=Vt==null?(ye=a=o=s=null,Sh):E0(ye=+Vt[0][0],a=+Vt[0][1],o=+Vt[1][0],s=+Vt[1][1]),Bt()):ye==null?null:[[ye,a],[o,s]]}
vendor: 4,501 bytes, line 1255
1255,jt.scale=function(Vt){return arguments.length?(I=+Vt,gt()):I},jt.translate=function(Vt){return arguments.length?(D=+Vt[0],P=+Vt[1],gt()):[D,P]},jt.center=function(Vt){return arguments.length?(Z=Vt[0]%360*$n,U=Vt[1]%360*$n,gt()):[Z*Lr,U*Lr]},jt.rotate=function(Vt){return arguments.length?($=Vt[0]%360*$n,W=Vt[1]%360*$n,it=Vt.length>2?Vt[2]%360*$n:0,gt()):[$*Lr,W*Lr,it*Lr]},jt.angle=function(Vt){return arguments.length?(nt=Vt%360*$n,gt()):nt*Lr},jt.reflectX=function(Vt){return arguments.length?(rt=Vt?-1:1,gt()):rt<0},jt.reflectY=function(Vt){return arguments.length?(lt=Vt?-1:1,gt()):lt<0},jt.precision=function(Vt){return arguments.length?(h=Ap(d,Pt=Vt*Vt),Bt()):k(Pt)},jt.fitExtent=function(Vt,ae){return L0(jt,Vt,ae)},jt.fitSize=function(Vt,ae){return vf(jt,Vt,ae)},jt.fitWidth=function(Vt,ae){return _f(jt,Vt,ae)},jt.fitHeight=function(Vt,ae){return xf(jt,Vt,ae)},function(){return e=t.apply(this,arguments),jt.invert=e.invert&&zt,gt()}}function wf(t){var e=0,r=tr/3,a=kf(t),o=a(e,r);return o.parallels=function(s){return arguments.length?a(e=s[0]*$n,r=s[1]*$n):[e*Lr,r*Lr]},o}function Dp(t,e){var r=g(t),a=(r+g(e))/2;if(Bn(a)<Xn)return function(d){var m=vn(d);function v(C,I){return[C*m,g(I)/m]}return v.invert=function(C,I){return[C/m,B(I*m)]},v}(t);var o=1+r*(2*a-r),s=k(o)/a;function h(d,m){var v=k(o-2*a*g(m))/a;return[v*g(d*=a),s-v*vn(d)]}return h.invert=function(d,m){var v=s-m,C=qi(d,Bn(v))*T(v);return v*a<0&&(C-=tr*T(d)*T(v)),[C/a,B((o-(d*d+v*v)*a*a)/(2*a))]},h}function I0(){return wf(Dp).scale(155.424).center([0,33.6442])}function Np(){return I0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function w3(){var t,e,r,a,o,s,h=Np(),d=I0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),m=I0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),v={point:function(D,P){s=[D,P]}};function C(D){var P=D[0],Z=D[1];return s=null,r.point(P,Z),s||(a.point(P,Z),s)||(o.point(P,Z),s)}function I(){return t=e=null,C}return C.invert=function(D){var P=h.scale(),Z=h.translate(),U=(D[0]-Z[0])/P,$=(D[1]-Z[1])/P;return($>=.12&&$<.234&&U>=-.425&&U<-.214?d:$>=.166&&$<.234&&U>=-.214&&U<-.115?m:h).invert(D)},C.stream=function(D){return t&&e===D?t:(P=[h.stream(e=D),d.stream(D),m.stream(D)],Z=P.length,t={point:function(U,$){for(var W=-1;++W<Z;)P[W].point(U,$)},sphere:function(){for(var U=-1;++U<Z;)P[U].sphere()},lineStart:function(){for(var U=-1;++U<Z;)P[U].lineStart()},lineEnd:function(){for(var U=-1;++U<Z;)P[U].lineEnd()},polygonStart:function(){for(var U=-1;++U<Z;)P[U].polygonStart()},polygonEnd:function(){for(var U=-1;++U<Z;)P[U].polygonEnd()}});var P,Z},C.precision=function(D){return arguments.length?(h.precision(D),d.precision(D),m.precision(D),I()):h.precision()},C.scale=function(D){return arguments.length?(h.scale(D),d.scale(.35*D),m.scale(D),C.translate(h.translate())):h.scale()},C.translate=function(D){if(!arguments.length)return h.translate();var P=h.scale(),Z=+D[0],U=+D[1];return r=h.translate(D).clipExtent([[Z-.455*P,U-.238*P],[Z+.455*P,U+.238*P]]).stream(v),a=d.translate([Z-.307*P,U+.201*P]).clipExtent([[Z-.425*P+Xn,U+.12*P+Xn],[Z-.214*P-Xn,U+.234*P-Xn]]).stream(v),o=m.translate([Z-.205*P,U+.212*P]).clipExtent([[Z-.214*P+Xn,U+.166*P+Xn],[Z-.115*P-Xn,U+.234*P-Xn]]).stream(v),I()},C.fitExtent=function(D,P){return L0(C,D,P)},C.fitSize=function(D,P){return vf(C,D,P)},C.fitWidth=function(D,P){return _f(C,D,P)},C.fitHeight=function(D,P){return xf(C,D,P)},C.scale(1070)}function Op(t){return function(e,r){var a=vn(e),o=vn(r),s=t(a*o);return s===1/0?[2,0]:[s*o*g(e),s*g(r)]}}function Bh(t){return function(e,r){var a=k(e*e+r*r),o=t(a),s=g(o),h=vn(o);return[qi(e*s,a*h),B(a&&r*s/a)]}}var Tf=Op(function(t){return k(2/(1+t))});function T3(){return Xo(Tf).scale(124.75).clipAngle(179.999)}Tf.invert=Bh(function(t){return 2*B(t/2)});var Ef=Op(function(t){return(t=N(t))&&t/g(t)});function E3(){return Xo(Ef).scale(79.4188).clipAngle(179.999)}function Lh(t,e){return[t,l(S((Pr+e)/2))]}function S3(){return Bp(Lh).scale(961/ki)}function Bp(t){var e,r,a,o=Xo(t),s=o.center,h=o.scale,d=o.translate,m=o.clipExtent,v=null;function C(){var I=tr*h(),D=o(V2(o.rotate()).invert([0,0]));return m(v==null?[[D[0]-I,D[1]-I],[D[0]+I,D[1]+I]]:t===Lh?[[Math.max(D[0]-I,v),e],[Math.min(D[0]+I,r),a]]:[[v,Math.max(D[1]-I,e)],[r,Math.min(D[1]+I,a)]])}return o.scale=function(I){return arguments.length?(h(I),C()):h()},o.translate=function(I){return arguments.length?(d(I),C()):d()},o.center=function(I){return arguments.length?(s(I),C()):s()}
vendor: 5,102 bytes, line 1255
1255,o.clipExtent=function(I){return arguments.length?(I==null?v=e=r=a=null:(v=+I[0][0],e=+I[0][1],r=+I[1][0],a=+I[1][1]),C()):v==null?null:[[v,e],[r,a]]},C()}function F0(t){return S((Pr+t)/2)}function Lp(t,e){var r=vn(t),a=t===e?g(t):l(r/vn(e))/l(F0(e)/F0(t)),o=r*p(F0(t),a)/a;if(!a)return Lh;function s(h,d){o>0?d<-Pr+Xn&&(d=-Pr+Xn):d>Pr-Xn&&(d=Pr-Xn);var m=o/p(F0(d),a);return[m*g(a*h),o-m*vn(a*h)]}return s.invert=function(h,d){var m=o-d,v=T(a)*k(h*h+m*m),C=qi(h,Bn(m))*T(m);return m*a<0&&(C-=tr*T(h)*T(m)),[C/a,2*fs(p(o/v,1/a))-Pr]},s}function C3(){return wf(Lp).scale(109.5).parallels([30,30])}function Ih(t,e){return[t,e]}function A3(){return Xo(Ih).scale(152.63)}function Ip(t,e){var r=vn(t),a=t===e?g(t):(r-vn(e))/(e-t),o=r/a+t;if(Bn(a)<Xn)return Ih;function s(h,d){var m=o-d,v=a*h;return[m*g(v),o-m*vn(v)]}return s.invert=function(h,d){var m=o-d,v=qi(h,Bn(m))*T(m);return m*a<0&&(v-=tr*T(h)*T(m)),[v/a,o-T(a)*k(h*h+m*m)]},s}function M3(){return wf(Ip).scale(131.154).center([0,13.9389])}Ef.invert=Bh(function(t){return t}),Lh.invert=function(t,e){return[t,2*fs(i(e))-Pr]},Ih.invert=Ih;var Fh=1.340264,Rh=-.081106,Ph=893e-6,jh=.003796,R0=k(3)/2;function Sf(t,e){var r=B(R0*g(e)),a=r*r,o=a*a*a;return[t*vn(r)/(R0*(Fh+3*Rh*a+o*(7*Ph+9*jh*a))),r*(Fh+Rh*a+o*(Ph+jh*a))]}function D3(){return Xo(Sf).scale(177.158)}function Cf(t,e){var r=vn(e),a=vn(t)*r;return[r*g(t)/a,g(e)/a]}function N3(){return Xo(Cf).scale(144.049).clipAngle(60)}function O3(){var t,e,r,a,o,s,h,d=1,m=0,v=0,C=1,I=1,D=0,P=null,Z=1,U=1,$=Oh({point:function(rt,lt){var pt=nt([rt,lt]);this.stream.point(pt[0],pt[1])}}),W=Sh;function it(){return Z=d*C,U=d*I,s=h=null,nt}function nt(rt){var lt=rt[0]*Z,pt=rt[1]*U;if(D){var Jt=pt*t-lt*e;lt=lt*t+pt*e,pt=Jt}return[lt+m,pt+v]}return nt.invert=function(rt){var lt=rt[0]-m,pt=rt[1]-v;if(D){var Jt=pt*t+lt*e;lt=lt*t-pt*e,pt=Jt}return[lt/Z,pt/U]},nt.stream=function(rt){return s&&h===rt?s:s=$(W(h=rt))},nt.postclip=function(rt){return arguments.length?(W=rt,P=r=a=o=null,it()):W},nt.clipExtent=function(rt){return arguments.length?(W=rt==null?(P=r=a=o=null,Sh):E0(P=+rt[0][0],r=+rt[0][1],a=+rt[1][0],o=+rt[1][1]),it()):P==null?null:[[P,r],[a,o]]},nt.scale=function(rt){return arguments.length?(d=+rt,it()):d},nt.translate=function(rt){return arguments.length?(m=+rt[0],v=+rt[1],it()):[m,v]},nt.angle=function(rt){return arguments.length?(e=g(D=rt%360*$n),t=vn(D),it()):D*Lr},nt.reflectX=function(rt){return arguments.length?(C=rt?-1:1,it()):C<0},nt.reflectY=function(rt){return arguments.length?(I=rt?-1:1,it()):I<0},nt.fitExtent=function(rt,lt){return L0(nt,rt,lt)},nt.fitSize=function(rt,lt){return vf(nt,rt,lt)},nt.fitWidth=function(rt,lt){return _f(nt,rt,lt)},nt.fitHeight=function(rt,lt){return xf(nt,rt,lt)},nt}function Af(t,e){var r=e*e,a=r*r;return[t*(.8707-.131979*r+a*(a*(.003971*r-.001529*a)-.013791)),e*(1.007226+r*(.015085+a*(.028874*r-.044475-.005916*a)))]}function B3(){return Xo(Af).scale(175.295)}function Mf(t,e){return[vn(e)*g(t),g(e)]}function L3(){return Xo(Mf).scale(249.5).clipAngle(90.000001)}function Df(t,e){var r=vn(e),a=1+vn(t)*r;return[r*g(t)/a,g(e)/a]}function I3(){return Xo(Df).scale(250).clipAngle(142)}function Nf(t,e){return[l(S((Pr+e)/2)),-t]}function F3(){var t=Bp(Nf),e=t.center,r=t.rotate;return t.center=function(a){return arguments.length?e([-a[1],a[0]]):[(a=e())[1],-a[0]]},t.rotate=function(a){return arguments.length?r([a[0],a[1],a.length>2?a[2]+90:90]):[(a=r())[0],a[1],a[2]-90]},r([0,0,90]).scale(159.155)}function R3(t,e){return t.parent===e.parent?1:2}function P3(t,e){return t+e.x}function j3(t,e){return Math.max(t,e.y)}function z3(){var t=R3,e=1,r=1,a=!1;function o(s){var h,d=0;s.eachAfter(function(D){var P=D.children;P?(D.x=function(Z){return Z.reduce(P3,0)/Z.length}(P),D.y=function(Z){return 1+Z.reduce(j3,0)}(P)):(D.x=h?d+=t(D,h):0,D.y=0,h=D)});var m=function(D){for(var P;P=D.children;)D=P[0];return D}(s),v=function(D){for(var P;P=D.children;)D=P[P.length-1];return D}(s),C=m.x-t(m,v)/2,I=v.x+t(v,m)/2;return s.eachAfter(a?function(D){D.x=(D.x-s.x)*e,D.y=(s.y-D.y)*r}:function(D){D.x=(D.x-C)/(I-C)*e,D.y=(1-(s.y?D.y/s.y:1))*r})}return o.separation=function(s){return arguments.length?(t=s,o):t},o.size=function(s){return arguments.length?(a=!1,e=+s[0],r=+s[1],o):a?null:[e,r]},o.nodeSize=function(s){return arguments.length?(a=!0,e=+s[0],r=+s[1],o):a?[e,r]:null},o}function Y3(t){var e=0,r=t.children,a=r&&r.length;if(a)for(;--a>=0;)e+=r[a].value;else e=1;t.value=e}function Of(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=$3)):e===void 0&&(e=U3);for(var r,a,o,s,h,d=new $c(t),m=[d];r=m.pop();)if((o=e(r.data))&&(h=(o=Array.from(o)).length))for(r.children=o,s=h-1;s>=0;--s)m.push(a=o[s]=new $c(o[s])),a.parent=r,a.depth=r.depth+1;return d.eachBefore(Fp)}function U3(t){return t.children}function $3(t){return Array.isArray(t)?t[1]:null}function W3(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Fp(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function $c(t){this.data=t,this.depth=this.height=0,this.parent=null}function Rp(t){for(var e,r,a=0,o=(t=function(h){for(var d,m,v=h.length;v;
vendor: 4,253 bytes, line 1255
1255)m=Math.random()*v--|0,d=h[v],h[v]=h[m],h[m]=d;return h}(Array.from(t))).length,s=[];a<o;)e=t[a],r&&Pp(r,e)?++a:(r=V3(s=q3(s,e)),a=0);return r}function q3(t,e){var r,a;if(Bf(e,t))return[e];for(r=0;r<t.length;++r)if(P0(e,t[r])&&Bf(zh(t[r],e),t))return[t[r],e];for(r=0;r<t.length-1;++r)for(a=r+1;a<t.length;++a)if(P0(zh(t[r],t[a]),e)&&P0(zh(t[r],e),t[a])&&P0(zh(t[a],e),t[r])&&Bf(jp(t[r],t[a],e),t))return[t[r],t[a],e];throw new Error}function P0(t,e){var r=t.r-e.r,a=e.x-t.x,o=e.y-t.y;return r<0||r*r<a*a+o*o}function Pp(t,e){var r=t.r-e.r+1e-9*Math.max(t.r,e.r,1),a=e.x-t.x,o=e.y-t.y;return r>0&&r*r>a*a+o*o}function Bf(t,e){for(var r=0;r<e.length;++r)if(!Pp(t,e[r]))return!1;return!0}function V3(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return zh(t[0],t[1]);case 3:return jp(t[0],t[1],t[2])}var e}function zh(t,e){var r=t.x,a=t.y,o=t.r,s=e.x,h=e.y,d=e.r,m=s-r,v=h-a,C=d-o,I=Math.sqrt(m*m+v*v);return{x:(r+s+m/I*C)/2,y:(a+h+v/I*C)/2,r:(I+o+d)/2}}function jp(t,e,r){var a=t.x,o=t.y,s=t.r,h=e.x,d=e.y,m=e.r,v=r.x,C=r.y,I=r.r,D=a-h,P=a-v,Z=o-d,U=o-C,$=m-s,W=I-s,it=a*a+o*o-s*s,nt=it-h*h-d*d+m*m,rt=it-v*v-C*C+I*I,lt=P*Z-D*U,pt=(Z*rt-U*nt)/(2*lt)-a,Jt=(U*$-Z*W)/lt,ye=(P*nt-D*rt)/(2*lt)-o,Ut=(D*W-P*$)/lt,Pt=Jt*Jt+Ut*Ut-1,jt=2*(s+pt*Jt+ye*Ut),zt=pt*pt+ye*ye-s*s,gt=-(Pt?(jt+Math.sqrt(jt*jt-4*Pt*zt))/(2*Pt):zt/jt);return{x:a+pt+Jt*gt,y:o+ye+Ut*gt,r:gt}}function zp(t,e,r){var a,o,s,h,d=t.x-e.x,m=t.y-e.y,v=d*d+m*m;v?(o=e.r+r.r,o*=o,h=t.r+r.r,o>(h*=h)?(a=(v+h-o)/(2*v),s=Math.sqrt(Math.max(0,h/v-a*a)),r.x=t.x-a*d-s*m,r.y=t.y-a*m+s*d):(a=(v+o-h)/(2*v),s=Math.sqrt(Math.max(0,o/v-a*a)),r.x=e.x+a*d-s*m,r.y=e.y+a*m+s*d)):(r.x=e.x+r.r,r.y=e.y)}function Yp(t,e){var r=t.r+e.r-1e-6,a=e.x-t.x,o=e.y-t.y;return r>0&&r*r>a*a+o*o}function Up(t){var e=t._,r=t.next._,a=e.r+r.r,o=(e.x*r.r+r.x*e.r)/a,s=(e.y*r.r+r.y*e.r)/a;return o*o+s*s}function j0(t){this._=t,this.next=null,this.previous=null}function $p(t){if(!(s=(e=t,t=typeof e=="object"&&"length"in e?e:Array.from(e)).length))return 0;var e,r,a,o,s,h,d,m,v,C,I,D;if((r=t[0]).x=0,r.y=0,!(s>1))return r.r;if(a=t[1],r.x=-a.r,a.x=r.r,a.y=0,!(s>2))return r.r+a.r;zp(a,r,o=t[2]),r=new j0(r),a=new j0(a),o=new j0(o),r.next=o.previous=a,a.next=r.previous=o,o.next=a.previous=r;t:for(m=3;m<s;++m){zp(r._,a._,o=t[m]),o=new j0(o),v=a.next,C=r.previous,I=a._.r,D=r._.r;do if(I<=D){if(Yp(v._,o._)){a=v,r.next=a,a.previous=r,--m;continue t}I+=v._.r,v=v.next}else{if(Yp(C._,o._)){(r=C).next=a,a.previous=r,--m;continue t}D+=C._.r,C=C.previous}while(v!==C.next);for(o.previous=r,o.next=a,r.next=a.previous=a=o,h=Up(r);(o=o.next)!==a;)(d=Up(o))<h&&(r=o,h=d);a=r.next}for(r=[a._],o=a;(o=o.next)!==a;)r.push(o._);for(o=Rp(r),m=0;m<s;++m)(r=t[m]).x-=o.x,r.y-=o.y;return o.r}function H3(t){return $p(t),t}function z0(t){return t==null?null:Wp(t)}function Wp(t){if(typeof t!="function")throw new Error;return t}function Wc(){return 0}function Kl(t){return function(){return t}}function G3(t){return Math.sqrt(t.value)}function X3(){var t=null,e=1,r=1,a=Wc;function o(s){return s.x=e/2,s.y=r/2,t?s.eachBefore(qp(t)).eachAfter(Lf(a,.5)).eachBefore(Vp(1)):s.eachBefore(qp(G3)).eachAfter(Lf(Wc,1)).eachAfter(Lf(a,s.r/Math.min(e,r))).eachBefore(Vp(Math.min(e,r)/(2*s.r))),s}return o.radius=function(s){return arguments.length?(t=z0(s),o):t},o.size=function(s){return arguments.length?(e=+s[0],r=+s[1],o):[e,r]},o.padding=function(s){return arguments.length?(a=typeof s=="function"?s:Kl(+s),o):a},o}function qp(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Lf(t,e){return function(r){if(a=r.children){var a,o,s,h=a.length,d=t(r)*e||0;if(d)for(o=0;o<h;++o)a[o].r+=d;if(s=$p(a),d)for(o=0;o<h;++o)a[o].r-=d;r.r=s+d}}}function Vp(t){return function(e){var r=e.parent;e.r*=t,r&&(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function Hp(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Yh(t,e,r,a,o){for(var s,h=t.children,d=-1,m=h.length,v=t.value&&(a-e)/t.value;++d<m;)(s=h[d]).y0=r,s.y1=o,s.x0=e,s.x1=e+=s.value*v}function Z3(){var t=1,e=1,r=0,a=!1;function o(s){var h=s.height+1;return s.x0=s.y0=r,s.x1=t,s.y1=e/h,s.eachBefore(function(d,m){return function(v){v.children&&Yh(v,v.x0,d*(v.depth+1)/m,v.x1,d*(v.depth+2)/m);var C=v.x0,I=v.y0,D=v.x1-r,P=v.y1-r;
vendor: 9,939 bytes, line 1255
1255D<C&&(C=D=(C+D)/2),P<I&&(I=P=(I+P)/2),v.x0=C,v.y0=I,v.x1=D,v.y1=P}}(e,h)),a&&s.eachBefore(Hp),s}return o.round=function(s){return arguments.length?(a=!!s,o):a},o.size=function(s){return arguments.length?(t=+s[0],e=+s[1],o):[t,e]},o.padding=function(s){return arguments.length?(r=+s,o):r},o}Sf.invert=function(t,e){for(var r,a=e,o=a*a,s=o*o*o,h=0;h<12&&(s=(o=(a-=r=(a*(Fh+Rh*o+s*(Ph+jh*o))-e)/(Fh+3*Rh*o+s*(7*Ph+9*jh*o)))*a)*o*o,!(Bn(r)<Wl));++h);return[R0*t*(Fh+3*Rh*o+s*(7*Ph+9*jh*o))/vn(a),B(g(a)/R0)]},Cf.invert=Bh(fs),Af.invert=function(t,e){var r,a=e,o=25;do{var s=a*a,h=s*s;a-=r=(a*(1.007226+s*(.015085+h*(.028874*s-.044475-.005916*h)))-e)/(1.007226+s*(.045255+h*(.259866*s-.311325-.005916*11*h)))}while(Bn(r)>Xn&&--o>0);return[t/(.8707+(s=a*a)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),a]},Mf.invert=Bh(B),Df.invert=Bh(function(t){return 2*fs(t)}),Nf.invert=function(t,e){return[-e,2*fs(i(t))-Pr]},$c.prototype=Of.prototype={constructor:$c,count:function(){return this.eachAfter(Y3)},each:function(t,e){let r=-1;for(const a of this)t.call(e,a,++r,this);return this},eachAfter:function(t,e){for(var r,a,o,s=this,h=[s],d=[],m=-1;s=h.pop();)if(d.push(s),r=s.children)for(a=0,o=r.length;a<o;++a)h.push(r[a]);for(;s=d.pop();)t.call(e,s,++m,this);return this},eachBefore:function(t,e){for(var r,a,o=this,s=[o],h=-1;o=s.pop();)if(t.call(e,o,++h,this),r=o.children)for(a=r.length-1;a>=0;--a)s.push(r[a]);return this},find:function(t,e){let r=-1;for(const a of this)if(t.call(e,a,++r,this))return a},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,a=e.children,o=a&&a.length;--o>=0;)r+=a[o].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(s,h){if(s===h)return s;var d=s.ancestors(),m=h.ancestors(),v=null;for(s=d.pop(),h=m.pop();s===h;)v=s,s=d.pop(),h=m.pop();return v}(e,t),a=[e];e!==r;)e=e.parent,a.push(e);for(var o=a.length;t!==r;)a.splice(o,0,t),t=t.parent;return a},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return Of(this).eachBefore(W3)},[Symbol.iterator]:function*(){var t,e,r,a,o=this,s=[o];do for(t=s.reverse(),s=[];o=t.pop();)if(yield o,e=o.children)for(r=0,a=e.length;r<a;++r)s.push(e[r]);while(s.length)}};var Q3={depth:-1},Gp={},If={};function K3(t){return t.id}function J3(t){return t.parentId}function t4(){var t,e=K3,r=J3;function a(o){var s,h,d,m,v,C,I,D,P=Array.from(o),Z=e,U=r,$=new Map;if(t!=null){const W=P.map((rt,lt)=>function(pt){let Jt=(pt=`${pt}`).length;return Ff(pt,Jt-1)&&!Ff(pt,Jt-2)&&(pt=pt.slice(0,-1)),pt[0]==="/"?pt:`/${pt}`}(t(rt,lt,o))),it=W.map(Xp),nt=new Set(W).add("");for(const rt of it)nt.has(rt)||(nt.add(rt),W.push(rt),it.push(Xp(rt)),P.push(If));Z=(rt,lt)=>W[lt],U=(rt,lt)=>it[lt]}for(d=0,s=P.length;d<s;++d)h=P[d],C=P[d]=new $c(h),(I=Z(h,d,o))!=null&&(I+="")&&(D=C.id=I,$.set(D,$.has(D)?Gp:C)),(I=U(h,d,o))!=null&&(I+="")&&(C.parent=I);for(d=0;d<s;++d)if(I=(C=P[d]).parent){if(!(v=$.get(I)))throw new Error("missing: "+I);if(v===Gp)throw new Error("ambiguous: "+I);v.children?v.children.push(C):v.children=[C],C.parent=v}else{if(m)throw new Error("multiple roots");m=C}if(!m)throw new Error("no root");if(t!=null){for(;m.data===If&&m.children.length===1;)m=m.children[0],--s;for(let W=P.length-1;W>=0&&(C=P[W],C.data===If);--W)C.data=null}if(m.parent=Q3,m.eachBefore(function(W){W.depth=W.parent.depth+1,--s}).eachBefore(Fp),m.parent=null,s>0)throw new Error("cycle");return m}return a.id=function(o){return arguments.length?(e=z0(o),a):e},a.parentId=function(o){return arguments.length?(r=z0(o),a):r},a.path=function(o){return arguments.length?(t=z0(o),a):t},a}function Xp(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Ff(t,e););return t.slice(0,e)}function Ff(t,e){if(t[e]==="/"){let r=0;for(;e>0&&t[--e]==="\\";)++r;if(!(1&r))return!0}return!1}function e4(t,e){return t.parent===e.parent?1:2}function Rf(t){var e=t.children;return e?e[0]:t.t}function Pf(t){var e=t.children;return e?e[e.length-1]:t.t}function n4(t,e,r){var a=r/(e.i-t.i);e.c-=a,e.s+=r,t.c+=a,e.z+=r,e.m+=r}function r4(t,e,r){return t.a.parent===e.parent?t.a:r}function Y0(t,e){this._=t,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=e}function i4(){var t=e4,e=1,r=1,a=null;function o(m){var v=function(W){for(var it,nt,rt,lt,pt,Jt=new Y0(W,0),ye=[Jt];it=ye.pop();)if(rt=it._.children)for(it.children=new Array(pt=rt.length),lt=pt-1;lt>=0;--lt)ye.push(nt=it.children[lt]=new Y0(rt[lt],lt)),nt.parent=it;return(Jt.parent=new Y0(null,0)).children=[Jt],Jt}(m);if(v.eachAfter(s),v.parent.m=-v.z,v.eachBefore(h),a)m.eachBefore(d);else{var C=m,I=m,D=m;m.eachBefore(function(W){W.x<C.x&&(C=W),W.x>I.x&&(I=W),W.depth>D.depth&&(D=W)});var P=C===I?1:t(C,I)/2,Z=P-C.x,U=e/(I.x+P+Z),$=r/(D.depth||1);m.eachBefore(function(W){W.x=(W.x+Z)*U,W.y=W.depth*$})}return m}function s(m){var v=m.children,C=m.parent.children,I=m.i?C[m.i-1]:null;if(v){(function(P){for(var Z,U=0,$=0,W=P.children,it=W.length;--it>=0;)(Z=W[it]).z+=U,Z.m+=U,U+=Z.s+($+=Z.c)})(m);var D=(v[0].z+v[v.length-1].z)/2;I?(m.z=I.z+t(m._,I._),m.m=m.z-D):m.z=D}else I&&(m.z=I.z+t(m._,I._));m.parent.A=function(P,Z,U){if(Z){for(var $,W=P,it=P,nt=Z,rt=W.parent.children[0],lt=W.m,pt=it.m,Jt=nt.m,ye=rt.m;nt=Pf(nt),W=Rf(W),nt&&W;)rt=Rf(rt),(it=Pf(it)).a=P,($=nt.z+Jt-W.z-lt+t(nt._,W._))>0&&(n4(r4(nt,P,U),P,$),lt+=$,pt+=$),Jt+=nt.m,lt+=W.m,ye+=rt.m,pt+=it.m;nt&&!Pf(it)&&(it.t=nt,it.m+=Jt-pt),W&&!Rf(rt)&&(rt.t=W,rt.m+=lt-ye,U=P)}return U}(m,I,m.parent.A||C[0])}function h(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function d(m){m.x*=e,m.y=m.depth*r}return o.separation=function(m){return arguments.length?(t=m,o):t},o.size=function(m){return arguments.length?(a=!1,e=+m[0],r=+m[1],o):a?null:[e,r]},o.nodeSize=function(m){return arguments.length?(a=!0,e=+m[0],r=+m[1],o):a?[e,r]:null},o}function U0(t,e,r,a,o){for(var s,h=t.children,d=-1,m=h.length,v=t.value&&(o-r)/t.value;++d<m;)(s=h[d]).x0=e,s.x1=a,s.y0=r,s.y1=r+=s.value*v}Y0.prototype=Object.create($c.prototype);var Zp=(1+Math.sqrt(5))/2;function Qp(t,e,r,a,o,s){for(var h,d,m,v,C,I,D,P,Z,U,$,W=[],it=e.children,nt=0,rt=0,lt=it.length,pt=e.value;nt<lt;){m=o-r,v=s-a;do C=it[rt++].value;while(!C&&rt<lt);for(I=D=C,$=C*C*(U=Math.max(v/m,m/v)/(pt*t)),Z=Math.max(D/$,$/I);rt<lt;++rt){if(C+=d=it[rt].value,d<I&&(I=d),d>D&&(D=d),$=C*C*U,(P=Math.max(D/$,$/I))>Z){C-=d;break}Z=P}W.push(h={value:C,dice:m<v,children:it.slice(nt,rt)}),h.dice?Yh(h,r,a,o,pt?a+=v*C/pt:s):U0(h,r,a,pt?r+=m*C/pt:o,s),pt-=C,nt=rt}return W}const Kp=function t(e){function r(a,o,s,h,d){Qp(e,a,o,s,h,d)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(Zp);function a4(){var t=Kp,e=!1,r=1,a=1,o=[0],s=Wc,h=Wc,d=Wc,m=Wc,v=Wc;function C(D){return D.x0=D.y0=0,D.x1=r,D.y1=a,D.eachBefore(I),o=[0],e&&D.eachBefore(Hp),D}function I(D){var P=o[D.depth],Z=D.x0+P,U=D.y0+P,$=D.x1-P,W=D.y1-P;$<Z&&(Z=$=(Z+$)/2),W<U&&(U=W=(U+W)/2),D.x0=Z,D.y0=U,D.x1=$,D.y1=W,D.children&&(P=o[D.depth+1]=s(D)/2,Z+=v(D)-P,U+=h(D)-P,($-=d(D)-P)<Z&&(Z=$=(Z+$)/2),(W-=m(D)-P)<U&&(U=W=(U+W)/2),t(D,Z,U,$,W))}return C.round=function(D){return arguments.length?(e=!!D,C):e},C.size=function(D){return arguments.length?(r=+D[0],a=+D[1],C):[r,a]},C.tile=function(D){return arguments.length?(t=Wp(D),C):t},C.padding=function(D){return arguments.length?C.paddingInner(D).paddingOuter(D):C.paddingInner()},C.paddingInner=function(D){return arguments.length?(s=typeof D=="function"?D:Kl(+D),C):s},C.paddingOuter=function(D){return arguments.length?C.paddingTop(D).paddingRight(D).paddingBottom(D).paddingLeft(D):C.paddingTop()},C.paddingTop=function(D){return arguments.length?(h=typeof D=="function"?D:Kl(+D),C):h},C.paddingRight=function(D){return arguments.length?(d=typeof D=="function"?D:Kl(+D),C):d},C.paddingBottom=function(D){return arguments.length?(m=typeof D=="function"?D:Kl(+D),C):m},C.paddingLeft=function(D){return arguments.length?(v=typeof D=="function"?D:Kl(+D),C):v},C}function o4(t,e,r,a,o){var s,h,d=t.children,m=d.length,v=new Array(m+1);for(v[0]=h=s=0;s<m;++s)v[s+1]=h+=d[s].value;(function C(I,D,P,Z,U,$,W){if(I>=D-1){var it=d[I];return it.x0=Z,it.y0=U,it.x1=$,void(it.y1=W)}for(var nt=v[I],rt=P/2+nt,lt=I+1,pt=D-1;lt<pt;){var Jt=lt+pt>>>1;v[Jt]<rt?lt=Jt+1:pt=Jt}rt-v[lt-1]<v[lt]-rt&&I+1<lt&&--lt;var ye=v[lt]-nt,Ut=P-ye;if($-Z>W-U){var Pt=P?(Z*Ut+$*ye)/P:$;C(I,lt,ye,Z,U,Pt,W),C(lt,D,Ut,Pt,U,$,W)}else{var jt=P?(U*Ut+W*ye)/P:W;C(I,lt,ye,Z,U,$,jt),C(lt,D,Ut,Z,jt,$,W)}})(0,m,t.value,e,r,a,o)}function s4(t,e,r,a,o){(1&t.depth?U0:Yh)(t,e,r,a,o)}const c4=function t(e){function r(a,o,s,h,d){if((m=a._squarify)&&m.ratio===e)for(var m,v,C,I,D,P=-1,Z=m.length,U=a.value;++P<Z;){for(C=(v=m[P]).children,I=v.value=0,D=C.length;I<D;++I)v.value+=C[I].value;v.dice?Yh(v,o,s,h,U?s+=(d-s)*v.value/U:d):U0(v,o,s,U?o+=(h-o)*v.value/U:h,d),U-=v.value}else a._squarify=m=Qp(e,a,o,s,h,d),m.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(Zp);function l4(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}function u4(t,e){var r=nl(+t,+e);return function(a){var o=r(a);return o-360*Math.floor(o/360)}}function $0(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Jp(t){return((t=Math.exp(t))+1/t)/2}const tg=function t(e,r,a){function o(s,h){var d,m,v=s[0],C=s[1],I=s[2],D=h[0],P=h[1],Z=h[2],U=D-v,$=P-C,W=U*U+$*$;if(W<1e-12)m=Math.log(Z/I)/e,d=function(Jt){return[v+Jt*U,C+Jt*$,I*Math.exp(e*Jt*m)]};else{var it=Math.sqrt(W),nt=(Z*Z-I*I+a*W)/(2*I*r*it),rt=(Z*Z-I*I-a*W)/(2*Z*r*it),lt=Math.log(Math.sqrt(nt*nt+1)-nt),pt=Math.log(Math.sqrt(rt*rt+1)-rt);m=(pt-lt)/e,d=function(Jt){var ye,Ut=Jt*m,Pt=Jp(lt),jt=I/(r*it)*(Pt*(ye
1255=e*Ut+lt,((ye=Math.exp(2*ye))-1)/(ye+1))-function(zt){return((zt=Math.exp(zt))-1/zt)/2}(lt));return[v+jt*U,C+jt*$,I*Pt/Jp(e*Ut+lt)]}}return d.duration=1e3*m*e/Math.SQRT2,d}return o.rho=function(s){var h=Math.max(.001,+s),d=h*h;return t(h,d,d*d)},o}(Math.SQRT2,2,4);function eg(t){return function(e,r){var a=t((e=gc(e)).h,(r=gc(r)).h),o=Ai(e.s,r.s),s=Ai(e.l,r.l),h=Ai(e.opacity,r.opacity);return function(d){return e.h=a(d),e.s=o(d),e.l=s(d),e.opacity=h(d),e+""}}}const h4=eg(nl);var d4=eg(Ai);function f4(t,e){var r=Ai((t=kl(t)).l,(e=kl(e)).l),a=Ai(t.a,e.a),o=Ai(t.b,e.b),s=Ai(t.opacity,e.opacity);return function(h){return t.l=r(h),t.a=a(h),t.b=o(h),t.opacity=s(h),t+""}}function ng(t){return function(e,r){var a=t((e=Ua(e)).h,(r=Ua(r)).h),o=Ai(e.c,r.c),s=Ai(e.l,r.l),h=Ai(e.opacity,r.opacity);return function(d){return e.h=a(d),e.c=o(d),e.l=s(d),e.opacity=h(d),e+""}}}const p4=ng(nl);var g4=ng(Ai);function rg(t){return function e(r){function a(o,s){var h=t((o=$a(o)).h,(s=$a(s)).h),d=Ai(o.s,s.s),m=Ai(o.l,s.l),v=Ai(o.opacity,s.opacity);return function(C){return o.h=h(C),o.s=d(C),o.l=m(Math.pow(C,r)),o.opacity=v(C),o+""}}return r=+r,a.gamma=e,a}(1)}const y4=rg(nl);var W0=rg(Ai);function ig(t,e){e===void 0&&(e=t,t=Kn);for(var r=0,a=e.length-1,o=e[0],s=new Array(a<0?0:a);r<a;)s[r]=t(o,o=e[++r]);return function(h){var d=Math.max(0,Math.min(a-1,Math.floor(h*=a)));return s[d](h-d)}}function m4(t,e){for(var r=new Array(e),a=0;a<e;++a)r[a]=t(a/(e-1));return r}function b4(t){for(var e,r=-1,a=t.length,o=t[a-1],s=0;++r<a;)e=o,o=t[r],s+=e[1]*o[0]-e[0]*o[1];return s/2}function v4(t){for(var e,r,a=-1,o=t.length,s=0,h=0,d=t[o-1],m=0;++a<o;)e=d,d=t[a],m+=r=e[0]*d[1]-d[0]*e[1],s+=(e[0]+d[0])*r,h+=(e[1]+d[1])*r;return[s/(m*=3),h/m]}function _4(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function x4(t,e){return t[0]-e[0]||t[1]-e[1]}function ag(t){const e=t.length,r=[0,1];let a,o=2;for(a=2;a<e;++a){for(;o>1&&_4(t[r[o-2]],t[r[o-1]],t[a])<=0;)--o;r[o++]=a}return r.slice(0,o)}function k4(t){if((r=t.length)<3)return null;var e,r,a=new Array(r),o=new Array(r);for(e=0;e<r;++e)a[e]=[+t[e][0],+t[e][1],e];for(a.sort(x4),e=0;e<r;++e)o[e]=[a[e][0],-a[e][1]];var s=ag(a),h=ag(o),d=h[0]===s[0],m=h[h.length-1]===s[s.length-1],v=[];for(e=s.length-1;e>=0;--e)v.push(t[a[s[e]][2]]);for(e=+d;e<h.length-m;++e)v.push(t[a[h[e]][2]]);return v}function w4(t,e){for(var r,a,o=t.length,s=t[o-1],h=e[0],d=e[1],m=s[0],v=s[1],C=!1,I=0;I<o;++I)r=(s=t[I])[0],(a=s[1])>d!=v>d&&h<(m-r)*(d-a)/(v-a)+r&&(C=!C),m=r,v=a;return C}function T4(t){for(var e,r,a=-1,o=t.length,s=t[o-1],h=s[0],d=s[1],m=0;++a<o;)e=h,r=d,e-=h=(s=t[a])[0],r-=d=s[1],m+=Math.hypot(e,r);return m}const ta=Math.random,E4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,arguments.length===1?(o=a,a=0):o-=a,function(){return e()*o+a}}return r.source=t,r}(ta),S4=function t(e){function r(a,o){return arguments.length<2&&(o=a,a=0),a=Math.floor(a),o=Math.floor(o)-a,function(){return Math.floor(e()*o+a)}}return r.source=t,r}(ta),jf=function t(e){function r(a,o){var s,h;return a=a==null?0:+a,o=o==null?1:+o,function(){var d;if(s!=null)d=s,s=null;else do s=2*e()-1,d=2*e()-1,h=s*s+d*d;while(!h||h>1);return a+o*d*Math.sqrt(-2*Math.log(h)/h)}}return r.source=t,r}(ta),C4=function t(e){var r=jf.source(e);function a(){var o=r.apply(this,arguments);return function(){return Math.exp(o())}}return a.source=t,a}(ta),og=function t(e){function r(a){return(a=+a)<=0?()=>0:function(){for(var o=0,s=a;s>1;--s)o+=e();return o+s*e()}}return r.source=t,r}(ta),A4=function t(e){var r=og.source(e);function a(o){if((o=+o)==0)return e;var s=r(o);return function(){return s()/o}}return a.source=t,a}(ta),M4=function t(e){function r(a){return function(){return-Math.log1p(-e())/a}}return r.source=t,r}(ta),D4=function t(e){function r(a){if((a=+a)<0)throw new RangeError("invalid alpha");return a=1/-a,function(){return Math.pow(1-e(),a)}}return r.source=t,r}(ta),N4=function t(e){function r(a){if((a=+a)<0||a>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+a)}}return r.source=t,r}(ta),sg=function t(e){function r(a){if((a=+a)<0||a>1)throw new RangeError("invalid p");return a===0?()=>1/0:a===1?()=>1:(a=Math.log1p(-a),function(){return 1+Math.floor(Math.log1p(-e())/a)})}return r.source=t,r}(ta),zf=function t(e){var r=jf.source(e)();function a(o,s){if((o=+o)<0)throw new RangeError("invalid k");if(o===0)return()=>0;if(s=s==null?1:+s,o===1)return()=>-Math.log1p(-e())*s;var h=(o<1?o+1:o)-1/3,d=1/(3*Math.sqrt(h)),m=o<1?()=>Math.pow(e(),1/o):()=>1;return function(){do{do var v=r(),C=1+d*v;while(C<=0);C*=C*C;var I=1-e()}while(I>=1-.0331*v*v*v*v&&Math.log(I)>=.5*v*v+h*(1-C+Math.log(C)));return h*C*m()*s}}return a.source=t,a}(ta),cg=function t(e){var r=zf.source(e);function a(o,s){var h=r(o),d=r(s);return function(){var m=h();return m===0?0:m/(m+d())}}return a.source=t,a}(ta),lg=function t(e){var r=sg.source(e),a=cg.source(e);function o(s,h){return s=+s,(h=+h)>=1?()=>s:h<=0?()=>0:function(){for(var d=0,m=s,v=h;m*v>16&&m*(1-v)>16;
1255){var C=Math.floor((m+1)*v),I=a(C,m-C+1)();I<=v?(d+=C,m-=C,v=(v-I)/(1-I)):(m=C-1,v/=I)}for(var D=v<.5,P=r(D?v:1-v),Z=P(),U=0;Z<=m;++U)Z+=P();return d+(D?U:m-U)}}return o.source=t,o}(ta),O4=function t(e){function r(a,o,s){var h;return(a=+a)==0?h=d=>-Math.log(d):(a=1/a,h=d=>Math.pow(d,a)),o=o==null?0:+o,s=s==null?1:+s,function(){return o+s*h(-Math.log1p(-e()))}}return r.source=t,r}(ta),B4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,function(){return a+o*Math.tan(Math.PI*e())}}return r.source=t,r}(ta),L4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,function(){var s=e();return a+o*Math.log(s/(1-s))}}return r.source=t,r}(ta),I4=function t(e){var r=zf.source(e),a=lg.source(e);function o(s){return function(){for(var h=0,d=s;d>16;){var m=Math.floor(.875*d),v=r(m)();if(v>d)return h+a(m-1,d/v)();h+=m,d-=v}for(var C=-Math.log1p(-e()),I=0;C<=d;++I)C-=Math.log1p(-e());return h+I}}return o.source=t,o}(ta),ug=1/4294967296;function F4(t=Math.random()){let e=0|(0<=t&&t<1?t/ug:Math.abs(t));return()=>(e=1664525*e+1013904223|0,ug*(e>>>0))}function lo(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ms(t,e){switch(arguments.length){case 0:break;case 1:typeof t=="function"?this.interpolator(t):this.range(t);break;default:this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e)}return this}const Yf=Symbol("implicit");function Uf(){var t=new kt,e=[],r=[],a=Yf;function o(s){let h=t.get(s);if(h===void 0){if(a!==Yf)return a;t.set(s,h=e.push(s)-1)}return r[h%r.length]}return o.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new kt;for(const h of s)t.has(h)||t.set(h,e.push(h)-1);return o},o.range=function(s){return arguments.length?(r=Array.from(s),o):r.slice()},o.unknown=function(s){return arguments.length?(a=s,o):a},o.copy=function(){return Uf(e,r).unknown(a)},lo.apply(o,arguments),o}function $f(){var t,e,r=Uf().unknown(void 0),a=r.domain,o=r.range,s=0,h=1,d=!1,m=0,v=0,C=.5;function I(){var D=a().length,P=h<s,Z=P?h:s,U=P?s:h;t=(U-Z)/Math.max(1,D-m+2*v),d&&(t=Math.floor(t)),Z+=(U-Z-t*(D-m))*C,e=t*(1-m),d&&(Z=Math.round(Z),e=Math.round(e));var $=Me(D).map(function(W){return Z+t*W});return o(P?$.reverse():$)}return delete r.unknown,r.domain=function(D){return arguments.length?(a(D),I()):a()},r.range=function(D){return arguments.length?([s,h]=D,s=+s,h=+h,I()):[s,h]},r.rangeRound=function(D){return[s,h]=D,s=+s,h=+h,d=!0,I()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(D){return arguments.length?(d=!!D,I()):d},r.padding=function(D){return arguments.length?(m=Math.min(1,v=+D),I()):m},r.paddingInner=function(D){return arguments.length?(m=Math.min(1,D),I()):m},r.paddingOuter=function(D){return arguments.length?(v=+D,I()):v},r.align=function(D){return arguments.length?(C=Math.max(0,Math.min(1,D)),I()):C},r.copy=function(){return $f(a(),[s,h]).round(d).paddingInner(m).paddingOuter(v).align(C)},lo.apply(I(),arguments)}function hg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return hg(e())},t}function R4(){return hg($f.apply(null,arguments).paddingInner(1))}function q0(t){return+t}var dg=[0,1];function xa(t){return t}function Wf(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function P4(t,e,r){var a=t[0],o=t[1],s=e[0],h=e[1];return o<a?(a=Wf(o,a),s=r(h,s)):(a=Wf(a,o),s=r(s,h)),function(d){return s(a(d))}}function j4(t,e,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),s=new Array(a),h=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++h<a;)o[h]=Wf(t[h],t[h+1]),s[h]=r(e[h],e[h+1]);return function(d){var m=F(t,d,1,a)-1;return s[m](o[m](d))}}function Uh(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function V0(){var t,e,r,a,o,s,h=dg,d=dg,m=Kn,v=xa;function C(){var D,P,Z,U=Math.min(h.length,d.length);return v!==xa&&(D=h[0],P=h[U-1],D>P&&(Z=D,D=P,P=Z),v=function($){return Math.max(D,Math.min(P,$))}),a=U>2?j4:P4,o=s=null,I}function I(D){return D==null||isNaN(D=+D)?r:(o||(o=a(h.map(t),d,m)))(t(v(D)))}return I.invert=function(D){return v(e((s||(s=a(d,h.map(t),oa)))(D)))},I.domain=function(D){return arguments.length?(h=Array.from(D,q0),C()):h.slice()}
1255,I.range=function(D){return arguments.length?(d=Array.from(D),C()):d.slice()},I.rangeRound=function(D){return d=Array.from(D),m=$0,C()},I.clamp=function(D){return arguments.length?(v=!!D||xa,C()):v!==xa},I.interpolate=function(D){return arguments.length?(m=D,C()):m},I.unknown=function(D){return arguments.length?(r=D,I):r},function(D,P){return t=D,e=P,C()}}function qf(){return V0()(xa,xa)}function fg(t,e,r,a){var o,s=Mt(t,e,r);switch((a=co(a??",f")).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return a.precision!=null||isNaN(o=$l(s,h))||(a.precision=o),_h(a,h);case"":case"e":case"g":case"p":case"r":a.precision!=null||isNaN(o=xh(s,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=o-(a.type==="e"));break;case"f":case"%":a.precision!=null||isNaN(o=Ul(s))||(a.precision=o-2*(a.type==="%"))}return zl(a)}function Gs(t){var e=t.domain;return t.ticks=function(r){var a=e();return ft(a[0],a[a.length-1],r??10)},t.tickFormat=function(r,a){var o=e();return fg(o[0],o[o.length-1],r??10,a)},t.nice=function(r){r==null&&(r=10);var a,o,s=e(),h=0,d=s.length-1,m=s[h],v=s[d],C=10;for(v<m&&(o=m,m=v,v=o,o=h,h=d,d=o);C-- >0;){if((o=dt(m,v,r))===a)return s[h]=m,s[d]=v,e(s);if(o>0)m=Math.floor(m/o)*o,v=Math.ceil(v/o)*o;else{if(!(o<0))break;m=Math.ceil(m*o)/o,v=Math.floor(v*o)/o}a=o}return t},t}function pg(){var t=qf();return t.copy=function(){return Uh(t,pg())},lo.apply(t,arguments),Gs(t)}function gg(t){var e;function r(a){return a==null||isNaN(a=+a)?e:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(t=Array.from(a,q0),r):t.slice()},r.unknown=function(a){return arguments.length?(e=a,r):e},r.copy=function(){return gg(t).unknown(e)},t=arguments.length?Array.from(t,q0):[0,1],Gs(r)}function yg(t,e){var r,a=0,o=(t=t.slice()).length-1,s=t[a],h=t[o];return h<s&&(r=a,a=o,o=r,r=s,s=h,h=r),t[a]=e.floor(s),t[o]=e.ceil(h),t}function mg(t){return Math.log(t)}function bg(t){return Math.exp(t)}function z4(t){return-Math.log(-t)}function Y4(t){return-Math.exp(-t)}function U4(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vg(t){return(e,r)=>-t(-e,r)}function Vf(t){const e=t(mg,bg),r=e.domain;let a,o,s=10;function h(){return a=function(d){return d===Math.E?Math.log:d===10&&Math.log10||d===2&&Math.log2||(d=Math.log(d),m=>Math.log(m)/d)}(s),o=function(d){return d===10?U4:d===Math.E?Math.exp:m=>Math.pow(d,m)}(s),r()[0]<0?(a=vg(a),o=vg(o),t(z4,Y4)):t(mg,bg),e}return e.base=function(d){return arguments.length?(s=+d,h()):s},e.domain=function(d){return arguments.length?(r(d),h()):r()},e.ticks=d=>{const m=r();let v=m[0],C=m[m.length-1];const I=C<v;I&&([v,C]=[C,v]);let D,P,Z=a(v),U=a(C);const $=d==null?10:+d;let W=[];if(!(s%1)&&U-Z<$){if(Z=Math.floor(Z),U=Math.ceil(U),v>0){for(;Z<=U;++Z)for(D=1;D<s;++D)if(P=Z<0?D/o(-Z):D*o(Z),!(P<v)){if(P>C)break;W.push(P)}}else for(;Z<=U;++Z)for(D=s-1;D>=1;--D)if(P=Z>0?D/o(-Z):D*o(Z),!(P<v)){if(P>C)break;W.push(P)}2*W.length<$&&(W=ft(v,C,$))}else W=ft(Z,U,Math.min(U-Z,$)).map(o);return I?W.reverse():W},e.tickFormat=(d,m)=>{if(d==null&&(d=10),m==null&&(m=s===10?"s":","),typeof m!="function"&&(s%1||(m=co(m)).precision!=null||(m.trim=!0),m=zl(m)),d===1/0)return m;const v=Math.max(1,s*d/e.ticks().length);return C=>{let I=C/o(Math.round(a(C)));return I*s<s-.5&&(I*=s),I<=v?m(C):""}},e.nice=()=>r(yg(r(),{floor:d=>o(Math.floor(a(d))),ceil:d=>o(Math.ceil(a(d)))})),e}function _g(){const t=Vf(V0()).domain([1,10]);return t.copy=()=>Uh(t,_g()).base(t.base()),lo.apply(t,arguments),t}function xg(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function kg(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Hf(t){var e=1,r=t(xg(e),kg(e));return r.constant=function(a){return arguments.length?t(xg(e=+a),kg(e)):e},Gs(r)}function wg(){var t=Hf(V0());return t.copy=function(){return Uh(t,wg()).constant(t.constant())},lo.apply(t,arguments)}function Tg(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function $4(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function W4(t){return t<0?-t*t:t*t}
1255function Gf(t){var e=t(xa,xa),r=1;function a(){return r===1?t(xa,xa):r===.5?t($4,W4):t(Tg(r),Tg(1/r))}return e.exponent=function(o){return arguments.length?(r=+o,a()):r},Gs(e)}function Xf(){var t=Gf(V0());return t.copy=function(){return Uh(t,Xf()).exponent(t.exponent())},lo.apply(t,arguments),t}function q4(){return Xf.apply(null,arguments).exponent(.5)}function Eg(t){return Math.sign(t)*t*t}function V4(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Sg(){var t,e=qf(),r=[0,1],a=!1;function o(s){var h=V4(e(s));return isNaN(h)?t:a?Math.round(h):h}return o.invert=function(s){return e.invert(Eg(s))},o.domain=function(s){return arguments.length?(e.domain(s),o):e.domain()},o.range=function(s){return arguments.length?(e.range((r=Array.from(s,q0)).map(Eg)),o):r.slice()},o.rangeRound=function(s){return o.range(s).round(!0)},o.round=function(s){return arguments.length?(a=!!s,o):a},o.clamp=function(s){return arguments.length?(e.clamp(s),o):e.clamp()},o.unknown=function(s){return arguments.length?(t=s,o):t},o.copy=function(){return Sg(e.domain(),r).round(a).clamp(e.clamp()).unknown(t)},lo.apply(o,arguments),Gs(o)}function Cg(){var t,e=[],r=[],a=[];function o(){var h=0,d=Math.max(1,r.length);for(a=new Array(d-1);++h<d;)a[h-1]=Be(e,h/d);return s}function s(h){return h==null||isNaN(h=+h)?t:r[F(a,h)]}return s.invertExtent=function(h){var d=r.indexOf(h);return d<0?[NaN,NaN]:[d>0?a[d-1]:e[0],d<a.length?a[d]:e[e.length-1]]},s.domain=function(h){if(!arguments.length)return e.slice();e=[];for(let d of h)d==null||isNaN(d=+d)||e.push(d);return e.sort(b),o()},s.range=function(h){return arguments.length?(r=Array.from(h),o()):r.slice()},s.unknown=function(h){return arguments.length?(t=h,s):t},s.quantiles=function(){return a.slice()},s.copy=function(){return Cg().domain(e).range(r).unknown(t)},lo.apply(s,arguments)}function Ag(){var t,e=0,r=1,a=1,o=[.5],s=[0,1];function h(m){return m!=null&&m<=m?s[F(o,m,0,a)]:t}function d(){var m=-1;for(o=new Array(a);++m<a;)o[m]=((m+1)*r-(m-a)*e)/(a+1);return h}return h.domain=function(m){return arguments.length?([e,r]=m,e=+e,r=+r,d()):[e,r]},h.range=function(m){return arguments.length?(a=(s=Array.from(m)).length-1,d()):s.slice()},h.invertExtent=function(m){var v=s.indexOf(m);return v<0?[NaN,NaN]:v<1?[e,o[0]]:v>=a?[o[a-1],r]:[o[v-1],o[v]]},h.unknown=function(m){return arguments.length&&(t=m),h},h.thresholds=function(){return o.slice()},h.copy=function(){return Ag().domain([e,r]).range(s).unknown(t)},lo.apply(Gs(h),arguments)}function Mg(){var t,e=[.5],r=[0,1],a=1;function o(s){return s!=null&&s<=s?r[F(e,s,0,a)]:t}return o.domain=function(s){return arguments.length?(e=Array.from(s),a=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(s){return arguments.length?(r=Array.from(s),a=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(s){var h=r.indexOf(s);return[e[h-1],e[h]]},o.unknown=function(s){return arguments.length?(t=s,o):t},o.copy=function(){return Mg().domain(e).range(r).unknown(t)},lo.apply(o,arguments)}const $h=1e3,Xs=6e4,Wh=36e5,Zf=864e5,Qf=6048e5,Kf=31536e6;var Jf=new Date,t2=new Date;function Ri(t,e,r,a){function o(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=function(s){return t(s=new Date(+s)),s},o.ceil=function(s){return t(s=new Date(s-1)),e(s,1),t(s),s},o.round=function(s){var h=o(s),d=o.ceil(s);return s-h<d-s?h:d},o.offset=function(s,h){return e(s=new Date(+s),h==null?1:Math.floor(h)),s},o.range=function(s,h,d){var m,v=[];if(s=o.ceil(s),d=d==null?1:Math.floor(d),!(s<h&&d>0))return v;do v.push(m=new Date(+s)),e(s,d),t(s);while(m<s&&s<h);return v},o.filter=function(s){return Ri(function(h){if(h>=h)for(;t(h),!s(h);)h.setTime(h-1)},function(h,d){if(h>=h)if(d<0)for(;++d<=0;)for(;e(h,-1),!s(h););else for(;--d>=0;)for(;e(h,1),!s(h););})},r&&(o.count=function(s,h){return Jf.setTime(+s),t2.setTime(+h),t(Jf),t(t2),Math.floor(r(Jf,t2))},o.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?o.filter(a?function(h){return a(h)%s==0}:function(h){return o.count(0,h)%s==0}):o:null}),o}var H0=Ri(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});H0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ri(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):H0:null};const e2=H0;var Dg=H0.range,Ng=Ri(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*$h)},function(t,e){return(e-t)/$h},function(t){return t.getUTCSeconds()});const Zs=Ng;var Og=Ng.range,Bg=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*$h)},function(t,e){t.setTime(+t+e*Xs)},function(t,e){return(e-t)/Xs},function(t){return t.getMinutes()});const n2=Bg;var H4=Bg.range,Lg=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*$h-t.getMinutes()*Xs)},function(t,e){t.setTime(+t+e*Wh)},function(t,e){return(e-t)/Wh},function(t){return t.getHours()});const r2=Lg;var G4=Lg.range,Ig=Ri(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xs)/Zf,t=>t.getDate()-1);const qh=Ig;var X4=Ig.range;function qc(t){return Ri(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())*Xs)/Qf})}var Jl=qc(0),Vh=qc(1),Fg=qc(2),Rg=qc(3),Vc=qc(4),Pg=qc(5),jg=qc(6),zg=Jl.range,Z4=Vh.range,Q4=Fg.range,K4=Rg.range,J4=Vc.range,t5=Pg.range,e5=jg.range,Yg=Ri(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 i2=Yg;var n5=Yg.range,a2=Ri(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()});a2.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ri(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 Qs=a2;var r5=a2.range,Ug=Ri(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Xs)},function(t,e){return(e-t)/Xs},function(t){return t.getUTCMinutes()});const o2=Ug;var i5=Ug.range,$g=Ri(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Wh)},function(t,e){return(e-t)/Wh},function(t){return t.getUTCHours()});const s2=$g;var a5=$g.range,Wg=Ri(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Zf},function(t){return t.getUTCDate()-1}
1255);const Hh=Wg;var o5=Wg.range;function Hc(t){return Ri(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)/Qf})}var tu=Hc(0),Gh=Hc(1),qg=Hc(2),Vg=Hc(3),Gc=Hc(4),Hg=Hc(5),Gg=Hc(6),Xg=tu.range,s5=Gh.range,c5=qg.range,l5=Vg.range,u5=Gc.range,h5=Hg.range,d5=Gg.range,Zg=Ri(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()});const c2=Zg;var f5=Zg.range,l2=Ri(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()});l2.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ri(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 Ks=l2;var p5=l2.range;function Qg(t,e,r,a,o,s){const h=[[Zs,1,$h],[Zs,5,5e3],[Zs,15,15e3],[Zs,30,3e4],[s,1,Xs],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Wh],[o,3,108e5],[o,6,216e5],[o,12,432e5],[a,1,Zf],[a,2,1728e5],[r,1,Qf],[e,1,2592e6],[e,3,7776e6],[t,1,Kf]];function d(m,v,C){const I=Math.abs(v-m)/C,D=u(([,,U])=>U).right(h,I);if(D===h.length)return t.every(Mt(m/Kf,v/Kf,C));if(D===0)return e2.every(Math.max(Mt(m,v,C),1));const[P,Z]=h[I/h[D-1][2]<h[D][2]/I?D-1:D];return P.every(Z)}return[function(m,v,C){const I=v<m;I&&([m,v]=[v,m]);const D=C&&typeof C.range=="function"?C:d(m,v,C),P=D?D.range(m,+v+1):[];return I?P.reverse():P},d]}const[Kg,Jg]=Qg(Ks,c2,tu,Hh,s2,o2),[ty,ey]=Qg(Qs,i2,Jl,qh,r2,n2);function u2(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 h2(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 Xh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function ny(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,s=t.days,h=t.shortDays,d=t.months,m=t.shortMonths,v=Zh(o),C=Qh(o),I=Zh(s),D=Qh(s),P=Zh(h),Z=Qh(h),U=Zh(d),$=Qh(d),W=Zh(m),it=Qh(m),nt={a:function(Ut){return h[Ut.getDay()]},A:function(Ut){return s[Ut.getDay()]},b:function(Ut){return m[Ut.getMonth()]},B:function(Ut){return d[Ut.getMonth()]},c:null,d:ly,e:ly,f:R5,g:H5,G:X5,H:L5,I:I5,j:F5,L:uy,m:P5,M:j5,p:function(Ut){return o[+(Ut.getHours()>=12)]},q:function(Ut){return 1+~~(Ut.getMonth()/3)},Q:yy,s:my,S:z5,u:Y5,U:U5,V:$5,w:W5,W:q5,x:null,X:null,y:V5,Y:G5,Z:Z5,"%":gy},rt={a:function(Ut){return h[Ut.getUTCDay()]},A:function(Ut){return s[Ut.getUTCDay()]},b:function(Ut){return m[Ut.getUTCMonth()]},B:function(Ut){return d[Ut.getUTCMonth()]},c:null,d:dy,e:dy,f:tb,g:ub,G:db,H:Q5,I:K5,j:J5,L:fy,m:eb,M:nb,p:function(Ut){return o[+(Ut.getUTCHours()>=12)]},q:function(Ut){return 1+~~(Ut.getUTCMonth()/3)},Q:yy,s:my,S:rb,u:ib,U:ab,V:ob,w:sb,W:cb,x:null,X:null,y:lb,Y:hb,Z:fb,"%":gy},lt={a:function(Ut,Pt,jt){var zt=P.exec(Pt.slice(jt));return zt?(Ut.w=Z.get(zt[0].toLowerCase()),jt+zt[0].length):-1},A:function(Ut,Pt,jt){var zt=I.exec(Pt.slice(jt));return zt?(Ut.w=D.get(zt[0].toLowerCase()),jt+zt[0].length):-1},b:function(Ut,Pt,jt){var zt=W.exec(Pt.slice(jt));return zt?(Ut.m=it.get(zt[0].toLowerCase()),jt+zt[0].length):-1},B:function(Ut,Pt,jt){var zt=U.exec(Pt.slice(jt));return zt?(Ut.m=$.get(zt[0].toLowerCase()),jt+zt[0].length):-1},c:function(Ut,Pt,jt){return ye(Ut,e,Pt,jt)},d:sy,e:sy,f:D5,g:oy,G:ay,H:cy,I:cy,j:S5,L:M5,m:E5,M:C5,p:function(Ut,Pt,jt){var zt=v.exec(Pt.slice(jt));return zt?(Ut.p=C.get(zt[0].toLowerCase()),jt+zt[0].length):-1},q:T5,Q:O5,s:B5,S:A5,u:v5,U:_5,V:x5,w:b5,W:k5,x:function(Ut,Pt,jt){return ye(Ut,r,Pt,jt)},X:function(Ut,Pt,jt){return ye(Ut,a,Pt,jt)},y:oy,Y:ay,Z:w5,"%":N5};function pt(Ut,Pt){return function(jt){var zt,gt,Bt,Vt=[],ae=-1,we=0,ze=Ut.length;for(jt instanceof Date||(jt=new Date(+jt));++ae<ze;)Ut.charCodeAt(ae)===37&&(Vt.push(Ut.slice(we,ae)),(gt=iy[zt=Ut.charAt(++ae)])!=null?zt
vendor: 10,740 bytes, line 1255
1255=Ut.charAt(++ae):gt=zt==="e"?" ":"0",(Bt=Pt[zt])&&(zt=Bt(jt,gt)),Vt.push(zt),we=ae+1);return Vt.push(Ut.slice(we,ae)),Vt.join("")}}function Jt(Ut,Pt){return function(jt){var zt,gt,Bt=Xh(1900,void 0,1);if(ye(Bt,Ut,jt+="",0)!=jt.length)return null;if("Q"in Bt)return new Date(Bt.Q);if("s"in Bt)return new Date(1e3*Bt.s+("L"in Bt?Bt.L:0));if(Pt&&!("Z"in Bt)&&(Bt.Z=0),"p"in Bt&&(Bt.H=Bt.H%12+12*Bt.p),Bt.m===void 0&&(Bt.m="q"in Bt?Bt.q:0),"V"in Bt){if(Bt.V<1||Bt.V>53)return null;"w"in Bt||(Bt.w=1),"Z"in Bt?(gt=(zt=h2(Xh(Bt.y,0,1))).getUTCDay(),zt=gt>4||gt===0?Gh.ceil(zt):Gh(zt),zt=Hh.offset(zt,7*(Bt.V-1)),Bt.y=zt.getUTCFullYear(),Bt.m=zt.getUTCMonth(),Bt.d=zt.getUTCDate()+(Bt.w+6)%7):(gt=(zt=u2(Xh(Bt.y,0,1))).getDay(),zt=gt>4||gt===0?Vh.ceil(zt):Vh(zt),zt=qh.offset(zt,7*(Bt.V-1)),Bt.y=zt.getFullYear(),Bt.m=zt.getMonth(),Bt.d=zt.getDate()+(Bt.w+6)%7)}else("W"in Bt||"U"in Bt)&&("w"in Bt||(Bt.w="u"in Bt?Bt.u%7:"W"in Bt?1:0),gt="Z"in Bt?h2(Xh(Bt.y,0,1)).getUTCDay():u2(Xh(Bt.y,0,1)).getDay(),Bt.m=0,Bt.d="W"in Bt?(Bt.w+6)%7+7*Bt.W-(gt+5)%7:Bt.w+7*Bt.U-(gt+6)%7);return"Z"in Bt?(Bt.H+=Bt.Z/100|0,Bt.M+=Bt.Z%100,h2(Bt)):u2(Bt)}}function ye(Ut,Pt,jt,zt){for(var gt,Bt,Vt=0,ae=Pt.length,we=jt.length;Vt<ae;){if(zt>=we)return-1;if((gt=Pt.charCodeAt(Vt++))===37){if(gt=Pt.charAt(Vt++),!(Bt=lt[gt in iy?Pt.charAt(Vt++):gt])||(zt=Bt(Ut,jt,zt))<0)return-1}else if(gt!=jt.charCodeAt(zt++))return-1}return zt}return nt.x=pt(r,nt),nt.X=pt(a,nt),nt.c=pt(e,nt),rt.x=pt(r,rt),rt.X=pt(a,rt),rt.c=pt(e,rt),{format:function(Ut){var Pt=pt(Ut+="",nt);return Pt.toString=function(){return Ut},Pt},parse:function(Ut){var Pt=Jt(Ut+="",!1);return Pt.toString=function(){return Ut},Pt},utcFormat:function(Ut){var Pt=pt(Ut+="",rt);return Pt.toString=function(){return Ut},Pt},utcParse:function(Ut){var Pt=Jt(Ut+="",!0);return Pt.toString=function(){return Ut},Pt}}}var eu,d2,ry,G0,f2,iy={"-":"",_:" ",0:"0"},Hi=/^\s*\d+/,g5=/^%/,y5=/[\\^$*+?|[\]().{}]/g;function Sr(t,e,r){var a=t<0?"-":"",o=(a?-t:t)+"",s=o.length;return a+(s<r?new Array(r-s+1).join(e)+o:o)}function m5(t){return t.replace(y5,"\\$&")}function Zh(t){return new RegExp("^(?:"+t.map(m5).join("|")+")","i")}function Qh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function b5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function v5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function _5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function x5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function k5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function ay(t,e,r){var a=Hi.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function oy(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function w5(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 T5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function E5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function sy(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function S5(t,e,r){var a=Hi.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function cy(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function C5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function A5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function M5(t,e,r){var a=Hi.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function D5(t,e,r){var a=Hi.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function N5(t,e,r){var a=g5.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function O5(t,e,r){var a=Hi.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function B5(t,e,r){var a=Hi.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function ly(t,e){return Sr(t.getDate(),e,2)}function L5(t,e){return Sr(t.getHours(),e,2)}function I5(t,e){return Sr(t.getHours()%12||12,e,2)}function F5(t,e){return Sr(1+qh.count(Qs(t),t),e,3)}function uy(t,e){return Sr(t.getMilliseconds(),e,3)}function R5(t,e){return uy(t,e)+"000"}function P5(t,e){return Sr(t.getMonth()+1,e,2)}function j5(t,e){return Sr(t.getMinutes(),e,2)}function z5(t,e){return Sr(t.getSeconds(),e,2)}function Y5(t){var e=t.getDay();return e===0?7:e}function U5(t,e){return Sr(Jl.count(Qs(t)-1,t),e,2)}function hy(t){var e=t.getDay();return e>=4||e===0?Vc(t):Vc.ceil(t)}function $5(t,e){return t=hy(t),Sr(Vc.count(Qs(t),t)+(Qs(t).getDay()===4),e,2)}function W5(t){return t.getDay()}function q5(t,e){return Sr(Vh.count(Qs(t)-1,t),e,2)}function V5(t,e){return Sr(t.getFullYear()%100,e,2)}function H5(t,e){return Sr((t=hy(t)).getFullYear()%100,e,2)}function G5(t,e){return Sr(t.getFullYear()%1e4,e,4)}function X5(t,e){var r=t.getDay();return Sr((t=r>=4||r===0?Vc(t):Vc.ceil(t)).getFullYear()%1e4,e,4)}function Z5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Sr(e/60|0,"0",2)+Sr(e%60,"0",2)}function dy(t,e){return Sr(t.getUTCDate(),e,2)}function Q5(t,e){return Sr(t.getUTCHours(),e,2)}function K5(t,e){return Sr(t.getUTCHours()%12||12,e,2)}function J5(t,e){return Sr(1+Hh.count(Ks(t),t),e,3)}function fy(t,e){return Sr(t.getUTCMilliseconds(),e,3)}function tb(t,e){return fy(t,e)+"000"}function eb(t,e){return Sr(t.getUTCMonth()+1,e,2)}function nb(t,e){return Sr(t.getUTCMinutes(),e,2)}function rb(t,e){return Sr(t.getUTCSeconds(),e,2)}function ib(t){var e=t.getUTCDay();return e===0?7:e}function ab(t,e){return Sr(tu.count(Ks(t)-1,t),e,2)}function py(t){var e=t.getUTCDay();return e>=4||e===0?Gc(t):Gc.ceil(t)}function ob(t,e){return t=py(t),Sr(Gc.count(Ks(t),t)+(Ks(t).getUTCDay()===4),e,2)}function sb(t){return t.getUTCDay()}function cb(t,e){return Sr(Gh.count(Ks(t)-1,t),e,2)}function lb(t,e){return Sr(t.getUTCFullYear()%100,e,2)}function ub(t,e){return Sr((t=py(t)).getUTCFullYear()%100,e,2)}function hb(t,e){return Sr(t.getUTCFullYear()%1e4,e,4)}function db(t,e){var r=t.getUTCDay();return Sr((t=r>=4||r===0?Gc(t):Gc.ceil(t)).getUTCFullYear()%1e4,e,4)}function fb(){return"+0000"}function gy(){return"%"}function yy(t){return+t}function my(t){return Math.floor(+t/1e3)}function by(t){return eu=ny(t),d2=eu.format,ry=eu.parse,G0=eu.utcFormat,f2=eu.utcParse,eu}function pb(t){return new Date(t)}function gb(t){return t instanceof Date?+t:+new Date(+t)}function p2(t,e,r,a,o,s,h,d,m,v){var C=qf(),I=C.invert,D=C.domain,P=v(".%L"),Z=v(":%S"),U=v("%I:%M"),$=v("%I %p"),W=v("%a %d"),it=v("%b %d"),nt=v("%B"),rt=v("%Y");function lt(pt){return(m(pt)<pt?P:d(pt)<pt?Z:h(pt)<pt?U:s(pt)<pt?$:a(pt)<pt?o(pt)<pt?W:it:r(pt)<pt?nt:rt)(pt)}return C.invert=function(pt){return new Date(I(pt))},C.domain=function(pt){return arguments.length?D(Array.from(pt,gb)):D().map(pb)},C.ticks=function(pt){var Jt=D();return t(Jt[0],Jt[Jt.length-1],pt??10)},C.tickFormat=function(pt,Jt){return Jt==null?lt:v(Jt)},C.nice=function(pt){var Jt=D();return pt&&typeof pt.range=="function"||(pt=e(Jt[0],Jt[Jt.length-1],pt??10)),pt?D(yg(Jt,pt)):C},C.copy=function(){return Uh(C,p2(t,e,r,a,o,s,h,d,m,v))},C}function yb(){return lo.apply(p2(ty,ey,Qs,i2,Jl,qh,r2,n2,Zs,d2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mb(){return lo.apply(p2(Kg,Jg,Ks,c2,tu,Hh,s2,o2,Zs,G0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function X0(){var t,e,r,a,o,s=0,h=1,d=xa,m=!1;function v(I){return I==null||isNaN(I=+I)?o:d(r===0?.5:(I=(a(I)-t)*r,m?Math.max(0,Math.min(1,I)):I))}function C(I){return function(D){var P,Z;return arguments.length?([P,Z]=D,d=I(P,Z),v):[d(0),d(1)]}}return v.domain=function(I){return arguments.length?([s,h]=I,t=a(s=+s),e=a(h=+h),r=t===e?0:1/(e-t),v):[s,h]},v.clamp=function(I){return arguments.length?(m=!!I,v):m},v.interpolator=function(I){return arguments.length?(d=I,v):d},v.range=C(Kn),v.rangeRound=C($0),v.unknown=function(I){return arguments.length?(o=I,v):o},function(I){return a=I,t=I(s),e=I(h),r=t===e?0:1/(e-t),v}}function Js(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function vy(){var t=Gs(X0()(xa));return t.copy=function(){return Js(t,vy())},ms.apply(t,arguments)}function _y(){var t=Vf(X0()).domain([1,10]);return t.copy=function(){return Js(t,_y()).base(t.base())},ms.apply(t,arguments)}function xy(){var t=Hf(X0());return t.copy=function(){return Js(t,xy()).constant(t.constant())},ms.apply(t,arguments)}function g2(){var t=Gf(X0());return t.copy=function(){return Js(t,g2()).exponent(t.exponent())},ms.apply(t,arguments)}function bb(){return g2.apply(null,arguments).exponent(.5)}function ky(){var t=[],e=xa;function r(a){if(a!=null&&!isNaN(a=+a))return e((F(t,a,1)-1)/(t.length-1))}return r.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let o of a)o==null||isNaN(o=+o)||t.push(o);return t.sort(b),r},r.interpolator=function(a){return arguments.length?(e=a,r):e},r.range=function(){return t.map((a,o)=>e(o/(t.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,s)=>Oe(t,s/a))},r.copy=function(){return ky(e).domain(t)},ms.apply(r,arguments)}function Z0(){var t,e,r,a,o,s,h,d=0,m=.5,v=1,C=1,I=xa,D=!1;function P(U){return isNaN(U=+U)?h:(U=.5+((U=+s(U))-e)*(C*U<C*e?a:o),I(D?Math.max(0,Math.min(1,U)):U))}function Z(U){return function($){var W,it,nt;return arguments.length?([W,it,nt]=$,I=ig(U,[W,it,nt]),P):[I(0),I(.5),I(1)]}}return P.domain=function(U){return arguments.length?([d,m,v]=U,t=s(d=+d),e=s(m=+m),r=s(v=+v),a=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),C=e<t?-1:1,P):[d,m,v]},P.clamp=function(U){return arguments.length?(D=!!U,P):D},P.interpolator=function(U){return arguments.length?(I=U,P):I},P.range=Z(Kn),P.rangeRound=Z($0),P.unknown=function(U){return arguments.length?(h=U,P):h},function(U){return s=U,t=U(d),e=U(m),r=U(v),a=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),C=e<t?-1:1,P}}function wy(){var t=Gs(Z0()(xa));return t.copy=function(){return Js(t,wy())},ms.apply(t,arguments)}function Ty(){var t=Vf(Z0()).domain([.1,1,10]);return t.copy=function(){return Js(t,Ty()).base(t.base())},ms.apply(t,arguments)}function Ey(){var t=Hf(Z0());return t.copy=function(){return Js(t,Ey()).constant(t.constant())},ms.apply(t,arguments)}function y2(){var t=Gf(Z0());return t.copy=function(){return Js(t,y2()).exponent(t.exponent())},ms.apply(t,arguments)}function vb(){return y2.apply(null,arguments).exponent(.5)}function rr(t){for(var e=t.length/6|0,r=new Array(e),a=0;a<e;)r[a]="#"+t.slice(6*a,6*++a);return r}by({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1255ay","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"]});const _b=rr("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),xb=rr("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),kb=rr("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),wb=rr("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Tb=rr("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Eb=rr("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Sb=rr("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Cb=rr("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ab=rr("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Mb=rr("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Wr=t=>rl(t[t.length-1]);var Sy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(rr);const Db=Wr(Sy);var Cy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(rr);const Nb=Wr(Cy);var Ay=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(rr);const Ob=Wr(Ay);var My=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(rr);const Bb=Wr(My);var Dy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(rr);const Lb=Wr(Dy);var Ny=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(rr);const Ib=Wr(Ny);var Oy=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(rr);const Fb=Wr(Oy);var By=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
12557191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(rr);const Rb=Wr(By);var Ly=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(rr);const Pb=Wr(Ly);var Iy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(rr);const jb=Wr(Iy);var Fy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(rr);const zb=Wr(Fy);var Ry=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(rr);const Yb=Wr(Ry);var Py=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(rr);const Ub=Wr(Py);var jy=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(rr);const $b=Wr(jy);var zy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(rr);const Wb=Wr(zy);var Yy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(rr);const qb=Wr(Yy);var Uy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(rr);const Vb=Wr(Uy);var $y=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(rr);const Hb=Wr($y);var Wy=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(rr);const Gb=Wr(Wy);var qy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(rr);const Xb=Wr(qy);var Vy=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(rr);const Zb=Wr(Vy);var Hy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
1255ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(rr);const Qb=Wr(Hy);var Gy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(rr);const Kb=Wr(Gy);var Xy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(rr);const Jb=Wr(Xy);var Zy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(rr);const tv=Wr(Zy);var Qy=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(rr);const ev=Wr(Qy);var Ky=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(rr);const nv=Wr(Ky);function rv(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const iv=W0($a(300,.5,0),$a(-240,.5,1));var av=W0($a(-100,.75,.35),$a(80,1.5,.8)),ov=W0($a(260,.75,.35),$a(80,1.5,.8)),Q0=$a();function sv(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Q0.h=360*t-100,Q0.s=1.5-1.5*e,Q0.l=.8-.9*e,Q0+""}var K0=ri(),cv=Math.PI/3,lv=2*Math.PI/3;function uv(t){var e;return t=(.5-t)*Math.PI,K0.r=255*(e=Math.sin(t))*e,K0.g=255*(e=Math.sin(t+cv))*e,K0.b=255*(e=Math.sin(t+lv))*e,K0+""}function hv(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function J0(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}const dv=J0(rr("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
12555c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var fv=J0(rr("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),pv=J0(rr("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gv=J0(rr("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
vendor: 3,730 bytes, line 1255
1255function yv(t){return kr(Lo(t).call(document.documentElement))}var mv=0;function Jy(){return new m2}function m2(){this._="@"+(++mv).toString(36)}function bv(t,e){return t.target&&(t=Ca(t),e===void 0&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,r=>sa(r,e))}function vv(t){return typeof t=="string"?new di([document.querySelectorAll(t)],[document.documentElement]):new di([Kt(t)],Io)}function er(t){return function(){return t}}m2.prototype=Jy.prototype={constructor:m2,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var tm=Math.abs,ua=Math.atan2,Xc=Math.cos,_v=Math.max,b2=Math.min,Zo=Math.sin,nu=Math.sqrt,ha=1e-12,tc=Math.PI,td=tc/2,ec=2*tc;function xv(t){return t>1?0:t<-1?tc:Math.acos(t)}function em(t){return t>=1?td:t<=-1?-td:Math.asin(t)}function kv(t){return t.innerRadius}function wv(t){return t.outerRadius}function Tv(t){return t.startAngle}function Ev(t){return t.endAngle}function Sv(t){return t&&t.padAngle}function Cv(t,e,r,a,o,s,h,d){var m=r-t,v=a-e,C=h-o,I=d-s,D=I*m-C*v;if(!(D*D<ha))return[t+(D=(C*(e-s)-I*(t-o))/D)*m,e+D*v]}function ed(t,e,r,a,o,s,h){var d=t-r,m=e-a,v=(h?s:-s)/nu(d*d+m*m),C=v*m,I=-v*d,D=t+C,P=e+I,Z=r+C,U=a+I,$=(D+Z)/2,W=(P+U)/2,it=Z-D,nt=U-P,rt=it*it+nt*nt,lt=o-s,pt=D*U-Z*P,Jt=(nt<0?-1:1)*nu(_v(0,lt*lt*rt-pt*pt)),ye=(pt*nt-it*Jt)/rt,Ut=(-pt*it-nt*Jt)/rt,Pt=(pt*nt+it*Jt)/rt,jt=(-pt*it+nt*Jt)/rt,zt=ye-$,gt=Ut-W,Bt=Pt-$,Vt=jt-W;return zt*zt+gt*gt>Bt*Bt+Vt*Vt&&(ye=Pt,Ut=jt),{cx:ye,cy:Ut,x01:-C,y01:-I,x11:ye*(o/lt-1),y11:Ut*(o/lt-1)}}function Av(){var t=kv,e=wv,r=er(0),a=null,o=Tv,s=Ev,h=Sv,d=null;function m(){var v,C,I=+t.apply(this,arguments),D=+e.apply(this,arguments),P=o.apply(this,arguments)-td,Z=s.apply(this,arguments)-td,U=tm(Z-P),$=Z>P;if(d||(d=v=Wo()),D<I&&(C=D,D=I,I=C),D>ha)if(U>ec-ha)d.moveTo(D*Xc(P),D*Zo(P)),d.arc(0,0,D,P,Z,!$),I>ha&&(d.moveTo(I*Xc(Z),I*Zo(Z)),d.arc(0,0,I,Z,P,$));else{var W,it,nt=P,rt=Z,lt=P,pt=Z,Jt=U,ye=U,Ut=h.apply(this,arguments)/2,Pt=Ut>ha&&(a?+a.apply(this,arguments):nu(I*I+D*D)),jt=b2(tm(D-I)/2,+r.apply(this,arguments)),zt=jt,gt=jt;if(Pt>ha){var Bt=em(Pt/I*Zo(Ut)),Vt=em(Pt/D*Zo(Ut));(Jt-=2*Bt)>ha?(lt+=Bt*=$?1:-1,pt-=Bt):(Jt=0,lt=pt=(P+Z)/2),(ye-=2*Vt)>ha?(nt+=Vt*=$?1:-1,rt-=Vt):(ye=0,nt=rt=(P+Z)/2)}var ae=D*Xc(nt),we=D*Zo(nt),ze=I*Xc(pt),He=I*Zo(pt);if(jt>ha){var fn,Ge=D*Xc(rt),Yn=D*Zo(rt),Wn=I*Xc(lt),Cn=I*Zo(lt);if(U<tc&&(fn=Cv(ae,we,Wn,Cn,Ge,Yn,ze,He))){var Ln=ae-fn[0],wr=we-fn[1],ir=Ge-fn[0],Ba=Yn-fn[1],rc=1/Zo(xv((Ln*ir+wr*Ba)/(nu(Ln*Ln+wr*wr)*nu(ir*ir+Ba*Ba)))/2),No=nu(fn[0]*fn[0]+fn[1]*fn[1]);zt=b2(jt,(I-No)/(rc-1)),gt=b2(jt,(D-No)/(rc+1))}}ye>ha?gt>ha?(W=ed(Wn,Cn,ae,we,D,gt,$),it=ed(Ge,Yn,ze,He,D,gt,$),d.moveTo(W.cx+W.x01,W.cy+W.y01),gt<jt?d.arc(W.cx,W.cy,gt,ua(W.y01,W.x01),ua(it.y01,it.x01),!$):(d.arc(W.cx,W.cy,gt,ua(W.y01,W.x01),ua(W.y11,W.x11),!$),d.arc(0,0,D,ua(W.cy+W.y11,W.cx+W.x11),ua(it.cy+it.y11,it.cx+it.x11),!$),d.arc(it.cx,it.cy,gt,ua(it.y11,it.x11),ua(it.y01,it.x01),!$))):(d.moveTo(ae,we),d.arc(0,0,D,nt,rt,!$)):d.moveTo(ae,we),I>ha&&Jt>ha?zt>ha?(W=ed(ze,He,Ge,Yn,I,-zt,$),it=ed(ae,we,Wn,Cn,I,-zt,$),d.lineTo(W.cx+W.x01,W.cy+W.y01),zt<jt?d.arc(W.cx,W.cy,zt,ua(W.y01,W.x01),ua(it.y01,it.x01),!$):(d.arc(W.cx,W.cy,zt,ua(W.y01,W.x01),ua(W.y11,W.x11),!$),d.arc(0,0,I,ua(W.cy+W.y11,W.cx+W.x11),ua(it.cy+it.y11,it.cx+it.x11),$),d.arc(it.cx,it.cy,zt,ua(it.y11,it.x11),ua(it.y01,it.x01),!$))):d.arc(0,0,I,pt,lt,$):d.lineTo(ze,He)}else d.moveTo(0,0);if(d.closePath(),v)return d=null,v+""||null}return m.centroid=function(){var v=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,C=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-tc/2;
1255return[Xc(C)*v,Zo(C)*v]},m.innerRadius=function(v){return arguments.length?(t=typeof v=="function"?v:er(+v),m):t},m.outerRadius=function(v){return arguments.length?(e=typeof v=="function"?v:er(+v),m):e},m.cornerRadius=function(v){return arguments.length?(r=typeof v=="function"?v:er(+v),m):r},m.padRadius=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:er(+v),m):a},m.startAngle=function(v){return arguments.length?(o=typeof v=="function"?v:er(+v),m):o},m.endAngle=function(v){return arguments.length?(s=typeof v=="function"?v:er(+v),m):s},m.padAngle=function(v){return arguments.length?(h=typeof v=="function"?v:er(+v),m):h},m.context=function(v){return arguments.length?(d=v??null,m):d},m}var Mv=Array.prototype.slice;function nd(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function nm(t){this._context=t}function rd(t){return new nm(t)}function v2(t){return t[0]}function _2(t){return t[1]}function x2(t,e){var r=er(!0),a=null,o=rd,s=null;function h(d){var m,v,C,I=(d=nd(d)).length,D=!1;for(a==null&&(s=o(C=Wo())),m=0;m<=I;++m)!(m<I&&r(v=d[m],m,d))===D&&((D=!D)?s.lineStart():s.lineEnd()),D&&s.point(+t(v,m,d),+e(v,m,d));if(C)return s=null,C+""||null}return t=typeof t=="function"?t:t===void 0?v2:er(t),e=typeof e=="function"?e:e===void 0?_2:er(e),h.x=function(d){return arguments.length?(t=typeof d=="function"?d:er(+d),h):t},h.y=function(d){return arguments.length?(e=typeof d=="function"?d:er(+d),h):e},h.defined=function(d){return arguments.length?(r=typeof d=="function"?d:er(!!d),h):r},h.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),h):o},h.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),h):a},h}function rm(t,e,r){var a=null,o=er(!0),s=null,h=rd,d=null;function m(C){var I,D,P,Z,U,$=(C=nd(C)).length,W=!1,it=new Array($),nt=new Array($);for(s==null&&(d=h(U=Wo())),I=0;I<=$;++I){if(!(I<$&&o(Z=C[I],I,C))===W)if(W=!W)D=I,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),P=I-1;P>=D;--P)d.point(it[P],nt[P]);d.lineEnd(),d.areaEnd()}W&&(it[I]=+t(Z,I,C),nt[I]=+e(Z,I,C),d.point(a?+a(Z,I,C):it[I],r?+r(Z,I,C):nt[I]))}if(U)return d=null,U+""||null}function v(){return x2().defined(o).curve(h).context(s)}return t=typeof t=="function"?t:t===void 0?v2:er(+t),e=typeof e=="function"?e:er(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?_2:er(+r),m.x=function(C){return arguments.length?(t=typeof C=="function"?C:er(+C),a=null,m):t},m.x0=function(C){return arguments.length?(t=typeof C=="function"?C:er(+C),m):t},m.x1=function(C){return arguments.length?(a=C==null?null:typeof C=="function"?C:er(+C),m):a},m.y=function(C){return arguments.length?(e=typeof C=="function"?C:er(+C),r=null,m):e},m.y0=function(C){return arguments.length?(e=typeof C=="function"?C:er(+C),m):e},m.y1=function(C){return arguments.length?(r=C==null?null:typeof C=="function"?C:er(+C),m):r},m.lineX0=m.lineY0=function(){return v().x(t).y(e)},m.lineY1=function(){return v().x(t).y(r)},m.lineX1=function(){return v().x(a).y(e)},m.defined=function(C){return arguments.length?(o=typeof C=="function"?C:er(!!C),m):o},m.curve=function(C){return arguments.length?(h=C,s!=null&&(d=h(s)),m):h},m.context=function(C){return arguments.length?(C==null?s=d=null:d=h(s=C),m):s},m}function Dv(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Nv(t){return t}function Ov(){var t=Nv,e=Dv,r=null,a=er(0),o=er(ec),s=er(0);function h(d){var m,v,C,I,D,P=(d=nd(d)).length,Z=0,U=new Array(P),$=new Array(P),W=+a.apply(this,arguments),it=Math.min(ec,Math.max(-ec,o.apply(this,arguments)-W)),nt=Math.min(Math.abs(it)/P,s.apply(this,arguments)),rt=nt*(it<0?-1:1);for(m=0;m<P;++m)(D=$[U[m]=m]=+t(d[m],m,d))>0&&(Z+=D);for(e!=null?U.sort(function(lt,pt){return e($[lt],$[pt])}):r!=null&&U.sort(function(lt,pt){return r(d[lt],d[pt])}),m=0,C=Z?(it-P*rt)/Z:0;m<P;++m,W=I)v=U[m],I=W+((D=$[v])>0?D*C:0)+rt,$[v]={data:d[v],index:m,value:D,startAngle:W,endAngle:I,padAngle:nt};return $}return h.value=function(d){return arguments.length?(t=typeof d=="function"?d:er(+d),h):t},h.sortValues=function(d){return arguments.length?(e=d,r=null,h):e},h.sort=function(d){return arguments.length?(r=d,e=null,h):r},h.startAngle=function(d){return arguments.length?(a=typeof d=="function"?d:er(+d),h):a},h.endAngle=function(d){return arguments.length?(o=typeof d=="function"?d:er(+d),h):o},h.padAngle=function(d){return arguments.length?(s=typeof d=="function"?d:er(+d),h):s},h}nm.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)}}};var im=k2(rd);function am(t){this._curve=t}function k2(t){function e(r){return new am(t(r))}return e._curve=t,e}function Kh(t){var e=t.curve;
vendor: 14,937 bytes, line 1255
1255return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(r){return arguments.length?e(k2(r)):e()._curve},t}function om(){return Kh(x2().curve(im))}function sm(){var t=rm().curve(im),e=t.curve,r=t.lineX0,a=t.lineX1,o=t.lineY0,s=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Kh(r())},delete t.lineX0,t.lineEndAngle=function(){return Kh(a())},delete t.lineX1,t.lineInnerRadius=function(){return Kh(o())},delete t.lineY0,t.lineOuterRadius=function(){return Kh(s())},delete t.lineY1,t.curve=function(h){return arguments.length?e(k2(h)):e()._curve},t}function Jh(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function Bv(t){return t.source}function Lv(t){return t.target}function w2(t){var e=Bv,r=Lv,a=v2,o=_2,s=null;function h(){var d,m=Mv.call(arguments),v=e.apply(this,m),C=r.apply(this,m);if(s||(s=d=Wo()),t(s,+a.apply(this,(m[0]=v,m)),+o.apply(this,m),+a.apply(this,(m[0]=C,m)),+o.apply(this,m)),d)return s=null,d+""||null}return h.source=function(d){return arguments.length?(e=d,h):e},h.target=function(d){return arguments.length?(r=d,h):r},h.x=function(d){return arguments.length?(a=typeof d=="function"?d:er(+d),h):a},h.y=function(d){return arguments.length?(o=typeof d=="function"?d:er(+d),h):o},h.context=function(d){return arguments.length?(s=d??null,h):s},h}function Iv(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e=(e+a)/2,r,e,o,a,o)}function Fv(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+o)/2,a,r,a,o)}function Rv(t,e,r,a,o){var s=Jh(e,r),h=Jh(e,r=(r+o)/2),d=Jh(a,r),m=Jh(a,o);t.moveTo(s[0],s[1]),t.bezierCurveTo(h[0],h[1],d[0],d[1],m[0],m[1])}function Pv(){return w2(Iv)}function jv(){return w2(Fv)}function zv(){var t=w2(Rv);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}am.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};const T2={draw:function(t,e){var r=Math.sqrt(e/tc);t.moveTo(r,0),t.arc(0,0,r,0,ec)}},cm={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};var lm=Math.sqrt(1/3),Yv=2*lm;const um={draw:function(t,e){var r=Math.sqrt(e/Yv),a=r*lm;t.moveTo(0,-r),t.lineTo(a,0),t.lineTo(0,r),t.lineTo(-a,0),t.closePath()}};var hm=Math.sin(tc/10)/Math.sin(7*tc/10),Uv=Math.sin(ec/10)*hm,$v=-Math.cos(ec/10)*hm;const dm={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),a=Uv*r,o=$v*r;t.moveTo(0,-r),t.lineTo(a,o);for(var s=1;s<5;++s){var h=ec*s/5,d=Math.cos(h),m=Math.sin(h);t.lineTo(m*r,-d*r),t.lineTo(d*a-m*o,m*a+d*o)}t.closePath()}},fm={draw:function(t,e){var r=Math.sqrt(e),a=-r/2;t.rect(a,a,r,r)}};var E2=Math.sqrt(3);const pm={draw:function(t,e){var r=-Math.sqrt(e/(3*E2));t.moveTo(0,2*r),t.lineTo(-E2*r,-r),t.lineTo(E2*r,-r),t.closePath()}};var uo=-.5,ho=Math.sqrt(3)/2,S2=1/Math.sqrt(12),Wv=3*(S2/2+1);const gm={draw:function(t,e){var r=Math.sqrt(e/Wv),a=r/2,o=r*S2,s=a,h=r*S2+r,d=-s,m=h;t.moveTo(a,o),t.lineTo(s,h),t.lineTo(d,m),t.lineTo(uo*a-ho*o,ho*a+uo*o),t.lineTo(uo*s-ho*h,ho*s+uo*h),t.lineTo(uo*d-ho*m,ho*d+uo*m),t.lineTo(uo*a+ho*o,uo*o-ho*a),t.lineTo(uo*s+ho*h,uo*h-ho*s),t.lineTo(uo*d+ho*m,uo*m-ho*d),t.closePath()}};var qv=[T2,cm,um,fm,dm,pm,gm];function Vv(t,e){var r=null;function a(){var o;if(r||(r=o=Wo()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t=typeof t=="function"?t:er(t||T2),e=typeof e=="function"?e:er(e===void 0?64:+e),a.type=function(o){return arguments.length?(t=typeof o=="function"?o:er(o),a):t},a.size=function(o){return arguments.length?(e=typeof o=="function"?o:er(+o),a):e},a.context=function(o){return arguments.length?(r=o??null,a):r},a}function nc(){}function id(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 ad(t){this._context=t}function Hv(t){return new ad(t)}function ym(t){this._context=t}function Gv(t){return new ym(t)}function mm(t){this._context=t}function Xv(t){return new mm(t)}ad.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:id(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:id(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ym.prototype={areaStart:nc,areaEnd:nc,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:id(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mm.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:id(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class bm{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r)}this._x0=e,this._y0=r}}function Zv(t){return new bm(t,!0)}function Qv(t){return new bm(t,!1)}function vm(t,e){this._basis=new ad(t),this._beta=e}vm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var a,o=t[0],s=e[0],h=t[r]-o,d=e[r]-s,m=-1;++m<=r;)a=m/r,this._basis.point(this._beta*t[m]+(1-this._beta)*(o+a*h),this._beta*e[m]+(1-this._beta)*(s+a*d));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Kv=function t(e){function r(a){return e===1?new ad(a):new vm(a,e)}return r.beta=function(a){return t(+a)},r}(.85);function od(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function C2(t,e){this._context=t,this._k=(1-e)/6}C2.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:od(this,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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:od(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Jv=function t(e){function r(a){return new C2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function A2(t,e){this._context=t,this._k=(1-e)/6}A2.prototype={areaStart:nc,areaEnd:nc,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:od(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const t6=function t(e){function r(a){return new A2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function M2(t,e){this._context=t,this._k=(1-e)/6}M2.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(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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:od(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const e6=function t(e){function r(a){return new M2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function D2(t,e,r){var a=t._x1,o=t._y1,s=t._x2,h=t._y2;if(t._l01_a>ha){var d=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,m=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*d-t._x0*t._l12_2a+t._x2*t._l01_2a)/m,o=(o*d-t._y0*t._l12_2a+t._y2*t._l01_2a)/m}if(t._l23_a>ha){var v=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,C=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*v+t._x1*t._l23_2a-e*t._l12_2a)/C,h=(h*v+t._y1*t._l23_2a-r*t._l12_2a)/C}t._context.bezierCurveTo(a,o,s,h,t._x2,t._y2)}function _m(t,e){this._context=t,this._alpha=e}_m.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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}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;default:D2(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const n6=function t(e){function r(a){return e?new _m(a,e):new C2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function xm(t,e){this._context=t,this._alpha=e}xm.prototype={areaStart:nc,areaEnd:nc,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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:D2(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const r6=function t(e){function r(a){return e?new xm(a,e):new A2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function km(t,e){this._context=t,this._alpha=e}km.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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,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:D2(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const i6=function t(e){function r(a){return e?new km(a,e):new M2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function wm(t){this._context=t}function a6(t){return new wm(t)}function Tm(t){return t<0?-1:1}function Em(t,e,r){var a=t._x1-t._x0,o=e-t._x1,s=(t._y1-t._y0)/(a||o<0&&-0),h=(r-t._y1)/(o||a<0&&-0),d=(s*o+h*a)/(a+o);
vendor: 6,021 bytes, line 1255
1255return(Tm(s)+Tm(h))*Math.min(Math.abs(s),Math.abs(h),.5*Math.abs(d))||0}function Sm(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function N2(t,e,r){var a=t._x0,o=t._y0,s=t._x1,h=t._y1,d=(s-a)/3;t._context.bezierCurveTo(a+d,o+d*e,s-d,h-d*r,s,h)}function sd(t){this._context=t}function Cm(t){this._context=new Am(t)}function Am(t){this._context=t}function o6(t){return new sd(t)}function s6(t){return new Cm(t)}function Mm(t){this._context=t}function Dm(t){var e,r,a=t.length-1,o=new Array(a),s=new Array(a),h=new Array(a);for(o[0]=0,s[0]=2,h[0]=t[0]+2*t[1],e=1;e<a-1;++e)o[e]=1,s[e]=4,h[e]=4*t[e]+2*t[e+1];for(o[a-1]=2,s[a-1]=7,h[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=o[e]/s[e-1],s[e]-=r,h[e]-=r*h[e-1];for(o[a-1]=h[a-1]/s[a-1],e=a-2;e>=0;--e)o[e]=(h[e]-o[e+1])/s[e];for(s[a-1]=(t[a]+o[a-1])/2,e=0;e<a-1;++e)s[e]=2*t[e+1]-o[e+1];return[o,s]}function c6(t){return new Mm(t)}function cd(t,e){this._context=t,this._t=e}function l6(t){return new cd(t,.5)}function u6(t){return new cd(t,0)}function h6(t){return new cd(t,1)}function ru(t,e){if((o=t.length)>1)for(var r,a,o,s=1,h=t[e[0]],d=h.length;s<o;++s)for(a=h,h=t[e[s]],r=0;r<d;++r)h[r][1]+=h[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function iu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function d6(t,e){return t[e]}function f6(t){const e=[];return e.key=t,e}function p6(){var t=er([]),e=iu,r=ru,a=d6;function o(s){var h,d,m=Array.from(t.apply(this,arguments),f6),v=m.length,C=-1;for(const I of s)for(h=0,++C;h<v;++h)(m[h][C]=[0,+a(I,m[h].key,C,s)]).data=I;for(h=0,d=nd(e(m));h<v;++h)m[d[h]].index=h;return r(m,d),m}return o.keys=function(s){return arguments.length?(t=typeof s=="function"?s:er(Array.from(s)),o):t},o.value=function(s){return arguments.length?(a=typeof s=="function"?s:er(+s),o):a},o.order=function(s){return arguments.length?(e=s==null?iu:typeof s=="function"?s:er(Array.from(s)),o):e},o.offset=function(s){return arguments.length?(r=s??ru,o):r},o}function g6(t,e){if((a=t.length)>0){for(var r,a,o,s=0,h=t[0].length;s<h;++s){for(o=r=0;r<a;++r)o+=t[r][s][1]||0;if(o)for(r=0;r<a;++r)t[r][s][1]/=o}ru(t,e)}}function y6(t,e){if((d=t.length)>0)for(var r,a,o,s,h,d,m=0,v=t[e[0]].length;m<v;++m)for(s=h=0,r=0;r<d;++r)(o=(a=t[e[r]][m])[1]-a[0])>0?(a[0]=s,a[1]=s+=o):o<0?(a[1]=h,a[0]=h+=o):(a[0]=0,a[1]=o)}function m6(t,e){if((r=t.length)>0){for(var r,a=0,o=t[e[0]],s=o.length;a<s;++a){for(var h=0,d=0;h<r;++h)d+=t[h][a][1]||0;o[a][1]+=o[a][0]=-d/2}ru(t,e)}}function b6(t,e){if((o=t.length)>0&&(a=(r=t[e[0]]).length)>0){for(var r,a,o,s=0,h=1;h<a;++h){for(var d=0,m=0,v=0;d<o;++d){for(var C=t[e[d]],I=C[h][1]||0,D=(I-(C[h-1][1]||0))/2,P=0;P<d;++P){var Z=t[e[P]];D+=(Z[h][1]||0)-(Z[h-1][1]||0)}m+=I,v+=D*I}r[h-1][1]+=r[h-1][0]=s,m&&(s-=v/m)}r[h-1][1]+=r[h-1][0]=s,ru(t,e)}}function Nm(t){var e=t.map(v6);return iu(t).sort(function(r,a){return e[r]-e[a]})}function v6(t){for(var e,r=-1,a=0,o=t.length,s=-1/0;++r<o;)(e=+t[r][1])>s&&(s=e,a=r);return a}function Om(t){var e=t.map(Bm);return iu(t).sort(function(r,a){return e[r]-e[a]})}function Bm(t){for(var e,r=0,a=-1,o=t.length;++a<o;)(e=+t[a][1])&&(r+=e);return r}function _6(t){return Om(t).reverse()}function x6(t){var e,r,a=t.length,o=t.map(Bm),s=Nm(t),h=0,d=0,m=[],v=[];for(e=0;e<a;++e)r=s[e],h<d?(h+=o[r],m.push(r)):(d+=o[r],v.push(r));return v.reverse().concat(m)}function k6(t){return iu(t).reverse()}wm.prototype={areaStart:nc,areaEnd:nc,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))}},sd.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:N2(this,this._t0,Sm(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,N2(this,Sm(this,r=Em(this,t,e)),r);break;default:N2(this,this._t0,r=Em(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Cm.prototype=Object.create(sd.prototype)).point=function(t,e){sd.prototype.point.call(this,e,t)},Am.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,o,s){this._context.bezierCurveTo(e,t,a,r,s,o)}},Mm.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=Dm(t),o=Dm(e),s=0,h=1;h<r;++s,++h)this._context.bezierCurveTo(a[0][s],o[0][s],a[1][s],o[1][s],t[h],e[h]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},cd.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}};
1255var Lm="%Y-%m-%dT%H:%M:%S.%LZ",w6=Date.prototype.toISOString?function(t){return t.toISOString()}:G0(Lm);const T6=w6;var E6=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:f2(Lm);const S6=E6;function C6(t,e,r){var a=new wc,o=e;return e==null?(a.restart(t,e,r),a):(a._restart=a.restart,a.restart=function(s,h,d){h=+h,d=d==null?kc():+d,a._restart(function m(v){v+=o,a._restart(m,o+=h,d),s(v)},h,d)},a.restart(t,e,r),a)}const ld=t=>()=>t;function A6(t,{sourceEvent:e,target:r,transform:a,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function Qo(t,e,r){this.k=t,this.x=e,this.y=r}Qo.prototype={constructor:Qo,scale:function(t){return t===1?this:new Qo(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Qo(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ud=new Qo(1,0,0);function Im(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ud;return t.__zoom}function O2(t){t.stopImmediatePropagation()}function t1(t){t.preventDefault(),t.stopImmediatePropagation()}function M6(t){return!(t.ctrlKey&&t.type!=="wheel"||t.button)}function D6(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Fm(){return this.__zoom||ud}function N6(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function O6(){return navigator.maxTouchPoints||"ontouchstart"in this}function B6(t,e,r){var a=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],s=t.invertY(e[0][1])-r[0][1],h=t.invertY(e[1][1])-r[1][1];return t.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),h>s?(s+h)/2:Math.min(0,s)||Math.max(0,h))}function L6(){var t,e,r,a=M6,o=D6,s=B6,h=N6,d=O6,m=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],C=250,I=tg,D=nr("start","zoom","end"),P=500,Z=0,U=10;function $(gt){gt.property("__zoom",Fm).on("wheel.zoom",Jt,{passive:!1}).on("mousedown.zoom",ye).on("dblclick.zoom",Ut).filter(d).on("touchstart.zoom",Pt).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",zt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function W(gt,Bt){return(Bt=Math.max(m[0],Math.min(m[1],Bt)))===gt.k?gt:new Qo(Bt,gt.x,gt.y)}function it(gt,Bt,Vt){var ae=Bt[0]-Vt[0]*gt.k,we=Bt[1]-Vt[1]*gt.k;return ae===gt.x&&we===gt.y?gt:new Qo(gt.k,ae,we)}function nt(gt){return[(+gt[0][0]+ +gt[1][0])/2,(+gt[0][1]+ +gt[1][1])/2]}function rt(gt,Bt,Vt,ae){gt.on("start.zoom",function(){lt(this,arguments).event(ae).start()}).on("interrupt.zoom end.zoom",function(){lt(this,arguments).event(ae).end()}).tween("zoom",function(){var we=this,ze=arguments,He=lt(we,ze).event(ae),fn=o.apply(we,ze),Ge=Vt==null?nt(fn):typeof Vt=="function"?Vt.apply(we,ze):Vt,Yn=Math.max(fn[1][0]-fn[0][0],fn[1][1]-fn[0][1]),Wn=we.__zoom,Cn=typeof Bt=="function"?Bt.apply(we,ze):Bt,Ln=I(Wn.invert(Ge).concat(Yn/Wn.k),Cn.invert(Ge).concat(Yn/Cn.k));return function(wr){if(wr===1)wr=Cn;else{var ir=Ln(wr),Ba=Yn/ir[2];wr=new Qo(Ba,Ge[0]-ir[0]*Ba,Ge[1]-ir[1]*Ba)}He.zoom(null,wr)}})}function lt(gt,Bt,Vt){return!Vt&&gt.__zooming||new pt(gt,Bt)}function pt(gt,Bt){this.that=gt,this.args=Bt,this.active=0,this.sourceEvent=null,this.extent=o.apply(gt,Bt),this.taps=0}function Jt(gt,...Bt){if(a.apply(this,arguments)){var Vt=lt(this,Bt).event(gt),ae=this.__zoom,we=Math.max(m[0],Math.min(m[1],ae.k*Math.pow(2,h.apply(this,arguments)))),ze=sa(gt);
1255if(Vt.wheel)Vt.mouse[0][0]===ze[0]&&Vt.mouse[0][1]===ze[1]||(Vt.mouse[1]=ae.invert(Vt.mouse[0]=ze)),clearTimeout(Vt.wheel);else{if(ae.k===we)return;Vt.mouse=[ze,ae.invert(ze)],to(this),Vt.start()}t1(gt),Vt.wheel=setTimeout(He,150),Vt.zoom("mouse",s(it(W(ae,we),Vt.mouse[0],Vt.mouse[1]),Vt.extent,v))}function He(){Vt.wheel=null,Vt.end()}}function ye(gt,...Bt){if(!r&&a.apply(this,arguments)){var Vt=gt.currentTarget,ae=lt(this,Bt,!0).event(gt),we=kr(gt.view).on("mousemove.zoom",Ge,!0).on("mouseup.zoom",Yn,!0),ze=sa(gt,Vt),He=gt.clientX,fn=gt.clientY;go(gt.view),O2(gt),ae.mouse=[ze,this.__zoom.invert(ze)],to(this),ae.start()}function Ge(Wn){if(t1(Wn),!ae.moved){var Cn=Wn.clientX-He,Ln=Wn.clientY-fn;ae.moved=Cn*Cn+Ln*Ln>Z}ae.event(Wn).zoom("mouse",s(it(ae.that.__zoom,ae.mouse[0]=sa(Wn,Vt),ae.mouse[1]),ae.extent,v))}function Yn(Wn){we.on("mousemove.zoom mouseup.zoom",null),yo(Wn.view,ae.moved),t1(Wn),ae.event(Wn).end()}}function Ut(gt,...Bt){if(a.apply(this,arguments)){var Vt=this.__zoom,ae=sa(gt.changedTouches?gt.changedTouches[0]:gt,this),we=Vt.invert(ae),ze=Vt.k*(gt.shiftKey?.5:2),He=s(it(W(Vt,ze),ae,we),o.apply(this,Bt),v);t1(gt),C>0?kr(this).transition().duration(C).call(rt,He,ae,gt):kr(this).call($.transform,He,ae,gt)}}function Pt(gt,...Bt){if(a.apply(this,arguments)){var Vt,ae,we,ze,He=gt.touches,fn=He.length,Ge=lt(this,Bt,gt.changedTouches.length===fn).event(gt);for(O2(gt),ae=0;ae<fn;++ae)ze=[ze=sa(we=He[ae],this),this.__zoom.invert(ze),we.identifier],Ge.touch0?Ge.touch1||Ge.touch0[2]===ze[2]||(Ge.touch1=ze,Ge.taps=0):(Ge.touch0=ze,Vt=!0,Ge.taps=1+!!t);t&&(t=clearTimeout(t)),Vt&&(Ge.taps<2&&(e=ze[0],t=setTimeout(function(){t=null},P)),to(this),Ge.start())}}function jt(gt,...Bt){if(this.__zooming){var Vt,ae,we,ze,He=lt(this,Bt).event(gt),fn=gt.changedTouches,Ge=fn.length;for(t1(gt),Vt=0;Vt<Ge;++Vt)we=sa(ae=fn[Vt],this),He.touch0&&He.touch0[2]===ae.identifier?He.touch0[0]=we:He.touch1&&He.touch1[2]===ae.identifier&&(He.touch1[0]=we);if(ae=He.that.__zoom,He.touch1){var Yn=He.touch0[0],Wn=He.touch0[1],Cn=He.touch1[0],Ln=He.touch1[1],wr=(wr=Cn[0]-Yn[0])*wr+(wr=Cn[1]-Yn[1])*wr,ir=(ir=Ln[0]-Wn[0])*ir+(ir=Ln[1]-Wn[1])*ir;ae=W(ae,Math.sqrt(wr/ir)),we=[(Yn[0]+Cn[0])/2,(Yn[1]+Cn[1])/2],ze=[(Wn[0]+Ln[0])/2,(Wn[1]+Ln[1])/2]}else{if(!He.touch0)return;we=He.touch0[0],ze=He.touch0[1]}He.zoom("touch",s(it(ae,we,ze),He.extent,v))}}function zt(gt,...Bt){if(this.__zooming){var Vt,ae,we=lt(this,Bt).event(gt),ze=gt.changedTouches,He=ze.length;for(O2(gt),r&&clearTimeout(r),r=setTimeout(function(){r=null},P),Vt=0;Vt<He;++Vt)ae=ze[Vt],we.touch0&&we.touch0[2]===ae.identifier?delete we.touch0:we.touch1&&we.touch1[2]===ae.identifier&&delete we.touch1;if(we.touch1&&!we.touch0&&(we.touch0=we.touch1,delete we.touch1),we.touch0)we.touch0[1]=this.__zoom.invert(we.touch0[0]);else if(we.end(),we.taps===2&&(ae=sa(ae,this),Math.hypot(e[0]-ae[0],e[1]-ae[1])<U)){var fn=kr(this).on("dblclick.zoom");fn&&fn.apply(this,arguments)}}}return $.transform=function(gt,Bt,Vt,ae){var we=gt.selection?gt.selection():gt;we.property("__zoom",Fm),gt!==we?rt(gt,Bt,Vt,ae):we.interrupt().each(function(){lt(this,arguments).event(ae).start().zoom(null,typeof Bt=="function"?Bt.apply(this,arguments):Bt).end()})},$.scaleBy=function(gt,Bt,Vt,ae){$.scaleTo(gt,function(){var we=this.__zoom.k,ze=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return we*ze},Vt,ae)},$.scaleTo=function(gt,Bt,Vt,ae){$.transform(gt,function(){var we=o.apply(this,arguments),ze=this.__zoom,He=Vt==null?nt(we):typeof Vt=="function"?Vt.apply(this,arguments):Vt,fn=ze.invert(He),Ge=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return s(it(W(ze,Ge),He,fn),we,v)},Vt,ae)},$.translateBy=function(gt,Bt,Vt,ae){$.transform(gt,function(){return s(this.__zoom.translate(typeof Bt=="function"?Bt.apply(this,arguments):Bt,typeof Vt=="function"?Vt.apply(this,arguments):Vt),o.apply(this,arguments),v)},null,ae)},$.translateTo=function(gt,Bt,Vt,ae,we){$.transform(gt,function(){var ze=o.apply(this,arguments),He=this.__zoom,fn=ae==null?nt(ze):typeof ae=="function"?ae.apply(this,arguments):ae;return s(ud.translate(fn[0],fn[1]).scale(He.k).translate(typeof Bt=="function"?-Bt.apply(this,arguments):-Bt,typeof Vt=="function"?-Vt.apply(this,arguments):-Vt),ze,v)},ae,we)},pt.prototype={event:function(gt){return gt&&(this.sourceEvent=gt),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit
1255("start")),this},zoom:function(gt,Bt){return this.mouse&&gt!=="mouse"&&(this.mouse[1]=Bt.invert(this.mouse[0])),this.touch0&&gt!=="touch"&&(this.touch0[1]=Bt.invert(this.touch0[0])),this.touch1&&gt!=="touch"&&(this.touch1[1]=Bt.invert(this.touch1[0])),this.that.__zoom=Bt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(gt){var Bt=kr(this.that).datum();D.call(gt,this.that,new A6(gt,{sourceEvent:this.sourceEvent,target:$,type:gt,transform:this.that.__zoom,dispatch:D}),Bt)}},$.wheelDelta=function(gt){return arguments.length?(h=typeof gt=="function"?gt:ld(+gt),$):h},$.filter=function(gt){return arguments.length?(a=typeof gt=="function"?gt:ld(!!gt),$):a},$.touchable=function(gt){return arguments.length?(d=typeof gt=="function"?gt:ld(!!gt),$):d},$.extent=function(gt){return arguments.length?(o=typeof gt=="function"?gt:ld([[+gt[0][0],+gt[0][1]],[+gt[1][0],+gt[1][1]]]),$):o},$.scaleExtent=function(gt){return arguments.length?(m[0]=+gt[0],m[1]=+gt[1],$):[m[0],m[1]]},$.translateExtent=function(gt){return arguments.length?(v[0][0]=+gt[0][0],v[1][0]=+gt[1][0],v[0][1]=+gt[0][1],v[1][1]=+gt[1][1],$):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},$.constrain=function(gt){return arguments.length?(s=gt,$):s},$.duration=function(gt){return arguments.length?(C=+gt,$):C},$.interpolate=function(gt){return arguments.length?(I=gt,$):I},$.on=function(){var gt=D.on.apply(D,arguments);return gt===D?$:gt},$.clickDistance=function(gt){return arguments.length?(Z=(gt=+gt)*gt,$):Math.sqrt(Z)},$.tapDistance=function(gt){return arguments.length?(U=+gt,$):U},$}Im.prototype=Qo.prototype}},L2={};function Xa(M){var R=L2[M];if(R!==void 0)return R.exports;var f=L2[M]={id:M,loaded:!1,exports:{}};return H6[M].call(f.exports,f,f.exports,Xa),f.loaded=!0,f.exports}Xa.c=L2,Xa.n=M=>{var R=M&&M.__esModule?()=>M.default:()=>M;return Xa.d(R,{a:R}),R},Xa.d=(M,R)=>{for(var f in R)Xa.o(R,f)&&!Xa.o(M,f)&&Object.defineProperty(M,f,{enumerable:!0,get:R[f]})},Xa.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Xa.o=(M,R)=>Object.prototype.hasOwnProperty.call(M,R),Xa.r=M=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},Xa.nmd=M=>(M.paths=[],M.children||(M.children=[]),M);var zm=Xa(Xa.s=6187).Z;const G6={class:"shrink-0"},X6={key:0,class:"code-filename-container grow flex items-center gap-2 overflow-x-auto"},Z6={key:1,class:"flex items-center gap-2 text-gray-400"},Q6={class:"shrink-0 text-xs"},K6={class:"shrink-0 flex items-center gap-4"},J6=["title","disabled"],t_={class:"flex items-center gap-1"},e_={class:"text-xs text-gray-500"},n_=["innerHTML"],r_={class:"absolute inset-0 z-10 bg-gradient-to-b from-transparent to-white/30 backdrop-blur-[2px] rounded-b-lg"},i_=j6({__name:"ProseCode",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null}},setup(M){const R=M,f=ac(!0),b=ac(null),u=ac(3);B2(()=>{b.value&&(u.value=b.value.getElementsByClassName("line").length)});const _=ac(null),y=()=>{f.value=!f.value,!f.value&&_.value&&q6(()=>{_.value.scrollIntoView({block:"nearest"})})},E={theme:"#a855f7",bash:"#89e051",shell:"#89e051",html:"#e34c26",javascript:"#f1e05a",js:"#f1e05a",css:"#563d7c",scss:"#c6538c",vue:"#41b883",markdown:"#083fa1",md:"#083fa1"},A=ac("");R.language&&(A.value=R.language.toLowerCase());const w=/\.([0-9a-z]+)$/;if(R.filename){const Q=R.filename.match(w);Q&&Q.length>1&&(A.value=Q[1].toLowerCase())}const F=ac("wait"),O=ac(null);B2(()=>{O.value=navigator.clipboard});const j=()=>{F.value="process",O.value&&O.value.writeText(R.code).then(()=>{F.value="success";const Q=setTimeout(()=>{F.value="wait",clearTimeout(Q)},800)}).catch(()=>{F.value="fail";const Q=setTimeout(()=>{F.value="wait",clearTimeout(Q)},800)})},H=/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/,tt=ac("");return B2(()=>{R.language==="mermaid"&&R.code&&document&&(zm.mermaidAPI.initialize({startOnLoad:!1}
1255),tt.value=zm.mermaidAPI.render("graphDiv",R.code))}),(Q,ht)=>{const K=R6,xt=P6;return ou(),n1("div",{ref_key:"codeBlockContainer",ref:_,class:r1(["my-4 rounded-lg",R.language==="mermaid"?"border border-gray-300":""])},[Ko("div",{class:r1(["w-full px-2 sm:px-4 py-2 flex justify-between items-center gap-2 sticky top-0 z-20 border-b rounded-t-lg",R.language==="mermaid"?"bg-gray-50 border-gray-300":"border-gray-600 bg-gray-900"])},[Ko("div",G6,[su(Ko("button",{onClick:y},[Qc(K,{name:"material-symbols:keyboard-arrow-down-rounded",class:r1(["w-4 h-4 text-gray-400 transition-transform duration-300",da(f)?"":"-rotate-90"])},null,8,["class"])],512),[[cu,da(u)>3&&R.language!=="mermaid"]])]),R.filename?(ou(),n1("div",X6,[H.test(R.filename)?(ou(),z6(xt,{key:0,to:R.filename,target:"_blank",class:"no-underline transition-colors duration-300",style:{"text-decoration-line":"none",color:"#94a3b8"}},{default:Y6(()=>[Qc(K,{name:"bi:link-45deg",class:"shrink-0 w-4 h-4"})]),_:1},8,["to"])):(ou(),n1("div",Z6,[Qc(K,{name:"bi:file-earmark-code",class:"shrink-0 w-4 h-4"}),Ko("span",Q6,jm(R.filename),1)]))])):U6("",!0),Ko("div",K6,[Ko("button",{title:da(F)==="wait"?"copy code":"",class:r1(["flex justify-center items-center text-gray-500 hover:text-purple-500 transition-colors duration-300",da(O)?"":"opacity-10"]),disabled:da(F)!=="wait"||!da(O),onClick:j},[su(Qc(K,{name:"uil:copy",class:"w-4 h-4"},null,512),[[cu,da(F)==="wait"]]),su(Qc(K,{name:"eos-icons:loading",class:"w-4 h-4 text-purple-500"},null,512),[[cu,da(F)==="process"]]),su(Qc(K,{name:"uil:check",class:"w-4 h-4 text-green-500"},null,512),[[cu,da(F)==="success"]]),su(Qc(K,{name:"icon-park-outline:file-failed-one",class:"w-4 h-4 text-red-500"},null,512),[[cu,da(F)==="fail"]])],10,J6),Ko("div",t_,[Ko("div",{class:"w-2 h-2 rounded-full",style:$6(E[da(A)]?`background-color: ${E[da(A)]}`:`background-color: ${E.theme}`)},null,4),Ko("span",e_,jm(da(A)||"code"),1)])])],2),R.language==="mermaid"?(ou(),n1("div",{key:0,class:"mermaid p-4 rounded-b-lg",innerHTML:da(tt)},null,8,n_)):(ou(),n1("div",{key:1,ref_key:"codeContainer",ref:b,class:r1(["relative px-2 bg-gray-900 rounded-b-lg",da(f)?"":"max-h-[72px] overflow-y-hidden"])},[su(Ko("div",r_,null,512),[[cu,!da(f)]]),W6(Q.$slots,"default")],2))],2)}}}),c_=V6(i_,[["__scopeId","data-v-fe899cd6"]]);export{c_ as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.