@marimo-team/frontend 0.14.11 → 0.14.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-B9BmPz9a.js → ConnectedDataExplorerComponent-CBKTnGIO.js} +1 -1
  2. package/dist/assets/{ImageComparisonComponent-CNTqLdnf.js → ImageComparisonComponent-D_1rLFqD.js} +1 -1
  3. package/dist/assets/{VegaLite-DLKRDJvl.js → VegaLite-B_dlvmS8.js} +1 -1
  4. package/dist/assets/_baseEach-BRg52hSf.js +1 -0
  5. package/dist/assets/_baseMap-C8GGmDJG.js +1 -0
  6. package/dist/assets/_baseUniq-DNyfrpcN.js +1 -0
  7. package/dist/assets/{_createAggregator-C_WhAECr.js → _createAggregator-Baj-S-w2.js} +1 -1
  8. package/dist/assets/{any-language-editor-DrZjy7mH.js → any-language-editor-DpXFI5QG.js} +1 -1
  9. package/dist/assets/{architectureDiagram-NQ2NVSRB-DqJfNlvg.js → architectureDiagram-SUXI7LT5-B47ODzlu.js} +3 -3
  10. package/dist/assets/{blockDiagram-PHRCVELO-BMyZ52bP.js → blockDiagram-6J76NXCF-DAEJc3eE.js} +6 -6
  11. package/dist/assets/{c4Diagram-6F6E4RAY-DveKwcb7.js → c4Diagram-6F6E4RAY-ttnVRT3Y.js} +1 -1
  12. package/dist/assets/channel-ukMKC8Ba.js +1 -0
  13. package/dist/assets/{chunk-353BL4L5-DBdJb07A.js → chunk-353BL4L5-D2cH1aM-.js} +1 -1
  14. package/dist/assets/{chunk-67H74DCK-DG8iWVJ-.js → chunk-67H74DCK-BhK3V2TP.js} +1 -1
  15. package/dist/assets/{chunk-AACKK3MU-CDOdA9eC.js → chunk-AACKK3MU-BGsWBcze.js} +1 -1
  16. package/dist/assets/{chunk-BFAMUDN2-Cf6198RO.js → chunk-BFAMUDN2-DbnMfH-q.js} +1 -1
  17. package/dist/assets/{chunk-E2GYISFI-fSvIEcyU.js → chunk-E2GYISFI-2-NOnWc3.js} +1 -1
  18. package/dist/assets/{chunk-6OLS64BW-Dmt4rYEQ.js → chunk-OW32GOEJ-Bz6eMZz9.js} +1 -1
  19. package/dist/assets/{chunk-SKB7J2MH-B7Z1FsaJ.js → chunk-SKB7J2MH-C9m7rnpG.js} +1 -1
  20. package/dist/assets/{chunk-QEP2MXWD-D6FP1cQC.js → chunk-SZ463SBG-9jmdZ7UB.js} +1 -1
  21. package/dist/assets/{circle-play-CBftacWk.js → circle-play-DjJ5u-05.js} +1 -1
  22. package/dist/assets/classDiagram-M3E45YP4-X_c0WAZt.js +1 -0
  23. package/dist/assets/classDiagram-v2-YAWTLIQI-X_c0WAZt.js +1 -0
  24. package/dist/assets/clone-Bk2-uU7a.js +1 -0
  25. package/dist/assets/{compile-mbjlQ5nn.js → compile-C1fgVjKt.js} +8 -8
  26. package/dist/assets/cytoscape.esm-CzSnbbKZ.js +325 -0
  27. package/dist/assets/{dagre-FFZHY6LT-DX9cGWLP.js → dagre-JOIXM2OF-CcaBCP5W.js} +1 -1
  28. package/dist/assets/{data-grid-overlay-editor-C4fyHnn1.js → data-grid-overlay-editor-BZwv-WhT.js} +1 -1
  29. package/dist/assets/{diagram-5UYTHUR4-BgOShMim.js → diagram-5UYTHUR4-D9BnbEeD.js} +1 -1
  30. package/dist/assets/diagram-VMROVX33-C_v4sUOK.js +24 -0
  31. package/dist/assets/{diagram-ZTM2IBQH-m55tqkSF.js → diagram-ZTM2IBQH-DkfH8XUB.js} +1 -1
  32. package/dist/assets/edit-page-TN4XAy2z.js +147 -0
  33. package/dist/assets/{erDiagram-R3QVA2FD-B8SQvwhp.js → erDiagram-3M52JZNH-BF32hHK0.js} +1 -1
  34. package/dist/assets/{flowDiagram-PKI6S5ZS-BTbZVZp0.js → flowDiagram-KYDEHFYC-C55z-Ujy.js} +1 -1
  35. package/dist/assets/{ganttDiagram-EK5VF46D-Dkuqvb7b.js → ganttDiagram-EK5VF46D-CPBRY9C7.js} +3 -3
  36. package/dist/assets/{gitGraphDiagram-GW3U2K7C-BMQ8L_am.js → gitGraphDiagram-GW3U2K7C-DcxuZq_j.js} +1 -1
  37. package/dist/assets/{glide-data-editor-BKZWFNVv.js → glide-data-editor-DEySJ-Uv.js} +11 -11
  38. package/dist/assets/{graph-CFDemIXQ.js → graph-Wnsqj3W7.js} +1 -1
  39. package/dist/assets/{home-page-DUbYTF9g.js → home-page-DcMrkDPE.js} +3 -3
  40. package/dist/assets/{index-CH2sakSJ.js → index-4EoOw_ED.js} +1 -1
  41. package/dist/assets/{index-CRY746sV.js → index-B1o5PWgw.js} +1 -1
  42. package/dist/assets/{index-B0-K_sX8.js → index-B2587e_p.js} +1 -1
  43. package/dist/assets/{index-ChVO1Vdj.js → index-BamjPWEC.js} +1 -1
  44. package/dist/assets/index-BlYahtg3.js +1 -0
  45. package/dist/assets/index-C-IG5Jr8.js +1 -0
  46. package/dist/assets/index-C4BBG11u.js +1 -0
  47. package/dist/assets/index-CF_KIi0p.js +1 -0
  48. package/dist/assets/index-D98B-7XN.js +1 -0
  49. package/dist/assets/index-DGjhFk6m.js +1 -0
  50. package/dist/assets/index-DYmhnlX1.js +507 -0
  51. package/dist/assets/index-Db00Ydia.js +1 -0
  52. package/dist/assets/index-Dqf23Hvm.js +1 -0
  53. package/dist/assets/{index-MUMVp22V.js → index-QfsoKVOY.js} +1 -1
  54. package/dist/assets/index-RoS9j4wO.js +1 -0
  55. package/dist/assets/index-S3mjG3Uz.css +1 -0
  56. package/dist/assets/index-Z1jc58tW.js +1 -0
  57. package/dist/assets/index-a8t0EFic.js +1 -0
  58. package/dist/assets/{index-C_e9XjpS.js → index-kzqyjt1O.js} +1 -1
  59. package/dist/assets/{index-d0CXXxee.js → index-wRtWpsgQ.js} +2 -2
  60. package/dist/assets/{infoDiagram-RLU2ROGC-DAW5X38W.js → infoDiagram-LHK5PUON-DiXY5W-u.js} +1 -1
  61. package/dist/assets/{journeyDiagram-EWQZEKCU--6lJjuiM.js → journeyDiagram-EWQZEKCU-Nm6fcEAi.js} +1 -1
  62. package/dist/assets/{kanban-definition-ILFWEQ3N-CXNPWHB8.js → kanban-definition-ZSS6B67P-CGqK-B6v.js} +1 -1
  63. package/dist/assets/{layout-Jgv95YSr.js → layout-DdtO6MuW.js} +1 -1
  64. package/dist/assets/{linear-DtgEMbrz.js → linear-CCLVHXdb.js} +1 -1
  65. package/dist/assets/links-BOSKRjH_.js +17 -0
  66. package/dist/assets/loro_wasm_bg-C3hKWL9L.js +2 -0
  67. package/dist/assets/mermaid-DonGMagM.js +207 -0
  68. package/dist/assets/min-DCdo07Qe.js +1 -0
  69. package/dist/assets/mindmap-definition-6CBA2TL7-DV80ltbO.js +95 -0
  70. package/dist/assets/{number-overlay-editor-C3hemckO.js → number-overlay-editor-DPd2PkyH.js} +1 -1
  71. package/dist/assets/{pieDiagram-NIOCPIFQ-B-zGF99A.js → pieDiagram-NIOCPIFQ-CLg8zuiX.js} +3 -3
  72. package/dist/assets/{quadrantDiagram-2OG54O6I-2tF9b_2b.js → quadrantDiagram-2OG54O6I-Q-Nbai62.js} +1 -1
  73. package/dist/assets/{react-plotly-CdJaKwaj.js → react-plotly-BUhpkTZA.js} +200 -200
  74. package/dist/assets/{requirementDiagram-SO3GGRV7-DEa34SeY.js → requirementDiagram-QOLK2EJ7-B9SoIsLP.js} +1 -1
  75. package/dist/assets/run-page-c4k7pMUk.js +1 -0
  76. package/dist/assets/sankeyDiagram-4UZDY2LN-Bgg2hsKs.js +10 -0
  77. package/dist/assets/sequenceDiagram-SKLFT4DO-BzFcDEng.js +122 -0
  78. package/dist/assets/{slides-component-C2uc6kmf.js → slides-component-BhqZju_R.js} +1 -1
  79. package/dist/assets/{sortBy-Bob7dKSt.js → sortBy-C43Pp6GY.js} +1 -1
  80. package/dist/assets/{stateDiagram-XX37X6EN-DUi_goR8.js → stateDiagram-MI5ZYTHO-CSucWgeR.js} +1 -1
  81. package/dist/assets/stateDiagram-v2-5AN5P6BG-BT7qyLYw.js +1 -0
  82. package/dist/assets/storage-DZZHoZaf.js +25 -0
  83. package/dist/assets/{terminal-BkOhnp-S.js → terminal-CknBNEbl.js} +1 -1
  84. package/dist/assets/{time-BXb9z1yv.js → time-bZ-arUoy.js} +1 -1
  85. package/dist/assets/{timeline-definition-RI47OAVP-CTWn3WQu.js → timeline-definition-MYPXXCX6-MZqqJbkt.js} +3 -3
  86. package/dist/assets/tracing-D77Keje5.js +2 -0
  87. package/dist/assets/{trash-BWRVB_br.js → trash-BZiJbQ0d.js} +1 -1
  88. package/dist/assets/treemap-75Q7IDZK-BAq6XOUv.js +126 -0
  89. package/dist/assets/{vega-component-CX_u3Hhp.js → vega-component-oHitp1cz.js} +1 -1
  90. package/dist/assets/{worker-BYA2ASe8.js → worker-Bma4sWEs.js} +1 -1
  91. package/dist/assets/{xychartDiagram-H2YORKM3-D0JoLNE8.js → xychartDiagram-H2YORKM3-D5zeDIcK.js} +1 -1
  92. package/dist/index.html +2 -2
  93. package/package.json +9 -19
  94. package/dist/assets/_baseEach-BjDLzUwG.js +0 -1
  95. package/dist/assets/_baseMap-CuZ-LBtv.js +0 -1
  96. package/dist/assets/_baseUniq-DqHaT24V.js +0 -1
  97. package/dist/assets/channel-LYGgdr1R.js +0 -1
  98. package/dist/assets/classDiagram-BGRH5UQR-BQbZmSV-.js +0 -1
  99. package/dist/assets/classDiagram-v2-O24JOBDK-BQbZmSV-.js +0 -1
  100. package/dist/assets/clone-DD3sG0_1.js +0 -1
  101. package/dist/assets/cytoscape.esm-UYyVlru8.js +0 -10
  102. package/dist/assets/diagram-3EMPZRKU-BwXQu6c-.js +0 -24
  103. package/dist/assets/edit-page-BMW2Fhcz.js +0 -148
  104. package/dist/assets/index-1az6nvpO.js +0 -1
  105. package/dist/assets/index-B9WlbtVk.js +0 -1
  106. package/dist/assets/index-BWEPJWCF.js +0 -1
  107. package/dist/assets/index-CE3mbf8H.js +0 -1
  108. package/dist/assets/index-CaHkXpUp.js +0 -1
  109. package/dist/assets/index-CfvA7bvb.js +0 -1
  110. package/dist/assets/index-CsdFJkJw.css +0 -1
  111. package/dist/assets/index-CylrdBnG.js +0 -1
  112. package/dist/assets/index-D3Er-byj.js +0 -1
  113. package/dist/assets/index-D_Dmmo5g.js +0 -1
  114. package/dist/assets/index-Drq4Lpl3.js +0 -1
  115. package/dist/assets/index-NLK5-sPO.js +0 -1
  116. package/dist/assets/index-_lj65MZR.js +0 -507
  117. package/dist/assets/links-Bjf-1I2i.js +0 -17
  118. package/dist/assets/mermaid-DCMac0Ai.js +0 -152
  119. package/dist/assets/min-VDyC-auF.js +0 -1
  120. package/dist/assets/mindmap-definition-CZNETY7S-BEd6cR16.js +0 -95
  121. package/dist/assets/run-page-Bg1x8WTa.js +0 -1
  122. package/dist/assets/sankeyDiagram-4UZDY2LN-DUIUN-K8.js +0 -10
  123. package/dist/assets/sequenceDiagram-ZIKVLSP4-BZGddaB9.js +0 -122
  124. package/dist/assets/stateDiagram-v2-GD6S3NHB-CdRNmgeb.js +0 -1
  125. package/dist/assets/storage-CTvz5ejZ.js +0 -25
  126. package/dist/assets/tracing-Z4QREdu3.js +0 -2
  127. package/dist/assets/treemap-FKARHQ26-AlpUch0p.js +0 -126
