@marimo-team/frontend 0.14.18-dev5 → 0.14.18-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-s7RGpPDV.js → ConnectedDataExplorerComponent-BaIUQrIX.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-CnrulJpr.js → ImageComparisonComponent-CxZdG2CC.js} +1 -1
- package/dist/assets/{VegaLite-C2fs5zc3.js → VegaLite-Z6SyB7W8.js} +1 -1
- package/dist/assets/{_baseEach-c_dyjc-O.js → _baseEach-7sRlJIgH.js} +1 -1
- package/dist/assets/_baseMap-BWr-cWt7.js +1 -0
- package/dist/assets/{_baseUniq-MHRYxaEh.js → _baseUniq-Dy351lYO.js} +1 -1
- package/dist/assets/{_createAggregator-BRrHJm-S.js → _createAggregator-tuCWwlfU.js} +1 -1
- package/dist/assets/{any-language-editor-BvO3QFMF.js → any-language-editor-BamaSKY2.js} +1 -1
- package/dist/assets/{architectureDiagram-SUXI7LT5-NdrSJuvB.js → architectureDiagram-SUXI7LT5-DyHBZ4NO.js} +1 -1
- package/dist/assets/{blockDiagram-6J76NXCF-ftx5RUcT.js → blockDiagram-6J76NXCF-P-kXumuw.js} +1 -1
- package/dist/assets/{c4Diagram-6F6E4RAY-BulMqa-Y.js → c4Diagram-6F6E4RAY-eOHn2Imb.js} +1 -1
- package/dist/assets/channel-DIjHgQnY.js +1 -0
- package/dist/assets/{chunk-353BL4L5-D5H2iwN7.js → chunk-353BL4L5-CFzyuLAq.js} +1 -1
- package/dist/assets/{chunk-67H74DCK-LK08G4lc.js → chunk-67H74DCK-CIWqUdmL.js} +1 -1
- package/dist/assets/{chunk-AACKK3MU-B9JAiO5u.js → chunk-AACKK3MU-CxGtIeNv.js} +1 -1
- package/dist/assets/{chunk-BFAMUDN2-CZKcG7Hk.js → chunk-BFAMUDN2-DkmobNj4.js} +1 -1
- package/dist/assets/{chunk-E2GYISFI-CIXtdUNn.js → chunk-E2GYISFI-WlMag73Q.js} +1 -1
- package/dist/assets/{chunk-OW32GOEJ-C4FCmwnP.js → chunk-OW32GOEJ-CC0tAzcX.js} +1 -1
- package/dist/assets/{chunk-SKB7J2MH-BaSlr3jl.js → chunk-SKB7J2MH-B0sWSuN_.js} +1 -1
- package/dist/assets/{chunk-SZ463SBG-BwDfdiOo.js → chunk-SZ463SBG-CyziA54m.js} +1 -1
- package/dist/assets/{circle-play-JsgbRX6G.js → circle-play-Dwg09kFs.js} +1 -1
- package/dist/assets/classDiagram-M3E45YP4-C4U43lIZ.js +1 -0
- package/dist/assets/classDiagram-v2-YAWTLIQI-C4U43lIZ.js +1 -0
- package/dist/assets/clone-ikcipny_.js +1 -0
- package/dist/assets/{compile-BGbhA30T.js → compile-BVDfJQ_9.js} +1 -1
- package/dist/assets/{dagre-JOIXM2OF-B8vUNw1G.js → dagre-JOIXM2OF-BRUYxN-i.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-5lo5J1Vt.js → data-grid-overlay-editor-DevNFsss.js} +1 -1
- package/dist/assets/{diagram-5UYTHUR4-PLDgwO4x.js → diagram-5UYTHUR4-D1ebkB7c.js} +1 -1
- package/dist/assets/{diagram-VMROVX33-B5-7SLna.js → diagram-VMROVX33-CMHIBUYK.js} +1 -1
- package/dist/assets/{diagram-ZTM2IBQH-BnKr5V6h.js → diagram-ZTM2IBQH-CQeNhQ3t.js} +1 -1
- package/dist/assets/{edit-page-CyEUf7VL.js → edit-page-51DFvYwH.js} +4 -4
- package/dist/assets/{erDiagram-3M52JZNH-Dk0Y_2Is.js → erDiagram-3M52JZNH-C6F3DP0R.js} +1 -1
- package/dist/assets/{flowDiagram-KYDEHFYC-DM8J3haJ.js → flowDiagram-KYDEHFYC-DQWcSkX7.js} +1 -1
- package/dist/assets/{ganttDiagram-EK5VF46D-B7MEeaeb.js → ganttDiagram-EK5VF46D-CNQfbuW1.js} +1 -1
- package/dist/assets/{gitGraphDiagram-GW3U2K7C-ciOWHdK1.js → gitGraphDiagram-GW3U2K7C-BZfR2Xfl.js} +1 -1
- package/dist/assets/{glide-data-editor-CeJNWkGL.js → glide-data-editor-DwzS3TXg.js} +4 -4
- package/dist/assets/{graph-IzuQV5TV.js → graph-Bq0vR64m.js} +1 -1
- package/dist/assets/{home-page-P0hOk_Lu.js → home-page-CJQ1VMV9.js} +1 -1
- package/dist/assets/{index-CvNa254z.js → index-B7GtZujm.js} +1 -1
- package/dist/assets/{index-DzcdkCgc.js → index-BR-cyQhp.js} +1 -1
- package/dist/assets/{index-BqqAIR7p.js → index-BZaudNa5.js} +1 -1
- package/dist/assets/{index-DzmGiDPv.js → index-BZpbzPMT.js} +1 -1
- package/dist/assets/{index-DyGhL8pb.js → index-BeZw0eoM.js} +1 -1
- package/dist/assets/{index-Bw4_53VL.js → index-BefWY6Ah.js} +143 -143
- package/dist/assets/{index-DVgehULr.js → index-C1UTEtg5.js} +1 -1
- package/dist/assets/{index-D86OE7I-.js → index-CXqV8V8P.js} +1 -1
- package/dist/assets/{index-CrnLkrsN.js → index-CjybibWu.js} +1 -1
- package/dist/assets/{index-ABc3l5O5.js → index-CsWPsy1S.js} +1 -1
- package/dist/assets/{index-DKlX9VbD.js → index-Cwzb6z71.js} +1 -1
- package/dist/assets/{index-ZMOxgO0o.js → index-DS7XqCVi.js} +1 -1
- package/dist/assets/{index-vOKQtqij.js → index-DaY4V8PZ.js} +1 -1
- package/dist/assets/{index-BtVdSmBr.js → index-DdtsvxKy.js} +1 -1
- package/dist/assets/{index-DWbP9NKv.js → index-DeUqVCzl.js} +1 -1
- package/dist/assets/{index-VEO6hI2a.js → index-Dfp21l4o.js} +1 -1
- package/dist/assets/{index-CTxIrFfM.js → index-HpWIL4KJ.js} +1 -1
- package/dist/assets/{index-DL31Tmv6.js → index-Wwj7K0Ee.js} +1 -1
- package/dist/assets/{index--eqo3Nr1.js → index-f0yOktee.js} +1 -1
- package/dist/assets/infoDiagram-LHK5PUON-CJFL3yFq.js +2 -0
- package/dist/assets/{journeyDiagram-EWQZEKCU-D-rWvB9c.js → journeyDiagram-EWQZEKCU-Kvt5RCTL.js} +1 -1
- package/dist/assets/{kanban-definition-ZSS6B67P-BPrv-lG3.js → kanban-definition-ZSS6B67P-DDnLQNJd.js} +1 -1
- package/dist/assets/{layout-C3NQCD38.js → layout-8KGiWycv.js} +1 -1
- package/dist/assets/{linear-Dcz3lyvf.js → linear-DMCrL16N.js} +1 -1
- package/dist/assets/links-C-BM-9mf.js +17 -0
- package/dist/assets/{mermaid-BjMqU7B7.js → mermaid-As26tMDi.js} +4 -4
- package/dist/assets/{min-DsZNGHWk.js → min-CLUKABrS.js} +1 -1
- package/dist/assets/{mindmap-definition-6CBA2TL7-BZsnMx2y.js → mindmap-definition-6CBA2TL7-BDzdyrL1.js} +1 -1
- package/dist/assets/{number-overlay-editor-CzX-JKBj.js → number-overlay-editor-BAKmMwQp.js} +1 -1
- package/dist/assets/{pieDiagram-NIOCPIFQ-BjbDT3_7.js → pieDiagram-NIOCPIFQ-C6Ov7bWT.js} +1 -1
- package/dist/assets/{quadrantDiagram-2OG54O6I-DwvUEn5y.js → quadrantDiagram-2OG54O6I-B-cbhhfv.js} +1 -1
- package/dist/assets/{react-plotly-DsUGZTQl.js → react-plotly-Bpp34INM.js} +1 -1
- package/dist/assets/{requirementDiagram-QOLK2EJ7-DnqQ02xB.js → requirementDiagram-QOLK2EJ7-Btb77dUe.js} +1 -1
- package/dist/assets/{run-page-Dh1_LBex.js → run-page-pWqG7b1Y.js} +1 -1
- package/dist/assets/{sankeyDiagram-4UZDY2LN-CGiEg-KK.js → sankeyDiagram-4UZDY2LN-BhR2psVm.js} +1 -1
- package/dist/assets/{sequenceDiagram-SKLFT4DO-Du_9Bhah.js → sequenceDiagram-SKLFT4DO-C_xr2yQx.js} +1 -1
- package/dist/assets/{slides-component-DbRb2vqt.js → slides-component-HN-Xdqlh.js} +1 -1
- package/dist/assets/{sortBy-DRXBnSF7.js → sortBy-BcgFdWkG.js} +1 -1
- package/dist/assets/{stateDiagram-MI5ZYTHO-x_vUiEQz.js → stateDiagram-MI5ZYTHO-Dv5riPA-.js} +1 -1
- package/dist/assets/stateDiagram-v2-5AN5P6BG-hUS9gcoI.js +1 -0
- package/dist/assets/{storage-C6lB9RSO.js → storage-Jq21wW_t.js} +3 -3
- package/dist/assets/{terminal-xOuxdYpY.js → terminal-D2VHCbrK.js} +1 -1
- package/dist/assets/{time-CjxeuzoW.js → time-CPWP6Rno.js} +1 -1
- package/dist/assets/{timeline-definition-MYPXXCX6-8Kv4fcyB.js → timeline-definition-MYPXXCX6-BRcGCjFD.js} +1 -1
- package/dist/assets/{tracing-BAj6E74_.js → tracing-DQ_UQfpK.js} +2 -2
- package/dist/assets/{trash-65Vbt3F6.js → trash-nR7lDHRj.js} +1 -1
- package/dist/assets/{treemap-75Q7IDZK-DtSMjk1Y.js → treemap-75Q7IDZK-DipLl6qz.js} +1 -1
- package/dist/assets/{vega-component-C3aywWbx.js → vega-component-DuBlubLU.js} +1 -1
- package/dist/assets/{xychartDiagram-H2YORKM3-D33F1MLE.js → xychartDiagram-H2YORKM3-DU8wjog4.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -1
- package/dist/assets/_baseMap-CRSErap7.js +0 -1
- package/dist/assets/channel-DkujgbuA.js +0 -1
- package/dist/assets/classDiagram-M3E45YP4-C27KFaf-.js +0 -1
- package/dist/assets/classDiagram-v2-YAWTLIQI-C27KFaf-.js +0 -1
- package/dist/assets/clone-BcaRetEG.js +0 -1
- package/dist/assets/infoDiagram-LHK5PUON-DM8xmmD0.js +0 -2
- package/dist/assets/links-UdVi9TCH.js +0 -17
- package/dist/assets/stateDiagram-v2-5AN5P6BG-BmONtexb.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{J as b,aE as d,bR as g,bS as O,x as j,Q as y,bT as x,aA as w,ak as P,bU as E,az as M,aC as U}from"./index-
|
1
|
+
import{J as b,aE as d,bR as g,bS as O,x as j,Q as y,bT as x,aA as w,ak as P,bU as E,az as M,aC as U}from"./index-BefWY6Ah.js";import{a as v}from"./_baseEach-7sRlJIgH.js";import{d as k}from"./_baseUniq-Dy351lYO.js";import{b as z}from"./_baseMap-BWr-cWt7.js";var c=Object.prototype,A=c.hasOwnProperty,C=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])&&!A.call(a,e))&&(a[e]=s[e])}return a});function J(a){var n=a==null?0:a.length;return n?a[n-1]:void 0}var Q=Math.max,p,R=(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=Q(t+r,0)),k(a,v(n),r)},function(a,n,u){var t=Object(a);if(!j(a)){var r=v(n);a=y(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 S(a,n){return(P(a)?w:z)(a,v(n))}var T=Object.prototype.hasOwnProperty;function _(a,n){return a!=null&&T.call(a,n)}function q(a,n){return a!=null&&E(a,n,_)}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&&!M(o):u(o,i)))var i=o,l=s}return l}function B(a){return a&&a.length?m(a,U,h):void 0}export{h as a,m as b,B as c,C as d,R as f,q as h,J as l,S as m};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var V;import{_ as x,l as H,c as K,I as yt,T as Et,G as Z,h as Q,V as mt,W as _t,X as Nt,a4 as vt,O as Tt}from"./mermaid-BjMqU7B7.js";import{c as rt}from"./cytoscape.esm-CzSnbbKZ.js";import{z as At}from"./index-Bw4_53VL.js";import{s as Lt}from"./transform-B8bpuzxV.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var it,ot={exports:{}},st={exports:{}},at={exports:{}};function Ot(){return it?at.exports:(it=1,O=function(){return function(A){var p={};function a(e){if(p[e])return p[e].exports;var t=p[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=A,a.c=p,a.i=function(e){return e},a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=26)}([function(A,p,a){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,p,a){var e=a(2),t=a(8),i=a(9);function r(o,h,l){e.call(this,l),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=l,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 l=this.getOtherEnd(o),u=h.getGraphManager().getRoot();;){if(l.getOwner()==h)return l;if(l.getOwner()==u)break;l=l.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,p,a){A.exports=function(e){this.vGraphObject=e}},function(A,p,a){var e=a(2),t=a(10),i=a(13),r=a(0),n=a(16),o=a(4);function h(u,f,d,y){d==null&&y==null&&(y=f),e.call(this,y),u.graphManager!=null&&(u=u.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=y,this.edges=[],this.graphManager=u,this.rect=d!=null&&f!=null?new i(f.x,f.y,d.width,d.height):new i}for(var l in h.prototype=Object.create(e.prototype),e)h[l]=e[l];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(u){this.rect.width=u},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(u){this.rect.height=u},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(u,f){this.rect.x=u.x,this.rect.y=u.y,this.rect.width=f.width,this.rect.height=f.height},h.prototype.setCenter=function(u,f){this.rect.x=u-this.rect.width/2,this.rect.y=f-this.rect.height/2},h.prototype.setLocation=function(u,f){this.rect.x=u,this.rect.y=f},h.prototype.moveBy=function(u,f){this.rect.x+=u,this.rect.y+=f},h.prototype.getEdgeListToNode=function(u){var f=[],d=this;return d.edges.forEach(function(y){if(y.target==u){if(y.source!=d)throw"Incorrect edge source!";f.push(y)}}),f},h.prototype.getEdgesBetween=function(u){var f=[],d=this;return d.edges.forEach(function(y){if(y.source!=d&&y.target!=d)throw"Incorrect edge source and/or target";y.target!=u&&y.source!=u||f.push(y)}),f},h.prototype.getNeighborsList=function(){var u=new Set,f=this;return f.edges.forEach(function(d){if(d.source==f)u.add(d.target);else{if(d.target!=f)throw"Incorrect incidency!";u.add(d.source)}}),u},h.prototype.withChildren=function(){var u=new Set;if(u.add(this),this.child!=null)for(var f=this.child.getNodes(),d=0;d<f.length;d++)f[d].withChildren().forEach(function(y){u.add(y)});return u},h.prototype.getNoOfChildren=function(){var u=0;if(this.child==null)u=1;else for(var f=this.child.getNodes(),d=0;d<f.length;d++)u+=f[d].getNoOfChildren();return u==0&&(u=1),u},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 u,f,d=-r.INITIAL_WORLD_BOUNDARY,y=r.INITIAL_WORLD_BOUNDARY;u=r.WORLD_CENTER_X+n.nextDouble()*(y-d)+d;var v=-r.INITIAL_WORLD_BOUNDARY,L=r.INITIAL_WORLD_BOUNDARY;f=r.WORLD_CENTER_Y+n.nextDouble()*(L-v)+v,this.rect.x=u,this.rect.y=f},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var u=this.getChild();if(u.updateBounds(!0),this.rect.x=u.getLeft(),this.rect.y=u.getTop(),this.setWidth(u.getRight()-u.getLeft()),this.setHeight(u.getBottom()-u.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var f=u.getRight()-u.getLeft(),d=u.getBottom()-u.getTop();this.labelWidth>f&&(this.rect.x-=(this.labelWidth-f)/2,this.setWidth(this.labelWidth)),this.labelHeight>d&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-d)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-d),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(u){var f=this.rect.x;f>r.WORLD_BOUNDARY?f=r.WORLD_BOUNDARY:f<-r.WORLD_BOUNDARY&&(f=-r.WORLD_BOUNDARY);var d=this.rect.y;d>r.WORLD_BOUNDARY?d=r.WORLD_BOUNDARY:d<-r.WORLD_BOUNDARY&&(d=-r.WORLD_BOUNDARY);var y=new o(f,d),v=u.inverseTransformPoint(y);this.setLocation(v.x,v.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,p,a){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,p,a){var e=a(2),t=a(10),i=a(0),r=a(6),n=a(3),o=a(1),h=a(13),l=a(12),u=a(11);function f(y,v,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=y,v!=null&&v instanceof r?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}for(var d in f.prototype=Object.create(e.prototype),e)f[d]=e[d];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(y,v,L){if(v==null&&L==null){var T=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(T)>-1)throw"Node already in graph!";return T.owner=this,this.getNodes().push(T),T}var N=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(v.owner!=L.owner||v.owner!=this)throw"Both owners must be this graph!";return v.owner!=L.owner?null:(N.source=v,N.target=L,N.isInterGraph=!1,this.getEdges().push(N),v.edges.push(N),L!=v&&L.edges.push(N),N)},f.prototype.remove=function(y){var v=y;if(y instanceof n){if(v==null)throw"Node is null!";if(v.owner==null||v.owner!=this)throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=v.edges.slice(),T=L.length,N=0;N<T;N++)(m=L[N]).isInterGraph?this.graphManager.remove(m):m.source.owner.remove(m);if((s=this.nodes.indexOf(v))==-1)throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(y instanceof o){var m;if((m=y)==null)throw"Edge is null!";if(m.source==null||m.target==null)throw"Source and/or target is null!";if(m.source.owner==null||m.target.owner==null||m.source.owner!=this||m.target.owner!=this)throw"Source and/or target owner is invalid!";var s,c=m.source.edges.indexOf(m),g=m.target.edges.indexOf(m);if(!(c>-1&&g>-1))throw"Source and/or target doesn't know this edge!";if(m.source.edges.splice(c,1),m.target!=m.source&&m.target.edges.splice(g,1),(s=m.source.owner.getEdges().indexOf(m))==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(s,1)}},f.prototype.updateLeftTop=function(){for(var y,v,L,T=t.MAX_VALUE,N=t.MAX_VALUE,m=this.getNodes(),s=m.length,c=0;c<s;c++){var g=m[c];T>(y=g.getTop())&&(T=y),N>(v=g.getLeft())&&(N=v)}return T==t.MAX_VALUE?null:(L=m[0].getParent().paddingLeft!=null?m[0].getParent().paddingLeft:this.margin,this.left=N-L,this.top=T-L,new l(this.left,this.top))},f.prototype.updateBounds=function(y){for(var v,L,T,N,m,s=t.MAX_VALUE,c=-t.MAX_VALUE,g=t.MAX_VALUE,E=-t.MAX_VALUE,_=this.nodes,I=_.length,D=0;D<I;D++){var w=_[D];y&&w.child!=null&&w.updateBounds(),s>(v=w.getLeft())&&(s=v),c<(L=w.getRight())&&(c=L),g>(T=w.getTop())&&(g=T),E<(N=w.getBottom())&&(E=N)}var R=new h(s,g,c-s,E-g);s==t.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),m=_[0].getParent().paddingLeft!=null?_[0].getParent().paddingLeft:this.margin,this.left=R.x-m,this.right=R.x+R.width+m,this.top=R.y-m,this.bottom=R.y+R.height+m},f.calculateBounds=function(y){for(var v,L,T,N,m=t.MAX_VALUE,s=-t.MAX_VALUE,c=t.MAX_VALUE,g=-t.MAX_VALUE,E=y.length,_=0;_<E;_++){var I=y[_];m>(v=I.getLeft())&&(m=v),s<(L=I.getRight())&&(s=L),c>(T=I.getTop())&&(c=T),g<(N=I.getBottom())&&(g=N)}return new h(m,c,s-m,g-c)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==t.MIN_VALUE)throw"assert failed";return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var y=0,v=this.nodes,L=v.length,T=0;T<L;T++)y+=v[T].calcEstimatedSize();return this.estimatedSize=y==0?i.EMPTY_COMPOUND_NODE_SIZE:y/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var y=this;if(this.nodes.length!=0){var v,L,T=new u,N=new Set,m=this.nodes[0];for(m.withChildren().forEach(function(E){T.push(E),N.add(E)});T.length!==0;)for(var s=(v=(m=T.shift()).getEdges()).length,c=0;c<s;c++)(L=v[c].getOtherEndInGraph(m,this))==null||N.has(L)||L.withChildren().forEach(function(E){T.push(E),N.add(E)});if(this.isConnected=!1,N.size>=this.nodes.length){var g=0;N.forEach(function(E){E.owner==y&&g++}),g==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},A.exports=f},function(A,p,a){var e,t=a(1);function i(r){e=a(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,l){if(o==null&&h==null&&l==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}l=o,o=r;var u=(h=n).getOwner(),f=l.getOwner();if(u==null||u.getGraphManager()!=this)throw"Source not in this graph mgr!";if(f==null||f.getGraphManager()!=this)throw"Target not in this graph mgr!";if(u==f)return o.isInterGraph=!1,u.add(o,h,l);if(o.isInterGraph=!0,o.source=h,o.target=l,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=[],l=(h=h.concat(n.getEdges())).length,u=0;u<l;u++)o=h[u],n.remove(o);var f,d=[];for(l=(d=d.concat(n.getNodes())).length,u=0;u<l;u++)f=d[u],n.remove(f);n==this.rootGraph&&this.setRootGraph(null);var y=this.graphs.indexOf(n);this.graphs.splice(y,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(y=o.source.edges.indexOf(o),o.source.edges.splice(y,1),y=o.target.edges.indexOf(o),o.target.edges.splice(y,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!";y=o.source.owner.getGraphManager().edges.indexOf(o),o.source.owner.getGraphManager().edges.splice(y,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,l,u=this.getAllEdges(),f=u.length,d=0;d<f;d++)if(n=(r=u[d]).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,l=o.getOwner();r.lca==null;){if(l==h){r.lca=l;break}if(l==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=l.getParent(),l=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(),l=h.length,u=0;u<l;u++)(o=h[u]).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,p,a){var e=a(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,p,a){var e=a(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 l=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(l=1);var u=l*n[0],f=n[1]/l;n[0]<f?f=n[0]:u=n[1],n[0]=-1*h[0]*(f/2+o),n[1]=-1*h[1]*(u/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(),l=r.getCenterX(),u=r.getCenterY();if(i.intersects(r))return n[0]=o,n[1]=h,n[2]=l,n[3]=u,!0;var f=i.getX(),d=i.getY(),y=i.getRight(),v=i.getX(),L=i.getBottom(),T=i.getRight(),N=i.getWidthHalf(),m=i.getHeightHalf(),s=r.getX(),c=r.getY(),g=r.getRight(),E=r.getX(),_=r.getBottom(),I=r.getRight(),D=r.getWidthHalf(),w=r.getHeightHalf(),R=!1,M=!1;if(o===l){if(h>u)return n[0]=o,n[1]=d,n[2]=l,n[3]=_,!1;if(h<u)return n[0]=o,n[1]=L,n[2]=l,n[3]=c,!1}else if(h===u){if(o>l)return n[0]=f,n[1]=h,n[2]=g,n[3]=u,!1;if(o<l)return n[0]=y,n[1]=h,n[2]=s,n[3]=u,!1}else{var C=i.height/i.width,b=r.height/r.width,G=(u-h)/(l-o),S=void 0,P=void 0,k=void 0,F=void 0,U=void 0,Y=void 0;if(-C===G?o>l?(n[0]=v,n[1]=L,R=!0):(n[0]=y,n[1]=d,R=!0):C===G&&(o>l?(n[0]=f,n[1]=d,R=!0):(n[0]=T,n[1]=L,R=!0)),-b===G?l>o?(n[2]=E,n[3]=_,M=!0):(n[2]=g,n[3]=c,M=!0):b===G&&(l>o?(n[2]=s,n[3]=c,M=!0):(n[2]=I,n[3]=_,M=!0)),R&&M)return!1;if(o>l?h>u?(S=this.getCardinalDirection(C,G,4),P=this.getCardinalDirection(b,G,2)):(S=this.getCardinalDirection(-C,G,3),P=this.getCardinalDirection(-b,G,1)):h>u?(S=this.getCardinalDirection(-C,G,1),P=this.getCardinalDirection(-b,G,3)):(S=this.getCardinalDirection(C,G,2),P=this.getCardinalDirection(b,G,4)),!R)switch(S){case 1:F=d,k=o+-m/G,n[0]=k,n[1]=F;break;case 2:k=T,F=h+N*G,n[0]=k,n[1]=F;break;case 3:F=L,k=o+m/G,n[0]=k,n[1]=F;break;case 4:k=v,F=h+-N*G,n[0]=k,n[1]=F}if(!M)switch(P){case 1:Y=c,U=l+-w/G,n[2]=U,n[3]=Y;break;case 2:U=I,Y=u+D*G,n[2]=U,n[3]=Y;break;case 3:Y=_,U=l+w/G,n[2]=U,n[3]=Y;break;case 4:U=E,Y=u+-D*G,n[2]=U,n[3]=Y}}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,l,u,f,d,y,v,L=i.x,T=i.y,N=r.x,m=r.y,s=n.x,c=n.y,g=o.x,E=o.y;return(v=(h=m-T)*(f=s-g)-(l=E-c)*(u=L-N))===0?null:new e((u*(y=g*c-s*E)-f*(d=N*T-L*m))/v,(l*d-h*y)/v)},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,l=i.y,u=r.x,f=r.y,d=n.x,y=n.y,v=o.x,L=o.y,T=(u-h)*(L-y)-(v-d)*(f-l);if(T===0)return!1;var N=((L-y)*(v-h)+(d-v)*(L-l))/T,m=((l-f)*(v-h)+(u-h)*(L-l))/T;return 0<N&&N<1&&0<m&&m<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,p,a){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,p,a){function e(){}e.MAX_VALUE=2147483647,e.MIN_VALUE=-2147483648,A.exports=e},function(A,p,a){var e=function(){function o(h,l){for(var u=0;u<l.length;u++){var f=l[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,l,u){return l&&o(h.prototype,l),u&&o(h,u),h}}(),t=function(o){return{value:o,next:null,prev:null}},i=function(o,h,l,u){return o!==null?o.next=h:u.head=h,l!==null?l.prev=h:u.tail=h,h.prev=o,h.next=l,u.length++,h},r=function(o,h){var l=o.prev,u=o.next;return l!==null?l.next=u:h.head=u,u!==null?u.prev=l:h.tail=l,o.prev=o.next=null,h.length--,o},n=function(){function o(h){var l=this;(function(u,f){if(!(u instanceof f))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(u){return l.push(u)})}return e(o,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(h,l){return i(l.prev,t(h),l,this)}},{key:"insertAfter",value:function(h,l){return i(l,t(h),l.next,this)}},{key:"insertNodeBefore",value:function(h,l){return i(l.prev,h,l,this)}},{key:"insertNodeAfter",value:function(h,l){return i(l,h,l.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 l=1,u=this.head;l<h;)u=u.next,l++;return u.value}}},{key:"set_object_at",value:function(h,l){if(h<=this.length()){for(var u=1,f=this.head;u<h;)f=f.next,u++;f.value=l}}}]),o}();A.exports=n},function(A,p,a){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,p,a){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,p,a){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,p,a){function e(d){if(Array.isArray(d)){for(var y=0,v=Array(d.length);y<d.length;y++)v[y]=d[y];return v}return Array.from(d)}var t=a(0),i=a(6),r=a(3),n=a(1),o=a(5),h=a(4),l=a(17),u=a(27);function f(d){u.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,d!=null&&(this.isRemoteUse=d)}f.RANDOM_SEED=1,f.prototype=Object.create(u.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var d=new i(this);return this.graphManager=d,d},f.prototype.newGraph=function(d){return new o(null,this.graphManager,d)},f.prototype.newNode=function(d){return new r(this.graphManager,d)},f.prototype.newEdge=function(d){return new n(null,null,d)},f.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){var d;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),d=!this.checkLayoutSuccess()&&this.layout(),t.ANIMATE!=="during"&&(d&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,d)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var d=this.graphManager.getAllEdges(),y=0;y<d.length;y++)d[y];var v=this.graphManager.getRoot().getNodes();for(y=0;y<v.length;y++)v[y];this.update(this.graphManager.getRoot())}},f.prototype.update=function(d){if(d==null)this.update2();else if(d instanceof r){var y=d;if(y.getChild()!=null)for(var v=y.getChild().getNodes(),L=0;L<v.length;L++)update(v[L]);y.vGraphObject!=null&&y.vGraphObject.update(y)}else if(d instanceof n){var T=d;T.vGraphObject!=null&&T.vGraphObject.update(T)}else if(d instanceof o){var N=d;N.vGraphObject!=null&&N.vGraphObject.update(N)}},f.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)},f.prototype.transform=function(d){if(d==null)this.transform(new h(0,0));else{var y=new l,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){y.setWorldOrgX(d.x),y.setWorldOrgY(d.y),y.setDeviceOrgX(v.x),y.setDeviceOrgY(v.y);for(var L=this.getAllNodes(),T=0;T<L.length;T++)L[T].transform(y)}}},f.prototype.positionNodesRandomly=function(d){if(d==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var y,v,L=d.getNodes(),T=0;T<L.length;T++)(v=(y=L[T]).getChild())==null||v.getNodes().length==0?y.scatter():(this.positionNodesRandomly(v),y.updateBounds())},f.prototype.getFlatForest=function(){for(var d=[],y=!0,v=this.graphManager.getRoot().getNodes(),L=!0,T=0;T<v.length;T++)v[T].getChild()!=null&&(L=!1);if(!L)return d;var N=new Set,m=[],s=new Map,c=[];for(c=c.concat(v);c.length>0&&y;){for(m.push(c[0]);m.length>0&&y;){var g=m[0];m.splice(0,1),N.add(g);var E=g.getEdges();for(T=0;T<E.length;T++){var _=E[T].getOtherEnd(g);if(s.get(g)!=_){if(N.has(_)){y=!1;break}m.push(_),s.set(_,g)}}}if(y){var I=[].concat(e(N));for(d.push(I),T=0;T<I.length;T++){var D=I[T],w=c.indexOf(D);w>-1&&c.splice(w,1)}N=new Set,s=new Map}else d=[]}return d},f.prototype.createDummyNodesForBendpoints=function(d){for(var y=[],v=d.source,L=this.graphManager.calcLowestCommonAncestor(d.source,d.target),T=0;T<d.bendpoints.length;T++){var N=this.newNode(null);N.setRect(new Point(0,0),new Dimension(1,1)),L.add(N);var m=this.newEdge(null);this.graphManager.add(m,v,N),y.add(N),v=N}return m=this.newEdge(null),this.graphManager.add(m,v,d.target),this.edgeToDummyNodes.set(d,y),d.isInterGraph()?this.graphManager.remove(d):L.remove(d),y},f.prototype.createBendpointsFromDummyNodes=function(){var d=[];d=d.concat(this.graphManager.getAllEdges()),d=[].concat(e(this.edgeToDummyNodes.keys())).concat(d);for(var y=0;y<d.length;y++){var v=d[y];if(v.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(v),T=0;T<L.length;T++){var N=L[T],m=new h(N.getCenterX(),N.getCenterY()),s=v.bendpoints.get(T);s.x=m.x,s.y=m.y,N.getOwner().remove(N)}this.graphManager.add(v,v.source,v.target)}}},f.transform=function(d,y,v,L){if(v!=null&&L!=null){var T=y;return d<=50?T-=(y-y/v)/50*(50-d):T+=(y*L-y)/50*(d-50),T}var N,m;return d<=50?(N=9*y/500,m=y/10):(N=9*y/50,m=-8*y),N*d+m},f.findCenterOfTree=function(d){var y=[];y=y.concat(d);var v=[],L=new Map,T=!1,N=null;y.length!=1&&y.length!=2||(T=!0,N=y[0]);for(var m=0;m<y.length;m++){var s=(E=y[m]).getNeighborsList().size;L.set(E,E.getNeighborsList().size),s==1&&v.push(E)}var c=[];for(c=c.concat(v);!T;){var g=[];for(g=g.concat(c),c=[],m=0;m<y.length;m++){var E=y[m],_=y.indexOf(E);_>=0&&y.splice(_,1),E.getNeighborsList().forEach(function(I){if(v.indexOf(I)<0){var D=L.get(I)-1;D==1&&c.push(I),L.set(I,D)}})}v=v.concat(c),y.length!=1&&y.length!=2||(T=!0,N=y[0])}return N},f.prototype.setGraphManager=function(d){this.graphManager=d},A.exports=f},function(A,p,a){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,p,a){var e=a(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,p,a){var e=a(15),t=a(7),i=a(0),r=a(8),n=a(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 l,u,f,d,y,v,L=this.getGraphManager().getAllEdges(),T=0;T<L.length;T++)(l=L[T]).idealLength=this.idealEdgeLength,l.isInterGraph&&(f=l.getSource(),d=l.getTarget(),y=l.getSourceInLca().getEstimatedSize(),v=l.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(l.idealLength+=y+v-2*i.SIMPLE_NODE_SIZE),u=l.getLca().getInclusionTreeDepth(),l.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(f.getInclusionTreeDepth()+d.getInclusionTreeDepth()-2*u))},o.prototype.initSpringEmbedder=function(){var l=this.getAllNodes().length;this.incremental?(l>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(l-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):(l>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(l-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 l,u=this.getAllEdges(),f=0;f<u.length;f++)l=u[f],this.calcSpringForce(l,l.idealLength)},o.prototype.calcRepulsionForces=function(){var l,u,f,d,y,v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],L=arguments.length>1&&arguments[1]!==void 0&&arguments[1],T=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&v&&this.updateGrid(),y=new Set,l=0;l<T.length;l++)f=T[l],this.calculateRepulsionForceOfANode(f,y,v,L),y.add(f);else for(l=0;l<T.length;l++)for(f=T[l],u=l+1;u<T.length;u++)d=T[u],f.getOwner()==d.getOwner()&&this.calcRepulsionForce(f,d)},o.prototype.calcGravitationalForces=function(){for(var l,u=this.getAllNodesToApplyGravitation(),f=0;f<u.length;f++)l=u[f],this.calcGravitationalForce(l)},o.prototype.moveNodes=function(){for(var l=this.getAllNodes(),u=0;u<l.length;u++)l[u].move()},o.prototype.calcSpringForce=function(l,u){var f,d,y,v,L=l.getSource(),T=l.getTarget();if(this.uniformLeafNodeSizes&&L.getChild()==null&&T.getChild()==null)l.updateLengthSimple();else if(l.updateLength(),l.isOverlapingSourceAndTarget)return;(f=l.getLength())!=0&&(y=(d=this.springConstant*(f-u))*(l.lengthX/f),v=d*(l.lengthY/f),L.springForceX+=y,L.springForceY+=v,T.springForceX-=y,T.springForceY-=v)},o.prototype.calcRepulsionForce=function(l,u){var f,d,y,v,L,T,N,m=l.getRect(),s=u.getRect(),c=new Array(2),g=new Array(4);if(m.intersects(s)){r.calcSeparationAmount(m,s,c,t.DEFAULT_EDGE_LENGTH/2),T=2*c[0],N=2*c[1];var E=l.noOfChildren*u.noOfChildren/(l.noOfChildren+u.noOfChildren);l.repulsionForceX-=E*T,l.repulsionForceY-=E*N,u.repulsionForceX+=E*T,u.repulsionForceY+=E*N}else this.uniformLeafNodeSizes&&l.getChild()==null&&u.getChild()==null?(f=s.getCenterX()-m.getCenterX(),d=s.getCenterY()-m.getCenterY()):(r.getIntersection(m,s,g),f=g[2]-g[0],d=g[3]-g[1]),Math.abs(f)<t.MIN_REPULSION_DIST&&(f=n.sign(f)*t.MIN_REPULSION_DIST),Math.abs(d)<t.MIN_REPULSION_DIST&&(d=n.sign(d)*t.MIN_REPULSION_DIST),y=f*f+d*d,v=Math.sqrt(y),T=(L=this.repulsionConstant*l.noOfChildren*u.noOfChildren/y)*f/v,N=L*d/v,l.repulsionForceX-=T,l.repulsionForceY-=N,u.repulsionForceX+=T,u.repulsionForceY+=N},o.prototype.calcGravitationalForce=function(l){var u,f,d,y,v,L,T,N;f=((u=l.getOwner()).getRight()+u.getLeft())/2,d=(u.getTop()+u.getBottom())/2,y=l.getCenterX()-f,v=l.getCenterY()-d,L=Math.abs(y)+l.getWidth()/2,T=Math.abs(v)+l.getHeight()/2,l.getOwner()==this.graphManager.getRoot()?(L>(N=u.getEstimatedSize()*this.gravityRangeFactor)||T>N)&&(l.gravitationForceX=-this.gravityConstant*y,l.gravitationForceY=-this.gravityConstant*v):(L>(N=u.getEstimatedSize()*this.compoundGravityRangeFactor)||T>N)&&(l.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,l.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant)},o.prototype.isConverged=function(){var l,u=!1;return this.totalIterations>this.maxIterations/3&&(u=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),l=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,l||u},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 l,u=this.graphManager.getAllNodes(),f=0;f<u.length;f++)(l=u[f]).noOfChildren=l.getNoOfChildren()},o.prototype.calcGrid=function(l){var u,f;u=parseInt(Math.ceil((l.getRight()-l.getLeft())/this.repulsionRange)),f=parseInt(Math.ceil((l.getBottom()-l.getTop())/this.repulsionRange));for(var d=new Array(u),y=0;y<u;y++)d[y]=new Array(f);for(y=0;y<u;y++)for(var v=0;v<f;v++)d[y][v]=new Array;return d},o.prototype.addNodeToGrid=function(l,u,f){var d,y,v,L;d=parseInt(Math.floor((l.getRect().x-u)/this.repulsionRange)),y=parseInt(Math.floor((l.getRect().width+l.getRect().x-u)/this.repulsionRange)),v=parseInt(Math.floor((l.getRect().y-f)/this.repulsionRange)),L=parseInt(Math.floor((l.getRect().height+l.getRect().y-f)/this.repulsionRange));for(var T=d;T<=y;T++)for(var N=v;N<=L;N++)this.grid[T][N].push(l),l.setGridCoordinates(d,y,v,L)},o.prototype.updateGrid=function(){var l,u,f=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),l=0;l<f.length;l++)u=f[l],this.addNodeToGrid(u,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(l,u,f,d){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&f||d){var y,v=new Set;l.surrounding=new Array;for(var L=this.grid,T=l.startX-1;T<l.finishX+2;T++)for(var N=l.startY-1;N<l.finishY+2;N++)if(!(T<0||N<0||T>=L.length||N>=L[0].length)){for(var m=0;m<L[T][N].length;m++)if(y=L[T][N][m],l.getOwner()==y.getOwner()&&l!=y&&!u.has(y)&&!v.has(y)){var s=Math.abs(l.getCenterX()-y.getCenterX())-(l.getWidth()/2+y.getWidth()/2),c=Math.abs(l.getCenterY()-y.getCenterY())-(l.getHeight()/2+y.getHeight()/2);s<=this.repulsionRange&&c<=this.repulsionRange&&v.add(y)}}l.surrounding=[].concat(function(g){if(Array.isArray(g)){for(var E=0,_=Array(g.length);E<g.length;E++)_[E]=g[E];return _}return Array.from(g)}(v))}for(T=0;T<l.surrounding.length;T++)this.calcRepulsionForce(l,l.surrounding[T])},o.prototype.calcRepulsionRange=function(){return 0},A.exports=o},function(A,p,a){var e=a(1),t=a(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,p,a){var e=a(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,p,a){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,p,a){var e=a(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,p,a){var e=a(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,p,a){var e=function(){function r(n,o){for(var h=0;h<o.length;h++){var l=o[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}return function(n,o,h){return o&&r(n.prototype,o),h&&r(n,h),n}}(),t=a(11),i=function(){function r(n,o){(function(l,u){if(!(l instanceof u))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 l=this._partition(n,o,h);this._quicksort(n,o,l),this._quicksort(n,l+1,h)}}},{key:"_partition",value:function(n,o,h){for(var l=this._get(n,o),u=o,f=h;;){for(;this.compareFunction(l,this._get(n,f));)f--;for(;this.compareFunction(this._get(n,u),l);)u++;if(!(u<f))return f;this._swap(n,u,f),u++,f--}}},{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 l=this._get(n,o);this._set(n,o,this._get(n,h)),this._set(n,h,l)}},{key:"_defaultCompareFunction",value:function(n,o){return o>n}}]),r}();A.exports=i},function(A,p,a){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,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;(function(v,L){if(!(v 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=l,this.iMax=r.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var u=0;u<this.iMax;u++){this.grid[u]=new Array(this.jMax);for(var f=0;f<this.jMax;f++)this.grid[u][f]=0}this.tracebackGrid=new Array(this.iMax);for(var d=0;d<this.iMax;d++){this.tracebackGrid[d]=new Array(this.jMax);for(var y=0;y<this.jMax;y++)this.tracebackGrid[d][y]=[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 l=[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],u=this.arrayAllMaxIndexes(l);this.grid[o][h]=l[u[0]],this.tracebackGrid[o][h]=[u.includes(0),u.includes(1),u.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,p,a){var e=function(){};e.FDLayout=a(18),e.FDLayoutConstants=a(7),e.FDLayoutEdge=a(19),e.FDLayoutNode=a(20),e.DimensionD=a(21),e.HashMap=a(22),e.HashSet=a(23),e.IGeometry=a(8),e.IMath=a(9),e.Integer=a(10),e.Point=a(12),e.PointD=a(4),e.RandomSeed=a(16),e.RectangleD=a(13),e.Transform=a(17),e.UniqueIDGeneretor=a(14),e.Quicksort=a(24),e.LinkedList=a(11),e.LGraphObject=a(2),e.LGraph=a(5),e.LEdge=a(1),e.LGraphManager=a(6),e.LNode=a(3),e.Layout=a(15),e.LayoutConstants=a(0),e.NeedlemanWunsch=a(25),A.exports=e},function(A,p,a){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}])},at.exports=O());var O}var ht,lt,gt,ct,Dt=(lt||(lt=1,ot.exports=(gt=ht?st.exports:(ht=1,ct=function(O){return function(A){var p={};function a(e){if(p[e])return p[e].exports;var t=p[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=A,a.c=p,a.i=function(e){return e},a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=7)}([function(A,p){A.exports=O},function(A,p,a){var e=a(0).FDLayoutConstants;function t(){}for(var i in e)t[i]=e[i];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,A.exports=t},function(A,p,a){var e=a(0).FDLayoutEdge;function t(r,n,o){e.call(this,r,n,o)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).LGraph;function t(r,n,o){e.call(this,r,n,o)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).LGraphManager;function t(r){e.call(this,r)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).FDLayoutNode,t=a(0).IMath;function i(n,o,h,l){e.call(this,n,o,h,l)}for(var r in i.prototype=Object.create(e.prototype),e)i[r]=e[r];i.prototype.move=function(){var n=this.graphManager.getLayout();this.displacementX=n.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=n.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>n.coolingFactor*n.maxNodeDisplacement&&(this.displacementX=n.coolingFactor*n.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>n.coolingFactor*n.maxNodeDisplacement&&(this.displacementY=n.coolingFactor*n.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),n.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},i.prototype.propogateDisplacementToChildren=function(n,o){for(var h,l=this.getChild().getNodes(),u=0;u<l.length;u++)(h=l[u]).getChild()==null?(h.moveBy(n,o),h.displacementX+=n,h.displacementY+=o):h.propogateDisplacementToChildren(n,o)},i.prototype.setPred1=function(n){this.pred1=n},i.prototype.getPred1=function(){return pred1},i.prototype.getPred2=function(){return pred2},i.prototype.setNext=function(n){this.next=n},i.prototype.getNext=function(){return next},i.prototype.setProcessed=function(n){this.processed=n},i.prototype.isProcessed=function(){return processed},A.exports=i},function(A,p,a){var e=a(0).FDLayout,t=a(4),i=a(3),r=a(5),n=a(2),o=a(1),h=a(0).FDLayoutConstants,l=a(0).LayoutConstants,u=a(0).Point,f=a(0).PointD,d=a(0).Layout,y=a(0).Integer,v=a(0).IGeometry,L=a(0).LGraph,T=a(0).Transform;function N(){e.call(this),this.toBeTiled={}}for(var m in N.prototype=Object.create(e.prototype),e)N[m]=e[m];N.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},N.prototype.newGraph=function(s){return new i(null,this.graphManager,s)},N.prototype.newNode=function(s){return new r(this.graphManager,s)},N.prototype.newEdge=function(s){return new n(null,null,s)},N.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=h.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=h.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.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/h.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=h.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},N.prototype.layout=function(){return l.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.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)o.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),c=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(E){return c.has(E)}),this.graphManager.setAllNodesToApplyGravitation(g));else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var c=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(E){return c.has(E)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},N.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%h.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(_){return s.has(_)});this.graphManager.setAllNodesToApplyGravitation(c),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=h.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=h.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),c={},g=0;g<s.length;g++){var E=s[g].rect,_=s[g].id;c[_]={id:_,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return c},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(h.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},N.prototype.calculateNodesToApplyGravitationTo=function(){var s,c,g=[],E=this.graphManager.getGraphs(),_=E.length;for(c=0;c<_;c++)(s=E[c]).updateConnected(),s.isConnected||(g=g.concat(s.getNodes()));return g},N.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var c,g=new Set;for(c=0;c<s.length;c++){var E=s[c];if(!g.has(E)){var _=E.getSource(),I=E.getTarget();if(_==I)E.getBendpoints().push(new f),E.getBendpoints().push(new f),this.createDummyNodesForBendpoints(E),g.add(E);else{var D=[];if(D=(D=D.concat(_.getEdgeListToNode(I))).concat(I.getEdgeListToNode(_)),!g.has(D[0])){var w;if(D.length>1)for(w=0;w<D.length;w++){var R=D[w];R.getBendpoints().push(new f),this.createDummyNodesForBendpoints(R)}D.forEach(function(M){g.add(M)})}}}if(g.size==s.length)break}},N.prototype.positionNodesRadially=function(s){for(var c=new u(0,0),g=Math.ceil(Math.sqrt(s.length)),E=0,_=0,I=0,D=new f(0,0),w=0;w<s.length;w++){w%g==0&&(I=0,_=E,w!=0&&(_+=o.DEFAULT_COMPONENT_SEPERATION),E=0);var R=s[w],M=d.findCenterOfTree(R);c.x=I,c.y=_,(D=N.radialLayout(R,M,c)).y>E&&(E=Math.floor(D.y)),I=Math.floor(D.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(l.WORLD_CENTER_X-D.x/2,l.WORLD_CENTER_Y-D.y/2))},N.radialLayout=function(s,c,g){var E=Math.max(this.maxDiagonalInTree(s),o.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(c,null,0,359,0,E);var _=L.calculateBounds(s),I=new T;I.setDeviceOrgX(_.getMinX()),I.setDeviceOrgY(_.getMinY()),I.setWorldOrgX(g.x),I.setWorldOrgY(g.y);for(var D=0;D<s.length;D++)s[D].transform(I);var w=new f(_.getMaxX(),_.getMaxY());return I.inverseTransformPoint(w)},N.branchRadialLayout=function(s,c,g,E,_,I){var D=(E-g+1)/2;D<0&&(D+=180);var w=(D+g)%360*v.TWO_PI/360,R=_*Math.cos(w),M=_*Math.sin(w);s.setCenter(R,M);var C=[],b=(C=C.concat(s.getEdges())).length;c!=null&&b--;for(var G,S=0,P=C.length,k=s.getEdgesBetween(c);k.length>1;){var F=k[0];k.splice(0,1);var U=C.indexOf(F);U>=0&&C.splice(U,1),P--,b--}G=c!=null?(C.indexOf(k[0])+1)%P:0;for(var Y=Math.abs(E-g)/b,W=G;S!=b;W=++W%P){var $=C[W].getOtherEnd(s);if($!=c){var X=(g+S*Y)%360,z=(X+Y)%360;N.branchRadialLayout($,s,X,z,_+I,I),S++}}},N.maxDiagonalInTree=function(s){for(var c=y.MIN_VALUE,g=0;g<s.length;g++){var E=s[g].getDiagonal();E>c&&(c=E)}return c},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var s=this,c={};this.memberGroups={},this.idToDummyNode={};for(var g=[],E=this.graphManager.getAllNodes(),_=0;_<E.length;_++){var I=(D=E[_]).getParent();this.getNodeDegreeWithChildren(D)!==0||I.id!=null&&this.getToBeTiled(I)||g.push(D)}for(_=0;_<g.length;_++){var D,w=(D=g[_]).getParent().id;c[w]===void 0&&(c[w]=[]),c[w]=c[w].concat(D)}Object.keys(c).forEach(function(R){if(c[R].length>1){var M="DummyCompound_"+R;s.memberGroups[M]=c[R];var C=c[R][0].getParent(),b=new r(s.graphManager);b.id=M,b.paddingLeft=C.paddingLeft||0,b.paddingRight=C.paddingRight||0,b.paddingBottom=C.paddingBottom||0,b.paddingTop=C.paddingTop||0,s.idToDummyNode[M]=b;var G=s.getGraphManager().add(s.newGraph(),b),S=C.getChild();S.add(b);for(var P=0;P<c[R].length;P++){var k=c[R][P];S.remove(k),G.add(k)}}})},N.prototype.clearCompounds=function(){var s={},c={};this.performDFSOnCompounds();for(var g=0;g<this.compoundOrder.length;g++)c[this.compoundOrder[g].id]=this.compoundOrder[g],s[this.compoundOrder[g].id]=[].concat(this.compoundOrder[g].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[g].getChild()),this.compoundOrder[g].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,c)},N.prototype.clearZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(g){var E=s.idToDummyNode[g];c[g]=s.tileNodes(s.memberGroups[g],E.paddingLeft+E.paddingRight),E.rect.width=c[g].width,E.rect.height=c[g].height})},N.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var c=this.compoundOrder[s],g=c.id,E=c.paddingLeft,_=c.paddingTop;this.adjustLocations(this.tiledMemberPack[g],c.rect.x,c.rect.y,E,_)}},N.prototype.repopulateZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack;Object.keys(c).forEach(function(g){var E=s.idToDummyNode[g],_=E.paddingLeft,I=E.paddingTop;s.adjustLocations(c[g],E.rect.x,E.rect.y,_,I)})},N.prototype.getToBeTiled=function(s){var c=s.id;if(this.toBeTiled[c]!=null)return this.toBeTiled[c];var g=s.getChild();if(g==null)return this.toBeTiled[c]=!1,!1;for(var E=g.getNodes(),_=0;_<E.length;_++){var I=E[_];if(this.getNodeDegree(I)>0)return this.toBeTiled[c]=!1,!1;if(I.getChild()!=null){if(!this.getToBeTiled(I))return this.toBeTiled[c]=!1,!1}else this.toBeTiled[I.id]=!1}return this.toBeTiled[c]=!0,!0},N.prototype.getNodeDegree=function(s){s.id;for(var c=s.getEdges(),g=0,E=0;E<c.length;E++){var _=c[E];_.getSource().id!==_.getTarget().id&&(g+=1)}return g},N.prototype.getNodeDegreeWithChildren=function(s){var c=this.getNodeDegree(s);if(s.getChild()==null)return c;for(var g=s.getChild().getNodes(),E=0;E<g.length;E++){var _=g[E];c+=this.getNodeDegreeWithChildren(_)}return c},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(s){for(var c=0;c<s.length;c++){var g=s[c];g.getChild()!=null&&this.fillCompexOrderByDFS(g.getChild().getNodes()),this.getToBeTiled(g)&&this.compoundOrder.push(g)}},N.prototype.adjustLocations=function(s,c,g,E,_){g+=_;for(var I=c+=E,D=0;D<s.rows.length;D++){var w=s.rows[D];c=I;for(var R=0,M=0;M<w.length;M++){var C=w[M];C.rect.x=c,C.rect.y=g,c+=C.rect.width+s.horizontalPadding,C.rect.height>R&&(R=C.rect.height)}g+=R+s.verticalPadding}},N.prototype.tileCompoundMembers=function(s,c){var g=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var _=c[E];g.tiledMemberPack[E]=g.tileNodes(s[E],_.paddingLeft+_.paddingRight),_.rect.width=g.tiledMemberPack[E].width,_.rect.height=g.tiledMemberPack[E].height})},N.prototype.tileNodes=function(s,c){var g={rows:[],rowWidth:[],rowHeight:[],width:0,height:c,verticalPadding:o.TILING_PADDING_VERTICAL,horizontalPadding:o.TILING_PADDING_HORIZONTAL};s.sort(function(I,D){return I.rect.width*I.rect.height>D.rect.width*D.rect.height?-1:I.rect.width*I.rect.height<D.rect.width*D.rect.height?1:0});for(var E=0;E<s.length;E++){var _=s[E];g.rows.length==0?this.insertNodeToRow(g,_,0,c):this.canAddHorizontal(g,_.rect.width,_.rect.height)?this.insertNodeToRow(g,_,this.getShortestRowIndex(g),c):this.insertNodeToRow(g,_,g.rows.length,c),this.shiftToLastRow(g)}return g},N.prototype.insertNodeToRow=function(s,c,g,E){var _=E;g==s.rows.length&&(s.rows.push([]),s.rowWidth.push(_),s.rowHeight.push(0));var I=s.rowWidth[g]+c.rect.width;s.rows[g].length>0&&(I+=s.horizontalPadding),s.rowWidth[g]=I,s.width<I&&(s.width=I);var D=c.rect.height;g>0&&(D+=s.verticalPadding);var w=0;D>s.rowHeight[g]&&(w=s.rowHeight[g],s.rowHeight[g]=D,w=s.rowHeight[g]-w),s.height+=w,s.rows[g].push(c)},N.prototype.getShortestRowIndex=function(s){for(var c=-1,g=Number.MAX_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]<g&&(c=E,g=s.rowWidth[E]);return c},N.prototype.getLongestRowIndex=function(s){for(var c=-1,g=Number.MIN_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]>g&&(c=E,g=s.rowWidth[E]);return c},N.prototype.canAddHorizontal=function(s,c,g){var E=this.getShortestRowIndex(s);if(E<0)return!0;var _=s.rowWidth[E];if(_+s.horizontalPadding+c<=s.width)return!0;var I,D,w=0;return s.rowHeight[E]<g&&E>0&&(w=g+s.verticalPadding-s.rowHeight[E]),I=s.width-_>=c+s.horizontalPadding?(s.height+w)/(_+c+s.horizontalPadding):(s.height+w)/s.width,w=g+s.verticalPadding,(D=s.width<c?(s.height+w)/c:(s.height+w)/s.width)<1&&(D=1/D),I<1&&(I=1/I),I<D},N.prototype.shiftToLastRow=function(s){var c=this.getLongestRowIndex(s),g=s.rowWidth.length-1,E=s.rows[c],_=E[E.length-1],I=_.width+s.horizontalPadding;if(s.width-s.rowWidth[g]>I&&c!=g){E.splice(-1,1),s.rows[g].push(_),s.rowWidth[c]=s.rowWidth[c]-I,s.rowWidth[g]=s.rowWidth[g]+I,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var D=Number.MIN_VALUE,w=0;w<E.length;w++)E[w].height>D&&(D=E[w].height);c>0&&(D+=s.verticalPadding);var R=s.rowHeight[c]+s.rowHeight[g];s.rowHeight[c]=D,s.rowHeight[g]<_.height+s.verticalPadding&&(s.rowHeight[g]=_.height+s.verticalPadding);var M=s.rowHeight[c]+s.rowHeight[g];s.height+=M-R,this.shiftToLastRow(s)}},N.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var s,c=[],g=!0;g;){var E=this.graphManager.getAllNodes(),_=[];g=!1;for(var I=0;I<E.length;I++)(s=E[I]).getEdges().length!=1||s.getEdges()[0].isInterGraph||s.getChild()!=null||(_.push([s,s.getEdges()[0],s.getOwner()]),g=!0);if(g==1){for(var D=[],w=0;w<_.length;w++)_[w][0].getEdges().length==1&&(D.push(_[w]),_[w][0].getOwner().remove(_[w][0]));c.push(D),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=c},N.prototype.growTree=function(s){for(var c,g=s[s.length-1],E=0;E<g.length;E++)c=g[E],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()},N.prototype.findPlaceforPrunedNode=function(s){var c,g,E=s[0],_=(g=E==s[1].source?s[1].target:s[1].source).startX,I=g.finishX,D=g.startY,w=g.finishY,R=[0,0,0,0];if(D>0)for(var M=_;M<=I;M++)R[0]+=this.grid[M][D-1].length+this.grid[M][D].length-1;if(I<this.grid.length-1)for(M=D;M<=w;M++)R[1]+=this.grid[I+1][M].length+this.grid[I][M].length-1;if(w<this.grid[0].length-1)for(M=_;M<=I;M++)R[2]+=this.grid[M][w+1].length+this.grid[M][w].length-1;if(_>0)for(M=D;M<=w;M++)R[3]+=this.grid[_-1][M].length+this.grid[_][M].length-1;for(var C,b,G=y.MAX_VALUE,S=0;S<R.length;S++)R[S]<G?(G=R[S],C=1,b=S):R[S]==G&&C++;if(C==3&&G==0)R[0]==0&&R[1]==0&&R[2]==0?c=1:R[0]==0&&R[1]==0&&R[3]==0?c=0:R[0]==0&&R[2]==0&&R[3]==0?c=3:R[1]==0&&R[2]==0&&R[3]==0&&(c=2);else if(C==2&&G==0){var P=Math.floor(2*Math.random());c=R[0]==0&&R[1]==0?P==0?0:1:R[0]==0&&R[2]==0?P==0?0:2:R[0]==0&&R[3]==0?P==0?0:3:R[1]==0&&R[2]==0?P==0?1:2:R[1]==0&&R[3]==0?P==0?1:3:P==0?2:3}else c=C==4&&G==0?P=Math.floor(4*Math.random()):b;c==0?E.setCenter(g.getCenterX(),g.getCenterY()-g.getHeight()/2-h.DEFAULT_EDGE_LENGTH-E.getHeight()/2):c==1?E.setCenter(g.getCenterX()+g.getWidth()/2+h.DEFAULT_EDGE_LENGTH+E.getWidth()/2,g.getCenterY()):c==2?E.setCenter(g.getCenterX(),g.getCenterY()+g.getHeight()/2+h.DEFAULT_EDGE_LENGTH+E.getHeight()/2):E.setCenter(g.getCenterX()-g.getWidth()/2-h.DEFAULT_EDGE_LENGTH-E.getWidth()/2,g.getCenterY())},A.exports=N},function(A,p,a){var e={};e.layoutBase=a(0),e.CoSEConstants=a(1),e.CoSEEdge=a(2),e.CoSEGraph=a(3),e.CoSEGraphManager=a(4),e.CoSELayout=a(6),e.CoSENode=a(5),A.exports=e}])},st.exports=ct(Ot())),function(O){var A={};function p(a){if(A[a])return A[a].exports;var e=A[a]={i:a,l:!1,exports:{}};return O[a].call(e.exports,e,e.exports,p),e.l=!0,e.exports}return p.m=O,p.c=A,p.i=function(a){return a},p.d=function(a,e,t){p.o(a,e)||Object.defineProperty(a,e,{configurable:!1,enumerable:!0,get:t})},p.n=function(a){var e=a&&a.__esModule?function(){return a.default}:function(){return a};return p.d(e,"a",e),e},p.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},p.p="",p(p.s=1)}([function(O,A){O.exports=gt},function(O,A,p){var a=p(0).layoutBase.LayoutConstants,e=p(0).layoutBase.FDLayoutConstants,t=p(0).CoSEConstants,i=p(0).CoSELayout,r=p(0).CoSENode,n=p(0).layoutBase.PointD,o=p(0).layoutBase.DimensionD,h={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(d){this.options=function(y,v){var L={};for(var T in y)L[T]=y[T];for(var T in v)L[T]=v[T];return L}(h,d),u(this.options)}var u=function(d){d.nodeRepulsion!=null&&(t.DEFAULT_REPULSION_STRENGTH=e.DEFAULT_REPULSION_STRENGTH=d.nodeRepulsion),d.idealEdgeLength!=null&&(t.DEFAULT_EDGE_LENGTH=e.DEFAULT_EDGE_LENGTH=d.idealEdgeLength),d.edgeElasticity!=null&&(t.DEFAULT_SPRING_STRENGTH=e.DEFAULT_SPRING_STRENGTH=d.edgeElasticity),d.nestingFactor!=null&&(t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(t.DEFAULT_GRAVITY_STRENGTH=e.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(t.MAX_ITERATIONS=e.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(t.DEFAULT_GRAVITY_RANGE_FACTOR=e.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(t.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.quality=="draft"?a.QUALITY=0:d.quality=="proof"?a.QUALITY=2:a.QUALITY=1,t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=a.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=!d.randomize,t.ANIMATE=e.ANIMATE=a.ANIMATE=d.animate,t.TILE=d.tile,t.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,t.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal};l.prototype.run=function(){var d,y,v=this.options;this.idToLNode={};var L=this.layout=new i,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var N=L.newGraphManager();this.gm=N;var m=this.options.eles.nodes(),s=this.options.eles.edges();this.root=N.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(m),L);for(var c=0;c<s.length;c++){var g=s[c],E=this.idToLNode[g.data("source")],_=this.idToLNode[g.data("target")];E!==_&&E.getEdgesBetween(_).length==0&&(N.add(L.newEdge(),E,_).id=g.id())}var I=function(w,R){typeof w=="number"&&(w=R);var M=w.data("id"),C=T.idToLNode[M];return{x:C.getRect().getCenterX(),y:C.getRect().getCenterY()}},D=function w(){for(var R,M=function(){v.fit&&v.cy.fit(v.eles,v.padding),d||(d=!0,T.cy.one("layoutready",v.ready),T.cy.trigger({type:"layoutready",layout:T}))},C=T.options.refresh,b=0;b<C&&!R;b++)R=T.stopped||T.layout.tick();if(R)return L.checkLayoutSuccess()&&!L.isSubLayout&&L.doPostLayout(),L.tilingPostLayout&&L.tilingPostLayout(),L.isLayoutFinished=!0,T.options.eles.nodes().positions(I),M(),T.cy.one("layoutstop",T.options.stop),T.cy.trigger({type:"layoutstop",layout:T}),y&&cancelAnimationFrame(y),void(d=!1);var G=T.layout.getPositionsData();v.eles.nodes().positions(function(S,P){if(typeof S=="number"&&(S=P),!S.isParent()){for(var k=S.id(),F=G[k],U=S;F==null&&(F=G[U.data("parent")]||G["DummyCompound_"+U.data("parent")],G[k]=F,(U=U.parent()[0])!=null););return F!=null?{x:F.x,y:F.y}:{x:S.position("x"),y:S.position("y")}}}),M(),y=requestAnimationFrame(w)};return L.addListener("layoutstarted",function(){T.options.animate==="during"&&(y=requestAnimationFrame(D))}),L.runLayout(),this.options.animate!=="during"&&(T.options.eles.nodes().not(":parent").layoutPositions(T,T.options,I),d=!1),this},l.prototype.getTopMostNodes=function(d){for(var y={},v=0;v<d.length;v++)y[d[v].id()]=!0;var L=d.filter(function(T,N){typeof T=="number"&&(T=N);for(var m=T.parent()[0];m!=null;){if(y[m.id()])return!1;m=m.parent()[0]}return!0});return L},l.prototype.processChildrenList=function(d,y,v){for(var L=y.length,T=0;T<L;T++){var N,m,s=y[T],c=s.children(),g=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((N=s.outerWidth()!=null&&s.outerHeight()!=null?d.add(new r(v.graphManager,new n(s.position("x")-g.w/2,s.position("y")-g.h/2),new o(parseFloat(g.w),parseFloat(g.h)))):d.add(new r(this.graphManager))).id=s.data("id"),N.paddingLeft=parseInt(s.css("padding")),N.paddingTop=parseInt(s.css("padding")),N.paddingRight=parseInt(s.css("padding")),N.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var E=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,_=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,I=s.css("text-halign");N.labelWidth=E,N.labelHeight=_,N.labelPos=I}this.idToLNode[s.data("id")]=N,isNaN(N.rect.x)&&(N.rect.x=0),isNaN(N.rect.y)&&(N.rect.y=0),c!=null&&c.length>0&&(m=v.getGraphManager().add(v.newGraph(),N),this.processChildrenList(m,c,v))}},l.prototype.stop=function(){return this.stopped=!0,this};var f=function(d){d("layout","cose-bilkent",l)};typeof cytoscape<"u"&&f(cytoscape),O.exports=f}]))),ot.exports);const It=At(Dt);var J=function(){var O=x(function(m,s,c,g){for(c=c||{},g=m.length;g--;c[m[g]]=s);return c},"o"),A=[1,4],p=[1,13],a=[1,12],e=[1,15],t=[1,16],i=[1,20],r=[1,19],n=[6,7,8],o=[1,26],h=[1,24],l=[1,25],u=[6,7,11],f=[1,6,13,15,16,19,22],d=[1,33],y=[1,34],v=[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(m,s,c,g,E,_,I){var D=_.length-1;switch(E){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",_[D].id),g.addNode(_[D-1].length,_[D].id,_[D].descr,_[D].type);break;case 16:g.getLogger().trace("Icon: ",_[D]),g.decorateNode({icon:_[D]});break;case 17:case 21:g.decorateNode({class:_[D]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",_[D].id),g.addNode(0,_[D].id,_[D].descr,_[D].type);break;case 20:g.decorateNode({icon:_[D]});break;case 25:g.getLogger().trace("node found ..",_[D-2]),this.$={id:_[D-1],descr:_[D-1],type:g.getType(_[D-2],_[D])};break;case 26:this.$={id:_[D],descr:_[D],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",_[D-3]),this.$={id:_[D-3],descr:_[D-1],type:g.getType(_[D-2],_[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:p,7:[1,10],9:9,12:11,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},O(n,[2,3]),{1:[2,2]},O(n,[2,4]),O(n,[2,5]),{1:[2,6],6:p,12:21,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:p,9:22,12:11,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:o,7:h,10:23,11:l},O(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:i,22:r}),O(u,[2,18]),O(u,[2,19]),O(u,[2,20]),O(u,[2,21]),O(u,[2,23]),O(u,[2,24]),O(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:h,10:32,11:l},{1:[2,7],6:p,12:21,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},O(f,[2,14],{7:d,11:y}),O(v,[2,8]),O(v,[2,9]),O(v,[2,10]),O(u,[2,15]),O(u,[2,16]),O(u,[2,17]),{20:[1,35]},{21:[1,36]},O(f,[2,13],{7:d,11:y}),O(v,[2,11]),O(v,[2,12]),{21:[1,37]},O(u,[2,25]),O(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:x(function(m,s){if(!s.recoverable){var c=new Error(m);throw c.hash=s,c}this.trace(m)},"parseError"),parse:x(function(m){var s=this,c=[0],g=[],E=[null],_=[],I=this.table,D="",w=0,R=0,M=_.slice.call(arguments,1),C=Object.create(this.lexer),b={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(b.yy[G]=this.yy[G]);C.setInput(m,b.yy),b.yy.lexer=C,b.yy.parser=this,C.yylloc===void 0&&(C.yylloc={});var S=C.yylloc;_.push(S);var P=C.options&&C.options.ranges;function k(){var B;return typeof(B=g.pop()||C.lex()||1)!="number"&&(B instanceof Array&&(B=(g=B).pop()),B=s.symbols_[B]||B),B}typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,x(function(B){c.length=c.length-2*B,E.length=E.length-B,_.length=_.length-B},"popStack"),x(k,"lex");for(var F,U,Y,W,$,X,z,q,j={};;){if(U=c[c.length-1],this.defaultActions[U]?Y=this.defaultActions[U]:(F==null&&(F=k()),Y=I[U]&&I[U][F]),Y===void 0||!Y.length||!Y[0]){var nt="";for($ in q=[],I[U])this.terminals_[$]&&$>2&&q.push("'"+this.terminals_[$]+"'");nt=C.showPosition?"Parse error on line "+(w+1)+`:
|
1
|
+
var V;import{_ as x,l as H,c as K,I as yt,T as Et,G as Z,h as Q,V as mt,W as _t,X as Nt,a4 as vt,O as Tt}from"./mermaid-As26tMDi.js";import{c as rt}from"./cytoscape.esm-CzSnbbKZ.js";import{z as At}from"./index-BefWY6Ah.js";import{s as Lt}from"./transform-B8bpuzxV.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var it,ot={exports:{}},st={exports:{}},at={exports:{}};function Ot(){return it?at.exports:(it=1,O=function(){return function(A){var p={};function a(e){if(p[e])return p[e].exports;var t=p[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=A,a.c=p,a.i=function(e){return e},a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=26)}([function(A,p,a){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,p,a){var e=a(2),t=a(8),i=a(9);function r(o,h,l){e.call(this,l),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=l,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 l=this.getOtherEnd(o),u=h.getGraphManager().getRoot();;){if(l.getOwner()==h)return l;if(l.getOwner()==u)break;l=l.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,p,a){A.exports=function(e){this.vGraphObject=e}},function(A,p,a){var e=a(2),t=a(10),i=a(13),r=a(0),n=a(16),o=a(4);function h(u,f,d,y){d==null&&y==null&&(y=f),e.call(this,y),u.graphManager!=null&&(u=u.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=y,this.edges=[],this.graphManager=u,this.rect=d!=null&&f!=null?new i(f.x,f.y,d.width,d.height):new i}for(var l in h.prototype=Object.create(e.prototype),e)h[l]=e[l];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(u){this.rect.width=u},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(u){this.rect.height=u},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(u,f){this.rect.x=u.x,this.rect.y=u.y,this.rect.width=f.width,this.rect.height=f.height},h.prototype.setCenter=function(u,f){this.rect.x=u-this.rect.width/2,this.rect.y=f-this.rect.height/2},h.prototype.setLocation=function(u,f){this.rect.x=u,this.rect.y=f},h.prototype.moveBy=function(u,f){this.rect.x+=u,this.rect.y+=f},h.prototype.getEdgeListToNode=function(u){var f=[],d=this;return d.edges.forEach(function(y){if(y.target==u){if(y.source!=d)throw"Incorrect edge source!";f.push(y)}}),f},h.prototype.getEdgesBetween=function(u){var f=[],d=this;return d.edges.forEach(function(y){if(y.source!=d&&y.target!=d)throw"Incorrect edge source and/or target";y.target!=u&&y.source!=u||f.push(y)}),f},h.prototype.getNeighborsList=function(){var u=new Set,f=this;return f.edges.forEach(function(d){if(d.source==f)u.add(d.target);else{if(d.target!=f)throw"Incorrect incidency!";u.add(d.source)}}),u},h.prototype.withChildren=function(){var u=new Set;if(u.add(this),this.child!=null)for(var f=this.child.getNodes(),d=0;d<f.length;d++)f[d].withChildren().forEach(function(y){u.add(y)});return u},h.prototype.getNoOfChildren=function(){var u=0;if(this.child==null)u=1;else for(var f=this.child.getNodes(),d=0;d<f.length;d++)u+=f[d].getNoOfChildren();return u==0&&(u=1),u},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 u,f,d=-r.INITIAL_WORLD_BOUNDARY,y=r.INITIAL_WORLD_BOUNDARY;u=r.WORLD_CENTER_X+n.nextDouble()*(y-d)+d;var v=-r.INITIAL_WORLD_BOUNDARY,L=r.INITIAL_WORLD_BOUNDARY;f=r.WORLD_CENTER_Y+n.nextDouble()*(L-v)+v,this.rect.x=u,this.rect.y=f},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var u=this.getChild();if(u.updateBounds(!0),this.rect.x=u.getLeft(),this.rect.y=u.getTop(),this.setWidth(u.getRight()-u.getLeft()),this.setHeight(u.getBottom()-u.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var f=u.getRight()-u.getLeft(),d=u.getBottom()-u.getTop();this.labelWidth>f&&(this.rect.x-=(this.labelWidth-f)/2,this.setWidth(this.labelWidth)),this.labelHeight>d&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-d)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-d),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(u){var f=this.rect.x;f>r.WORLD_BOUNDARY?f=r.WORLD_BOUNDARY:f<-r.WORLD_BOUNDARY&&(f=-r.WORLD_BOUNDARY);var d=this.rect.y;d>r.WORLD_BOUNDARY?d=r.WORLD_BOUNDARY:d<-r.WORLD_BOUNDARY&&(d=-r.WORLD_BOUNDARY);var y=new o(f,d),v=u.inverseTransformPoint(y);this.setLocation(v.x,v.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,p,a){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,p,a){var e=a(2),t=a(10),i=a(0),r=a(6),n=a(3),o=a(1),h=a(13),l=a(12),u=a(11);function f(y,v,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=y,v!=null&&v instanceof r?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}for(var d in f.prototype=Object.create(e.prototype),e)f[d]=e[d];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(y,v,L){if(v==null&&L==null){var T=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(T)>-1)throw"Node already in graph!";return T.owner=this,this.getNodes().push(T),T}var N=y;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(v.owner!=L.owner||v.owner!=this)throw"Both owners must be this graph!";return v.owner!=L.owner?null:(N.source=v,N.target=L,N.isInterGraph=!1,this.getEdges().push(N),v.edges.push(N),L!=v&&L.edges.push(N),N)},f.prototype.remove=function(y){var v=y;if(y instanceof n){if(v==null)throw"Node is null!";if(v.owner==null||v.owner!=this)throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=v.edges.slice(),T=L.length,N=0;N<T;N++)(m=L[N]).isInterGraph?this.graphManager.remove(m):m.source.owner.remove(m);if((s=this.nodes.indexOf(v))==-1)throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(y instanceof o){var m;if((m=y)==null)throw"Edge is null!";if(m.source==null||m.target==null)throw"Source and/or target is null!";if(m.source.owner==null||m.target.owner==null||m.source.owner!=this||m.target.owner!=this)throw"Source and/or target owner is invalid!";var s,c=m.source.edges.indexOf(m),g=m.target.edges.indexOf(m);if(!(c>-1&&g>-1))throw"Source and/or target doesn't know this edge!";if(m.source.edges.splice(c,1),m.target!=m.source&&m.target.edges.splice(g,1),(s=m.source.owner.getEdges().indexOf(m))==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(s,1)}},f.prototype.updateLeftTop=function(){for(var y,v,L,T=t.MAX_VALUE,N=t.MAX_VALUE,m=this.getNodes(),s=m.length,c=0;c<s;c++){var g=m[c];T>(y=g.getTop())&&(T=y),N>(v=g.getLeft())&&(N=v)}return T==t.MAX_VALUE?null:(L=m[0].getParent().paddingLeft!=null?m[0].getParent().paddingLeft:this.margin,this.left=N-L,this.top=T-L,new l(this.left,this.top))},f.prototype.updateBounds=function(y){for(var v,L,T,N,m,s=t.MAX_VALUE,c=-t.MAX_VALUE,g=t.MAX_VALUE,E=-t.MAX_VALUE,_=this.nodes,I=_.length,D=0;D<I;D++){var w=_[D];y&&w.child!=null&&w.updateBounds(),s>(v=w.getLeft())&&(s=v),c<(L=w.getRight())&&(c=L),g>(T=w.getTop())&&(g=T),E<(N=w.getBottom())&&(E=N)}var R=new h(s,g,c-s,E-g);s==t.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),m=_[0].getParent().paddingLeft!=null?_[0].getParent().paddingLeft:this.margin,this.left=R.x-m,this.right=R.x+R.width+m,this.top=R.y-m,this.bottom=R.y+R.height+m},f.calculateBounds=function(y){for(var v,L,T,N,m=t.MAX_VALUE,s=-t.MAX_VALUE,c=t.MAX_VALUE,g=-t.MAX_VALUE,E=y.length,_=0;_<E;_++){var I=y[_];m>(v=I.getLeft())&&(m=v),s<(L=I.getRight())&&(s=L),c>(T=I.getTop())&&(c=T),g<(N=I.getBottom())&&(g=N)}return new h(m,c,s-m,g-c)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==t.MIN_VALUE)throw"assert failed";return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var y=0,v=this.nodes,L=v.length,T=0;T<L;T++)y+=v[T].calcEstimatedSize();return this.estimatedSize=y==0?i.EMPTY_COMPOUND_NODE_SIZE:y/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var y=this;if(this.nodes.length!=0){var v,L,T=new u,N=new Set,m=this.nodes[0];for(m.withChildren().forEach(function(E){T.push(E),N.add(E)});T.length!==0;)for(var s=(v=(m=T.shift()).getEdges()).length,c=0;c<s;c++)(L=v[c].getOtherEndInGraph(m,this))==null||N.has(L)||L.withChildren().forEach(function(E){T.push(E),N.add(E)});if(this.isConnected=!1,N.size>=this.nodes.length){var g=0;N.forEach(function(E){E.owner==y&&g++}),g==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},A.exports=f},function(A,p,a){var e,t=a(1);function i(r){e=a(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,l){if(o==null&&h==null&&l==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}l=o,o=r;var u=(h=n).getOwner(),f=l.getOwner();if(u==null||u.getGraphManager()!=this)throw"Source not in this graph mgr!";if(f==null||f.getGraphManager()!=this)throw"Target not in this graph mgr!";if(u==f)return o.isInterGraph=!1,u.add(o,h,l);if(o.isInterGraph=!0,o.source=h,o.target=l,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=[],l=(h=h.concat(n.getEdges())).length,u=0;u<l;u++)o=h[u],n.remove(o);var f,d=[];for(l=(d=d.concat(n.getNodes())).length,u=0;u<l;u++)f=d[u],n.remove(f);n==this.rootGraph&&this.setRootGraph(null);var y=this.graphs.indexOf(n);this.graphs.splice(y,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(y=o.source.edges.indexOf(o),o.source.edges.splice(y,1),y=o.target.edges.indexOf(o),o.target.edges.splice(y,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!";y=o.source.owner.getGraphManager().edges.indexOf(o),o.source.owner.getGraphManager().edges.splice(y,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,l,u=this.getAllEdges(),f=u.length,d=0;d<f;d++)if(n=(r=u[d]).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,l=o.getOwner();r.lca==null;){if(l==h){r.lca=l;break}if(l==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=l.getParent(),l=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(),l=h.length,u=0;u<l;u++)(o=h[u]).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,p,a){var e=a(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,p,a){var e=a(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 l=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(l=1);var u=l*n[0],f=n[1]/l;n[0]<f?f=n[0]:u=n[1],n[0]=-1*h[0]*(f/2+o),n[1]=-1*h[1]*(u/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(),l=r.getCenterX(),u=r.getCenterY();if(i.intersects(r))return n[0]=o,n[1]=h,n[2]=l,n[3]=u,!0;var f=i.getX(),d=i.getY(),y=i.getRight(),v=i.getX(),L=i.getBottom(),T=i.getRight(),N=i.getWidthHalf(),m=i.getHeightHalf(),s=r.getX(),c=r.getY(),g=r.getRight(),E=r.getX(),_=r.getBottom(),I=r.getRight(),D=r.getWidthHalf(),w=r.getHeightHalf(),R=!1,M=!1;if(o===l){if(h>u)return n[0]=o,n[1]=d,n[2]=l,n[3]=_,!1;if(h<u)return n[0]=o,n[1]=L,n[2]=l,n[3]=c,!1}else if(h===u){if(o>l)return n[0]=f,n[1]=h,n[2]=g,n[3]=u,!1;if(o<l)return n[0]=y,n[1]=h,n[2]=s,n[3]=u,!1}else{var C=i.height/i.width,b=r.height/r.width,G=(u-h)/(l-o),S=void 0,P=void 0,k=void 0,F=void 0,U=void 0,Y=void 0;if(-C===G?o>l?(n[0]=v,n[1]=L,R=!0):(n[0]=y,n[1]=d,R=!0):C===G&&(o>l?(n[0]=f,n[1]=d,R=!0):(n[0]=T,n[1]=L,R=!0)),-b===G?l>o?(n[2]=E,n[3]=_,M=!0):(n[2]=g,n[3]=c,M=!0):b===G&&(l>o?(n[2]=s,n[3]=c,M=!0):(n[2]=I,n[3]=_,M=!0)),R&&M)return!1;if(o>l?h>u?(S=this.getCardinalDirection(C,G,4),P=this.getCardinalDirection(b,G,2)):(S=this.getCardinalDirection(-C,G,3),P=this.getCardinalDirection(-b,G,1)):h>u?(S=this.getCardinalDirection(-C,G,1),P=this.getCardinalDirection(-b,G,3)):(S=this.getCardinalDirection(C,G,2),P=this.getCardinalDirection(b,G,4)),!R)switch(S){case 1:F=d,k=o+-m/G,n[0]=k,n[1]=F;break;case 2:k=T,F=h+N*G,n[0]=k,n[1]=F;break;case 3:F=L,k=o+m/G,n[0]=k,n[1]=F;break;case 4:k=v,F=h+-N*G,n[0]=k,n[1]=F}if(!M)switch(P){case 1:Y=c,U=l+-w/G,n[2]=U,n[3]=Y;break;case 2:U=I,Y=u+D*G,n[2]=U,n[3]=Y;break;case 3:Y=_,U=l+w/G,n[2]=U,n[3]=Y;break;case 4:U=E,Y=u+-D*G,n[2]=U,n[3]=Y}}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,l,u,f,d,y,v,L=i.x,T=i.y,N=r.x,m=r.y,s=n.x,c=n.y,g=o.x,E=o.y;return(v=(h=m-T)*(f=s-g)-(l=E-c)*(u=L-N))===0?null:new e((u*(y=g*c-s*E)-f*(d=N*T-L*m))/v,(l*d-h*y)/v)},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,l=i.y,u=r.x,f=r.y,d=n.x,y=n.y,v=o.x,L=o.y,T=(u-h)*(L-y)-(v-d)*(f-l);if(T===0)return!1;var N=((L-y)*(v-h)+(d-v)*(L-l))/T,m=((l-f)*(v-h)+(u-h)*(L-l))/T;return 0<N&&N<1&&0<m&&m<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,p,a){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,p,a){function e(){}e.MAX_VALUE=2147483647,e.MIN_VALUE=-2147483648,A.exports=e},function(A,p,a){var e=function(){function o(h,l){for(var u=0;u<l.length;u++){var f=l[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,l,u){return l&&o(h.prototype,l),u&&o(h,u),h}}(),t=function(o){return{value:o,next:null,prev:null}},i=function(o,h,l,u){return o!==null?o.next=h:u.head=h,l!==null?l.prev=h:u.tail=h,h.prev=o,h.next=l,u.length++,h},r=function(o,h){var l=o.prev,u=o.next;return l!==null?l.next=u:h.head=u,u!==null?u.prev=l:h.tail=l,o.prev=o.next=null,h.length--,o},n=function(){function o(h){var l=this;(function(u,f){if(!(u instanceof f))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(u){return l.push(u)})}return e(o,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(h,l){return i(l.prev,t(h),l,this)}},{key:"insertAfter",value:function(h,l){return i(l,t(h),l.next,this)}},{key:"insertNodeBefore",value:function(h,l){return i(l.prev,h,l,this)}},{key:"insertNodeAfter",value:function(h,l){return i(l,h,l.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 l=1,u=this.head;l<h;)u=u.next,l++;return u.value}}},{key:"set_object_at",value:function(h,l){if(h<=this.length()){for(var u=1,f=this.head;u<h;)f=f.next,u++;f.value=l}}}]),o}();A.exports=n},function(A,p,a){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,p,a){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,p,a){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,p,a){function e(d){if(Array.isArray(d)){for(var y=0,v=Array(d.length);y<d.length;y++)v[y]=d[y];return v}return Array.from(d)}var t=a(0),i=a(6),r=a(3),n=a(1),o=a(5),h=a(4),l=a(17),u=a(27);function f(d){u.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,d!=null&&(this.isRemoteUse=d)}f.RANDOM_SEED=1,f.prototype=Object.create(u.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var d=new i(this);return this.graphManager=d,d},f.prototype.newGraph=function(d){return new o(null,this.graphManager,d)},f.prototype.newNode=function(d){return new r(this.graphManager,d)},f.prototype.newEdge=function(d){return new n(null,null,d)},f.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){var d;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),d=!this.checkLayoutSuccess()&&this.layout(),t.ANIMATE!=="during"&&(d&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,d)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var d=this.graphManager.getAllEdges(),y=0;y<d.length;y++)d[y];var v=this.graphManager.getRoot().getNodes();for(y=0;y<v.length;y++)v[y];this.update(this.graphManager.getRoot())}},f.prototype.update=function(d){if(d==null)this.update2();else if(d instanceof r){var y=d;if(y.getChild()!=null)for(var v=y.getChild().getNodes(),L=0;L<v.length;L++)update(v[L]);y.vGraphObject!=null&&y.vGraphObject.update(y)}else if(d instanceof n){var T=d;T.vGraphObject!=null&&T.vGraphObject.update(T)}else if(d instanceof o){var N=d;N.vGraphObject!=null&&N.vGraphObject.update(N)}},f.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)},f.prototype.transform=function(d){if(d==null)this.transform(new h(0,0));else{var y=new l,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){y.setWorldOrgX(d.x),y.setWorldOrgY(d.y),y.setDeviceOrgX(v.x),y.setDeviceOrgY(v.y);for(var L=this.getAllNodes(),T=0;T<L.length;T++)L[T].transform(y)}}},f.prototype.positionNodesRandomly=function(d){if(d==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var y,v,L=d.getNodes(),T=0;T<L.length;T++)(v=(y=L[T]).getChild())==null||v.getNodes().length==0?y.scatter():(this.positionNodesRandomly(v),y.updateBounds())},f.prototype.getFlatForest=function(){for(var d=[],y=!0,v=this.graphManager.getRoot().getNodes(),L=!0,T=0;T<v.length;T++)v[T].getChild()!=null&&(L=!1);if(!L)return d;var N=new Set,m=[],s=new Map,c=[];for(c=c.concat(v);c.length>0&&y;){for(m.push(c[0]);m.length>0&&y;){var g=m[0];m.splice(0,1),N.add(g);var E=g.getEdges();for(T=0;T<E.length;T++){var _=E[T].getOtherEnd(g);if(s.get(g)!=_){if(N.has(_)){y=!1;break}m.push(_),s.set(_,g)}}}if(y){var I=[].concat(e(N));for(d.push(I),T=0;T<I.length;T++){var D=I[T],w=c.indexOf(D);w>-1&&c.splice(w,1)}N=new Set,s=new Map}else d=[]}return d},f.prototype.createDummyNodesForBendpoints=function(d){for(var y=[],v=d.source,L=this.graphManager.calcLowestCommonAncestor(d.source,d.target),T=0;T<d.bendpoints.length;T++){var N=this.newNode(null);N.setRect(new Point(0,0),new Dimension(1,1)),L.add(N);var m=this.newEdge(null);this.graphManager.add(m,v,N),y.add(N),v=N}return m=this.newEdge(null),this.graphManager.add(m,v,d.target),this.edgeToDummyNodes.set(d,y),d.isInterGraph()?this.graphManager.remove(d):L.remove(d),y},f.prototype.createBendpointsFromDummyNodes=function(){var d=[];d=d.concat(this.graphManager.getAllEdges()),d=[].concat(e(this.edgeToDummyNodes.keys())).concat(d);for(var y=0;y<d.length;y++){var v=d[y];if(v.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(v),T=0;T<L.length;T++){var N=L[T],m=new h(N.getCenterX(),N.getCenterY()),s=v.bendpoints.get(T);s.x=m.x,s.y=m.y,N.getOwner().remove(N)}this.graphManager.add(v,v.source,v.target)}}},f.transform=function(d,y,v,L){if(v!=null&&L!=null){var T=y;return d<=50?T-=(y-y/v)/50*(50-d):T+=(y*L-y)/50*(d-50),T}var N,m;return d<=50?(N=9*y/500,m=y/10):(N=9*y/50,m=-8*y),N*d+m},f.findCenterOfTree=function(d){var y=[];y=y.concat(d);var v=[],L=new Map,T=!1,N=null;y.length!=1&&y.length!=2||(T=!0,N=y[0]);for(var m=0;m<y.length;m++){var s=(E=y[m]).getNeighborsList().size;L.set(E,E.getNeighborsList().size),s==1&&v.push(E)}var c=[];for(c=c.concat(v);!T;){var g=[];for(g=g.concat(c),c=[],m=0;m<y.length;m++){var E=y[m],_=y.indexOf(E);_>=0&&y.splice(_,1),E.getNeighborsList().forEach(function(I){if(v.indexOf(I)<0){var D=L.get(I)-1;D==1&&c.push(I),L.set(I,D)}})}v=v.concat(c),y.length!=1&&y.length!=2||(T=!0,N=y[0])}return N},f.prototype.setGraphManager=function(d){this.graphManager=d},A.exports=f},function(A,p,a){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,p,a){var e=a(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,p,a){var e=a(15),t=a(7),i=a(0),r=a(8),n=a(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 l,u,f,d,y,v,L=this.getGraphManager().getAllEdges(),T=0;T<L.length;T++)(l=L[T]).idealLength=this.idealEdgeLength,l.isInterGraph&&(f=l.getSource(),d=l.getTarget(),y=l.getSourceInLca().getEstimatedSize(),v=l.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(l.idealLength+=y+v-2*i.SIMPLE_NODE_SIZE),u=l.getLca().getInclusionTreeDepth(),l.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(f.getInclusionTreeDepth()+d.getInclusionTreeDepth()-2*u))},o.prototype.initSpringEmbedder=function(){var l=this.getAllNodes().length;this.incremental?(l>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(l-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):(l>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(l-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 l,u=this.getAllEdges(),f=0;f<u.length;f++)l=u[f],this.calcSpringForce(l,l.idealLength)},o.prototype.calcRepulsionForces=function(){var l,u,f,d,y,v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],L=arguments.length>1&&arguments[1]!==void 0&&arguments[1],T=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&v&&this.updateGrid(),y=new Set,l=0;l<T.length;l++)f=T[l],this.calculateRepulsionForceOfANode(f,y,v,L),y.add(f);else for(l=0;l<T.length;l++)for(f=T[l],u=l+1;u<T.length;u++)d=T[u],f.getOwner()==d.getOwner()&&this.calcRepulsionForce(f,d)},o.prototype.calcGravitationalForces=function(){for(var l,u=this.getAllNodesToApplyGravitation(),f=0;f<u.length;f++)l=u[f],this.calcGravitationalForce(l)},o.prototype.moveNodes=function(){for(var l=this.getAllNodes(),u=0;u<l.length;u++)l[u].move()},o.prototype.calcSpringForce=function(l,u){var f,d,y,v,L=l.getSource(),T=l.getTarget();if(this.uniformLeafNodeSizes&&L.getChild()==null&&T.getChild()==null)l.updateLengthSimple();else if(l.updateLength(),l.isOverlapingSourceAndTarget)return;(f=l.getLength())!=0&&(y=(d=this.springConstant*(f-u))*(l.lengthX/f),v=d*(l.lengthY/f),L.springForceX+=y,L.springForceY+=v,T.springForceX-=y,T.springForceY-=v)},o.prototype.calcRepulsionForce=function(l,u){var f,d,y,v,L,T,N,m=l.getRect(),s=u.getRect(),c=new Array(2),g=new Array(4);if(m.intersects(s)){r.calcSeparationAmount(m,s,c,t.DEFAULT_EDGE_LENGTH/2),T=2*c[0],N=2*c[1];var E=l.noOfChildren*u.noOfChildren/(l.noOfChildren+u.noOfChildren);l.repulsionForceX-=E*T,l.repulsionForceY-=E*N,u.repulsionForceX+=E*T,u.repulsionForceY+=E*N}else this.uniformLeafNodeSizes&&l.getChild()==null&&u.getChild()==null?(f=s.getCenterX()-m.getCenterX(),d=s.getCenterY()-m.getCenterY()):(r.getIntersection(m,s,g),f=g[2]-g[0],d=g[3]-g[1]),Math.abs(f)<t.MIN_REPULSION_DIST&&(f=n.sign(f)*t.MIN_REPULSION_DIST),Math.abs(d)<t.MIN_REPULSION_DIST&&(d=n.sign(d)*t.MIN_REPULSION_DIST),y=f*f+d*d,v=Math.sqrt(y),T=(L=this.repulsionConstant*l.noOfChildren*u.noOfChildren/y)*f/v,N=L*d/v,l.repulsionForceX-=T,l.repulsionForceY-=N,u.repulsionForceX+=T,u.repulsionForceY+=N},o.prototype.calcGravitationalForce=function(l){var u,f,d,y,v,L,T,N;f=((u=l.getOwner()).getRight()+u.getLeft())/2,d=(u.getTop()+u.getBottom())/2,y=l.getCenterX()-f,v=l.getCenterY()-d,L=Math.abs(y)+l.getWidth()/2,T=Math.abs(v)+l.getHeight()/2,l.getOwner()==this.graphManager.getRoot()?(L>(N=u.getEstimatedSize()*this.gravityRangeFactor)||T>N)&&(l.gravitationForceX=-this.gravityConstant*y,l.gravitationForceY=-this.gravityConstant*v):(L>(N=u.getEstimatedSize()*this.compoundGravityRangeFactor)||T>N)&&(l.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,l.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant)},o.prototype.isConverged=function(){var l,u=!1;return this.totalIterations>this.maxIterations/3&&(u=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),l=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,l||u},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 l,u=this.graphManager.getAllNodes(),f=0;f<u.length;f++)(l=u[f]).noOfChildren=l.getNoOfChildren()},o.prototype.calcGrid=function(l){var u,f;u=parseInt(Math.ceil((l.getRight()-l.getLeft())/this.repulsionRange)),f=parseInt(Math.ceil((l.getBottom()-l.getTop())/this.repulsionRange));for(var d=new Array(u),y=0;y<u;y++)d[y]=new Array(f);for(y=0;y<u;y++)for(var v=0;v<f;v++)d[y][v]=new Array;return d},o.prototype.addNodeToGrid=function(l,u,f){var d,y,v,L;d=parseInt(Math.floor((l.getRect().x-u)/this.repulsionRange)),y=parseInt(Math.floor((l.getRect().width+l.getRect().x-u)/this.repulsionRange)),v=parseInt(Math.floor((l.getRect().y-f)/this.repulsionRange)),L=parseInt(Math.floor((l.getRect().height+l.getRect().y-f)/this.repulsionRange));for(var T=d;T<=y;T++)for(var N=v;N<=L;N++)this.grid[T][N].push(l),l.setGridCoordinates(d,y,v,L)},o.prototype.updateGrid=function(){var l,u,f=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),l=0;l<f.length;l++)u=f[l],this.addNodeToGrid(u,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(l,u,f,d){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&f||d){var y,v=new Set;l.surrounding=new Array;for(var L=this.grid,T=l.startX-1;T<l.finishX+2;T++)for(var N=l.startY-1;N<l.finishY+2;N++)if(!(T<0||N<0||T>=L.length||N>=L[0].length)){for(var m=0;m<L[T][N].length;m++)if(y=L[T][N][m],l.getOwner()==y.getOwner()&&l!=y&&!u.has(y)&&!v.has(y)){var s=Math.abs(l.getCenterX()-y.getCenterX())-(l.getWidth()/2+y.getWidth()/2),c=Math.abs(l.getCenterY()-y.getCenterY())-(l.getHeight()/2+y.getHeight()/2);s<=this.repulsionRange&&c<=this.repulsionRange&&v.add(y)}}l.surrounding=[].concat(function(g){if(Array.isArray(g)){for(var E=0,_=Array(g.length);E<g.length;E++)_[E]=g[E];return _}return Array.from(g)}(v))}for(T=0;T<l.surrounding.length;T++)this.calcRepulsionForce(l,l.surrounding[T])},o.prototype.calcRepulsionRange=function(){return 0},A.exports=o},function(A,p,a){var e=a(1),t=a(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,p,a){var e=a(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,p,a){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,p,a){var e=a(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,p,a){var e=a(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,p,a){var e=function(){function r(n,o){for(var h=0;h<o.length;h++){var l=o[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}return function(n,o,h){return o&&r(n.prototype,o),h&&r(n,h),n}}(),t=a(11),i=function(){function r(n,o){(function(l,u){if(!(l instanceof u))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 l=this._partition(n,o,h);this._quicksort(n,o,l),this._quicksort(n,l+1,h)}}},{key:"_partition",value:function(n,o,h){for(var l=this._get(n,o),u=o,f=h;;){for(;this.compareFunction(l,this._get(n,f));)f--;for(;this.compareFunction(this._get(n,u),l);)u++;if(!(u<f))return f;this._swap(n,u,f),u++,f--}}},{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 l=this._get(n,o);this._set(n,o,this._get(n,h)),this._set(n,h,l)}},{key:"_defaultCompareFunction",value:function(n,o){return o>n}}]),r}();A.exports=i},function(A,p,a){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,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;(function(v,L){if(!(v 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=l,this.iMax=r.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var u=0;u<this.iMax;u++){this.grid[u]=new Array(this.jMax);for(var f=0;f<this.jMax;f++)this.grid[u][f]=0}this.tracebackGrid=new Array(this.iMax);for(var d=0;d<this.iMax;d++){this.tracebackGrid[d]=new Array(this.jMax);for(var y=0;y<this.jMax;y++)this.tracebackGrid[d][y]=[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 l=[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],u=this.arrayAllMaxIndexes(l);this.grid[o][h]=l[u[0]],this.tracebackGrid[o][h]=[u.includes(0),u.includes(1),u.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,p,a){var e=function(){};e.FDLayout=a(18),e.FDLayoutConstants=a(7),e.FDLayoutEdge=a(19),e.FDLayoutNode=a(20),e.DimensionD=a(21),e.HashMap=a(22),e.HashSet=a(23),e.IGeometry=a(8),e.IMath=a(9),e.Integer=a(10),e.Point=a(12),e.PointD=a(4),e.RandomSeed=a(16),e.RectangleD=a(13),e.Transform=a(17),e.UniqueIDGeneretor=a(14),e.Quicksort=a(24),e.LinkedList=a(11),e.LGraphObject=a(2),e.LGraph=a(5),e.LEdge=a(1),e.LGraphManager=a(6),e.LNode=a(3),e.Layout=a(15),e.LayoutConstants=a(0),e.NeedlemanWunsch=a(25),A.exports=e},function(A,p,a){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}])},at.exports=O());var O}var ht,lt,gt,ct,Dt=(lt||(lt=1,ot.exports=(gt=ht?st.exports:(ht=1,ct=function(O){return function(A){var p={};function a(e){if(p[e])return p[e].exports;var t=p[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=A,a.c=p,a.i=function(e){return e},a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=7)}([function(A,p){A.exports=O},function(A,p,a){var e=a(0).FDLayoutConstants;function t(){}for(var i in e)t[i]=e[i];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,A.exports=t},function(A,p,a){var e=a(0).FDLayoutEdge;function t(r,n,o){e.call(this,r,n,o)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).LGraph;function t(r,n,o){e.call(this,r,n,o)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).LGraphManager;function t(r){e.call(this,r)}for(var i in t.prototype=Object.create(e.prototype),e)t[i]=e[i];A.exports=t},function(A,p,a){var e=a(0).FDLayoutNode,t=a(0).IMath;function i(n,o,h,l){e.call(this,n,o,h,l)}for(var r in i.prototype=Object.create(e.prototype),e)i[r]=e[r];i.prototype.move=function(){var n=this.graphManager.getLayout();this.displacementX=n.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=n.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>n.coolingFactor*n.maxNodeDisplacement&&(this.displacementX=n.coolingFactor*n.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>n.coolingFactor*n.maxNodeDisplacement&&(this.displacementY=n.coolingFactor*n.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),n.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},i.prototype.propogateDisplacementToChildren=function(n,o){for(var h,l=this.getChild().getNodes(),u=0;u<l.length;u++)(h=l[u]).getChild()==null?(h.moveBy(n,o),h.displacementX+=n,h.displacementY+=o):h.propogateDisplacementToChildren(n,o)},i.prototype.setPred1=function(n){this.pred1=n},i.prototype.getPred1=function(){return pred1},i.prototype.getPred2=function(){return pred2},i.prototype.setNext=function(n){this.next=n},i.prototype.getNext=function(){return next},i.prototype.setProcessed=function(n){this.processed=n},i.prototype.isProcessed=function(){return processed},A.exports=i},function(A,p,a){var e=a(0).FDLayout,t=a(4),i=a(3),r=a(5),n=a(2),o=a(1),h=a(0).FDLayoutConstants,l=a(0).LayoutConstants,u=a(0).Point,f=a(0).PointD,d=a(0).Layout,y=a(0).Integer,v=a(0).IGeometry,L=a(0).LGraph,T=a(0).Transform;function N(){e.call(this),this.toBeTiled={}}for(var m in N.prototype=Object.create(e.prototype),e)N[m]=e[m];N.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},N.prototype.newGraph=function(s){return new i(null,this.graphManager,s)},N.prototype.newNode=function(s){return new r(this.graphManager,s)},N.prototype.newEdge=function(s){return new n(null,null,s)},N.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=h.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=h.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.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/h.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=h.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},N.prototype.layout=function(){return l.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.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)o.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),c=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(E){return c.has(E)}),this.graphManager.setAllNodesToApplyGravitation(g));else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var c=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(E){return c.has(E)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},N.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%h.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(_){return s.has(_)});this.graphManager.setAllNodesToApplyGravitation(c),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=h.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=h.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),c={},g=0;g<s.length;g++){var E=s[g].rect,_=s[g].id;c[_]={id:_,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return c},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(h.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},N.prototype.calculateNodesToApplyGravitationTo=function(){var s,c,g=[],E=this.graphManager.getGraphs(),_=E.length;for(c=0;c<_;c++)(s=E[c]).updateConnected(),s.isConnected||(g=g.concat(s.getNodes()));return g},N.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var c,g=new Set;for(c=0;c<s.length;c++){var E=s[c];if(!g.has(E)){var _=E.getSource(),I=E.getTarget();if(_==I)E.getBendpoints().push(new f),E.getBendpoints().push(new f),this.createDummyNodesForBendpoints(E),g.add(E);else{var D=[];if(D=(D=D.concat(_.getEdgeListToNode(I))).concat(I.getEdgeListToNode(_)),!g.has(D[0])){var w;if(D.length>1)for(w=0;w<D.length;w++){var R=D[w];R.getBendpoints().push(new f),this.createDummyNodesForBendpoints(R)}D.forEach(function(M){g.add(M)})}}}if(g.size==s.length)break}},N.prototype.positionNodesRadially=function(s){for(var c=new u(0,0),g=Math.ceil(Math.sqrt(s.length)),E=0,_=0,I=0,D=new f(0,0),w=0;w<s.length;w++){w%g==0&&(I=0,_=E,w!=0&&(_+=o.DEFAULT_COMPONENT_SEPERATION),E=0);var R=s[w],M=d.findCenterOfTree(R);c.x=I,c.y=_,(D=N.radialLayout(R,M,c)).y>E&&(E=Math.floor(D.y)),I=Math.floor(D.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(l.WORLD_CENTER_X-D.x/2,l.WORLD_CENTER_Y-D.y/2))},N.radialLayout=function(s,c,g){var E=Math.max(this.maxDiagonalInTree(s),o.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(c,null,0,359,0,E);var _=L.calculateBounds(s),I=new T;I.setDeviceOrgX(_.getMinX()),I.setDeviceOrgY(_.getMinY()),I.setWorldOrgX(g.x),I.setWorldOrgY(g.y);for(var D=0;D<s.length;D++)s[D].transform(I);var w=new f(_.getMaxX(),_.getMaxY());return I.inverseTransformPoint(w)},N.branchRadialLayout=function(s,c,g,E,_,I){var D=(E-g+1)/2;D<0&&(D+=180);var w=(D+g)%360*v.TWO_PI/360,R=_*Math.cos(w),M=_*Math.sin(w);s.setCenter(R,M);var C=[],b=(C=C.concat(s.getEdges())).length;c!=null&&b--;for(var G,S=0,P=C.length,k=s.getEdgesBetween(c);k.length>1;){var F=k[0];k.splice(0,1);var U=C.indexOf(F);U>=0&&C.splice(U,1),P--,b--}G=c!=null?(C.indexOf(k[0])+1)%P:0;for(var Y=Math.abs(E-g)/b,W=G;S!=b;W=++W%P){var $=C[W].getOtherEnd(s);if($!=c){var X=(g+S*Y)%360,z=(X+Y)%360;N.branchRadialLayout($,s,X,z,_+I,I),S++}}},N.maxDiagonalInTree=function(s){for(var c=y.MIN_VALUE,g=0;g<s.length;g++){var E=s[g].getDiagonal();E>c&&(c=E)}return c},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var s=this,c={};this.memberGroups={},this.idToDummyNode={};for(var g=[],E=this.graphManager.getAllNodes(),_=0;_<E.length;_++){var I=(D=E[_]).getParent();this.getNodeDegreeWithChildren(D)!==0||I.id!=null&&this.getToBeTiled(I)||g.push(D)}for(_=0;_<g.length;_++){var D,w=(D=g[_]).getParent().id;c[w]===void 0&&(c[w]=[]),c[w]=c[w].concat(D)}Object.keys(c).forEach(function(R){if(c[R].length>1){var M="DummyCompound_"+R;s.memberGroups[M]=c[R];var C=c[R][0].getParent(),b=new r(s.graphManager);b.id=M,b.paddingLeft=C.paddingLeft||0,b.paddingRight=C.paddingRight||0,b.paddingBottom=C.paddingBottom||0,b.paddingTop=C.paddingTop||0,s.idToDummyNode[M]=b;var G=s.getGraphManager().add(s.newGraph(),b),S=C.getChild();S.add(b);for(var P=0;P<c[R].length;P++){var k=c[R][P];S.remove(k),G.add(k)}}})},N.prototype.clearCompounds=function(){var s={},c={};this.performDFSOnCompounds();for(var g=0;g<this.compoundOrder.length;g++)c[this.compoundOrder[g].id]=this.compoundOrder[g],s[this.compoundOrder[g].id]=[].concat(this.compoundOrder[g].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[g].getChild()),this.compoundOrder[g].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,c)},N.prototype.clearZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(g){var E=s.idToDummyNode[g];c[g]=s.tileNodes(s.memberGroups[g],E.paddingLeft+E.paddingRight),E.rect.width=c[g].width,E.rect.height=c[g].height})},N.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var c=this.compoundOrder[s],g=c.id,E=c.paddingLeft,_=c.paddingTop;this.adjustLocations(this.tiledMemberPack[g],c.rect.x,c.rect.y,E,_)}},N.prototype.repopulateZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack;Object.keys(c).forEach(function(g){var E=s.idToDummyNode[g],_=E.paddingLeft,I=E.paddingTop;s.adjustLocations(c[g],E.rect.x,E.rect.y,_,I)})},N.prototype.getToBeTiled=function(s){var c=s.id;if(this.toBeTiled[c]!=null)return this.toBeTiled[c];var g=s.getChild();if(g==null)return this.toBeTiled[c]=!1,!1;for(var E=g.getNodes(),_=0;_<E.length;_++){var I=E[_];if(this.getNodeDegree(I)>0)return this.toBeTiled[c]=!1,!1;if(I.getChild()!=null){if(!this.getToBeTiled(I))return this.toBeTiled[c]=!1,!1}else this.toBeTiled[I.id]=!1}return this.toBeTiled[c]=!0,!0},N.prototype.getNodeDegree=function(s){s.id;for(var c=s.getEdges(),g=0,E=0;E<c.length;E++){var _=c[E];_.getSource().id!==_.getTarget().id&&(g+=1)}return g},N.prototype.getNodeDegreeWithChildren=function(s){var c=this.getNodeDegree(s);if(s.getChild()==null)return c;for(var g=s.getChild().getNodes(),E=0;E<g.length;E++){var _=g[E];c+=this.getNodeDegreeWithChildren(_)}return c},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(s){for(var c=0;c<s.length;c++){var g=s[c];g.getChild()!=null&&this.fillCompexOrderByDFS(g.getChild().getNodes()),this.getToBeTiled(g)&&this.compoundOrder.push(g)}},N.prototype.adjustLocations=function(s,c,g,E,_){g+=_;for(var I=c+=E,D=0;D<s.rows.length;D++){var w=s.rows[D];c=I;for(var R=0,M=0;M<w.length;M++){var C=w[M];C.rect.x=c,C.rect.y=g,c+=C.rect.width+s.horizontalPadding,C.rect.height>R&&(R=C.rect.height)}g+=R+s.verticalPadding}},N.prototype.tileCompoundMembers=function(s,c){var g=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var _=c[E];g.tiledMemberPack[E]=g.tileNodes(s[E],_.paddingLeft+_.paddingRight),_.rect.width=g.tiledMemberPack[E].width,_.rect.height=g.tiledMemberPack[E].height})},N.prototype.tileNodes=function(s,c){var g={rows:[],rowWidth:[],rowHeight:[],width:0,height:c,verticalPadding:o.TILING_PADDING_VERTICAL,horizontalPadding:o.TILING_PADDING_HORIZONTAL};s.sort(function(I,D){return I.rect.width*I.rect.height>D.rect.width*D.rect.height?-1:I.rect.width*I.rect.height<D.rect.width*D.rect.height?1:0});for(var E=0;E<s.length;E++){var _=s[E];g.rows.length==0?this.insertNodeToRow(g,_,0,c):this.canAddHorizontal(g,_.rect.width,_.rect.height)?this.insertNodeToRow(g,_,this.getShortestRowIndex(g),c):this.insertNodeToRow(g,_,g.rows.length,c),this.shiftToLastRow(g)}return g},N.prototype.insertNodeToRow=function(s,c,g,E){var _=E;g==s.rows.length&&(s.rows.push([]),s.rowWidth.push(_),s.rowHeight.push(0));var I=s.rowWidth[g]+c.rect.width;s.rows[g].length>0&&(I+=s.horizontalPadding),s.rowWidth[g]=I,s.width<I&&(s.width=I);var D=c.rect.height;g>0&&(D+=s.verticalPadding);var w=0;D>s.rowHeight[g]&&(w=s.rowHeight[g],s.rowHeight[g]=D,w=s.rowHeight[g]-w),s.height+=w,s.rows[g].push(c)},N.prototype.getShortestRowIndex=function(s){for(var c=-1,g=Number.MAX_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]<g&&(c=E,g=s.rowWidth[E]);return c},N.prototype.getLongestRowIndex=function(s){for(var c=-1,g=Number.MIN_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]>g&&(c=E,g=s.rowWidth[E]);return c},N.prototype.canAddHorizontal=function(s,c,g){var E=this.getShortestRowIndex(s);if(E<0)return!0;var _=s.rowWidth[E];if(_+s.horizontalPadding+c<=s.width)return!0;var I,D,w=0;return s.rowHeight[E]<g&&E>0&&(w=g+s.verticalPadding-s.rowHeight[E]),I=s.width-_>=c+s.horizontalPadding?(s.height+w)/(_+c+s.horizontalPadding):(s.height+w)/s.width,w=g+s.verticalPadding,(D=s.width<c?(s.height+w)/c:(s.height+w)/s.width)<1&&(D=1/D),I<1&&(I=1/I),I<D},N.prototype.shiftToLastRow=function(s){var c=this.getLongestRowIndex(s),g=s.rowWidth.length-1,E=s.rows[c],_=E[E.length-1],I=_.width+s.horizontalPadding;if(s.width-s.rowWidth[g]>I&&c!=g){E.splice(-1,1),s.rows[g].push(_),s.rowWidth[c]=s.rowWidth[c]-I,s.rowWidth[g]=s.rowWidth[g]+I,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var D=Number.MIN_VALUE,w=0;w<E.length;w++)E[w].height>D&&(D=E[w].height);c>0&&(D+=s.verticalPadding);var R=s.rowHeight[c]+s.rowHeight[g];s.rowHeight[c]=D,s.rowHeight[g]<_.height+s.verticalPadding&&(s.rowHeight[g]=_.height+s.verticalPadding);var M=s.rowHeight[c]+s.rowHeight[g];s.height+=M-R,this.shiftToLastRow(s)}},N.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var s,c=[],g=!0;g;){var E=this.graphManager.getAllNodes(),_=[];g=!1;for(var I=0;I<E.length;I++)(s=E[I]).getEdges().length!=1||s.getEdges()[0].isInterGraph||s.getChild()!=null||(_.push([s,s.getEdges()[0],s.getOwner()]),g=!0);if(g==1){for(var D=[],w=0;w<_.length;w++)_[w][0].getEdges().length==1&&(D.push(_[w]),_[w][0].getOwner().remove(_[w][0]));c.push(D),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=c},N.prototype.growTree=function(s){for(var c,g=s[s.length-1],E=0;E<g.length;E++)c=g[E],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()},N.prototype.findPlaceforPrunedNode=function(s){var c,g,E=s[0],_=(g=E==s[1].source?s[1].target:s[1].source).startX,I=g.finishX,D=g.startY,w=g.finishY,R=[0,0,0,0];if(D>0)for(var M=_;M<=I;M++)R[0]+=this.grid[M][D-1].length+this.grid[M][D].length-1;if(I<this.grid.length-1)for(M=D;M<=w;M++)R[1]+=this.grid[I+1][M].length+this.grid[I][M].length-1;if(w<this.grid[0].length-1)for(M=_;M<=I;M++)R[2]+=this.grid[M][w+1].length+this.grid[M][w].length-1;if(_>0)for(M=D;M<=w;M++)R[3]+=this.grid[_-1][M].length+this.grid[_][M].length-1;for(var C,b,G=y.MAX_VALUE,S=0;S<R.length;S++)R[S]<G?(G=R[S],C=1,b=S):R[S]==G&&C++;if(C==3&&G==0)R[0]==0&&R[1]==0&&R[2]==0?c=1:R[0]==0&&R[1]==0&&R[3]==0?c=0:R[0]==0&&R[2]==0&&R[3]==0?c=3:R[1]==0&&R[2]==0&&R[3]==0&&(c=2);else if(C==2&&G==0){var P=Math.floor(2*Math.random());c=R[0]==0&&R[1]==0?P==0?0:1:R[0]==0&&R[2]==0?P==0?0:2:R[0]==0&&R[3]==0?P==0?0:3:R[1]==0&&R[2]==0?P==0?1:2:R[1]==0&&R[3]==0?P==0?1:3:P==0?2:3}else c=C==4&&G==0?P=Math.floor(4*Math.random()):b;c==0?E.setCenter(g.getCenterX(),g.getCenterY()-g.getHeight()/2-h.DEFAULT_EDGE_LENGTH-E.getHeight()/2):c==1?E.setCenter(g.getCenterX()+g.getWidth()/2+h.DEFAULT_EDGE_LENGTH+E.getWidth()/2,g.getCenterY()):c==2?E.setCenter(g.getCenterX(),g.getCenterY()+g.getHeight()/2+h.DEFAULT_EDGE_LENGTH+E.getHeight()/2):E.setCenter(g.getCenterX()-g.getWidth()/2-h.DEFAULT_EDGE_LENGTH-E.getWidth()/2,g.getCenterY())},A.exports=N},function(A,p,a){var e={};e.layoutBase=a(0),e.CoSEConstants=a(1),e.CoSEEdge=a(2),e.CoSEGraph=a(3),e.CoSEGraphManager=a(4),e.CoSELayout=a(6),e.CoSENode=a(5),A.exports=e}])},st.exports=ct(Ot())),function(O){var A={};function p(a){if(A[a])return A[a].exports;var e=A[a]={i:a,l:!1,exports:{}};return O[a].call(e.exports,e,e.exports,p),e.l=!0,e.exports}return p.m=O,p.c=A,p.i=function(a){return a},p.d=function(a,e,t){p.o(a,e)||Object.defineProperty(a,e,{configurable:!1,enumerable:!0,get:t})},p.n=function(a){var e=a&&a.__esModule?function(){return a.default}:function(){return a};return p.d(e,"a",e),e},p.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},p.p="",p(p.s=1)}([function(O,A){O.exports=gt},function(O,A,p){var a=p(0).layoutBase.LayoutConstants,e=p(0).layoutBase.FDLayoutConstants,t=p(0).CoSEConstants,i=p(0).CoSELayout,r=p(0).CoSENode,n=p(0).layoutBase.PointD,o=p(0).layoutBase.DimensionD,h={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(d){this.options=function(y,v){var L={};for(var T in y)L[T]=y[T];for(var T in v)L[T]=v[T];return L}(h,d),u(this.options)}var u=function(d){d.nodeRepulsion!=null&&(t.DEFAULT_REPULSION_STRENGTH=e.DEFAULT_REPULSION_STRENGTH=d.nodeRepulsion),d.idealEdgeLength!=null&&(t.DEFAULT_EDGE_LENGTH=e.DEFAULT_EDGE_LENGTH=d.idealEdgeLength),d.edgeElasticity!=null&&(t.DEFAULT_SPRING_STRENGTH=e.DEFAULT_SPRING_STRENGTH=d.edgeElasticity),d.nestingFactor!=null&&(t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(t.DEFAULT_GRAVITY_STRENGTH=e.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(t.MAX_ITERATIONS=e.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(t.DEFAULT_GRAVITY_RANGE_FACTOR=e.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(t.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.quality=="draft"?a.QUALITY=0:d.quality=="proof"?a.QUALITY=2:a.QUALITY=1,t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=a.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=!d.randomize,t.ANIMATE=e.ANIMATE=a.ANIMATE=d.animate,t.TILE=d.tile,t.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,t.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal};l.prototype.run=function(){var d,y,v=this.options;this.idToLNode={};var L=this.layout=new i,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var N=L.newGraphManager();this.gm=N;var m=this.options.eles.nodes(),s=this.options.eles.edges();this.root=N.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(m),L);for(var c=0;c<s.length;c++){var g=s[c],E=this.idToLNode[g.data("source")],_=this.idToLNode[g.data("target")];E!==_&&E.getEdgesBetween(_).length==0&&(N.add(L.newEdge(),E,_).id=g.id())}var I=function(w,R){typeof w=="number"&&(w=R);var M=w.data("id"),C=T.idToLNode[M];return{x:C.getRect().getCenterX(),y:C.getRect().getCenterY()}},D=function w(){for(var R,M=function(){v.fit&&v.cy.fit(v.eles,v.padding),d||(d=!0,T.cy.one("layoutready",v.ready),T.cy.trigger({type:"layoutready",layout:T}))},C=T.options.refresh,b=0;b<C&&!R;b++)R=T.stopped||T.layout.tick();if(R)return L.checkLayoutSuccess()&&!L.isSubLayout&&L.doPostLayout(),L.tilingPostLayout&&L.tilingPostLayout(),L.isLayoutFinished=!0,T.options.eles.nodes().positions(I),M(),T.cy.one("layoutstop",T.options.stop),T.cy.trigger({type:"layoutstop",layout:T}),y&&cancelAnimationFrame(y),void(d=!1);var G=T.layout.getPositionsData();v.eles.nodes().positions(function(S,P){if(typeof S=="number"&&(S=P),!S.isParent()){for(var k=S.id(),F=G[k],U=S;F==null&&(F=G[U.data("parent")]||G["DummyCompound_"+U.data("parent")],G[k]=F,(U=U.parent()[0])!=null););return F!=null?{x:F.x,y:F.y}:{x:S.position("x"),y:S.position("y")}}}),M(),y=requestAnimationFrame(w)};return L.addListener("layoutstarted",function(){T.options.animate==="during"&&(y=requestAnimationFrame(D))}),L.runLayout(),this.options.animate!=="during"&&(T.options.eles.nodes().not(":parent").layoutPositions(T,T.options,I),d=!1),this},l.prototype.getTopMostNodes=function(d){for(var y={},v=0;v<d.length;v++)y[d[v].id()]=!0;var L=d.filter(function(T,N){typeof T=="number"&&(T=N);for(var m=T.parent()[0];m!=null;){if(y[m.id()])return!1;m=m.parent()[0]}return!0});return L},l.prototype.processChildrenList=function(d,y,v){for(var L=y.length,T=0;T<L;T++){var N,m,s=y[T],c=s.children(),g=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((N=s.outerWidth()!=null&&s.outerHeight()!=null?d.add(new r(v.graphManager,new n(s.position("x")-g.w/2,s.position("y")-g.h/2),new o(parseFloat(g.w),parseFloat(g.h)))):d.add(new r(this.graphManager))).id=s.data("id"),N.paddingLeft=parseInt(s.css("padding")),N.paddingTop=parseInt(s.css("padding")),N.paddingRight=parseInt(s.css("padding")),N.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var E=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,_=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,I=s.css("text-halign");N.labelWidth=E,N.labelHeight=_,N.labelPos=I}this.idToLNode[s.data("id")]=N,isNaN(N.rect.x)&&(N.rect.x=0),isNaN(N.rect.y)&&(N.rect.y=0),c!=null&&c.length>0&&(m=v.getGraphManager().add(v.newGraph(),N),this.processChildrenList(m,c,v))}},l.prototype.stop=function(){return this.stopped=!0,this};var f=function(d){d("layout","cose-bilkent",l)};typeof cytoscape<"u"&&f(cytoscape),O.exports=f}]))),ot.exports);const It=At(Dt);var J=function(){var O=x(function(m,s,c,g){for(c=c||{},g=m.length;g--;c[m[g]]=s);return c},"o"),A=[1,4],p=[1,13],a=[1,12],e=[1,15],t=[1,16],i=[1,20],r=[1,19],n=[6,7,8],o=[1,26],h=[1,24],l=[1,25],u=[6,7,11],f=[1,6,13,15,16,19,22],d=[1,33],y=[1,34],v=[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(m,s,c,g,E,_,I){var D=_.length-1;switch(E){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",_[D].id),g.addNode(_[D-1].length,_[D].id,_[D].descr,_[D].type);break;case 16:g.getLogger().trace("Icon: ",_[D]),g.decorateNode({icon:_[D]});break;case 17:case 21:g.decorateNode({class:_[D]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",_[D].id),g.addNode(0,_[D].id,_[D].descr,_[D].type);break;case 20:g.decorateNode({icon:_[D]});break;case 25:g.getLogger().trace("node found ..",_[D-2]),this.$={id:_[D-1],descr:_[D-1],type:g.getType(_[D-2],_[D])};break;case 26:this.$={id:_[D],descr:_[D],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",_[D-3]),this.$={id:_[D-3],descr:_[D-1],type:g.getType(_[D-2],_[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:p,7:[1,10],9:9,12:11,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},O(n,[2,3]),{1:[2,2]},O(n,[2,4]),O(n,[2,5]),{1:[2,6],6:p,12:21,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:p,9:22,12:11,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},{6:o,7:h,10:23,11:l},O(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:i,22:r}),O(u,[2,18]),O(u,[2,19]),O(u,[2,20]),O(u,[2,21]),O(u,[2,23]),O(u,[2,24]),O(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:h,10:32,11:l},{1:[2,7],6:p,12:21,13:a,14:14,15:e,16:t,17:17,18:18,19:i,22:r},O(f,[2,14],{7:d,11:y}),O(v,[2,8]),O(v,[2,9]),O(v,[2,10]),O(u,[2,15]),O(u,[2,16]),O(u,[2,17]),{20:[1,35]},{21:[1,36]},O(f,[2,13],{7:d,11:y}),O(v,[2,11]),O(v,[2,12]),{21:[1,37]},O(u,[2,25]),O(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:x(function(m,s){if(!s.recoverable){var c=new Error(m);throw c.hash=s,c}this.trace(m)},"parseError"),parse:x(function(m){var s=this,c=[0],g=[],E=[null],_=[],I=this.table,D="",w=0,R=0,M=_.slice.call(arguments,1),C=Object.create(this.lexer),b={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(b.yy[G]=this.yy[G]);C.setInput(m,b.yy),b.yy.lexer=C,b.yy.parser=this,C.yylloc===void 0&&(C.yylloc={});var S=C.yylloc;_.push(S);var P=C.options&&C.options.ranges;function k(){var B;return typeof(B=g.pop()||C.lex()||1)!="number"&&(B instanceof Array&&(B=(g=B).pop()),B=s.symbols_[B]||B),B}typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,x(function(B){c.length=c.length-2*B,E.length=E.length-B,_.length=_.length-B},"popStack"),x(k,"lex");for(var F,U,Y,W,$,X,z,q,j={};;){if(U=c[c.length-1],this.defaultActions[U]?Y=this.defaultActions[U]:(F==null&&(F=k()),Y=I[U]&&I[U][F]),Y===void 0||!Y.length||!Y[0]){var nt="";for($ in q=[],I[U])this.terminals_[$]&&$>2&&q.push("'"+this.terminals_[$]+"'");nt=C.showPosition?"Parse error on line "+(w+1)+`:
|
2
2
|
`+C.showPosition()+`
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[F]||F)+"'":"Parse error on line "+(w+1)+": Unexpected "+(F==1?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(nt,{text:C.match,token:this.terminals_[F]||F,line:C.yylineno,loc:S,expected:q})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+F);switch(Y[0]){case 1:c.push(F),E.push(C.yytext),_.push(C.yylloc),c.push(Y[1]),F=null,R=C.yyleng,D=C.yytext,w=C.yylineno,S=C.yylloc;break;case 2:if(X=this.productions_[Y[1]][1],j.$=E[E.length-X],j._$={first_line:_[_.length-(X||1)].first_line,last_line:_[_.length-1].last_line,first_column:_[_.length-(X||1)].first_column,last_column:_[_.length-1].last_column},P&&(j._$.range=[_[_.length-(X||1)].range[0],_[_.length-1].range[1]]),(W=this.performAction.apply(j,[D,R,w,b.yy,Y[1],E,_].concat(M)))!==void 0)return W;X&&(c=c.slice(0,-1*X*2),E=E.slice(0,-1*X),_=_.slice(0,-1*X)),c.push(this.productions_[Y[1]][0]),E.push(j.$),_.push(j._$),z=I[c[c.length-2]][c[c.length-1]],c.push(z);break;case 3:return!0}}return!0},"parse")},T=function(){return{EOF:1,parseError:x(function(m,s){if(!this.yy.parser)throw new Error(m);this.yy.parser.parseError(m,s)},"parseError"),setInput:x(function(m,s){return this.yy=s||this.yy||{},this._input=m,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 m=this._input[0];return this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m,m.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),m},"input"),unput:x(function(m){var s=m.length,c=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var g=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 E=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===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-s]),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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:x(function(m){this.unput(this.match.slice(m))},"less"),pastInput:x(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var m=this.pastInput(),s=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{b as ut,U as j}from"./index-Bw4_53VL.js";import{s as Ut}from"./glide-data-editor-CeJNWkGL.js";import"./trash-65Vbt3F6.js";const Gt=Ut("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function wt(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(r[a[n]]=t[a[n]])}return r}var lt;function et(){}function ct(t){return!!(t||"").match(/\d/)}function it(t){return t==null}function Nt(t){return it(t)||function(e){return typeof e=="number"&&isNaN(e)}(t)||typeof t=="number"&&!isFinite(t)}function Dt(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function bt(t,e){e===void 0&&(e=!0);var r=t[0]==="-",a=r&&e,n=(t=t.replace("-","")).split(".");return{beforeDecimal:n[0],afterDecimal:n[1]||"",hasNegation:r,addNegation:a}}function Ot(t,e,r){for(var a="",n=r?"0":"",l=0;l<=e-1;l++)a+=t[l]||n;return a}function Et(t,e){return Array(e+1).join(t)}function Ct(t){var e=t+"",r=e[0]==="-"?"-":"";r&&(e=e.substring(1));var a=e.split(/[eE]/g),n=a[0],l=a[1];if(!(l=Number(l)))return r+n;var f=1+l,d=(n=n.replace(".","")).length;return f<0?n="0."+Et("0",Math.abs(f))+n:f>=d?n+=Et("0",f-d):n=(n.substring(0,f)||"0")+"."+n.substring(f),r+n}function It(t,e,r){if(["","-"].indexOf(t)!==-1)return t;var a=(t.indexOf(".")!==-1||r)&&e,n=bt(t),l=n.beforeDecimal,f=n.afterDecimal,d=n.hasNegation,D=parseFloat("0."+(f||"0")),y=(f.length<=e?"0."+f:D.toFixed(e)).split("."),h=l;return l&&Number(y[0])&&(h=l.split("").reverse().reduce(function(v,C,g){return v.length>g?(Number(v[0])+Number(C)).toString()+v.substring(1,v.length):C+v},y[0])),(d?"-":"")+h+(a?".":"")+Ot(y[1]||"",e,r)}function ot(t,e){if(t.value=t.value,t!==null){if(t.createTextRange){var r=t.createTextRange();return r.move("character",e),r.select(),!0}return t.selectionStart||t.selectionStart===0?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}(function(t){t.event="event",t.props="prop"})(lt||(lt={}));var At,dt,yt,jt=(At=function(t,e){for(var r=0,a=0,n=t.length,l=e.length;t[r]===e[r]&&r<n;)r++;for(;t[n-1-a]===e[l-1-a]&&l-a>r&&n-a>r;)a++;return{from:{start:r,end:n-a},to:{start:r,end:l-a}}},yt=void 0,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return dt&&t.length===dt.length&&t.every(function(r,a){return r===dt[a]})?yt:(dt=t,yt=At.apply(void 0,t))});function Vt(t){return Math.max(t.selectionStart,t.selectionEnd)}function $t(t){var e=t.currentValue,r=t.formattedValue,a=t.currentValueIndex,n=t.formattedValueIndex;return e[a]===r[n]}function Rt(t,e,r,a){var n,l,f,d=t.length;if(n=e,l=0,f=d,e=Math.min(Math.max(n,l),f),a==="left"){for(;e>=0&&!r[e];)e--;e===-1&&(e=r.indexOf(!0))}else{for(;e<=d&&!r[e];)e++;e>d&&(e=r.lastIndexOf(!0))}return e===-1&&(e=d),e}function Zt(t){for(var e=Array.from({length:t.length+1}).map(function(){return!0}),r=0,a=e.length;r<a;r++)e[r]=!!(ct(t[r])||ct(t[r-1]));return e}function Tt(t,e,r,a,n,l){l===void 0&&(l=et);var f=function(g){var w=j.useRef(g);w.current=g;var A=j.useRef(function(){for(var p=[],T=arguments.length;T--;)p[T]=arguments[T];return w.current.apply(w,p)});return A.current}(function(g,w){var A,p;return Nt(g)?(p="",A=""):typeof g=="number"||w?(p=typeof g=="number"?Ct(g):g,A=a(p)):(p=n(g,void 0),A=a(p)),{formattedValue:A,numAsString:p}}),d=j.useState(function(){return f(it(t)?e:t,r)}),D=d[0],y=d[1],h=t,v=r;it(t)&&(h=D.numAsString,v=!0);var C=f(h,v);return j.useMemo(function(){y(C)},[C.formattedValue]),[D,function(g,w){g.formattedValue!==D.formattedValue&&y({formattedValue:g.formattedValue,numAsString:g.value}),l(g,w)}]}function qt(t){return t.replace(/[^0-9]/g,"")}function zt(t){return t}function Ht(t){var e=t.type;e===void 0&&(e="text");var r=t.displayType;r===void 0&&(r="input");var a=t.customInput,n=t.renderText,l=t.getInputRef,f=t.format;f===void 0&&(f=zt);var d=t.removeFormatting;d===void 0&&(d=qt);var D=t.defaultValue,y=t.valueIsNumericString,h=t.onValueChange,v=t.isAllowed,C=t.onChange;C===void 0&&(C=et);var g=t.onKeyDown;g===void 0&&(g=et);var w=t.onMouseUp;w===void 0&&(w=et);var A=t.onFocus;A===void 0&&(A=et);var p=t.onBlur;p===void 0&&(p=et);var T=t.value,$=t.getCaretBoundary;$===void 0&&($=Zt);var K=t.isValidInputCharacter;K===void 0&&(K=ct);var U=t.isCharacterSame,M=wt(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),rt=Tt(T,D,!!y,f,d,h),Y=rt[0],V=Y.formattedValue,Z=Y.numAsString,at=rt[1],H=j.useRef(),c=j.useRef({formattedValue:V,numAsString:Z}),s=function(o,u){c.current={formattedValue:o.formattedValue,numAsString:o.value},at(o,u)},S=j.useState(!1),m=S[0],O=S[1],i=j.useRef(null),E=j.useRef({setCaretTimeout:null,focusTimeout:null});j.useEffect(function(){return O(!0),function(){clearTimeout(E.current.setCaretTimeout),clearTimeout(E.current.focusTimeout)}},[]);var B=f,R=function(o,u){var b=parseFloat(u);return{formattedValue:o,value:u,floatValue:isNaN(b)?void 0:b}},k=function(o,u,b){o.selectionStart===0&&o.selectionEnd===o.value.length||(ot(o,u),E.current.setCaretTimeout=setTimeout(function(){o.value===b&&o.selectionStart!==u&&ot(o,u)},0))},F=function(o,u,b){return Rt(o,u,$(o),b)},mt=function(o,u,b){var x=$(u),W=function(I,N,L,q,_,ht,G){G===void 0&&(G=$t);var z=_.findIndex(function(Kt){return Kt}),J=I.slice(0,z);N||L.startsWith(J)||(N=J,L=J+L,q+=J.length);for(var Q=L.length,st=I.length,ft={},X=new Array(Q),nt=0;nt<Q;nt++){X[nt]=-1;for(var tt=0,Pt=st;tt<Pt;tt++)if(G({currentValue:L,lastValue:N,formattedValue:I,currentValueIndex:nt,formattedValueIndex:tt})&&ft[tt]!==!0){X[nt]=tt,ft[tt]=!0;break}}for(var P=q;P<Q&&(X[P]===-1||!ht(L[P]));)P++;var vt=P===Q||X[P]===-1?st:X[P];for(P=q-1;P>0&&X[P]===-1;)P--;var St=P===-1||X[P]===-1?0:X[P]+1;return St>vt?vt:q-St<vt-q?St:vt}(u,V,o,b,x,K,U);return W=Rt(u,W,x)};j.useEffect(function(){var o=c.current,u=o.formattedValue,b=o.numAsString;V===u&&Z===b||s(R(V,Z),{event:void 0,source:lt.props})},[V,Z]);var Mt=i.current?Vt(i.current):void 0;(typeof window<"u"?j.useLayoutEffect:j.useEffect)(function(){var o=i.current;if(V!==c.current.formattedValue&&o){var u=mt(c.current.formattedValue,V,Mt);o.value=V,k(o,u,V)}},[V]);var kt=function(o,u,b){var x=u.target,W=H.current?function(G,z){var J=Math.min(G.selectionStart,z);return{from:{start:J,end:G.selectionEnd},to:{start:J,end:z}}}(H.current,x.selectionEnd):jt(V,o),I=Object.assign(Object.assign({},W),{lastValue:V}),N=d(o,I),L=B(N);if(N=d(L,void 0),v&&!v(R(L,N))){var q=u.target,_=Vt(q),ht=mt(o,V,_);return q.value=V,k(q,ht,V),!1}return function(G){var z=G.formattedValue;z===void 0&&(z="");var J,Q=G.input,st=G.source,ft=G.event,X=G.numAsString;if(Q){var nt=G.inputValue||Q.value,tt=Vt(Q);Q.value=z,(J=mt(nt,z,tt))!==void 0&&k(Q,J,z)}z!==V&&s(R(z,X),{event:ft,source:st})}({formattedValue:L,numAsString:N,inputValue:o,event:u,source:b,input:u.target}),!0},pt=function(o,u){u===void 0&&(u=0);var b=o.selectionStart,x=o.selectionEnd;H.current={selectionStart:b,selectionEnd:x+u}},Wt=!m||typeof navigator>"u"||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",xt=Object.assign({inputMode:Wt},M,{type:e,value:V,onChange:function(o){var u=o.target.value;kt(u,o,lt.event)&&C(o),H.current=void 0},onKeyDown:function(o){var u,b=o.target,x=o.key,W=b.selectionStart,I=b.selectionEnd,N=b.value;N===void 0&&(N=""),x==="ArrowLeft"||x==="Backspace"?u=Math.max(W-1,0):x==="ArrowRight"?u=Math.min(W+1,N.length):x==="Delete"&&(u=W);var L=0;x==="Delete"&&W===I&&(L=1);var q=x==="ArrowLeft"||x==="ArrowRight";if(u===void 0||W!==I&&!q)return g(o),void pt(b,L);var _=u;q?(_=F(N,u,x==="ArrowLeft"?"left":"right"))!==u&&o.preventDefault():x!=="Delete"||K(N[u])?x!=="Backspace"||K(N[u])||(_=F(N,u,"left")):_=F(N,u,"right"),_!==u&&k(b,_,N),g(o),pt(b,L)},onMouseUp:function(o){var u=o.target,b=function(){var x=u.selectionStart,W=u.selectionEnd,I=u.value;if(I===void 0&&(I=""),x===W){var N=F(I,x);N!==x&&k(u,N,I)}};b(),requestAnimationFrame(function(){b()}),w(o),pt(u)},onFocus:function(o){o.persist&&o.persist();var u=o.target,b=o.currentTarget;i.current=u,E.current.focusTimeout=setTimeout(function(){var x=u.selectionStart,W=u.selectionEnd,I=u.value;I===void 0&&(I="");var N=F(I,x);N===x||x===0&&W===I.length||k(u,N,I),A(Object.assign(Object.assign({},o),{currentTarget:b}))},0)},onBlur:function(o){i.current=null,clearTimeout(E.current.focusTimeout),clearTimeout(E.current.setCaretTimeout),p(o)}});if(r==="text")return n?ut.createElement(ut.Fragment,null,n(V,M)||null):ut.createElement("span",Object.assign({},M,{ref:l}),V);if(a){var Lt=a;return ut.createElement(Lt,Object.assign({},xt,{ref:l}))}return ut.createElement("input",Object.assign({},xt,{ref:l}))}function Bt(t,e){var r=e.decimalScale,a=e.fixedDecimalScale,n=e.prefix;n===void 0&&(n="");var l=e.suffix;l===void 0&&(l="");var f=e.allowNegative,d=e.thousandsGroupStyle;if(d===void 0&&(d="thousand"),t===""||t==="-")return t;var D=gt(e),y=D.thousandSeparator,h=D.decimalSeparator,v=r!==0&&t.indexOf(".")!==-1||r&&a,C=bt(t,f),g=C.beforeDecimal,w=C.afterDecimal,A=C.addNegation;return r!==void 0&&(w=Ot(w,r,!!a)),y&&(g=function(p,T,$){var K=function(M){switch(M){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}($),U=p.search(/[1-9]/);return U=U===-1?p.length:U,p.substring(0,U)+p.substring(U,p.length).replace(K,"$1"+T)}(g,y,d)),n&&(g=n+g),l&&(w+=l),A&&(g="-"+g),t=g+(v&&h||"")+w}function gt(t){var e=t.decimalSeparator;e===void 0&&(e=".");var r=t.thousandSeparator,a=t.allowedDecimalSeparators;return r===!0&&(r=","),a||(a=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:a}}function Jt(t,e,r){var a;e===void 0&&(e=function(i){return{from:{start:0,end:0},to:{start:0,end:i.length},lastValue:""}}(t));var n=r.allowNegative,l=r.prefix;l===void 0&&(l="");var f=r.suffix;f===void 0&&(f="");var d=r.decimalScale,D=e.from,y=e.to,h=y.start,v=y.end,C=gt(r),g=C.allowedDecimalSeparators,w=C.decimalSeparator,A=t[v]===w;if(ct(t)&&(t===l||t===f)&&e.lastValue==="")return t;if(v-h===1&&g.indexOf(t[h])!==-1){var p=d===0?"":w;t=t.substring(0,h)+p+t.substring(h+1,t.length)}var T=function(i,E,B){var R=!1,k=!1;l.startsWith("-")?R=!1:i.startsWith("--")?(R=!1,k=!0):f.startsWith("-")&&i.length===f.length?R=!1:i[0]==="-"&&(R=!0);var F=R?1:0;return k&&(F=2),F&&(i=i.substring(F),E-=F,B-=F),{value:i,start:E,end:B,hasNegation:R}},$=T(t,h,v),K=$.hasNegation;t=(a=$).value,h=a.start,v=a.end;var U=T(e.lastValue,D.start,D.end),M=U.start,rt=U.end,Y=U.value,V=t.substring(h,v);!(t.length&&Y.length&&(M>Y.length-f.length||rt<l.length))||V&&f.startsWith(V)||(t=Y);var Z=0;t.startsWith(l)?Z+=l.length:h<l.length&&(Z=h),v-=Z;var at=(t=t.substring(Z)).length,H=t.length-f.length;t.endsWith(f)?at=H:(v>H||v>t.length-f.length)&&(at=v),t=t.substring(0,at),t=function(i,E){i===void 0&&(i="");var B=new RegExp("(-)"),R=new RegExp("(-)(.)*(-)"),k=B.test(i),F=R.test(i);return i=i.replace(/-/g,""),k&&!F&&E&&(i="-"+i),i}(K?"-"+t:t,n),t=(t.match(function(i){return new RegExp("(^-)|[0-9]|"+Dt(i),"g")}(w))||[]).join("");var c=t.indexOf(w),s=bt(t=t.replace(new RegExp(Dt(w),"g"),function(i,E){return E===c?".":""}),n),S=s.beforeDecimal,m=s.afterDecimal,O=s.addNegation;return y.end-y.start<D.end-D.start&&S===""&&A&&!parseFloat(m)&&(t=O?"-":""),t}function Qt(t){t=function(c){var s=gt(c),S=s.thousandSeparator,m=s.decimalSeparator,O=c.prefix;O===void 0&&(O="");var i=c.allowNegative;if(i===void 0&&(i=!0),S===m)throw new Error(`
|
1
|
+
import{b as ut,U as j}from"./index-BefWY6Ah.js";import{s as Ut}from"./glide-data-editor-DwzS3TXg.js";import"./trash-nR7lDHRj.js";const Gt=Ut("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function wt(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(r[a[n]]=t[a[n]])}return r}var lt;function et(){}function ct(t){return!!(t||"").match(/\d/)}function it(t){return t==null}function Nt(t){return it(t)||function(e){return typeof e=="number"&&isNaN(e)}(t)||typeof t=="number"&&!isFinite(t)}function Dt(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function bt(t,e){e===void 0&&(e=!0);var r=t[0]==="-",a=r&&e,n=(t=t.replace("-","")).split(".");return{beforeDecimal:n[0],afterDecimal:n[1]||"",hasNegation:r,addNegation:a}}function Ot(t,e,r){for(var a="",n=r?"0":"",l=0;l<=e-1;l++)a+=t[l]||n;return a}function Et(t,e){return Array(e+1).join(t)}function Ct(t){var e=t+"",r=e[0]==="-"?"-":"";r&&(e=e.substring(1));var a=e.split(/[eE]/g),n=a[0],l=a[1];if(!(l=Number(l)))return r+n;var f=1+l,d=(n=n.replace(".","")).length;return f<0?n="0."+Et("0",Math.abs(f))+n:f>=d?n+=Et("0",f-d):n=(n.substring(0,f)||"0")+"."+n.substring(f),r+n}function It(t,e,r){if(["","-"].indexOf(t)!==-1)return t;var a=(t.indexOf(".")!==-1||r)&&e,n=bt(t),l=n.beforeDecimal,f=n.afterDecimal,d=n.hasNegation,D=parseFloat("0."+(f||"0")),y=(f.length<=e?"0."+f:D.toFixed(e)).split("."),h=l;return l&&Number(y[0])&&(h=l.split("").reverse().reduce(function(v,C,g){return v.length>g?(Number(v[0])+Number(C)).toString()+v.substring(1,v.length):C+v},y[0])),(d?"-":"")+h+(a?".":"")+Ot(y[1]||"",e,r)}function ot(t,e){if(t.value=t.value,t!==null){if(t.createTextRange){var r=t.createTextRange();return r.move("character",e),r.select(),!0}return t.selectionStart||t.selectionStart===0?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}(function(t){t.event="event",t.props="prop"})(lt||(lt={}));var At,dt,yt,jt=(At=function(t,e){for(var r=0,a=0,n=t.length,l=e.length;t[r]===e[r]&&r<n;)r++;for(;t[n-1-a]===e[l-1-a]&&l-a>r&&n-a>r;)a++;return{from:{start:r,end:n-a},to:{start:r,end:l-a}}},yt=void 0,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return dt&&t.length===dt.length&&t.every(function(r,a){return r===dt[a]})?yt:(dt=t,yt=At.apply(void 0,t))});function Vt(t){return Math.max(t.selectionStart,t.selectionEnd)}function $t(t){var e=t.currentValue,r=t.formattedValue,a=t.currentValueIndex,n=t.formattedValueIndex;return e[a]===r[n]}function Rt(t,e,r,a){var n,l,f,d=t.length;if(n=e,l=0,f=d,e=Math.min(Math.max(n,l),f),a==="left"){for(;e>=0&&!r[e];)e--;e===-1&&(e=r.indexOf(!0))}else{for(;e<=d&&!r[e];)e++;e>d&&(e=r.lastIndexOf(!0))}return e===-1&&(e=d),e}function Zt(t){for(var e=Array.from({length:t.length+1}).map(function(){return!0}),r=0,a=e.length;r<a;r++)e[r]=!!(ct(t[r])||ct(t[r-1]));return e}function Tt(t,e,r,a,n,l){l===void 0&&(l=et);var f=function(g){var w=j.useRef(g);w.current=g;var A=j.useRef(function(){for(var p=[],T=arguments.length;T--;)p[T]=arguments[T];return w.current.apply(w,p)});return A.current}(function(g,w){var A,p;return Nt(g)?(p="",A=""):typeof g=="number"||w?(p=typeof g=="number"?Ct(g):g,A=a(p)):(p=n(g,void 0),A=a(p)),{formattedValue:A,numAsString:p}}),d=j.useState(function(){return f(it(t)?e:t,r)}),D=d[0],y=d[1],h=t,v=r;it(t)&&(h=D.numAsString,v=!0);var C=f(h,v);return j.useMemo(function(){y(C)},[C.formattedValue]),[D,function(g,w){g.formattedValue!==D.formattedValue&&y({formattedValue:g.formattedValue,numAsString:g.value}),l(g,w)}]}function qt(t){return t.replace(/[^0-9]/g,"")}function zt(t){return t}function Ht(t){var e=t.type;e===void 0&&(e="text");var r=t.displayType;r===void 0&&(r="input");var a=t.customInput,n=t.renderText,l=t.getInputRef,f=t.format;f===void 0&&(f=zt);var d=t.removeFormatting;d===void 0&&(d=qt);var D=t.defaultValue,y=t.valueIsNumericString,h=t.onValueChange,v=t.isAllowed,C=t.onChange;C===void 0&&(C=et);var g=t.onKeyDown;g===void 0&&(g=et);var w=t.onMouseUp;w===void 0&&(w=et);var A=t.onFocus;A===void 0&&(A=et);var p=t.onBlur;p===void 0&&(p=et);var T=t.value,$=t.getCaretBoundary;$===void 0&&($=Zt);var K=t.isValidInputCharacter;K===void 0&&(K=ct);var U=t.isCharacterSame,M=wt(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),rt=Tt(T,D,!!y,f,d,h),Y=rt[0],V=Y.formattedValue,Z=Y.numAsString,at=rt[1],H=j.useRef(),c=j.useRef({formattedValue:V,numAsString:Z}),s=function(o,u){c.current={formattedValue:o.formattedValue,numAsString:o.value},at(o,u)},S=j.useState(!1),m=S[0],O=S[1],i=j.useRef(null),E=j.useRef({setCaretTimeout:null,focusTimeout:null});j.useEffect(function(){return O(!0),function(){clearTimeout(E.current.setCaretTimeout),clearTimeout(E.current.focusTimeout)}},[]);var B=f,R=function(o,u){var b=parseFloat(u);return{formattedValue:o,value:u,floatValue:isNaN(b)?void 0:b}},k=function(o,u,b){o.selectionStart===0&&o.selectionEnd===o.value.length||(ot(o,u),E.current.setCaretTimeout=setTimeout(function(){o.value===b&&o.selectionStart!==u&&ot(o,u)},0))},F=function(o,u,b){return Rt(o,u,$(o),b)},mt=function(o,u,b){var x=$(u),W=function(I,N,L,q,_,ht,G){G===void 0&&(G=$t);var z=_.findIndex(function(Kt){return Kt}),J=I.slice(0,z);N||L.startsWith(J)||(N=J,L=J+L,q+=J.length);for(var Q=L.length,st=I.length,ft={},X=new Array(Q),nt=0;nt<Q;nt++){X[nt]=-1;for(var tt=0,Pt=st;tt<Pt;tt++)if(G({currentValue:L,lastValue:N,formattedValue:I,currentValueIndex:nt,formattedValueIndex:tt})&&ft[tt]!==!0){X[nt]=tt,ft[tt]=!0;break}}for(var P=q;P<Q&&(X[P]===-1||!ht(L[P]));)P++;var vt=P===Q||X[P]===-1?st:X[P];for(P=q-1;P>0&&X[P]===-1;)P--;var St=P===-1||X[P]===-1?0:X[P]+1;return St>vt?vt:q-St<vt-q?St:vt}(u,V,o,b,x,K,U);return W=Rt(u,W,x)};j.useEffect(function(){var o=c.current,u=o.formattedValue,b=o.numAsString;V===u&&Z===b||s(R(V,Z),{event:void 0,source:lt.props})},[V,Z]);var Mt=i.current?Vt(i.current):void 0;(typeof window<"u"?j.useLayoutEffect:j.useEffect)(function(){var o=i.current;if(V!==c.current.formattedValue&&o){var u=mt(c.current.formattedValue,V,Mt);o.value=V,k(o,u,V)}},[V]);var kt=function(o,u,b){var x=u.target,W=H.current?function(G,z){var J=Math.min(G.selectionStart,z);return{from:{start:J,end:G.selectionEnd},to:{start:J,end:z}}}(H.current,x.selectionEnd):jt(V,o),I=Object.assign(Object.assign({},W),{lastValue:V}),N=d(o,I),L=B(N);if(N=d(L,void 0),v&&!v(R(L,N))){var q=u.target,_=Vt(q),ht=mt(o,V,_);return q.value=V,k(q,ht,V),!1}return function(G){var z=G.formattedValue;z===void 0&&(z="");var J,Q=G.input,st=G.source,ft=G.event,X=G.numAsString;if(Q){var nt=G.inputValue||Q.value,tt=Vt(Q);Q.value=z,(J=mt(nt,z,tt))!==void 0&&k(Q,J,z)}z!==V&&s(R(z,X),{event:ft,source:st})}({formattedValue:L,numAsString:N,inputValue:o,event:u,source:b,input:u.target}),!0},pt=function(o,u){u===void 0&&(u=0);var b=o.selectionStart,x=o.selectionEnd;H.current={selectionStart:b,selectionEnd:x+u}},Wt=!m||typeof navigator>"u"||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",xt=Object.assign({inputMode:Wt},M,{type:e,value:V,onChange:function(o){var u=o.target.value;kt(u,o,lt.event)&&C(o),H.current=void 0},onKeyDown:function(o){var u,b=o.target,x=o.key,W=b.selectionStart,I=b.selectionEnd,N=b.value;N===void 0&&(N=""),x==="ArrowLeft"||x==="Backspace"?u=Math.max(W-1,0):x==="ArrowRight"?u=Math.min(W+1,N.length):x==="Delete"&&(u=W);var L=0;x==="Delete"&&W===I&&(L=1);var q=x==="ArrowLeft"||x==="ArrowRight";if(u===void 0||W!==I&&!q)return g(o),void pt(b,L);var _=u;q?(_=F(N,u,x==="ArrowLeft"?"left":"right"))!==u&&o.preventDefault():x!=="Delete"||K(N[u])?x!=="Backspace"||K(N[u])||(_=F(N,u,"left")):_=F(N,u,"right"),_!==u&&k(b,_,N),g(o),pt(b,L)},onMouseUp:function(o){var u=o.target,b=function(){var x=u.selectionStart,W=u.selectionEnd,I=u.value;if(I===void 0&&(I=""),x===W){var N=F(I,x);N!==x&&k(u,N,I)}};b(),requestAnimationFrame(function(){b()}),w(o),pt(u)},onFocus:function(o){o.persist&&o.persist();var u=o.target,b=o.currentTarget;i.current=u,E.current.focusTimeout=setTimeout(function(){var x=u.selectionStart,W=u.selectionEnd,I=u.value;I===void 0&&(I="");var N=F(I,x);N===x||x===0&&W===I.length||k(u,N,I),A(Object.assign(Object.assign({},o),{currentTarget:b}))},0)},onBlur:function(o){i.current=null,clearTimeout(E.current.focusTimeout),clearTimeout(E.current.setCaretTimeout),p(o)}});if(r==="text")return n?ut.createElement(ut.Fragment,null,n(V,M)||null):ut.createElement("span",Object.assign({},M,{ref:l}),V);if(a){var Lt=a;return ut.createElement(Lt,Object.assign({},xt,{ref:l}))}return ut.createElement("input",Object.assign({},xt,{ref:l}))}function Bt(t,e){var r=e.decimalScale,a=e.fixedDecimalScale,n=e.prefix;n===void 0&&(n="");var l=e.suffix;l===void 0&&(l="");var f=e.allowNegative,d=e.thousandsGroupStyle;if(d===void 0&&(d="thousand"),t===""||t==="-")return t;var D=gt(e),y=D.thousandSeparator,h=D.decimalSeparator,v=r!==0&&t.indexOf(".")!==-1||r&&a,C=bt(t,f),g=C.beforeDecimal,w=C.afterDecimal,A=C.addNegation;return r!==void 0&&(w=Ot(w,r,!!a)),y&&(g=function(p,T,$){var K=function(M){switch(M){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}($),U=p.search(/[1-9]/);return U=U===-1?p.length:U,p.substring(0,U)+p.substring(U,p.length).replace(K,"$1"+T)}(g,y,d)),n&&(g=n+g),l&&(w+=l),A&&(g="-"+g),t=g+(v&&h||"")+w}function gt(t){var e=t.decimalSeparator;e===void 0&&(e=".");var r=t.thousandSeparator,a=t.allowedDecimalSeparators;return r===!0&&(r=","),a||(a=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:a}}function Jt(t,e,r){var a;e===void 0&&(e=function(i){return{from:{start:0,end:0},to:{start:0,end:i.length},lastValue:""}}(t));var n=r.allowNegative,l=r.prefix;l===void 0&&(l="");var f=r.suffix;f===void 0&&(f="");var d=r.decimalScale,D=e.from,y=e.to,h=y.start,v=y.end,C=gt(r),g=C.allowedDecimalSeparators,w=C.decimalSeparator,A=t[v]===w;if(ct(t)&&(t===l||t===f)&&e.lastValue==="")return t;if(v-h===1&&g.indexOf(t[h])!==-1){var p=d===0?"":w;t=t.substring(0,h)+p+t.substring(h+1,t.length)}var T=function(i,E,B){var R=!1,k=!1;l.startsWith("-")?R=!1:i.startsWith("--")?(R=!1,k=!0):f.startsWith("-")&&i.length===f.length?R=!1:i[0]==="-"&&(R=!0);var F=R?1:0;return k&&(F=2),F&&(i=i.substring(F),E-=F,B-=F),{value:i,start:E,end:B,hasNegation:R}},$=T(t,h,v),K=$.hasNegation;t=(a=$).value,h=a.start,v=a.end;var U=T(e.lastValue,D.start,D.end),M=U.start,rt=U.end,Y=U.value,V=t.substring(h,v);!(t.length&&Y.length&&(M>Y.length-f.length||rt<l.length))||V&&f.startsWith(V)||(t=Y);var Z=0;t.startsWith(l)?Z+=l.length:h<l.length&&(Z=h),v-=Z;var at=(t=t.substring(Z)).length,H=t.length-f.length;t.endsWith(f)?at=H:(v>H||v>t.length-f.length)&&(at=v),t=t.substring(0,at),t=function(i,E){i===void 0&&(i="");var B=new RegExp("(-)"),R=new RegExp("(-)(.)*(-)"),k=B.test(i),F=R.test(i);return i=i.replace(/-/g,""),k&&!F&&E&&(i="-"+i),i}(K?"-"+t:t,n),t=(t.match(function(i){return new RegExp("(^-)|[0-9]|"+Dt(i),"g")}(w))||[]).join("");var c=t.indexOf(w),s=bt(t=t.replace(new RegExp(Dt(w),"g"),function(i,E){return E===c?".":""}),n),S=s.beforeDecimal,m=s.afterDecimal,O=s.addNegation;return y.end-y.start<D.end-D.start&&S===""&&A&&!parseFloat(m)&&(t=O?"-":""),t}function Qt(t){t=function(c){var s=gt(c),S=s.thousandSeparator,m=s.decimalSeparator,O=c.prefix;O===void 0&&(O="");var i=c.allowNegative;if(i===void 0&&(i=!0),S===m)throw new Error(`
|
2
2
|
Decimal separator can't be same as thousand separator.
|
3
3
|
thousandSeparator: `+S+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
4
4
|
decimalSeparator: `+m+` (default value for decimalSeparator is .)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as B}from"./chunk-353BL4L5-
|
1
|
+
import{p as B}from"./chunk-353BL4L5-CFzyuLAq.js";import{_ as c,g as E,s as N,a as P,b as V,q,p as G,l as O,c as I,E as _,I as H,O as J,d as K,y as Q,G as U}from"./mermaid-As26tMDi.js";import{p as X}from"./treemap-75Q7IDZK-DipLl6qz.js";import"./transform-B8bpuzxV.js";import{d as W}from"./arc-ZB5pDULS.js";import{o as Y}from"./ordinal-DDUp3AbE.js";import{a as y,t as z,n as Z}from"./step-BwsUM5iJ.js";import"./index-BefWY6Ah.js";import"./_baseEach-7sRlJIgH.js";import"./_baseUniq-Dy351lYO.js";import"./min-CLUKABrS.js";import"./_baseMap-BWr-cWt7.js";import"./clone-ikcipny_.js";import"./_createAggregator-tuCWwlfU.js";import"./timer-BwIYMJWC.js";import"./init-DLRA0X12.js";function tt(t,a){return a<t?-1:a>t?1:a>=t?0:NaN}function et(t){return t}var at=U.pie,R={sections:new Map,showData:!1},M=R.sections,F=R.showData,nt=structuredClone(at),L={getConfig:c(()=>structuredClone(nt),"getConfig"),clear:c(()=>{M=new Map,F=R.showData,Q()},"clear"),setDiagramTitle:G,getDiagramTitle:q,setAccTitle:V,getAccTitle:P,setAccDescription:N,getAccDescription:E,addSection:c(({label:t,value:a})=>{M.has(t)||(M.set(t,a),O.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),getSections:c(()=>M,"getSections"),setShowData:c(t=>{F=t},"setShowData"),getShowData:c(()=>F,"getShowData")},rt=c((t,a)=>{B(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),it={parse:c(async t=>{const a=await X("pie",t);O.debug(a),rt(a,L)},"parse")},ot=c(t=>`
|
2
2
|
.pieCircle{
|
3
3
|
stroke: ${t.pieStrokeColor};
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
package/dist/assets/{quadrantDiagram-2OG54O6I-DwvUEn5y.js → quadrantDiagram-2OG54O6I-B-cbhhfv.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
var lt,ht;import{_ as o,s as Te,g as qe,q as Zt,p as Ae,a as _e,b as Se,c as Ct,l as At,d as be,y as ke,G as D,L as Fe,h as Pe}from"./mermaid-
|
1
|
+
var lt,ht;import{_ as o,s as Te,g as qe,q as Zt,p as Ae,a as _e,b as Se,c as Ct,l as At,d as be,y as ke,G as D,L as Fe,h as Pe}from"./mermaid-As26tMDi.js";import{s as Jt}from"./transform-B8bpuzxV.js";import{l as te}from"./linear-DMCrL16N.js";import"./index-BefWY6Ah.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";import"./init-DLRA0X12.js";var Lt=function(){var t=o(function(r,_,g,d){for(g=g||{},d=r.length;d--;g[r[d]]=_);return g},"o"),n=[1,3],c=[1,4],h=[1,5],l=[1,6],x=[1,7],f=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],m=[2,36],p=[1,37],y=[1,36],q=[1,38],T=[1,35],u=[1,43],A=[1,41],M=[1,14],Y=[1,23],j=[1,18],pt=[1,19],ct=[1,20],dt=[1,21],ut=[1,22],xt=[1,24],gt=[1,25],i=[1,26],Et=[1,27],Dt=[1,28],zt=[1,29],$=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],L=[1,44],O=[1,62],X=[1,61],v=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],It=[1,65],wt=[1,66],Nt=[1,67],Bt=[1,68],Wt=[1,69],Rt=[1,70],$t=[1,71],Ut=[1,72],Qt=[1,73],Ot=[1,74],Xt=[1,75],Ht=[1,76],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],Z=[1,91],J=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],rt=[1,97],st=[1,98],bt=[1,102],Mt=[10,55,56,57],B=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,_,g,d,b,e,ft){var s=e.length-1;switch(b){case 23:case 68:this.$=e[s];break;case 24:case 69:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],d.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:d.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:d.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:d.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:d.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:d.setXAxisLeftText(e[s-2]),d.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" \u27F6 ",d.setXAxisLeftText(e[s-1]);break;case 53:d.setXAxisLeftText(e[s]);break;case 54:d.setYAxisBottomText(e[s-2]),d.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" \u27F6 ",d.setYAxisBottomText(e[s-1]);break;case 56:d.setYAxisBottomText(e[s]);break;case 57:d.setQuadrant1Text(e[s]);break;case 58:d.setQuadrant2Text(e[s]);break;case 59:d.setQuadrant3Text(e[s]);break;case 60:d.setQuadrant4Text(e[s]);break;case 64:case 66:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 67:this.$={text:e[s],type:"markdown"}}},"anonymous"),table:[{18:n,26:1,27:2,28:c,55:h,56:l,57:x},{1:[3]},{18:n,26:8,27:2,28:c,55:h,56:l,57:x},{18:n,26:9,27:2,28:c,55:h,56:l,57:x},t(f,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,m,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:y,10:q,12:T,13:u,14:A,18:M,25:Y,35:j,37:pt,39:ct,41:dt,42:ut,48:xt,50:gt,51:i,52:Et,53:Dt,54:zt,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(f,[2,34]),{27:45,55:h,56:l,57:x},t(a,[2,37]),t(a,m,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:y,10:q,12:T,13:u,14:A,18:M,25:Y,35:j,37:pt,39:ct,41:dt,42:ut,48:xt,50:gt,51:i,52:Et,53:Dt,54:zt,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:p,5:y,10:q,12:T,13:u,14:A,43:51,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:u,14:A,43:52,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:u,14:A,43:53,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:u,14:A,43:54,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:u,14:A,43:55,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:u,14:A,43:56,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:C,67:L},t(v,[2,64]),t(v,[2,66]),t(v,[2,67]),t(v,[2,70]),t(v,[2,71]),t(v,[2,72]),t(v,[2,73]),t(v,[2,74]),t(v,[2,75]),t(v,[2,76]),t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(f,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:It,5:wt,6:Nt,7:Bt,8:Wt,9:Rt,10:$t,11:Ut,12:Qt,13:Ot,14:Xt,15:Ht,21:63},t(a,[2,53],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,49:[1,77],63:k,64:F,65:P,66:C,67:L}),t(a,[2,56],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,49:[1,78],63:k,64:F,65:P,66:C,67:L}),t(a,[2,57],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),t(a,[2,58],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),t(a,[2,59],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),t(a,[2,60],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),{45:[1,79]},{44:[1,80]},t(v,[2,65]),t(v,[2,81]),t(v,[2,82]),t(v,[2,83]),{3:82,4:It,5:wt,6:Nt,7:Bt,8:Wt,9:Rt,10:$t,11:Ut,12:Qt,13:Ot,14:Xt,15:Ht,18:[1,81]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:83,4:p,5:y,10:q,12:T,13:u,14:A,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(a,[2,55],{58:31,43:84,4:p,5:y,10:q,12:T,13:u,14:A,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),{46:[1,85]},{45:[1,86]},{4:V,5:Z,6:J,8:tt,11:et,13:it,16:89,17:at,18:nt,19:rt,20:st,22:88,23:87},t(w,[2,24]),t(a,[2,51],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),t(a,[2,54],{59:59,58:60,4:p,5:y,8:O,10:q,12:T,13:u,14:A,18:X,63:k,64:F,65:P,66:C,67:L}),t(a,[2,47],{22:88,16:89,23:100,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:rt,20:st}),{46:[1,101]},t(a,[2,29],{10:bt}),t(Mt,[2,27],{16:103,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:rt,20:st}),t(B,[2,25]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),t(B,[2,19]),t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(a,[2,49],{10:bt}),t(a,[2,48],{22:88,16:89,23:104,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:rt,20:st}),{4:V,5:Z,6:J,8:tt,11:et,13:it,16:89,17:at,18:nt,19:rt,20:st,22:105},t(B,[2,26]),t(a,[2,50],{10:bt}),t(Mt,[2,28],{16:103,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:rt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,_){if(!_.recoverable){var g=new Error(r);throw g.hash=_,g}this.trace(r)},"parseError"),parse:o(function(r){var _=this,g=[0],d=[],b=[null],e=[],ft=this.table,s="",mt=0,Yt=0,ye=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(G.yy[Ft]=this.yy[Ft]);E.setInput(r,G.yy),G.yy.lexer=E,G.yy.parser=this,E.yylloc===void 0&&(E.yylloc={});var Pt=E.yylloc;e.push(Pt);var me=E.options&&E.options.ranges;function jt(){var R;return typeof(R=d.pop()||E.lex()||1)!="number"&&(R instanceof Array&&(R=(d=R).pop()),R=_.symbols_[R]||R),R}typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(R){g.length=g.length-2*R,b.length=b.length-R,e.length=e.length-R},"popStack"),o(jt,"lex");for(var N,K,W,Gt,Tt,H,Kt,qt,ot={};;){if(K=g[g.length-1],this.defaultActions[K]?W=this.defaultActions[K]:(N==null&&(N=jt()),W=ft[K]&&ft[K][N]),W===void 0||!W.length||!W[0]){var Vt="";for(Tt in qt=[],ft[K])this.terminals_[Tt]&&Tt>2&&qt.push("'"+this.terminals_[Tt]+"'");Vt=E.showPosition?"Parse error on line "+(mt+1)+`:
|
2
2
|
`+E.showPosition()+`
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[N]||N)+"'":"Parse error on line "+(mt+1)+": Unexpected "+(N==1?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(Vt,{text:E.match,token:this.terminals_[N]||N,line:E.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(W[0]){case 1:g.push(N),b.push(E.yytext),e.push(E.yylloc),g.push(W[1]),N=null,Yt=E.yyleng,s=E.yytext,mt=E.yylineno,Pt=E.yylloc;break;case 2:if(H=this.productions_[W[1]][1],ot.$=b[b.length-H],ot._$={first_line:e[e.length-(H||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(H||1)].first_column,last_column:e[e.length-1].last_column},me&&(ot._$.range=[e[e.length-(H||1)].range[0],e[e.length-1].range[1]]),(Gt=this.performAction.apply(ot,[s,Yt,mt,G.yy,W[1],b,e].concat(ye)))!==void 0)return Gt;H&&(g=g.slice(0,-1*H*2),b=b.slice(0,-1*H),e=e.slice(0,-1*H)),g.push(this.productions_[W[1]][0]),b.push(ot.$),e.push(ot._$),Kt=ft[g[g.length-2]][g[g.length-1]],g.push(Kt);break;case 3:return!0}}return!0},"parse")},pe=function(){return{EOF:1,parseError:o(function(r,_){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,_)},"parseError"),setInput:o(function(r,_){return this.yy=_||this.yy||{},this._input=r,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:o(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.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),r},"input"),unput:o(function(r){var _=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;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),g.length-1&&(this.yylineno-=g.length-1);var b=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:g?(g.length===d.length?this.yylloc.first_column:0)+d[d.length-g.length].length-g[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),_=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|