@@ -1 +0,0 @@
1
- import{J as b,aD as d,bV as g,bW as O,x as y,Q as j,bX as x,az as w,S as P,bY as M,ay as V,aB as W}from"./index-_lj65MZR.js";import{a as v}from"./_baseEach-BjDLzUwG.js";import{d as z}from"./_baseUniq-DqHaT24V.js";import{b as B}from"./_baseMap-CuZ-LBtv.js";var c=Object.prototype,D=c.hasOwnProperty,J=b(function(a,n){a=Object(a);var u=-1,t=n.length,r=t>2?n[2]:void 0;for(r&&d(n[0],n[1],r)&&(t=1);++u<t;)for(var s=n[u],o=g(s),i=-1,l=o.length;++i<l;){var e=o[i],f=a[e];(f===void 0||O(f,c[e])&&!D.call(a,e))&&(a[e]=s[e])}return a});function Q(a){var n=a==null?0:a.length;return n?a[n-1]:void 0}var S=Math.max,p,X=(p=function(a,n,u){var t=a==null?0:a.length;if(!t)return-1;var r=u==null?0:x(u);return r<0&&(r=S(t+r,0)),z(a,v(n),r)},function(a,n,u){var t=Object(a);if(!y(a)){var r=v(n);a=j(a),n=function(o){return r(t[o],o,t)}}var s=p(a,n,u);return s>-1?t[r?a[s]:s]:void 0});function Y(a,n){return(P(a)?w:B)(a,v(n))}var _=Object.prototype.hasOwnProperty;function k(a,n){return a!=null&&_.call(a,n)}function q(a,n){return a!=null&&M(a,n,k)}function h(a,n){return a<n}function m(a,n,u){for(var t=-1,r=a.length;++t<r;){var s=a[t],o=n(s);if(o!=null&&(i===void 0?o==o&&!V(o):u(o,i)))var i=o,l=s}return l}function A(a){return a&&a.length?m(a,W,h):void 0}export{h as a,m as b,A as c,J as d,X as f,q as h,Q as l,Y as m};
@@ -1,95 +0,0 @@
1
- import{_ as x,l as j,c as J,I as mt,T as _t,G as Q,h as K,V as vt,W as Nt,X as At,a4 as Tt,O as Lt}from"./mermaid-DCMac0Ai.js";import{c as ot}from"./cytoscape.esm-UYyVlru8.js";import{z as Ot}from"./index-_lj65MZR.js";import{s as Dt}from"./transform-CDNfLgV5.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var st,at={exports:{}},ht={exports:{}},lt={exports:{}};function It(){return st?lt.exports:(st=1,N=function(){return function(A){var f={};function p(e){if(f[e])return f[e].exports;var t=f[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,p),t.l=!0,t.exports}return p.m=A,p.c=f,p.i=function(e){return e},p.d=function(e,t,i){p.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,"a",t),t},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.p="",p(p.s=26)}([function(A,f,p){function e(){}e.QUALITY=1,e.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,e.DEFAULT_INCREMENTAL=!1,e.DEFAULT_ANIMATION_ON_LAYOUT=!0,e.DEFAULT_ANIMATION_DURING_LAYOUT=!1,e.DEFAULT_ANIMATION_PERIOD=50,e.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,e.DEFAULT_GRAPH_MARGIN=15,e.NODE_DIMENSIONS_INCLUDE_LABELS=!1,e.SIMPLE_NODE_SIZE=40,e.SIMPLE_NODE_HALF_SIZE=e.SIMPLE_NODE_SIZE/2,e.EMPTY_COMPOUND_NODE_SIZE=40,e.MIN_EDGE_LENGTH=1,e.WORLD_BOUNDARY=1e6,e.INITIAL_WORLD_BOUNDARY=e.WORLD_BOUNDARY/1e3,e.WORLD_CENTER_X=1200,e.WORLD_CENTER_Y=900,A.exports=e},function(A,f,p){var e=p(2),t=p(8),i=p(9);function r(o,h,a){e.call(this,a),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=a,this.bendpoints=[],this.source=o,this.target=h}for(var n in r.prototype=Object.create(e.prototype),e)r[n]=e[n];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(o){if(this.source===o)return this.target;if(this.target===o)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(o,h){for(var a=this.getOtherEnd(o),l=h.getGraphManager().getRoot();;){if(a.getOwner()==h)return a;if(a.getOwner()==l)break;a=a.getOwner().getParent()}return null},r.prototype.updateLength=function(){var o=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),o),this.isOverlapingSourceAndTarget||(this.lengthX=o[0]-o[2],this.lengthY=o[1]-o[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=r},function(A,f,p){A.exports=function(e){this.vGraphObject=e}},function(A,f,p){var e=p(2),t=p(10),i=p(13),r=p(0),n=p(16),o=p(4);function h(l,E,m,g){m==null&&g==null&&(g=E),e.call(this,g),l.graphManager!=null&&(l=l.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=l,this.rect=m!=null&&E!=null?new i(E.x,E.y,m.width,m.height):new i}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(l){this.rect.width=l},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(l){this.rect.height=l},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new o(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new o(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(l,E){this.rect.x=l.x,this.rect.y=l.y,this.rect.width=E.width,this.rect.height=E.height},h.prototype.setCenter=function(l,E){this.rect.x=l-this.rect.width/2,this.rect.y=E-this.rect.height/2},h.prototype.setLocation=function(l,E){this.rect.x=l,this.rect.y=E},h.prototype.moveBy=function(l,E){this.rect.x+=l,this.rect.y+=E},h.prototype.getEdgeListToNode=function(l){var E=[],m=this;return m.edges.forEach(function(g){if(g.target==l){if(g.source!=m)throw"Incorrect edge source!";E.push(g)}}),E},h.prototype.getEdgesBetween=function(l){var E=[],m=this;return m.edges.forEach(function(g){if(g.source!=m&&g.target!=m)throw"Incorrect edge source and/or target";g.target!=l&&g.source!=l||E.push(g)}),E},h.prototype.getNeighborsList=function(){var l=new Set,E=this;return E.edges.forEach(function(m){if(m.source==E)l.add(m.target);else{if(m.target!=E)throw"Incorrect incidency!";l.add(m.source)}}),l},h.prototype.withChildren=function(){var l=new Set;if(l.add(this),this.child!=null)for(var E=this.child.getNodes(),m=0;m<E.length;m++)E[m].withChildren().forEach(function(g){l.add(g)});return l},h.prototype.getNoOfChildren=function(){var l=0;if(this.child==null)l=1;else for(var E=this.child.getNodes(),m=0;m<E.length;m++)l+=E[m].getNoOfChildren();return l==0&&(l=1),l},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==t.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},h.prototype.scatter=function(){var l,E,m=-r.INITIAL_WORLD_BOUNDARY,g=r.INITIAL_WORLD_BOUNDARY;l=r.WORLD_CENTER_X+n.nextDouble()*(g-m)+m;var _=-r.INITIAL_WORLD_BOUNDARY,L=r.INITIAL_WORLD_BOUNDARY;E=r.WORLD_CENTER_Y+n.nextDouble()*(L-_)+_,this.rect.x=l,this.rect.y=E},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var l=this.getChild();if(l.updateBounds(!0),this.rect.x=l.getLeft(),this.rect.y=l.getTop(),this.setWidth(l.getRight()-l.getLeft()),this.setHeight(l.getBottom()-l.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var E=l.getRight()-l.getLeft(),m=l.getBottom()-l.getTop();this.labelWidth>E&&(this.rect.x-=(this.labelWidth-E)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(l){var E=this.rect.x;E>r.WORLD_BOUNDARY?E=r.WORLD_BOUNDARY:E<-r.WORLD_BOUNDARY&&(E=-r.WORLD_BOUNDARY);var m=this.rect.y;m>r.WORLD_BOUNDARY?m=r.WORLD_BOUNDARY:m<-r.WORLD_BOUNDARY&&(m=-r.WORLD_BOUNDARY);var g=new o(E,m),_=l.inverseTransformPoint(g);this.setLocation(_.x,_.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=h},function(A,f,p){function e(t,i){t==null&&i==null?(this.x=0,this.y=0):(this.x=t,this.y=i)}e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.setX=function(t){this.x=t},e.prototype.setY=function(t){this.y=t},e.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},e.prototype.getCopy=function(){return new e(this.x,this.y)},e.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},A.exports=e},function(A,f,p){var e=p(2),t=p(10),i=p(0),r=p(6),n=p(3),o=p(1),h=p(13),a=p(12),l=p(11);function E(g,_,L){e.call(this,L),this.estimatedSize=t.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,_!=null&&_ instanceof r?this.graphManager=_:_!=null&&_ instanceof Layout&&(this.graphManager=_.graphManager)}for(var m in E.prototype=Object.create(e.prototype),e)E[m]=e[m];E.prototype.getNodes=function(){return this.nodes},E.prototype.getEdges=function(){return this.edges},E.prototype.getGraphManager=function(){return this.graphManager},E.prototype.getParent=function(){return this.parent},E.prototype.getLeft=function(){return this.left},E.prototype.getRight=function(){return this.right},E.prototype.getTop=function(){return this.top},E.prototype.getBottom=function(){return this.bottom},E.prototype.isConnected=function(){return this.isConnected},E.prototype.add=function(g,_,L){if(_==null&&L==null){var v=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}var T=g;if(!(this.getNodes().indexOf(_)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(_.owner!=L.owner||_.owner!=this)throw"Both owners must be this graph!";return _.owner!=L.owner?null:(T.source=_,T.target=L,T.isInterGraph=!1,this.getEdges().push(T),_.edges.push(T),L!=_&&L.edges.push(T),T)},E.prototype.remove=function(g){var _=g;if(g instanceof n){if(_==null)throw"Node is null!";if(_.owner==null||_.owner!=this)throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=_.edges.slice(),v=L.length,T=0;T<v;T++)(u=L[T]).isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);if((I=this.nodes.indexOf(_))==-1)throw"Node not in owner node list!";this.nodes.splice(I,1)}else if(g instanceof o){var u;if((u=g)==null)throw"Edge is null!";if(u.source==null||u.target==null)throw"Source and/or target is null!";if(u.source.owner==null||u.target.owner==null||u.source.owner!=this||u.target.owner!=this)throw"Source and/or target owner is invalid!";var I,s=u.source.edges.indexOf(u),c=u.target.edges.indexOf(u);if(!(s>-1&&c>-1))throw"Source and/or target doesn't know this edge!";if(u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(c,1),(I=u.source.owner.getEdges().indexOf(u))==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(I,1)}},E.prototype.updateLeftTop=function(){for(var g,_,L,v=t.MAX_VALUE,T=t.MAX_VALUE,u=this.getNodes(),I=u.length,s=0;s<I;s++){var c=u[s];v>(g=c.getTop())&&(v=g),T>(_=c.getLeft())&&(T=_)}return v==t.MAX_VALUE?null:(L=u[0].getParent().paddingLeft!=null?u[0].getParent().paddingLeft:this.margin,this.left=T-L,this.top=v-L,new a(this.left,this.top))},E.prototype.updateBounds=function(g){for(var _,L,v,T,u,I=t.MAX_VALUE,s=-t.MAX_VALUE,c=t.MAX_VALUE,d=-t.MAX_VALUE,y=this.nodes,O=y.length,D=0;D<O;D++){var w=y[D];g&&w.child!=null&&w.updateBounds(),I>(_=w.getLeft())&&(I=_),s<(L=w.getRight())&&(s=L),c>(v=w.getTop())&&(c=v),d<(T=w.getBottom())&&(d=T)}var R=new h(I,c,s-I,d-c);I==t.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),u=y[0].getParent().paddingLeft!=null?y[0].getParent().paddingLeft:this.margin,this.left=R.x-u,this.right=R.x+R.width+u,this.top=R.y-u,this.bottom=R.y+R.height+u},E.calculateBounds=function(g){for(var _,L,v,T,u=t.MAX_VALUE,I=-t.MAX_VALUE,s=t.MAX_VALUE,c=-t.MAX_VALUE,d=g.length,y=0;y<d;y++){var O=g[y];u>(_=O.getLeft())&&(u=_),I<(L=O.getRight())&&(I=L),s>(v=O.getTop())&&(s=v),c<(T=O.getBottom())&&(c=T)}return new h(u,s,I-u,c-s)},E.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},E.prototype.getEstimatedSize=function(){if(this.estimatedSize==t.MIN_VALUE)throw"assert failed";return this.estimatedSize},E.prototype.calcEstimatedSize=function(){for(var g=0,_=this.nodes,L=_.length,v=0;v<L;v++)g+=_[v].calcEstimatedSize();return this.estimatedSize=g==0?i.EMPTY_COMPOUND_NODE_SIZE:g/Math.sqrt(this.nodes.length),this.estimatedSize},E.prototype.updateConnected=function(){var g=this;if(this.nodes.length!=0){var _,L,v=new l,T=new Set,u=this.nodes[0];for(u.withChildren().forEach(function(d){v.push(d),T.add(d)});v.length!==0;)for(var I=(_=(u=v.shift()).getEdges()).length,s=0;s<I;s++)(L=_[s].getOtherEndInGraph(u,this))==null||T.has(L)||L.withChildren().forEach(function(d){v.push(d),T.add(d)});if(this.isConnected=!1,T.size>=this.nodes.length){var c=0;T.forEach(function(d){d.owner==g&&c++}),c==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},A.exports=E},function(A,f,p){var e,t=p(1);function i(r){e=p(5),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),n=this.layout.newNode(null),o=this.add(r,n);return this.setRootGraph(o),this.rootGraph},i.prototype.add=function(r,n,o,h,a){if(o==null&&h==null&&a==null){if(r==null)throw"Graph is null!";if(n==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(n.child!=null)throw"Already has a child!";return r.parent=n,n.child=r,r}a=o,o=r;var l=(h=n).getOwner(),E=a.getOwner();if(l==null||l.getGraphManager()!=this)throw"Source not in this graph mgr!";if(E==null||E.getGraphManager()!=this)throw"Target not in this graph mgr!";if(l==E)return o.isInterGraph=!1,l.add(o,h,a);if(o.isInterGraph=!0,o.source=h,o.target=a,this.edges.indexOf(o)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(o),o.source==null||o.target==null)throw"Edge source and/or target is null!";if(o.source.edges.indexOf(o)!=-1||o.target.edges.indexOf(o)!=-1)throw"Edge already in source and/or target incidency list!";return o.source.edges.push(o),o.target.edges.push(o),o},i.prototype.remove=function(r){if(r instanceof e){var n=r;if(n.getGraphManager()!=this)throw"Graph not in this graph mgr";if(n!=this.rootGraph&&(n.parent==null||n.parent.graphManager!=this))throw"Invalid parent node!";for(var o,h=[],a=(h=h.concat(n.getEdges())).length,l=0;l<a;l++)o=h[l],n.remove(o);var E,m=[];for(a=(m=m.concat(n.getNodes())).length,l=0;l<a;l++)E=m[l],n.remove(E);n==this.rootGraph&&this.setRootGraph(null);var g=this.graphs.indexOf(n);this.graphs.splice(g,1),n.parent=null}else if(r instanceof t){if((o=r)==null)throw"Edge is null!";if(!o.isInterGraph)throw"Not an inter-graph edge!";if(o.source==null||o.target==null)throw"Source and/or target is null!";if(o.source.edges.indexOf(o)==-1||o.target.edges.indexOf(o)==-1)throw"Source and/or target doesn't know this edge!";if(g=o.source.edges.indexOf(o),o.source.edges.splice(g,1),g=o.target.edges.indexOf(o),o.target.edges.splice(g,1),o.source.owner==null||o.source.owner.getGraphManager()==null)throw"Edge owner graph or owner graph manager is null!";if(o.source.owner.getGraphManager().edges.indexOf(o)==-1)throw"Not in owner graph manager's edge list!";g=o.source.owner.getGraphManager().edges.indexOf(o),o.source.owner.getGraphManager().edges.splice(g,1)}},i.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},i.prototype.getGraphs=function(){return this.graphs},i.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],n=this.getGraphs(),o=n.length,h=0;h<o;h++)r=r.concat(n[h].getNodes());this.allNodes=r}return this.allNodes},i.prototype.resetAllNodes=function(){this.allNodes=null},i.prototype.resetAllEdges=function(){this.allEdges=null},i.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},i.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],n=this.getGraphs();n.length;for(var o=0;o<n.length;o++)r=r.concat(n[o].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},i.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},i.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},i.prototype.getRoot=function(){return this.rootGraph},i.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},i.prototype.getLayout=function(){return this.layout},i.prototype.isOneAncestorOfOther=function(r,n){if(r==null||n==null)throw"assert failed";if(r==n)return!0;for(var o,h=r.getOwner();(o=h.getParent())!=null;){if(o==n)return!0;if((h=o.getOwner())==null)break}for(h=n.getOwner();(o=h.getParent())!=null;){if(o==r)return!0;if((h=o.getOwner())==null)break}return!1},i.prototype.calcLowestCommonAncestors=function(){for(var r,n,o,h,a,l=this.getAllEdges(),E=l.length,m=0;m<E;m++)if(n=(r=l[m]).source,o=r.target,r.lca=null,r.sourceInLca=n,r.targetInLca=o,n!=o){for(h=n.getOwner();r.lca==null;){for(r.targetInLca=o,a=o.getOwner();r.lca==null;){if(a==h){r.lca=a;break}if(a==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=a.getParent(),a=r.targetInLca.getOwner()}if(h==this.rootGraph)break;r.lca==null&&(r.sourceInLca=h.getParent(),h=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}else r.lca=n.getOwner()},i.prototype.calcLowestCommonAncestor=function(r,n){if(r==n)return r.getOwner();for(var o=r.getOwner();o!=null;){for(var h=n.getOwner();h!=null;){if(h==o)return h;h=h.getParent().getOwner()}o=o.getParent().getOwner()}return o},i.prototype.calcInclusionTreeDepths=function(r,n){var o;r==null&&n==null&&(r=this.rootGraph,n=1);for(var h=r.getNodes(),a=h.length,l=0;l<a;l++)(o=h[l]).inclusionTreeDepth=n,o.child!=null&&this.calcInclusionTreeDepths(o.child,n+1)},i.prototype.includesInvalidEdge=function(){for(var r,n=this.edges.length,o=0;o<n;o++)if(r=this.edges[o],this.isOneAncestorOfOther(r.source,r.target))return!0;return!1},A.exports=i},function(A,f,p){var e=p(0);function t(){}for(var i in e)t[i]=e[i];t.MAX_ITERATIONS=2500,t.DEFAULT_EDGE_LENGTH=50,t.DEFAULT_SPRING_STRENGTH=.45,t.DEFAULT_REPULSION_STRENGTH=4500,t.DEFAULT_GRAVITY_STRENGTH=.4,t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,t.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,t.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,t.COOLING_ADAPTATION_FACTOR=.33,t.ADAPTATION_LOWER_NODE_LIMIT=1e3,t.ADAPTATION_UPPER_NODE_LIMIT=5e3,t.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,t.MAX_NODE_DISPLACEMENT=3*t.MAX_NODE_DISPLACEMENT_INCREMENTAL,t.MIN_REPULSION_DIST=t.DEFAULT_EDGE_LENGTH/10,t.CONVERGENCE_CHECK_PERIOD=100,t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,t.MIN_EDGE_LENGTH=1,t.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=t},function(A,f,p){var e=p(12);function t(){}t.calcSeparationAmount=function(i,r,n,o){if(!i.intersects(r))throw"assert failed";var h=new Array(2);this.decideDirectionsForOverlappingNodes(i,r,h),n[0]=Math.min(i.getRight(),r.getRight())-Math.max(i.x,r.x),n[1]=Math.min(i.getBottom(),r.getBottom())-Math.max(i.y,r.y),i.getX()<=r.getX()&&i.getRight()>=r.getRight()?n[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(n[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?n[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(n[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var a=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(a=1);var l=a*n[0],E=n[1]/a;n[0]<E?E=n[0]:l=n[1],n[0]=-1*h[0]*(E/2+o),n[1]=-1*h[1]*(l/2+o)},t.decideDirectionsForOverlappingNodes=function(i,r,n){i.getCenterX()<r.getCenterX()?n[0]=-1:n[0]=1,i.getCenterY()<r.getCenterY()?n[1]=-1:n[1]=1},t.getIntersection2=function(i,r,n){var o=i.getCenterX(),h=i.getCenterY(),a=r.getCenterX(),l=r.getCenterY();if(i.intersects(r))return n[0]=o,n[1]=h,n[2]=a,n[3]=l,!0;var E=i.getX(),m=i.getY(),g=i.getRight(),_=i.getX(),L=i.getBottom(),v=i.getRight(),T=i.getWidthHalf(),u=i.getHeightHalf(),I=r.getX(),s=r.getY(),c=r.getRight(),d=r.getX(),y=r.getBottom(),O=r.getRight(),D=r.getWidthHalf(),w=r.getHeightHalf(),R=!1,C=!1;if(o===a){if(h>l)return n[0]=o,n[1]=m,n[2]=a,n[3]=y,!1;if(h<l)return n[0]=o,n[1]=L,n[2]=a,n[3]=s,!1}else if(h===l){if(o>a)return n[0]=E,n[1]=h,n[2]=c,n[3]=l,!1;if(o<a)return n[0]=g,n[1]=h,n[2]=I,n[3]=l,!1}else{var M=i.height/i.width,G=r.height/r.width,S=(l-h)/(a-o),Y=void 0,F=void 0,P=void 0,b=void 0,k=void 0,U=void 0;if(-M===S?o>a?(n[0]=_,n[1]=L,R=!0):(n[0]=g,n[1]=m,R=!0):M===S&&(o>a?(n[0]=E,n[1]=m,R=!0):(n[0]=v,n[1]=L,R=!0)),-G===S?a>o?(n[2]=d,n[3]=y,C=!0):(n[2]=c,n[3]=s,C=!0):G===S&&(a>o?(n[2]=I,n[3]=s,C=!0):(n[2]=O,n[3]=y,C=!0)),R&&C)return!1;if(o>a?h>l?(Y=this.getCardinalDirection(M,S,4),F=this.getCardinalDirection(G,S,2)):(Y=this.getCardinalDirection(-M,S,3),F=this.getCardinalDirection(-G,S,1)):h>l?(Y=this.getCardinalDirection(-M,S,1),F=this.getCardinalDirection(-G,S,3)):(Y=this.getCardinalDirection(M,S,2),F=this.getCardinalDirection(G,S,4)),!R)switch(Y){case 1:b=m,P=o+-u/S,n[0]=P,n[1]=b;break;case 2:P=v,b=h+T*S,n[0]=P,n[1]=b;break;case 3:b=L,P=o+u/S,n[0]=P,n[1]=b;break;case 4:P=_,b=h+-T*S,n[0]=P,n[1]=b}if(!C)switch(F){case 1:U=s,k=a+-w/S,n[2]=k,n[3]=U;break;case 2:k=O,U=l+D*S,n[2]=k,n[3]=U;break;case 3:U=y,k=a+w/S,n[2]=k,n[3]=U;break;case 4:k=d,U=l+-D*S,n[2]=k,n[3]=U}}return!1},t.getCardinalDirection=function(i,r,n){return i>r?n:1+n%4},t.getIntersection=function(i,r,n,o){if(o==null)return this.getIntersection2(i,r,n);var h,a,l,E,m,g,_,L=i.x,v=i.y,T=r.x,u=r.y,I=n.x,s=n.y,c=o.x,d=o.y;return(_=(h=u-v)*(E=I-c)-(a=d-s)*(l=L-T))===0?null:new e((l*(g=c*s-I*d)-E*(m=T*v-L*u))/_,(a*m-h*g)/_)},t.angleOfVector=function(i,r,n,o){var h=void 0;return i!==n?(h=Math.atan((o-r)/(n-i)),n<i?h+=Math.PI:o<r&&(h+=this.TWO_PI)):h=o<r?this.ONE_AND_HALF_PI:this.HALF_PI,h},t.doIntersect=function(i,r,n,o){var h=i.x,a=i.y,l=r.x,E=r.y,m=n.x,g=n.y,_=o.x,L=o.y,v=(l-h)*(L-g)-(_-m)*(E-a);if(v===0)return!1;var T=((L-g)*(_-h)+(m-_)*(L-a))/v,u=((a-E)*(_-h)+(l-h)*(L-a))/v;return 0<T&&T<1&&0<u&&u<1},t.HALF_PI=.5*Math.PI,t.ONE_AND_HALF_PI=1.5*Math.PI,t.TWO_PI=2*Math.PI,t.THREE_PI=3*Math.PI,A.exports=t},function(A,f,p){function e(){}e.sign=function(t){return t>0?1:t<0?-1:0},e.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},e.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},A.exports=e},function(A,f,p){function e(){}e.MAX_VALUE=2147483647,e.MIN_VALUE=-2147483648,A.exports=e},function(A,f,p){var e=function(){function o(h,a){for(var l=0;l<a.length;l++){var E=a[l];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(h,E.key,E)}}return function(h,a,l){return a&&o(h.prototype,a),l&&o(h,l),h}}(),t=function(o){return{value:o,next:null,prev:null}},i=function(o,h,a,l){return o!==null?o.next=h:l.head=h,a!==null?a.prev=h:l.tail=h,h.prev=o,h.next=a,l.length++,h},r=function(o,h){var a=o.prev,l=o.next;return a!==null?a.next=l:h.head=l,l!==null?l.prev=a:h.tail=a,o.prev=o.next=null,h.length--,o},n=function(){function o(h){var a=this;(function(l,E){if(!(l instanceof E))throw new TypeError("Cannot call a class as a function")})(this,o),this.length=0,this.head=null,this.tail=null,h!=null&&h.forEach(function(l){return a.push(l)})}return e(o,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(h,a){return i(a.prev,t(h),a,this)}},{key:"insertAfter",value:function(h,a){return i(a,t(h),a.next,this)}},{key:"insertNodeBefore",value:function(h,a){return i(a.prev,h,a,this)}},{key:"insertNodeAfter",value:function(h,a){return i(a,h,a.next,this)}},{key:"push",value:function(h){return i(this.tail,t(h),null,this)}},{key:"unshift",value:function(h){return i(null,t(h),this.head,this)}},{key:"remove",value:function(h){return r(h,this)}},{key:"pop",value:function(){return r(this.tail,this).value}},{key:"popNode",value:function(){return r(this.tail,this)}},{key:"shift",value:function(){return r(this.head,this).value}},{key:"shiftNode",value:function(){return r(this.head,this)}},{key:"get_object_at",value:function(h){if(h<=this.length()){for(var a=1,l=this.head;a<h;)l=l.next,a++;return l.value}}},{key:"set_object_at",value:function(h,a){if(h<=this.length()){for(var l=1,E=this.head;l<h;)E=E.next,l++;E.value=a}}}]),o}();A.exports=n},function(A,f,p){function e(t,i,r){this.x=null,this.y=null,t==null&&i==null&&r==null?(this.x=0,this.y=0):typeof t=="number"&&typeof i=="number"&&r==null?(this.x=t,this.y=i):t.constructor.name=="Point"&&i==null&&r==null&&(r=t,this.x=r.x,this.y=r.y)}e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.getLocation=function(){return new e(this.x,this.y)},e.prototype.setLocation=function(t,i,r){t.constructor.name=="Point"&&i==null&&r==null?(r=t,this.setLocation(r.x,r.y)):typeof t=="number"&&typeof i=="number"&&r==null&&(parseInt(t)==t&&parseInt(i)==i?this.move(t,i):(this.x=Math.floor(t+.5),this.y=Math.floor(i+.5)))},e.prototype.move=function(t,i){this.x=t,this.y=i},e.prototype.translate=function(t,i){this.x+=t,this.y+=i},e.prototype.equals=function(t){if(t.constructor.name=="Point"){var i=t;return this.x==i.x&&this.y==i.y}return this==t},e.prototype.toString=function(){return new e().constructor.name+"[x="+this.x+",y="+this.y+"]"},A.exports=e},function(A,f,p){function e(t,i,r,n){this.x=0,this.y=0,this.width=0,this.height=0,t!=null&&i!=null&&r!=null&&n!=null&&(this.x=t,this.y=i,this.width=r,this.height=n)}e.prototype.getX=function(){return this.x},e.prototype.setX=function(t){this.x=t},e.prototype.getY=function(){return this.y},e.prototype.setY=function(t){this.y=t},e.prototype.getWidth=function(){return this.width},e.prototype.setWidth=function(t){this.width=t},e.prototype.getHeight=function(){return this.height},e.prototype.setHeight=function(t){this.height=t},e.prototype.getRight=function(){return this.x+this.width},e.prototype.getBottom=function(){return this.y+this.height},e.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},e.prototype.getCenterX=function(){return this.x+this.width/2},e.prototype.getMinX=function(){return this.getX()},e.prototype.getMaxX=function(){return this.getX()+this.width},e.prototype.getCenterY=function(){return this.y+this.height/2},e.prototype.getMinY=function(){return this.getY()},e.prototype.getMaxY=function(){return this.getY()+this.height},e.prototype.getWidthHalf=function(){return this.width/2},e.prototype.getHeightHalf=function(){return this.height/2},A.exports=e},function(A,f,p){var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};function t(){}t.lastID=0,t.createID=function(i){return t.isPrimitive(i)?i:(i.uniqueID!=null||(i.uniqueID=t.getString(),t.lastID++),i.uniqueID)},t.getString=function(i){return i==null&&(i=t.lastID),"Object#"+i},t.isPrimitive=function(i){var r=i===void 0?"undefined":e(i);return i==null||r!="object"&&r!="function"},A.exports=t},function(A,f,p){function e(m){if(Array.isArray(m)){for(var g=0,_=Array(m.length);g<m.length;g++)_[g]=m[g];return _}return Array.from(m)}var t=p(0),i=p(6),r=p(3),n=p(1),o=p(5),h=p(4),a=p(17),l=p(27);function E(m){l.call(this),this.layoutQuality=t.QUALITY,this.createBendsAsNeeded=t.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=t.DEFAULT_INCREMENTAL,this.animationOnLayout=t.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=t.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=t.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=t.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new i(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,m!=null&&(this.isRemoteUse=m)}E.RANDOM_SEED=1,E.prototype=Object.create(l.prototype),E.prototype.getGraphManager=function(){return this.graphManager},E.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},E.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},E.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},E.prototype.newGraphManager=function(){var m=new i(this);return this.graphManager=m,m},E.prototype.newGraph=function(m){return new o(null,this.graphManager,m)},E.prototype.newNode=function(m){return new r(this.graphManager,m)},E.prototype.newEdge=function(m){return new n(null,null,m)},E.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},E.prototype.runLayout=function(){var m;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),m=!this.checkLayoutSuccess()&&this.layout(),t.ANIMATE!=="during"&&(m&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,m)},E.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},E.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var m=this.graphManager.getAllEdges(),g=0;g<m.length;g++)m[g];var _=this.graphManager.getRoot().getNodes();for(g=0;g<_.length;g++)_[g];this.update(this.graphManager.getRoot())}},E.prototype.update=function(m){if(m==null)this.update2();else if(m instanceof r){var g=m;if(g.getChild()!=null)for(var _=g.getChild().getNodes(),L=0;L<_.length;L++)update(_[L]);g.vGraphObject!=null&&g.vGraphObject.update(g)}else if(m instanceof n){var v=m;v.vGraphObject!=null&&v.vGraphObject.update(v)}else if(m instanceof o){var T=m;T.vGraphObject!=null&&T.vGraphObject.update(T)}},E.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=t.QUALITY,this.animationDuringLayout=t.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=t.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=t.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=t.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=t.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=t.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},E.prototype.transform=function(m){if(m==null)this.transform(new h(0,0));else{var g=new a,_=this.graphManager.getRoot().updateLeftTop();if(_!=null){g.setWorldOrgX(m.x),g.setWorldOrgY(m.y),g.setDeviceOrgX(_.x),g.setDeviceOrgY(_.y);for(var L=this.getAllNodes(),v=0;v<L.length;v++)L[v].transform(g)}}},E.prototype.positionNodesRandomly=function(m){if(m==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var g,_,L=m.getNodes(),v=0;v<L.length;v++)(_=(g=L[v]).getChild())==null||_.getNodes().length==0?g.scatter():(this.positionNodesRandomly(_),g.updateBounds())},E.prototype.getFlatForest=function(){for(var m=[],g=!0,_=this.graphManager.getRoot().getNodes(),L=!0,v=0;v<_.length;v++)_[v].getChild()!=null&&(L=!1);if(!L)return m;var T=new Set,u=[],I=new Map,s=[];for(s=s.concat(_);s.length>0&&g;){for(u.push(s[0]);u.length>0&&g;){var c=u[0];u.splice(0,1),T.add(c);var d=c.getEdges();for(v=0;v<d.length;v++){var y=d[v].getOtherEnd(c);if(I.get(c)!=y){if(T.has(y)){g=!1;break}u.push(y),I.set(y,c)}}}if(g){var O=[].concat(e(T));for(m.push(O),v=0;v<O.length;v++){var D=O[v],w=s.indexOf(D);w>-1&&s.splice(w,1)}T=new Set,I=new Map}else m=[]}return m},E.prototype.createDummyNodesForBendpoints=function(m){for(var g=[],_=m.source,L=this.graphManager.calcLowestCommonAncestor(m.source,m.target),v=0;v<m.bendpoints.length;v++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),L.add(T);var u=this.newEdge(null);this.graphManager.add(u,_,T),g.add(T),_=T}return u=this.newEdge(null),this.graphManager.add(u,_,m.target),this.edgeToDummyNodes.set(m,g),m.isInterGraph()?this.graphManager.remove(m):L.remove(m),g},E.prototype.createBendpointsFromDummyNodes=function(){var m=[];m=m.concat(this.graphManager.getAllEdges()),m=[].concat(e(this.edgeToDummyNodes.keys())).concat(m);for(var g=0;g<m.length;g++){var _=m[g];if(_.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(_),v=0;v<L.length;v++){var T=L[v],u=new h(T.getCenterX(),T.getCenterY()),I=_.bendpoints.get(v);I.x=u.x,I.y=u.y,T.getOwner().remove(T)}this.graphManager.add(_,_.source,_.target)}}},E.transform=function(m,g,_,L){if(_!=null&&L!=null){var v=g;return m<=50?v-=(g-g/_)/50*(50-m):v+=(g*L-g)/50*(m-50),v}var T,u;return m<=50?(T=9*g/500,u=g/10):(T=9*g/50,u=-8*g),T*m+u},E.findCenterOfTree=function(m){var g=[];g=g.concat(m);var _=[],L=new Map,v=!1,T=null;g.length!=1&&g.length!=2||(v=!0,T=g[0]);for(var u=0;u<g.length;u++){var I=(d=g[u]).getNeighborsList().size;L.set(d,d.getNeighborsList().size),I==1&&_.push(d)}var s=[];for(s=s.concat(_);!v;){var c=[];for(c=c.concat(s),s=[],u=0;u<g.length;u++){var d=g[u],y=g.indexOf(d);y>=0&&g.splice(y,1),d.getNeighborsList().forEach(function(O){if(_.indexOf(O)<0){var D=L.get(O)-1;D==1&&s.push(O),L.set(O,D)}})}_=_.concat(s),g.length!=1&&g.length!=2||(v=!0,T=g[0])}return T},E.prototype.setGraphManager=function(m){this.graphManager=m},A.exports=E},function(A,f,p){function e(){}e.seed=1,e.x=0,e.nextDouble=function(){return e.x=1e4*Math.sin(e.seed++),e.x-Math.floor(e.x)},A.exports=e},function(A,f,p){var e=p(4);function t(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(i){this.lworldExtX=i},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(i){this.lworldExtY=i},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},t.prototype.transformX=function(i){var r=0,n=this.lworldExtX;return n!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/n),r},t.prototype.transformY=function(i){var r=0,n=this.lworldExtY;return n!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/n),r},t.prototype.inverseTransformX=function(i){var r=0,n=this.ldeviceExtX;return n!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/n),r},t.prototype.inverseTransformY=function(i){var r=0,n=this.ldeviceExtY;return n!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/n),r},t.prototype.inverseTransformPoint=function(i){return new e(this.inverseTransformX(i.x),this.inverseTransformY(i.y))},A.exports=t},function(A,f,p){var e=p(15),t=p(7),i=p(0),r=p(8),n=p(9);function o(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}for(var h in o.prototype=Object.create(e.prototype),e)o[h]=e[h];o.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},o.prototype.calcIdealEdgeLengths=function(){for(var a,l,E,m,g,_,L=this.getGraphManager().getAllEdges(),v=0;v<L.length;v++)(a=L[v]).idealLength=this.idealEdgeLength,a.isInterGraph&&(E=a.getSource(),m=a.getTarget(),g=a.getSourceInLca().getEstimatedSize(),_=a.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(a.idealLength+=g+_-2*i.SIMPLE_NODE_SIZE),l=a.getLca().getInclusionTreeDepth(),a.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(E.getInclusionTreeDepth()+m.getInclusionTreeDepth()-2*l))},o.prototype.initSpringEmbedder=function(){var a=this.getAllNodes().length;this.incremental?(a>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(a-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(a>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(a-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},o.prototype.calcSpringForces=function(){for(var a,l=this.getAllEdges(),E=0;E<l.length;E++)a=l[E],this.calcSpringForce(a,a.idealLength)},o.prototype.calcRepulsionForces=function(){var a,l,E,m,g,_=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],L=arguments.length>1&&arguments[1]!==void 0&&arguments[1],v=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&_&&this.updateGrid(),g=new Set,a=0;a<v.length;a++)E=v[a],this.calculateRepulsionForceOfANode(E,g,_,L),g.add(E);else for(a=0;a<v.length;a++)for(E=v[a],l=a+1;l<v.length;l++)m=v[l],E.getOwner()==m.getOwner()&&this.calcRepulsionForce(E,m)},o.prototype.calcGravitationalForces=function(){for(var a,l=this.getAllNodesToApplyGravitation(),E=0;E<l.length;E++)a=l[E],this.calcGravitationalForce(a)},o.prototype.moveNodes=function(){for(var a=this.getAllNodes(),l=0;l<a.length;l++)a[l].move()},o.prototype.calcSpringForce=function(a,l){var E,m,g,_,L=a.getSource(),v=a.getTarget();if(this.uniformLeafNodeSizes&&L.getChild()==null&&v.getChild()==null)a.updateLengthSimple();else if(a.updateLength(),a.isOverlapingSourceAndTarget)return;(E=a.getLength())!=0&&(g=(m=this.springConstant*(E-l))*(a.lengthX/E),_=m*(a.lengthY/E),L.springForceX+=g,L.springForceY+=_,v.springForceX-=g,v.springForceY-=_)},o.prototype.calcRepulsionForce=function(a,l){var E,m,g,_,L,v,T,u=a.getRect(),I=l.getRect(),s=new Array(2),c=new Array(4);if(u.intersects(I)){r.calcSeparationAmount(u,I,s,t.DEFAULT_EDGE_LENGTH/2),v=2*s[0],T=2*s[1];var d=a.noOfChildren*l.noOfChildren/(a.noOfChildren+l.noOfChildren);a.repulsionForceX-=d*v,a.repulsionForceY-=d*T,l.repulsionForceX+=d*v,l.repulsionForceY+=d*T}else this.uniformLeafNodeSizes&&a.getChild()==null&&l.getChild()==null?(E=I.getCenterX()-u.getCenterX(),m=I.getCenterY()-u.getCenterY()):(r.getIntersection(u,I,c),E=c[2]-c[0],m=c[3]-c[1]),Math.abs(E)<t.MIN_REPULSION_DIST&&(E=n.sign(E)*t.MIN_REPULSION_DIST),Math.abs(m)<t.MIN_REPULSION_DIST&&(m=n.sign(m)*t.MIN_REPULSION_DIST),g=E*E+m*m,_=Math.sqrt(g),v=(L=this.repulsionConstant*a.noOfChildren*l.noOfChildren/g)*E/_,T=L*m/_,a.repulsionForceX-=v,a.repulsionForceY-=T,l.repulsionForceX+=v,l.repulsionForceY+=T},o.prototype.calcGravitationalForce=function(a){var l,E,m,g,_,L,v,T;E=((l=a.getOwner()).getRight()+l.getLeft())/2,m=(l.getTop()+l.getBottom())/2,g=a.getCenterX()-E,_=a.getCenterY()-m,L=Math.abs(g)+a.getWidth()/2,v=Math.abs(_)+a.getHeight()/2,a.getOwner()==this.graphManager.getRoot()?(L>(T=l.getEstimatedSize()*this.gravityRangeFactor)||v>T)&&(a.gravitationForceX=-this.gravityConstant*g,a.gravitationForceY=-this.gravityConstant*_):(L>(T=l.getEstimatedSize()*this.compoundGravityRangeFactor)||v>T)&&(a.gravitationForceX=-this.gravityConstant*g*this.compoundGravityConstant,a.gravitationForceY=-this.gravityConstant*_*this.compoundGravityConstant)},o.prototype.isConverged=function(){var a,l=!1;return this.totalIterations>this.maxIterations/3&&(l=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),a=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,a||l},o.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},o.prototype.calcNoOfChildrenForAllNodes=function(){for(var a,l=this.graphManager.getAllNodes(),E=0;E<l.length;E++)(a=l[E]).noOfChildren=a.getNoOfChildren()},o.prototype.calcGrid=function(a){var l,E;l=parseInt(Math.ceil((a.getRight()-a.getLeft())/this.repulsionRange)),E=parseInt(Math.ceil((a.getBottom()-a.getTop())/this.repulsionRange));for(var m=new Array(l),g=0;g<l;g++)m[g]=new Array(E);for(g=0;g<l;g++)for(var _=0;_<E;_++)m[g][_]=new Array;return m},o.prototype.addNodeToGrid=function(a,l,E){var m,g,_,L;m=parseInt(Math.floor((a.getRect().x-l)/this.repulsionRange)),g=parseInt(Math.floor((a.getRect().width+a.getRect().x-l)/this.repulsionRange)),_=parseInt(Math.floor((a.getRect().y-E)/this.repulsionRange)),L=parseInt(Math.floor((a.getRect().height+a.getRect().y-E)/this.repulsionRange));for(var v=m;v<=g;v++)for(var T=_;T<=L;T++)this.grid[v][T].push(a),a.setGridCoordinates(m,g,_,L)},o.prototype.updateGrid=function(){var a,l,E=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),a=0;a<E.length;a++)l=E[a],this.addNodeToGrid(l,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(a,l,E,m){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&E||m){var g,_=new Set;a.surrounding=new Array;for(var L=this.grid,v=a.startX-1;v<a.finishX+2;v++)for(var T=a.startY-1;T<a.finishY+2;T++)if(!(v<0||T<0||v>=L.length||T>=L[0].length)){for(var u=0;u<L[v][T].length;u++)if(g=L[v][T][u],a.getOwner()==g.getOwner()&&a!=g&&!l.has(g)&&!_.has(g)){var I=Math.abs(a.getCenterX()-g.getCenterX())-(a.getWidth()/2+g.getWidth()/2),s=Math.abs(a.getCenterY()-g.getCenterY())-(a.getHeight()/2+g.getHeight()/2);I<=this.repulsionRange&&s<=this.repulsionRange&&_.add(g)}}a.surrounding=[].concat(function(c){if(Array.isArray(c)){for(var d=0,y=Array(c.length);d<c.length;d++)y[d]=c[d];return y}return Array.from(c)}(_))}for(v=0;v<a.surrounding.length;v++)this.calcRepulsionForce(a,a.surrounding[v])},o.prototype.calcRepulsionRange=function(){return 0},A.exports=o},function(A,f,p){var e=p(1),t=p(7);function i(n,o,h){e.call(this,n,o,h),this.idealLength=t.DEFAULT_EDGE_LENGTH}for(var r in i.prototype=Object.create(e.prototype),e)i[r]=e[r];A.exports=i},function(A,f,p){var e=p(3);function t(r,n,o,h){e.call(this,r,n,o,h),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];t.prototype.setGridCoordinates=function(r,n,o,h){this.startX=r,this.finishX=n,this.startY=o,this.finishY=h},A.exports=t},function(A,f,p){function e(t,i){this.width=0,this.height=0,t!==null&&i!==null&&(this.height=i,this.width=t)}e.prototype.getWidth=function(){return this.width},e.prototype.setWidth=function(t){this.width=t},e.prototype.getHeight=function(){return this.height},e.prototype.setHeight=function(t){this.height=t},A.exports=e},function(A,f,p){var e=p(14);function t(){this.map={},this.keys=[]}t.prototype.put=function(i,r){var n=e.createID(i);this.contains(n)||(this.map[n]=r,this.keys.push(i))},t.prototype.contains=function(i){return e.createID(i),this.map[i]!=null},t.prototype.get=function(i){var r=e.createID(i);return this.map[r]},t.prototype.keySet=function(){return this.keys},A.exports=t},function(A,f,p){var e=p(14);function t(){this.set={}}t.prototype.add=function(i){var r=e.createID(i);this.contains(r)||(this.set[r]=i)},t.prototype.remove=function(i){delete this.set[e.createID(i)]},t.prototype.clear=function(){this.set={}},t.prototype.contains=function(i){return this.set[e.createID(i)]==i},t.prototype.isEmpty=function(){return this.size()===0},t.prototype.size=function(){return Object.keys(this.set).length},t.prototype.addAllTo=function(i){for(var r=Object.keys(this.set),n=r.length,o=0;o<n;o++)i.push(this.set[r[o]])},t.prototype.size=function(){return Object.keys(this.set).length},t.prototype.addAll=function(i){for(var r=i.length,n=0;n<r;n++){var o=i[n];this.add(o)}},A.exports=t},function(A,f,p){var e=function(){function r(n,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,o,h){return o&&r(n.prototype,o),h&&r(n,h),n}}(),t=p(11),i=function(){function r(n,o){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,r),o===null&&o===void 0||(this.compareFunction=this._defaultCompareFunction);var h=void 0;h=n instanceof t?n.size():n.length,this._quicksort(n,0,h-1)}return e(r,[{key:"_quicksort",value:function(n,o,h){if(o<h){var a=this._partition(n,o,h);this._quicksort(n,o,a),this._quicksort(n,a+1,h)}}},{key:"_partition",value:function(n,o,h){for(var a=this._get(n,o),l=o,E=h;;){for(;this.compareFunction(a,this._get(n,E));)E--;for(;this.compareFunction(this._get(n,l),a);)l++;if(!(l<E))return E;this._swap(n,l,E),l++,E--}}},{key:"_get",value:function(n,o){return n instanceof t?n.get_object_at(o):n[o]}},{key:"_set",value:function(n,o,h){n instanceof t?n.set_object_at(o,h):n[o]=h}},{key:"_swap",value:function(n,o,h){var a=this._get(n,o);this._set(n,o,this._get(n,h)),this._set(n,h,a)}},{key:"_defaultCompareFunction",value:function(n,o){return o>n}}]),r}();A.exports=i},function(A,f,p){var e=function(){function i(r,n){for(var o=0;o<n.length;o++){var h=n[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}return function(r,n,o){return n&&i(r.prototype,n),o&&i(r,o),r}}(),t=function(){function i(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;(function(_,L){if(!(_ instanceof L))throw new TypeError("Cannot call a class as a function")})(this,i),this.sequence1=r,this.sequence2=n,this.match_score=o,this.mismatch_penalty=h,this.gap_penalty=a,this.iMax=r.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var l=0;l<this.iMax;l++){this.grid[l]=new Array(this.jMax);for(var E=0;E<this.jMax;E++)this.grid[l][E]=0}this.tracebackGrid=new Array(this.iMax);for(var m=0;m<this.iMax;m++){this.tracebackGrid[m]=new Array(this.jMax);for(var g=0;g<this.jMax;g++)this.tracebackGrid[m][g]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return e(i,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var r=1;r<this.jMax;r++)this.grid[0][r]=this.grid[0][r-1]+this.gap_penalty,this.tracebackGrid[0][r]=[!1,!1,!0];for(var n=1;n<this.iMax;n++)this.grid[n][0]=this.grid[n-1][0]+this.gap_penalty,this.tracebackGrid[n][0]=[!1,!0,!1];for(var o=1;o<this.iMax;o++)for(var h=1;h<this.jMax;h++){var a=[this.sequence1[o-1]===this.sequence2[h-1]?this.grid[o-1][h-1]+this.match_score:this.grid[o-1][h-1]+this.mismatch_penalty,this.grid[o-1][h]+this.gap_penalty,this.grid[o][h-1]+this.gap_penalty],l=this.arrayAllMaxIndexes(a);this.grid[o][h]=a[l[0]],this.tracebackGrid[o][h]=[l.includes(0),l.includes(1),l.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var r=[];for(r.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});r[0];){var n=r[0],o=this.tracebackGrid[n.pos[0]][n.pos[1]];o[0]&&r.push({pos:[n.pos[0]-1,n.pos[1]-1],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),o[1]&&r.push({pos:[n.pos[0]-1,n.pos[1]],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:"-"+n.seq2}),o[2]&&r.push({pos:[n.pos[0],n.pos[1]-1],seq1:"-"+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),n.pos[0]===0&&n.pos[1]===0&&this.alignments.push({sequence1:n.seq1,sequence2:n.seq2}),r.shift()}return this.alignments}},{key:"getAllIndexes",value:function(r,n){for(var o=[],h=-1;(h=r.indexOf(n,h+1))!==-1;)o.push(h);return o}},{key:"arrayAllMaxIndexes",value:function(r){return this.getAllIndexes(r,Math.max.apply(null,r))}}]),i}();A.exports=t},function(A,f,p){var e=function(){};e.FDLayout=p(18),e.FDLayoutConstants=p(7),e.FDLayoutEdge=p(19),e.FDLayoutNode=p(20),e.DimensionD=p(21),e.HashMap=p(22),e.HashSet=p(23),e.IGeometry=p(8),e.IMath=p(9),e.Integer=p(10),e.Point=p(12),e.PointD=p(4),e.RandomSeed=p(16),e.RectangleD=p(13),e.Transform=p(17),e.UniqueIDGeneretor=p(14),e.Quicksort=p(24),e.LinkedList=p(11),e.LGraphObject=p(2),e.LGraph=p(5),e.LEdge=p(1),e.LGraphManager=p(6),e.LNode=p(3),e.Layout=p(15),e.LayoutConstants=p(0),e.NeedlemanWunsch=p(25),A.exports=e},function(A,f,p){function e(){this.listeners=[]}var t=e.prototype;t.addListener=function(i,r){this.listeners.push({event:i,callback:r})},t.removeListener=function(i,r){for(var n=this.listeners.length;n>=0;n--){var o=this.listeners[n];o.event===i&&o.callback===r&&this.listeners.splice(n,1)}},t.emit=function(i,r){for(var n=0;n<this.listeners.length;n++){var o=this.listeners[n];i===o.event&&o.callback(r)}},A.exports=e}])},lt.exports=N());var N}var gt,ct,ut,wt=(ct||(ct=1,ut=function(N){return function(A){var f={};function p(e){if(f[e])return f[e].exports;var t=f[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,p),t.l=!0,t.exports}return p.m=A,p.c=f,p.i=function(e){return e},p.d=function(e,t,i){p.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,"a",t),t},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.p="",p(p.s=1)}([function(A,f){A.exports=N},function(A,f,p){var e=p(0).layoutBase.LayoutConstants,t=p(0).layoutBase.FDLayoutConstants,i=p(0).CoSEConstants,r=p(0).CoSELayout,n=p(0).CoSENode,o=p(0).layoutBase.PointD,h=p(0).layoutBase.DimensionD,a={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function l(g){this.options=function(_,L){var v={};for(var T in _)v[T]=_[T];for(var T in L)v[T]=L[T];return v}(a,g),E(this.options)}var E=function(g){g.nodeRepulsion!=null&&(i.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=g.nodeRepulsion),g.idealEdgeLength!=null&&(i.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=g.idealEdgeLength),g.edgeElasticity!=null&&(i.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=g.edgeElasticity),g.nestingFactor!=null&&(i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.nestingFactor),g.gravity!=null&&(i.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=g.gravity),g.numIter!=null&&(i.MAX_ITERATIONS=t.MAX_ITERATIONS=g.numIter),g.gravityRange!=null&&(i.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=g.gravityRange),g.gravityCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.gravityCompound),g.gravityRangeCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.gravityRangeCompound),g.initialEnergyOnIncremental!=null&&(i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.initialEnergyOnIncremental),g.quality=="draft"?e.QUALITY=0:g.quality=="proof"?e.QUALITY=2:e.QUALITY=1,i.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=g.nodeDimensionsIncludeLabels,i.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!g.randomize,i.ANIMATE=t.ANIMATE=e.ANIMATE=g.animate,i.TILE=g.tile,i.TILING_PADDING_VERTICAL=typeof g.tilingPaddingVertical=="function"?g.tilingPaddingVertical.call():g.tilingPaddingVertical,i.TILING_PADDING_HORIZONTAL=typeof g.tilingPaddingHorizontal=="function"?g.tilingPaddingHorizontal.call():g.tilingPaddingHorizontal};l.prototype.run=function(){var g,_,L=this.options;this.idToLNode={};var v=this.layout=new r,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var u=v.newGraphManager();this.gm=u;var I=this.options.eles.nodes(),s=this.options.eles.edges();this.root=u.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(I),v);for(var c=0;c<s.length;c++){var d=s[c],y=this.idToLNode[d.data("source")],O=this.idToLNode[d.data("target")];y!==O&&y.getEdgesBetween(O).length==0&&(u.add(v.newEdge(),y,O).id=d.id())}var D=function(R,C){typeof R=="number"&&(R=C);var M=R.data("id"),G=T.idToLNode[M];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},w=function R(){for(var C,M=function(){L.fit&&L.cy.fit(L.eles,L.padding),g||(g=!0,T.cy.one("layoutready",L.ready),T.cy.trigger({type:"layoutready",layout:T}))},G=T.options.refresh,S=0;S<G&&!C;S++)C=T.stopped||T.layout.tick();if(C)return v.checkLayoutSuccess()&&!v.isSubLayout&&v.doPostLayout(),v.tilingPostLayout&&v.tilingPostLayout(),v.isLayoutFinished=!0,T.options.eles.nodes().positions(D),M(),T.cy.one("layoutstop",T.options.stop),T.cy.trigger({type:"layoutstop",layout:T}),_&&cancelAnimationFrame(_),void(g=!1);var Y=T.layout.getPositionsData();L.eles.nodes().positions(function(F,P){if(typeof F=="number"&&(F=P),!F.isParent()){for(var b=F.id(),k=Y[b],U=F;k==null&&(k=Y[U.data("parent")]||Y["DummyCompound_"+U.data("parent")],Y[b]=k,(U=U.parent()[0])!=null););return k!=null?{x:k.x,y:k.y}:{x:F.position("x"),y:F.position("y")}}}),M(),_=requestAnimationFrame(R)};return v.addListener("layoutstarted",function(){T.options.animate==="during"&&(_=requestAnimationFrame(w))}),v.runLayout(),this.options.animate!=="during"&&(T.options.eles.nodes().not(":parent").layoutPositions(T,T.options,D),g=!1),this},l.prototype.getTopMostNodes=function(g){for(var _={},L=0;L<g.length;L++)_[g[L].id()]=!0;var v=g.filter(function(T,u){typeof T=="number"&&(T=u);for(var I=T.parent()[0];I!=null;){if(_[I.id()])return!1;I=I.parent()[0]}return!0});return v},l.prototype.processChildrenList=function(g,_,L){for(var v=_.length,T=0;T<v;T++){var u,I,s=_[T],c=s.children(),d=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((u=s.outerWidth()!=null&&s.outerHeight()!=null?g.add(new n(L.graphManager,new o(s.position("x")-d.w/2,s.position("y")-d.h/2),new h(parseFloat(d.w),parseFloat(d.h)))):g.add(new n(this.graphManager))).id=s.data("id"),u.paddingLeft=parseInt(s.css("padding")),u.paddingTop=parseInt(s.css("padding")),u.paddingRight=parseInt(s.css("padding")),u.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var y=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,O=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,D=s.css("text-halign");u.labelWidth=y,u.labelHeight=O,u.labelPos=D}this.idToLNode[s.data("id")]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),c!=null&&c.length>0&&(I=L.getGraphManager().add(L.newGraph(),u),this.processChildrenList(I,c,L))}},l.prototype.stop=function(){return this.stopped=!0,this};var m=function(g){g("layout","cose-bilkent",l)};typeof cytoscape<"u"&&m(cytoscape),A.exports=m}])},at.exports=ut(function(){return gt?ht.exports:(gt=1,N=function(A){return function(f){var p={};function e(t){if(p[t])return p[t].exports;var i=p[t]={i:t,l:!1,exports:{}};return f[t].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=f,e.c=p,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=7)}([function(f,p){f.exports=A},function(f,p,e){var t=e(0).FDLayoutConstants;function i(){}for(var r in t)i[r]=t[r];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=t.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,f.exports=i},function(f,p,e){var t=e(0).FDLayoutEdge;function i(n,o,h){t.call(this,n,o,h)}for(var r in i.prototype=Object.create(t.prototype),t)i[r]=t[r];f.exports=i},function(f,p,e){var t=e(0).LGraph;function i(n,o,h){t.call(this,n,o,h)}for(var r in i.prototype=Object.create(t.prototype),t)i[r]=t[r];f.exports=i},function(f,p,e){var t=e(0).LGraphManager;function i(n){t.call(this,n)}for(var r in i.prototype=Object.create(t.prototype),t)i[r]=t[r];f.exports=i},function(f,p,e){var t=e(0).FDLayoutNode,i=e(0).IMath;function r(o,h,a,l){t.call(this,o,h,a,l)}for(var n in r.prototype=Object.create(t.prototype),t)r[n]=t[n];r.prototype.move=function(){var o=this.graphManager.getLayout();this.displacementX=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),o.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(o,h){for(var a,l=this.getChild().getNodes(),E=0;E<l.length;E++)(a=l[E]).getChild()==null?(a.moveBy(o,h),a.displacementX+=o,a.displacementY+=h):a.propogateDisplacementToChildren(o,h)},r.prototype.setPred1=function(o){this.pred1=o},r.prototype.getPred1=function(){return pred1},r.prototype.getPred2=function(){return pred2},r.prototype.setNext=function(o){this.next=o},r.prototype.getNext=function(){return next},r.prototype.setProcessed=function(o){this.processed=o},r.prototype.isProcessed=function(){return processed},f.exports=r},function(f,p,e){var t=e(0).FDLayout,i=e(4),r=e(3),n=e(5),o=e(2),h=e(1),a=e(0).FDLayoutConstants,l=e(0).LayoutConstants,E=e(0).Point,m=e(0).PointD,g=e(0).Layout,_=e(0).Integer,L=e(0).IGeometry,v=e(0).LGraph,T=e(0).Transform;function u(){t.call(this),this.toBeTiled={}}for(var I in u.prototype=Object.create(t.prototype),t)u[I]=t[I];u.prototype.newGraphManager=function(){var s=new i(this);return this.graphManager=s,s},u.prototype.newGraph=function(s){return new r(null,this.graphManager,s)},u.prototype.newNode=function(s){return new n(this.graphManager,s)},u.prototype.newEdge=function(s){return new o(null,null,s)},u.prototype.initParameters=function(){t.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=a.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=a.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/a.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=a.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},u.prototype.layout=function(){return l.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},u.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)h.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),c=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(y){return c.has(y)}),this.graphManager.setAllNodesToApplyGravitation(d));else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var c=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(y){return c.has(y)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},u.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%a.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(O){return s.has(O)});this.graphManager.setAllNodesToApplyGravitation(c),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,y=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,y),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},u.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),c={},d=0;d<s.length;d++){var y=s[d].rect,O=s[d].id;c[O]={id:O,x:y.getCenterX(),y:y.getCenterY(),w:y.width,h:y.height}}return c},u.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(a.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},u.prototype.calculateNodesToApplyGravitationTo=function(){var s,c,d=[],y=this.graphManager.getGraphs(),O=y.length;for(c=0;c<O;c++)(s=y[c]).updateConnected(),s.isConnected||(d=d.concat(s.getNodes()));return d},u.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var c,d=new Set;for(c=0;c<s.length;c++){var y=s[c];if(!d.has(y)){var O=y.getSource(),D=y.getTarget();if(O==D)y.getBendpoints().push(new m),y.getBendpoints().push(new m),this.createDummyNodesForBendpoints(y),d.add(y);else{var w=[];if(w=(w=w.concat(O.getEdgeListToNode(D))).concat(D.getEdgeListToNode(O)),!d.has(w[0])){var R;if(w.length>1)for(R=0;R<w.length;R++){var C=w[R];C.getBendpoints().push(new m),this.createDummyNodesForBendpoints(C)}w.forEach(function(M){d.add(M)})}}}if(d.size==s.length)break}},u.prototype.positionNodesRadially=function(s){for(var c=new E(0,0),d=Math.ceil(Math.sqrt(s.length)),y=0,O=0,D=0,w=new m(0,0),R=0;R<s.length;R++){R%d==0&&(D=0,O=y,R!=0&&(O+=h.DEFAULT_COMPONENT_SEPERATION),y=0);var C=s[R],M=g.findCenterOfTree(C);c.x=D,c.y=O,(w=u.radialLayout(C,M,c)).y>y&&(y=Math.floor(w.y)),D=Math.floor(w.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(l.WORLD_CENTER_X-w.x/2,l.WORLD_CENTER_Y-w.y/2))},u.radialLayout=function(s,c,d){var y=Math.max(this.maxDiagonalInTree(s),h.DEFAULT_RADIAL_SEPARATION);u.branchRadialLayout(c,null,0,359,0,y);var O=v.calculateBounds(s),D=new T;D.setDeviceOrgX(O.getMinX()),D.setDeviceOrgY(O.getMinY()),D.setWorldOrgX(d.x),D.setWorldOrgY(d.y);for(var w=0;w<s.length;w++)s[w].transform(D);var R=new m(O.getMaxX(),O.getMaxY());return D.inverseTransformPoint(R)},u.branchRadialLayout=function(s,c,d,y,O,D){var w=(y-d+1)/2;w<0&&(w+=180);var R=(w+d)%360*L.TWO_PI/360,C=O*Math.cos(R),M=O*Math.sin(R);s.setCenter(C,M);var G=[],S=(G=G.concat(s.getEdges())).length;c!=null&&S--;for(var Y,F=0,P=G.length,b=s.getEdgesBetween(c);b.length>1;){var k=b[0];b.splice(0,1);var U=G.indexOf(k);U>=0&&G.splice(U,1),P--,S--}Y=c!=null?(G.indexOf(b[0])+1)%P:0;for(var q=Math.abs(y-d)/S,W=Y;F!=S;W=++W%P){var B=G[W].getOtherEnd(s);if(B!=c){var Z=(d+F*q)%360,V=(Z+q)%360;u.branchRadialLayout(B,s,Z,V,O+D,D),F++}}},u.maxDiagonalInTree=function(s){for(var c=_.MIN_VALUE,d=0;d<s.length;d++){var y=s[d].getDiagonal();y>c&&(c=y)}return c},u.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},u.prototype.groupZeroDegreeMembers=function(){var s=this,c={};this.memberGroups={},this.idToDummyNode={};for(var d=[],y=this.graphManager.getAllNodes(),O=0;O<y.length;O++){var D=(w=y[O]).getParent();this.getNodeDegreeWithChildren(w)!==0||D.id!=null&&this.getToBeTiled(D)||d.push(w)}for(O=0;O<d.length;O++){var w,R=(w=d[O]).getParent().id;c[R]===void 0&&(c[R]=[]),c[R]=c[R].concat(w)}Object.keys(c).forEach(function(C){if(c[C].length>1){var M="DummyCompound_"+C;s.memberGroups[M]=c[C];var G=c[C][0].getParent(),S=new n(s.graphManager);S.id=M,S.paddingLeft=G.paddingLeft||0,S.paddingRight=G.paddingRight||0,S.paddingBottom=G.paddingBottom||0,S.paddingTop=G.paddingTop||0,s.idToDummyNode[M]=S;var Y=s.getGraphManager().add(s.newGraph(),S),F=G.getChild();F.add(S);for(var P=0;P<c[C].length;P++){var b=c[C][P];F.remove(b),Y.add(b)}}})},u.prototype.clearCompounds=function(){var s={},c={};this.performDFSOnCompounds();for(var d=0;d<this.compoundOrder.length;d++)c[this.compoundOrder[d].id]=this.compoundOrder[d],s[this.compoundOrder[d].id]=[].concat(this.compoundOrder[d].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[d].getChild()),this.compoundOrder[d].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,c)},u.prototype.clearZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(d){var y=s.idToDummyNode[d];c[d]=s.tileNodes(s.memberGroups[d],y.paddingLeft+y.paddingRight),y.rect.width=c[d].width,y.rect.height=c[d].height})},u.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var c=this.compoundOrder[s],d=c.id,y=c.paddingLeft,O=c.paddingTop;this.adjustLocations(this.tiledMemberPack[d],c.rect.x,c.rect.y,y,O)}},u.prototype.repopulateZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack;Object.keys(c).forEach(function(d){var y=s.idToDummyNode[d],O=y.paddingLeft,D=y.paddingTop;s.adjustLocations(c[d],y.rect.x,y.rect.y,O,D)})},u.prototype.getToBeTiled=function(s){var c=s.id;if(this.toBeTiled[c]!=null)return this.toBeTiled[c];var d=s.getChild();if(d==null)return this.toBeTiled[c]=!1,!1;for(var y=d.getNodes(),O=0;O<y.length;O++){var D=y[O];if(this.getNodeDegree(D)>0)return this.toBeTiled[c]=!1,!1;if(D.getChild()!=null){if(!this.getToBeTiled(D))return this.toBeTiled[c]=!1,!1}else this.toBeTiled[D.id]=!1}return this.toBeTiled[c]=!0,!0},u.prototype.getNodeDegree=function(s){s.id;for(var c=s.getEdges(),d=0,y=0;y<c.length;y++){var O=c[y];O.getSource().id!==O.getTarget().id&&(d+=1)}return d},u.prototype.getNodeDegreeWithChildren=function(s){var c=this.getNodeDegree(s);if(s.getChild()==null)return c;for(var d=s.getChild().getNodes(),y=0;y<d.length;y++){var O=d[y];c+=this.getNodeDegreeWithChildren(O)}return c},u.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},u.prototype.fillCompexOrderByDFS=function(s){for(var c=0;c<s.length;c++){var d=s[c];d.getChild()!=null&&this.fillCompexOrderByDFS(d.getChild().getNodes()),this.getToBeTiled(d)&&this.compoundOrder.push(d)}},u.prototype.adjustLocations=function(s,c,d,y,O){d+=O;for(var D=c+=y,w=0;w<s.rows.length;w++){var R=s.rows[w];c=D;for(var C=0,M=0;M<R.length;M++){var G=R[M];G.rect.x=c,G.rect.y=d,c+=G.rect.width+s.horizontalPadding,G.rect.height>C&&(C=G.rect.height)}d+=C+s.verticalPadding}},u.prototype.tileCompoundMembers=function(s,c){var d=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(y){var O=c[y];d.tiledMemberPack[y]=d.tileNodes(s[y],O.paddingLeft+O.paddingRight),O.rect.width=d.tiledMemberPack[y].width,O.rect.height=d.tiledMemberPack[y].height})},u.prototype.tileNodes=function(s,c){var d={rows:[],rowWidth:[],rowHeight:[],width:0,height:c,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};s.sort(function(D,w){return D.rect.width*D.rect.height>w.rect.width*w.rect.height?-1:D.rect.width*D.rect.height<w.rect.width*w.rect.height?1:0});for(var y=0;y<s.length;y++){var O=s[y];d.rows.length==0?this.insertNodeToRow(d,O,0,c):this.canAddHorizontal(d,O.rect.width,O.rect.height)?this.insertNodeToRow(d,O,this.getShortestRowIndex(d),c):this.insertNodeToRow(d,O,d.rows.length,c),this.shiftToLastRow(d)}return d},u.prototype.insertNodeToRow=function(s,c,d,y){var O=y;d==s.rows.length&&(s.rows.push([]),s.rowWidth.push(O),s.rowHeight.push(0));var D=s.rowWidth[d]+c.rect.width;s.rows[d].length>0&&(D+=s.horizontalPadding),s.rowWidth[d]=D,s.width<D&&(s.width=D);var w=c.rect.height;d>0&&(w+=s.verticalPadding);var R=0;w>s.rowHeight[d]&&(R=s.rowHeight[d],s.rowHeight[d]=w,R=s.rowHeight[d]-R),s.height+=R,s.rows[d].push(c)},u.prototype.getShortestRowIndex=function(s){for(var c=-1,d=Number.MAX_VALUE,y=0;y<s.rows.length;y++)s.rowWidth[y]<d&&(c=y,d=s.rowWidth[y]);return c},u.prototype.getLongestRowIndex=function(s){for(var c=-1,d=Number.MIN_VALUE,y=0;y<s.rows.length;y++)s.rowWidth[y]>d&&(c=y,d=s.rowWidth[y]);return c},u.prototype.canAddHorizontal=function(s,c,d){var y=this.getShortestRowIndex(s);if(y<0)return!0;var O=s.rowWidth[y];if(O+s.horizontalPadding+c<=s.width)return!0;var D,w,R=0;return s.rowHeight[y]<d&&y>0&&(R=d+s.verticalPadding-s.rowHeight[y]),D=s.width-O>=c+s.horizontalPadding?(s.height+R)/(O+c+s.horizontalPadding):(s.height+R)/s.width,R=d+s.verticalPadding,(w=s.width<c?(s.height+R)/c:(s.height+R)/s.width)<1&&(w=1/w),D<1&&(D=1/D),D<w},u.prototype.shiftToLastRow=function(s){var c=this.getLongestRowIndex(s),d=s.rowWidth.length-1,y=s.rows[c],O=y[y.length-1],D=O.width+s.horizontalPadding;if(s.width-s.rowWidth[d]>D&&c!=d){y.splice(-1,1),s.rows[d].push(O),s.rowWidth[c]=s.rowWidth[c]-D,s.rowWidth[d]=s.rowWidth[d]+D,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var w=Number.MIN_VALUE,R=0;R<y.length;R++)y[R].height>w&&(w=y[R].height);c>0&&(w+=s.verticalPadding);var C=s.rowHeight[c]+s.rowHeight[d];s.rowHeight[c]=w,s.rowHeight[d]<O.height+s.verticalPadding&&(s.rowHeight[d]=O.height+s.verticalPadding);var M=s.rowHeight[c]+s.rowHeight[d];s.height+=M-C,this.shiftToLastRow(s)}},u.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},u.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},u.prototype.reduceTrees=function(){for(var s,c=[],d=!0;d;){var y=this.graphManager.getAllNodes(),O=[];d=!1;for(var D=0;D<y.length;D++)(s=y[D]).getEdges().length!=1||s.getEdges()[0].isInterGraph||s.getChild()!=null||(O.push([s,s.getEdges()[0],s.getOwner()]),d=!0);if(d==1){for(var w=[],R=0;R<O.length;R++)O[R][0].getEdges().length==1&&(w.push(O[R]),O[R][0].getOwner().remove(O[R][0]));c.push(w),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=c},u.prototype.growTree=function(s){for(var c,d=s[s.length-1],y=0;y<d.length;y++)c=d[y],this.findPlaceforPrunedNode(c),c[2].add(c[0]),c[2].add(c[1],c[1].source,c[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},u.prototype.findPlaceforPrunedNode=function(s){var c,d,y=s[0],O=(d=y==s[1].source?s[1].target:s[1].source).startX,D=d.finishX,w=d.startY,R=d.finishY,C=[0,0,0,0];if(w>0)for(var M=O;M<=D;M++)C[0]+=this.grid[M][w-1].length+this.grid[M][w].length-1;if(D<this.grid.length-1)for(M=w;M<=R;M++)C[1]+=this.grid[D+1][M].length+this.grid[D][M].length-1;if(R<this.grid[0].length-1)for(M=O;M<=D;M++)C[2]+=this.grid[M][R+1].length+this.grid[M][R].length-1;if(O>0)for(M=w;M<=R;M++)C[3]+=this.grid[O-1][M].length+this.grid[O][M].length-1;for(var G,S,Y=_.MAX_VALUE,F=0;F<C.length;F++)C[F]<Y?(Y=C[F],G=1,S=F):C[F]==Y&&G++;if(G==3&&Y==0)C[0]==0&&C[1]==0&&C[2]==0?c=1:C[0]==0&&C[1]==0&&C[3]==0?c=0:C[0]==0&&C[2]==0&&C[3]==0?c=3:C[1]==0&&C[2]==0&&C[3]==0&&(c=2);else if(G==2&&Y==0){var P=Math.floor(2*Math.random());c=C[0]==0&&C[1]==0?P==0?0:1:C[0]==0&&C[2]==0?P==0?0:2:C[0]==0&&C[3]==0?P==0?0:3:C[1]==0&&C[2]==0?P==0?1:2:C[1]==0&&C[3]==0?P==0?1:3:P==0?2:3}else c=G==4&&Y==0?P=Math.floor(4*Math.random()):S;c==0?y.setCenter(d.getCenterX(),d.getCenterY()-d.getHeight()/2-a.DEFAULT_EDGE_LENGTH-y.getHeight()/2):c==1?y.setCenter(d.getCenterX()+d.getWidth()/2+a.DEFAULT_EDGE_LENGTH+y.getWidth()/2,d.getCenterY()):c==2?y.setCenter(d.getCenterX(),d.getCenterY()+d.getHeight()/2+a.DEFAULT_EDGE_LENGTH+y.getHeight()/2):y.setCenter(d.getCenterX()-d.getWidth()/2-a.DEFAULT_EDGE_LENGTH-y.getWidth()/2,d.getCenterY())},f.exports=u},function(f,p,e){var t={};t.layoutBase=e(0),t.CoSEConstants=e(1),t.CoSEEdge=e(2),t.CoSEGraph=e(3),t.CoSEGraphManager=e(4),t.CoSELayout=e(6),t.CoSENode=e(5),f.exports=t}])},ht.exports=N(It()));var N}())),at.exports);const Rt=Ot(wt);var tt=function(){var N=x(function(u,I,s,c){for(s=s||{},c=u.length;c--;s[u[c]]=I);return s},"o"),A=[1,4],f=[1,13],p=[1,12],e=[1,15],t=[1,16],i=[1,20],r=[1,19],n=[6,7,8],o=[1,26],h=[1,24],a=[1,25],l=[6,7,11],E=[1,6,13,15,16,19,22],m=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],L={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:x(function(u,I,s,c,d,y,O){var D=y.length-1;switch(d){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",y[D].id),c.addNode(y[D-1].length,y[D].id,y[D].descr,y[D].type);break;case 16:c.getLogger().trace("Icon: ",y[D]),c.decorateNode({icon:y[D]});break;case 17:case 21:c.decorateNode({class:y[D]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",y[D].id),c.addNode(0,y[D].id,y[D].descr,y[D].type);break;case 20:c.decorateNode({icon:y[D]});break;case 25:c.getLogger().trace("node found ..",y[D-2]),this.$={id:y[D-1],descr:y[D-1],type:c.getType(y[D-2],y[D])};break;case 26:this.$={id:y[D],descr:y[D],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",y[D-3]),this.$={id:y[D-3],descr:y[D-1],type:c.getType(y[D-2],y[D])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:A},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:A},{6:f,7:[1,10],9:9,12:11,13:p,14:14,15:e,16:t,17:17,18:18,19:i,22:r},N(n,[2,3]),{1:[2,2]},N(n,[2,4]),N(n,[2,5]),{1:[2,6],6:f,12:21,13:p,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:f,9:22,12:11,13:p,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:o,7:h,10:23,11:a},N(l,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:i,22:r}),N(l,[2,18]),N(l,[2,19]),N(l,[2,20]),N(l,[2,21]),N(l,[2,23]),N(l,[2,24]),N(l,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:h,10:32,11:a},{1:[2,7],6:f,12:21,13:p,14:14,15:e,16:t,17:17,18:18,19:i,22:r},N(E,[2,14],{7:m,11:g}),N(_,[2,8]),N(_,[2,9]),N(_,[2,10]),N(l,[2,15]),N(l,[2,16]),N(l,[2,17]),{20:[1,35]},{21:[1,36]},N(E,[2,13],{7:m,11:g}),N(_,[2,11]),N(_,[2,12]),{21:[1,37]},N(l,[2,25]),N(l,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:x(function(u,I){if(!I.recoverable){var s=new Error(u);throw s.hash=I,s}this.trace(u)},"parseError"),parse:x(function(u){var I=this,s=[0],c=[],d=[null],y=[],O=this.table,D="",w=0,R=0,C=y.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(G.yy[S]=this.yy[S]);M.setInput(u,G.yy),G.yy.lexer=M,G.yy.parser=this,M.yylloc===void 0&&(M.yylloc={});var Y=M.yylloc;y.push(Y);var F=M.options&&M.options.ranges;function P(){var $;return typeof($=c.pop()||M.lex()||1)!="number"&&($ instanceof Array&&($=(c=$).pop()),$=I.symbols_[$]||$),$}typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,x(function($){s.length=s.length-2*$,d.length=d.length-$,y.length=y.length-$},"popStack"),x(P,"lex");for(var b,k,U,q,W,B,Z,V,z={};;){if(k=s[s.length-1],this.defaultActions[k]?U=this.defaultActions[k]:(b==null&&(b=P()),U=O[k]&&O[k][b]),U===void 0||!U.length||!U[0]){var nt="";for(W in V=[],O[k])this.terminals_[W]&&W>2&&V.push("'"+this.terminals_[W]+"'");nt=M.showPosition?"Parse error on line "+(w+1)+`:
2
- `+M.showPosition()+`
3
- Expecting `+V.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(w+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(nt,{text:M.match,token:this.terminals_[b]||b,line:M.yylineno,loc:Y,expected:V})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+b);switch(U[0]){case 1:s.push(b),d.push(M.yytext),y.push(M.yylloc),s.push(U[1]),b=null,R=M.yyleng,D=M.yytext,w=M.yylineno,Y=M.yylloc;break;case 2:if(B=this.productions_[U[1]][1],z.$=d[d.length-B],z._$={first_line:y[y.length-(B||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(B||1)].first_column,last_column:y[y.length-1].last_column},F&&(z._$.range=[y[y.length-(B||1)].range[0],y[y.length-1].range[1]]),(q=this.performAction.apply(z,[D,R,w,G.yy,U[1],d,y].concat(C)))!==void 0)return q;B&&(s=s.slice(0,-1*B*2),d=d.slice(0,-1*B),y=y.slice(0,-1*B)),s.push(this.productions_[U[1]][0]),d.push(z.$),y.push(z._$),Z=O[s[s.length-2]][s[s.length-1]],s.push(Z);break;case 3:return!0}}return!0},"parse")},v=function(){return{EOF:1,parseError:x(function(u,I){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,I)},"parseError"),setInput:x(function(u,I){return this.yy=I||this.yy||{},this._input=u,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},"setInput"),input:x(function(){var u=this._input[0];return this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u,u.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),u},"input"),unput:x(function(u){var I=u.length,s=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var c=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),s.length-1&&(this.yylineno-=s.length-1);var d=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:s?(s.length===c.length?this.yylloc.first_column:0)+c[c.length-s.length].length-s[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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})},"reject"),less:x(function(u){this.unput(this.match.slice(u))},"less"),pastInput:x(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var u=this.pastInput(),I=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
5
- `+I+"^"},"showPosition"),test_match:x(function(u,I){var s,c,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),(c=u[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],s=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var y in d)this[y]=d[y];return!1}return!1},"test_match"),next:x(function(){if(this.done)return this.EOF;var u,I,s,c;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),y=0;y<d.length;y++)if((s=this._input.match(this.rules[d[y]]))&&(!I||s[0].length>I[0].length)){if(I=s,c=y,this.options.backtrack_lexer){if((u=this.test_match(s,d[y]))!==!1)return u;if(this._backtrack){I=!1;continue}return!1}if(!this.options.flex)break}return I?(u=this.test_match(I,d[c]))!==!1&&u:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:x(function(){var u=this.next();return u||this.lex()},"lex"),begin:x(function(u){this.conditionStack.push(u)},"begin"),popState:x(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:x(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:x(function(u){return(u=this.conditionStack.length-1-Math.abs(u||0))>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:x(function(u){this.begin(u)},"pushState"),stateStackSize:x(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:x(function(u,I,s,c){switch(s){case 0:return u.getLogger().trace("Found comment",I.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:u.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return u.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:u.getLogger().trace("end icon"),this.popState();break;case 10:return u.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return u.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return u.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return u.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:u.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return u.getLogger().trace("description:",I.yytext),"NODE_DESCR";case 27:return this.popState(),u.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),u.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),u.getLogger().trace("node end ...",I.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),u.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),u.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return u.getLogger().trace("Long description:",I.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}}();function T(){this.yy={}}return L.lexer=v,x(T,"Parser"),T.prototype=L,L.Parser=T,new T}();tt.parser=tt;var Ct=tt,H=[],dt=0,et={},Mt=x(()=>{H=[],dt=0,et={}},"clear"),xt=x(function(N){for(let A=H.length-1;A>=0;A--)if(H[A].level<N)return H[A];return null},"getParent"),Gt=x(()=>H.length>0?H[0]:null,"getMindmap"),St=x((N,A,f,p)=>{var n,o;j.info("addNode",N,A,f,p);const e=J();let t=((n=e.mindmap)==null?void 0:n.padding)??Q.mindmap.padding;switch(p){case X.ROUNDED_RECT:case X.RECT:case X.HEXAGON:t*=2}const i={id:dt++,nodeId:K(A,e),level:N,descr:K(f,e),type:p,children:[],width:((o=e.mindmap)==null?void 0:o.maxNodeWidth)??Q.mindmap.maxNodeWidth,padding:t},r=xt(N);if(r)r.children.push(i),H.push(i);else{if(H.length!==0)throw new Error('There can be only one root. No parent could be found for ("'+i.descr+'")');H.push(i)}},"addNode"),X={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},bt={clear:Mt,addNode:St,getMindmap:Gt,nodeType:X,getType:x((N,A)=>{switch(j.debug("In get type",N,A),N){case"[":return X.RECT;case"(":return A===")"?X.ROUNDED_RECT:X.CLOUD;case"((":return X.CIRCLE;case")":return X.CLOUD;case"))":return X.BANG;case"{{":return X.HEXAGON;default:return X.DEFAULT}},"getType"),setElementForId:x((N,A)=>{et[N]=A},"setElementForId"),decorateNode:x(N=>{if(!N)return;const A=J(),f=H[H.length-1];N.icon&&(f.icon=K(N.icon,A)),N.class&&(f.class=K(N.class,A))},"decorateNode"),type2Str:x(N=>{switch(N){case X.DEFAULT:return"no-border";case X.RECT:return"rect";case X.ROUNDED_RECT:return"rounded-rect";case X.CIRCLE:return"circle";case X.CLOUD:return"cloud";case X.BANG:return"bang";case X.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:x(()=>j,"getLogger"),getElementById:x(N=>et[N],"getElementById")},Ft=x(function(N,A,f,p){A.append("path").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("d",`M0 ${f.height-5} v${10-f.height} q0,-5 5,-5 h${f.width-10} q5,0 5,5 v${f.height-5} H0 Z`),A.append("line").attr("class","node-line-"+p).attr("x1",0).attr("y1",f.height).attr("x2",f.width).attr("y2",f.height)},"defaultBkg"),Pt=x(function(N,A,f){A.append("rect").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("height",f.height).attr("width",f.width)},"rectBkg"),Ut=x(function(N,A,f){const p=f.width,e=f.height,t=.15*p,i=.25*p,r=.35*p,n=.2*p;A.append("path").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("d",`M0 0 a${t},${t} 0 0,1 ${.25*p},${-1*p*.1}
7
- a${r},${r} 1 0,1 ${.4*p},${-1*p*.1}
8
- a${i},${i} 1 0,1 ${.35*p},${1*p*.2}
9
-
10
- a${t},${t} 1 0,1 ${.15*p},${1*e*.35}
11
- a${n},${n} 1 0,1 ${-1*p*.15},${1*e*.65}
12
-
13
- a${i},${t} 1 0,1 ${-1*p*.25},${.15*p}
14
- a${r},${r} 1 0,1 ${-1*p*.5},0
15
- a${t},${t} 1 0,1 ${-1*p*.25},${-1*p*.15}
16
-
17
- a${t},${t} 1 0,1 ${-1*p*.1},${-1*e*.35}
18
- a${n},${n} 1 0,1 ${.1*p},${-1*e*.65}
19
-
20
- H0 V0 Z`)},"cloudBkg"),Yt=x(function(N,A,f){const p=f.width,e=f.height,t=.15*p;A.append("path").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("d",`M0 0 a${t},${t} 1 0,0 ${.25*p},${-1*e*.1}
21
- a${t},${t} 1 0,0 ${.25*p},0
22
- a${t},${t} 1 0,0 ${.25*p},0
23
- a${t},${t} 1 0,0 ${.25*p},${1*e*.1}
24
-
25
- a${t},${t} 1 0,0 ${.15*p},${1*e*.33}
26
- a${.8*t},${.8*t} 1 0,0 0,${1*e*.34}
27
- a${t},${t} 1 0,0 ${-1*p*.15},${1*e*.33}
28
-
29
- a${t},${t} 1 0,0 ${-1*p*.25},${.15*e}
30
- a${t},${t} 1 0,0 ${-1*p*.25},0
31
- a${t},${t} 1 0,0 ${-1*p*.25},0
32
- a${t},${t} 1 0,0 ${-1*p*.25},${-1*e*.15}
33
-
34
- a${t},${t} 1 0,0 ${-1*p*.1},${-1*e*.33}
35
- a${.8*t},${.8*t} 1 0,0 0,${-1*e*.34}
36
- a${t},${t} 1 0,0 ${.1*p},${-1*e*.33}
37
-
38
- H0 V0 Z`)},"bangBkg"),kt=x(function(N,A,f){A.append("circle").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("r",f.width/2)},"circleBkg");function pt(N,A,f,p,e){return N.insert("polygon",":first-child").attr("points",p.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+(e.width-A)/2+", "+f+")")}x(pt,"insertPolygonShape");var Xt=x(function(N,A,f){const p=f.height,e=p/4,t=f.width-f.padding+2*e;pt(A,t,p,[{x:e,y:0},{x:t-e,y:0},{x:t,y:-p/2},{x:t-e,y:-p},{x:e,y:-p},{x:0,y:-p/2}],f)},"hexagonBkg"),Bt=x(function(N,A,f){A.append("rect").attr("id","node-"+f.id).attr("class","node-bkg node-"+N.type2Str(f.type)).attr("height",f.height).attr("rx",f.padding).attr("ry",f.padding).attr("width",f.width)},"roundedRectBkg"),$t=x(async function(N,A,f,p,e){const t=e.htmlLabels,i=p%11,r=A.append("g");f.section=i;let n="section-"+i;i<0&&(n+=" section-root"),r.attr("class",(f.class?f.class+" ":"")+"mindmap-node "+n);const o=r.append("g"),h=r.append("g"),a=f.descr.replace(/(<br\/*>)/g,`
39
- `);await Tt(h,a,{useHtmlLabels:t,width:f.width,classes:"mindmap-node-label"},e),t||h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const l=h.node().getBBox(),[E]=Lt(e.fontSize);if(f.height=l.height+1.1*E*.5+f.padding,f.width=l.width+2*f.padding,f.icon)if(f.type===N.nodeType.CIRCLE)f.height+=50,f.width+=50,r.append("foreignObject").attr("height","50px").attr("width",f.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+f.icon),h.attr("transform","translate("+f.width/2+", "+(f.height/2-1.5*f.padding)+")");else{f.width+=50;const m=f.height;f.height=Math.max(m,60);const g=Math.abs(f.height-m);r.append("foreignObject").attr("width","60px").attr("height",f.height).attr("style","text-align: center;margin-top:"+g/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+f.icon),h.attr("transform","translate("+(25+f.width/2)+", "+(g/2+f.padding/2)+")")}else if(t){const m=(f.width-l.width)/2,g=(f.height-l.height)/2;h.attr("transform","translate("+m+", "+g+")")}else{const m=f.width/2,g=f.padding/2;h.attr("transform","translate("+m+", "+g+")")}switch(f.type){case N.nodeType.DEFAULT:Ft(N,o,f,i);break;case N.nodeType.ROUNDED_RECT:Bt(N,o,f,i);break;case N.nodeType.RECT:Pt(N,o,f,i);break;case N.nodeType.CIRCLE:o.attr("transform","translate("+f.width/2+", "+ +f.height/2+")"),kt(N,o,f,i);break;case N.nodeType.CLOUD:Ut(N,o,f,i);break;case N.nodeType.BANG:Yt(N,o,f,i);break;case N.nodeType.HEXAGON:Xt(N,o,f,i)}return N.setElementForId(f.id,r),f.height},"drawNode"),Ht=x(function(N,A){const f=N.getElementById(A.id),p=A.x||0,e=A.y||0;f.attr("transform","translate("+p+","+e+")")},"positionNode");async function it(N,A,f,p,e){await $t(N,A,f,p,e),f.children&&await Promise.all(f.children.map((t,i)=>it(N,A,t,p<0?i:p,e)))}function ft(N,A){A.edges().map((f,p)=>{const e=f.data();if(f[0]._private.bodyBounds){const t=f[0]._private.rscratch;j.trace("Edge: ",p,e),N.insert("path").attr("d",`M ${t.startX},${t.startY} L ${t.midX},${t.midY} L${t.endX},${t.endY} `).attr("class","edge section-edge-"+e.section+" edge-depth-"+e.depth)}})}function rt(N,A,f,p){A.add({group:"nodes",data:{id:N.id.toString(),labelText:N.descr,height:N.height,width:N.width,level:p,nodeId:N.id,padding:N.padding,type:N.type},position:{x:N.x,y:N.y}}),N.children&&N.children.forEach(e=>{rt(e,A,f,p+1),A.add({group:"edges",data:{id:`${N.id}_${e.id}`,source:N.id,target:e.id,depth:p,section:e.section}})})}function yt(N,A){return new Promise(f=>{const p=Dt("body").append("div").attr("id","cy").attr("style","display:none"),e=ot({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});p.remove(),rt(N,e,A,0),e.nodes().forEach(function(t){t.layoutDimensions=()=>{const i=t.data();return{w:i.width,h:i.height}}}),e.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),e.ready(t=>{j.info("Ready",t),f(e)})})}function Et(N,A){A.nodes().map((f,p)=>{const e=f.data();e.x=f.position().x,e.y=f.position().y,Ht(N,e);const t=N.getElementById(e.nodeId);j.info("id:",p,"Position: (",f.position().x,", ",f.position().y,")",e),t.attr("transform",`translate(${f.position().x-e.width/2}, ${f.position().y-e.height/2})`),t.attr("attr",`apa-${p})`)})}ot.use(Rt),x(it,"drawNodes"),x(ft,"drawEdges"),x(rt,"addNodes"),x(yt,"layoutMindmap"),x(Et,"positionNodes");var Wt={draw:x(async(N,A,f,p)=>{var a,l;j.debug(`Rendering mindmap diagram
40
- `+N);const e=p.db,t=e.getMindmap();if(!t)return;const i=J();i.htmlLabels=!1;const r=mt(A),n=r.append("g");n.attr("class","mindmap-edges");const o=r.append("g");o.attr("class","mindmap-nodes"),await it(e,o,t,-1,i);const h=await yt(t,i);ft(n,h),Et(e,h),_t(void 0,r,((a=i.mindmap)==null?void 0:a.padding)??Q.mindmap.padding,((l=i.mindmap)==null?void 0:l.useMaxWidth)??Q.mindmap.useMaxWidth)},"draw")},jt=x(N=>{let A="";for(let f=0;f<N.THEME_COLOR_LIMIT;f++)N["lineColor"+f]=N["lineColor"+f]||N["cScaleInv"+f],vt(N["lineColor"+f])?N["lineColor"+f]=Nt(N["lineColor"+f],20):N["lineColor"+f]=At(N["lineColor"+f],20);for(let f=0;f<N.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);A+=`
41
- .section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} polygon, .section-${f-1} path {
42
- fill: ${N["cScale"+f]};
43
- }
44
- .section-${f-1} text {
45
- fill: ${N["cScaleLabel"+f]};
46
- }
47
- .node-icon-${f-1} {
48
- font-size: 40px;
49
- color: ${N["cScaleLabel"+f]};
50
- }
51
- .section-edge-${f-1}{
52
- stroke: ${N["cScale"+f]};
53
- }
54
- .edge-depth-${f-1}{
55
- stroke-width: ${p};
56
- }
57
- .section-${f-1} line {
58
- stroke: ${N["cScaleInv"+f]} ;
59
- stroke-width: 3;
60
- }
61
-
62
- .disabled, .disabled circle, .disabled text {
63
- fill: lightgray;
64
- }
65
- .disabled text {
66
- fill: #efefef;
67
- }
68
- `}return A},"genSections"),Vt={db:bt,renderer:Wt,parser:Ct,styles:x(N=>`
69
- .edge {
70
- stroke-width: 3;
71
- }
72
- ${jt(N)}
73
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
74
- fill: ${N.git0};
75
- }
76
- .section-root text {
77
- fill: ${N.gitBranchLabel0};
78
- }
79
- .icon-container {
80
- height:100%;
81
- display: flex;
82
- justify-content: center;
83
- align-items: center;
84
- }
85
- .edge {
86
- fill: none;
87
- }
88
- .mindmap-node-label {
89
- dy: 1em;
90
- alignment-baseline: middle;
91
- text-anchor: middle;
92
- dominant-baseline: middle;
93
- text-align: center;
94
- }
95
- `,"getStyles")};export{Vt as diagram};
@@ -1 +0,0 @@
1
- import{a as I,a7 as U,W as q,T as J,a8 as K,a9 as _,aa as $,j as c,ab as AA,ac as cA,ad as dA,ae as T,af as G,ag as HA,ah as zA,ai as xA,aj as eA,ak as D,al as fA,am as YA,an as jA,ao as tA,ap as MA,aq as rA,ar as oA,as as NA,at as aA,au as iA,av as sA,aw as mA,ax as nA}from"./index-_lj65MZR.js";import{a as lA,i as hA,R as L,C as pA,A as PA,b as vA,c as ZA,P as bA}from"./storage-CTvz5ejZ.js";import"./index-CRY746sV.js";import"./index-ChVO1Vdj.js";import"./index-CE3mbf8H.js";import"./index-CfvA7bvb.js";import"./index-CylrdBnG.js";import"./index-Drq4Lpl3.js";import"./index-B0-K_sX8.js";import"./index-B9WlbtVk.js";import"./index-BWEPJWCF.js";import"./index-D_Dmmo5g.js";import"./index-NLK5-sPO.js";import"./index-1az6nvpO.js";import"./index-CaHkXpUp.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-DkEP81N9.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-DompmV0j.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-POgR1ypr.js";import"./fortran-DL7KluxX.js";import"./gas-bV0CklSb.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CLQs6EAM.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-z_N2Mo3d.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-BSwWqoLa.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-Bdo_Aemu.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-wcPdHu67.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./trash-BWRVB_br.js";const BA=x=>{const A=I.c(19),{appConfig:H}=x,{setCells:d}=U();let t,o,e;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0],q.useEffect(gA,t),A[1]===Symbol.for("react.memo_cache_sentinel")?(o=$(),A[1]=o):o=A[1],A[2]!==d?(e={autoInstantiate:!0,setCells:d,sessionId:o},A[2]=d,A[3]=e):e=A[3];const{connection:z}=lA(e),f=J(K);let N;A[4]!==z.state?(N=hA(z.state),A[4]=z.state,A[5]=N):N=A[5];const i=N;let a;A[6]!==H||A[7]!==i?(a=()=>i?c.jsxs(AA,{milliseconds:2e3,fallback:null,children:[c.jsx(cA,{className:"mx-auto"}),c.jsx("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):c.jsx(pA,{appConfig:H,mode:"read"}),A[6]=H,A[7]=i,A[8]=a):a=A[8];const r=a,s=H.width;let Y,j,M;return A[9]!==z?(Y=c.jsx(PA,{connection:z,className:"sm:pt-8"}),A[9]=z,A[10]=Y):Y=A[10],A[11]!==r?(j=r(),A[11]=r,A[12]=j):j=A[12],A[13]!==H.width||A[14]!==z||A[15]!==f||A[16]!==Y||A[17]!==j?(M=c.jsxs(vA,{connection:z,isRunning:f,width:s,children:[Y,j]}),A[13]=H.width,A[14]=z,A[15]=f,A[16]=Y,A[17]=j,A[18]=M):M=A[18],M};function XA(){L.INSTANCE.stop()}function gA(){return L.INSTANCE.start(_),XA}const kA=()=>{const x=I.c(3),A=J(dA);if(!T()||!A)return null;let H,d;return x[0]===Symbol.for("react.memo_cache_sentinel")?(H=c.jsxs("span",{children:["Static"," ",c.jsx("a",{href:G.githubPage,target:"_blank",className:"text-[var(--sky-11)] font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),x[0]=H):H=x[0],x[1]!==A?(d=c.jsxs("div",{className:"px-4 py-2 bg-[var(--sky-2)] border-b border-[var(--sky-7)] text-[var(--sky-11)] flex justify-between items-center gap-4 no-print text-sm","data-testid":"static-notebook-banner",children:[H,c.jsx("span",{className:"flex-shrink-0",children:c.jsx(FA,{code:A})})]}),x[1]=A,x[2]=d):d=x[2],d},FA=x=>{const A=I.c(78),{code:H}=x;let d=HA()||"notebook.py";const t=d.lastIndexOf("/");t!==-1&&(d=d.slice(t+1));const o=window.location.href;let e,z,f,N,i,a,r,s,Y,j,M,n,l,h,p,P,m,v,Z,b,B,w,X,g,k,F,S,y,u,W,Q,R,C,O;if(A[0]!==H||A[1]!==d){const V=zA({code:H});let E;N=xA,A[21]===Symbol.for("react.memo_cache_sentinel")?(M=c.jsx(eA,{asChild:!0,children:c.jsx(D,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),A[21]=M):M=A[21],f=fA,z=YA,A[22]!==d?(j=c.jsx(jA,{children:d}),A[22]=d,A[23]=j):j=A[23],e=tA,a="pt-3 text-left space-y-3",A[24]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsxs("p",{children:["This is a static"," ",c.jsx("a",{href:G.githubPage,target:"_blank",className:"text-[var(--sky-11)] hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),A[24]=r):r=A[24],A[25]===Symbol.for("react.memo_cache_sentinel")?(E=c.jsx("br",{}),A[25]=E):E=A[25],A[26]!==d?(s=c.jsx("div",{className:"rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]",children:c.jsxs("div",{className:"font-mono text-[var(--sky-11)] leading-relaxed",children:["pip install marimo",E,"marimo edit ",d]})}),A[26]=d,A[27]=s):s=A[27],A[28]===Symbol.for("react.memo_cache_sentinel")?(Y=!o.endsWith(".html")&&c.jsxs("div",{className:"rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]",children:[c.jsx("div",{className:"text-sm text-[var(--sky-12)] mb-1",children:"Or run directly from URL:"}),c.jsxs("div",{className:"font-mono text-[var(--sky-11)] break-all",children:["marimo edit ",window.location.href]})]}),A[28]=Y):Y=A[28],Z="pt-3 border-t border-[var(--sky-7)]",P="text-sm text-[var(--sky-12)] mb-2",A[29]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx("strong",{children:"Try in browser with WebAssembly:"}),A[29]=m):m=A[29],v=" ",i=V,n="_blank",l="text-[var(--sky-11)] hover:underline break-all",h="noreferrer",p=V.slice(0,50),A[0]=H,A[1]=d,A[2]=e,A[3]=z,A[4]=f,A[5]=N,A[6]=i,A[7]=a,A[8]=r,A[9]=s,A[10]=Y,A[11]=j,A[12]=M,A[13]=n,A[14]=l,A[15]=h,A[16]=p,A[17]=P,A[18]=m,A[19]=v,A[20]=Z}else e=A[2],z=A[3],f=A[4],N=A[5],i=A[6],a=A[7],r=A[8],s=A[9],Y=A[10],j=A[11],M=A[12],n=A[13],l=A[14],h=A[15],p=A[16],P=A[17],m=A[18],v=A[19],Z=A[20];return A[30]!==i||A[31]!==n||A[32]!==l||A[33]!==h||A[34]!==p?(b=c.jsxs("a",{href:i,target:n,className:l,rel:h,children:[p,"..."]}),A[30]=i,A[31]=n,A[32]=l,A[33]=h,A[34]=p,A[35]=b):b=A[35],A[36]!==b||A[37]!==P||A[38]!==m||A[39]!==v?(B=c.jsxs("p",{className:P,children:[m,v,b]}),A[36]=b,A[37]=P,A[38]=m,A[39]=v,A[40]=B):B=A[40],A[41]===Symbol.for("react.memo_cache_sentinel")?(w=c.jsx("p",{className:"text-sm text-[var(--sky-12)]",children:"Note: WebAssembly may not work for all notebooks. Additionally, some dependencies may not be available in the browser."}),A[41]=w):w=A[41],A[42]!==B||A[43]!==Z?(X=c.jsxs("div",{className:Z,children:[B,w]}),A[42]=B,A[43]=Z,A[44]=X):X=A[44],A[45]!==e||A[46]!==a||A[47]!==r||A[48]!==s||A[49]!==Y||A[50]!==X?(g=c.jsxs(e,{className:a,children:[r,s,Y,X]}),A[45]=e,A[46]=a,A[47]=r,A[48]=s,A[49]=Y,A[50]=X,A[51]=g):g=A[51],A[52]!==z||A[53]!==j||A[54]!==g?(k=c.jsxs(z,{children:[j,g]}),A[52]=z,A[53]=j,A[54]=g,A[55]=k):k=A[55],A[56]!==H?(F=async()=>{await MA(H),rA({title:"Copied to clipboard"})},A[56]=H,A[57]=F):F=A[57],A[58]===Symbol.for("react.memo_cache_sentinel")?(S=c.jsx(oA,{className:"w-3 h-3 mr-2"}),A[58]=S):S=A[58],A[59]!==F?(y=c.jsxs(D,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:F,children:[S,"Copy code"]}),A[59]=F,A[60]=y):y=A[60],A[61]!==H||A[62]!==d?(u=()=>{NA(new Blob([H],{type:"text/plain"}),d)},A[61]=H,A[62]=d,A[63]=u):u=A[63],A[64]===Symbol.for("react.memo_cache_sentinel")?(W=c.jsx(aA,{className:"w-3 h-3 mr-2"}),A[64]=W):W=A[64],A[65]!==u?(Q=c.jsxs(D,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:u,children:[W,"Download"]}),A[65]=u,A[66]=Q):Q=A[66],A[67]!==y||A[68]!==Q?(R=c.jsxs("div",{className:"flex gap-3 pt-2",children:[y,Q]}),A[67]=y,A[68]=Q,A[69]=R):R=A[69],A[70]!==f||A[71]!==k||A[72]!==R?(C=c.jsxs(f,{children:[k,R]}),A[70]=f,A[71]=k,A[72]=R,A[73]=C):C=A[73],A[74]!==N||A[75]!==M||A[76]!==C?(O=c.jsxs(N,{children:[M,C]}),A[74]=N,A[75]=M,A[76]=C,A[77]=O):O=A[77],O},yA=iA()||T(),uA=x=>{const A=I.c(10);let H,d,t,o,e,z,f;return A[0]===Symbol.for("react.memo_cache_sentinel")?(H=ZA(),A[0]=H):H=A[0],A[1]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(kA,{}),A[1]=d):d=A[1],A[2]!==x.appConfig?(t=c.jsx(BA,{appConfig:x.appConfig}),A[2]=x.appConfig,A[3]=t):t=A[3],A[4]===Symbol.for("react.memo_cache_sentinel")?(o=yA&&c.jsx(QA,{}),A[4]=o):o=A[4],A[5]!==t?(e=c.jsxs(sA,{children:[d,t,o]}),A[5]=t,A[6]=e):e=A[6],A[7]===Symbol.for("react.memo_cache_sentinel")?(z=c.jsx(mA,{}),A[7]=z):z=A[7],A[8]!==e?(f=c.jsx(bA,{children:c.jsxs(nA,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",storage:H,children:[e,z]})}),A[8]=e,A[9]=f):f=A[9],f},QA=()=>{const x=I.c(1);let A;return x[0]===Symbol.for("react.memo_cache_sentinel")?(A=c.jsx("div",{className:"fixed bottom-0 right-0 z-50","data-testid":"watermark",children:c.jsxs("a",{href:G.githubPage,target:"_blank",className:"text-sm text-[var(--grass-11)] font-bold tracking-wide transition-colors bg-[var(--grass-4)] hover:bg-[var(--grass-5)] border-t border-l border-[var(--grass-8)] px-3 py-1 rounded-tl-md flex items-center gap-2",children:[c.jsx("span",{children:"made with marimo"}),c.jsx("img",{src:"data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkcB8pY3MdjmN0HsZjdB7YZHQezWNzHa9ichx/YXAfMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANkcx2FZHQd+2V1IP9qeSf/Y3Md/2NzHf9jcx3vY3Md/GNzHf9jcx22aHEcGwAAAAAAAAAAAAAAAP//AAFjdB6iY3Md/2NzHf9vfi//ipZV/6Ksef+wuIz/tb2U/6myg/90gjX/Y3Md/2NzHeJoeCAgAAAAAAAAAABjcx5vY3Md/2NzHf9/jEb/6+3i////////////////////////////+vv4/6+3i/9kdB7/ZHQdyoCAQARjcRwSY3Me8XKAMv9zgTT/7e/l////////////////////////////////////////////s7uR/2NzHf9idh9bZHUda2NzHf9/jEb/sbmP//r7+P/M0rb/3uLQ/+ns4P/M0rb/7/Ho/9ndyf/N0rf///////n59v9peSb/Y3Qdt2R0Ha5jcx3/Z3cj/+7w5//w8en/YXMc/5mkbf+8w5//YXMc/83TuP+JllX/YnQd////////////g49L/2R0HulkdB7NY3Md/3yJQf//////8PHp/2FzHP+ZpG3/vMOf/2FzHP/N07j/iZZV/2J0Hf///////////4WRTv9kcx32Y3MdzGV0H/+NmVr///////Dx6f9hcxz/gY9K/5mkbP9hcxz/pK59/3aGOv9jdR////////7+/v9vfi7/Y3Qd5WNzHa95hjz/hpJP///////w8en/YXMc/3KCNf9idB3/anso/4COSf9hcxz/iJZU///////c38z/Y3Md/2NzHsZjcx52bHsp/4WST//x8+v//f39/+7w5//09vD/6Ovf//Dx6f/6+/j/4OPS//r7+P//////l6Fo/2NzHf9idB6RZG8hF2NzHvGOmVv/nadx//7//v//////////////////////////////////////1dnD/2R0Hv9jcx3+Y3gfMQAAAABldB5EaHgk842YWv+0u5H/19vG////////////////////////////5eja/3B/MP9jcx3/Y3QdlQAAAAAAAAAAAAAAAWN0HoZldSD/v8aj/+Tn2f/////////////////5+fb/vcSg/299Lv9jcx3/ZHMeq2aZMwUAAAAAAAAAAAAAAAAAAAAAZHMemWNzHf9rein/iZVV/5OeZP+Hk1H/aXkm/2d2Iv9ldR/wZHQecICAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAFldB5WY3QduWNzHe1jcx38Y3Qd6mNzHbpkdB5uaXgeEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAACAAAABAAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtbSQHZHMeRWNzHXxjcx2fY3QdsGNzHbFjdB2nY3MekGJyHXJmdB9LZHYbHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkbyEXZHMdjGNzHe5jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md32NyHZNkcx4zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABZXYdaGR0HvBjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9kdB3eZHQd4WRzHfNjcx3/Y3Md/2NzHf9kcx24YXMeKgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZoAaCmR0Hqtjcx3/Y3Md/2NzHf9jcx3/anko/32KQ/9ldSD/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx34ZHUdawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGJ2Jw1jdB3EY3Md/2NzHf9jcx3/Y3Md/3SBNf92hDn/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9mdiH/a3op/2x7K/9oeCX/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3QdjQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgEAEZHMdumNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/3B/MP+fqXX/wsim/9ndyP/q7OH/+Pn1//////////////////7+/v/d4c7/oap3/2h3JP9jcx3/Y3Md/2NzHf9jcx3/ZHQegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGN0Hohjcx3/Y3Md/2NzHf9jcx3/Y3Md/2Z1If+0vJL/+vv4////////////////////////////////////////////////////////////7e/l/5ahZ/9jcx3/Y3Md/2NzHf9jcx3+ZHIfSgAAAAAAAAAAAAAAAAAAAABmdBw3Y3Md/WNzHf9jcx3/Y3Md/2NzHf9mdSH/ztO4/////////////////////////////////////////////////////////////////////////////////8PJqP9ndiL/Y3Md/2NzHf9jdB3jYIAgEAAAAAAAAAAAAAAAAWRzHcdjcx3/Y3Md/2R0H/93hTr/Y3Md/7i/mP///////////////////////////////////////////////////////////////////////////////////////////8zRtf9kdB7/Y3Md/2NzHf9idB5/AAAAAAAAAABkcx5FY3Md/2NzHf9jcx3/nKZw/2p5J/+Gk1D//v79/////////////////////////////////////////////////////////////////////////////////////////////////52ncv9jcx3/Y3Md/2NzHuhVgCoGAAAAAGN0Hqxjcx3/Y3Md/2l4Jf+fqXT/Y3Md/9zfzP//////////////////////////////////////////////////////////////////////////////////////////////////////5+nc/2NzHf9jcx3/Y3Md/2N0H0tddBcLZHMd9mNzHf9jcx3/h5NS/2x7K/+IlFP////////////s7uT/mqVu/5qlbv+apW7/4uXV//////+ps4T/mqVu/5qlbv/Ax6T//////83Tt/+apW7/mqVu/5umb///////////////////////fIlB/2NzHf9jcx3/ZHMekmRzHkVjcx3/Y3Md/2NzHf9wfzH/Y3Md/8bMrP///////////+Hk1P9hcxz/YXMc/2FzHP/R1r3//////3mIP/9hcxz/YXMc/5yncf//////sbqO/2FzHP9hcxz/YnQe//////////////////////+bpW7/Y3Md/2NzHf9kdB7EY3MedmNzHf9jcx3/Y3Md/2NzHf9mdiL/9vfy////////////4eTU/2FzHP9hcxz/YXMc/9HWvf//////eYg//2FzHP9hcxz/nKdx//////+xuo7/YXMc/2FzHP9idB7//////////////////////6qzhP9jcx3/Y3Md/2R0HeNjcx2VY3Md/2NzHf9jcx3/Y3Md/4aSUP/////////////////h5NT/YXMc/2FzHP9hcxz/0da9//////95iD//YXMc/2FzHP+cp3H//////7G6jv9hcxz/YXMc/2J0Hv//////////////////////rLSH/2NzHf9jcx3/Y3Md72R0HqNjcx3/Y3Md/2NzHf9jcx3/o616/////////////////+Hk1P9hcxz/YXMc/2FzHP/R1r3//////3mIP/9hcxz/YXMc/5yncf//////sbqO/2FzHP9hcxz/YnQe//////////////////////+hq3f/Y3Md/2NzHf9jdB3qZHQdoWNzHf9jcx3/Y3Md/2NzHf+1vJT/////////////////4eTU/2FzHP9hcxz/YXMc/8zStv//////dIM3/2FzHP9hcxz/lqJp//////+rtYf/YXMc/2FzHP9idB7//////////////////////4qWVv9jcx3/Y3Md/2N0HthjcxyQY3Md/2NzHf9peCX/Y3Md/7rBm//////////////////h5NT/YXMc/2FzHP9hcxz/dYQ4/4+bXv9hcxz/YXMc/2FzHP9ldyL/laFo/2t8Kv9hcxz/YXMc/2d4JP/////////////////8/Pr/a3oo/2NzHf9jcx3/Y3Mdv2J0HXJjcx3/Y3Md/3KAM/9jcx3/sbmN/////////////////+Hk1P9hcxz/YXMc/2FzHP9idB7/YXMc/2FzHP9hcxz/YXMc/2d4Jf9hcxz/YXMc/2FzHP9hcxz/hJJO/////////////////9XZwv9jcx3/Y3Md/2NzHf9jcx2gY3QfS2NzHf9jcx3/qrKD/2t6KP+Yomr/////////////////4eTU/2FzHP9hcxz/YXMc/6Svfv9kdiH/YXMc/2FzHP+DkU3/0te+/2Z3I/9hcxz/YXMc/2Z4I//V2sP/////////////////nKZv/2NzHf9jcx3/Y3Md/2JzHXpheSQVZHMd/WNzHf+EkE3/kZxg/3B/MP/8/fv////////////5+fb/3uLQ/97i0P/e4tD/9vfx/+fp3P+9xaH/yM6v//n69///////6+7j/8DHpP/ByKb/7O7j/////////////////+7w5/9ndyP/Y3Md/2NzHf9jcx3/YnUdRgAAAABkdB7EY3Md/2R0Hv+xuY//Y3Md/8vQs///////////////////////////////////////////////////////////////////////////////////////////////////////o6x5/2NzHf9jcx3/Y3Md/2NzHfRmgBoKAAAAAGRzHVljcx3/Y3Md/5ymcP99ikL/eoc+//n69////////////////////////////////////////////////////////////////////////////////////////////+Dj0/9ldSD/Y3Md/2NzHf9jcx3/ZHQdngAAAAAAAAAAgIAAAmNzHcljcx3/ZXQf/7nAmv9ndiL/maRs//3+/f/////////////////////////////////////////////////////////////////////////////////5+fb/fotE/2NzHf9jcx3/Y3Md/2NzHvpidiEnAAAAAAAAAAAAAAAAZXIiJmNzHt5jcx3/dYM3/7i/mP9mdiL/kp1h//P07f///////////////////////////////////////////////////////////////////////v79/5eiaf9jcx3/Y3Md/2NzHf9jcx3/Y3QeiAAAAAAAAAAAAAAAAAAAAAAAAAAAYnYnDWNzHs5jcx3/anoo/6uzhf+ttYf/nadx/3aEOf/q7OH///////////////////////////////////////////////////////z8+/+dp3H/Y3Md/2NzHf9jcx3/Y3Md/2N0HsaAgCoGAAAAAAAAAAAAAAAAAAAAAAAAAABVVQADY3UegWNzHf9jcx3/a3op/+vt4//8/Pr/tb2V//Lz7P/////////////////////////////////////////////////q7OD/iJRS/2NzHv9jcx3/Y3Md/2NzHf9jcx7VYXkkFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgAACY3QemGNzHf9jcx3/anoo/621iP/s7uT////////////////////////////////////////////m6Nr/pa59/2h3JP9odyT/aHck/2NzHf9jcx3/ZHMexWFtJBUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wABZHMeh2NzHf9jcx3/Y3Md/2R0Hv+Cj0r/pK58/7vCnP/Fy6v/w8mp/7e+l/+fqXT/fIlA/2NzHf9mdiL/bHsq/2h3JP9jcx3/Y3Md/WN0HY1tbSQHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABheSQVY3MdyWNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Me/2V1IP9jcx3/Y3Md/2N0HsRhdBw3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgEAEZXMebWN0HeVjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md+WR0Ha1kdB9CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZpkzBWNzHVBkdB2WY3Qdy2N0Hexkcx76ZHMd+GN0HeVjdB7EZHMdlGJ0HlZgcCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAADAAAABgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFddBcLaHEcG2R2HylidR1GZHMeZmN0HnlkdB5/ZHIdfWNzHXFjcxtdZHQgQGRwHyloeCAgZG8hF2qAKgyAgAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABZnUdI2RzHmZjcx2gZHQcz2NzHfNjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHfdjcx7fY3QdxGRzHqRichx/ZHMeVGZ1HSNVVQADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHZ2FA1kdB6AY3Md22JzHfZjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx38Y3Md8GNzHd5kcx2mZHIgOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABddBcLZHYeRWRzHtdjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/mNzHdBjdB7GZHQd7mNzHvpjcx3+Y3Md/2NzHf9jcx3/Y3Md/mNzHa9jdhw2gIAqBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZwHxljcx2OY3Me8WNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx38Y3Qd6mNzHvBjcx38Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3lY3QehmJ2HRoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZHYbHGN0HMZjdB35Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/d4Q6/5eiaf91gzf/ZHQe/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md+2R0HsZndxsvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAFichsvY3Qd1WNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2l5Jv9/jEb/f4xG/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHQf/2V1If9mdiL/ZnYh/2V1IP9kdB7/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3TYnEdNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZzGihjcx3DY3Id/mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/29+Lv9peSb/Y3Md/2NzHf9odyT/eIY8/4iUUv+Un2T/n6l0/6ixgf+vt4v/tbyU/7jAmf+6wZv/usGb/7e/l/+osYH/h5NQ/2d2Iv9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHMc12NzHT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaoAVDGNzHsZjcx39Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9kdB//hZFO/7zDnv/g49P/7O7j//Hz6//19vH/+fr2//z8+//+/v7////////////////////////////7/Pr/8fLq/9jbxv+Qm17/ZnUh/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2RzHdRmcRwtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmgBoKZHQeo2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHQf/4CNRv/O07n//P37///////////////////////////////////////////////////////////////////////////////////////9/fz/z9S6/4CMRv9ndyP/Y3Md/2NzHf9jcx3/Y3Md/2NzHf5kcx6oYHAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANjdR1iY3Me8mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9ndiL/nqhz/+zt4/////////////////////////////////////////////////////////////////////////////////////////////////////////////Dy6v+vt4v/bnwt/2NzHf9jcx3/Y3Md/2NzHf9jdB33YnUfawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF5xHBtjdB7PY3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0H/+eqHL/8/Xu///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+/j/0te+/218LP9jcx3/Y3Md/2NzHf9jcx3/Y3Qd7mB3Ii0AAAAAAAAAAAAAAAAAAAAAAAAAAGNzHH5jcx3/Y3Md/2NzHf9jcx3/ZHQe/3B+L/9mdSD/Y3Md/4KPSv/s7uT//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ndyP9zgTT/Y3Md/2NzHf9jcx3/Y3Md/2R0Ha5mZjMFAAAAAAAAAAAAAAAAZnUdI2N0Hexjcx3/Y3Md/2NzHf9jcx3/i5dX/4yYWP9jcx3/bX0s/9reyv////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8+v+7wZz/aXkm/2NzHf9jcx3/Y3Md/2NzHedkciA4AAAAAAAAAAAAAAAAZHMekmNzHf9jcx3/Y3Md/2NzHf9zgjX/ucCZ/2d2Iv9jcx3/t76W//7+/v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////19vD/g5BL/2NzHf9jcx3/Y3Md/2NzHfxkdB5/VVUAAwAAAABqexodY3Md3mNzHf9jcx3/Y3Md/2R0Hv+dp3L/hZJP/2NzHf+BjUj/7/Dn////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////xsyt/2NzHf9jcx3/Y3Md/2NzHf9kdB69YW0YFQAAAABjdBxaY3Me8mNzHf9jcx3/Y3Md/2t6KP+cpnH/b34u/2Z2Iv+zu5L//P37////////////+Pn1/+nr3//p69//6evf/+nr3//u8Ob//f38///////3+PT/6uzh/+nr3//p69//6evf/+zu4//8/Pv///////v8+v/p7OD/6evf/+nr3//p69//6ezg////////////////////////////9/jz/3B/MP9jcx3/Y3Md/2NzHf9jcx3tYXMeKlWAKgZjcx2OY3Md/mNzHf9jcx3/Y3Md/3B+L/+MmFn/ZHQf/3OCNf/h5NT/////////////////09jB/3SEOP90hDj/dIQ4/3SEOP+RnmL/8fPs///////O1Lr/e4pC/3SEOP90hDj/dIQ4/4aTUf/t7+X//////+jr3v91hTj/dIQ4/3SEOP90hDj/doU6/////////////////////////////////5iiaf9jcx3/Y3Md/2NzHf9jcx3+YnMfW2ZzGhRjcx66Y3Md/2NzHf9jcx3/Y3Md/2l5Jv92hDn/Y3Md/5KdYf/+/v7/////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////7nBmv9jcx3/Y3Md/2NzHf9jcx3/Y3Idk2BwICBjcx7fY3Md/2NzHf9jcx3/Y3Md/2R0Hv9ldSD/Y3Md/83Stv//////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9DUu/9jcx3/Y3Md/2NzHf9jcx3/ZHQeu2N0HSxjcx76Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/bHsq//n69///////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9zgzf9jcx3/Y3Md/2NzHf9jcx3/ZHMe12JzH0ljcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/k55j////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////97hz/9jcx3/Y3Md/2NzHf9jcx3/YnMd5GR1Hl5jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/uL+Y////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9baxP9jcx3/Y3Md/2NzHf9jcx3/ZHMd5GVzHWhjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/1NnB////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////8bMrP9jcx3/Y3Md/2NzHf9jcx3/Y3Md2WJ0HGVjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9ldSH/5eja////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+Aj0r/7/Ho///////GzK3/aHkn/2FzHP9hcxz/YXMc/3SEOP/p6+D//////+Ll1f9hcx3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////6y0h/9jcx3/Y3Md/2NzHf9jcx3/ZHMexWRyHVdjcx3/Y3Md/2NzHf9ldB//ZHMe/2NzHf9rein/6Ord////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9tfS3/x82u/+Xo2v+hq3j/Y3Uf/2FzHP9hcxz/YXMc/2t7Kv++xaH/5unb/6u1h/9hcxz/YXMc/2FzHP9hcxz/ZHYg/////////////////////////////////4qVVf9jcx3/Y3Md/2NzHf9jcx3/ZHQcq2RwHEBjcx3/Y3Md/2NzHf9qeSf/ZXUg/2NzHf9seyn/6Ord////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9hcxz/bH0s/3ODNv9neCT/YXMc/2FzHP9hcxz/YXMc/2FzHf9rfCr/c4M2/2Z4JP9hcxz/YXMc/2FzHP9hcxz/bX4u////////////////////////////9vfy/2h3JP9jcx3/Y3Md/2NzHf9jcx3/Y3QdjWRwHyljdB33Y3Md/2NzHf9wfzH/aHck/2NzHf9mdiL/5efZ////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9hcx3/YXMc/2FzHP9hcxz/YXMc/2FzHP9hcxz/YXMc/2R2If9hcxz/YXMc/2FzHP9hcxz/YXMc/2FzHP9hcxz/jZpc////////////////////////////x82v/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Mdamh4ICBjcx7fY3Md/2NzHf9vfi7/oKp2/2R0Hv9jcx3/09i/////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9ygjT/bn8v/2FzHP9hcxz/YXMc/2FzHP9hcxz/Zngk/6iygf9meCP/YXMc/2FzHP9hcxz/YXMc/2FzHP9neCT/ys+y///////////////////////7/Pr/kJxf/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3IeQ2h0IxZkdB3CY3Md/2NzHf9kdB//09e+/3eFO/9jcx3/srqP////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/xMur/2l7KP9hcxz/YXMc/2FzHP9kdiD/tb2T//X28f+hrHj/ZHUg/2FzHP9hcxz/YXMc/2R2IP+irXr/9/jz///////////////////////f4tH/c4E0/2NzHf9jcx3/Y3Md/2NzHf9jcx3xYHMgKGaAGgpicx2eY3Md/2NzHf9jcx3/p7CA/6Ksef9jcx3/hJFN//7+/f//////////////////////7vDn/8nPsv/Jz7L/yc+y/8nPsv/V2cL/+vr3/+rs4f+psoP/jptd/5mkbP/P1Ln//Pz6///////8/Pr/zdO4/5umcP+Om13/nahz/87Uuf/8/Pr///////////////////////39/P+xuY7/ZXUg/2NzHf9jcx3/Y3Md/2NzHf9kdB7PXnEcGwD/AAFlcx5vY3Md+WNzHf9jcx3/dYM3/87TuP9odyT/ZXUg/9/i0P///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+zu5P9/jEb/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jdB2lYnYnDQAAAABjcRw2Y3Md5mNzHf9jcx3/Y3Md/7e/l/+Hk1H/Y3Md/5ahZ//9/fz//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7O7kf9ldB//Y3Md/2NzHf9jcx3/Y3Md/2NzHfljcx1xAP8AAQAAAABVVQADY3MesWNzHf9jcx3/Y3Md/4GOSP+wuI3/Z3cj/29+L//T17///v7+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5eja/2l5Jf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2N0HeNhdR8yAAAAAAAAAAAAAAAAYnEdNGNzHfFjcx3/Y3Md/2p5J/+wuI3/hZJP/2R0Hv+NmFr/7/Ho///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////x8ur/jZla/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0HqBmZjMFAAAAAAAAAAAAAAAAAP8AAWNzHXxjcx3/Y3Md/2NzHf9/jEX/z9W7/218LP9ldSD/laBm//v8+f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8+v+zupD/Z3cj/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Id82BwICAAAAAAAAAAAAAAAAAAAAAAAAAAAGFtGBVjdB6yY3Md+2NzHf9jcx3/laBm/8nPsf9ygDL/Y3Me/4+aXf/o697//v79/////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/9HWvf9tfCz/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx35ZHIecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkdB8hY3IeiGNzHfljcx3/Y3Md/5SfZP+nsID/fotD/2R0H/+Kllb/usGb/7nAmv/l6Nr//v79///////////////////////////////////////////////////////////////////////////////////////9/v3/ztK4/3OCNf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf1kdB2uY3EcEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbW0kB2N1HoFjcx3+Y3Md/2R0Hv9zgTT/xsyt/9ncyP/l6Nr/ipZW/2Z2If+apW3/9fbx//////////////////////////////////////////////////////////////////////////////////39/f/IzbD/c4E0/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHd1kdBwuAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbW0kB2NzHXFjcx3mY3Md/2NzHf9jcx3/eYc+//T17///////9vfz/5CbX/+psoL/+Pn0//////////////////////////////////////////////////////////////////////////7/9PXv/7zDnv9reyn/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHMe5mVyHzoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGF5GBVjcx2dY3Md+WNzHf9jcx3/Y3Md/5SfZP/T2MD/+/z5//3+/f/8/Pr///////////////////////////////////////////////////////////////////////n59v/M0bb/kZxg/2R0H/9ldSD/ZnYi/2NzHf9jcx3/Y3Md/2NzHf5jcx3RZHQfQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjcRwSZHQfnmNzHf9jcx3/Y3Md/2R0Hv9vfi7/kJte/9HWvf/6+/n////////////////////////////////////////////////////////////29/L/xcus/4eTUP9tfCv/ZHQe/2Z2Iv9tfCz/ZXUg/2NzHf9jcx3/Y3Md/2RzHdJkcx4zgIAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAmV0HZNjcx30Y3Md/2NzHf9jcx3/Y3Md/2NzHv91hDj/oat4/8jOsP/h5NT/6evf/+vt4v/s7uP/6+3h/+jq3f/c38z/v8ai/5eiaf9vfS7/Y3Md/2NzHv9ldSH/bn4u/29+MP9jcx3/Y3Md/2NzHf9jch3zY3IerGNxHBIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNxHBJjcx60Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9mdiH/cH4v/3aEOf94hTv/dII2/2x7K/9kdB//Y3Md/2NzHf9jcx3/Y3Me/2d3I/9reij/ZnYi/2NzHf9jcx3/Y3Md/2R0Hs1jcx9kXXQXCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAAAJidB85ZHMd0mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0Hv9jcx3/Y3Md/2NzHf9jch3qY3IeeWJ2HRpVVQADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXXQXC2N0HYtjcx3jZHMd+2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf5kcx3zY3Md3WNzH45geCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANjch8xZHQdfWR0HcBjdB7yY3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx7yYnMdymRzHZdkch5eZncaHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVVUAA110IxZkdBwuY3UdYmNzHZ1jcx3IY3Qd5WRzHfZkcx74ZHMe8GNzHdxjcx68YnMekmNzHl1gcRwtZnAfGVVxHAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",alt:"marimo",className:"h-4 w-auto"})]})}),x[0]=A):A=x[0],A};export{uA as default};
@@ -1,10 +0,0 @@
1
- var z,F,P;import{_,p as pt,q as dt,s as _t,g as mt,b as xt,a as kt,c as R,z as vt,T as bt,y as wt,j as St}from"./mermaid-DCMac0Ai.js";import{s as Y}from"./transform-CDNfLgV5.js";import{o as Lt}from"./ordinal-DDUp3AbE.js";import{c as At}from"./colors-bszWmPJw.js";import"./index-_lj65MZR.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";const Et=At("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function it(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var B,st;function rt(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&i>l&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&i>l&&(l=i);return l}function ot(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&l>i&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&l>i&&(l=i);return l}function K(t,e){var i,l=t.length,o=-1,r=0;if(e==null)for(;++o<l;)(i=+t[o])&&(r+=i);else for(;++o<l;)(i=+e(t[o],o,t))&&(r+=i);return r}function Mt(t){return t.target.depth}function at(t,e){return t.sourceLinks.length?t.depth:e-1}function W(t){return function(){return t}}function ct(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function Z(t){return t.value}function It(t){return t.index}function Tt(t){return t.nodes}function Nt(t){return t.links}function ht(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function ut({nodes:t}){for(const e of t){let i=e.y0,l=i;for(const o of e.sourceLinks)o.y0=i+o.width/2,i+=o.width;for(const o of e.targetLinks)o.y1=l+o.width/2,l+=o.width}}function Ot(){let t,e,i,l=0,o=0,r=1,k=1,s=24,y=8,c=It,d=at,x=Tt,p=Nt,E=6;function v(){const n={nodes:x.apply(null,arguments),links:p.apply(null,arguments)};return function({nodes:h,links:u}){for(const[f,a]of h.entries())a.index=f,a.sourceLinks=[],a.targetLinks=[];const g=new Map(h.map((f,a)=>[c(f,a,h),f]));for(const[f,a]of u.entries()){a.index=f;let{source:b,target:m}=a;typeof b!="object"&&(b=a.source=ht(g,b)),typeof m!="object"&&(m=a.target=ht(g,m)),b.sourceLinks.push(a),m.targetLinks.push(a)}if(i!=null)for(const{sourceLinks:f,targetLinks:a}of h)f.sort(i),a.sort(i)}(n),function({nodes:h}){for(const u of h)u.value=u.fixedValue===void 0?Math.max(K(u.sourceLinks,Z),K(u.targetLinks,Z)):u.fixedValue}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.depth=a;for(const{target:m}of b.sourceLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.height=a;for(const{source:m}of b.targetLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function(h){const u=function({nodes:g}){const f=rt(g,m=>m.depth)+1,a=(r-l-s)/(f-1),b=new Array(f);for(const m of g){const S=Math.max(0,Math.min(f-1,Math.floor(d.call(null,m,f))));m.layer=S,m.x0=l+S*a,m.x1=m.x0+s,b[S]?b[S].push(m):b[S]=[m]}if(e)for(const m of b)m.sort(e);return b}(h);t=Math.min(y,(k-o)/(rt(u,g=>g.length)-1)),function(g){const f=ot(g,a=>(k-o-(a.length-1)*t)/K(a,Z));for(const a of g){let b=o;for(const m of a){m.y0=b,m.y1=b+m.value*f,b=m.y1+t;for(const S of m.sourceLinks)S.width=S.value*f}b=(k-b+t)/(a.length+1);for(let m=0;m<a.length;++m){const S=a[m];S.y0+=b*(m+1),S.y1+=b*(m+1)}C(a)}}(u);for(let g=0;g<E;++g){const f=Math.pow(.99,g),a=Math.max(1-f,(g+1)/E);I(u,f,a),T(u,f,a)}}(n),ut(n),n}function T(n,h,u){for(let g=1,f=n.length;g<f;++g){const a=n[g];for(const b of a){let m=0,S=0;for(const{source:A,value:U}of b.targetLinks){let et=U*(b.layer-A.layer);m+=$(A,b)*et,S+=et}if(!(S>0))continue;let D=(m/S-b.y0)*h;b.y0+=D,b.y1+=D,N(b)}e===void 0&&a.sort(G),M(a,u)}}function I(n,h,u){for(let g=n.length-2;g>=0;--g){const f=n[g];for(const a of f){let b=0,m=0;for(const{target:D,value:A}of a.sourceLinks){let U=A*(D.layer-a.layer);b+=O(a,D)*U,m+=U}if(!(m>0))continue;let S=(b/m-a.y0)*h;a.y0+=S,a.y1+=S,N(a)}e===void 0&&f.sort(G),M(f,u)}}function M(n,h){const u=n.length>>1,g=n[u];L(n,g.y0-t,u-1,h),w(n,g.y1+t,u+1,h),L(n,k,n.length-1,h),w(n,o,0,h)}function w(n,h,u,g){for(;u<n.length;++u){const f=n[u],a=(h-f.y0)*g;a>1e-6&&(f.y0+=a,f.y1+=a),h=f.y1+t}}function L(n,h,u,g){for(;u>=0;--u){const f=n[u],a=(f.y1-h)*g;a>1e-6&&(f.y0-=a,f.y1-=a),h=f.y0-t}}function N({sourceLinks:n,targetLinks:h}){if(i===void 0){for(const{source:{sourceLinks:u}}of h)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(ct)}}function C(n){if(i===void 0)for(const{sourceLinks:h,targetLinks:u}of n)h.sort(lt),u.sort(ct)}function $(n,h){let u=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u+=f+t}for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u-=f}return u}function O(n,h){let u=h.y0-(h.targetLinks.length-1)*t/2;for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u+=f+t}for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u-=f}return u}return v.update=function(n){return ut(n),n},v.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:W(n),v):c},v.nodeAlign=function(n){return arguments.length?(d=typeof n=="function"?n:W(n),v):d},v.nodeSort=function(n){return arguments.length?(e=n,v):e},v.nodeWidth=function(n){return arguments.length?(s=+n,v):s},v.nodePadding=function(n){return arguments.length?(y=t=+n,v):y},v.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:W(n),v):x},v.links=function(n){return arguments.length?(p=typeof n=="function"?n:W(n),v):p},v.linkSort=function(n){return arguments.length?(i=n,v):i},v.size=function(n){return arguments.length?(l=o=0,r=+n[0],k=+n[1],v):[r-l,k-o]},v.extent=function(n){return arguments.length?(l=+n[0][0],r=+n[1][0],o=+n[0][1],k=+n[1][1],v):[[l,o],[r,k]]},v.iterations=function(n){return arguments.length?(E=+n,v):E},v}(B=it).length===1&&(st=B,B=function(t,e){return it(st(t),e)});var H=Math.PI,J=2*H,j=1e-6,Pt=J-j;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ft(){return new tt}function yt(t){return function(){return t}}function Ct(t){return t[0]}function Dt(t){return t[1]}tt.prototype=ft.prototype={constructor:tt,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,i,l){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,e,i,l,o,r){this._+="C"+ +t+","+ +e+","+ +i+","+ +l+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,i,l,o){t=+t,e=+e,i=+i,l=+l,o=+o;var r=this._x1,k=this._y1,s=i-t,y=l-e,c=r-t,d=k-e,x=c*c+d*d;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>j)if(Math.abs(d*s-y*c)>j&&o){var p=i-r,E=l-k,v=s*s+y*y,T=p*p+E*E,I=Math.sqrt(v),M=Math.sqrt(x),w=o*Math.tan((H-Math.acos((v+x-T)/(2*I*M)))/2),L=w/M,N=w/I;Math.abs(L-1)>j&&(this._+="L"+(t+L*c)+","+(e+L*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*E)+","+(this._x1=t+N*s)+","+(this._y1=e+N*y)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,l,o,r){t=+t,e=+e,r=!!r;var k=(i=+i)*Math.cos(l),s=i*Math.sin(l),y=t+k,c=e+s,d=1^r,x=r?l-o:o-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+y+","+c:(Math.abs(this._x1-y)>j||Math.abs(this._y1-c)>j)&&(this._+="L"+y+","+c),i&&(x<0&&(x=x%J+J),x>Pt?this._+="A"+i+","+i+",0,1,"+d+","+(t-k)+","+(e-s)+"A"+i+","+i+",0,1,"+d+","+(this._x1=y)+","+(this._y1=c):x>j&&(this._+="A"+i+","+i+",0,"+ +(x>=H)+","+d+","+(this._x1=t+i*Math.cos(o))+","+(this._y1=e+i*Math.sin(o))))},rect:function(t,e,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};var $t=Array.prototype.slice;function jt(t){return t.source}function zt(t){return t.target}function Ft(t,e,i,l,o){t.moveTo(e,i),t.bezierCurveTo(e=(e+l)/2,i,e,o,l,o)}function Ut(){return function(t){var e=jt,i=zt,l=Ct,o=Dt,r=null;function k(){var s,y=$t.call(arguments),c=e.apply(this,y),d=i.apply(this,y);if(r||(r=s=ft()),t(r,+l.apply(this,(y[0]=c,y)),+o.apply(this,y),+l.apply(this,(y[0]=d,y)),+o.apply(this,y)),s)return r=null,s+""||null}return k.source=function(s){return arguments.length?(e=s,k):e},k.target=function(s){return arguments.length?(i=s,k):i},k.x=function(s){return arguments.length?(l=typeof s=="function"?s:yt(+s),k):l},k.y=function(s){return arguments.length?(o=typeof s=="function"?s:yt(+s),k):o},k.context=function(s){return arguments.length?(r=s??null,k):r},k}(Ft)}function Wt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}var nt=function(){var t=_(function(s,y,c,d){for(c=c||{},d=s.length;d--;c[s[d]]=y);return c},"o"),e=[1,9],i=[1,10],l=[1,5,10,12],o={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:_(function(s,y,c,d,x,p,E){var v=p.length-1;switch(x){case 7:const T=d.findOrCreateNode(p[v-4].trim().replaceAll('""','"')),I=d.findOrCreateNode(p[v-2].trim().replaceAll('""','"')),M=parseFloat(p[v].trim());d.addLink(T,I,M);break;case 8:case 9:case 11:this.$=p[v];break;case 10:this.$=p[v-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:_(function(s,y){if(!y.recoverable){var c=new Error(s);throw c.hash=y,c}this.trace(s)},"parseError"),parse:_(function(s){var y=this,c=[0],d=[],x=[null],p=[],E=this.table,v="",T=0,I=0,M=p.slice.call(arguments,1),w=Object.create(this.lexer),L={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(L.yy[N]=this.yy[N]);w.setInput(s,L.yy),L.yy.lexer=w,L.yy.parser=this,w.yylloc===void 0&&(w.yylloc={});var C=w.yylloc;p.push(C);var $=w.options&&w.options.ranges;function O(){var A;return typeof(A=d.pop()||w.lex()||1)!="number"&&(A instanceof Array&&(A=(d=A).pop()),A=y.symbols_[A]||A),A}typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,_(function(A){c.length=c.length-2*A,x.length=x.length-A,p.length=p.length-A},"popStack"),_(O,"lex");for(var n,h,u,g,f,a,b,m,S={};;){if(h=c[c.length-1],this.defaultActions[h]?u=this.defaultActions[h]:(n==null&&(n=O()),u=E[h]&&E[h][n]),u===void 0||!u.length||!u[0]){var D="";for(f in m=[],E[h])this.terminals_[f]&&f>2&&m.push("'"+this.terminals_[f]+"'");D=w.showPosition?"Parse error on line "+(T+1)+`:
2
- `+w.showPosition()+`
3
- Expecting `+m.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(T+1)+": Unexpected "+(n==1?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(D,{text:w.match,token:this.terminals_[n]||n,line:w.yylineno,loc:C,expected:m})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+n);switch(u[0]){case 1:c.push(n),x.push(w.yytext),p.push(w.yylloc),c.push(u[1]),n=null,I=w.yyleng,v=w.yytext,T=w.yylineno,C=w.yylloc;break;case 2:if(a=this.productions_[u[1]][1],S.$=x[x.length-a],S._$={first_line:p[p.length-(a||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(a||1)].first_column,last_column:p[p.length-1].last_column},$&&(S._$.range=[p[p.length-(a||1)].range[0],p[p.length-1].range[1]]),(g=this.performAction.apply(S,[v,I,T,L.yy,u[1],x,p].concat(M)))!==void 0)return g;a&&(c=c.slice(0,-1*a*2),x=x.slice(0,-1*a),p=p.slice(0,-1*a)),c.push(this.productions_[u[1]][0]),x.push(S.$),p.push(S._$),b=E[c[c.length-2]][c[c.length-1]],c.push(b);break;case 3:return!0}}return!0},"parse")},r=function(){return{EOF:1,parseError:_(function(s,y){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,y)},"parseError"),setInput:_(function(s,y){return this.yy=y||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:_(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:_(function(s){var y=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var d=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),c.length-1&&(this.yylineno-=c.length-1);var x=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:_(function(){return this._more=!0,this},"more"),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})},"reject"),less:_(function(s){this.unput(this.match.slice(s))},"less"),pastInput:_(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:_(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:_(function(){var s=this.pastInput(),y=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+y+"^"},"showPosition"),test_match:_(function(s,y){var c,d,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),(d=s[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],c=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var p in x)this[p]=x[p];return!1}return!1},"test_match"),next:_(function(){if(this.done)return this.EOF;var s,y,c,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),p=0;p<x.length;p++)if((c=this._input.match(this.rules[x[p]]))&&(!y||c[0].length>y[0].length)){if(y=c,d=p,this.options.backtrack_lexer){if((s=this.test_match(c,x[p]))!==!1)return s;if(this._backtrack){y=!1;continue}return!1}if(!this.options.flex)break}return y?(s=this.test_match(y,x[d]))!==!1&&s:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:_(function(){var s=this.next();return s||this.lex()},"lex"),begin:_(function(s){this.conditionStack.push(s)},"begin"),popState:_(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_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},"_currentRules"),topState:_(function(s){return(s=this.conditionStack.length-1-Math.abs(s||0))>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:_(function(s){this.begin(s)},"pushState"),stateStackSize:_(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:_(function(s,y,c,d){switch(c){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}}();function k(){this.yy={}}return o.lexer=r,_(k,"Parser"),k.prototype=o,o.Parser=k,new k}();nt.parser=nt;var q=nt,V=[],X=[],Q=new Map,qt=_(()=>{V=[],X=[],Q=new Map,wt()},"clear"),Vt=(z=class{constructor(e,i,l=0){this.source=e,this.target=i,this.value=l}},_(z,"SankeyLink"),z),Xt=_((t,e,i)=>{V.push(new Vt(t,e,i))},"addLink"),Qt=(F=class{constructor(e){this.ID=e}},_(F,"SankeyNode"),F),Rt=_(t=>{t=St.sanitizeText(t,R());let e=Q.get(t);return e===void 0&&(e=new Qt(t),Q.set(t,e),X.push(e)),e},"findOrCreateNode"),Yt=_(()=>X,"getNodes"),Bt=_(()=>V,"getLinks"),Kt=_(()=>({nodes:X.map(t=>({id:t.ID})),links:V.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),Zt={nodesMap:Q,getConfig:_(()=>R().sankey,"getConfig"),getNodes:Yt,getLinks:Bt,getGraph:Kt,addLink:Xt,findOrCreateNode:Rt,getAccTitle:kt,setAccTitle:xt,getAccDescription:mt,setAccDescription:_t,getDiagramTitle:dt,setDiagramTitle:pt,clear:qt},gt=(P=class{static next(e){return new P(e+ ++P.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},_(P,"Uid"),P.count=0,P),Ht={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ot(t.sourceLinks,Mt)-1:0},justify:at},Jt=_(function(t,e,i,l){const{securityLevel:o,sankey:r}=R(),k=vt.sankey;let s;o==="sandbox"&&(s=Y("#i"+e));const y=Y(o==="sandbox"?s.nodes()[0].contentDocument.body:"body"),c=o==="sandbox"?y.select(`[id="${e}"]`):Y(`[id="${e}"]`),d=(r==null?void 0:r.width)??k.width,x=(r==null?void 0:r.height)??k.width,p=(r==null?void 0:r.useMaxWidth)??k.useMaxWidth,E=(r==null?void 0:r.nodeAlignment)??k.nodeAlignment,v=(r==null?void 0:r.prefix)??k.prefix,T=(r==null?void 0:r.suffix)??k.suffix,I=(r==null?void 0:r.showValues)??k.showValues,M=l.db.getGraph(),w=Ht[E];Ot().nodeId(n=>n.id).nodeWidth(10).nodePadding(10+(I?15:0)).nodeAlign(w).extent([[0,0],[d,x]])(M);const L=Lt(Et);c.append("g").attr("class","nodes").selectAll(".node").data(M.nodes).join("g").attr("class","node").attr("id",n=>(n.uid=gt.next("node-")).id).attr("transform",function(n){return"translate("+n.x0+","+n.y0+")"}).attr("x",n=>n.x0).attr("y",n=>n.y0).append("rect").attr("height",n=>n.y1-n.y0).attr("width",n=>n.x1-n.x0).attr("fill",n=>L(n.id));const N=_(({id:n,value:h})=>I?`${n}
7
- ${v}${Math.round(100*h)/100}${T}`:n,"getText");c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(M.nodes).join("text").attr("x",n=>n.x0<d/2?n.x1+6:n.x0-6).attr("y",n=>(n.y1+n.y0)/2).attr("dy",(I?"0":"0.35")+"em").attr("text-anchor",n=>n.x0<d/2?"start":"end").text(N);const C=c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(M.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),$=(r==null?void 0:r.linkColor)??"gradient";if($==="gradient"){const n=C.append("linearGradient").attr("id",h=>(h.uid=gt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",h=>h.source.x1).attr("x2",h=>h.target.x0);n.append("stop").attr("offset","0%").attr("stop-color",h=>L(h.source.id)),n.append("stop").attr("offset","100%").attr("stop-color",h=>L(h.target.id))}let O;switch($){case"gradient":O=_(n=>n.uid,"coloring");break;case"source":O=_(n=>L(n.source.id),"coloring");break;case"target":O=_(n=>L(n.target.id),"coloring");break;default:O=$}C.append("path").attr("d",Ut().source(Wt).target(Gt)).attr("stroke",O).attr("stroke-width",n=>Math.max(1,n.width)),bt(void 0,c,0,p)},"draw"),tn={draw:Jt},nn=_(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
- `).trim(),"prepareTextForParsing"),en=_(t=>`.label {
9
- font-family: ${t.fontFamily};
10
- }`,"getStyles"),sn=q.parse.bind(q);q.parse=t=>sn(nn(t));var rn={styles:en,parser:q,db:Zt,renderer:tn};export{rn as diagram};