@baiducloud/qianfan-ai-assistant 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +143 -0
  3. package/dist/628.js +9 -0
  4. package/dist/628.js.LICENSE.txt +5 -0
  5. package/dist/index.d.ts +184 -0
  6. package/dist/index.js +3248 -0
  7. package/dist/index.js.LICENSE.txt +1193 -0
  8. package/dist/static/image/AIAssistant.b813cb55.png +0 -0
  9. package/dist/static/image/IntelligentAssistButtonIcon.54af3c85.png +0 -0
  10. package/dist/static/image/Qianfan-SFT.47e51f85.png +0 -0
  11. package/dist/static/image/agentProduct.414cf560.png +0 -0
  12. package/dist/static/image/agentTip.19abed85.png +0 -0
  13. package/dist/static/image/agentTip_en.bd33769e.png +0 -0
  14. package/dist/static/image/aiSearchIcon.403146d3.png +0 -0
  15. package/dist/static/image/article.89070985.png +0 -0
  16. package/dist/static/image/article_en.8d473ce3.png +0 -0
  17. package/dist/static/image/assistantIcon.18341b85.png +0 -0
  18. package/dist/static/image/audioPlayingIcon.b39ab0c5.png +0 -0
  19. package/dist/static/image/avatar.8f67c10f.png +0 -0
  20. package/dist/static/image/avatarLoading.b030a37a.png +0 -0
  21. package/dist/static/image/background.8dfa7e1e.png +0 -0
  22. package/dist/static/image/baiduLogoImage.bafc6704.png +0 -0
  23. package/dist/static/image/chartParse.a185a82d.png +0 -0
  24. package/dist/static/image/checking.ac4fe451.gif +0 -0
  25. package/dist/static/image/chunk.49ba3a4b.png +0 -0
  26. package/dist/static/image/chunk_en.d81358ed.png +0 -0
  27. package/dist/static/image/componentLoading.22b92664.png +0 -0
  28. package/dist/static/image/configUpdateTip.275b98d1.png +0 -0
  29. package/dist/static/image/contractIcon.d0b5455e.png +0 -0
  30. package/dist/static/image/createAppBtn.162dea9c.png +0 -0
  31. package/dist/static/image/deepResearch.79157720.png +0 -0
  32. package/dist/static/image/defaultModelIcon.7d18a0b4.png +0 -0
  33. package/dist/static/image/diff_baidu_search_component.452252a9.png +0 -0
  34. package/dist/static/image/diff_baidu_search_component_en.abf74260.png +0 -0
  35. package/dist/static/image/diff_web_search_enhanced.0d021ea0.png +0 -0
  36. package/dist/static/image/diff_web_search_enhanced_en.096a08ce.png +0 -0
  37. package/dist/static/image/embedEmpty.f6b9a162.png +0 -0
  38. package/dist/static/image/empty.af8f6414.png +0 -0
  39. package/dist/static/image/errorPageIcon.a178f217.png +0 -0
  40. package/dist/static/image/examplePng.3f9ecee8.png +0 -0
  41. package/dist/static/image/examplePng_en.b2099a85.png +0 -0
  42. package/dist/static/image/expand_chunk_tip.54be78dc.png +0 -0
  43. package/dist/static/image/expand_chunk_tip_en.806e827f.png +0 -0
  44. package/dist/static/image/extract_qaIcon.f5115b31.webp +0 -0
  45. package/dist/static/image/globalLoading.1b0a8588.png +0 -0
  46. package/dist/static/image/graph_retrieval_augment.e323b800.png +0 -0
  47. package/dist/static/image/graphicTextParse.6dca1926.png +0 -0
  48. package/dist/static/image/graphicTextParse_en.ea5dc9e5.png +0 -0
  49. package/dist/static/image/h5.568460d4.png +0 -0
  50. package/dist/static/image/h5_en.73a39513.png +0 -0
  51. package/dist/static/image/h5bg.be9bc2c1.png +0 -0
  52. package/dist/static/image/h5bg_en.d4f72d3a.png +0 -0
  53. package/dist/static/image/h5text.ff0793ad.png +0 -0
  54. package/dist/static/image/h5text_en.0efe8704.png +0 -0
  55. package/dist/static/image/imageParser.698e288c.png +0 -0
  56. package/dist/static/image/imageParser_en.35046e28.png +0 -0
  57. package/dist/static/image/imgBg.7c39c418.png +0 -0
  58. package/dist/static/image/knowledgeGraphExtract.0dae6dec.png +0 -0
  59. package/dist/static/image/knowledgeGraphExtract_en.a35325c4.png +0 -0
  60. package/dist/static/image/knowledgeGraphSearch.49d1a192.png +0 -0
  61. package/dist/static/image/knowledgeGraphSearch_en.109f7e34.png +0 -0
  62. package/dist/static/image/latexParse.8f616793.png +0 -0
  63. package/dist/static/image/layoutParse.e29627b4.png +0 -0
  64. package/dist/static/image/layoutParse_en.e6ffd0d3.png +0 -0
  65. package/dist/static/image/legalIcon.fb783d65.png +0 -0
  66. package/dist/static/image/loading.9269e3d5.png +0 -0
  67. package/dist/static/image/loading_sm.9269e3d5.png +0 -0
  68. package/dist/static/image/mcpServer.268f266b.png +0 -0
  69. package/dist/static/image/modelResourceModal.d977ad06.png +0 -0
  70. package/dist/static/image/networkError.fadb04ee.png +0 -0
  71. package/dist/static/image/notAccessible.c999fa29.png +0 -0
  72. package/dist/static/image/notFile.5575d957.png +0 -0
  73. package/dist/static/image/notResult.adede446.png +0 -0
  74. package/dist/static/image/officialIcon.1ad58cf6.png +0 -0
  75. package/dist/static/image/opticalParse.13696017.png +0 -0
  76. package/dist/static/image/paper.ba668722.png +0 -0
  77. package/dist/static/image/paper_en.a21ea2da.png +0 -0
  78. package/dist/static/image/partialLoading.758ac358.png +0 -0
  79. package/dist/static/image/partialLoading.7a8f72f5.png +0 -0
  80. package/dist/static/image/pc.c17f13b1.png +0 -0
  81. package/dist/static/image/pc_en.77cab601.png +0 -0
  82. package/dist/static/image/pcbg.89dc1640.png +0 -0
  83. package/dist/static/image/pcbg_en.798ccf46.png +0 -0
  84. package/dist/static/image/playing.47d55c3d.gif +0 -0
  85. package/dist/static/image/ppt.270eddd3.png +0 -0
  86. package/dist/static/image/ppt_en.f833a8ac.png +0 -0
  87. package/dist/static/image/proxyConfig.2b425357.jpg +0 -0
  88. package/dist/static/image/publicAppBackground.2284be0d.png +0 -0
  89. package/dist/static/image/publishSuccessBg.743d171a.png +0 -0
  90. package/dist/static/image/publishSuccessIcon.9edabb3d.png +0 -0
  91. package/dist/static/image/qa-pair.0665f2b2.png +0 -0
  92. package/dist/static/image/qa-pair_en.43165f9c.png +0 -0
  93. package/dist/static/image/recording.632e18f7.gif +0 -0
  94. package/dist/static/image/resultBg.27c66907.png +0 -0
  95. package/dist/static/image/resume.9599e721.png +0 -0
  96. package/dist/static/image/resume_en.f1b408b6.png +0 -0
  97. package/dist/static/image/searchEmpty.55856809.png +0 -0
  98. package/dist/static/image/smallEmpty.d2603dd4.png +0 -0
  99. package/dist/static/image/smallErrorPageIcon.511f9769.png +0 -0
  100. package/dist/static/image/smallSearchEmpty.491a7f02.png +0 -0
  101. package/dist/static/image/table.de011169.png +0 -0
  102. package/dist/static/image/tableParse.09be175a.png +0 -0
  103. package/dist/static/image/tableParseError.407be6ec.png +0 -0
  104. package/dist/static/image/tableSeat.6206bbd7.png +0 -0
  105. package/dist/static/image/tableSeat_en.c89c3478.png +0 -0
  106. package/dist/static/image/table_en.ba9b8e46.png +0 -0
  107. package/dist/static/image/tipsIcon.84271250.png +0 -0
  108. package/dist/static/image/toolProduct.74798c6e.png +0 -0
  109. package/dist/static/image/topBg.8802aebc.png +0 -0
  110. package/dist/static/image/tourBack.d0f7662f.png +0 -0
  111. package/dist/static/image/userMaterialTip.da655c4f.png +0 -0
  112. package/dist/static/image/userMaterialTip_en.dd04c77a.png +0 -0
  113. package/dist/static/image/variableLabels.7c370d69.png +0 -0
  114. package/dist/static/image/variableLabels_en.9712ced6.png +0 -0
  115. package/dist/static/image/voice-playing.b39ab0c5.png +0 -0
  116. package/dist/static/image/voiceBroadcastTip.fad23e99.png +0 -0
  117. package/dist/static/image/voiceBroadcastTip_en.be04db17.png +0 -0
  118. package/dist/static/image/voiceCallTip.c8e580b5.png +0 -0
  119. package/dist/static/image/voiceCallTip_en.8e0bea29.png +0 -0
  120. package/dist/static/image/voicePhoneDefaultTip.3c2ac3f1.png +0 -0
  121. package/dist/static/image/voicePhoneDefaultTip_en.d0e56784.png +0 -0
  122. package/package.json +29 -0
package/dist/628.js ADDED
@@ -0,0 +1,9 @@
1
+ /*! For license information please see 628.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AIAssistantAgent=t():e.AIAssistantAgent=t()}(globalThis,()=>(()=>{var e={"../../../node_modules/@antv/event-emitter/esm/index.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});let r=function(){function e(){this._events={}}return e.prototype.on=function(e,t,o){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!o}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var s=this._events[e]||[],n=this._events["*"]||[],i=function(r){for(var s=r.length,n=0;n<s;n++)if(r[n]){var i=r[n],a=i.callback;i.once&&(r.splice(n,1),0===r.length&&delete t._events[e],s--,n--),a.apply(t,o)}};i(s),i(n)},e.prototype.off=function(e,t){if(e)if(t){for(var o=this._events[e]||[],r=o.length,s=0;s<r;s++)o[s].callback===t&&(o.splice(s,1),r--,s--);0===o.length&&delete this._events[e]}else delete this._events[e];else this._events={};return this},e.prototype.getEvents=function(){return this._events},e}()},"../../../node_modules/@antv/graphlib/esm/graph.js":function(e,t,o){"use strict";o.d(t,{k:()=>d});var r=o("../../../node_modules/@antv/event-emitter/esm/index.js");function s(e,t,o,r){for(;e.length;){let s=e.shift();if(o(s))return!0;t.add(s.id),r(s.id).forEach(o=>{t.has(o.id)||(t.add(o.id),e.push(o))})}return!1}function n(e,t,o,r){if(o(e))return!0;for(let s of(t.add(e.id),r(e.id)))if(!t.has(s.id)&&n(s,t,o,r))return!0;return!1}let i=()=>!0;class a{graph;nodeFilter;edgeFilter;cacheEnabled;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;allNodesMap=new Map;allEdgesMap=new Map;constructor(e){this.graph=e.graph;let t=e.nodeFilter||i,o=e.edgeFilter||i;this.nodeFilter=t,this.edgeFilter=e=>{let{source:r,target:s}=this.graph.getEdgeDetail(e.id);return!!t(r)&&!!t(s)&&o(e,r,s)},"auto"===e.cache?(this.cacheEnabled=!0,this.startAutoCache()):"manual"===e.cache?this.cacheEnabled=!0:this.cacheEnabled=!1}clearCache=()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()};refreshCache=()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map(e=>e.id))};updateCache=e=>{let t=new Set;e.forEach(e=>{let o=this.bothEdgesMap.get(e);if(o&&o.forEach(e=>t.add(e.id)),this.hasNode(e)){let o=this.graph.getRelatedEdges(e,"in").filter(this.edgeFilter),r=this.graph.getRelatedEdges(e,"out").filter(this.edgeFilter),s=Array.from(new Set([...o,...r]));s.forEach(e=>t.add(e.id)),this.inEdgesMap.set(e,o),this.outEdgesMap.set(e,r),this.bothEdgesMap.set(e,s),this.allNodesMap.set(e,this.graph.getNode(e))}else this.inEdgesMap.delete(e),this.outEdgesMap.delete(e),this.bothEdgesMap.delete(e),this.allNodesMap.delete(e)}),t.forEach(e=>{this.hasEdge(e)?this.allEdgesMap.set(e,this.graph.getEdge(e)):this.allEdgesMap.delete(e)})};startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}handleGraphChanged=e=>{let t=new Set;e.changes.forEach(o=>{switch(o.type){case"NodeAdded":case"NodeRemoved":t.add(o.value.id);break;case"NodeDataUpdated":t.add(o.id);break;case"EdgeAdded":case"EdgeRemoved":t.add(o.value.source),t.add(o.value.target);break;case"EdgeUpdated":("source"===o.propertyName||"target"===o.propertyName)&&(t.add(o.oldValue),t.add(o.newValue));break;case"EdgeDataUpdated":if(e.graph.hasEdge(o.id)){let r=e.graph.getEdge(o.id);t.add(r.source),t.add(r.target)}}}),this.updateCache(t)};checkNodeExistence(e){this.getNode(e)}hasNode(e){if(!this.graph.hasNode(e))return!1;let t=this.graph.getNode(e);return this.nodeFilter(t)}areNeighbors(e,t){return this.checkNodeExistence(e),this.getNeighbors(t).some(t=>t.id===e)}getNode(e){let t=this.graph.getNode(e);if(!this.nodeFilter(t))throw Error("Node not found for id: "+e);return t}getRelatedEdges(e,t){if(this.checkNodeExistence(e),this.cacheEnabled)if("in"===t)return this.inEdgesMap.get(e);else if("out"===t)return this.outEdgesMap.get(e);else return this.bothEdgesMap.get(e);return this.graph.getRelatedEdges(e,t).filter(this.edgeFilter)}getDegree(e,t){return this.getRelatedEdges(e,t).length}getSuccessors(e){return Array.from(new Set(this.getRelatedEdges(e,"out").map(e=>this.getNode(e.target))))}getPredecessors(e){return Array.from(new Set(this.getRelatedEdges(e,"in").map(e=>this.getNode(e.source))))}getNeighbors(e){return Array.from(new Set([...this.getPredecessors(e),...this.getSuccessors(e)]))}hasEdge(e){if(!this.graph.hasEdge(e))return!1;let t=this.graph.getEdge(e);return this.edgeFilter(t)}getEdge(e){let t=this.graph.getEdge(e);if(!this.edgeFilter(t))throw Error("Edge not found for id: "+e);return t}getEdgeDetail(e){let t=this.getEdge(e);return{edge:t,source:this.getNode(t.source),target:this.getNode(t.target)}}hasTreeStructure(e){return this.graph.hasTreeStructure(e)}getRoots(e){return this.graph.getRoots(e).filter(this.nodeFilter)}getChildren(e,t){return this.checkNodeExistence(e),this.graph.getChildren(e,t).filter(this.nodeFilter)}getParent(e,t){this.checkNodeExistence(e);let o=this.graph.getParent(e,t);return o&&this.nodeFilter(o)?o:null}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(e,t,o="out"){let r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[o];s([this.getNode(e)],new Set,t,r)}dfs(e,t,o="out"){let r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[o];n(this.getNode(e),new Set,t,r)}}class d extends r.Z{nodeMap=new Map;edgeMap=new Map;inEdgesMap=new Map;outEdgesMap=new Map;bothEdgesMap=new Map;treeIndices=new Map;changes=[];batchCount=0;onChanged=()=>{};constructor(e){if(super(),!e)return;e.nodes&&this.addNodes(e.nodes),e.edges&&this.addEdges(e.edges),e.tree&&this.addTree(e.tree),e.onChanged&&(this.onChanged=e.onChanged)}batch=e=>{this.batchCount+=1,e(),this.batchCount-=1,this.batchCount||this.commit()};commit(){let e=this.changes;this.changes=[];let t={graph:this,changes:e};this.emit("changed",t),this.onChanged(t)}reduceChanges(e){let t=[];return e.forEach(e=>{switch(e.type){case"NodeRemoved":{let o=!1;t=t.filter(t=>{if("NodeAdded"===t.type){let r=t.value.id===e.value.id;return r&&(o=!0),!r}return"NodeDataUpdated"===t.type?t.id!==e.value.id:"TreeStructureChanged"!==t.type||t.nodeId!==e.value.id}),o||t.push(e);break}case"EdgeRemoved":{let o=!1;t=t.filter(t=>{if("EdgeAdded"===t.type){let r=t.value.id===e.value.id;return r&&(o=!0),!r}return"EdgeDataUpdated"!==t.type&&"EdgeUpdated"!==t.type||t.id!==e.value.id}),o||t.push(e);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{let o=t.findIndex(t=>t.type===e.type&&t.id===e.id&&(void 0===e.propertyName||t.propertyName===e.propertyName)),r=t[o];r?void 0!==e.propertyName?r.newValue=e.newValue:(t.splice(o,1),t.push(e)):t.push(e);break}case"TreeStructureDetached":(t=t.filter(t=>"TreeStructureAttached"===t.type?t.treeKey!==e.treeKey:"TreeStructureChanged"!==t.type||t.treeKey!==e.treeKey)).push(e);break;case"TreeStructureChanged":{let o=t.find(t=>"TreeStructureChanged"===t.type&&t.treeKey===e.treeKey&&t.nodeId===e.nodeId);o?o.newParentId=e.newParentId:t.push(e);break}default:t.push(e)}}),t}checkNodeExistence(e){this.getNode(e)}hasNode(e){return this.nodeMap.has(e)}areNeighbors(e,t){return this.getNeighbors(t).some(t=>t.id===e)}getNode(e){let t=this.nodeMap.get(e);if(!t)throw Error("Node not found for id: "+e);return t}getRelatedEdges(e,t){return(this.checkNodeExistence(e),"in"===t)?Array.from(this.inEdgesMap.get(e)):"out"===t?Array.from(this.outEdgesMap.get(e)):Array.from(this.bothEdgesMap.get(e))}getDegree(e,t){return this.getRelatedEdges(e,t).length}getSuccessors(e){return Array.from(new Set(this.getRelatedEdges(e,"out").map(e=>this.getNode(e.target))))}getPredecessors(e){return Array.from(new Set(this.getRelatedEdges(e,"in").map(e=>this.getNode(e.source))))}getNeighbors(e){return Array.from(new Set([...this.getPredecessors(e),...this.getSuccessors(e)]))}doAddNode(e){if(this.hasNode(e.id))throw Error("Node already exists: "+e.id);this.nodeMap.set(e.id,e),this.inEdgesMap.set(e.id,new Set),this.outEdgesMap.set(e.id,new Set),this.bothEdgesMap.set(e.id,new Set),this.treeIndices.forEach(t=>{t.childrenMap.set(e.id,new Set)}),this.changes.push({type:"NodeAdded",value:e})}addNodes(e){this.batch(()=>{for(let t of e)this.doAddNode(t)})}addNode(e){this.addNodes([e])}doRemoveNode(e){let t=this.getNode(e),o=this.bothEdgesMap.get(e);o?.forEach(e=>this.doRemoveEdge(e.id)),this.nodeMap.delete(e),this.treeIndices.forEach(o=>{o.childrenMap.get(e)?.forEach(e=>{o.parentMap.delete(e.id)});let r=o.parentMap.get(e);r&&o.childrenMap.get(r.id)?.delete(t),o.parentMap.delete(e),o.childrenMap.delete(e)}),this.bothEdgesMap.delete(e),this.inEdgesMap.delete(e),this.outEdgesMap.delete(e),this.changes.push({type:"NodeRemoved",value:t})}removeNodes(e){this.batch(()=>{e.forEach(e=>this.doRemoveNode(e))})}removeNode(e){this.removeNodes([e])}updateNodeDataProperty(e,t,o){let r=this.getNode(e);this.batch(()=>{let s=r.data[t];r.data[t]=o,this.changes.push({type:"NodeDataUpdated",id:e,propertyName:t,oldValue:s,newValue:o})})}mergeNodeData(e,t){this.batch(()=>{Object.entries(t).forEach(([t,o])=>{this.updateNodeDataProperty(e,t,o)})})}updateNodeData(...e){let t,o=e[0],r=this.getNode(o);if("string"==typeof e[1])return void this.updateNodeDataProperty(o,e[1],e[2]);"function"==typeof e[1]?t=(0,e[1])(r.data):"object"==typeof e[1]&&(t=e[1]),this.batch(()=>{let e=r.data,s=t;r.data=t,this.changes.push({type:"NodeDataUpdated",id:o,oldValue:e,newValue:s})})}checkEdgeExistence(e){if(!this.hasEdge(e))throw Error("Edge not found for id: "+e)}hasEdge(e){return this.edgeMap.has(e)}getEdge(e){return this.checkEdgeExistence(e),this.edgeMap.get(e)}getEdgeDetail(e){let t=this.getEdge(e);return{edge:t,source:this.getNode(t.source),target:this.getNode(t.target)}}doAddEdge(e){if(this.hasEdge(e.id))throw Error("Edge already exists: "+e.id);this.checkNodeExistence(e.source),this.checkNodeExistence(e.target),this.edgeMap.set(e.id,e);let t=this.inEdgesMap.get(e.target),o=this.outEdgesMap.get(e.source),r=this.bothEdgesMap.get(e.source),s=this.bothEdgesMap.get(e.target);t.add(e),o.add(e),r.add(e),s.add(e),this.changes.push({type:"EdgeAdded",value:e})}addEdges(e){this.batch(()=>{for(let t of e)this.doAddEdge(t)})}addEdge(e){this.addEdges([e])}doRemoveEdge(e){let t=this.getEdge(e),o=this.outEdgesMap.get(t.source),r=this.inEdgesMap.get(t.target),s=this.bothEdgesMap.get(t.source),n=this.bothEdgesMap.get(t.target);o.delete(t),r.delete(t),s.delete(t),n.delete(t),this.edgeMap.delete(e),this.changes.push({type:"EdgeRemoved",value:t})}removeEdges(e){this.batch(()=>{e.forEach(e=>this.doRemoveEdge(e))})}removeEdge(e){this.removeEdges([e])}updateEdgeSource(e,t){let o=this.getEdge(e);this.checkNodeExistence(t);let r=o.source;this.outEdgesMap.get(r).delete(o),this.bothEdgesMap.get(r).delete(o),this.outEdgesMap.get(t).add(o),this.bothEdgesMap.get(t).add(o),o.source=t,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:e,propertyName:"source",oldValue:r,newValue:t})})}updateEdgeTarget(e,t){let o=this.getEdge(e);this.checkNodeExistence(t);let r=o.target;this.inEdgesMap.get(r).delete(o),this.bothEdgesMap.get(r).delete(o),this.inEdgesMap.get(t).add(o),this.bothEdgesMap.get(t).add(o),o.target=t,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:e,propertyName:"target",oldValue:r,newValue:t})})}updateEdgeDataProperty(e,t,o){let r=this.getEdge(e);this.batch(()=>{let s=r.data[t];r.data[t]=o,this.changes.push({type:"EdgeDataUpdated",id:e,propertyName:t,oldValue:s,newValue:o})})}updateEdgeData(...e){let t,o=e[0],r=this.getEdge(o);if("string"==typeof e[1])return void this.updateEdgeDataProperty(o,e[1],e[2]);"function"==typeof e[1]?t=(0,e[1])(r.data):"object"==typeof e[1]&&(t=e[1]),this.batch(()=>{let e=r.data,s=t;r.data=t,this.changes.push({type:"EdgeDataUpdated",id:o,oldValue:e,newValue:s})})}mergeEdgeData(e,t){this.batch(()=>{Object.entries(t).forEach(([t,o])=>{this.updateEdgeDataProperty(e,t,o)})})}checkTreeExistence(e){if(!this.hasTreeStructure(e))throw Error("Tree structure not found for treeKey: "+e)}hasTreeStructure(e){return this.treeIndices.has(e)}attachTreeStructure(e){this.treeIndices.has(e)||(this.treeIndices.set(e,{parentMap:new Map,childrenMap:new Map}),this.batch(()=>{this.changes.push({type:"TreeStructureAttached",treeKey:e})}))}detachTreeStructure(e){this.checkTreeExistence(e),this.treeIndices.delete(e),this.batch(()=>{this.changes.push({type:"TreeStructureDetached",treeKey:e})})}addTree(e,t){this.batch(()=>{this.attachTreeStructure(t);let o=[],r=Array.isArray(e)?e:[e];for(;r.length;){let e=r.shift();o.push(e),e.children&&r.push(...e.children)}this.addNodes(o),o.forEach(e=>{e.children?.forEach(o=>{this.setParent(o.id,e.id,t)})})})}getRoots(e){return this.checkTreeExistence(e),this.getAllNodes().filter(t=>!this.getParent(t.id,e))}getChildren(e,t){return this.checkNodeExistence(e),this.checkTreeExistence(t),Array.from(this.treeIndices.get(t).childrenMap.get(e)||[])}getParent(e,t){return this.checkNodeExistence(e),this.checkTreeExistence(t),this.treeIndices.get(t).parentMap.get(e)||null}getAncestors(e,t){let o,r=[],s=this.getNode(e);for(;o=this.getParent(s.id,t);)r.push(o),s=o;return r}setParent(e,t,o){this.checkTreeExistence(o);let r=this.treeIndices.get(o);if(!r)return;let s=this.getNode(e),n=r.parentMap.get(e);if(n?.id===t)return;if(null==t){n&&r.childrenMap.get(n.id)?.delete(s),r.parentMap.delete(e);return}let i=this.getNode(t);r.parentMap.set(e,i),n&&r.childrenMap.get(n.id)?.delete(s);let a=r.childrenMap.get(i.id);a||(a=new Set,r.childrenMap.set(i.id,a)),a.add(s),this.batch(()=>{this.changes.push({type:"TreeStructureChanged",treeKey:o,nodeId:e,oldParentId:n?.id,newParentId:i.id})})}dfsTree(e,t,o){return n(this.getNode(e),new Set,t,e=>this.getChildren(e,o))}bfsTree(e,t,o){return s([this.getNode(e)],new Set,t,e=>this.getChildren(e,o))}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(e,t,o="out"){let r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[o];return s([this.getNode(e)],new Set,t,r)}dfs(e,t,o="out"){let r={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[o];return n(this.getNode(e),new Set,t,r)}clone(){let e=new d({nodes:this.getAllNodes().map(e=>({...e,data:{...e.data}})),edges:this.getAllEdges().map(e=>({...e,data:{...e.data}}))});return this.treeIndices.forEach(({parentMap:t,childrenMap:o},r)=>{let s=new Map;t.forEach((t,o)=>{s.set(o,e.getNode(t.id))});let n=new Map;o.forEach((t,o)=>{n.set(o,new Set(Array.from(t).map(t=>e.getNode(t.id))))}),e.treeIndices.set(r,{parentMap:s,childrenMap:n})}),e}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(e){return new a({graph:this,...e})}}},"../../../node_modules/@antv/layout/lib/antv-dagre.js":function(e,t,o){"use strict";o.d(t,{b:()=>h});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/graphlib/esm/graph.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/layout/lib/antv-dagre/layout.js"),a=o("../../../node_modules/@antv/layout/lib/util/function.js"),d=o("../../../node_modules/@antv/layout/lib/util/object.js"),l=o("../../../node_modules/@antv/layout/lib/util/size.js");let u={rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null};class h{constructor(e={}){this.options=e,this.id="antv-dagre",this.options=Object.assign(Object.assign({},u),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,e,t)})}genericDagreLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r,{nodeSize:u,align:h,rankdir:f="TB",ranksep:g,nodesep:m,ranksepFunc:p,nodesepFunc:_,edgeLabelSpace:v,ranker:y,nodeOrder:b,begin:j,controlPoints:x,radial:w,sortByCombo:E,preset:M}=Object.assign(Object.assign({},this.options),o),N=new s.k({tree:[]}),k=(0,a.jE)(g||50,p),A=(0,a.jE)(m||50,_),S=A,O=k;("LR"===f||"RL"===f)&&(S=k,O=A);let z=(0,a.tO)(10,u,!1),I=t.getAllNodes(),R=t.getAllEdges();I.forEach(e=>{let t=(0,l._)(z(e)),o=O(e),r=S(e),s=t[0]+2*r,i=t[1]+2*o,a=e.data.layer;(0,n.Z)(a)?N.addNode({id:e.id,data:{width:s,height:i,layer:a}}):N.addNode({id:e.id,data:{width:s,height:i}})}),E&&(N.attachTreeStructure("combo"),I.forEach(e=>{let{parentId:t}=e.data;void 0!==t&&N.hasNode(t)&&N.setParent(e.id,t,"combo")})),R.forEach(e=>{N.addEdge({id:e.id,source:e.source,target:e.target,data:{weight:e.data.weight||1}})}),(null==M?void 0:M.length)&&(r=new s.k({nodes:M})),(0,i.b)(N,{prevGraph:r,edgeLabelSpace:v,keepNodeOrder:!!b,nodeOrder:b||[],acyclicer:"greedy",ranker:y,rankdir:f,nodesep:m,align:h});let C=[0,0];if(j){let e=1/0,t=1/0;N.getAllNodes().forEach(o=>{e>o.data.x&&(e=o.data.x),t>o.data.y&&(t=o.data.y)}),N.getAllEdges().forEach(o=>{var r;null==(r=o.data.points)||r.forEach(o=>{e>o.x&&(e=o.x),t>o.y&&(t=o.y)})}),C[0]=j[0]-e,C[1]=j[1]-t}let P="LR"===f||"RL"===f;if(w);else{let e=new Set,t="BT"===f||"RL"===f;N.getAllNodes().forEach(t=>{t.data.x=t.data.x+C[0],t.data.y=t.data.y+C[1],e.add(P?t.data.x:t.data.y)});let o=Array.from(e).sort(t?(e,t)=>t-e:(e,t)=>e-t),r=P?(e,t)=>e.x!==t.x:(e,t)=>e.y!==t.y,s=P?(e,t,o)=>{let r=Math.max(t.y,o.y),s=Math.min(t.y,o.y);return e.filter(e=>e.y<=r&&e.y>=s)}:(e,t,o)=>{let r=Math.max(t.x,o.x),s=Math.min(t.x,o.x);return e.filter(e=>e.x<=r&&e.x>=s)};N.getAllEdges().forEach((e,t)=>{var n;v&&x&&"loop"!==e.data.type&&(e.data.controlPoints=c(null==(n=e.data.points)?void 0:n.map(({x:e,y:t})=>({x:e+C[0],y:t+C[1]})),N.getNode(e.source),N.getNode(e.target),o,P,r,s))})}let T=[];T=N.getAllNodes().map(e=>(0,d.u)(e));let D=N.getAllEdges();return e&&(T.forEach(e=>{t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})}),D.forEach(e=>{t.mergeEdgeData(e.id,{controlPoints:e.data.controlPoints})})),{nodes:T,edges:D}})}}let c=(e,t,o,r,s,n,i)=>{let a=(null==e?void 0:e.slice(1,e.length-1))||[];if(t&&o){let{x:e,y:d}=t.data,{x:l,y:u}=o.data;if(s&&(e=t.data.y,d=t.data.x,l=o.data.y,u=o.data.x),u!==d&&e!==l){let h=r.indexOf(d),c=r[h+1];if(c){let e=a[0],t=s?{x:(d+c)/2,y:(null==e?void 0:e.y)||l}:{x:(null==e?void 0:e.x)||l,y:(d+c)/2};(!e||n(e,t))&&a.unshift(t)}let f=r.indexOf(u),g=Math.abs(f-h);if(1===g)(a=i(a,t.data,o.data)).length||a.push(s?{x:(d+u)/2,y:e}:{x:e,y:(d+u)/2});else if(g>1){let t=r[f-1];if(t){let o=a[a.length-1],r=s?{x:(u+t)/2,y:(null==o?void 0:o.y)||l}:{x:(null==o?void 0:o.x)||e,y:(u+t)/2};(!o||n(o,r))&&a.push(r)}}}}return a}},"../../../node_modules/@antv/layout/lib/antv-dagre/acyclic.js":function(e,t,o){"use strict";o.d(t,{K:()=>s,Y:()=>i});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/greedy-fas.js");let s=(e,t)=>{let o="greedy"===t?(0,r.q)(e,e=>e.data.weight||1):n(e);null==o||o.forEach(t=>{let o=t.data;e.removeEdge(t.id),o.forwardName=t.data.name,o.reversed=!0,e.addEdge({id:t.id,source:t.target,target:t.source,data:Object.assign({},o)})})},n=e=>{let t=[],o={},r={},s=n=>{r[n]||(r[n]=!0,o[n]=!0,e.getRelatedEdges(n,"out").forEach(e=>{o[e.target]?t.push(e):s(e.target)}),delete o[n])};return e.getAllNodes().forEach(e=>s(e.id)),t},i=e=>{e.getAllEdges().forEach(t=>{let o=t.data;if(o.reversed){e.removeEdge(t.id);let r=o.forwardName;delete o.reversed,delete o.forwardName,e.addEdge({id:t.id,source:t.target,target:t.source,data:Object.assign(Object.assign({},o),{forwardName:r})})}})}},"../../../node_modules/@antv/layout/lib/antv-dagre/add-border-segments.js":function(e,t,o){"use strict";o.d(t,{b:()=>s});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let s=e=>{let t=o=>{let r=e.getChildren(o),s=e.getNode(o);if((null==r?void 0:r.length)&&r.forEach(e=>t(e.id)),s.data.hasOwnProperty("minRank")){s.data.borderLeft=[],s.data.borderRight=[];for(let t=s.data.minRank,r=s.data.maxRank+1;t<r;t+=1)n(e,"borderLeft","_bl",o,s,t),n(e,"borderRight","_br",o,s,t)}};e.getRoots().forEach(e=>t(e.id))},n=(e,t,o,s,n,i)=>{let a=n.data[t][i-1],d=(0,r.og)(e,"border",{rank:i,borderType:t,width:0,height:0},o);n.data[t][i]=d,e.setParent(d,s),a&&e.addEdge({id:`e${Math.random()}`,source:a,target:d,data:{weight:1}})}},"../../../node_modules/@antv/layout/lib/antv-dagre/coordinate-system.js":function(e,t,o){"use strict";o.d(t,{Y:()=>s,z:()=>r});let r=(e,t)=>{let o=t.toLowerCase();("lr"===o||"rl"===o)&&n(e)},s=(e,t)=>{let o=t.toLowerCase();("bt"===o||"rl"===o)&&a(e),("lr"===o||"rl"===o)&&(l(e),n(e))},n=e=>{e.getAllNodes().forEach(e=>{i(e)}),e.getAllEdges().forEach(e=>{i(e)})},i=e=>{let t=e.data.width;e.data.width=e.data.height,e.data.height=t},a=e=>{e.getAllNodes().forEach(e=>{d(e.data)}),e.getAllEdges().forEach(e=>{var t;null==(t=e.data.points)||t.forEach(e=>d(e)),e.data.hasOwnProperty("y")&&d(e.data)})},d=e=>{(null==e?void 0:e.y)&&(e.y=-e.y)},l=e=>{e.getAllNodes().forEach(e=>{u(e.data)}),e.getAllEdges().forEach(e=>{var t;null==(t=e.data.points)||t.forEach(e=>u(e)),e.data.hasOwnProperty("x")&&u(e.data)})},u=e=>{let t=e.x;e.x=e.y,e.y=t}},"../../../node_modules/@antv/layout/lib/antv-dagre/data/list.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});let r=(e,t)=>{if("next"!==e&&"prev"!==e)return t},s=e=>{e.prev.next=e.next,e.next.prev=e.prev,delete e.next,delete e.prev};class n{constructor(){let e={};e.prev=e,e.next=e.prev,this.shortcut=e}dequeue(){let e=this.shortcut,t=e.prev;if(t&&t!==e)return s(t),t}enqueue(e){let t=this.shortcut;e.prev&&e.next&&s(e),e.next=t.next,t.next.prev=e,t.next=e,e.prev=t}toString(){let e=[],t=this.shortcut,o=t.prev;for(;o!==t;)e.push(JSON.stringify(o,r)),o=null==o?void 0:o.prev;return`[${e.join(", ")}]`}}},"../../../node_modules/@antv/layout/lib/antv-dagre/greedy-fas.js":function(e,t,o){"use strict";o.d(t,{q:()=>a});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/data/list.js");class n extends s.Z{}let i=()=>1,a=(e,t)=>{var o;if(e.getAllNodes().length<=1)return[];let r=u(e,t||i);return null==(o=d(r.graph,r.buckets,r.zeroIdx).map(t=>e.getRelatedEdges(t.v,"out").filter(({target:e})=>e===t.w)))?void 0:o.flat()},d=(e,t,o)=>{let r,s=[],n=t[t.length-1],i=t[0];for(;e.getAllNodes().length;){for(;r=i.dequeue();)l(e,t,o,r);for(;r=n.dequeue();)l(e,t,o,r);if(e.getAllNodes().length){for(let n=t.length-2;n>0;--n)if(r=t[n].dequeue()){s=s.concat(l(e,t,o,r,!0));break}}}return s},l=(e,t,o,r,s)=>{var n,i;let a=[];return e.hasNode(r.v)&&(null==(n=e.getRelatedEdges(r.v,"in"))||n.forEach(r=>{let n=r.data.weight,i=e.getNode(r.source);s&&a.push({v:r.source,w:r.target,in:0,out:0}),void 0===i.data.out&&(i.data.out=0),i.data.out-=n,h(t,o,Object.assign({v:i.id},i.data))}),null==(i=e.getRelatedEdges(r.v,"out"))||i.forEach(r=>{let s=r.data.weight,n=r.target,i=e.getNode(n);void 0===i.data.in&&(i.data.in=0),i.data.in-=s,h(t,o,Object.assign({v:i.id},i.data))}),e.removeNode(r.v)),s?a:void 0},u=(e,t)=>{let o=new r.k,s=0,i=0;e.getAllNodes().forEach(e=>{o.addNode({id:e.id,data:{v:e.id,in:0,out:0}})}),e.getAllEdges().forEach(e=>{let r=o.getRelatedEdges(e.source,"out").find(t=>t.target===e.target),n=(null==t?void 0:t(e))||1;r?o.updateEdgeData(null==r?void 0:r.id,Object.assign(Object.assign({},r.data),{weight:r.data.weight+n})):o.addEdge({id:e.id,source:e.source,target:e.target,data:{weight:n}}),i=Math.max(i,o.getNode(e.source).data.out+=n),s=Math.max(s,o.getNode(e.target).data.in+=n)});let a=[],d=i+s+3;for(let e=0;e<d;e++)a.push(new n);let l=s+1;return o.getAllNodes().forEach(e=>{h(a,l,Object.assign({v:e.id},o.getNode(e.id).data))}),{buckets:a,zeroIdx:l,graph:o}},h=(e,t,o)=>{o.out?o.in?e[o.out-o.in+t].enqueue(o):e[e.length-1].enqueue(o):e[0].enqueue(o)}},"../../../node_modules/@antv/layout/lib/antv-dagre/layout.js":function(e,t,o){"use strict";o.d(t,{b:()=>p});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-nil.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/acyclic.js"),i=o("../../../node_modules/@antv/layout/lib/antv-dagre/add-border-segments.js"),a=o("../../../node_modules/@antv/layout/lib/antv-dagre/coordinate-system.js"),d=o("../../../node_modules/@antv/layout/lib/antv-dagre/nesting-graph.js"),l=o("../../../node_modules/@antv/layout/lib/antv-dagre/normalize.js"),u=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/index.js"),h=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/init-data-order.js"),c=o("../../../node_modules/@antv/layout/lib/antv-dagre/parent-dummy-chains.js"),f=o("../../../node_modules/@antv/layout/lib/antv-dagre/position/index.js"),g=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/index.js"),m=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let p=(e,t)=>{let o,{edgeLabelSpace:r,keepNodeOrder:s,prevGraph:n,rankdir:i,ranksep:a}=t;!s&&n&&v(e,n);let d=M(e);r&&(t.ranksep=N(d,{rankdir:i,ranksep:a}));try{o=_(d,t)}catch(e){if("Not possible to find intersection inside of the rectangle"===e.message)return void console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",e);throw e}return y(e,d),o},_=(e,t)=>{let{acyclicer:o,ranker:r,rankdir:s="tb",nodeOrder:p,keepNodeOrder:_,align:v,nodesep:y=50,edgesep:b=20,ranksep:j=50}=t;P(e),(0,n.K)(e,o);let{nestingRoot:x,nodeRankFactor:w}=(0,d.K)(e);(0,g.d)((0,m.WP)(e),r),k(e),(0,m.DH)(e,w),(0,d.E)(e,x),(0,m.LS)(e),A(e),S(e);let E=[];(0,l.K)(e,E),(0,c.v)(e,E),(0,i.b)(e),_&&(0,h.x)(e,p),(0,u.v)(e,_),T(e),(0,a.z)(e,s),(0,f.F)(e,{align:v,nodesep:y,edgesep:b,ranksep:j}),D(e),C(e),(0,l.Y)(e,E),I(e),(0,a.Y)(e,s);let{width:M,height:N}=O(e);return z(e),R(e),(0,n.Y)(e),{width:M,height:N}},v=(e,t)=>{e.getAllNodes().forEach(o=>{let r=e.getNode(o.id);if(t.hasNode(o.id)){let e=t.getNode(o.id);r.data.fixorder=e.data._order,delete e.data._order}else delete r.data.fixorder})},y=(e,t)=>{e.getAllNodes().forEach(o=>{var r;let s=e.getNode(o.id);if(s){let e=t.getNode(o.id);s.data.x=e.data.x,s.data.y=e.data.y,s.data._order=e.data.order,s.data._rank=e.data.rank,(null==(r=t.getChildren(o.id))?void 0:r.length)&&(s.data.width=e.data.width,s.data.height=e.data.height)}}),e.getAllEdges().forEach(o=>{let r=e.getEdge(o.id),s=t.getEdge(o.id);r.data.points=s?s.data.points:[],s&&s.data.hasOwnProperty("x")&&(r.data.x=s.data.x,r.data.y=s.data.y)})},b=["width","height","layer","fixorder"],j={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],w={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"],M=e=>{let t=new r.k({tree:[]});return e.getAllNodes().forEach(o=>{let r=q(e.getNode(o.id).data),n=Z(Object.assign(Object.assign({},j),r),b);t.hasNode(o.id)||t.addNode({id:o.id,data:Object.assign({},n)});let i=e.hasTreeStructure("combo")?e.getParent(o.id,"combo"):e.getParent(o.id);(0,s.Z)(i)||(t.hasNode(i.id)||t.addNode(Object.assign({},i)),t.setParent(o.id,i.id))}),e.getAllEdges().forEach(o=>{let r=q(e.getEdge(o.id).data),s={};null==E||E.forEach(e=>{void 0!==r[e]&&(s[e]=r[e])}),t.addEdge({id:o.id,source:o.source,target:o.target,data:Object.assign({},w,Z(r,x),s)})}),t},N=(e,t)=>{let{ranksep:o=0,rankdir:r}=t;return e.getAllNodes().forEach(e=>{isNaN(e.data.layer)||e.data.layer||(e.data.layer=0)}),e.getAllEdges().forEach(e=>{var t;e.data.minlen*=2,(null==(t=e.data.labelpos)?void 0:t.toLowerCase())!=="c"&&("TB"===r||"BT"===r?e.data.width+=e.data.labeloffset:e.data.height+=e.data.labeloffset)}),o/2},k=e=>{e.getAllEdges().forEach(t=>{if(t.data.width&&t.data.height){let o=e.getNode(t.source),r=e.getNode(t.target),s={e:t,rank:(r.data.rank-o.data.rank)/2+o.data.rank};(0,m.og)(e,"edge-proxy",s,"_ep")}})},A=e=>{let t=0;return e.getAllNodes().forEach(o=>{var r,s;o.data.borderTop&&(o.data.minRank=null==(r=e.getNode(o.data.borderTop))?void 0:r.data.rank,o.data.maxRank=null==(s=e.getNode(o.data.borderBottom))?void 0:s.data.rank,t=Math.max(t,o.data.maxRank||-1/0))}),t},S=e=>{e.getAllNodes().forEach(t=>{"edge-proxy"===t.data.dummy&&(e.getEdge(t.data.e.id).data.labelRank=t.data.rank,e.removeNode(t.id))})},O=(e,t)=>{let o,r,s=0,n=0,{marginx:i=0,marginy:a=0}=t||{},d=e=>{if(!e.data)return;let t=e.data.x,i=e.data.y,a=e.data.width,d=e.data.height;isNaN(t)||isNaN(a)||(void 0===o&&(o=t-a/2),o=Math.min(o,t-a/2),s=Math.max(s,t+a/2)),isNaN(i)||isNaN(d)||(void 0===r&&(r=i-d/2),r=Math.min(r,i-d/2),n=Math.max(n,i+d/2))};return e.getAllNodes().forEach(e=>{d(e)}),e.getAllEdges().forEach(e=>{(null==e?void 0:e.data.hasOwnProperty("x"))&&d(e)}),o-=i,r-=a,e.getAllNodes().forEach(e=>{e.data.x-=o,e.data.y-=r}),e.getAllEdges().forEach(e=>{var t;null==(t=e.data.points)||t.forEach(e=>{e.x-=o,e.y-=r}),e.data.hasOwnProperty("x")&&(e.data.x-=o),e.data.hasOwnProperty("y")&&(e.data.y-=r)}),{width:s-o+i,height:n-r+a}},z=e=>{e.getAllEdges().forEach(t=>{let o,r,s=e.getNode(t.source),n=e.getNode(t.target);t.data.points?(o=t.data.points[0],r=t.data.points[t.data.points.length-1]):(t.data.points=[],o={x:n.data.x,y:n.data.y},r={x:s.data.x,y:s.data.y}),t.data.points.unshift((0,m.qb)(s.data,o)),t.data.points.push((0,m.qb)(n.data,r))})},I=e=>{e.getAllEdges().forEach(e=>{if(e.data.hasOwnProperty("x"))switch(("l"===e.data.labelpos||"r"===e.data.labelpos)&&(e.data.width-=e.data.labeloffset),e.data.labelpos){case"l":e.data.x-=e.data.width/2+e.data.labeloffset;break;case"r":e.data.x+=e.data.width/2+e.data.labeloffset}})},R=e=>{e.getAllEdges().forEach(e=>{var t;e.data.reversed&&(null==(t=e.data.points)||t.reverse())})},C=e=>{e.getAllNodes().forEach(t=>{var o,r,s;if(null==(o=e.getChildren(t.id))?void 0:o.length){let o=e.getNode(t.id),n=e.getNode(o.data.borderTop),i=e.getNode(o.data.borderBottom),a=e.getNode(o.data.borderLeft[(null==(r=o.data.borderLeft)?void 0:r.length)-1]),d=e.getNode(o.data.borderRight[(null==(s=o.data.borderRight)?void 0:s.length)-1]);o.data.width=Math.abs((null==d?void 0:d.data.x)-(null==a?void 0:a.data.x))||10,o.data.height=Math.abs((null==i?void 0:i.data.y)-(null==n?void 0:n.data.y))||10,o.data.x=((null==a?void 0:a.data.x)||0)+o.data.width/2,o.data.y=((null==n?void 0:n.data.y)||0)+o.data.height/2}}),e.getAllNodes().forEach(t=>{"border"===t.data.dummy&&e.removeNode(t.id)})},P=e=>{e.getAllEdges().forEach(t=>{if(t.source===t.target){let o=e.getNode(t.source);o.data.selfEdges||(o.data.selfEdges=[]),o.data.selfEdges.push(t),e.removeEdge(t.id)}})},T=e=>{let t=(0,m.Kw)(e);null==t||t.forEach(t=>{let o=0;null==t||t.forEach((t,r)=>{var s;let n=e.getNode(t);n.data.order=r+o,null==(s=n.data.selfEdges)||s.forEach(t=>{(0,m.og)(e,"selfedge",{width:t.data.width,height:t.data.height,rank:n.data.rank,order:r+ ++o,e:t},"_se")}),delete n.data.selfEdges})})},D=e=>{e.getAllNodes().forEach(t=>{let o=e.getNode(t.id);if("selfedge"===o.data.dummy){let r=e.getNode(o.data.e.source),s=r.data.x+r.data.width/2,n=r.data.y,i=o.data.x-s,a=r.data.height/2;e.hasEdge(o.data.e.id)?e.updateEdgeData(o.data.e.id,o.data.e.data):e.addEdge({id:o.data.e.id,source:o.data.e.source,target:o.data.e.target,data:o.data.e.data}),e.removeNode(t.id),o.data.e.data.points=[{x:s+2*i/3,y:n-a},{x:s+5*i/6,y:n-a},{y:n,x:s+i},{x:s+5*i/6,y:n+a},{x:s+2*i/3,y:n+a}],o.data.e.data.x=o.data.x,o.data.e.data.y=o.data.y}})},Z=(e,t)=>{let o={};return null==t||t.forEach(t=>{void 0!==e[t]&&(o[t]=+e[t])}),o},q=(e={})=>{let t={};return Object.keys(e).forEach(o=>{t[o.toLowerCase()]=e[o]}),t}},"../../../node_modules/@antv/layout/lib/antv-dagre/nesting-graph.js":function(e,t,o){"use strict";o.d(t,{E:()=>d,K:()=>s});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let s=e=>{let t=(0,r.og)(e,"root",{},"_root"),o=i(e),s=Math.max(...Object.values(o));Math.abs(s)===1/0&&(s=1);let d=s-1,l=2*d+1;e.getAllEdges().forEach(e=>{e.data.minlen*=l});let u=a(e)+1;return e.getRoots().forEach(r=>{n(e,t,l,u,d,o,r.id)}),{nestingRoot:t,nodeRankFactor:l}},n=(e,t,o,s,i,a,d)=>{let l=e.getChildren(d);if(!(null==l?void 0:l.length)){d!==t&&e.addEdge({id:`e${Math.random()}`,source:t,target:d,data:{weight:0,minlen:o}});return}let u=(0,r.dW)(e,"_bt"),h=(0,r.dW)(e,"_bb"),c=e.getNode(d);e.setParent(u,d),c.data.borderTop=u,e.setParent(h,d),c.data.borderBottom=h,null==l||l.forEach(r=>{n(e,t,o,s,i,a,r.id);let l=r.data.borderTop?r.data.borderTop:r.id,c=r.data.borderBottom?r.data.borderBottom:r.id,f=r.data.borderTop?s:2*s,g=l!==c?1:i-a[d]+1;e.addEdge({id:`e${Math.random()}`,source:u,target:l,data:{minlen:g,weight:f,nestingEdge:!0}}),e.addEdge({id:`e${Math.random()}`,source:c,target:h,data:{minlen:g,weight:f,nestingEdge:!0}})}),e.getParent(d)||e.addEdge({id:`e${Math.random()}`,source:t,target:u,data:{weight:0,minlen:i+a[d]}})},i=e=>{let t={},o=(r,s)=>{let n=e.getChildren(r);null==n||n.forEach(e=>o(e.id,s+1)),t[r]=s};return e.getRoots().forEach(e=>o(e.id,1)),t},a=e=>{let t=0;return e.getAllEdges().forEach(e=>{t+=e.data.weight}),t},d=(e,t)=>{t&&e.removeNode(t),e.getAllEdges().forEach(t=>{t.data.nestingEdge&&e.removeEdge(t.id)})}},"../../../node_modules/@antv/layout/lib/antv-dagre/normalize.js":function(e,t,o){"use strict";o.d(t,{K:()=>n,Y:()=>a});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let s="edge-label",n=(e,t)=>{e.getAllEdges().forEach(o=>i(e,o,t))},i=(e,t,o)=>{let n,i,a,d=t.source,l=e.getNode(d).data.rank,u=t.target,h=e.getNode(u).data.rank,c=t.data.labelRank;if(h!==l+1){for(e.removeEdge(t.id),a=0,++l;l<h;++a,++l)t.data.points=[],i={originalEdge:t,width:0,height:0,rank:l},n=(0,r.og)(e,"edge",i,"_d"),l===c&&(i.width=t.data.width,i.height=t.data.height,i.dummy=s,i.labelpos=t.data.labelpos),e.addEdge({id:`e${Math.random()}`,source:d,target:n,data:{weight:t.data.weight}}),0===a&&o.push(n),d=n;e.addEdge({id:`e${Math.random()}`,source:d,target:u,data:{weight:t.data.weight}})}},a=(e,t)=>{t.forEach(t=>{let o,r=e.getNode(t),{data:n}=r,i=n.originalEdge;i&&e.addEdge(i);let a=t;for(;r.data.dummy;)o=e.getSuccessors(a)[0],e.removeNode(a),i.data.points.push({x:r.data.x,y:r.data.y}),r.data.dummy===s&&(i.data.x=r.data.x,i.data.y=r.data.y,i.data.width=r.data.width,i.data.height=r.data.height),a=o.id,r=e.getNode(a)})}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/add-subgraph-constraints.js":function(e,t,o){"use strict";o.d(t,{x:()=>r});let r=(e,t,o)=>{let r,s={};null==o||o.forEach(o=>{let n,i,a=e.getParent(o);for(;a;){if((n=e.getParent(a.id))?(i=s[n.id],s[n.id]=a.id):(i=r,r=a.id),i&&i!==a.id){t.hasNode(i)||t.addNode({id:i,data:{}}),t.hasNode(a.id)||t.addNode({id:a.id,data:{}}),t.hasEdge(`e${i}-${a.id}`)||t.addEdge({id:`e${i}-${a.id}`,source:i,target:a.id,data:{}});return}a=n}})}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/barycenter.js":function(e,t,o){"use strict";o.d(t,{B:()=>r});let r=(e,t)=>t.map(t=>{let o=e.getRelatedEdges(t,"in");if(!(null==o?void 0:o.length))return{v:t};let r={sum:0,weight:0};return null==o||o.forEach(t=>{let o=e.getNode(t.source);r.sum+=t.data.weight*o.data.order,r.weight+=t.data.weight}),{v:t,barycenter:r.sum/r.weight,weight:r.weight}})},"../../../node_modules/@antv/layout/lib/antv-dagre/order/build-layer-graph.js":function(e,t,o){"use strict";o.d(t,{M:()=>s});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js");let s=(e,t,o)=>{let s=n(e),i=new r.k({tree:[{id:s,children:[],data:{}}]});return e.getAllNodes().forEach(r=>{let n=e.getParent(r.id);(r.data.rank===t||r.data.minRank<=t&&t<=r.data.maxRank)&&(i.hasNode(r.id)||i.addNode(Object.assign({},r)),(null==n?void 0:n.id)&&!i.hasNode(null==n?void 0:n.id)&&i.addNode(Object.assign({},n)),i.setParent(r.id,(null==n?void 0:n.id)||s),e.getRelatedEdges(r.id,o).forEach(t=>{let o=t.source===r.id?t.target:t.source;i.hasNode(o)||i.addNode(Object.assign({},e.getNode(o)));let s=i.getRelatedEdges(o,"out").find(({target:e})=>e===r.id),n=void 0!==s?s.data.weight:0;s?i.updateEdgeData(s.id,Object.assign(Object.assign({},s.data),{weight:t.data.weight+n})):i.addEdge({id:t.id,source:o,target:r.id,data:{weight:t.data.weight+n}})}),r.data.hasOwnProperty("minRank")&&i.updateNodeData(r.id,Object.assign(Object.assign({},r.data),{borderLeft:r.data.borderLeft[t],borderRight:r.data.borderRight[t]})))}),i},n=e=>{let t;for(;e.hasNode(t=`_root${Math.random()}`););return t}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/cross-count.js":function(e,t,o){"use strict";o.d(t,{U:()=>n});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let s=(e,t,o)=>{let s=(0,r.f9)(o,o.map((e,t)=>t)),n=t.map(t=>{let o=e.getRelatedEdges(t,"out").map(e=>({pos:s[e.target]||0,weight:e.data.weight}));return null==o?void 0:o.sort((e,t)=>e.pos-t.pos)}).flat().filter(e=>void 0!==e),i=1;for(;i<o.length;)i<<=1;let a=2*i-1;i-=1;let d=Array(a).fill(0,0,a),l=0;return null==n||n.forEach(e=>{if(e){let t=e.pos+i;d[t]+=e.weight;let o=0;for(;t>0;)t%2&&(o+=d[t+1]),t=t-1>>1,d[t]+=e.weight;l+=e.weight*o}}),l},n=(e,t)=>{let o=0;for(let r=1;r<(null==t?void 0:t.length);r+=1)o+=s(e,t[r-1],t[r]);return o}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/index.js":function(e,t,o){"use strict";o.d(t,{v:()=>h});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/util/esm/lodash/clone.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js"),i=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/add-subgraph-constraints.js"),a=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/build-layer-graph.js"),d=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/cross-count.js"),l=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/init-order.js"),u=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/sort-subgraph.js");let h=(e,t)=>{let o,r=(0,n.t7)(e),i=[],a=[];for(let e=1;e<r+1;e++)i.push(e);for(let e=r-1;e>-1;e--)a.push(e);let u=c(e,i,"in"),h=c(e,a,"out"),m=(0,l.S)(e);g(e,m);let p=Number.POSITIVE_INFINITY;for(let r=0,i=0;i<4;++r,++i){f(r%2?u:h,r%4>=2,!1,t),m=(0,n.Kw)(e);let a=(0,d.U)(e,m);a<p&&(i=0,o=(0,s.Z)(m),p=a)}m=(0,l.S)(e),g(e,m);for(let r=0,i=0;i<4;++r,++i){f(r%2?u:h,r%4>=2,!0,t),m=(0,n.Kw)(e);let a=(0,d.U)(e,m);a<p&&(i=0,o=(0,s.Z)(m),p=a)}g(e,o)},c=(e,t,o)=>t.map(t=>(0,a.M)(e,t,o)),f=(e,t,o,s)=>{let n=new r.k;null==e||e.forEach(e=>{var r;let a=e.getRoots()[0].id,d=(0,u.S)(e,a,n,t,o,s);for(let t=0;t<(null==(r=d.vs)?void 0:r.length)||0;t++){let o=e.getNode(d.vs[t]);o&&(o.data.order=t)}(0,i.x)(e,n,d.vs)})},g=(e,t)=>{null==t||t.forEach(t=>{null==t||t.forEach((t,o)=>{e.getNode(t).data.order=o})})}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/init-data-order.js":function(e,t,o){"use strict";o.d(t,{x:()=>r});let r=(e,t)=>{let o=Math.max(...e.getAllNodes().filter(t=>{var o;return!(null==(o=e.getChildren(t.id))?void 0:o.length)}).map(e=>e.data.rank)),r=[];for(let e=0;e<o+1;e++)r[e]=[];null==t||t.forEach(t=>{let o=e.getNode(t);o&&!o.data.dummy&&(isNaN(o.data.rank)||(o.data.fixorder=r[o.data.rank].length,r[o.data.rank].push(t)))})}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/init-order.js":function(e,t,o){"use strict";o.d(t,{S:()=>r});let r=e=>{let t={},o=e.getAllNodes(),r=Math.max(...o.map(e=>{var t;return null!=(t=e.data.rank)?t:-1/0})),s=[];for(let e=0;e<r+1;e++)s.push([]);let n=o.sort((t,o)=>e.getNode(t.id).data.rank-e.getNode(o.id).data.rank),i=n.filter(t=>void 0!==e.getNode(t.id).data.fixorder).sort((t,o)=>e.getNode(t.id).data.fixorder-e.getNode(o.id).data.fixorder);return null==i||i.forEach(o=>{isNaN(e.getNode(o.id).data.rank)||s[e.getNode(o.id).data.rank].push(o.id),t[o.id]=!0}),null==n||n.forEach(o=>e.dfsTree(o.id,e=>{if(t.hasOwnProperty(e.id))return!0;t[e.id]=!0,isNaN(e.data.rank)||s[e.data.rank].push(e.id)})),s}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/resolve-conflicts.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});let r=e=>{var t,o;let r=[],n=e=>t=>{!t.merged&&(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&s(e,t)},i=t=>o=>{o.in.push(t),0==--o.indegree&&e.push(o)};for(;null==e?void 0:e.length;){let s=e.pop();r.push(s),null==(t=s.in.reverse())||t.forEach(e=>n(s)(e)),null==(o=s.out)||o.forEach(e=>i(s)(e))}let a=r.filter(e=>!e.merged),d=["vs","i","barycenter","weight"];return a.map(e=>{let t={};return null==d||d.forEach(o=>{void 0!==e[o]&&(t[o]=e[o])}),t})},s=(e,t)=>{var o;let r=0,s=0;e.weight&&(r+=e.barycenter*e.weight,s+=e.weight),t.weight&&(r+=t.barycenter*t.weight,s+=t.weight),e.vs=null==(o=t.vs)?void 0:o.concat(e.vs),e.barycenter=r/s,e.weight=s,e.i=Math.min(t.i,e.i),t.merged=!0},n=(e,t)=>{var o,s,n;let i={};return null==e||e.forEach((e,t)=>{i[e.v]={i:t,indegree:0,in:[],out:[],vs:[e.v]};let o=i[e.v];void 0!==e.barycenter&&(o.barycenter=e.barycenter,o.weight=e.weight)}),null==(o=t.getAllEdges())||o.forEach(e=>{let t=i[e.source],o=i[e.target];void 0!==t&&void 0!==o&&(o.indegree++,t.out.push(i[e.target]))}),r(null==(n=(s=Object.values(i)).filter)?void 0:n.call(s,e=>!e.indegree))}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/sort-subgraph.js":function(e,t,o){"use strict";o.d(t,{S:()=>i});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/barycenter.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/resolve-conflicts.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/order/sort.js");let i=(e,t,o,l,u,h)=>{var c,f,g,m;let p=e.getChildren(t).map(e=>e.id),_=e.getNode(t),v=_?_.data.borderLeft:void 0,y=_?_.data.borderRight:void 0,b={};v&&(p=null==p?void 0:p.filter(e=>e!==v&&e!==y));let j=(0,r.B)(e,p||[]);null==j||j.forEach(t=>{var r;if(null==(r=e.getChildren(t.v))?void 0:r.length){let r=i(e,t.v,o,l,h);b[t.v]=r,r.hasOwnProperty("barycenter")&&d(t,r)}});let x=(0,s.Z)(j,o);a(x,b),null==(c=x.filter(e=>e.vs.length>0))||c.forEach(t=>{let o=e.getNode(t.vs[0]);o&&(t.fixorder=o.data.fixorder,t.order=o.data.order)});let w=(0,n.D)(x,l,u,h);if(v&&(w.vs=[v,w.vs,y].flat(),null==(f=e.getPredecessors(v))?void 0:f.length)){let t=e.getNode((null==(g=e.getPredecessors(v))?void 0:g[0].id)||""),o=e.getNode((null==(m=e.getPredecessors(y))?void 0:m[0].id)||"");w.hasOwnProperty("barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+t.data.order+o.data.order)/(w.weight+2),w.weight+=2}return w},a=(e,t)=>{null==e||e.forEach(e=>{var o;let r=null==(o=e.vs)?void 0:o.map(e=>t[e]?t[e].vs:e);e.vs=r.flat()})},d=(e,t)=>{void 0!==e.barycenter?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)}},"../../../node_modules/@antv/layout/lib/antv-dagre/order/sort.js":function(e,t,o){"use strict";o.d(t,{D:()=>s});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let s=(e,t,o,s)=>{let a=(0,r.uK)(e,e=>{let t=e.hasOwnProperty("fixorder")&&!isNaN(e.fixorder);return s?!t&&e.hasOwnProperty("barycenter"):t||e.hasOwnProperty("barycenter")}),d=a.lhs,l=a.rhs.sort((e,t)=>-e.i- -t.i),u=[],h=0,c=0,f=0;null==d||d.sort(i(!!t,!!o)),f=n(u,l,f),null==d||d.forEach(e=>{var t;f+=null==(t=e.vs)?void 0:t.length,u.push(e.vs),h+=e.barycenter*e.weight,c+=e.weight,f=n(u,l,f)});let g={vs:u.flat()};return c&&(g.barycenter=h/c,g.weight=c),g},n=(e,t,o)=>{let r,s=o;for(;t.length&&(r=t[t.length-1]).i<=s;)t.pop(),null==e||e.push(r.vs),s++;return s},i=(e,t)=>(o,r)=>{if(void 0!==o.fixorder&&void 0!==r.fixorder)return o.fixorder-r.fixorder;if(o.barycenter<r.barycenter)return -1;if(o.barycenter>r.barycenter)return 1;if(t&&void 0!==o.order&&void 0!==r.order){if(o.order<r.order)return -1;if(o.order>r.order)return 1}return e?r.i-o.i:o.i-r.i}},"../../../node_modules/@antv/layout/lib/antv-dagre/parent-dummy-chains.js":function(e,t,o){"use strict";o.d(t,{v:()=>n});let r=e=>{let t={},o=0,r=s=>{let n=o;e.getChildren(s).forEach(e=>r(e.id)),t[s]={low:n,lim:o++}};return e.getRoots().forEach(e=>r(e.id)),t},s=(e,t,o,r)=>{var s,n;let i,a,d=[],l=[],u=Math.min(t[o].low,t[r].low),h=Math.max(t[o].lim,t[r].lim);i=o;do d.push(i=null==(s=e.getParent(i))?void 0:s.id);while(i&&(t[i].low>u||h>t[i].lim));for(a=i,i=r;i&&i!==a;)l.push(i),i=null==(n=e.getParent(i))?void 0:n.id;return{lca:a,path:d.concat(l.reverse())}},n=(e,t)=>{let o=r(e);t.forEach(t=>{var r,n;let i=t,a=e.getNode(i),d=a.data.originalEdge;if(!d)return;let l=s(e,o,d.source,d.target),u=l.path,h=l.lca,c=0,f=u[0],g=!0;for(;i!==d.target;){if(a=e.getNode(i),g){for(;f!==h&&(null==(r=e.getNode(f))?void 0:r.data.maxRank)<a.data.rank;)f=u[++c];f===h&&(g=!1)}if(!g){for(;c<u.length-1&&(null==(n=e.getNode(u[c+1]))?void 0:n.data.minRank)<=a.data.rank;)c++;f=u[c]}e.hasNode(f)&&e.setParent(i,f),i=e.getSuccessors(i)[0].id}})}},"../../../node_modules/@antv/layout/lib/antv-dagre/position/bk.js":function(e,t,o){"use strict";o.d(t,{Ar:()=>i,Ig:()=>n,Kn:()=>g,QL:()=>f,Rg:()=>h,Rn:()=>m,du:()=>u});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js");let n=(e,t)=>{let o={};return(null==t?void 0:t.length)&&t.reduce((t,r)=>{let s=0,n=0,i=t.length,l=null==r?void 0:r[(null==r?void 0:r.length)-1];return null==r||r.forEach((t,u)=>{var h;let c=a(e,t),f=c?e.getNode(c.id).data.order:i;(c||t===l)&&(null==(h=r.slice(n,u+1))||h.forEach(t=>{var r;null==(r=e.getPredecessors(t))||r.forEach(r=>{var n;let i=e.getNode(r.id),a=i.data.order;(a<s||f<a)&&!(i.data.dummy&&(null==(n=e.getNode(t))?void 0:n.data.dummy))&&d(o,r.id,t)})}),n=u+1,s=f)}),r}),o},i=(e,t)=>{let o={};function r(t,r){let s=JSON.stringify(t.slice(1));r.get(s)||(!function(t,r,s,n,i){var a,l;let u;for(let h=r;h<s;h++)u=t[h],(null==(a=e.getNode(u))?void 0:a.data.dummy)&&(null==(l=e.getPredecessors(u))||l.forEach(t=>{let r=e.getNode(t.id);r.data.dummy&&(r.data.order<n||r.data.order>i)&&d(o,t.id,u)}))}(...t),r.set(s,!0))}return(null==t?void 0:t.length)&&t.reduce((t,o)=>{let s,n=-1,i=0,a=new Map;return null==o||o.forEach((d,l)=>{var u;if((null==(u=e.getNode(d))?void 0:u.data.dummy)==="border"){let t=e.getPredecessors(d)||[];t.length&&(s=e.getNode(t[0].id).data.order,r([o,i,l,n,s],a),i=l,n=s)}r([o,i,o.length,s,t.length],a)}),o}),o},a=(e,t)=>{var o,r;if(null==(o=e.getNode(t))?void 0:o.data.dummy)return null==(r=e.getPredecessors(t))?void 0:r.find(t=>e.getNode(t.id).data.dummy)},d=(e,t,o)=>{let r=t,s=o;if(r>s){let e=r;r=s,s=e}let n=e[r];n||(e[r]=n={}),n[s]=!0},l=(e,t,o)=>{let r=t,s=o;return r>s&&(r=s,s=t),!!e[r]},u=(e,t,o,r)=>{let s={},n={},i={};return null==t||t.forEach(e=>{null==e||e.forEach((e,t)=>{s[e]=e,n[e]=e,i[e]=t})}),null==t||t.forEach(e=>{let t=-1;null==e||e.forEach(e=>{let a=r(e).map(e=>e.id);if(a.length){let r=((a=a.sort((e,t)=>i[e]-i[t])).length-1)/2;for(let d=Math.floor(r),u=Math.ceil(r);d<=u;++d){let r=a[d];n[e]===e&&t<i[r]&&!l(o,e,r)&&(n[r]=e,n[e]=s[e]=s[r],t=i[r])}}})}),{root:s,align:n}},h=(e,t,o,r,s,n,i)=>{var a;let d={},l=c(e,t,o,s,n,i),u=i?"borderLeft":"borderRight",h=(e,t)=>{let o=l.getAllNodes(),r=o.pop(),s={};for(;r;)s[r.id]?e(r.id):(s[r.id]=!0,o.push(r),o=o.concat(t(r.id))),r=o.pop()};return h(e=>{d[e]=(l.getRelatedEdges(e,"in")||[]).reduce((e,t)=>Math.max(e,(d[t.source]||0)+t.data.weight),0)},l.getPredecessors.bind(l)),h(t=>{let o=(l.getRelatedEdges(t,"out")||[]).reduce((e,t)=>Math.min(e,(d[t.target]||0)-t.data.weight),Number.POSITIVE_INFINITY),r=e.getNode(t);o!==Number.POSITIVE_INFINITY&&r.data.borderType!==u&&(d[t]=Math.max(d[t],o))},l.getSuccessors.bind(l)),null==(a=Object.values(r))||a.forEach(e=>{d[e]=d[o[e]]}),d},c=(e,t,o,s,n,i)=>{let a=new r.k,d=p(s,n,i);return null==t||t.forEach(t=>{let r;null==t||t.forEach(t=>{let s=o[t];if(a.hasNode(s)||a.addNode({id:s,data:{}}),r){let n=o[r],i=a.getRelatedEdges(n,"out").find(e=>e.target===s);i?a.updateEdgeData(i.id,Object.assign(Object.assign({},i.data),{weight:Math.max(d(e,t,r),i.data.weight||0)})):a.addEdge({id:`e${Math.random()}`,source:n,target:s,data:{weight:Math.max(d(e,t,r),0)}})}r=t})}),a},f=(e,t)=>(0,s.F)(Object.values(t),t=>{var o;let r=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return null==(o=Object.keys(t))||o.forEach(o=>{let n=t[o],i=_(e,o)/2;r=Math.max(n+i,r),s=Math.min(n-i,s)}),r-s});function g(e,t){let o=Object.values(t),r=Math.min(...o),s=Math.max(...o);["u","d"].forEach(o=>{["l","r"].forEach(n=>{let i,a=o+n,d=e[a];if(d===t)return;let l=Object.values(d);(i="l"===n?r-Math.min(...l):s-Math.max(...l))&&(e[a]={},Object.keys(d).forEach(t=>{e[a][t]=d[t]+i}))})})}let m=(e,t)=>{let o={};return Object.keys(e.ul).forEach(r=>{if(t)o[r]=e[t.toLowerCase()][r];else{let t=Object.values(e).map(e=>e[r]);o[r]=(t[0]+t[1])/2}}),o},p=(e,t,o)=>(r,s,n)=>{let i,a=r.getNode(s),d=r.getNode(n),l=0;if(i=0+a.data.width/2,a.data.hasOwnProperty("labelpos"))switch((a.data.labelpos||"").toLowerCase()){case"l":l=-a.data.width/2;break;case"r":l=a.data.width/2}if(l&&(i+=o?l:-l),l=0,i+=(a.data.dummy?t:e)/2,i+=(d.data.dummy?t:e)/2,i+=d.data.width/2,d.data.labelpos)switch((d.data.labelpos||"").toLowerCase()){case"l":l=d.data.width/2;break;case"r":l=-d.data.width/2}return l&&(i+=o?l:-l),l=0,i},_=(e,t)=>e.getNode(t).data.width||0},"../../../node_modules/@antv/layout/lib/antv-dagre/position/index.js":function(e,t,o){"use strict";o.d(t,{F:()=>a});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/position/bk.js");let n=(e,t)=>{let{ranksep:o=0}=t||{},s=(0,r.Kw)(e),n=0;null==s||s.forEach(t=>{let r=Math.max(...t.map(t=>e.getNode(t).data.height),0);null==t||t.forEach(t=>{e.getNode(t).data.y=n+r/2}),n+=r+o})},i=(e,t)=>{let{align:o,nodesep:n=0,edgesep:i=0}=t||{},a=(0,r.Kw)(e),d=Object.assign((0,s.Ig)(e,a),(0,s.Ar)(e,a)),l={},u=[];["u","d"].forEach(t=>{u="u"===t?a:Object.values(a).reverse(),["l","r"].forEach(o=>{"r"===o&&(u=u.map(e=>Object.values(e).reverse()));let r=("u"===t?e.getPredecessors:e.getSuccessors).bind(e),a=(0,s.du)(e,u,d,r),h=(0,s.Rg)(e,u,a.root,a.align,n,i,"r"===o);"r"===o&&Object.keys(h).forEach(e=>h[e]=-h[e]),l[t+o]=h})});let h=(0,s.QL)(e,l);return h&&(0,s.Kn)(l,h),(0,s.Rn)(l,o)},a=(e,t)=>{var o;let s=(0,r.WP)(e);n(s,t);let a=i(s,t);null==(o=Object.keys(a))||o.forEach(e=>{s.getNode(e).data.x=a[e]})}},"../../../node_modules/@antv/layout/lib/antv-dagre/rank/feasible-tree.js":function(e,t,o){"use strict";o.d(t,{K:()=>d,f:()=>i});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/util.js");let i=e=>{let t,o,s=new r.k({tree:[]}),i=e.getAllNodes()[0],d=e.getAllNodes().length;for(s.addNode(i);a(s,e)<d;)t=u(s,e),o=s.hasNode(t.source)?(0,n.bs)(e,t):-(0,n.bs)(e,t),h(s,e,o);return s},a=(e,t)=>{let o=r=>{t.getRelatedEdges(r,"both").forEach(s=>{let i=s.source,a=r===i?s.target:i;e.hasNode(a)||(0,n.bs)(t,s)||(e.addNode({id:a,data:{}}),e.addEdge({id:s.id,source:r,target:a,data:{}}),o(a))})};return e.getAllNodes().forEach(e=>o(e.id)),e.getAllNodes().length},d=e=>{let t,o,s=new r.k({tree:[]}),i=e.getAllNodes()[0],a=e.getAllNodes().length;for(s.addNode(i);l(s,e)<a;)t=u(s,e),o=s.hasNode(t.source)?(0,n.bs)(e,t):-(0,n.bs)(e,t),h(s,e,o);return s},l=(e,t)=>{let o=r=>{var s;null==(s=t.getRelatedEdges(r,"both"))||s.forEach(s=>{let i=s.source,a=r===i?s.target:i;e.hasNode(a)||void 0===t.getNode(a).data.layer&&(0,n.bs)(t,s)||(e.addNode({id:a,data:{}}),e.addEdge({id:s.id,source:r,target:a,data:{}}),o(a))})};return e.getAllNodes().forEach(e=>o(e.id)),e.getAllNodes().length},u=(e,t)=>(0,s.F)(t.getAllEdges(),o=>e.hasNode(o.source)!==e.hasNode(o.target)?(0,n.bs)(t,o):1/0),h=(e,t,o)=>{e.getAllNodes().forEach(e=>{let r=t.getNode(e.id);r.data.rank||(r.data.rank=0),r.data.rank+=o})}},"../../../node_modules/@antv/layout/lib/antv-dagre/rank/index.js":function(e,t,o){"use strict";o.d(t,{d:()=>i});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/feasible-tree.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/network-simplex.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/util.js");let i=(e,t)=>{switch(t){case"network-simplex":l(e);break;case"tight-tree":default:d(e);break;case"longest-path":a(e)}},a=n.bg,d=e=>{(0,n.pM)(e),(0,r.K)(e)},l=e=>{(0,s.mc)(e)}},"../../../node_modules/@antv/layout/lib/antv-dagre/rank/network-simplex.js":function(e,t,o){"use strict";o.d(t,{mc:()=>i});var r=o("../../../node_modules/@antv/layout/lib/antv-dagre/util.js"),s=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/feasible-tree.js"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre/rank/util.js");let i=e=>{let t,o,i=(0,r.q4)(e);(0,n.bg)(i);let d=(0,s.f)(i);for(u(d),a(d,i);t=c(d);)o=f(d,i,t),g(d,i,t,o)},a=(e,t)=>{let o=(0,r._X)(e,e.getAllNodes(),"post",!1);(o=o.slice(0,(null==o?void 0:o.length)-1)).forEach(o=>{d(e,t,o)})},d=(e,t,o)=>{let r=e.getNode(o).data.parent;e.getRelatedEdges(o,"both").find(e=>e.target===r||e.source===r).data.cutvalue=l(e,t,o)},l=(e,t,o)=>{let r=e.getNode(o).data.parent,s=!0,n=t.getRelatedEdges(o,"out").find(e=>e.target===r),i=0;return n||(s=!1,n=t.getRelatedEdges(r,"out").find(e=>e.target===o)),i=n.data.weight,t.getRelatedEdges(o,"both").forEach(t=>{let n=t.source===o,a=n?t.target:t.source;if(a!==r){let r=n===s,d=t.data.weight;if(i+=r?d:-d,p(e,o,a)){let t=e.getRelatedEdges(o,"both").find(e=>e.source===a||e.target===a).data.cutvalue;i+=r?-t:t}}}),i},u=(e,t=e.getAllNodes()[0].id)=>{h(e,{},1,t)},h=(e,t,o,r,s)=>{var n;let i=o,a=e.getNode(r);return t[r]=!0,null==(n=e.getNeighbors(r))||n.forEach(o=>{t[o.id]||(i=h(e,t,i,o.id,r))}),a.data.low=o,a.data.lim=i++,s?a.data.parent=s:delete a.data.parent,i},c=e=>e.getAllEdges().find(e=>e.data.cutvalue<0),f=(e,t,o)=>{let s=o.source,i=o.target;t.getRelatedEdges(s,"out").find(e=>e.target===i)||(s=o.target,i=o.source);let a=e.getNode(s),d=e.getNode(i),l=a,u=!1;a.data.lim>d.data.lim&&(l=d,u=!0);let h=t.getAllEdges().filter(t=>u===_(e.getNode(t.source),l)&&u!==_(e.getNode(t.target),l));return(0,r.F)(h,e=>(0,n.bs)(t,e))},g=(e,t,o,r)=>{let s=e.getRelatedEdges(o.source,"both").find(e=>e.source===o.target||e.target===o.target);s&&e.removeEdge(s.id),e.addEdge({id:`e${Math.random()}`,source:r.source,target:r.target,data:{}}),u(e),a(e,t),m(e,t)},m=(e,t)=>{let o=e.getAllNodes().find(e=>!e.data.parent),s=(0,r._X)(e,o,"pre",!1);(s=s.slice(1)).forEach(o=>{let r=e.getNode(o).data.parent,s=t.getRelatedEdges(o,"out").find(e=>e.target===r),n=!1;!s&&t.hasNode(r)&&(s=t.getRelatedEdges(r,"out").find(e=>e.target===o),n=!0),t.getNode(o).data.rank=(t.hasNode(r)&&t.getNode(r).data.rank||0)+(n?null==s?void 0:s.data.minlen:-(null==s?void 0:s.data.minlen))})},p=(e,t,o)=>e.getRelatedEdges(t,"both").find(e=>e.source===o||e.target===o),_=(e,t)=>t.data.low<=e.data.lim&&e.data.lim<=t.data.lim},"../../../node_modules/@antv/layout/lib/antv-dagre/rank/util.js":function(e,t,o){"use strict";o.d(t,{bg:()=>r,bs:()=>n,pM:()=>s});let r=e=>{let t={},o=r=>{var s;let n,i=e.getNode(r);return i?t[r]?i.data.rank:(t[r]=!0,null==(s=e.getRelatedEdges(r,"out"))||s.forEach(e=>{let t=o(e.target)-e.data.minlen;t&&(void 0===n||t<n)&&(n=t)}),n||(n=0),i.data.rank=n,n):0};e.getAllNodes().filter(t=>0===e.getRelatedEdges(t.id,"in").length).forEach(e=>o(e.id))},s=e=>{let t,o={},r=s=>{var n;let i,a=e.getNode(s);return a?o[s]?a.data.rank:(o[s]=!0,null==(n=e.getRelatedEdges(s,"out"))||n.forEach(e=>{let t=r(e.target)-e.data.minlen;t&&(void 0===i||t<i)&&(i=t)}),i||(i=0),(void 0===t||i<t)&&(t=i),a.data.rank=i,i):0};e.getAllNodes().filter(t=>0===e.getRelatedEdges(t.id,"in").length).forEach(e=>{e&&r(e.id)}),void 0===t&&(t=0);let s={},n=(t,o)=>{var r;let i=e.getNode(t),a=isNaN(i.data.layer)?o:i.data.layer;(void 0===i.data.rank||i.data.rank<a)&&(i.data.rank=a),s[t]||(s[t]=!0,null==(r=e.getRelatedEdges(t,"out"))||r.forEach(e=>{n(e.target,a+e.data.minlen)}))};e.getAllNodes().forEach(e=>{let o=e.data;o&&(isNaN(o.layer)?o.rank-=t:n(e.id,o.layer))})},n=(e,t)=>e.getNode(t.target).data.rank-e.getNode(t.source).data.rank-t.data.minlen},"../../../node_modules/@antv/layout/lib/antv-dagre/util.js":function(e,t,o){"use strict";o.d(t,{DH:()=>f,F:()=>_,Kw:()=>h,LS:()=>c,WP:()=>d,_X:()=>y,dW:()=>g,f9:()=>l,og:()=>i,q4:()=>a,qb:()=>u,t7:()=>m,uK:()=>p});var r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-number.js");let n=(e,t)=>Number(e)-Number(t),i=(e,t,o,r)=>{let s;do s=`${r}${Math.random()}`;while(e.hasNode(s));return o.dummy=t,e.addNode({id:s,data:o}),s},a=e=>{let t=new r.k;return e.getAllNodes().forEach(e=>{t.addNode(Object.assign({},e))}),e.getAllEdges().forEach(e=>{let o=t.getRelatedEdges(e.source,"out").find(t=>t.target===e.target);o?t.updateEdgeData(null==o?void 0:o.id,Object.assign(Object.assign({},o.data),{weight:o.data.weight+e.data.weight||0,minlen:Math.max(o.data.minlen,e.data.minlen||1)})):t.addEdge({id:e.id,source:e.source,target:e.target,data:{weight:e.data.weight||0,minlen:e.data.minlen||1}})}),t},d=e=>{let t=new r.k;return e.getAllNodes().forEach(o=>{e.getChildren(o.id).length||t.addNode(Object.assign({},o))}),e.getAllEdges().forEach(e=>{t.addEdge(e)}),t},l=(e,t)=>null==e?void 0:e.reduce((e,o,r)=>(e[o]=t[r],e),{}),u=(e,t)=>{let o,r,s=Number(e.x),n=Number(e.y),i=Number(t.x)-s,a=Number(t.y)-n,d=Number(e.width)/2,l=Number(e.height)/2;return i||a?(Math.abs(a)*d>Math.abs(i)*l?(a<0&&(l=-l),o=l*i/a,r=l):(i<0&&(d=-d),o=d,r=d*a/i),{x:s+o,y:n+r}):{x:0,y:0}},h=e=>{let t=[],o=m(e)+1;for(let e=0;e<o;e++)t.push([]);e.getAllNodes().forEach(e=>{let o=e.data.rank;void 0!==o&&t[o]&&t[o].push(e.id)});for(let r=0;r<o;r++)t[r]=t[r].sort((t,o)=>n(e.getNode(t).data.order,e.getNode(o).data.order));return t},c=e=>{let t=Math.min(...e.getAllNodes().filter(e=>void 0!==e.data.rank).map(e=>e.data.rank));e.getAllNodes().forEach(e=>{e.data.hasOwnProperty("rank")&&t!==1/0&&(e.data.rank-=t)})},f=(e,t=0)=>{let o=e.getAllNodes(),r=Math.min(...o.filter(e=>void 0!==e.data.rank).map(e=>e.data.rank)),s=[];o.forEach(e=>{let t=(e.data.rank||0)-r;s[t]||(s[t]=[]),s[t].push(e.id)});let n=0;for(let o=0;o<s.length;o++){let r=s[o];void 0===r?o%t!=0&&(n-=1):n&&(null==r||r.forEach(t=>{let o=e.getNode(t);o&&(o.data.rank=o.data.rank||0,o.data.rank+=n)}))}},g=(e,t,o,r)=>{let n={width:0,height:0};return(0,s.Z)(o)&&(0,s.Z)(r)&&(n.rank=o,n.order=r),i(e,"border",n,t)},m=e=>{let t;return e.getAllNodes().forEach(e=>{let o=e.data.rank;void 0!==o&&(void 0===t||o>t)&&(t=o)}),t||(t=0),t},p=(e,t)=>{let o={lhs:[],rhs:[]};return null==e||e.forEach(e=>{t(e)?o.lhs.push(e):o.rhs.push(e)}),o},_=(e,t)=>e.reduce((e,o)=>t(e)>t(o)?o:e),v=(e,t,o,r,s,n)=>{!r.includes(t.id)&&(r.push(t.id),o||n.push(t.id),s(t.id).forEach(t=>v(e,t,o,r,s,n)),o&&n.push(t.id))},y=(e,t,o,r)=>{let s=Array.isArray(t)?t:[t],n=t=>r?e.getSuccessors(t):e.getNeighbors(t),i=[],a=[];return s.forEach(t=>{if(e.hasNode(t.id))v(e,t,"post"===o,a,n,i);else throw Error(`Graph does not have node: ${t}`)}),i}},"../../../node_modules/@antv/layout/lib/circular.js":function(e,t,o){"use strict";o.d(t,{S:()=>d});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/layout/lib/util/function.js"),n=o("../../../node_modules/@antv/layout/lib/util/object.js"),i=o("../../../node_modules/@antv/layout/lib/util/common.js");let a={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};class d{constructor(e={}){this.options=e,this.id="circular",this.options=Object.assign(Object.assign({},a),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericCircularLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericCircularLayout(!0,e,t)})}genericCircularLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.options),o),{width:a,height:d,center:h,divisions:c,startAngle:f=0,endAngle:g=2*Math.PI,angleRatio:m,ordering:p,clockwise:_,nodeSpacing:v,nodeSize:y}=r,b=t.getAllNodes(),j=t.getAllEdges(),[x,w,E]=u(a,d,h),M=null==b?void 0:b.length;if(!M||1===M)return(0,i.P)(t,e,E);let{radius:N,startRadius:k,endRadius:A}=r;if(v){let e=(0,s.jE)(10,v),t=(0,s.tO)(10,y),o=-1/0;b.forEach(e=>{let r=t(e);o<r&&(o=r)});let r=0;b.forEach((t,s)=>{0===s?r+=o||10:r+=(e(t)||0)+(o||10)}),N=r/(2*Math.PI)}else N||k||A?!k&&A?k=A:k&&!A&&(A=k):N=Math.min(w,x)/2;let S=(g-f)/M*m,O=[];O="topology"===p?l(t,b):"topology-directed"===p?l(t,b,!0):"degree"===p?function(e,t){let o=[];return t.forEach((e,t)=>{o.push((0,n.u)(e))}),o.sort((t,o)=>e.getDegree(t.id,"both")-e.getDegree(o.id,"both")),o}(t,b):b.map(e=>(0,n.u)(e));let z=Math.ceil(M/c);for(let e=0;e<M;++e){let t=N;t||null===k||null===A||(t=k+e*(A-k)/(M-1)),t||(t=10+100*e/(M-1));let o=f+e%z*S+2*Math.PI/c*Math.floor(e/z);_||(o=g-e%z*S-2*Math.PI/c*Math.floor(e/z)),O[e].data.x=E[0]+Math.cos(o)*t,O[e].data.y=E[1]+Math.sin(o)*t}return e&&O.forEach(e=>{t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})}),{nodes:O,edges:j}})}}let l=(e,t,o=!1)=>{let r=[(0,n.u)(t[0])],s={},i=t.length;s[t[0].id]=!0;let a=0;return t.forEach((d,l)=>{if(0!==l)if((l===i-1||e.getDegree(d.id,"both")!==e.getDegree(t[l+1].id,"both")||e.areNeighbors(r[a].id,d.id))&&!s[d.id])r.push((0,n.u)(d)),s[d.id]=!0,a++;else{let l=o?e.getSuccessors(r[a].id):e.getNeighbors(r[a].id),u=!1;for(let t=0;t<l.length;t++){let o=l[t];if(e.getDegree(o.id)===e.getDegree(d.id)&&!s[o.id]){r.push((0,n.u)(o)),s[o.id]=!0,u=!0;break}}let h=0;for(;!u&&(s[t[h].id]||(r.push((0,n.u)(t[h])),s[t[h].id]=!0,u=!0),++h!==i););}}),r},u=(e,t,o)=>{let r=e,s=t,n=o;return r||"undefined"==typeof window||(r=window.innerWidth),s||"undefined"==typeof window||(s=window.innerHeight),n||(n=[r/2,s/2]),[r,s,n]}},"../../../node_modules/@antv/layout/lib/combo-combined.js":function(e,t,o){"use strict";o.d(t,{u:()=>_});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/graphlib/esm/graph.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/util/esm/lodash/is-function.js"),a=o("../../../node_modules/@antv/util/esm/lodash/is-object.js"),d=o("../../../node_modules/@antv/layout/lib/concentric.js"),l=o("../../../node_modules/@antv/layout/lib/force/index.js"),u=o("../../../node_modules/@antv/layout/lib/mds.js"),h=o("../../../node_modules/@antv/layout/lib/types.js"),c=o("../../../node_modules/@antv/layout/lib/util/math.js"),f=o("../../../node_modules/@antv/layout/lib/util/array.js"),g=o("../../../node_modules/@antv/layout/lib/util/common.js");let m={gForce:!0,force2:!0,d3force:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0},p={center:[0,0],comboPadding:10,treeKey:"combo"};class _{constructor(e={}){this.options=e,this.id="comboCombined",this.options=Object.assign(Object.assign({},p),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericComboCombinedLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericComboCombinedLayout(!0,e,t)})}genericComboCombinedLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r,n=this.initVals(Object.assign(Object.assign({},this.options),o)),{center:i,treeKey:a,outerLayout:h}=n,f=t.getAllNodes().filter(e=>!e.data._isCombo),p=t.getAllNodes().filter(e=>e.data._isCombo),_=t.getAllEdges(),y=null==f?void 0:f.length;if(!y||1===y)return(0,g.P)(t,e,i);let b=[],j=new Map;f.forEach(e=>{j.set(e.id,e)});let x=new Map;p.forEach(e=>{x.set(e.id,e)});let w=new Map,E=this.getInnerGraphs(t,a,j,x,_,n,w);yield Promise.all(E);let M=new Map,N=[],k=new Map,A=!0;t.getRoots(a).forEach(e=>{let o=w.get(e.id),r=x.get(e.id)||j.get(e.id),s={id:e.id,data:Object.assign(Object.assign({},e.data),{x:o.data.x||r.data.x,y:o.data.y||r.data.y,fx:o.data.fx||r.data.fx,fy:o.data.fy||r.data.fy,mass:o.data.mass||r.data.mass,size:o.data.size})};N.push(s),M.set(e.id,!0),isNaN(s.data.x)||0===s.data.x||isNaN(s.data.y)||0===s.data.y?(s.data.x=100*Math.random(),s.data.y=100*Math.random()):A=!1,(0,c._)(t,[e],t=>{t.id!==e.id&&k.set(t.id,e.id)},"TB",a)});let S=[];if(_.forEach(e=>{let t=k.get(e.source)||e.source,o=k.get(e.target)||e.target;t!==o&&M.has(t)&&M.has(o)&&S.push({id:e.id,source:t,target:o,data:{}})}),null==N?void 0:N.length){if(1===N.length)N[0].data.x=i[0],N[0].data.y=i[1];else{let e=new s.k({nodes:N,edges:S}),t=h||new l.y;if(A&&m[t.id]){let t=N.length<100?new u.A:new d.W;yield t.assign(e)}let o=Object.assign({center:i,kg:5,preventOverlap:!0,animate:!1},"force"===t.id?{gravity:1,factor:4,linkDistance:(e,t,o)=>(Math.max(...t.data.size)||32)/2+(Math.max(...o.data.size)||32)/2+200}:{});r=yield v(t,e,o)}w.forEach(e=>{var t;let o=r.nodes.find(t=>t.id===e.id);if(o){let{x:t,y:r}=o.data;e.data.visited=!0,e.data.x=t,e.data.y=r,b.push({id:e.id,data:{x:t,y:r}})}let{x:s,y:n}=e.data;null==(t=e.data.nodes)||t.forEach(e=>{b.push({id:e.id,data:{x:e.data.x+s,y:e.data.y+n}})})}),w.forEach(({data:e})=>{let{x:t,y:o,visited:r,nodes:s}=e;null==s||s.forEach(e=>{if(!r){let r=b.find(t=>t.id===e.id);r.data.x+=t||0,r.data.y+=o||0}})})}return e&&b.forEach(e=>{t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})}),{nodes:b,edges:_}})}initVals(e){let t,o,r,s=Object.assign({},e),{nodeSize:d,spacing:l,comboPadding:u}=e;if(s.spacing=o=(0,n.Z)(l)?()=>l:(0,i.Z)(l)?l:()=>0,d)if((0,i.Z)(d))t=e=>{let t=d(e),r=o(e);return(0,f.k)(e.size)?((e.size[0]>e.size[1]?e.size[0]:e.size[1])+r)/2:((t||32)+r)/2};else if((0,f.k)(d)){let e=(d[0]>d[1]?d[0]:d[1])/2;t=t=>e+o(t)/2}else{let e=d/2;t=t=>e+o(t)/2}else t=e=>{let t=o(e);return e.size?(0,f.k)(e.size)?((e.size[0]>e.size[1]?e.size[0]:e.size[1])+t)/2:(0,a.Z)(e.size)?((e.size.width>e.size.height?e.size.width:e.size.height)+t)/2:(e.size+t)/2:32+t/2};return s.nodeSize=t,s.comboPadding=(0,n.Z)(u)?()=>u:(0,f.k)(u)?()=>Math.max.apply(null,u):(0,i.Z)(u)?u:()=>0,s}getInnerGraphs(e,t,o,i,a,l,u){let{nodeSize:h,comboPadding:g,spacing:m,innerLayout:p}=l,_=p||new d.W({}),y={center:[0,0],preventOverlap:!0,nodeSpacing:m},b=[],j=e=>{let t=(null==g?void 0:g(e))||10;return(0,f.k)(t)&&(t=Math.max(...t)),{size:t?[2*t,2*t]:[30,30],padding:t}};return e.getRoots(t).forEach(d=>{u.set(d.id,{id:d.id,data:{nodes:[],size:j(d).size}});let l=Promise.resolve();(0,c._)(e,[d],d=>{var f;if(!d.data._isCombo)return;let{size:g,padding:m}=j(d);if(null==(f=e.getChildren(d.id,t))?void 0:f.length){let f=u.get(d.id);u.set(d.id,{id:d.id,data:Object.assign({nodes:[]},null==f?void 0:f.data)});let g=new Map,p=e.getChildren(d.id,t).map(e=>{if(e.data._isCombo)return u.has(e.id)||u.set(e.id,{id:e.id,data:Object.assign({},e.data)}),g.set(e.id,!0),u.get(e.id);let t=o.get(e.id)||i.get(e.id);return g.set(e.id,!0),{id:e.id,data:Object.assign(Object.assign({},t.data),e.data)}}),b={nodes:p,edges:a.filter(e=>g.has(e.source)&&g.has(e.target))},j=1/0;p.forEach(e=>{var t;let{size:o}=e.data;o||(o=(null==(t=u.get(e.id))?void 0:t.data.size)||(null==h?void 0:h(e))||[30,30]),(0,n.Z)(o)&&(o=[o,o]);let[r,s]=o;j>r&&(j=r),j>s&&(j=s),e.data.size=o}),l=l.then(()=>(0,r.mG)(this,void 0,void 0,function*(){let e=new s.k(b);yield v(_,e,y,!0);let{minX:t,minY:o,maxX:r,maxY:n}=(0,c.H0)(p),i={x:(r+t)/2,y:(n+o)/2};b.nodes.forEach(e=>{e.data.x-=i.x,e.data.y-=i.y});let a=[Math.max(r-t,j)+2*m,Math.max(n-o,j)+2*m];u.get(d.id).data.size=a,u.get(d.id).data.nodes=p}))}else u.set(d.id,{id:d.id,data:Object.assign(Object.assign({},d.data),{size:g})});return!0},"BT",t),b.push(l)}),b}}function v(e,t,o,s){var n;return(0,r.mG)(this,void 0,void 0,function*(){return(0,h.h)(e)?(e.execute(t,o),e.stop(),e.tick(null!=(n=o.iterations)?n:300)):s?yield e.assign(t,o):yield e.execute(t,o)})}},"../../../node_modules/@antv/layout/lib/concentric.js":function(e,t,o){"use strict";o.d(t,{W:()=>f});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/util/esm/lodash/is-function.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/util/esm/lodash/is-object.js"),a=o("../../../node_modules/@antv/util/esm/lodash/is-string.js"),d=o("../../../node_modules/@antv/layout/lib/util/array.js"),l=o("../../../node_modules/@antv/layout/lib/util/object.js"),u=o("../../../node_modules/@antv/layout/lib/util/common.js"),h=o("../../../node_modules/@antv/layout/lib/util/size.js");let c={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};class f{constructor(e={}){this.options=e,this.id="concentric",this.options=Object.assign(Object.assign({},c),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericConcentricLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericConcentricLayout(!0,e,t)})}genericConcentricLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r,{center:c,width:f,height:g,sortBy:m,maxLevelDiff:p,sweep:_,clockwise:v,equidistant:y,preventOverlap:b,startAngle:j=1.5*Math.PI,nodeSize:x,nodeSpacing:w}=Object.assign(Object.assign({},this.options),o),E=t.getAllNodes(),M=t.getAllEdges(),N=f||"undefined"==typeof window?f:window.innerWidth,k=g||"undefined"==typeof window?g:window.innerHeight,A=c||[N/2,k/2];if(!(null==E?void 0:E.length)||1===E.length)return(0,u.P)(t,e,A);let S=[],O=0;(0,d.k)(x)?r=Math.max(x[0],x[1]):(0,s.Z)(x)?(r=-1/0,E.forEach(e=>{let t=Math.max(...(0,h._)(x(e)));t>r&&(r=t)})):r=x,(0,d.k)(w)?O=Math.max(w[0],w[1]):(0,n.Z)(w)&&(O=w),E.forEach(e=>{let t=(0,l.u)(e);S.push(t);let o=r,{data:a}=t;(0,d.k)(a.size)?o=Math.max(a.size[0],a.size[1]):(0,n.Z)(a.size)?o=a.size:(0,i.Z)(a.size)&&(o=Math.max(a.size.width,a.size.height)),r=Math.max(r,o),(0,s.Z)(w)&&(O=Math.max(w(e),O))});let z={};S.forEach((e,t)=>{z[e.id]=t});let I=m;(0,a.Z)(I)&&void 0!==S[0].data[I]||(I="degree"),"degree"===I?S.sort((e,o)=>t.getDegree(o.id,"both")-t.getDegree(e.id,"both")):S.sort((e,t)=>t.data[I]-e.data[I]);let R=S[0],C=(p||("degree"===I?t.getDegree(R.id,"both"):R.data[I]))/4,P=[{nodes:[]}],T=P[0];S.forEach(e=>{if(T.nodes.length>0){let o="degree"===I?Math.abs(t.getDegree(T.nodes[0].id,"both")-t.getDegree(e.id,"both")):Math.abs(T.nodes[0].data[I]-e.data[I]);C&&o>=C&&(T={nodes:[]},P.push(T))}T.nodes.push(e)});let D=r+O;if(!b){let e=P.length>0&&P[0].nodes.length>1,t=(Math.min(N,k)/2-D)/(P.length+ +!!e);D=Math.min(D,t)}let Z=0;if(P.forEach(e=>{let t=void 0===_?2*Math.PI-2*Math.PI/e.nodes.length:_;if(e.dTheta=t/Math.max(1,e.nodes.length-1),e.nodes.length>1&&b){let t=Math.cos(e.dTheta)-1,o=Math.sin(e.dTheta)-0;Z=Math.max(Math.sqrt(D*D/(t*t+o*o)),Z)}e.r=Z,Z+=D}),y){let e=0,t=0;for(let o=0;o<P.length;o++){let r=(P[o].r||0)-t;e=Math.max(e,r)}t=0,P.forEach((o,r)=>{0===r&&(t=o.r||0),o.r=t,t+=e})}return P.forEach(e=>{let t=e.dTheta||0,o=e.r||0;e.nodes.forEach((e,r)=>{let s=j+(v?1:-1)*t*r;e.data.x=A[0]+o*Math.cos(s),e.data.y=A[1]+o*Math.sin(s)})}),e&&S.forEach(e=>t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})),{nodes:S,edges:M}})}}},"../../../node_modules/@antv/layout/lib/d3-force-3d/index.js":function(e,t,o){"use strict";function r(e){return function(){return e}}function s(e){return(e()-.5)*1e-6}function n(e){return e.index}function i(e,t){var o=e.get(t);if(!o)throw Error("node not found: "+t);return o}function a(e){var t,o,a,d,l,u,h,c=n,f=function(e){return 1/Math.min(l[e.source.index],l[e.target.index])},g=r(30),m=1;function p(r){for(var n=0,i=e.length;n<m;++n)for(var a,l,c,f,g,p=0,_=0,v=0,y=0;p<i;++p)l=(a=e[p]).source,_=(c=a.target).x+c.vx-l.x-l.vx||s(h),d>1&&(v=c.y+c.vy-l.y-l.vy||s(h)),d>2&&(y=c.z+c.vz-l.z-l.vz||s(h)),f=((f=Math.sqrt(_*_+v*v+y*y))-o[p])/f*r*t[p],_*=f,v*=f,y*=f,c.vx-=_*(g=u[p]),d>1&&(c.vy-=v*g),d>2&&(c.vz-=y*g),l.vx+=_*(g=1-g),d>1&&(l.vy+=v*g),d>2&&(l.vz+=y*g)}function _(){if(a){var r,s,n=a.length,d=e.length,h=new Map(a.map((e,t)=>[c(e,t,a),e]));for(r=0,l=Array(n);r<d;++r)(s=e[r]).index=r,"object"!=typeof s.source&&(s.source=i(h,s.source)),"object"!=typeof s.target&&(s.target=i(h,s.target)),l[s.source.index]=(l[s.source.index]||0)+1,l[s.target.index]=(l[s.target.index]||0)+1;for(r=0,u=Array(d);r<d;++r)s=e[r],u[r]=l[s.source.index]/(l[s.source.index]+l[s.target.index]);t=Array(d),v(),o=Array(d),y()}}function v(){if(a)for(var o=0,r=e.length;o<r;++o)t[o]=+f(e[o],o,e)}function y(){if(a)for(var t=0,r=e.length;t<r;++t)o[t]=+g(e[t],t,e)}return null==e&&(e=[]),p.initialize=function(e,...t){a=e,h=t.find(e=>"function"==typeof e)||Math.random,d=t.find(e=>[1,2,3].includes(e))||2,_()},p.links=function(t){return arguments.length?(e=t,_(),p):e},p.id=function(e){return arguments.length?(c=e,p):c},p.iterations=function(e){return arguments.length?(m=+e,p):m},p.strength=function(e){return arguments.length?(f="function"==typeof e?e:r(+e),v(),p):f},p.distance=function(e){return arguments.length?(g="function"==typeof e?e:r(+e),y(),p):g},p}function d(e,t,o){if(isNaN(t))return e;var r,s,n,i,a,d,l=e._root,u={data:o},h=e._x0,c=e._x1;if(!l)return e._root=u,e;for(;l.length;)if((i=t>=(s=(h+c)/2))?h=s:c=s,r=l,!(l=l[a=+i]))return r[a]=u,e;if(t===(n=+e._x.call(null,l.data)))return u.next=l,r?r[a]=u:e._root=u,e;do r=r?r[a]=[,,]:e._root=[,,],(i=t>=(s=(h+c)/2))?h=s:c=s;while((a=+i)==(d=+(n>=s)));return r[d]=l,r[a]=u,e}function l(e,t,o){this.node=e,this.x0=t,this.x1=o}function u(e){return e[0]}function h(e,t){var o=new c(null==t?u:t,NaN,NaN);return null==e?o:o.addAll(e)}function c(e,t,o){this._x=e,this._x0=t,this._x1=o,this._root=void 0}function f(e){for(var t={data:e.data},o=t;e=e.next;)o=o.next={data:e.data};return t}o.d(t,{g:()=>P});var g=h.prototype=c.prototype;g.copy=function(){var e,t,o=new c(this._x,this._x0,this._x1),r=this._root;if(!r)return o;if(!r.length)return o._root=f(r),o;for(e=[{source:r,target:o._root=[,,]}];r=e.pop();)for(var s=0;s<2;++s)(t=r.source[s])&&(t.length?e.push({source:t,target:r.target[s]=[,,]}):r.target[s]=f(t));return o},g.add=function(e){let t=+this._x.call(null,e);return d(this.cover(t),t,e)},g.addAll=function(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,o=new Float64Array(t),r=1/0,s=-1/0;for(let n=0,i;n<t;++n)!isNaN(i=+this._x.call(null,e[n]))&&(o[n]=i,i<r&&(r=i),i>s&&(s=i));if(r>s)return this;this.cover(r).cover(s);for(let r=0;r<t;++r)d(this,o[r],e[r]);return this},g.cover=function(e){if(isNaN(e*=1))return this;var t=this._x0,o=this._x1;if(isNaN(t))o=(t=Math.floor(e))+1;else{for(var r,s,n=o-t||1,i=this._root;t>e||e>=o;)switch(s=+(e<t),(r=[,,])[s]=i,i=r,n*=2,s){case 0:o=t+n;break;case 1:t=o-n}this._root&&this._root.length&&(this._root=i)}return this._x0=t,this._x1=o,this},g.data=function(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e},g.extent=function(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]},g.find=function(e,t){var o,r,s,n,i,a=this._x0,d=this._x1,u=[],h=this._root;for(h&&u.push(new l(h,a,d)),null==t?t=1/0:(a=e-t,d=e+t);n=u.pop();)if((h=n.node)&&!((r=n.x0)>d)&&!((s=n.x1)<a))if(h.length){var c=(r+s)/2;u.push(new l(h[1],c,s),new l(h[0],r,c)),(i=+(e>=c))&&(n=u[u.length-1],u[u.length-1]=u[u.length-1-i],u[u.length-1-i]=n)}else{var f=Math.abs(e-this._x.call(null,h.data));f<t&&(t=f,a=e-f,d=e+f,o=h.data)}return o},g.remove=function(e){if(isNaN(n=+this._x.call(null,e)))return this;var t,o,r,s,n,i,a,d,l,u=this._root,h=this._x0,c=this._x1;if(!u)return this;if(u.length)for(;;){if((a=n>=(i=(h+c)/2))?h=i:c=i,t=u,!(u=u[d=+a]))return this;if(!u.length)break;t[d+1&1]&&(o=t,l=d)}for(;u.data!==e;)if(r=u,!(u=u.next))return this;return((s=u.next)&&delete u.next,r)?s?r.next=s:delete r.next:t?(s?t[d]=s:delete t[d],(u=t[0]||t[1])&&u===(t[1]||t[0])&&!u.length&&(o?o[l]=u:this._root=u)):this._root=s,this},g.removeAll=function(e){for(var t=0,o=e.length;t<o;++t)this.remove(e[t]);return this},g.root=function(){return this._root},g.size=function(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e},g.visit=function(e){var t,o,r,s,n=[],i=this._root;for(i&&n.push(new l(i,this._x0,this._x1));t=n.pop();)if(!e(i=t.node,r=t.x0,s=t.x1)&&i.length){var a=(r+s)/2;(o=i[1])&&n.push(new l(o,a,s)),(o=i[0])&&n.push(new l(o,r,a))}return this},g.visitAfter=function(e){var t,o=[],r=[];for(this._root&&o.push(new l(this._root,this._x0,this._x1));t=o.pop();){var s=t.node;if(s.length){var n,i=t.x0,a=t.x1,d=(i+a)/2;(n=s[0])&&o.push(new l(n,i,d)),(n=s[1])&&o.push(new l(n,d,a))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.x1);return this},g.x=function(e){return arguments.length?(this._x=e,this):this._x};var m=o("../../../node_modules/d3-quadtree/src/quadtree.js"),p=o("../../../node_modules/d3-octree/src/octree.js"),_=o("../../../node_modules/d3-dispatch/src/dispatch.js"),v=o("../../../node_modules/d3-timer/src/timer.js");function y(e){return e.x}function b(e){return e.y}function j(e){return e.z}var x=Math.PI*(3-Math.sqrt(5)),w=20*Math.PI/(9+Math.sqrt(221));function E(){var e,t,o,n,i,a,d=r(-30),l=1,u=1/0,c=.81;function f(r){var s,n=e.length,a=(1===t?h(e,y):2===t?(0,m.Z)(e,y,b):3===t?(0,p.Z)(e,y,b,j):null).visitAfter(_);for(i=r,s=0;s<n;++s)o=e[s],a.visit(v)}function g(){if(e){var t,o,r=e.length;for(t=0,a=Array(r);t<r;++t)a[(o=e[t]).index]=+d(o,t,e)}}function _(e){var o,r,s,n,i,d,l=0,u=0,h=e.length;if(h){for(s=n=i=d=0;d<h;++d)(o=e[d])&&(r=Math.abs(o.value))&&(l+=o.value,u+=r,s+=r*(o.x||0),n+=r*(o.y||0),i+=r*(o.z||0));l*=Math.sqrt(4/h),e.x=s/u,t>1&&(e.y=n/u),t>2&&(e.z=i/u)}else{(o=e).x=o.data.x,t>1&&(o.y=o.data.y),t>2&&(o.z=o.data.z);do l+=a[o.data.index];while(o=o.next)}e.value=l}function v(e,r,d,h,f){if(!e.value)return!0;var g=[d,h,f][t-1],m=e.x-o.x,p=t>1?e.y-o.y:0,_=t>2?e.z-o.z:0,v=g-r,y=m*m+p*p+_*_;if(v*v/c<y)return y<u&&(0===m&&(y+=(m=s(n))*m),t>1&&0===p&&(y+=(p=s(n))*p),t>2&&0===_&&(y+=(_=s(n))*_),y<l&&(y=Math.sqrt(l*y)),o.vx+=m*e.value*i/y,t>1&&(o.vy+=p*e.value*i/y),t>2&&(o.vz+=_*e.value*i/y)),!0;if(!e.length&&!(y>=u)){(e.data!==o||e.next)&&(0===m&&(y+=(m=s(n))*m),t>1&&0===p&&(y+=(p=s(n))*p),t>2&&0===_&&(y+=(_=s(n))*_),y<l&&(y=Math.sqrt(l*y)));do e.data!==o&&(v=a[e.data.index]*i/y,o.vx+=m*v,t>1&&(o.vy+=p*v),t>2&&(o.vz+=_*v));while(e=e.next)}}return f.initialize=function(o,...r){e=o,n=r.find(e=>"function"==typeof e)||Math.random,t=r.find(e=>[1,2,3].includes(e))||2,g()},f.strength=function(e){return arguments.length?(d="function"==typeof e?e:r(+e),g(),f):d},f.distanceMin=function(e){return arguments.length?(l=e*e,f):Math.sqrt(l)},f.distanceMax=function(e){return arguments.length?(u=e*e,f):Math.sqrt(u)},f.theta=function(e){return arguments.length?(c=e*e,f):Math.sqrt(c)},f}function M(e,t,o){var r,s=1;function n(){var n,i,a=r.length,d=0,l=0,u=0;for(n=0;n<a;++n)d+=(i=r[n]).x||0,l+=i.y||0,u+=i.z||0;for(d=(d/a-e)*s,l=(l/a-t)*s,u=(u/a-o)*s,n=0;n<a;++n)i=r[n],d&&(i.x-=d),l&&(i.y-=l),u&&(i.z-=u)}return null==e&&(e=0),null==t&&(t=0),null==o&&(o=0),n.initialize=function(e){r=e},n.x=function(t){return arguments.length?(e=+t,n):e},n.y=function(e){return arguments.length?(t=+e,n):t},n.z=function(e){return arguments.length?(o=+e,n):o},n.strength=function(e){return arguments.length?(s=+e,n):s},n}function N(e){return e.x+e.vx}function k(e){return e.y+e.vy}function A(e){return e.z+e.vz}function S(e){var t,o,n,i,a=1,d=1;function l(){for(var e,r,l,c,f,g,_,v,y=t.length,b=0;b<d;++b)for(e=0,r=(1===o?h(t,N):2===o?(0,m.Z)(t,N,k):3===o?(0,p.Z)(t,N,k,A):null).visitAfter(u);e<y;++e)v=(_=n[(l=t[e]).index])*_,c=l.x+l.vx,o>1&&(f=l.y+l.vy),o>2&&(g=l.z+l.vz),r.visit(j);function j(e,t,r,n,d,u,h){var m=[t,r,n,d,u,h],p=m[0],y=m[1],b=m[2],j=m[o],x=m[o+1],w=m[o+2],E=e.data,M=e.r,N=_+M;if(E){if(E.index>l.index){var k=c-E.x-E.vx,A=o>1?f-E.y-E.vy:0,S=o>2?g-E.z-E.vz:0,O=k*k+A*A+S*S;O<N*N&&(0===k&&(O+=(k=s(i))*k),o>1&&0===A&&(O+=(A=s(i))*A),o>2&&0===S&&(O+=(S=s(i))*S),O=(N-(O=Math.sqrt(O)))/O*a,l.vx+=(k*=O)*(N=(M*=M)/(v+M)),o>1&&(l.vy+=(A*=O)*N),o>2&&(l.vz+=(S*=O)*N),E.vx-=k*(N=1-N),o>1&&(E.vy-=A*N),o>2&&(E.vz-=S*N))}return}return p>c+N||j<c-N||o>1&&(y>f+N||x<f-N)||o>2&&(b>g+N||w<g-N)}}function u(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<Math.pow(2,o);++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var o,r,s=t.length;for(o=0,n=Array(s);o<s;++o)n[(r=t[o]).index]=+e(r,o,t)}}return"function"!=typeof e&&(e=r(null==e?1:+e)),l.initialize=function(e,...r){t=e,i=r.find(e=>"function"==typeof e)||Math.random,o=r.find(e=>[1,2,3].includes(e))||2,c()},l.iterations=function(e){return arguments.length?(d=+e,l):d},l.strength=function(e){return arguments.length?(a=+e,l):a},l.radius=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),c(),l):e},l}function O(e,t,o,s){var n,i,a,d,l=r(.1);function u(e){for(var r=0,l=n.length;r<l;++r){var u=n[r],h=u.x-t||1e-6,c=(u.y||0)-o||1e-6,f=(u.z||0)-s||1e-6,g=Math.sqrt(h*h+c*c+f*f),m=(d[r]-g)*a[r]*e/g;u.vx+=h*m,i>1&&(u.vy+=c*m),i>2&&(u.vz+=f*m)}}function h(){if(n){var t,o=n.length;for(t=0,a=Array(o),d=Array(o);t<o;++t)d[t]=+e(n[t],t,n),a[t]=isNaN(d[t])?0:+l(n[t],t,n)}}return"function"!=typeof e&&(e=r(+e)),null==t&&(t=0),null==o&&(o=0),null==s&&(s=0),u.initialize=function(e,...t){n=e,i=t.find(e=>[1,2,3].includes(e))||2,h()},u.strength=function(e){return arguments.length?(l="function"==typeof e?e:r(+e),h(),u):l},u.radius=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),h(),u):e},u.x=function(e){return arguments.length?(t=+e,u):t},u.y=function(e){return arguments.length?(o=+e,u):o},u.z=function(e){return arguments.length?(s=+e,u):s},u}function z(e){var t,o,s,n=r(.1);function i(e){for(var r,n=0,i=t.length;n<i;++n)r=t[n],r.vx+=(s[n]-r.x)*o[n]*e}function a(){if(t){var r,i=t.length;for(r=0,o=Array(i),s=Array(i);r<i;++r)o[r]=isNaN(s[r]=+e(t[r],r,t))?0:+n(t[r],r,t)}}return"function"!=typeof e&&(e=r(null==e?0:+e)),i.initialize=function(e){t=e,a()},i.strength=function(e){return arguments.length?(n="function"==typeof e?e:r(+e),a(),i):n},i.x=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),a(),i):e},i}function I(e){var t,o,s,n=r(.1);function i(e){for(var r,n=0,i=t.length;n<i;++n)r=t[n],r.vy+=(s[n]-r.y)*o[n]*e}function a(){if(t){var r,i=t.length;for(r=0,o=Array(i),s=Array(i);r<i;++r)o[r]=isNaN(s[r]=+e(t[r],r,t))?0:+n(t[r],r,t)}}return"function"!=typeof e&&(e=r(null==e?0:+e)),i.initialize=function(e){t=e,a()},i.strength=function(e){return arguments.length?(n="function"==typeof e?e:r(+e),a(),i):n},i.y=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),a(),i):e},i}function R(e){var t,o,s,n=r(.1);function i(e){for(var r,n=0,i=t.length;n<i;++n)r=t[n],r.vz+=(s[n]-r.z)*o[n]*e}function a(){if(t){var r,i=t.length;for(r=0,o=Array(i),s=Array(i);r<i;++r)o[r]=isNaN(s[r]=+e(t[r],r,t))?0:+n(t[r],r,t)}}return"function"!=typeof e&&(e=r(null==e?0:+e)),i.initialize=function(e){t=e,a()},i.strength=function(e){return arguments.length?(n="function"==typeof e?e:r(+e),a(),i):n},i.z=function(t){return arguments.length?(e="function"==typeof t?t:r(+t),a(),i):e},i}var C=o("../../../node_modules/@antv/layout/lib/d3-force/index.js");class P extends C.j{constructor(){super(...arguments),this.id="d3-force-3d",this.config={inputNodeAttrs:["x","y","z","vx","vy","vz","fx","fy","fz"],outputNodeAttrs:["x","y","z","vx","vy","vz"],simulationAttrs:["alpha","alphaMin","alphaDecay","alphaTarget","velocityDecay","randomSource","numDimensions"]},this.forceMap={link:a,manyBody:E,center:M,collide:S,radial:O,x:z,y:I,z:R},this.options={numDimensions:3,link:{id:e=>e.id},manyBody:{},center:{x:0,y:0,z:0}}}initSimulation(){return function(e,t){let o;var r,s=Math.min(3,Math.max(1,Math.round(t=t||2))),n=1,i=.001,a=1-Math.pow(.001,1/300),d=0,l=.6,u=new Map,h=(0,v.HT)(g),c=(0,_.Z)("tick","end"),f=(o=1,()=>(o=(1664525*o+0x3c6ef35f)%0x100000000)/0x100000000);function g(){m(),c.call("tick",r),n<i&&(h.stop(),c.call("end",r))}function m(t){var o,i,h=e.length;void 0===t&&(t=1);for(var c=0;c<t;++c)for(n+=(d-n)*a,u.forEach(function(e){e(n)}),o=0;o<h;++o)null==(i=e[o]).fx?i.x+=i.vx*=l:(i.x=i.fx,i.vx=0),s>1&&(null==i.fy?i.y+=i.vy*=l:(i.y=i.fy,i.vy=0)),s>2&&(null==i.fz?i.z+=i.vz*=l:(i.z=i.fz,i.vz=0));return r}function p(){for(var t,o=0,r=e.length;o<r;++o){if((t=e[o]).index=o,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),null!=t.fz&&(t.z=t.fz),isNaN(t.x)||s>1&&isNaN(t.y)||s>2&&isNaN(t.z)){var n=10*(s>2?Math.cbrt(.5+o):s>1?Math.sqrt(.5+o):o),i=o*x,a=o*w;1===s?t.x=n:2===s?(t.x=n*Math.cos(i),t.y=n*Math.sin(i)):(t.x=n*Math.sin(i)*Math.cos(a),t.y=n*Math.cos(i),t.z=n*Math.sin(i)*Math.sin(a))}(isNaN(t.vx)||s>1&&isNaN(t.vy)||s>2&&isNaN(t.vz))&&(t.vx=0,s>1&&(t.vy=0),s>2&&(t.vz=0))}}function y(t){return t.initialize&&t.initialize(e,f,s),t}return null==e&&(e=[]),p(),r={tick:m,restart:function(){return h.restart(g),r},stop:function(){return h.stop(),r},numDimensions:function(e){return arguments.length?(s=Math.min(3,Math.max(1,Math.round(e))),u.forEach(y),r):s},nodes:function(t){return arguments.length?(e=t,p(),u.forEach(y),r):e},alpha:function(e){return arguments.length?(n=+e,r):n},alphaMin:function(e){return arguments.length?(i=+e,r):i},alphaDecay:function(e){return arguments.length?(a=+e,r):+a},alphaTarget:function(e){return arguments.length?(d=+e,r):d},velocityDecay:function(e){return arguments.length?(l=1-e,r):1-l},randomSource:function(e){return arguments.length?(f=e,u.forEach(y),r):f},force:function(e,t){return arguments.length>1?(null==t?u.delete(e):u.set(e,y(t)),r):u.get(e)},find:function(){var t,o,r,n,i,a,d=Array.prototype.slice.call(arguments),l=d.shift()||0,u=(s>1?d.shift():null)||0,h=(s>2?d.shift():null)||0,c=d.shift()||1/0,f=0,g=e.length;for(c*=c,f=0;f<g;++f)t=l-(i=e[f]).x,(n=t*t+(o=u-(i.y||0))*o+(r=h-(i.z||0))*r)<c&&(a=i,c=n);return a},on:function(e,t){return arguments.length>1?(c.on(e,t),r):c.on(e)}}}()}}},"../../../node_modules/@antv/layout/lib/d3-force/index.js":function(e,t,o){"use strict";o.d(t,{j:()=>g});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/util/esm/lodash/deep-mix.js"),n=o("../../../node_modules/@antv/util/esm/lodash/pick.js"),i=o("../../../node_modules/d3-force/src/link.js"),a=o("../../../node_modules/d3-force/src/manyBody.js"),d=o("../../../node_modules/d3-force/src/center.js"),l=o("../../../node_modules/d3-force/src/collide.js"),u=o("../../../node_modules/d3-force/src/radial.js"),h=o("../../../node_modules/d3-force/src/x.js"),c=o("../../../node_modules/d3-force/src/y.js"),f=o("../../../node_modules/d3-force/src/simulation.js");class g{constructor(e){this.id="d3-force",this.config={inputNodeAttrs:["x","y","vx","vy","fx","fy"],outputNodeAttrs:["x","y","vx","vy"],simulationAttrs:["alpha","alphaMin","alphaDecay","alphaTarget","velocityDecay","randomSource"]},this.forceMap={link:i.Z,manyBody:a.Z,center:d.Z,collide:l.Z,radial:u.Z,x:h.Z,y:c.Z},this.options={link:{id:e=>e.id},manyBody:{},center:{x:0,y:0}},this.context={options:{},assign:!1,nodes:[],edges:[]},(0,s.Z)(this.options,e),this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericLayout(!0,e,t)})}stop(){this.simulation.stop()}tick(e){return this.simulation.tick(e),this.getResult()}restart(){this.simulation.restart()}setFixedPosition(e,t){let o=this.context.nodes.find(t=>t.id===e);o&&t.forEach((e,t)=>{("number"==typeof e||null===e)&&(o[["fx","fy","fz"][t]]=e)})}getOptions(e){var t,o;let r=(0,s.Z)({},this.options,e);return r.collide&&(null==(t=r.collide)?void 0:t.radius)===void 0&&(r.collide=r.collide||{},r.collide.radius=null!=(o=r.nodeSize)?o:10),void 0===r.iterations&&(r.link&&void 0===r.link.iterations&&(r.iterations=r.link.iterations),r.collide&&void 0===r.collide.iterations&&(r.iterations=r.collide.iterations)),this.context.options=r,r}genericLayout(e,t,o){var s;return(0,r.mG)(this,void 0,void 0,function*(){let r=this.getOptions(o),i=t.getAllNodes().map(({id:e,data:t})=>Object.assign(Object.assign({id:e},t),(0,n.Z)(t.data,this.config.inputNodeAttrs))),a=t.getAllEdges().map(e=>Object.assign({},e));Object.assign(this.context,{assign:e,nodes:i,edges:a,graph:t});let d=new Promise(e=>{this.resolver=e}),l=this.setSimulation(r);return l.nodes(i),null==(s=l.force("link"))||s.links(a),d})}getResult(){let{assign:e,nodes:t,edges:o,graph:r}=this.context,s=t.map(e=>({id:e.id,data:Object.assign(Object.assign({},e.data),(0,n.Z)(e,this.config.outputNodeAttrs))})),i=o.map(({id:e,source:t,target:o,data:r})=>({id:e,source:"object"==typeof t?t.id:t,target:"object"==typeof o?o.id:o,data:r}));return e&&s.forEach(e=>r.mergeNodeData(e.id,e.data)),{nodes:s,edges:i}}initSimulation(){return(0,f.Z)()}setSimulation(e){let t=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=t.on("tick",()=>{var t;return null==(t=e.onTick)?void 0:t.call(e,this.getResult())}).on("end",()=>{var e;return null==(e=this.resolver)?void 0:e.call(this,this.getResult())})),m(t,this.config.simulationAttrs.map(t=>[t,e[t]])),Object.entries(this.forceMap).forEach(([o,r])=>{if(e[o]){let s=t.force(o);s||(s=r(),t.force(o,s)),m(s,Object.entries(e[o]))}else t.force(o,null)}),t}}let m=(e,t)=>t.reduce((t,[o,r])=>t[o]&&void 0!==r?t[o].call(e,r):t,e)},"../../../node_modules/@antv/layout/lib/dagre.js":function(e,t,o){"use strict";o.d(t,{V:()=>l});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-function.js"),i=o("../../../node_modules/dagre/index.js"),a=o.n(i),d=o("../../../node_modules/@antv/layout/lib/util/size.js");class l{constructor(e){this.id="dagre",this.options={},Object.assign(this.options,l.defaultOptions,e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,e,Object.assign(Object.assign({},this.options),t))})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,e,Object.assign(Object.assign({},this.options),t))})}genericDagreLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let{nodeSize:l}=o,u=new i.graphlib.Graph;u.setGraph(o),u.setDefaultEdgeLabel(()=>({})),[...t.getAllNodes(),...t.getAllEdges()].some(({id:e})=>(0,s.Z)(e))&&console.error("Dagre layout only support string id, it will convert number to string."),t.getAllNodes().forEach(e=>{let{id:t}=e,o=Object.assign({},e.data);if(void 0!==l){let[t,r]=(0,d._)((0,n.Z)(l)?l(e):l);Object.assign(o,{width:t,height:r})}u.setNode(t.toString(),o)}),t.getAllEdges().forEach(({id:e,source:t,target:o})=>{u.setEdge(t.toString(),o.toString(),{id:e})}),a().layout(u);let h={nodes:[],edges:[]};return u.nodes().forEach(o=>{let r=u.node(o);h.nodes.push({id:o,data:r}),e&&t.mergeNodeData(o,r)}),u.edges().forEach(o=>{let s=u.edge(o),{id:n}=s,i=(0,r._T)(s,["id"]),{v:a,w:d}=o;h.edges.push({id:n,source:a,target:d,data:i}),e&&t.mergeEdgeData(n,i)}),h})}}l.defaultOptions={}},"../../../node_modules/@antv/layout/lib/force-atlas2/body.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});class r{constructor(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}distanceTo(e){return Math.hypot(this.rx-e.rx,this.ry-e.ry)}setPos(e,t){this.rx=e,this.ry=t}resetForce(){this.fx=0,this.fy=0}addForce(e){let t=e.rx-this.rx,o=e.ry-this.ry,r=Math.hypot(t,o);r=r<1e-4?1e-4:r;let s=this.g*(this.degree+1)*(e.degree+1)/r;this.fx+=s*t/r,this.fy+=s*o/r}in(e){return e.contains(this.rx,this.ry)}add(e){let t=this.mass+e.mass,o=(this.rx*this.mass+e.rx*e.mass)/t,s=(this.ry*this.mass+e.ry*e.mass)/t;return new r({rx:o,ry:s,mass:t,degree:this.degree+e.degree})}}},"../../../node_modules/@antv/layout/lib/force-atlas2/index.js":function(e,t,o){"use strict";o.d(t,{E:()=>f});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/graphlib/esm/graph.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/layout/lib/util/object.js"),a=o("../../../node_modules/@antv/layout/lib/util/function.js"),d=o("../../../node_modules/@antv/layout/lib/util/common.js"),l=o("../../../node_modules/@antv/layout/lib/force-atlas2/body.js"),u=o("../../../node_modules/@antv/layout/lib/force-atlas2/quad.js"),h=o("../../../node_modules/@antv/layout/lib/force-atlas2/quad-tree.js");let c={center:[0,0],width:300,height:300,kr:5,kg:1,mode:"normal",preventOverlap:!1,dissuadeHubs:!1,maxIteration:0,ks:.1,ksmax:10,tao:.1};class f{constructor(e={}){this.options=e,this.id="forceAtlas2",this.options=Object.assign(Object.assign({},c),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericForceAtlas2Layout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericForceAtlas2Layout(!0,e,t)})}genericForceAtlas2Layout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r=t.getAllEdges(),n=t.getAllNodes(),a=this.formatOptions(o,n.length),{width:l,height:u,prune:h,maxIteration:c,nodeSize:f,center:g}=a;if(!(null==n?void 0:n.length)||1===n.length)return(0,d.P)(t,e,g);let m=n.map(e=>(0,i.u)(e,[l,u])),p=r.filter(e=>{let{source:t,target:o}=e;return t!==o}),_=new s.k({nodes:m,edges:p}),v=this.getSizes(_,f);if(this.run(_,t,c,v,e,a),h){for(let e=0;e<p.length;e+=1){let{source:t,target:o}=p[e],r=_.getDegree(t),s=_.getDegree(t);if(r<=1){let e=_.getNode(o);_.mergeNodeData(t,{x:e.data.x,y:e.data.y})}else if(s<=1){let e=_.getNode(t);_.mergeNodeData(o,{x:e.data.x,y:e.data.y})}}let o=Object.assign(Object.assign({},a),{prune:!1,barnesHut:!1});this.run(_,t,100,v,e,o)}return{nodes:m,edges:r}})}getSizes(e,t){let o=e.getAllNodes(),r={};for(let e=0;e<o.length;e+=1){let s=o[e];r[s.id]=(0,a.uE)(t,void 0)(s)}return r}formatOptions(e={},t){let o=Object.assign(Object.assign({},this.options),e),{center:r,width:s,height:n,barnesHut:i,prune:a,maxIteration:d,kr:l,kg:u}=o;return o.width=s||"undefined"==typeof window?s:window.innerWidth,o.height=n||"undefined"==typeof window?n:window.innerHeight,o.center=r||[o.width/2,o.height/2],void 0===i&&t>250&&(o.barnesHut=!0),void 0===a&&t>100&&(o.prune=!0),0!==d||a?0===d&&a&&(o.maxIteration=100,t<=200&&t>100?o.maxIteration=500:t>200&&(o.maxIteration=950)):(o.maxIteration=250,t<=200&&t>100?o.maxIteration=1e3:t>200&&(o.maxIteration=1200)),!l&&(o.kr=50,t>100&&t<=500?o.kr=20:t>500&&(o.kr=1)),!u&&(o.kg=20,t>100&&t<=500?o.kg=10:t>500&&(o.kg=1)),o}run(e,t,o,r,s,n){let{kr:i,barnesHut:a,onTick:d}=n,u=e.getAllNodes(),h=0,c=o,f={},g={},m={};for(let t=0;t<u.length;t+=1){let{data:o,id:r}=u[t];if(f[r]=[0,0],a){let s={id:t,rx:o.x,ry:o.y,mass:1,g:i,degree:e.getDegree(r)};m[r]=new l.Z(s)}}for(;c>0;)h=this.oneStep(e,{iter:c,preventOverlapIters:50,krPrime:100,sg:h,forces:f,preForces:g,bodies:m,sizes:r},n),c--,null==d||d({nodes:u,edges:t.getAllEdges()});return e}oneStep(e,t,o){let{iter:r,preventOverlapIters:s,krPrime:n,sg:i,preForces:a,bodies:d,sizes:l}=t,{forces:u}=t,{preventOverlap:h,barnesHut:c}=o,f=e.getAllNodes();for(let e=0;e<f.length;e+=1){let{id:t}=f[e];a[t]=[...u[t]],u[t]=[0,0]}return u=this.getAttrForces(e,r,s,l,u,o),u=c&&(h&&r>s||!h)?this.getOptRepGraForces(e,u,d,o):this.getRepGraForces(e,r,s,u,n,l,o),this.updatePos(e,u,a,i,o)}getAttrForces(e,t,o,r,s,n){let{preventOverlap:i,dissuadeHubs:a,mode:d,prune:l}=n,u=e.getAllEdges();for(let n=0;n<u.length;n+=1){let{source:h,target:c}=u[n],f=e.getNode(h),g=e.getNode(c),m=e.getDegree(h),p=e.getDegree(c);if(l&&(m<=1||p<=1))continue;let _=[g.data.x-f.data.x,g.data.y-f.data.y],v=Math.hypot(_[0],_[1]);v=v<1e-4?1e-4:v,_[0]=_[0]/v,_[1]=_[1]/v,i&&t<o&&(v=v-r[h]-r[c]);let y=v,b=y;"linlog"===d&&(b=y=Math.log(1+v)),a&&(y=v/m,b=v/p),i&&t<o&&v<=0?(y=0,b=0):i&&t<o&&v>0&&(y=v,b=v),s[h][0]+=y*_[0],s[c][0]-=b*_[0],s[h][1]+=y*_[1],s[c][1]-=b*_[1]}return s}getOptRepGraForces(e,t,o,r){let{kg:s,center:n,prune:i}=r,a=e.getAllNodes(),d=a.length,l=9e10,c=-9e10,f=9e10,g=-9e10;for(let t=0;t<d;t+=1){let{id:r,data:s}=a[t];!(i&&1>=e.getDegree(r))&&(o[r].setPos(s.x,s.y),s.x>=c&&(c=s.x),s.x<=l&&(l=s.x),s.y>=g&&(g=s.y),s.y<=f&&(f=s.y))}let m=Math.max(c-l,g-f),p={xmid:(c+l)/2,ymid:(g+f)/2,length:m,massCenter:n,mass:d},_=new u.Z(p),v=new h.Z(_);for(let t=0;t<d;t+=1){let{id:r}=a[t];!(i&&1>=e.getDegree(r))&&o[r].in(_)&&v.insert(o[r])}for(let r=0;r<d;r+=1){let{id:d,data:l}=a[r],u=e.getDegree(d);if(i&&u<=1)continue;o[d].resetForce(),v.updateForce(o[d]),t[d][0]-=o[d].fx,t[d][1]-=o[d].fy;let h=[l.x-n[0],l.y-n[1]],c=Math.hypot(h[0],h[1]);c=c<1e-4?1e-4:c,h[0]=h[0]/c,h[1]=h[1]/c;let f=s*(u+1);t[d][0]-=f*h[0],t[d][1]-=f*h[1]}return t}getRepGraForces(e,t,o,r,s,n,i){let{preventOverlap:a,kr:d,kg:l,center:u,prune:h}=i,c=e.getAllNodes(),f=c.length;for(let i=0;i<f;i+=1){let g=c[i],m=e.getDegree(g.id);for(let l=i+1;l<f;l+=1){let i=c[l],u=e.getDegree(i.id);if(h&&(m<=1||u<=1))continue;let f=[i.data.x-g.data.x,i.data.y-g.data.y],p=Math.hypot(f[0],f[1]);p=p<1e-4?1e-4:p,f[0]=f[0]/p,f[1]=f[1]/p,a&&t<o&&(p=p-n[g.id]-n[i.id]);let _=d*(m+1)*(u+1)/p;a&&t<o&&p<0?_=s*(m+1)*(u+1):a&&t<o&&0===p?_=0:a&&t<o&&p>0&&(_=d*(m+1)*(u+1)/p),r[g.id][0]-=_*f[0],r[i.id][0]+=_*f[0],r[g.id][1]-=_*f[1],r[i.id][1]+=_*f[1]}let p=[g.data.x-u[0],g.data.y-u[1]],_=Math.hypot(p[0],p[1]);p[0]=p[0]/_,p[1]=p[1]/_;let v=l*(m+1);r[g.id][0]-=v*p[0],r[g.id][1]-=v*p[1]}return r}updatePos(e,t,o,r,s){let{ks:i,tao:a,prune:d,ksmax:l}=s,u=e.getAllNodes(),h=u.length,c=[],f=[],g=0,m=0,p=r;for(let r=0;r<h;r+=1){let{id:s}=u[r],n=e.getDegree(s);if(d&&n<=1)continue;let i=[t[s][0]-o[s][0],t[s][1]-o[s][1]],a=Math.hypot(i[0],i[1]),l=[t[s][0]+o[s][0],t[s][1]+o[s][1]],h=Math.hypot(l[0],l[1]);c[r]=a,f[r]=h/2,g+=(n+1)*c[r],m+=(n+1)*f[r]}let _=p;p=a*m/g,0!==_&&(p=p>1.5*_?1.5*_:p);for(let o=0;o<h;o+=1){let{id:r,data:s}=u[o],a=e.getDegree(r);if(d&&a<=1||(0,n.Z)(s.fx)&&(0,n.Z)(s.fy))continue;let h=i*p/(1+p*Math.sqrt(c[o])),f=Math.hypot(t[r][0],t[r][1]),g=l/(f=f<1e-4?1e-4:f),m=(h=h>g?g:h)*t[r][0],_=h*t[r][1];e.mergeNodeData(r,{x:s.x+m,y:s.y+_})}return p}}},"../../../node_modules/@antv/layout/lib/force-atlas2/quad-tree.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});class r{constructor(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=e&&(this.quad=e)}insert(e){if(null==this.body){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new r(this.quad.NW()),this.NE=new r(this.quad.NE()),this.SW=new r(this.quad.SW()),this.SE=new r(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))}_putBody(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))}_isExternal(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE}updateForce(e){null!=this.body&&e!==this.body&&(this._isExternal()||(this.quad?this.quad.getLength():0)/this.body.distanceTo(e)<this.theta?e.addForce(this.body):(this.NW&&this.NW.updateForce(e),this.NE&&this.NE.updateForce(e),this.SW&&this.SW.updateForce(e),this.SE&&this.SE.updateForce(e)))}}},"../../../node_modules/@antv/layout/lib/force-atlas2/quad.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});class r{constructor(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}getLength(){return this.length}contains(e,t){let o=this.length/2;return e<=this.xmid+o&&e>=this.xmid-o&&t<=this.ymid+o&&t>=this.ymid-o}NW(){let e=this.xmid-this.length/4,t=this.ymid+this.length/4;return new r({xmid:e,ymid:t,length:this.length/2})}NE(){let e=this.xmid+this.length/4,t=this.ymid+this.length/4;return new r({xmid:e,ymid:t,length:this.length/2})}SW(){let e=this.xmid-this.length/4,t=this.ymid-this.length/4;return new r({xmid:e,ymid:t,length:this.length/2})}SE(){let e=this.xmid+this.length/4,t=this.ymid-this.length/4;return new r({xmid:e,ymid:t,length:this.length/2})}}},"../../../node_modules/@antv/layout/lib/force/force-n-body.js":function(e,t,o){"use strict";o.d(t,{_:()=>n});var r=o("../../../node_modules/d3-quadtree/src/quadtree.js"),s=o("../../../node_modules/d3-octree/src/octree.js");function n(e,t,o,d,l=2){let u=t/o,h=e.getAllNodes(),c=h.map((e,t)=>{let{nodeStrength:o,x:r,y:s,z:n,size:i}=e.data;return{x:r,y:s,z:n,size:i,index:t,id:e.id,vx:0,vy:0,vz:0,weight:u*o}}),f=(2===l?(0,r.Z)(c,e=>e.x,e=>e.y):(0,s.Z)(c,e=>e.x,e=>e.y,e=>e.z)).visitAfter(i),g=new Map;return c.forEach(e=>{var t,o,r;g.set(e.id,e),t=e,o=f,r=l,o.visit((e,o,s,n,i)=>a(e,o,s,n,i,t,r))}),c.map((e,t)=>{let{id:o,data:r}=h[t],{mass:s=1}=r;d[o]={x:e.vx/s,y:e.vy/s,z:e.vz/s}}),d}function i(e){let t=0,o=0,r=0,s=0,n=0,i=e.length;if(i){for(let a=0;a<i;a++){let i=e[a];i&&i.weight&&(t+=i.weight,o+=i.x*i.weight,r+=i.y*i.weight,s+=i.z*i.weight,n+=i.size*i.weight)}e.x=o/t,e.y=r/t,e.z=s/t,e.size=n/t,e.weight=t}else e.x=e.data.x,e.y=e.data.y,e.z=e.data.z,e.size=e.data.size,e.weight=e.data.weight}let a=(e,t,o,r,s,n,i)=>{var a;if((null==(a=e.data)?void 0:a.id)===n.id)return;let d=[o,r,s][i-1],l=n.x-e.x||.1,u=n.y-e.y||.1,h=n.z-e.z||.1,c=[l,u,h],f=d-t,g=0;for(let e=0;e<i;e++)g+=c[e]*c[e];let m=Math.sqrt(g)*g;if(f*f*.81<g){let t=e.weight/m;return n.vx+=l*t,n.vy+=u*t,n.vz+=h*t,!0}if(e.length)return!1;if(e.data!==n){let t=e.data.weight/m;n.vx+=l*t,n.vy+=u*t,n.vz+=h*t}}},"../../../node_modules/@antv/layout/lib/force/index.js":function(e,t,o){"use strict";o.d(t,{y:()=>l});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/graphlib/esm/graph.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/layout/lib/util/function.js"),a=o("../../../node_modules/@antv/layout/lib/force/force-n-body.js");let d={dimensions:2,maxIteration:500,gravity:10,factor:1,edgeStrength:50,nodeStrength:1e3,coulombDisScale:.005,damping:.9,maxSpeed:200,minMovement:.4,interval:.02,linkDistance:200,clusterNodeStrength:20,preventOverlap:!0,distanceThresholdMode:"mean"};class l{constructor(e={}){this.options=e,this.id="force",this.timeInterval=0,this.judgingDistance=0,this.running=!1,this.options=Object.assign(Object.assign({},d),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericForceLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericForceLayout(!0,e,t)})}stop(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),this.running=!1}tick(e=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let t=0;(this.judgingDistance>this.lastOptions.minMovement||t<1)&&t<e;t++)this.runOneStep(this.lastCalcGraph,this.lastGraph,t,this.lastVelMap,this.lastOptions),this.updatePosition(this.lastGraph,this.lastCalcGraph,this.lastVelMap,this.lastOptions);let t={nodes:this.lastLayoutNodes,edges:this.lastLayoutEdges};return this.lastAssign&&t.nodes.forEach(e=>this.lastGraph.mergeNodeData(e.id,{x:e.data.x,y:e.data.y,z:3===this.options.dimensions?e.data.z:void 0})),t}genericForceLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.options),o),i=t.getAllNodes(),a=t.getAllEdges(),d=this.formatOptions(r,t),{dimensions:l,width:u,height:h,nodeSize:c,getMass:f,nodeStrength:m,edgeStrength:p,linkDistance:_}=d,v=i.map((e,t)=>Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{x:(0,n.Z)(e.data.x)?e.data.x:Math.random()*u,y:(0,n.Z)(e.data.y)?e.data.y:Math.random()*h,z:(0,n.Z)(e.data.z)?e.data.z:Math.random()*Math.sqrt(u*h),size:c(e)||30,mass:f(e),nodeStrength:m(e)})})),y=a.map(e=>Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{edgeStrength:p(e),linkDistance:_(e,t.getNode(e.source),t.getNode(e.target))})}));if(!(null==i?void 0:i.length))return this.lastResult={nodes:[],edges:a},{nodes:[],edges:a};let b={};i.forEach((e,t)=>{b[e.id]={x:0,y:0,z:0}});let j=new s.k({nodes:v,edges:y});this.formatCentripetal(d,j);let{maxIteration:x,minMovement:w,onTick:E}=d;if(this.lastLayoutNodes=v,this.lastLayoutEdges=y,this.lastAssign=e,this.lastGraph=t,this.lastCalcGraph=j,this.lastOptions=d,this.lastVelMap=b,"undefined"==typeof window)return;let M=0;return new Promise(o=>{this.timeInterval=window.setInterval(()=>{i&&this.running||o({nodes:g(t,v),edges:a}),this.runOneStep(j,t,M,b,d),this.updatePosition(t,j,b,d),e&&v.forEach(e=>t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y,z:3===l?e.data.z:void 0})),null==E||E({nodes:g(t,v),edges:a}),(++M>=x||this.judgingDistance<w)&&(window.clearInterval(this.timeInterval),o({nodes:g(t,v),edges:a}))},0),this.running=!0})})}formatOptions(e,t){let o=Object.assign({},e),{width:r,height:s,getMass:a}=e;o.width=r||"undefined"==typeof window?r:window.innerWidth,o.height=s||"undefined"==typeof window?s:window.innerHeight,e.center||(o.center=[o.width/2,o.height/2]),a||(o.getMass=e=>{let o=1;(0,n.Z)(null==e?void 0:e.data.mass)&&(o=null==e?void 0:e.data.mass);let r=t.getDegree(e.id,"both");return!r||r<5?o:5*r*o}),o.nodeSize=(0,i.uE)(e.nodeSize,e.nodeSpacing);let d=e.linkDistance?(0,i.jE)(1,e.linkDistance):e=>1+o.nodeSize(t.getNode(e.source))+o.nodeSize(t.getNode(e.target));return o.linkDistance=d,o.nodeStrength=(0,i.jE)(1,e.nodeStrength),o.edgeStrength=(0,i.jE)(1,e.edgeStrength),o}formatCentripetal(e,t){let o,r,{dimensions:s,centripetalOptions:n,center:i,clusterNodeStrength:a,leafCluster:d,clustering:l,nodeClusterBy:h}=e,c=t.getAllNodes(),g=n||{leaf:2,single:2,others:1,center:e=>({x:i[0],y:i[1],z:3===s?i[2]:void 0})};if("function"!=typeof a&&(e.clusterNodeStrength=e=>a),d&&h&&(o=u(t,h),r=Array.from(new Set(null==c?void 0:c.map(e=>e.data[h])))||[],e.centripetalOptions=Object.assign(g,{single:100,leaf:t=>{let{siblingLeaves:s,sameTypeLeaves:n}=o[t.id]||{};return(null==n?void 0:n.length)===(null==s?void 0:s.length)||(null==r?void 0:r.length)===1?1:e.clusterNodeStrength(t)},others:1,center:e=>{let r,s=t.getDegree(e.id,"both");if(!s)return{x:100,y:100,z:0};if(1===s){let{sameTypeLeaves:t=[]}=o[e.id]||{};1===t.length?r=void 0:t.length>1&&(r=f(t))}else r=void 0;return{x:null==r?void 0:r.x,y:null==r?void 0:r.y,z:null==r?void 0:r.z}}})),l&&h){o||(o=u(t,h)),r||(r=Array.from(new Set(c.map(e=>e.data[h]))));let s={};(r=r.filter(e=>void 0!==e)).forEach(e=>{let o=c.filter(t=>t.data[h]===e).map(e=>t.getNode(e.id));s[e]=f(o)}),e.centripetalOptions=Object.assign(g,{single:t=>e.clusterNodeStrength(t),leaf:t=>e.clusterNodeStrength(t),others:t=>e.clusterNodeStrength(t),center:e=>{let t=s[e.data[h]];return{x:null==t?void 0:t.x,y:null==t?void 0:t.y,z:null==t?void 0:t.z}}})}let{leaf:m,single:p,others:_}=e.centripetalOptions||{};m&&"function"!=typeof m&&(e.centripetalOptions.leaf=()=>m),p&&"function"!=typeof p&&(e.centripetalOptions.single=()=>p),_&&"function"!=typeof _&&(e.centripetalOptions.others=()=>_)}runOneStep(e,t,o,r,s){let n={},i=e.getAllNodes(),a=e.getAllEdges();if(!(null==i?void 0:i.length))return;let{monitor:d}=s;this.calRepulsive(e,n,s),a&&this.calAttractive(e,n,s),this.calGravity(e,t,n,s),this.updateVelocity(e,n,r,s),d&&d({energy:this.calTotalEnergy(n,i),nodes:t.getAllNodes(),edges:t.getAllEdges(),iterations:o})}calTotalEnergy(e,t){if(!(null==t?void 0:t.length))return 0;let o=0;return t.forEach((t,r)=>{let s=e[t.id].x,n=e[t.id].y,i=3===this.options.dimensions?e[t.id].z:0,{mass:a=1}=t.data;o+=a*(s*s+n*n+i*i)*.5}),o}calRepulsive(e,t,o){let{dimensions:r,factor:s,coulombDisScale:n}=o;(0,a._)(e,s,n*n,t,r)}calAttractive(e,t,o){let{dimensions:r,nodeSize:s}=o;e.getAllEdges().forEach((o,n)=>{let{source:i,target:a}=o,d=e.getNode(i),l=e.getNode(a);if(!d||!l)return;let u=l.data.x-d.data.x,h=l.data.y-d.data.y,c=3===r?l.data.z-d.data.z:0;u||h||(u=.01*Math.random(),h=.01*Math.random(),3!==r||c||(c=.01*Math.random()));let f=Math.sqrt(u*u+h*h+c*c);if(f<s(d)+s(l))return;let g=u/f,m=h/f,p=c/f,{linkDistance:_=200,edgeStrength:v=200}=o.data||{},y=(_-f)*v,b=d.data.mass||1,j=l.data.mass||1,x=1/b,w=1/j,E=g*y,M=m*y,N=p*y;t[i].x-=E*x,t[i].y-=M*x,t[i].z-=N*x,t[a].x+=E*w,t[a].y+=M*w,t[a].z+=N*w})}calGravity(e,t,o,r){let{getCenter:s}=r,i=e.getAllNodes(),a=t.getAllNodes(),d=t.getAllEdges(),{width:l,height:u,center:h,gravity:c,centripetalOptions:f}=r;i&&i.forEach(r=>{let{id:i,data:g}=r,{mass:m,x:p,y:_,z:v}=g,y=t.getNode(i),b=0,j=0,x=0,w=c,E=e.getDegree(i,"in"),M=e.getDegree(i,"out"),N=e.getDegree(i,"both"),k=null==s?void 0:s(y,N);if(k){let[e,t,o]=k;b=p-e,j=_-t,w=o}else b=p-h[0],j=_-h[1],x=v-h[2];if(w&&(o[i].x-=w*b/m,o[i].y-=w*j/m,o[i].z-=w*x/m),f){let{leaf:e,single:t,others:r,center:s}=f,{x:h,y:c,z:g,centerStrength:b}=(null==s?void 0:s(y,a,d,l,u))||{x:0,y:0,z:0,centerStrength:0};if(!(0,n.Z)(h)||!(0,n.Z)(c))return;let j=(p-h)/m,x=(_-c)/m,w=(v-g)/m;if(b&&(o[i].x-=b*j,o[i].y-=b*x,o[i].z-=b*w),0===N){let e=t(y);if(!e)return;o[i].x-=e*j,o[i].y-=e*x,o[i].z-=e*w;return}if(0===E||0===M){let t=e(y,a,d);if(!t)return;o[i].x-=t*j,o[i].y-=t*x,o[i].z-=t*w;return}let k=r(y);if(!k)return;o[i].x-=k*j,o[i].y-=k*x,o[i].z-=k*w}})}updateVelocity(e,t,o,r){let{damping:s,maxSpeed:n,interval:i,dimensions:a}=r,d=e.getAllNodes();(null==d?void 0:d.length)&&d.forEach(e=>{let{id:r}=e,d=(o[r].x+t[r].x*i)*s||.01,l=(o[r].y+t[r].y*i)*s||.01,u=3===a?(o[r].z+t[r].z*i)*s||.01:0,h=Math.sqrt(d*d+l*l+u*u);if(h>n){let e=n/h;d*=e,l*=e,u*=e}o[r]={x:d,y:l,z:u}})}updatePosition(e,t,o,r){let{distanceThresholdMode:s,interval:i,dimensions:a}=r,d=t.getAllNodes();if(!(null==d?void 0:d.length)){this.judgingDistance=0;return}let l=0;"max"===s?this.judgingDistance=-1/0:"min"===s&&(this.judgingDistance=1/0),d.forEach(r=>{let{id:d}=r,u=e.getNode(d);if((0,n.Z)(u.data.fx)&&(0,n.Z)(u.data.fy))return void t.mergeNodeData(d,{x:u.data.fx,y:u.data.fy,z:3===a?u.data.fz:void 0});let h=o[d].x*i,c=o[d].y*i,f=3===a?o[d].z*i:0;t.mergeNodeData(d,{x:r.data.x+h,y:r.data.y+c,z:r.data.z+f});let g=Math.sqrt(h*h+c*c+f*f);switch(s){case"max":this.judgingDistance<g&&(this.judgingDistance=g);break;case"min":this.judgingDistance>g&&(this.judgingDistance=g);break;default:l+=g}}),s&&"mean"!==s||(this.judgingDistance=l/d.length)}}let u=(e,t)=>{let o=e.getAllNodes();if(!(null==o?void 0:o.length))return{};let r={};return o.forEach((o,s)=>{1===e.getDegree(o.id,"both")&&(r[o.id]=h(e,"leaf",o,t))}),r},h=(e,t,o,r)=>{let s=e.getDegree(o.id,"in"),n=e.getDegree(o.id,"out"),i=o,a=[];0===s?(i=e.getSuccessors(o.id)[0],a=e.getNeighbors(i.id)):0===n&&(i=e.getPredecessors(o.id)[0],a=e.getNeighbors(i.id)),a=a.filter(t=>0===e.getDegree(t.id,"in")||0===e.getDegree(t.id,"out"));let d=c(e,t,r,o,a);return{coreNode:i,siblingLeaves:a,sameTypeLeaves:d}},c=(e,t,o,r,s)=>{let n=r.data[o]||"",i=(null==s?void 0:s.filter(e=>e.data[o]===n))||[];return"leaf"===t&&(i=i.filter(t=>0===e.getDegree(t.id,"in")||0===e.getDegree(t.id,"out"))),i},f=e=>{let t={x:0,y:0};e.forEach(e=>{let{x:o,y:r}=e.data;t.x+=o||0,t.y+=r||0});let o=e.length||1;return{x:t.x/o,y:t.y/o}},g=(e,t)=>t.map(t=>{let{id:o,data:r}=t,s=e.getNode(o);return Object.assign(Object.assign({},s),{data:Object.assign(Object.assign({},s.data),{x:r.x,y:r.y,z:r.z})})})},"../../../node_modules/@antv/layout/lib/fruchterman.js":function(e,t,o){"use strict";o.d(t,{O:()=>d});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/graphlib/esm/graph.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/layout/lib/util/object.js");let a={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"cluster"};class d{constructor(e={}){this.options=e,this.id="fruchterman",this.timeInterval=0,this.running=!1,this.options=Object.assign(Object.assign({},a),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericFruchtermanLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericFruchtermanLayout(!0,e,t)})}stop(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),this.running=!1}tick(e=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let t=0;t<e;t++)this.runOneStep(this.lastGraph,this.lastClusterMap,this.lastOptions);let t={nodes:this.lastLayoutNodes,edges:this.lastLayoutEdges};return this.lastAssign&&t.nodes.forEach(e=>this.lastGraph.mergeNodeData(e.id,{x:e.data.x,y:e.data.y,z:3===this.options.dimensions?e.data.z:void 0})),t}genericFruchtermanLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){if(this.running)return;let r=this.formatOptions(o),{dimensions:n,width:a,height:d,center:l,clustering:u,nodeClusterBy:h,maxIteration:c,onTick:f}=r,g=t.getAllNodes(),m=t.getAllEdges();if(!(null==g?void 0:g.length)){let e={nodes:[],edges:m};return this.lastResult=e,e}if(1===g.length){e&&t.mergeNodeData(g[0].id,{x:l[0],y:l[1],z:3===n?l[2]:void 0});let o={nodes:[Object.assign(Object.assign({},g[0]),{data:Object.assign(Object.assign({},g[0].data),{x:l[0],y:l[1],z:3===n?l[2]:void 0})})],edges:m};return this.lastResult=o,o}let p=g.map(e=>(0,i.u)(e,[a,d])),_=new s.k({nodes:p,edges:m}),v={};if(u&&p.forEach(e=>{let t=e.data[h];v[t]||(v[t]={name:t,cx:0,cy:0,count:0})}),this.lastLayoutNodes=p,this.lastLayoutEdges=m,this.lastAssign=e,this.lastGraph=_,this.lastOptions=r,this.lastClusterMap=v,"undefined"==typeof window)return;let y=0;return new Promise(o=>{this.timeInterval=window.setInterval(()=>{if(!this.running)return void o({nodes:p,edges:m});this.runOneStep(_,v,r),e&&p.forEach(({id:e,data:o})=>t.mergeNodeData(e,{x:o.x,y:o.y,z:3===n?o.z:void 0})),null==f||f({nodes:p,edges:m}),++y>=c&&(window.clearInterval(this.timeInterval),o({nodes:p,edges:m}))},0),this.running=!0})})}formatOptions(e={}){let t=Object.assign(Object.assign({},this.options),e),{clustering:o,nodeClusterBy:r}=t,{center:s,width:n,height:i}=t;return t.width=n||"undefined"==typeof window?n:window.innerWidth,t.height=i||"undefined"==typeof window?i:window.innerHeight,t.center=s||[t.width/2,t.height/2],t.clustering=o&&!!r,t}runOneStep(e,t,o){let{dimensions:r,height:s,width:i,gravity:a,center:d,speed:l,clustering:u,nodeClusterBy:h,clusterGravity:c}=o,f=s*i,g=Math.sqrt(f)/10,m=e.getAllNodes(),p=f/(m.length+1),_=Math.sqrt(p),v={};if(this.applyCalculate(e,v,_,p),u){for(let e in t)t[e].cx=0,t[e].cy=0,t[e].count=0;for(let e in m.forEach(e=>{let{data:o}=e,r=t[o[h]];(0,n.Z)(o.x)&&(r.cx+=o.x),(0,n.Z)(o.y)&&(r.cy+=o.y),r.count++}),t)t[e].cx/=t[e].count,t[e].cy/=t[e].count;let e=c||a;m.forEach((o,r)=>{let{id:s,data:i}=o;if(!(0,n.Z)(i.x)||!(0,n.Z)(i.y))return;let a=t[i[h]],d=Math.sqrt((i.x-a.cx)*(i.x-a.cx)+(i.y-a.cy)*(i.y-a.cy)),l=_*e;v[s].x-=l*(i.x-a.cx)/d,v[s].y-=l*(i.y-a.cy)/d})}m.forEach((e,t)=>{let{id:o,data:s}=e;if(!(0,n.Z)(s.x)||!(0,n.Z)(s.y))return;let i=.01*_*a;v[o].x-=i*(s.x-d[0]),v[o].y-=i*(s.y-d[1]),3===r&&(v[o].z-=i*(s.z-d[2]))}),m.forEach((t,o)=>{let{id:s,data:i}=t;if((0,n.Z)(i.fx)&&(0,n.Z)(i.fy)){i.x=i.fx,i.y=i.fy,3===r&&(i.z=i.fz);return}if(!(0,n.Z)(i.x)||!(0,n.Z)(i.y))return;let a=Math.sqrt(v[s].x*v[s].x+v[s].y*v[s].y+(3===r?v[s].z*v[s].z:0));if(a>0){let t=Math.min(l/800*g,a);e.mergeNodeData(s,{x:i.x+v[s].x/a*t,y:i.y+v[s].y/a*t,z:3===r?i.z+v[s].z/a*t:void 0})}})}applyCalculate(e,t,o,r){this.calRepulsive(e,t,r),this.calAttractive(e,t,o)}calRepulsive(e,t,o){let r=e.getAllNodes();r.forEach(({data:e,id:s},i)=>{t[s]={x:0,y:0,z:0},r.forEach(({data:r,id:a},d)=>{if(i<=d||!(0,n.Z)(e.x)||!(0,n.Z)(r.x)||!(0,n.Z)(e.y)||!(0,n.Z)(r.y))return;let l=e.x-r.x,u=e.y-r.y,h=3===this.options.dimensions?e.z-r.z:0,c=l*l+u*u+h*h;0===c&&(c=1,l=.01,u=.01,h=.01);let f=o/c,g=l*f,m=u*f,p=h*f;t[s].x+=g,t[s].y+=m,t[a].x-=g,t[a].y-=m,3===this.options.dimensions&&(t[s].z+=p,t[a].z-=p)})})}calAttractive(e,t,o){e.getAllEdges().forEach(r=>{let{source:s,target:i}=r;if(!s||!i||s===i)return;let{data:a}=e.getNode(s),{data:d}=e.getNode(i);if(!(0,n.Z)(d.x)||!(0,n.Z)(a.x)||!(0,n.Z)(d.y)||!(0,n.Z)(a.y))return;let l=d.x-a.x,u=d.y-a.y,h=3===this.options.dimensions?d.z-a.z:0,c=Math.sqrt(l*l+u*u+h*h)/o,f=l*c,g=u*c,m=h*c;t[s].x+=f,t[s].y+=g,t[i].x-=f,t[i].y-=g,3===this.options.dimensions&&(t[s].z+=m,t[i].z-=m)})}}},"../../../node_modules/@antv/layout/lib/grid.js":function(e,t,o){"use strict";o.d(t,{M:()=>h});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/util/esm/lodash/is-string.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),i=o("../../../node_modules/@antv/layout/lib/util/object.js"),a=o("../../../node_modules/@antv/layout/lib/util/function.js"),d=o("../../../node_modules/@antv/layout/lib/util/common.js"),l=o("../../../node_modules/@antv/layout/lib/util/size.js");let u={begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,width:300,height:300};class h{constructor(e={}){this.options=e,this.id="grid",this.options=Object.assign(Object.assign({},u),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericGridLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericGridLayout(!0,e,t)})}genericGridLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.options),o),{begin:u=[0,0],condense:h,preventOverlapPadding:p,preventOverlap:v,rows:y,cols:b,nodeSpacing:j,nodeSize:x,width:w,height:E,position:M}=r,{sortBy:N}=r,k=t.getAllNodes(),A=t.getAllEdges(),S=null==k?void 0:k.length;if(!S||1===S)return(0,d.P)(t,e,u);let O=k.map(e=>(0,i.u)(e));"id"===N||(0,s.Z)(N)&&void 0!==O[0].data[N]||(N="degree"),"degree"===N?O.sort((e,o)=>t.getDegree(o.id,"both")-t.getDegree(e.id,"both")):"id"===N?O.sort((e,t)=>(0,n.Z)(t.id)&&(0,n.Z)(e.id)?t.id-e.id:`${e.id}`.localeCompare(`${t.id}`)):O.sort((e,t)=>t.data[N]-e.data[N]);let z=w||"undefined"==typeof window?w:window.innerWidth,I=E||"undefined"==typeof window?E:window.innerHeight,R={rows:y,cols:b};if(null!=y&&null!=b)R.rows=y,R.cols=b;else if(null!=y&&null==b)R.rows=y,R.cols=Math.ceil(S/R.rows);else if(null==y&&null!=b)R.cols=b,R.rows=Math.ceil(S/R.cols);else{let e=Math.sqrt(S*I/z);R.rows=Math.round(e),R.cols=Math.round(z/I*e)}if(R.rows=Math.max(R.rows,1),R.cols=Math.max(R.cols,1),R.cols*R.rows>S){let e=c(R),t=f(R);(e-1)*t>=S?c(R,e-1):(t-1)*e>=S&&f(R,t-1)}else for(;R.cols*R.rows<S;){let e=c(R),t=f(R);(t+1)*e>=S?f(R,t+1):c(R,e+1)}let C=h?0:z/R.cols,P=h?0:I/R.rows;if(v||j){let e=(0,a.jE)(10,j),o=(0,a.tO)(30,x,!1);O.forEach(r=>{r.data.x&&r.data.y||(r.data.x=0,r.data.y=0);let s=t.getNode(r.id),[n,i]=(0,l._)(o(s)||30),a=void 0!==e?e(r):p;C=Math.max(C,n+a),P=Math.max(P,i+a)})}let T={},D={row:0,col:0},Z={};for(let e=0;e<O.length;e++){let o,r=O[e];if(M&&(o=M(t.getNode(r.id))),o&&(void 0!==o.row||void 0!==o.col)){let e={row:o.row,col:o.col};if(void 0===e.col)for(e.col=0;g(T,e);)e.col++;else if(void 0===e.row)for(e.row=0;g(T,e);)e.row++;Z[r.id]=e,m(T,e)}_(r,u,C,P,Z,R,D,T)}return e&&O.forEach(e=>{t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})}),{nodes:O,edges:A}})}}let c=(e,t)=>{let o,r=e.rows||5,s=e.cols||5;return null==t?o=Math.min(r,s):Math.min(r,s)===e.rows?e.rows=t:e.cols=t,o},f=(e,t)=>{let o,r=e.rows||5,s=e.cols||5;return null==t?o=Math.max(r,s):Math.max(r,s)===e.rows?e.rows=t:e.cols=t,o},g=(e,t)=>e[`c-${t.row}-${t.col}`]||!1,m=(e,t)=>e[`c-${t.row}-${t.col}`]=!0,p=(e,t)=>{let o=e.cols||5;t.col++,t.col>=o&&(t.col=0,t.row++)},_=(e,t,o,r,s,n,i,a)=>{let d,l,u=s[e.id];if(u)d=u.col*o+o/2+t[0],l=u.row*r+r/2+t[1];else{for(;g(a,i);)p(n,i);d=i.col*o+o/2+t[0],l=i.row*r+r/2+t[1],m(a,i),p(n,i)}e.data.x=d,e.data.y=l}},"../../../node_modules/@antv/layout/lib/mds.js":function(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/ml-matrix/matrix.mjs"),n=o("../../../node_modules/@antv/layout/lib/util/math.js"),i=o("../../../node_modules/@antv/layout/lib/util/object.js"),a=o("../../../node_modules/@antv/layout/lib/util/common.js");let d={center:[0,0],linkDistance:50};class l{constructor(e={}){this.options=e,this.id="mds",this.options=Object.assign(Object.assign({},d),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericMDSLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericMDSLayout(!0,e,t)})}genericMDSLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let{center:r=[0,0],linkDistance:s=50}=Object.assign(Object.assign({},this.options),o),d=t.getAllNodes(),l=t.getAllEdges();if(!(null==d?void 0:d.length)||1===d.length)return(0,a.P)(t,e,r);let c=(0,n.zJ)({nodes:d,edges:l},!1),f=(0,n.qs)(c);u(f);let g=h((0,n.nu)(f,s)),m=[];return g.forEach((e,t)=>{let o=(0,i.u)(d[t]);o.data.x=e[0]+r[0],o.data.y=e[1]+r[1],m.push(o)}),e&&m.forEach(e=>t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})),{nodes:m,edges:l}})}}let u=e=>{let t=-999999;e.forEach(e=>{e.forEach(e=>{e!==1/0&&t<e&&(t=e)})}),e.forEach((o,r)=>{o.forEach((o,s)=>{o===1/0&&(e[r][s]=t)})})},h=e=>{let t=s.y3.mul(s.y3.pow(e,2),-.5),o=t.mean("row"),r=t.mean("column"),n=t.mean();t.add(n).subRowVector(o).subColumnVector(r);let i=new s.Sc(t),a=s.y3.sqrt(i.diagonalMatrix).diagonal();return i.leftSingularVectors.toJSON().map(e=>s.y3.mul([e],[a]).toJSON()[0].splice(0,2))}},"../../../node_modules/@antv/layout/lib/radial/index.js":function(e,t,o){"use strict";o.d(t,{D:()=>c});var r=o("../../../node_modules/tslib/tslib.es6.mjs"),s=o("../../../node_modules/@antv/util/esm/lodash/is-string.js"),n=o("../../../node_modules/@antv/layout/lib/util/math.js"),i=o("../../../node_modules/@antv/layout/lib/util/function.js"),a=o("../../../node_modules/@antv/layout/lib/util/object.js"),d=o("../../../node_modules/@antv/layout/lib/util/common.js"),l=o("../../../node_modules/@antv/layout/lib/radial/mds.js"),u=o("../../../node_modules/@antv/layout/lib/radial/radial-nonoverlap-force.js");let h={maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,strictRadial:!0,maxPreventOverlapIteration:200,sortStrength:10};class c{constructor(e={}){this.options=e,this.id="radial",this.options=Object.assign(Object.assign({},h),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericRadialLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericRadialLayout(!0,e,t)})}genericRadialLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let{width:r,height:h,center:c,focusNode:v,unitRadius:y,nodeSize:b,nodeSpacing:j,strictRadial:x,preventOverlap:w,maxPreventOverlapIteration:E,sortBy:M,linkDistance:N=50,sortStrength:k=10,maxIteration:A=1e3}=Object.assign(Object.assign({},this.options),o),S=t.getAllNodes(),O=t.getAllEdges(),z=r||"undefined"==typeof window?r:window.innerWidth,I=h||"undefined"==typeof window?h:window.innerHeight,R=c||[z/2,I/2];if(!(null==S?void 0:S.length)||1===S.length)return(0,d.P)(t,e,R);let C=S[0];if((0,s.Z)(v)){for(let e=0;e<S.length;e++)if(S[e].id===v){C=S[e];break}}else C=v||S[0];let P=m(S,C.id),T=(0,n.zJ)({nodes:S,edges:O},!1),D=(0,n.qs)(T),Z=_(D,P);p(D,P,Z+1);let q=D[P],L=z-R[0]>R[0]?R[0]:z-R[0],F=I-R[1]>R[1]?R[1]:I-R[1];0===L&&(L=z/2),0===F&&(F=I/2);let V=Math.min(L,F),G=Math.max(...q),B=[],U=y||V/G;q.forEach((e,t)=>{B[t]=e*U});let $=f(S,D,N,B,U,M,k),W=g($),K=(0,l.p)(N,$,N),H=K.map(([e,t])=>({x:(isNaN(e)?Math.random()*N:e)-K[P][0],y:(isNaN(t)?Math.random()*N:t)-K[P][1]}));if(this.run(A,H,W,$,B,P),w){let e={nodes:S,nodeSizeFunc:(0,i.uE)(b,j),positions:H,radii:B,height:I,width:z,strictRadial:!!x,focusIdx:P,iterations:E||200,k:H.length/4.5};H=(0,u.Q)(t,e)}let Y=[];return H.forEach((e,t)=>{let o=(0,a.u)(S[t]);o.data.x=e.x+R[0],o.data.y=e.y+R[1],Y.push(o)}),e&&Y.forEach(e=>t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})),{nodes:Y,edges:O}})}run(e,t,o,r,s,n){for(let i=0;i<=e;i++){let a=i/e;this.oneIteration(a,t,s,r,o,n)}}oneIteration(e,t,o,r,s,i){let a=1-e;t.forEach((d,l)=>{let u=(0,n.$y)(d,{x:0,y:0}),h=0===u?0:1/u;if(l===i)return;let c=0,f=0,g=0;t.forEach((e,t)=>{if(l===t)return;let o=(0,n.$y)(d,e),i=0===o?0:1/o,a=r[t][l];g+=s[l][t],c+=s[l][t]*(e.x+a*(d.x-e.x)*i),f+=s[l][t]*(e.y+a*(d.y-e.y)*i)});let m=0===o[l]?0:1/o[l];g*=a,g+=e*m*m,c*=a,c+=e*m*d.x*h,d.x=c/g,f*=a,f+=e*m*d.y*h,d.y=f/g})}}let f=(e,t,o,r,n,i,a)=>{if(!e)return[];let d=[];if(t){let l={};t.forEach((t,u)=>{let h=[];t.forEach((t,d)=>{var c,f;if(u===d)h.push(0);else if(r[u]===r[d])if("data"===i)h.push(Math.abs(u-d)*a*t/(r[u]/n));else if(i){let o,g;if(l[e[u].id])o=l[e[u].id];else{let t=("id"===i?e[u].id:null==(c=e[u].data)?void 0:c[i])||0;o=(0,s.Z)(t)?t.charCodeAt(0):t,l[e[u].id]=o}if(l[e[d].id])g=l[e[d].id];else{let t=("id"===i?e[d].id:null==(f=e[d].data)?void 0:f[i])||0;g=(0,s.Z)(t)?t.charCodeAt(0):t,l[e[d].id]=g}h.push(Math.abs(o-g)*a*t/(r[u]/n))}else h.push(t*o/(r[u]/n));else h.push((o+n)/2*t)}),d.push(h)})}return d},g=e=>{let t=e.length,o=e[0].length,r=[];for(let s=0;s<t;s++){let t=[];for(let r=0;r<o;r++)0!==e[s][r]?t.push(1/(e[s][r]*e[s][r])):t.push(0);r.push(t)}return r},m=(e,t)=>{let o=-1;return e.forEach((e,r)=>{e.id===t&&(o=r)}),Math.max(o,0)},p=(e,t,o)=>{let r=e.length;for(let s=0;s<r;s++)if(e[t][s]===1/0){e[t][s]=o,e[s][t]=o;for(let n=0;n<r;n++)e[s][n]!==1/0&&e[t][n]===1/0&&(e[t][n]=o+e[s][n],e[n][t]=o+e[s][n])}for(let o=0;o<r;o++)if(o!==t){for(let s=0;s<r;s++)if(e[o][s]===1/0){let r=Math.abs(e[t][o]-e[t][s]);r=0===r?1:r,e[o][s]=r}}},_=(e,t)=>{let o=0;for(let r=0;r<e[t].length;r++)e[t][r]!==1/0&&(o=e[t][r]>o?e[t][r]:o);return o}},"../../../node_modules/@antv/layout/lib/radial/mds.js":function(e,t,o){"use strict";o.d(t,{p:()=>s});var r=o("../../../node_modules/ml-matrix/matrix.mjs");let s=(e,t,o)=>{try{let o=r.y3.mul(r.y3.pow(t,2),-.5),s=o.mean("row"),n=o.mean("column"),i=o.mean();o.add(i).subRowVector(s).subColumnVector(n);let a=new r.Sc(o),d=r.y3.sqrt(a.diagonalMatrix).diagonal();return a.leftSingularVectors.toJSON().map(t=>r.y3.mul([t],[d]).toJSON()[0].splice(0,e))}catch(r){let e=[];for(let r=0;r<t.length;r++){let t=Math.random()*o,r=Math.random()*o;e.push([t,r])}return e}}},"../../../node_modules/@antv/layout/lib/radial/radial-nonoverlap-force.js":function(e,t,o){"use strict";o.d(t,{Q:()=>s});let r={iterations:10,height:10,width:10,speed:100,gravity:10,k:5},s=(e,t)=>{let{positions:o,iterations:s,width:a,k:d,speed:l=100,strictRadial:u,focusIdx:h,radii:c=[],nodeSizeFunc:f}=Object.assign(Object.assign({},r),t),g=e.getAllNodes(),m=[],p=a/10;for(let e=0;e<s;e++)o.forEach((e,t)=>{m[t]={x:0,y:0}}),n(g,o,m,d,c,f),i(o,m,l,u,h,p,a,c);return o},n=(e,t,o,r,s,n)=>{t.forEach((i,a)=>{o[a]={x:0,y:0},t.forEach((t,d)=>{if(a===d||s[a]!==s[d])return;let l=i.x-t.x,u=i.y-t.y,h=Math.sqrt(l*l+u*u);if(0===h){h=1;let e=a>d?1:-1;l=.01*e,u=.01*e}if(h<n(e[a])/2+n(e[d])/2){let e=r*r/h;o[a].x+=l/h*e,o[a].y+=u/h*e}})})},i=(e,t,o,r,s,n,i,a)=>{let d=n||i/10;return r&&t.forEach((t,o)=>{let r=e[o].x-e[s].x,n=e[o].y-e[s].y,i=Math.sqrt(r*r+n*n),a=n/i,d=-r/i,l=Math.sqrt(t.x*t.x+t.y*t.y),u=Math.acos((a*t.x+d*t.y)/l);u>Math.PI/2&&(u-=Math.PI/2,a*=-1,d*=-1);let h=Math.cos(u)*l;t.x=a*h,t.y=d*h}),e.forEach((n,i)=>{if(i===s)return;let l=Math.sqrt(t[i].x*t[i].x+t[i].y*t[i].y);if(l>0&&i!==s){let u=Math.min(o/800*d,l);if(n.x+=t[i].x/l*u,n.y+=t[i].y/l*u,r){let t=n.x-e[s].x,o=n.y-e[s].y,r=Math.sqrt(t*t+o*o);t=t/r*a[i],o=o/r*a[i],n.x=e[s].x+t,n.y=e[s].y+o}}}),e}},"../../../node_modules/@antv/layout/lib/random.js":function(e,t,o){"use strict";o.d(t,{_:()=>n});var r=o("../../../node_modules/tslib/tslib.es6.mjs");let s={center:[0,0],width:300,height:300};class n{constructor(e={}){this.options=e,this.id="random",this.options=Object.assign(Object.assign({},s),e)}execute(e,t){return(0,r.mG)(this,void 0,void 0,function*(){return this.genericRandomLayout(!1,e,t)})}assign(e,t){return(0,r.mG)(this,void 0,void 0,function*(){yield this.genericRandomLayout(!0,e,t)})}genericRandomLayout(e,t,o){return(0,r.mG)(this,void 0,void 0,function*(){let{center:r,width:s,height:n}=Object.assign(Object.assign({},this.options),o),i=t.getAllNodes(),a=s||"undefined"==typeof window?s:window.innerWidth,d=n||"undefined"==typeof window?n:window.innerHeight,l=r||[a/2,d/2],u=[];return i&&i.forEach(e=>{u.push({id:e.id,data:{x:(Math.random()-.5)*.9*a+l[0],y:(Math.random()-.5)*.9*d+l[1]}})}),e&&u.forEach(e=>t.mergeNodeData(e.id,{x:e.data.x,y:e.data.y})),{nodes:u,edges:t.getAllEdges()}})}}},"../../../node_modules/@antv/layout/lib/types.js":function(e,t,o){"use strict";function r(e){return!!e.tick&&!!e.stop}o.d(t,{h:()=>r})},"../../../node_modules/@antv/layout/lib/util/array.js":function(e,t,o){"use strict";o.d(t,{k:()=>r});let r=Array.isArray},"../../../node_modules/@antv/layout/lib/util/common.js":function(e,t,o){"use strict";o.d(t,{P:()=>r});let r=(e,t,o)=>{let r=e.getAllNodes(),s=e.getAllEdges();return(null==r?void 0:r.length)?1===r.length?(t&&e.mergeNodeData(r[0].id,{x:o[0],y:o[1]}),{nodes:[Object.assign(Object.assign({},r[0]),{data:Object.assign(Object.assign({},r[0].data),{x:o[0],y:o[1]})})],edges:s}):void 0:{nodes:[],edges:s}}},"../../../node_modules/@antv/layout/lib/util/function.js":function(e,t,o){"use strict";o.d(t,{jE:()=>a,tO:()=>d,uE:()=>l});var r=o("../../../node_modules/@antv/util/esm/lodash/is-function.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),n=o("../../../node_modules/@antv/util/esm/lodash/is-object.js"),i=o("../../../node_modules/@antv/layout/lib/util/size.js");function a(e,t){let o;return(0,r.Z)(t)?t:(0,s.Z)(t)?()=>t:()=>e}function d(e,t,o=!0){return t||0===t?(0,r.Z)(t)?t:(0,s.Z)(t)?()=>t:Array.isArray(t)?()=>o?Math.max(...t)||e:t:(0,n.Z)(t)&&t.width&&t.height?()=>o?Math.max(t.width,t.height)||e:[t.width,t.height]:()=>e:t=>{let{size:r}=t.data||{};return r?Array.isArray(r)?o?Math.max(...r)||e:r:(0,n.Z)(r)&&r.width&&r.height?o?Math.max(r.width,r.height)||e:[r.width,r.height]:r:e}}let l=(e,t,o=10)=>{let s,a="function"==typeof t?t:()=>t||0;return s=e?Array.isArray(e)?t=>e:(0,r.Z)(e)?e:t=>e:e=>{var t,r,s;if(null==(t=e.data)?void 0:t.bboxSize)return null==(r=e.data)?void 0:r.bboxSize;if(null==(s=e.data)?void 0:s.size){let t=e.data.size;return Array.isArray(t)?t:(0,n.Z)(t)?[t.width,t.height]:t}return o},e=>{let t=s(e),o=a(e);return Math.max(...(0,i._)(t))+o}}},"../../../node_modules/@antv/layout/lib/util/math.js":function(e,t,o){"use strict";o.d(t,{$y:()=>l,H0:()=>d,_:()=>u,nu:()=>a,qs:()=>n,zJ:()=>i});var r=o("../../../node_modules/@antv/util/esm/lodash/is-number.js"),s=o("../../../node_modules/@antv/layout/lib/util/array.js");let n=e=>{let t=[],o=e.length;for(let r=0;r<o;r+=1){t[r]=[];for(let s=0;s<o;s+=1)r===s?t[r][s]=0:0!==e[r][s]&&e[r][s]?t[r][s]=e[r][s]:t[r][s]=1/0}for(let e=0;e<o;e+=1)for(let r=0;r<o;r+=1)for(let s=0;s<o;s+=1)t[r][s]>t[r][e]+t[e][s]&&(t[r][s]=t[r][e]+t[e][s]);return t},i=(e,t)=>{let{nodes:o,edges:r}=e,s=[],n={};if(!o)throw Error("invalid nodes data!");return o&&o.forEach((e,t)=>{n[e.id]=t,s.push([])}),null==r||r.forEach(e=>{let{source:o,target:r}=e,i=n[o],a=n[r];void 0!==i&&void 0!==a&&(s[i][a]=1,t||(s[a][i]=1))}),s},a=(e,t)=>{let o=[];return e.forEach(e=>{let r=[];e.forEach(e=>{r.push(e*t)}),o.push(r)}),o},d=e=>{let t=1/0,o=1/0,n=-1/0,i=-1/0;return e.forEach(e=>{let a=e.data.size;(0,s.k)(a)?1===a.length&&(a=[a[0],a[0]]):(0,r.Z)(a)?a=[a,a]:(void 0===a||isNaN(a))&&(a=[30,30]);let d=[a[0]/2,a[1]/2],l=e.data.x-d[0],u=e.data.x+d[0],h=e.data.y-d[1],c=e.data.y+d[1];t>l&&(t=l),o>h&&(o=h),n<u&&(n=u),i<c&&(i=c)}),{minX:t,minY:o,maxX:n,maxY:i}},l=(e,t)=>Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)),u=(e,t,o,r="TB",s,n={})=>{if(!(null==t?void 0:t.length))return;let{stopBranchFn:i,stopAllFn:a}=n;for(let d=0;d<t.length;d++){let l=t[d];if(e.hasNode(l.id)&&(null==i||!i(l))){if(null==a?void 0:a(l))return;"TB"===r&&o(l),u(e,e.getChildren(l.id,s),o,r,s,n),"TB"!==r&&o(l)}}}},"../../../node_modules/@antv/layout/lib/util/object.js":function(e,t,o){"use strict";o.d(t,{u:()=>n});var r=o("../../../node_modules/@antv/util/esm/lodash/is-number.js");let s=e=>{if(null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){let t=[];return e.forEach(e=>{t.push(e)}),t.map(e=>s(e))}if("object"==typeof e){let t={};return Object.keys(e).forEach(o=>{t[o]=s(e[o])}),t}return e},n=(e,t)=>{let o=s(e);return o.data=o.data||{},t&&((0,r.Z)(o.data.x)||(o.data.x=Math.random()*t[0]),(0,r.Z)(o.data.y)||(o.data.y=Math.random()*t[1])),o}},"../../../node_modules/@antv/layout/lib/util/size.js":function(e,t,o){"use strict";o.d(t,{_:()=>s});var r=o("../../../node_modules/@antv/util/esm/lodash/is-number.js");function s(e){if(!e)return[0,0,0];if((0,r.Z)(e))return[e,e,e];if(0===e.length)return[0,0,0];let[t,o=t,s=t]=e;return[t,o,s]}},"../../../node_modules/@antv/util/esm/lodash/clone.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("../../../node_modules/@antv/util/esm/lodash/is-array.js"),s=function(e){if("object"!=typeof e||null===e)return e;if((0,r.Z)(e)){t=[];for(var t,o=0,n=e.length;o<n;o++)"object"==typeof e[o]&&null!=e[o]?t[o]=s(e[o]):t[o]=e[o]}else for(var i in t={},e)"object"==typeof e[i]&&null!=e[i]?t[i]=s(e[i]):t[i]=e[i];return t};let n=s},"../../../node_modules/@antv/util/esm/lodash/deep-mix.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("../../../node_modules/@antv/util/esm/lodash/is-array.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-plain-object.js");let n=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var n=0;n<t.length;n+=1)!function e(t,o,n,i){for(var a in n=n||0,i=i||5,o)if(function(e,t){if(Object.hasOwn)return Object.hasOwn(e,t);if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}(o,a)){var d=o[a];null!==d&&(0,s.Z)(d)?((0,s.Z)(t[a])||(t[a]={}),n<i?e(t[a],d,n+1,i):t[a]=o[a]):(0,r.Z)(d)?(t[a]=[],t[a]=t[a].concat(d)):void 0!==d&&(t[a]=d)}}(e,t[n]);return e}},"../../../node_modules/@antv/util/esm/lodash/each.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("../../../node_modules/@antv/util/esm/lodash/is-array.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-object.js");let n=function(e,t){if(e){if((0,r.Z)(e))for(var o,n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);else if((0,s.Z)(e)){for(var a in e)if(e.hasOwnProperty(a)&&!1===t(e[a],a))break}}}},"../../../node_modules/@antv/util/esm/lodash/is-array.js":function(e,t,o){"use strict";function r(e){return Array.isArray(e)}o.d(t,{Z:()=>r})},"../../../node_modules/@antv/util/esm/lodash/is-function.js":function(e,t,o){"use strict";function r(e){return"function"==typeof e}o.d(t,{Z:()=>r})},"../../../node_modules/@antv/util/esm/lodash/is-nil.js":function(e,t,o){"use strict";function r(e){return null==e}o.d(t,{Z:()=>r})},"../../../node_modules/@antv/util/esm/lodash/is-number.js":function(e,t,o){"use strict";function r(e){return"number"==typeof e}o.d(t,{Z:()=>r})},"../../../node_modules/@antv/util/esm/lodash/is-object-like.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});let r=function(e){return"object"==typeof e&&null!==e}},"../../../node_modules/@antv/util/esm/lodash/is-object.js":function(e,t,o){"use strict";o.d(t,{Z:()=>r});let r=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t}},"../../../node_modules/@antv/util/esm/lodash/is-plain-object.js":function(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("../../../node_modules/@antv/util/esm/lodash/is-object-like.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-type.js");let n=function(e){if(!(0,r.Z)(e)||!(0,s.Z)(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},"../../../node_modules/@antv/util/esm/lodash/is-string.js":function(e,t,o){"use strict";function r(e){return"string"==typeof e}o.d(t,{Z:()=>r})},"../../../node_modules/@antv/util/esm/lodash/is-type.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r={}.toString;let s=function(e,t){return r.call(e)==="[object "+t+"]"}},"../../../node_modules/@antv/util/esm/lodash/pick.js":function(e,t,o){"use strict";o.d(t,{Z:()=>i});var r=o("../../../node_modules/@antv/util/esm/lodash/each.js"),s=o("../../../node_modules/@antv/util/esm/lodash/is-plain-object.js"),n=Object.prototype.hasOwnProperty;let i=function(e,t){if(null===e||!(0,s.Z)(e))return{};var o={};return(0,r.Z)(t,function(t){n.call(e,t)&&(o[t]=e[t])}),o}},"../../../node_modules/dagre/index.js":function(e,t,o){e.exports={graphlib:o("../../../node_modules/dagre/lib/graphlib.js"),layout:o("../../../node_modules/dagre/lib/layout.js"),debug:o("../../../node_modules/dagre/lib/debug.js"),util:{time:o("../../../node_modules/dagre/lib/util.js").time,notime:o("../../../node_modules/dagre/lib/util.js").notime},version:o("../../../node_modules/dagre/lib/version.js")}},"../../../node_modules/dagre/lib/acyclic.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/greedy-fas.js");e.exports={run:function(e){var t,o,n,i,a,d="greedy"===e.graph().acyclicer?s(e,(t=e,function(e){return t.edge(e).weight})):(o=e,n=[],i={},a={},r.forEach(o.nodes(),function e(t){r.has(a,t)||(a[t]=!0,i[t]=!0,r.forEach(o.outEdges(t),function(t){r.has(i,t.w)?n.push(t):e(t.w)}),delete i[t])}),n);r.forEach(d,function(t){var o=e.edge(t);e.removeEdge(t),o.forwardName=t.name,o.reversed=!0,e.setEdge(t.w,t.v,o,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var o=e.edge(t);if(o.reversed){e.removeEdge(t);var r=o.forwardName;delete o.reversed,delete o.forwardName,e.setEdge(t.w,t.v,o,r)}})}}},"../../../node_modules/dagre/lib/add-border-segments.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js");function n(e,t,o,r,n,i){var a=n[t][i-1],d=s.addDummyNode(e,"border",{width:0,height:0,rank:i,borderType:t},o);n[t][i]=d,e.setParent(d,r),a&&e.setEdge(a,d,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(o){var s=e.children(o),i=e.node(o);if(s.length&&r.forEach(s,t),r.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,d=i.maxRank+1;a<d;++a)n(e,"borderLeft","_bl",o,i,a),n(e,"borderRight","_br",o,i,a)}})}},"../../../node_modules/dagre/lib/coordinate-system.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js");function s(e){r.forEach(e.nodes(),function(t){n(e.node(t))}),r.forEach(e.edges(),function(t){n(e.edge(t))})}function n(e){var t=e.width;e.width=e.height,e.height=t}function i(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&s(e)},undo:function(e){var t,o,n=e.graph().rankdir.toLowerCase();("bt"===n||"rl"===n)&&(t=e,r.forEach(t.nodes(),function(e){i(t.node(e))}),r.forEach(t.edges(),function(e){var o=t.edge(e);r.forEach(o.points,i),r.has(o,"y")&&i(o)})),("lr"===n||"rl"===n)&&(o=e,r.forEach(o.nodes(),function(e){a(o.node(e))}),r.forEach(o.edges(),function(e){var t=o.edge(e);r.forEach(t.points,a),r.has(t,"x")&&a(t)}),s(e))}}},"../../../node_modules/dagre/lib/data/list.js":function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function o(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return o(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&o(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,o=t._prev;o!==t;)e.push(JSON.stringify(o,r)),o=o._prev;return"["+e.join(", ")+"]"}},"../../../node_modules/dagre/lib/debug.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js"),n=o("../../../node_modules/dagre/lib/graphlib.js").Graph;e.exports={debugOrdering:function(e){var t=s.buildLayerMatrix(e),o=new n({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){o.setNode(t,{label:t}),o.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){o.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){o.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return o.setEdge(e,t,{style:"invis"}),t})}),o}}},"../../../node_modules/dagre/lib/graphlib.js":function(e,t,o){var r;try{r=o("../../../node_modules/graphlib/index.js")}catch(e){}r||(r=window.graphlib),e.exports=r},"../../../node_modules/dagre/lib/greedy-fas.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/graphlib.js").Graph,n=o("../../../node_modules/dagre/lib/data/list.js");e.exports=function(e,t){if(1>=e.nodeCount())return[];var o,l,u,h,c,f,g,m=(o=e,l=t||i,u=new s,h=0,c=0,r.forEach(o.nodes(),function(e){u.setNode(e,{v:e,in:0,out:0})}),r.forEach(o.edges(),function(e){var t=u.edge(e.v,e.w)||0,o=l(e);u.setEdge(e.v,e.w,t+o),c=Math.max(c,u.node(e.v).out+=o),h=Math.max(h,u.node(e.w).in+=o)}),f=r.range(c+h+3).map(function(){return new n}),g=h+1,r.forEach(u.nodes(),function(e){d(f,g,u.node(e))}),{graph:u,buckets:f,zeroIdx:g}),p=function(e,t,o){for(var r,s=[],n=t[t.length-1],i=t[0];e.nodeCount();){for(;r=i.dequeue();)a(e,t,o,r);for(;r=n.dequeue();)a(e,t,o,r);if(e.nodeCount()){for(var d=t.length-2;d>0;--d)if(r=t[d].dequeue()){s=s.concat(a(e,t,o,r,!0));break}}}return s}(m.graph,m.buckets,m.zeroIdx);return r.flatten(r.map(p,function(t){return e.outEdges(t.v,t.w)}),!0)};var i=r.constant(1);function a(e,t,o,s,n){var i=n?[]:void 0;return r.forEach(e.inEdges(s.v),function(r){var s=e.edge(r),a=e.node(r.v);n&&i.push({v:r.v,w:r.w}),a.out-=s,d(t,o,a)}),r.forEach(e.outEdges(s.v),function(r){var s=e.edge(r),n=r.w,i=e.node(n);i.in-=s,d(t,o,i)}),e.removeNode(s.v),i}function d(e,t,o){o.out?o.in?e[o.out-o.in+t].enqueue(o):e[e.length-1].enqueue(o):e[0].enqueue(o)}},"../../../node_modules/dagre/lib/layout.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/acyclic.js"),n=o("../../../node_modules/dagre/lib/normalize.js"),i=o("../../../node_modules/dagre/lib/rank/index.js"),a=o("../../../node_modules/dagre/lib/util.js").normalizeRanks,d=o("../../../node_modules/dagre/lib/parent-dummy-chains.js"),l=o("../../../node_modules/dagre/lib/util.js").removeEmptyRanks,u=o("../../../node_modules/dagre/lib/nesting-graph.js"),h=o("../../../node_modules/dagre/lib/add-border-segments.js"),c=o("../../../node_modules/dagre/lib/coordinate-system.js"),f=o("../../../node_modules/dagre/lib/order/index.js"),g=o("../../../node_modules/dagre/lib/position/index.js"),m=o("../../../node_modules/dagre/lib/util.js"),p=o("../../../node_modules/dagre/lib/graphlib.js").Graph;e.exports=function(e,t){var o=t&&t.debugTiming?m.time:m.notime;o("layout",function(){var t=o(" buildLayoutGraph",function(){var t,o,s;return t=e,o=new p({multigraph:!0,compound:!0}),s=N(t.graph()),o.setGraph(r.merge({},v,M(s,_),r.pick(s,y))),r.forEach(t.nodes(),function(e){var s=N(t.node(e));o.setNode(e,r.defaults(M(s,b),j)),o.setParent(e,t.parent(e))}),r.forEach(t.edges(),function(e){var s=N(t.edge(e));o.setEdge(e,r.merge({},w,M(s,x),r.pick(s,E)))}),o});o(" runLayout",function(){var e,p;e=t,(p=o)(" makeSpaceForEdgeLabels",function(){var t,o;o=(t=e).graph(),o.ranksep/=2,r.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===o.rankdir||"BT"===o.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),p(" removeSelfEdges",function(){var t;t=e,r.forEach(t.edges(),function(e){if(e.v===e.w){var o=t.node(e.v);o.selfEdges||(o.selfEdges=[]),o.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),p(" acyclic",function(){s.run(e)}),p(" nestingGraph.run",function(){u.run(e)}),p(" rank",function(){i(m.asNonCompoundGraph(e))}),p(" injectEdgeLabelProxies",function(){var t;t=e,r.forEach(t.edges(),function(e){var o=t.edge(e);if(o.width&&o.height){var r=t.node(e.v),s={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};m.addDummyNode(t,"edge-proxy",s,"_ep")}})}),p(" removeEmptyRanks",function(){l(e)}),p(" nestingGraph.cleanup",function(){u.cleanup(e)}),p(" normalizeRanks",function(){a(e)}),p(" assignRankMinMax",function(){var t,o;t=e,o=0,r.forEach(t.nodes(),function(e){var s=t.node(e);s.borderTop&&(s.minRank=t.node(s.borderTop).rank,s.maxRank=t.node(s.borderBottom).rank,o=r.max(o,s.maxRank))}),t.graph().maxRank=o}),p(" removeEdgeLabelProxies",function(){var t;t=e,r.forEach(t.nodes(),function(e){var o=t.node(e);"edge-proxy"===o.dummy&&(t.edge(o.e).labelRank=o.rank,t.removeNode(e))})}),p(" normalize.run",function(){n.run(e)}),p(" parentDummyChains",function(){d(e)}),p(" addBorderSegments",function(){h(e)}),p(" order",function(){f(e)}),p(" insertSelfEdges",function(){var t,o;t=e,o=m.buildLayerMatrix(t),r.forEach(o,function(e){var o=0;r.forEach(e,function(e,s){var n=t.node(e);n.order=s+o,r.forEach(n.selfEdges,function(e){m.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:n.rank,order:s+ ++o,e:e.e,label:e.label},"_se")}),delete n.selfEdges})})}),p(" adjustCoordinateSystem",function(){c.adjust(e)}),p(" position",function(){g(e)}),p(" positionSelfEdges",function(){var t;t=e,r.forEach(t.nodes(),function(e){var o=t.node(e);if("selfedge"===o.dummy){var r=t.node(o.e.v),s=r.x+r.width/2,n=r.y,i=o.x-s,a=r.height/2;t.setEdge(o.e,o.label),t.removeNode(e),o.label.points=[{x:s+2*i/3,y:n-a},{x:s+5*i/6,y:n-a},{x:s+i,y:n},{x:s+5*i/6,y:n+a},{x:s+2*i/3,y:n+a}],o.label.x=o.x,o.label.y=o.y}})}),p(" removeBorderNodes",function(){var t;t=e,r.forEach(t.nodes(),function(e){if(t.children(e).length){var o=t.node(e),s=t.node(o.borderTop),n=t.node(o.borderBottom),i=t.node(r.last(o.borderLeft)),a=t.node(r.last(o.borderRight));o.width=Math.abs(a.x-i.x),o.height=Math.abs(n.y-s.y),o.x=i.x+o.width/2,o.y=s.y+o.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),p(" normalize.undo",function(){n.undo(e)}),p(" fixupEdgeLabelCoords",function(){var t;t=e,r.forEach(t.edges(),function(e){var o=t.edge(e);if(r.has(o,"x"))switch(("l"===o.labelpos||"r"===o.labelpos)&&(o.width-=o.labeloffset),o.labelpos){case"l":o.x-=o.width/2+o.labeloffset;break;case"r":o.x+=o.width/2+o.labeloffset}})}),p(" undoCoordinateSystem",function(){c.undo(e)}),p(" translateGraph",function(){!function(e){var t=Number.POSITIVE_INFINITY,o=0,s=Number.POSITIVE_INFINITY,n=0,i=e.graph(),a=i.marginx||0,d=i.marginy||0;function l(e){var r=e.x,i=e.y,a=e.width,d=e.height;t=Math.min(t,r-a/2),o=Math.max(o,r+a/2),s=Math.min(s,i-d/2),n=Math.max(n,i+d/2)}r.forEach(e.nodes(),function(t){l(e.node(t))}),r.forEach(e.edges(),function(t){var o=e.edge(t);r.has(o,"x")&&l(o)}),t-=a,s-=d,r.forEach(e.nodes(),function(o){var r=e.node(o);r.x-=t,r.y-=s}),r.forEach(e.edges(),function(o){var n=e.edge(o);r.forEach(n.points,function(e){e.x-=t,e.y-=s}),r.has(n,"x")&&(n.x-=t),r.has(n,"y")&&(n.y-=s)}),i.width=o-t+a,i.height=n-s+d}(e)}),p(" assignNodeIntersects",function(){var t;t=e,r.forEach(t.edges(),function(e){var o,r,s=t.edge(e),n=t.node(e.v),i=t.node(e.w);s.points?(o=s.points[0],r=s.points[s.points.length-1]):(s.points=[],o=i,r=n),s.points.unshift(m.intersectRect(n,o)),s.points.push(m.intersectRect(i,r))})}),p(" reversePoints",function(){var t;t=e,r.forEach(t.edges(),function(e){var o=t.edge(e);o.reversed&&o.points.reverse()})}),p(" acyclic.undo",function(){s.undo(e)})}),o(" updateInputGraph",function(){var o,s;o=e,s=t,r.forEach(o.nodes(),function(e){var t=o.node(e),r=s.node(e);t&&(t.x=r.x,t.y=r.y,s.children(e).length&&(t.width=r.width,t.height=r.height))}),r.forEach(o.edges(),function(e){var t=o.edge(e),n=s.edge(e);t.points=n.points,r.has(n,"x")&&(t.x=n.x,t.y=n.y)}),o.graph().width=s.graph().width,o.graph().height=s.graph().height})})};var _=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],b=["width","height"],j={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],w={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function M(e,t){return r.mapValues(r.pick(e,t),Number)}function N(e){var t={};return r.forEach(e,function(e,o){t[o.toLowerCase()]=e}),t}},"../../../node_modules/dagre/lib/lodash.js":function(e,t,o){var r;try{r={cloneDeep:o("../../../node_modules/lodash/cloneDeep.js"),constant:o("../../../node_modules/lodash/constant.js"),defaults:o("../../../node_modules/lodash/defaults.js"),each:o("../../../node_modules/lodash/each.js"),filter:o("../../../node_modules/lodash/filter.js"),find:o("../../../node_modules/lodash/find.js"),flatten:o("../../../node_modules/lodash/flatten.js"),forEach:o("../../../node_modules/lodash/forEach.js"),forIn:o("../../../node_modules/lodash/forIn.js"),has:o("../../../node_modules/lodash/has.js"),isUndefined:o("../../../node_modules/lodash/isUndefined.js"),last:o("../../../node_modules/lodash/last.js"),map:o("../../../node_modules/lodash/map.js"),mapValues:o("../../../node_modules/lodash/mapValues.js"),max:o("../../../node_modules/lodash/max.js"),merge:o("../../../node_modules/lodash/merge.js"),min:o("../../../node_modules/lodash/min.js"),minBy:o("../../../node_modules/lodash/minBy.js"),now:o("../../../node_modules/lodash/now.js"),pick:o("../../../node_modules/lodash/pick.js"),range:o("../../../node_modules/lodash/range.js"),reduce:o("../../../node_modules/lodash/reduce.js"),sortBy:o("../../../node_modules/lodash/sortBy.js"),uniqueId:o("../../../node_modules/lodash/uniqueId.js"),values:o("../../../node_modules/lodash/values.js"),zipObject:o("../../../node_modules/lodash/zipObject.js")}}catch(e){}r||(r=window._),e.exports=r},"../../../node_modules/dagre/lib/nesting-graph.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js");e.exports={run:function(e){var t,o,n,i=s.addDummyNode(e,"root",{},"_root"),a=(t=e,o={},r.forEach(t.children(),function(e){!function e(s,n){var i=t.children(s);i&&i.length&&r.forEach(i,function(t){e(t,n+1)}),o[s]=n}(e,1)}),o),d=r.max(r.values(a))-1,l=2*d+1;e.graph().nestingRoot=i,r.forEach(e.edges(),function(t){e.edge(t).minlen*=l});var u=(n=e,r.reduce(n.edges(),function(e,t){return e+n.edge(t).weight},0)+1);r.forEach(e.children(),function(t){!function e(t,o,n,i,a,d,l){var u=t.children(l);if(!u.length){l!==o&&t.setEdge(o,l,{weight:0,minlen:n});return}var h=s.addBorderNode(t,"_bt"),c=s.addBorderNode(t,"_bb"),f=t.node(l);t.setParent(h,l),f.borderTop=h,t.setParent(c,l),f.borderBottom=c,r.forEach(u,function(r){e(t,o,n,i,a,d,r);var s=t.node(r),u=s.borderTop?s.borderTop:r,f=s.borderBottom?s.borderBottom:r,g=s.borderTop?i:2*i,m=u!==f?1:a-d[l]+1;t.setEdge(h,u,{weight:g,minlen:m,nestingEdge:!0}),t.setEdge(f,c,{weight:g,minlen:m,nestingEdge:!0})}),t.parent(l)||t.setEdge(o,h,{weight:0,minlen:a+d[l]})}(e,i,l,u,d,a,t)}),e.graph().nodeRankFactor=l},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},"../../../node_modules/dagre/lib/normalize.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js");e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){!function(e,t){var o,r,n,i=t.v,a=e.node(i).rank,d=t.w,l=e.node(d).rank,u=t.name,h=e.edge(t),c=h.labelRank;if(l!==a+1){for(e.removeEdge(t),n=0,++a;a<l;++n,++a)h.points=[],r={width:0,height:0,edgeLabel:h,edgeObj:t,rank:a},o=s.addDummyNode(e,"edge",r,"_d"),a===c&&(r.width=h.width,r.height=h.height,r.dummy="edge-label",r.labelpos=h.labelpos),e.setEdge(i,o,{weight:h.weight},u),0===n&&e.graph().dummyChains.push(o),i=o;e.setEdge(i,d,{weight:h.weight},u)}}(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var o,r=e.node(t),s=r.edgeLabel;for(e.setEdge(r.edgeObj,s);r.dummy;)o=e.successors(t)[0],e.removeNode(t),s.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(s.x=r.x,s.y=r.y,s.width=r.width,s.height=r.height),t=o,r=e.node(t)})}}},"../../../node_modules/dagre/lib/order/add-subgraph-constraints.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e,t,o){var s,n={};r.forEach(o,function(o){for(var r,i,a=e.parent(o);a;){if((r=e.parent(a))?(i=n[r],n[r]=a):(i=s,s=a),i&&i!==a)return void t.setEdge(i,a);a=r}})}},"../../../node_modules/dagre/lib/order/barycenter.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e,t){return r.map(t,function(t){var o=e.inEdges(t);if(!o.length)return{v:t};var s=r.reduce(o,function(t,o){var r=e.edge(o),s=e.node(o.v);return{sum:t.sum+r.weight*s.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:s.sum/s.weight,weight:s.weight}})}},"../../../node_modules/dagre/lib/order/build-layer-graph.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/graphlib.js").Graph;e.exports=function(e,t,o){var n=function(e){for(var t;e.hasNode(t=r.uniqueId("_root")););return t}(e),i=new s({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(s){var a=e.node(s),d=e.parent(s);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(i.setNode(s),i.setParent(s,d||n),r.forEach(e[o](s),function(t){var o=t.v===s?t.w:t.v,n=i.edge(o,s),a=r.isUndefined(n)?0:n.weight;i.setEdge(o,s,{weight:e.edge(t).weight+a})}),r.has(a,"minRank")&&i.setNode(s,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))}),i}},"../../../node_modules/dagre/lib/order/cross-count.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e,t){for(var o=0,s=1;s<t.length;++s)o+=function(e,t,o){for(var s=r.zipObject(o,r.map(o,function(e,t){return t})),n=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:s[t.w],weight:e.edge(t).weight}}),"pos")}),!0),i=1;i<o.length;)i<<=1;var a=2*i-1;i-=1;var d=r.map(Array(a),function(){return 0}),l=0;return r.forEach(n.forEach(function(e){var t=e.pos+i;d[t]+=e.weight;for(var o=0;t>0;)t%2&&(o+=d[t+1]),t=t-1>>1,d[t]+=e.weight;l+=e.weight*o})),l}(e,t[s-1],t[s]);return o}},"../../../node_modules/dagre/lib/order/index.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/order/init-order.js"),n=o("../../../node_modules/dagre/lib/order/cross-count.js"),i=o("../../../node_modules/dagre/lib/order/sort-subgraph.js"),a=o("../../../node_modules/dagre/lib/order/build-layer-graph.js"),d=o("../../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),l=o("../../../node_modules/dagre/lib/graphlib.js").Graph,u=o("../../../node_modules/dagre/lib/util.js");function h(e,t,o){return r.map(t,function(t){return a(e,t,o)})}function c(e,t){r.forEach(t,function(t){r.forEach(t,function(t,o){e.node(t).order=o})})}e.exports=function(e){var t=u.maxRank(e),o=h(e,r.range(1,t+1),"inEdges"),a=h(e,r.range(t-1,-1,-1),"outEdges"),f=s(e);c(e,f);for(var g,m=Number.POSITIVE_INFINITY,p=0,_=0;_<4;++p,++_){(function(e,t){var o=new l;r.forEach(e,function(e){var s=e.graph().root,n=i(e,s,o,t);r.forEach(n.vs,function(t,o){e.node(t).order=o}),d(e,o,n.vs)})})(p%2?o:a,p%4>=2),f=u.buildLayerMatrix(e);var v=n(e,f);v<m&&(_=0,g=r.cloneDeep(f),m=v)}c(e,g)}},"../../../node_modules/dagre/lib/order/init-order.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e){var t={},o=r.filter(e.nodes(),function(t){return!e.children(t).length}),s=r.max(r.map(o,function(t){return e.node(t).rank})),n=r.map(r.range(s+1),function(){return[]}),i=r.sortBy(o,function(t){return e.node(t).rank});return r.forEach(i,function o(s){r.has(t,s)||(t[s]=!0,n[e.node(s).rank].push(s),r.forEach(e.successors(s),o))}),n}},"../../../node_modules/dagre/lib/order/resolve-conflicts.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e,t){var o={};return r.forEach(e,function(e,t){var s=o[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(s.barycenter=e.barycenter,s.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=o[e.v],s=o[e.w];r.isUndefined(t)||r.isUndefined(s)||(s.indegree++,t.out.push(o[e.w]))}),function(e){for(var t=[];e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),function(e){return function(t){!t.merged&&(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var o=0,r=0;e.weight&&(o+=e.barycenter*e.weight,r+=e.weight),t.weight&&(o+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=o/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(o)),r.forEach(o.out,function(t){return function(o){o.in.push(t),0==--o.indegree&&e.push(o)}}(o))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(o,function(e){return!e.indegree}))}},"../../../node_modules/dagre/lib/order/sort-subgraph.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/order/barycenter.js"),n=o("../../../node_modules/dagre/lib/order/resolve-conflicts.js"),i=o("../../../node_modules/dagre/lib/order/sort.js");e.exports=function e(t,o,a,d){var l,u,h=t.children(o),c=t.node(o),f=c?c.borderLeft:void 0,g=c?c.borderRight:void 0,m={};f&&(h=r.filter(h,function(e){return e!==f&&e!==g}));var p=s(t,h);r.forEach(p,function(o){if(t.children(o.v).length){var s,n,i=e(t,o.v,a,d);m[o.v]=i,r.has(i,"barycenter")&&(s=o,n=i,r.isUndefined(s.barycenter)?(s.barycenter=n.barycenter,s.weight=n.weight):(s.barycenter=(s.barycenter*s.weight+n.barycenter*n.weight)/(s.weight+n.weight),s.weight+=n.weight))}});var _=n(p,a);l=_,u=m,r.forEach(l,function(e){e.vs=r.flatten(e.vs.map(function(e){return u[e]?u[e].vs:e}),!0)});var v=i(_,d);if(f&&(v.vs=r.flatten([f,v.vs,g],!0),t.predecessors(f).length)){var y=t.node(t.predecessors(f)[0]),b=t.node(t.predecessors(g)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+b.order)/(v.weight+2),v.weight+=2}return v}},"../../../node_modules/dagre/lib/order/sort.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js");function n(e,t,o){for(var s;t.length&&(s=r.last(t)).i<=o;)t.pop(),e.push(s.vs),o++;return o}e.exports=function(e,t){var o,i=s.partition(e,function(e){return r.has(e,"barycenter")}),a=i.lhs,d=r.sortBy(i.rhs,function(e){return-e.i}),l=[],u=0,h=0,c=0;a.sort((o=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:o?t.i-e.i:e.i-t.i})),c=n(l,d,c),r.forEach(a,function(e){c+=e.vs.length,l.push(e.vs),u+=e.barycenter*e.weight,h+=e.weight,c=n(l,d,c)});var f={vs:r.flatten(l,!0)};return h&&(f.barycenter=u/h,f.weight=h),f}},"../../../node_modules/dagre/lib/parent-dummy-chains.js":function(e,t,o){var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports=function(e){var t,o,s,n=(t=e,o={},s=0,r.forEach(t.children(),function e(n){var i=s;r.forEach(t.children(n),e),o[n]={low:i,lim:s++}}),o);r.forEach(e.graph().dummyChains,function(t){for(var o=e.node(t),r=o.edgeObj,s=function(e,t,o,r){var s,n,i=[],a=[],d=Math.min(t[o].low,t[r].low),l=Math.max(t[o].lim,t[r].lim);s=o;do i.push(s=e.parent(s));while(s&&(t[s].low>d||l>t[s].lim));for(n=s,s=r;(s=e.parent(s))!==n;)a.push(s);return{path:i.concat(a.reverse()),lca:n}}(e,n,r.v,r.w),i=s.path,a=s.lca,d=0,l=i[0],u=!0;t!==r.w;){if(o=e.node(t),u){for(;(l=i[d])!==a&&e.node(l).maxRank<o.rank;)d++;l===a&&(u=!1)}if(!u){for(;d<i.length-1&&e.node(l=i[d+1]).minRank<=o.rank;)d++;l=i[d]}e.setParent(t,l),t=e.successors(t)[0]}})}},"../../../node_modules/dagre/lib/position/bk.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/graphlib.js").Graph,n=o("../../../node_modules/dagre/lib/util.js");function i(e,t){var o={};return r.reduce(t,function(t,s){var n=0,i=0,a=t.length,l=r.last(s);return r.forEach(s,function(t,u){var h=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),c=h?e.node(h).order:a;(h||t===l)&&(r.forEach(s.slice(i,u+1),function(t){r.forEach(e.predecessors(t),function(r){var s=e.node(r),i=s.order;(i<n||c<i)&&!(s.dummy&&e.node(t).dummy)&&d(o,r,t)})}),i=u+1,n=c)}),s}),o}function a(e,t){var o={};function s(t,s,n,i,a){var l;r.forEach(r.range(s,n),function(s){l=t[s],e.node(l).dummy&&r.forEach(e.predecessors(l),function(t){var r=e.node(t);r.dummy&&(r.order<i||r.order>a)&&d(o,t,l)})})}return r.reduce(t,function(t,o){var n,i=-1,a=0;return r.forEach(o,function(r,d){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(n=e.node(l[0]).order,s(o,a,d,i,n),a=d,i=n)}s(o,a,o.length,n,t.length)}),o}),o}function d(e,t,o){if(t>o){var r=t;t=o,o=r}var s=e[t];s||(e[t]=s={}),s[o]=!0}function l(e,t,o){if(t>o){var s=t;t=o,o=s}return r.has(e[t],o)}function u(e,t,o,s){var n={},i={},a={};return r.forEach(t,function(e){r.forEach(e,function(e,t){n[e]=e,i[e]=e,a[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var d=s(e);if(d.length)for(var u=((d=r.sortBy(d,function(e){return a[e]})).length-1)/2,h=Math.floor(u),c=Math.ceil(u);h<=c;++h){var f=d[h];i[e]===e&&t<a[f]&&!l(o,e,f)&&(i[f]=e,i[e]=n[e]=n[f],t=a[f])}})}),{root:n,align:i}}function h(e,t,o,n,i){var a,d,l,u,h,c,f,g,m,p,_={},v=(a=e,d=t,l=o,u=i,g=new s,p=(h=(m=a.graph()).nodesep,c=m.edgesep,f=u,function(e,t,o){var s,n,i=e.node(t),a=e.node(o);if(s=0+i.width/2,r.has(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":n=-i.width/2;break;case"r":n=i.width/2}if(n&&(s+=f?n:-n),n=0,s+=(i.dummy?c:h)/2,s+=(a.dummy?c:h)/2,s+=a.width/2,r.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":n=a.width/2;break;case"r":n=-a.width/2}return n&&(s+=f?n:-n),n=0,s}),r.forEach(d,function(e){var t;r.forEach(e,function(e){var o=l[e];if(g.setNode(o),t){var r=l[t],s=g.edge(r,o);g.setEdge(r,o,Math.max(p(a,e,t),s||0))}t=e})}),g),y=i?"borderLeft":"borderRight";function b(e,t){for(var o=v.nodes(),r=o.pop(),s={};r;)s[r]?e(r):(s[r]=!0,o.push(r),o=o.concat(t(r))),r=o.pop()}return b(function(e){_[e]=v.inEdges(e).reduce(function(e,t){return Math.max(e,_[t.v]+v.edge(t))},0)},v.predecessors.bind(v)),b(function(t){var o=v.outEdges(t).reduce(function(e,t){return Math.min(e,_[t.w]-v.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);o!==Number.POSITIVE_INFINITY&&r.borderType!==y&&(_[t]=Math.max(_[t],o))},v.successors.bind(v)),r.forEach(n,function(e){_[e]=_[o[e]]}),_}function c(e,t){return r.minBy(r.values(t),function(t){var o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return r.forIn(t,function(t,r){var n,i,a=(n=e,i=r,n.node(i).width/2);o=Math.max(t+a,o),s=Math.min(t-a,s)}),o-s})}function f(e,t){var o=r.values(t),s=r.min(o),n=r.max(o);r.forEach(["u","d"],function(o){r.forEach(["l","r"],function(i){var a,d=o+i,l=e[d];if(l!==t){var u=r.values(l);(a="l"===i?s-r.min(u):n-r.max(u))&&(e[d]=r.mapValues(l,function(e){return e+a}))}})})}function g(e,t){return r.mapValues(e.ul,function(o,s){if(t)return e[t.toLowerCase()][s];var n=r.sortBy(r.map(e,s));return(n[1]+n[2])/2})}e.exports={positionX:function(e){var t,o=n.buildLayerMatrix(e),s=r.merge(i(e,o),a(e,o)),d={};r.forEach(["u","d"],function(n){t="u"===n?o:r.values(o).reverse(),r.forEach(["l","r"],function(o){"r"===o&&(t=r.map(t,function(e){return r.values(e).reverse()}));var i=("u"===n?e.predecessors:e.successors).bind(e),a=u(e,t,s,i),l=h(e,t,a.root,a.align,"r"===o);"r"===o&&(l=r.mapValues(l,function(e){return-e})),d[n+o]=l})});var l=c(e,d);return f(d,l),g(d,e.graph().align)},findType1Conflicts:i,findType2Conflicts:a,addConflict:d,hasConflict:l,verticalAlignment:u,horizontalCompaction:h,alignCoordinates:f,findSmallestWidthAlignment:c,balance:g}},"../../../node_modules/dagre/lib/position/index.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/util.js"),n=o("../../../node_modules/dagre/lib/position/bk.js").positionX;e.exports=function(e){var t,o,i,a;t=e=s.asNonCompoundGraph(e),o=s.buildLayerMatrix(t),i=t.graph().ranksep,a=0,r.forEach(o,function(e){var o=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=a+o/2}),a+=o+i}),r.forEach(n(e),function(t,o){e.node(o).x=t})}},"../../../node_modules/dagre/lib/rank/feasible-tree.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/graphlib.js").Graph,n=o("../../../node_modules/dagre/lib/rank/util.js").slack;e.exports=function(e){var t,o,i,a,d=new s({directed:!1}),l=e.nodes()[0],u=e.nodeCount();for(d.setNode(l,{});t=d,o=e,r.forEach(t.nodes(),function e(s){r.forEach(o.nodeEdges(s),function(r){var i=r.v,a=s===i?r.w:i;t.hasNode(a)||n(o,r)||(t.setNode(a,{}),t.setEdge(s,a,{}),e(a))})}),t.nodeCount()<u;)i=function(e,t){return r.minBy(t.edges(),function(o){if(e.hasNode(o.v)!==e.hasNode(o.w))return n(t,o)})}(d,e),a=d.hasNode(i.v)?n(e,i):-n(e,i),function(e,t,o){r.forEach(e.nodes(),function(e){t.node(e).rank+=o})}(d,e,a);return d}},"../../../node_modules/dagre/lib/rank/index.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/rank/util.js").longestPath,s=o("../../../node_modules/dagre/lib/rank/feasible-tree.js"),n=o("../../../node_modules/dagre/lib/rank/network-simplex.js");e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:n(e);break;case"tight-tree":var t;r(t=e),s(t);break;case"longest-path":i(e)}};var i=r},"../../../node_modules/dagre/lib/rank/network-simplex.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/rank/feasible-tree.js"),n=o("../../../node_modules/dagre/lib/rank/util.js").slack,i=o("../../../node_modules/dagre/lib/rank/util.js").longestPath,a=o("../../../node_modules/dagre/lib/graphlib.js").alg.preorder,d=o("../../../node_modules/dagre/lib/graphlib.js").alg.postorder,l=o("../../../node_modules/dagre/lib/util.js").simplify;function u(e){i(e=l(e));var t,o,r=s(e);for(f(r),h(r,e);t=g(r);)o=m(r,e,t),p(r,e,t,o)}function h(e,t){var o=d(e,e.nodes());o=o.slice(0,o.length-1),r.forEach(o,function(o){var r,s,n,i;r=e,s=t,n=o,i=r.node(n).parent,r.edge(n,i).cutvalue=c(r,s,n)})}function c(e,t,o){var s=e.node(o).parent,n=!0,i=t.edge(o,s),a=0;return i||(n=!1,i=t.edge(s,o)),a=i.weight,r.forEach(t.nodeEdges(o),function(r){var i=r.v===o,d=i?r.w:r.v;if(d!==s){var l,u,h,c=i===n,f=t.edge(r).weight;if(a+=c?f:-f,l=e,u=o,h=d,l.hasEdge(u,h)){var g=e.edge(o,d).cutvalue;a+=c?-g:g}}}),a}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,o,s,n,i){var a=s,d=t.node(n);return o[n]=!0,r.forEach(t.neighbors(n),function(i){r.has(o,i)||(s=e(t,o,s,i,n))}),d.low=a,d.lim=s++,i?d.parent=i:delete d.parent,s}(e,{},1,t)}function g(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function m(e,t,o){var s=o.v,i=o.w;t.hasEdge(s,i)||(s=o.w,i=o.v);var a=e.node(s),d=e.node(i),l=a,u=!1;a.lim>d.lim&&(l=d,u=!0);var h=r.filter(t.edges(),function(t){return u===_(e,e.node(t.v),l)&&u!==_(e,e.node(t.w),l)});return r.minBy(h,function(e){return n(t,e)})}function p(e,t,o,s){var n,i,d,l,u=o.v,c=o.w;e.removeEdge(u,c),e.setEdge(s.v,s.w,{}),f(e),h(e,t),n=e,i=t,d=r.find(n.nodes(),function(e){return!i.node(e).parent}),l=(l=a(n,d)).slice(1),r.forEach(l,function(e){var t=n.node(e).parent,o=i.edge(e,t),r=!1;o||(o=i.edge(t,e),r=!0),i.node(e).rank=i.node(t).rank+(r?o.minlen:-o.minlen)})}function _(e,t,o){return o.low<=t.lim&&t.lim<=o.lim}e.exports=u,u.initLowLimValues=f,u.initCutValues=h,u.calcCutValue=c,u.leaveEdge=g,u.enterEdge=m,u.exchangeEdges=p},"../../../node_modules/dagre/lib/rank/util.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js");e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function o(s){var n=e.node(s);if(r.has(t,s))return n.rank;t[s]=!0;var i=r.min(r.map(e.outEdges(s),function(t){return o(t.w)-e.edge(t).minlen}));return(i===Number.POSITIVE_INFINITY||null==i)&&(i=0),n.rank=i})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},"../../../node_modules/dagre/lib/util.js":function(e,t,o){"use strict";var r=o("../../../node_modules/dagre/lib/lodash.js"),s=o("../../../node_modules/dagre/lib/graphlib.js").Graph;function n(e,t,o,s){var n;do n=r.uniqueId(s);while(e.hasNode(n));return o.dummy=t,e.setNode(n,o),n}function i(e){return r.max(r.map(e.nodes(),function(t){var o=e.node(t).rank;if(!r.isUndefined(o))return o}))}e.exports={addDummyNode:n,simplify:function(e){var t=new s().setGraph(e.graph());return r.forEach(e.nodes(),function(o){t.setNode(o,e.node(o))}),r.forEach(e.edges(),function(o){var r=t.edge(o.v,o.w)||{weight:0,minlen:1},s=e.edge(o);t.setEdge(o.v,o.w,{weight:r.weight+s.weight,minlen:Math.max(r.minlen,s.minlen)})}),t},asNonCompoundGraph:function(e){var t=new s({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(o){e.children(o).length||t.setNode(o,e.node(o))}),r.forEach(e.edges(),function(o){t.setEdge(o,e.edge(o))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var o={};return r.forEach(e.outEdges(t),function(t){o[t.w]=(o[t.w]||0)+e.edge(t).weight}),o});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var o={};return r.forEach(e.inEdges(t),function(t){o[t.v]=(o[t.v]||0)+e.edge(t).weight}),o});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var o,r,s=e.x,n=e.y,i=t.x-s,a=t.y-n,d=e.width/2,l=e.height/2;if(!i&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*d>Math.abs(i)*l?(a<0&&(l=-l),o=l*i/a,r=l):(i<0&&(d=-d),o=d,r=d*a/i),{x:s+o,y:n+r}},buildLayerMatrix:function(e){var t=r.map(r.range(i(e)+1),function(){return[]});return r.forEach(e.nodes(),function(o){var s=e.node(o),n=s.rank;r.isUndefined(n)||(t[n][s.order]=o)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(o){var s=e.node(o);r.has(s,"rank")&&(s.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),o=[];r.forEach(e.nodes(),function(r){var s=e.node(r).rank-t;o[s]||(o[s]=[]),o[s].push(r)});var s=0,n=e.graph().nodeRankFactor;r.forEach(o,function(t,o){r.isUndefined(t)&&o%n!=0?--s:s&&r.forEach(t,function(t){e.node(t).rank+=s})})},addBorderNode:function(e,t,o,r){var s={width:0,height:0};return arguments.length>=4&&(s.rank=o,s.order=r),n(e,"border",s,t)},maxRank:i,partition:function(e,t){var o={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?o.lhs.push(e):o.rhs.push(e)}),o},time:function(e,t){var o=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-o)+"ms")}},notime:function(e,t){return t()}}},"../../../node_modules/dagre/lib/version.js":function(e){e.exports="0.8.5"},"../../../node_modules/graphlib/index.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/index.js");e.exports={Graph:r.Graph,json:o("../../../node_modules/graphlib/lib/json.js"),alg:o("../../../node_modules/graphlib/lib/alg/index.js"),version:r.version}},"../../../node_modules/graphlib/lib/alg/components.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");e.exports=function(e){var t,o={},s=[];return r.each(e.nodes(),function(n){t=[],function s(n){r.has(o,n)||(o[n]=!0,t.push(n),r.each(e.successors(n),s),r.each(e.predecessors(n),s))}(n),t.length&&s.push(t)}),s}},"../../../node_modules/graphlib/lib/alg/dfs.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");e.exports=function(e,t,o){r.isArray(t)||(t=[t]);var s=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],i={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);!function e(t,o,s,n,i,a){!r.has(n,o)&&(n[o]=!0,s||a.push(o),r.each(i(o),function(o){e(t,o,s,n,i,a)}),s&&a.push(o))}(e,t,"post"===o,i,s,n)}),n}},"../../../node_modules/graphlib/lib/alg/dijkstra-all.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/alg/dijkstra.js"),s=o("../../../node_modules/graphlib/lib/lodash.js");e.exports=function(e,t,o){return s.transform(e.nodes(),function(s,n){s[n]=r(e,n,t,o)},{})}},"../../../node_modules/graphlib/lib/alg/dijkstra.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js"),s=o("../../../node_modules/graphlib/lib/data/priority-queue.js");e.exports=function(e,t,o,r){return function(e,t,o,r){var n,i,a={},d=new s,l=function(e){var t=e.v!==n?e.v:e.w,r=a[t],s=o(e),l=i.distance+s;if(s<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+s);l<r.distance&&(r.distance=l,r.predecessor=n,d.decrease(t,l))};for(e.nodes().forEach(function(e){var o=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:o},d.add(e,o)});d.size()>0&&(i=a[n=d.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(n).forEach(l);return a}(e,String(t),o||n,r||function(t){return e.outEdges(t)})};var n=r.constant(1)},"../../../node_modules/graphlib/lib/alg/find-cycles.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js"),s=o("../../../node_modules/graphlib/lib/alg/tarjan.js");e.exports=function(e){return r.filter(s(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},"../../../node_modules/graphlib/lib/alg/floyd-warshall.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");e.exports=function(e,t,o){var r,n,i,a,d;return r=e,n=t||s,i=o||function(t){return e.outEdges(t)},a={},(d=r.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},d.forEach(function(t){e!==t&&(a[e][t]={distance:Number.POSITIVE_INFINITY})}),i(e).forEach(function(t){var o=t.v===e?t.w:t.v,r=n(t);a[e][o]={distance:r,predecessor:e}})}),d.forEach(function(e){var t=a[e];d.forEach(function(o){var r=a[o];d.forEach(function(o){var s=r[e],n=t[o],i=r[o],a=s.distance+n.distance;a<i.distance&&(i.distance=a,i.predecessor=n.predecessor)})})}),a};var s=r.constant(1)},"../../../node_modules/graphlib/lib/alg/index.js":function(e,t,o){e.exports={components:o("../../../node_modules/graphlib/lib/alg/components.js"),dijkstra:o("../../../node_modules/graphlib/lib/alg/dijkstra.js"),dijkstraAll:o("../../../node_modules/graphlib/lib/alg/dijkstra-all.js"),findCycles:o("../../../node_modules/graphlib/lib/alg/find-cycles.js"),floydWarshall:o("../../../node_modules/graphlib/lib/alg/floyd-warshall.js"),isAcyclic:o("../../../node_modules/graphlib/lib/alg/is-acyclic.js"),postorder:o("../../../node_modules/graphlib/lib/alg/postorder.js"),preorder:o("../../../node_modules/graphlib/lib/alg/preorder.js"),prim:o("../../../node_modules/graphlib/lib/alg/prim.js"),tarjan:o("../../../node_modules/graphlib/lib/alg/tarjan.js"),topsort:o("../../../node_modules/graphlib/lib/alg/topsort.js")}},"../../../node_modules/graphlib/lib/alg/is-acyclic.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/alg/topsort.js");e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},"../../../node_modules/graphlib/lib/alg/postorder.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/alg/dfs.js");e.exports=function(e,t){return r(e,t,"post")}},"../../../node_modules/graphlib/lib/alg/preorder.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/alg/dfs.js");e.exports=function(e,t){return r(e,t,"pre")}},"../../../node_modules/graphlib/lib/alg/prim.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js"),s=o("../../../node_modules/graphlib/lib/graph.js"),n=o("../../../node_modules/graphlib/lib/data/priority-queue.js");e.exports=function(e,t){var o,i=new s,a={},d=new n;function l(e){var r=e.v===o?e.w:e.v,s=d.priority(r);if(void 0!==s){var n=t(e);n<s&&(a[r]=o,d.decrease(r,n))}}if(0===e.nodeCount())return i;r.each(e.nodes(),function(e){d.add(e,Number.POSITIVE_INFINITY),i.setNode(e)}),d.decrease(e.nodes()[0],0);for(var u=!1;d.size()>0;){if(o=d.removeMin(),r.has(a,o))i.setEdge(o,a[o]);else if(u)throw Error("Input graph is not connected: "+e);else u=!0;e.nodeEdges(o).forEach(l)}return i}},"../../../node_modules/graphlib/lib/alg/tarjan.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");e.exports=function(e){var t=0,o=[],s={},n=[];return e.nodes().forEach(function(i){r.has(s,i)||function i(a){var d=s[a]={onStack:!0,lowlink:t,index:t++};if(o.push(a),e.successors(a).forEach(function(e){r.has(s,e)?s[e].onStack&&(d.lowlink=Math.min(d.lowlink,s[e].index)):(i(e),d.lowlink=Math.min(d.lowlink,s[e].lowlink))}),d.lowlink===d.index){var l,u=[];do s[l=o.pop()].onStack=!1,u.push(l);while(a!==l);n.push(u)}}(i)}),n}},"../../../node_modules/graphlib/lib/alg/topsort.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");function s(e){var t={},o={},s=[];if(r.each(e.sinks(),function i(a){if(r.has(o,a))throw new n;r.has(t,a)||(o[a]=!0,t[a]=!0,r.each(e.predecessors(a),i),delete o[a],s.push(a))}),r.size(t)!==e.nodeCount())throw new n;return s}function n(){}e.exports=s,s.CycleException=n,n.prototype=Error()},"../../../node_modules/graphlib/lib/data/priority-queue.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js");function s(){this._arr=[],this._keyIndices={}}e.exports=s,s.prototype.size=function(){return this._arr.length},s.prototype.keys=function(){return this._arr.map(function(e){return e.key})},s.prototype.has=function(e){return r.has(this._keyIndices,e)},s.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},s.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},s.prototype.add=function(e,t){var o=this._keyIndices;if(e=String(e),!r.has(o,e)){var s=this._arr,n=s.length;return o[e]=n,s.push({key:e,priority:t}),this._decrease(n),!0}return!1},s.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},s.prototype.decrease=function(e,t){var o=this._keyIndices[e];if(t>this._arr[o].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[o].priority+" New: "+t);this._arr[o].priority=t,this._decrease(o)},s.prototype._heapify=function(e){var t=this._arr,o=2*e,r=o+1,s=e;o<t.length&&(s=t[o].priority<t[s].priority?o:s,r<t.length&&(s=t[r].priority<t[s].priority?r:s),s!==e&&(this._swap(e,s),this._heapify(s)))},s.prototype._decrease=function(e){for(var t,o=this._arr,r=o[e].priority;0!==e&&!(o[t=e>>1].priority<r);)this._swap(e,t),e=t},s.prototype._swap=function(e,t){var o=this._arr,r=this._keyIndices,s=o[e],n=o[t];o[e]=n,o[t]=s,r[n.key]=e,r[s.key]=t}},"../../../node_modules/graphlib/lib/graph.js":function(e,t,o){"use strict";var r=o("../../../node_modules/graphlib/lib/lodash.js");function s(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function n(e,t){e[t]?e[t]++:e[t]=1}function i(e,t){--e[t]||delete e[t]}function a(e,t,o,s){var n=""+t,i=""+o;if(!e&&n>i){var a=n;n=i,i=a}return n+"\x01"+i+"\x01"+(r.isUndefined(s)?"\0":s)}function d(e,t){return a(e,t.v,t.w,t.name)}e.exports=s,s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var o=arguments,s=this;return r.each(e,function(e){o.length>1?s.setNode(e,t):s.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var o=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),o),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),o),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{t+="";for(var o=t;!r.isUndefined(o);o=this.parent(o))if(o===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){var t;return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var o=this;r.each(this._nodes,function(o,r){e(r)&&t.setNode(r,o)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,o.edge(e))});var s={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var n=o.parent(r);return void 0===n||t.hasNode(n)?(s[r]=n,n):n in s?s[n]:e(n)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var o=this,s=arguments;return r.reduce(e,function(e,r){return s.length>1?o.setEdge(e,r,t):o.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,o,s,i=!1,d=arguments[0];"object"==typeof d&&null!==d&&"v"in d?(e=d.v,t=d.w,o=d.name,2==arguments.length&&(s=arguments[1],i=!0)):(e=d,t=arguments[1],o=arguments[3],arguments.length>2&&(s=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(o)||(o=""+o);var l=a(this._isDirected,e,t,o);if(r.has(this._edgeLabels,l))return i&&(this._edgeLabels[l]=s),this;if(!r.isUndefined(o)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=i?s:this._defaultEdgeLabelFn(e,t,o);var u=function(e,t,o,r){var s=""+t,n=""+o;if(!e&&s>n){var i=s;s=n,n=i}var a={v:s,w:n};return r&&(a.name=r),a}(this._isDirected,e,t,o);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[l]=u,n(this._preds[t],e),n(this._sucs[e],t),this._in[t][l]=u,this._out[e][l]=u,this._edgeCount++,this},s.prototype.edge=function(e,t,o){var r=1==arguments.length?d(this._isDirected,arguments[0]):a(this._isDirected,e,t,o);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,o){var s=1==arguments.length?d(this._isDirected,arguments[0]):a(this._isDirected,e,t,o);return r.has(this._edgeLabels,s)},s.prototype.removeEdge=function(e,t,o){var r=1==arguments.length?d(this._isDirected,arguments[0]):a(this._isDirected,e,t,o),s=this._edgeObjs[r];return s&&(e=s.v,t=s.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[t],e),i(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var o=this._in[e];if(o){var s=r.values(o);return t?r.filter(s,function(e){return e.v===t}):s}},s.prototype.outEdges=function(e,t){var o=this._out[e];if(o){var s=r.values(o);return t?r.filter(s,function(e){return e.w===t}):s}},s.prototype.nodeEdges=function(e,t){var o=this.inEdges(e,t);if(o)return o.concat(this.outEdges(e,t))}},"../../../node_modules/graphlib/lib/index.js":function(e,t,o){e.exports={Graph:o("../../../node_modules/graphlib/lib/graph.js"),version:o("../../../node_modules/graphlib/lib/version.js")}},"../../../node_modules/graphlib/lib/json.js":function(e,t,o){var r=o("../../../node_modules/graphlib/lib/lodash.js"),s=o("../../../node_modules/graphlib/lib/graph.js");e.exports={write:function(e){var t,o,s={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,r.map(t.nodes(),function(e){var o=t.node(e),s=t.parent(e),n={v:e};return r.isUndefined(o)||(n.value=o),r.isUndefined(s)||(n.parent=s),n})),edges:(o=e,r.map(o.edges(),function(e){var t=o.edge(e),s={v:e.v,w:e.w};return r.isUndefined(e.name)||(s.name=e.name),r.isUndefined(t)||(s.value=t),s}))};return r.isUndefined(e.graph())||(s.value=r.clone(e.graph())),s},read:function(e){var t=new s(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},"../../../node_modules/graphlib/lib/lodash.js":function(e,t,o){var r;try{r={clone:o("../../../node_modules/lodash/clone.js"),constant:o("../../../node_modules/lodash/constant.js"),each:o("../../../node_modules/lodash/each.js"),filter:o("../../../node_modules/lodash/filter.js"),has:o("../../../node_modules/lodash/has.js"),isArray:o("../../../node_modules/lodash/isArray.js"),isEmpty:o("../../../node_modules/lodash/isEmpty.js"),isFunction:o("../../../node_modules/lodash/isFunction.js"),isUndefined:o("../../../node_modules/lodash/isUndefined.js"),keys:o("../../../node_modules/lodash/keys.js"),map:o("../../../node_modules/lodash/map.js"),reduce:o("../../../node_modules/lodash/reduce.js"),size:o("../../../node_modules/lodash/size.js"),transform:o("../../../node_modules/lodash/transform.js"),union:o("../../../node_modules/lodash/union.js"),values:o("../../../node_modules/lodash/values.js")}}catch(e){}r||(r=window._),e.exports=r},"../../../node_modules/graphlib/lib/version.js":function(e){e.exports="2.1.8"},"../../../node_modules/is-any-array/lib-esm/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,{isAnyArray:()=>s});let r=Object.prototype.toString;function s(e){let t=r.call(e);return t.endsWith("Array]")&&!t.includes("Big")}},"../../../node_modules/lodash/_DataView.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(o("../../../node_modules/lodash/_root.js"),"DataView")},"../../../node_modules/lodash/_Hash.js":function(e,t,o){var r=o("../../../node_modules/lodash/_hashClear.js"),s=o("../../../node_modules/lodash/_hashDelete.js"),n=o("../../../node_modules/lodash/_hashGet.js"),i=o("../../../node_modules/lodash/_hashHas.js"),a=o("../../../node_modules/lodash/_hashSet.js");function d(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=s,d.prototype.get=n,d.prototype.has=i,d.prototype.set=a,e.exports=d},"../../../node_modules/lodash/_ListCache.js":function(e,t,o){var r=o("../../../node_modules/lodash/_listCacheClear.js"),s=o("../../../node_modules/lodash/_listCacheDelete.js"),n=o("../../../node_modules/lodash/_listCacheGet.js"),i=o("../../../node_modules/lodash/_listCacheHas.js"),a=o("../../../node_modules/lodash/_listCacheSet.js");function d(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=s,d.prototype.get=n,d.prototype.has=i,d.prototype.set=a,e.exports=d},"../../../node_modules/lodash/_Map.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(o("../../../node_modules/lodash/_root.js"),"Map")},"../../../node_modules/lodash/_MapCache.js":function(e,t,o){var r=o("../../../node_modules/lodash/_mapCacheClear.js"),s=o("../../../node_modules/lodash/_mapCacheDelete.js"),n=o("../../../node_modules/lodash/_mapCacheGet.js"),i=o("../../../node_modules/lodash/_mapCacheHas.js"),a=o("../../../node_modules/lodash/_mapCacheSet.js");function d(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=s,d.prototype.get=n,d.prototype.has=i,d.prototype.set=a,e.exports=d},"../../../node_modules/lodash/_Promise.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(o("../../../node_modules/lodash/_root.js"),"Promise")},"../../../node_modules/lodash/_Set.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(o("../../../node_modules/lodash/_root.js"),"Set")},"../../../node_modules/lodash/_SetCache.js":function(e,t,o){var r=o("../../../node_modules/lodash/_MapCache.js"),s=o("../../../node_modules/lodash/_setCacheAdd.js"),n=o("../../../node_modules/lodash/_setCacheHas.js");function i(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new r;++t<o;)this.add(e[t])}i.prototype.add=i.prototype.push=s,i.prototype.has=n,e.exports=i},"../../../node_modules/lodash/_Stack.js":function(e,t,o){var r=o("../../../node_modules/lodash/_ListCache.js"),s=o("../../../node_modules/lodash/_stackClear.js"),n=o("../../../node_modules/lodash/_stackDelete.js"),i=o("../../../node_modules/lodash/_stackGet.js"),a=o("../../../node_modules/lodash/_stackHas.js"),d=o("../../../node_modules/lodash/_stackSet.js");function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=a,l.prototype.set=d,e.exports=l},"../../../node_modules/lodash/_Symbol.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_root.js").Symbol},"../../../node_modules/lodash/_Uint8Array.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_root.js").Uint8Array},"../../../node_modules/lodash/_WeakMap.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(o("../../../node_modules/lodash/_root.js"),"WeakMap")},"../../../node_modules/lodash/_apply.js":function(e){e.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}},"../../../node_modules/lodash/_arrayEach.js":function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!1!==t(e[o],o,e););return e}},"../../../node_modules/lodash/_arrayFilter.js":function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,s=0,n=[];++o<r;){var i=e[o];t(i,o,e)&&(n[s++]=i)}return n}},"../../../node_modules/lodash/_arrayIncludes.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},"../../../node_modules/lodash/_arrayIncludesWith.js":function(e){e.exports=function(e,t,o){for(var r=-1,s=null==e?0:e.length;++r<s;)if(o(t,e[r]))return!0;return!1}},"../../../node_modules/lodash/_arrayLikeKeys.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseTimes.js"),s=o("../../../node_modules/lodash/isArguments.js"),n=o("../../../node_modules/lodash/isArray.js"),i=o("../../../node_modules/lodash/isBuffer.js"),a=o("../../../node_modules/lodash/_isIndex.js"),d=o("../../../node_modules/lodash/isTypedArray.js"),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=n(e),u=!o&&s(e),h=!o&&!u&&i(e),c=!o&&!u&&!h&&d(e),f=o||u||h||c,g=f?r(e.length,String):[],m=g.length;for(var p in e)(t||l.call(e,p))&&!(f&&("length"==p||h&&("offset"==p||"parent"==p)||c&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||a(p,m)))&&g.push(p);return g}},"../../../node_modules/lodash/_arrayMap.js":function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,s=Array(r);++o<r;)s[o]=t(e[o],o,e);return s}},"../../../node_modules/lodash/_arrayPush.js":function(e){e.exports=function(e,t){for(var o=-1,r=t.length,s=e.length;++o<r;)e[s+o]=t[o];return e}},"../../../node_modules/lodash/_arrayReduce.js":function(e){e.exports=function(e,t,o,r){var s=-1,n=null==e?0:e.length;for(r&&n&&(o=e[++s]);++s<n;)o=t(o,e[s],s,e);return o}},"../../../node_modules/lodash/_arraySome.js":function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1}},"../../../node_modules/lodash/_asciiSize.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_baseProperty.js")("length")},"../../../node_modules/lodash/_assignMergeValue.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseAssignValue.js"),s=o("../../../node_modules/lodash/eq.js");e.exports=function(e,t,o){(void 0===o||s(e[t],o))&&(void 0!==o||t in e)||r(e,t,o)}},"../../../node_modules/lodash/_assignValue.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseAssignValue.js"),s=o("../../../node_modules/lodash/eq.js"),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var i=e[t];n.call(e,t)&&s(i,o)&&(void 0!==o||t in e)||r(e,t,o)}},"../../../node_modules/lodash/_assocIndexOf.js":function(e,t,o){var r=o("../../../node_modules/lodash/eq.js");e.exports=function(e,t){for(var o=e.length;o--;)if(r(e[o][0],t))return o;return -1}},"../../../node_modules/lodash/_baseAssign.js":function(e,t,o){var r=o("../../../node_modules/lodash/_copyObject.js"),s=o("../../../node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(t,s(t),e)}},"../../../node_modules/lodash/_baseAssignIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_copyObject.js"),s=o("../../../node_modules/lodash/keysIn.js");e.exports=function(e,t){return e&&r(t,s(t),e)}},"../../../node_modules/lodash/_baseAssignValue.js":function(e,t,o){var r=o("../../../node_modules/lodash/_defineProperty.js");e.exports=function(e,t,o){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},"../../../node_modules/lodash/_baseClone.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Stack.js"),s=o("../../../node_modules/lodash/_arrayEach.js"),n=o("../../../node_modules/lodash/_assignValue.js"),i=o("../../../node_modules/lodash/_baseAssign.js"),a=o("../../../node_modules/lodash/_baseAssignIn.js"),d=o("../../../node_modules/lodash/_cloneBuffer.js"),l=o("../../../node_modules/lodash/_copyArray.js"),u=o("../../../node_modules/lodash/_copySymbols.js"),h=o("../../../node_modules/lodash/_copySymbolsIn.js"),c=o("../../../node_modules/lodash/_getAllKeys.js"),f=o("../../../node_modules/lodash/_getAllKeysIn.js"),g=o("../../../node_modules/lodash/_getTag.js"),m=o("../../../node_modules/lodash/_initCloneArray.js"),p=o("../../../node_modules/lodash/_initCloneByTag.js"),_=o("../../../node_modules/lodash/_initCloneObject.js"),v=o("../../../node_modules/lodash/isArray.js"),y=o("../../../node_modules/lodash/isBuffer.js"),b=o("../../../node_modules/lodash/isMap.js"),j=o("../../../node_modules/lodash/isObject.js"),x=o("../../../node_modules/lodash/isSet.js"),w=o("../../../node_modules/lodash/keys.js"),E=o("../../../node_modules/lodash/keysIn.js"),M="[object Arguments]",N="[object Function]",k="[object Object]",A={};A[M]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[k]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[N]=A["[object WeakMap]"]=!1,e.exports=function e(t,o,S,O,z,I){var R,C=1&o,P=2&o,T=4&o;if(S&&(R=z?S(t,O,z,I):S(t)),void 0!==R)return R;if(!j(t))return t;var D=v(t);if(D){if(R=m(t),!C)return l(t,R)}else{var Z=g(t),q=Z==N||"[object GeneratorFunction]"==Z;if(y(t))return d(t,C);if(Z==k||Z==M||q&&!z){if(R=P||q?{}:_(t),!C)return P?h(t,a(R,t)):u(t,i(R,t))}else{if(!A[Z])return z?t:{};R=p(t,Z,C)}}I||(I=new r);var L=I.get(t);if(L)return L;I.set(t,R),x(t)?t.forEach(function(r){R.add(e(r,o,S,r,t,I))}):b(t)&&t.forEach(function(r,s){R.set(s,e(r,o,S,s,t,I))});var F=T?P?f:c:P?E:w,V=D?void 0:F(t);return s(V||t,function(r,s){V&&(r=t[s=r]),n(R,s,e(r,o,S,s,t,I))}),R}},"../../../node_modules/lodash/_baseCreate.js":function(e,t,o){var r=o("../../../node_modules/lodash/isObject.js"),s=Object.create;e.exports=function(){function e(){}return function(t){if(!r(t))return{};if(s)return s(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}()},"../../../node_modules/lodash/_baseEach.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseForOwn.js");e.exports=o("../../../node_modules/lodash/_createBaseEach.js")(r)},"../../../node_modules/lodash/_baseExtremum.js":function(e,t,o){var r=o("../../../node_modules/lodash/isSymbol.js");e.exports=function(e,t,o){for(var s=-1,n=e.length;++s<n;){var i=e[s],a=t(i);if(null!=a&&(void 0===d?a==a&&!r(a):o(a,d)))var d=a,l=i}return l}},"../../../node_modules/lodash/_baseFilter.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseEach.js");e.exports=function(e,t){var o=[];return r(e,function(e,r,s){t(e,r,s)&&o.push(e)}),o}},"../../../node_modules/lodash/_baseFindIndex.js":function(e){e.exports=function(e,t,o,r){for(var s=e.length,n=o+(r?1:-1);r?n--:++n<s;)if(t(e[n],n,e))return n;return -1}},"../../../node_modules/lodash/_baseFlatten.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayPush.js"),s=o("../../../node_modules/lodash/_isFlattenable.js");e.exports=function e(t,o,n,i,a){var d=-1,l=t.length;for(n||(n=s),a||(a=[]);++d<l;){var u=t[d];o>0&&n(u)?o>1?e(u,o-1,n,i,a):r(a,u):i||(a[a.length]=u)}return a}},"../../../node_modules/lodash/_baseFor.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_createBaseFor.js")()},"../../../node_modules/lodash/_baseForOwn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFor.js"),s=o("../../../node_modules/lodash/keys.js");e.exports=function(e,t){return e&&r(e,t,s)}},"../../../node_modules/lodash/_baseGet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_castPath.js"),s=o("../../../node_modules/lodash/_toKey.js");e.exports=function(e,t){t=r(t,e);for(var o=0,n=t.length;null!=e&&o<n;)e=e[s(t[o++])];return o&&o==n?e:void 0}},"../../../node_modules/lodash/_baseGetAllKeys.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayPush.js"),s=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t,o){var n=t(e);return s(e)?n:r(n,o(e))}},"../../../node_modules/lodash/_baseGetTag.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=o("../../../node_modules/lodash/_getRawTag.js"),n=o("../../../node_modules/lodash/_objectToString.js"),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?s(e):n(e)}},"../../../node_modules/lodash/_baseGt.js":function(e){e.exports=function(e,t){return e>t}},"../../../node_modules/lodash/_baseHas.js":function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,o){return null!=e&&t.call(e,o)}},"../../../node_modules/lodash/_baseHasIn.js":function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},"../../../node_modules/lodash/_baseIndexOf.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFindIndex.js"),s=o("../../../node_modules/lodash/_baseIsNaN.js"),n=o("../../../node_modules/lodash/_strictIndexOf.js");e.exports=function(e,t,o){return t==t?n(e,t,o):r(e,s,o)}},"../../../node_modules/lodash/_baseIsArguments.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},"../../../node_modules/lodash/_baseIsEqual.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsEqualDeep.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function e(t,o,n,i,a){return t===o||(null!=t&&null!=o&&(s(t)||s(o))?r(t,o,n,i,e,a):t!=t&&o!=o)}},"../../../node_modules/lodash/_baseIsEqualDeep.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Stack.js"),s=o("../../../node_modules/lodash/_equalArrays.js"),n=o("../../../node_modules/lodash/_equalByTag.js"),i=o("../../../node_modules/lodash/_equalObjects.js"),a=o("../../../node_modules/lodash/_getTag.js"),d=o("../../../node_modules/lodash/isArray.js"),l=o("../../../node_modules/lodash/isBuffer.js"),u=o("../../../node_modules/lodash/isTypedArray.js"),h="[object Arguments]",c="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,m,p,_){var v=d(e),y=d(t),b=v?c:a(e),j=y?c:a(t);b=b==h?f:b,j=j==h?f:j;var x=b==f,w=j==f,E=b==j;if(E&&l(e)){if(!l(t))return!1;v=!0,x=!1}if(E&&!x)return _||(_=new r),v||u(e)?s(e,t,o,m,p,_):n(e,t,b,o,m,p,_);if(!(1&o)){var M=x&&g.call(e,"__wrapped__"),N=w&&g.call(t,"__wrapped__");if(M||N){var k=M?e.value():e,A=N?t.value():t;return _||(_=new r),p(k,A,o,m,_)}}return!!E&&(_||(_=new r),i(e,t,o,m,p,_))}},"../../../node_modules/lodash/_baseIsMap.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getTag.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return s(e)&&"[object Map]"==r(e)}},"../../../node_modules/lodash/_baseIsMatch.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Stack.js"),s=o("../../../node_modules/lodash/_baseIsEqual.js");e.exports=function(e,t,o,n){var i=o.length,a=i,d=!n;if(null==e)return!a;for(e=Object(e);i--;){var l=o[i];if(d&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=o[i])[0],h=e[u],c=l[1];if(d&&l[2]){if(void 0===h&&!(u in e))return!1}else{var f=new r;if(n)var g=n(h,c,u,e,t,f);if(!(void 0===g?s(c,h,3,n,f):g))return!1}}return!0}},"../../../node_modules/lodash/_baseIsNaN.js":function(e){e.exports=function(e){return e!=e}},"../../../node_modules/lodash/_baseIsNative.js":function(e,t,o){var r=o("../../../node_modules/lodash/isFunction.js"),s=o("../../../node_modules/lodash/_isMasked.js"),n=o("../../../node_modules/lodash/isObject.js"),i=o("../../../node_modules/lodash/_toSource.js"),a=/^\[object .+?Constructor\]$/,d=Object.prototype,l=Function.prototype.toString,u=d.hasOwnProperty,h=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!n(e)||s(e))&&(r(e)?h:a).test(i(e))}},"../../../node_modules/lodash/_baseIsSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getTag.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return s(e)&&"[object Set]"==r(e)}},"../../../node_modules/lodash/_baseIsTypedArray.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/isLength.js"),n=o("../../../node_modules/lodash/isObjectLike.js"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return n(e)&&s(e.length)&&!!i[r(e)]}},"../../../node_modules/lodash/_baseIteratee.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseMatches.js"),s=o("../../../node_modules/lodash/_baseMatchesProperty.js"),n=o("../../../node_modules/lodash/identity.js"),i=o("../../../node_modules/lodash/isArray.js"),a=o("../../../node_modules/lodash/property.js");e.exports=function(e){return"function"==typeof e?e:null==e?n:"object"==typeof e?i(e)?s(e[0],e[1]):r(e):a(e)}},"../../../node_modules/lodash/_baseKeys.js":function(e,t,o){var r=o("../../../node_modules/lodash/_isPrototype.js"),s=o("../../../node_modules/lodash/_nativeKeys.js"),n=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var o in Object(e))n.call(e,o)&&"constructor"!=o&&t.push(o);return t}},"../../../node_modules/lodash/_baseKeysIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/isObject.js"),s=o("../../../node_modules/lodash/_isPrototype.js"),n=o("../../../node_modules/lodash/_nativeKeysIn.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=s(e),o=[];for(var a in e)"constructor"==a&&(t||!i.call(e,a))||o.push(a);return o}},"../../../node_modules/lodash/_baseLt.js":function(e){e.exports=function(e,t){return e<t}},"../../../node_modules/lodash/_baseMap.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseEach.js"),s=o("../../../node_modules/lodash/isArrayLike.js");e.exports=function(e,t){var o=-1,n=s(e)?Array(e.length):[];return r(e,function(e,r,s){n[++o]=t(e,r,s)}),n}},"../../../node_modules/lodash/_baseMatches.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsMatch.js"),s=o("../../../node_modules/lodash/_getMatchData.js"),n=o("../../../node_modules/lodash/_matchesStrictComparable.js");e.exports=function(e){var t=s(e);return 1==t.length&&t[0][2]?n(t[0][0],t[0][1]):function(o){return o===e||r(o,e,t)}}},"../../../node_modules/lodash/_baseMatchesProperty.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsEqual.js"),s=o("../../../node_modules/lodash/get.js"),n=o("../../../node_modules/lodash/hasIn.js"),i=o("../../../node_modules/lodash/_isKey.js"),a=o("../../../node_modules/lodash/_isStrictComparable.js"),d=o("../../../node_modules/lodash/_matchesStrictComparable.js"),l=o("../../../node_modules/lodash/_toKey.js");e.exports=function(e,t){return i(e)&&a(t)?d(l(e),t):function(o){var i=s(o,e);return void 0===i&&i===t?n(o,e):r(t,i,3)}}},"../../../node_modules/lodash/_baseMerge.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Stack.js"),s=o("../../../node_modules/lodash/_assignMergeValue.js"),n=o("../../../node_modules/lodash/_baseFor.js"),i=o("../../../node_modules/lodash/_baseMergeDeep.js"),a=o("../../../node_modules/lodash/isObject.js"),d=o("../../../node_modules/lodash/keysIn.js"),l=o("../../../node_modules/lodash/_safeGet.js");e.exports=function e(t,o,u,h,c){t!==o&&n(o,function(n,d){if(c||(c=new r),a(n))i(t,o,d,u,e,h,c);else{var f=h?h(l(t,d),n,d+"",t,o,c):void 0;void 0===f&&(f=n),s(t,d,f)}},d)}},"../../../node_modules/lodash/_baseMergeDeep.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assignMergeValue.js"),s=o("../../../node_modules/lodash/_cloneBuffer.js"),n=o("../../../node_modules/lodash/_cloneTypedArray.js"),i=o("../../../node_modules/lodash/_copyArray.js"),a=o("../../../node_modules/lodash/_initCloneObject.js"),d=o("../../../node_modules/lodash/isArguments.js"),l=o("../../../node_modules/lodash/isArray.js"),u=o("../../../node_modules/lodash/isArrayLikeObject.js"),h=o("../../../node_modules/lodash/isBuffer.js"),c=o("../../../node_modules/lodash/isFunction.js"),f=o("../../../node_modules/lodash/isObject.js"),g=o("../../../node_modules/lodash/isPlainObject.js"),m=o("../../../node_modules/lodash/isTypedArray.js"),p=o("../../../node_modules/lodash/_safeGet.js"),_=o("../../../node_modules/lodash/toPlainObject.js");e.exports=function(e,t,o,v,y,b,j){var x=p(e,o),w=p(t,o),E=j.get(w);if(E)return void r(e,o,E);var M=b?b(x,w,o+"",e,t,j):void 0,N=void 0===M;if(N){var k=l(w),A=!k&&h(w),S=!k&&!A&&m(w);M=w,k||A||S?l(x)?M=x:u(x)?M=i(x):A?(N=!1,M=s(w,!0)):S?(N=!1,M=n(w,!0)):M=[]:g(w)||d(w)?(M=x,d(x)?M=_(x):(!f(x)||c(x))&&(M=a(w))):N=!1}N&&(j.set(w,M),y(M,w,v,b,j),j.delete(w)),r(e,o,M)}},"../../../node_modules/lodash/_baseOrderBy.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayMap.js"),s=o("../../../node_modules/lodash/_baseGet.js"),n=o("../../../node_modules/lodash/_baseIteratee.js"),i=o("../../../node_modules/lodash/_baseMap.js"),a=o("../../../node_modules/lodash/_baseSortBy.js"),d=o("../../../node_modules/lodash/_baseUnary.js"),l=o("../../../node_modules/lodash/_compareMultiple.js"),u=o("../../../node_modules/lodash/identity.js"),h=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t,o){t=t.length?r(t,function(e){return h(e)?function(t){return s(t,1===e.length?e[0]:e)}:e}):[u];var c=-1;return t=r(t,d(n)),a(i(e,function(e,o,s){return{criteria:r(t,function(t){return t(e)}),index:++c,value:e}}),function(e,t){return l(e,t,o)})}},"../../../node_modules/lodash/_basePick.js":function(e,t,o){var r=o("../../../node_modules/lodash/_basePickBy.js"),s=o("../../../node_modules/lodash/hasIn.js");e.exports=function(e,t){return r(e,t,function(t,o){return s(e,o)})}},"../../../node_modules/lodash/_basePickBy.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGet.js"),s=o("../../../node_modules/lodash/_baseSet.js"),n=o("../../../node_modules/lodash/_castPath.js");e.exports=function(e,t,o){for(var i=-1,a=t.length,d={};++i<a;){var l=t[i],u=r(e,l);o(u,l)&&s(d,n(l,e),u)}return d}},"../../../node_modules/lodash/_baseProperty.js":function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},"../../../node_modules/lodash/_basePropertyDeep.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGet.js");e.exports=function(e){return function(t){return r(t,e)}}},"../../../node_modules/lodash/_baseRange.js":function(e){var t=Math.ceil,o=Math.max;e.exports=function(e,r,s,n){for(var i=-1,a=o(t((r-e)/(s||1)),0),d=Array(a);a--;)d[n?a:++i]=e,e+=s;return d}},"../../../node_modules/lodash/_baseReduce.js":function(e){e.exports=function(e,t,o,r,s){return s(e,function(e,s,n){o=r?(r=!1,e):t(o,e,s,n)}),o}},"../../../node_modules/lodash/_baseRest.js":function(e,t,o){var r=o("../../../node_modules/lodash/identity.js"),s=o("../../../node_modules/lodash/_overRest.js"),n=o("../../../node_modules/lodash/_setToString.js");e.exports=function(e,t){return n(s(e,t,r),e+"")}},"../../../node_modules/lodash/_baseSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assignValue.js"),s=o("../../../node_modules/lodash/_castPath.js"),n=o("../../../node_modules/lodash/_isIndex.js"),i=o("../../../node_modules/lodash/isObject.js"),a=o("../../../node_modules/lodash/_toKey.js");e.exports=function(e,t,o,d){if(!i(e))return e;t=s(t,e);for(var l=-1,u=t.length,h=u-1,c=e;null!=c&&++l<u;){var f=a(t[l]),g=o;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(l!=h){var m=c[f];void 0===(g=d?d(m,f,c):void 0)&&(g=i(m)?m:n(t[l+1])?[]:{})}r(c,f,g),c=c[f]}return e}},"../../../node_modules/lodash/_baseSetToString.js":function(e,t,o){var r=o("../../../node_modules/lodash/constant.js"),s=o("../../../node_modules/lodash/_defineProperty.js"),n=o("../../../node_modules/lodash/identity.js");e.exports=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:n},"../../../node_modules/lodash/_baseSortBy.js":function(e){e.exports=function(e,t){var o=e.length;for(e.sort(t);o--;)e[o]=e[o].value;return e}},"../../../node_modules/lodash/_baseTimes.js":function(e){e.exports=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}},"../../../node_modules/lodash/_baseToString.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=o("../../../node_modules/lodash/_arrayMap.js"),n=o("../../../node_modules/lodash/isArray.js"),i=o("../../../node_modules/lodash/isSymbol.js"),a=1/0,d=r?r.prototype:void 0,l=d?d.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(n(t))return s(t,e)+"";if(i(t))return l?l.call(t):"";var o=t+"";return"0"==o&&1/t==-a?"-0":o}},"../../../node_modules/lodash/_baseTrim.js":function(e,t,o){var r=o("../../../node_modules/lodash/_trimmedEndIndex.js"),s=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(s,""):e}},"../../../node_modules/lodash/_baseUnary.js":function(e){e.exports=function(e){return function(t){return e(t)}}},"../../../node_modules/lodash/_baseUniq.js":function(e,t,o){var r=o("../../../node_modules/lodash/_SetCache.js"),s=o("../../../node_modules/lodash/_arrayIncludes.js"),n=o("../../../node_modules/lodash/_arrayIncludesWith.js"),i=o("../../../node_modules/lodash/_cacheHas.js"),a=o("../../../node_modules/lodash/_createSet.js"),d=o("../../../node_modules/lodash/_setToArray.js");e.exports=function(e,t,o){var l=-1,u=s,h=e.length,c=!0,f=[],g=f;if(o)c=!1,u=n;else if(h>=200){var m=t?null:a(e);if(m)return d(m);c=!1,u=i,g=new r}else g=t?[]:f;e:for(;++l<h;){var p=e[l],_=t?t(p):p;if(p=o||0!==p?p:0,c&&_==_){for(var v=g.length;v--;)if(g[v]===_)continue e;t&&g.push(_),f.push(p)}else u(g,_,o)||(g!==f&&g.push(_),f.push(p))}return f}},"../../../node_modules/lodash/_baseValues.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayMap.js");e.exports=function(e,t){return r(t,function(t){return e[t]})}},"../../../node_modules/lodash/_baseZipObject.js":function(e){e.exports=function(e,t,o){for(var r=-1,s=e.length,n=t.length,i={};++r<s;){var a=r<n?t[r]:void 0;o(i,e[r],a)}return i}},"../../../node_modules/lodash/_cacheHas.js":function(e){e.exports=function(e,t){return e.has(t)}},"../../../node_modules/lodash/_castFunction.js":function(e,t,o){var r=o("../../../node_modules/lodash/identity.js");e.exports=function(e){return"function"==typeof e?e:r}},"../../../node_modules/lodash/_castPath.js":function(e,t,o){var r=o("../../../node_modules/lodash/isArray.js"),s=o("../../../node_modules/lodash/_isKey.js"),n=o("../../../node_modules/lodash/_stringToPath.js"),i=o("../../../node_modules/lodash/toString.js");e.exports=function(e,t){return r(e)?e:s(e,t)?[e]:n(i(e))}},"../../../node_modules/lodash/_cloneArrayBuffer.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Uint8Array.js");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},"../../../node_modules/lodash/_cloneBuffer.js":function(e,t,o){e=o.nmd(e);var r=o("../../../node_modules/lodash/_root.js"),s=t&&!t.nodeType&&t,n=s&&e&&!e.nodeType&&e,i=n&&n.exports===s?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,r=a?a(o):new e.constructor(o);return e.copy(r),r}},"../../../node_modules/lodash/_cloneDataView.js":function(e,t,o){var r=o("../../../node_modules/lodash/_cloneArrayBuffer.js");e.exports=function(e,t){var o=t?r(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}},"../../../node_modules/lodash/_cloneRegExp.js":function(e){var t=/\w*$/;e.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}},"../../../node_modules/lodash/_cloneSymbol.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=r?r.prototype:void 0,n=s?s.valueOf:void 0;e.exports=function(e){return n?Object(n.call(e)):{}}},"../../../node_modules/lodash/_cloneTypedArray.js":function(e,t,o){var r=o("../../../node_modules/lodash/_cloneArrayBuffer.js");e.exports=function(e,t){var o=t?r(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},"../../../node_modules/lodash/_compareAscending.js":function(e,t,o){var r=o("../../../node_modules/lodash/isSymbol.js");e.exports=function(e,t){if(e!==t){var o=void 0!==e,s=null===e,n=e==e,i=r(e),a=void 0!==t,d=null===t,l=t==t,u=r(t);if(!d&&!u&&!i&&e>t||i&&a&&l&&!d&&!u||s&&a&&l||!o&&l||!n)return 1;if(!s&&!i&&!u&&e<t||u&&o&&n&&!s&&!i||d&&o&&n||!a&&n||!l)return -1}return 0}},"../../../node_modules/lodash/_compareMultiple.js":function(e,t,o){var r=o("../../../node_modules/lodash/_compareAscending.js");e.exports=function(e,t,o){for(var s=-1,n=e.criteria,i=t.criteria,a=n.length,d=o.length;++s<a;){var l=r(n[s],i[s]);if(l){if(s>=d)return l;return l*("desc"==o[s]?-1:1)}}return e.index-t.index}},"../../../node_modules/lodash/_copyArray.js":function(e){e.exports=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}},"../../../node_modules/lodash/_copyObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assignValue.js"),s=o("../../../node_modules/lodash/_baseAssignValue.js");e.exports=function(e,t,o,n){var i=!o;o||(o={});for(var a=-1,d=t.length;++a<d;){var l=t[a],u=n?n(o[l],e[l],l,o,e):void 0;void 0===u&&(u=e[l]),i?s(o,l,u):r(o,l,u)}return o}},"../../../node_modules/lodash/_copySymbols.js":function(e,t,o){var r=o("../../../node_modules/lodash/_copyObject.js"),s=o("../../../node_modules/lodash/_getSymbols.js");e.exports=function(e,t){return r(e,s(e),t)}},"../../../node_modules/lodash/_copySymbolsIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_copyObject.js"),s=o("../../../node_modules/lodash/_getSymbolsIn.js");e.exports=function(e,t){return r(e,s(e),t)}},"../../../node_modules/lodash/_coreJsData.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_root.js")["__core-js_shared__"]},"../../../node_modules/lodash/_createAssigner.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseRest.js"),s=o("../../../node_modules/lodash/_isIterateeCall.js");e.exports=function(e){return r(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,a=n>2?o[2]:void 0;for(i=e.length>3&&"function"==typeof i?(n--,i):void 0,a&&s(o[0],o[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var d=o[r];d&&e(t,d,r,i)}return t})}},"../../../node_modules/lodash/_createBaseEach.js":function(e,t,o){var r=o("../../../node_modules/lodash/isArrayLike.js");e.exports=function(e,t){return function(o,s){if(null==o)return o;if(!r(o))return e(o,s);for(var n=o.length,i=t?n:-1,a=Object(o);(t?i--:++i<n)&&!1!==s(a[i],i,a););return o}}},"../../../node_modules/lodash/_createBaseFor.js":function(e){e.exports=function(e){return function(t,o,r){for(var s=-1,n=Object(t),i=r(t),a=i.length;a--;){var d=i[e?a:++s];if(!1===o(n[d],d,n))break}return t}}},"../../../node_modules/lodash/_createFind.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIteratee.js"),s=o("../../../node_modules/lodash/isArrayLike.js"),n=o("../../../node_modules/lodash/keys.js");e.exports=function(e){return function(t,o,i){var a=Object(t);if(!s(t)){var d=r(o,3);t=n(t),o=function(e){return d(a[e],e,a)}}var l=e(t,o,i);return l>-1?a[d?t[l]:l]:void 0}}},"../../../node_modules/lodash/_createRange.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseRange.js"),s=o("../../../node_modules/lodash/_isIterateeCall.js"),n=o("../../../node_modules/lodash/toFinite.js");e.exports=function(e){return function(t,o,i){return i&&"number"!=typeof i&&s(t,o,i)&&(o=i=void 0),t=n(t),void 0===o?(o=t,t=0):o=n(o),i=void 0===i?t<o?1:-1:n(i),r(t,o,i,e)}}},"../../../node_modules/lodash/_createSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Set.js"),s=o("../../../node_modules/lodash/noop.js"),n=o("../../../node_modules/lodash/_setToArray.js");e.exports=r&&1/n(new r([,-0]))[1]==1/0?function(e){return new r(e)}:s},"../../../node_modules/lodash/_defineProperty.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getNative.js");e.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"../../../node_modules/lodash/_equalArrays.js":function(e,t,o){var r=o("../../../node_modules/lodash/_SetCache.js"),s=o("../../../node_modules/lodash/_arraySome.js"),n=o("../../../node_modules/lodash/_cacheHas.js");e.exports=function(e,t,o,i,a,d){var l=1&o,u=e.length,h=t.length;if(u!=h&&!(l&&h>u))return!1;var c=d.get(e),f=d.get(t);if(c&&f)return c==t&&f==e;var g=-1,m=!0,p=2&o?new r:void 0;for(d.set(e,t),d.set(t,e);++g<u;){var _=e[g],v=t[g];if(i)var y=l?i(v,_,g,t,e,d):i(_,v,g,e,t,d);if(void 0!==y){if(y)continue;m=!1;break}if(p){if(!s(t,function(e,t){if(!n(p,t)&&(_===e||a(_,e,o,i,d)))return p.push(t)})){m=!1;break}}else if(!(_===v||a(_,v,o,i,d))){m=!1;break}}return d.delete(e),d.delete(t),m}},"../../../node_modules/lodash/_equalByTag.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=o("../../../node_modules/lodash/_Uint8Array.js"),n=o("../../../node_modules/lodash/eq.js"),i=o("../../../node_modules/lodash/_equalArrays.js"),a=o("../../../node_modules/lodash/_mapToArray.js"),d=o("../../../node_modules/lodash/_setToArray.js"),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,o,r,l,h,c){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!h(new s(e),new s(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var g=1&r;if(f||(f=d),e.size!=t.size&&!g)break;var m=c.get(e);if(m)return m==t;r|=2,c.set(e,t);var p=i(f(e),f(t),r,l,h,c);return c.delete(e),p;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},"../../../node_modules/lodash/_equalObjects.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getAllKeys.js"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,n,i,a){var d=1&o,l=r(e),u=l.length;if(u!=r(t).length&&!d)return!1;for(var h=u;h--;){var c=l[h];if(!(d?c in t:s.call(t,c)))return!1}var f=a.get(e),g=a.get(t);if(f&&g)return f==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var p=d;++h<u;){var _=e[c=l[h]],v=t[c];if(n)var y=d?n(v,_,c,t,e,a):n(_,v,c,e,t,a);if(!(void 0===y?_===v||i(_,v,o,n,a):y)){m=!1;break}p||(p="constructor"==c)}if(m&&!p){var b=e.constructor,j=t.constructor;b!=j&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof j&&j instanceof j)&&(m=!1)}return a.delete(e),a.delete(t),m}},"../../../node_modules/lodash/_flatRest.js":function(e,t,o){var r=o("../../../node_modules/lodash/flatten.js"),s=o("../../../node_modules/lodash/_overRest.js"),n=o("../../../node_modules/lodash/_setToString.js");e.exports=function(e){return n(s(e,void 0,r),e+"")}},"../../../node_modules/lodash/_freeGlobal.js":function(e,t,o){e.exports="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g},"../../../node_modules/lodash/_getAllKeys.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetAllKeys.js"),s=o("../../../node_modules/lodash/_getSymbols.js"),n=o("../../../node_modules/lodash/keys.js");e.exports=function(e){return r(e,n,s)}},"../../../node_modules/lodash/_getAllKeysIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetAllKeys.js"),s=o("../../../node_modules/lodash/_getSymbolsIn.js"),n=o("../../../node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,n,s)}},"../../../node_modules/lodash/_getMapData.js":function(e,t,o){var r=o("../../../node_modules/lodash/_isKeyable.js");e.exports=function(e,t){var o=e.__data__;return r(t)?o["string"==typeof t?"string":"hash"]:o.map}},"../../../node_modules/lodash/_getMatchData.js":function(e,t,o){var r=o("../../../node_modules/lodash/_isStrictComparable.js"),s=o("../../../node_modules/lodash/keys.js");e.exports=function(e){for(var t=s(e),o=t.length;o--;){var n=t[o],i=e[n];t[o]=[n,i,r(i)]}return t}},"../../../node_modules/lodash/_getNative.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsNative.js"),s=o("../../../node_modules/lodash/_getValue.js");e.exports=function(e,t){var o=s(e,t);return r(o)?o:void 0}},"../../../node_modules/lodash/_getPrototype.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_overArg.js")(Object.getPrototypeOf,Object)},"../../../node_modules/lodash/_getRawTag.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=Object.prototype,n=s.hasOwnProperty,i=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=n.call(e,a),o=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=i.call(e);return r&&(t?e[a]=o:delete e[a]),s}},"../../../node_modules/lodash/_getSymbols.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayFilter.js"),s=o("../../../node_modules/lodash/stubArray.js"),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;e.exports=i?function(e){return null==e?[]:r(i(e=Object(e)),function(t){return n.call(e,t)})}:s},"../../../node_modules/lodash/_getSymbolsIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayPush.js"),s=o("../../../node_modules/lodash/_getPrototype.js"),n=o("../../../node_modules/lodash/_getSymbols.js"),i=o("../../../node_modules/lodash/stubArray.js");e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,n(e)),e=s(e);return t}:i},"../../../node_modules/lodash/_getTag.js":function(e,t,o){var r=o("../../../node_modules/lodash/_DataView.js"),s=o("../../../node_modules/lodash/_Map.js"),n=o("../../../node_modules/lodash/_Promise.js"),i=o("../../../node_modules/lodash/_Set.js"),a=o("../../../node_modules/lodash/_WeakMap.js"),d=o("../../../node_modules/lodash/_baseGetTag.js"),l=o("../../../node_modules/lodash/_toSource.js"),u="[object Map]",h="[object Promise]",c="[object Set]",f="[object WeakMap]",g="[object DataView]",m=l(r),p=l(s),_=l(n),v=l(i),y=l(a),b=d;(r&&b(new r(new ArrayBuffer(1)))!=g||s&&b(new s)!=u||n&&b(n.resolve())!=h||i&&b(new i)!=c||a&&b(new a)!=f)&&(b=function(e){var t=d(e),o="[object Object]"==t?e.constructor:void 0,r=o?l(o):"";if(r)switch(r){case m:return g;case p:return u;case _:return h;case v:return c;case y:return f}return t}),e.exports=b},"../../../node_modules/lodash/_getValue.js":function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},"../../../node_modules/lodash/_hasPath.js":function(e,t,o){var r=o("../../../node_modules/lodash/_castPath.js"),s=o("../../../node_modules/lodash/isArguments.js"),n=o("../../../node_modules/lodash/isArray.js"),i=o("../../../node_modules/lodash/_isIndex.js"),a=o("../../../node_modules/lodash/isLength.js"),d=o("../../../node_modules/lodash/_toKey.js");e.exports=function(e,t,o){t=r(t,e);for(var l=-1,u=t.length,h=!1;++l<u;){var c=d(t[l]);if(!(h=null!=e&&o(e,c)))break;e=e[c]}return h||++l!=u?h:!!(u=null==e?0:e.length)&&a(u)&&i(c,u)&&(n(e)||s(e))}},"../../../node_modules/lodash/_hasUnicode.js":function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},"../../../node_modules/lodash/_hashClear.js":function(e,t,o){var r=o("../../../node_modules/lodash/_nativeCreate.js");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"../../../node_modules/lodash/_hashDelete.js":function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},"../../../node_modules/lodash/_hashGet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_nativeCreate.js"),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return s.call(t,e)?t[e]:void 0}},"../../../node_modules/lodash/_hashHas.js":function(e,t,o){var r=o("../../../node_modules/lodash/_nativeCreate.js"),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},"../../../node_modules/lodash/_hashSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_nativeCreate.js");e.exports=function(e,t){var o=this.__data__;return this.size+=+!this.has(e),o[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},"../../../node_modules/lodash/_initCloneArray.js":function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var o=e.length,r=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},"../../../node_modules/lodash/_initCloneByTag.js":function(e,t,o){var r=o("../../../node_modules/lodash/_cloneArrayBuffer.js"),s=o("../../../node_modules/lodash/_cloneDataView.js"),n=o("../../../node_modules/lodash/_cloneRegExp.js"),i=o("../../../node_modules/lodash/_cloneSymbol.js"),a=o("../../../node_modules/lodash/_cloneTypedArray.js");e.exports=function(e,t,o){var d=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new d(+e);case"[object DataView]":return s(e,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,o);case"[object Map]":case"[object Set]":return new d;case"[object Number]":case"[object String]":return new d(e);case"[object RegExp]":return n(e);case"[object Symbol]":return i(e)}}},"../../../node_modules/lodash/_initCloneObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseCreate.js"),s=o("../../../node_modules/lodash/_getPrototype.js"),n=o("../../../node_modules/lodash/_isPrototype.js");e.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(s(e))}},"../../../node_modules/lodash/_isFlattenable.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Symbol.js"),s=o("../../../node_modules/lodash/isArguments.js"),n=o("../../../node_modules/lodash/isArray.js"),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return n(e)||s(e)||!!(i&&e&&e[i])}},"../../../node_modules/lodash/_isIndex.js":function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var r=typeof e;return!!(o=null==o?0x1fffffffffffff:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}},"../../../node_modules/lodash/_isIterateeCall.js":function(e,t,o){var r=o("../../../node_modules/lodash/eq.js"),s=o("../../../node_modules/lodash/isArrayLike.js"),n=o("../../../node_modules/lodash/_isIndex.js"),i=o("../../../node_modules/lodash/isObject.js");e.exports=function(e,t,o){if(!i(o))return!1;var a=typeof t;return("number"==a?!!(s(o)&&n(t,o.length)):"string"==a&&t in o)&&r(o[t],e)}},"../../../node_modules/lodash/_isKey.js":function(e,t,o){var r=o("../../../node_modules/lodash/isArray.js"),s=o("../../../node_modules/lodash/isSymbol.js"),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||s(e))||i.test(e)||!n.test(e)||null!=t&&e in Object(t)}},"../../../node_modules/lodash/_isKeyable.js":function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"../../../node_modules/lodash/_isMasked.js":function(e,t,o){var r,s=o("../../../node_modules/lodash/_coreJsData.js"),n=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!n&&n in e}},"../../../node_modules/lodash/_isPrototype.js":function(e){var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},"../../../node_modules/lodash/_isStrictComparable.js":function(e,t,o){var r=o("../../../node_modules/lodash/isObject.js");e.exports=function(e){return e==e&&!r(e)}},"../../../node_modules/lodash/_listCacheClear.js":function(e){e.exports=function(){this.__data__=[],this.size=0}},"../../../node_modules/lodash/_listCacheDelete.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assocIndexOf.js"),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=r(t,e);return!(o<0)&&(o==t.length-1?t.pop():s.call(t,o,1),--this.size,!0)}},"../../../node_modules/lodash/_listCacheGet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assocIndexOf.js");e.exports=function(e){var t=this.__data__,o=r(t,e);return o<0?void 0:t[o][1]}},"../../../node_modules/lodash/_listCacheHas.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assocIndexOf.js");e.exports=function(e){return r(this.__data__,e)>-1}},"../../../node_modules/lodash/_listCacheSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var o=this.__data__,s=r(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this}},"../../../node_modules/lodash/_mapCacheClear.js":function(e,t,o){var r=o("../../../node_modules/lodash/_Hash.js"),s=o("../../../node_modules/lodash/_ListCache.js"),n=o("../../../node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||s),string:new r}}},"../../../node_modules/lodash/_mapCacheDelete.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},"../../../node_modules/lodash/_mapCacheGet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"../../../node_modules/lodash/_mapCacheHas.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"../../../node_modules/lodash/_mapCacheSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_getMapData.js");e.exports=function(e,t){var o=r(this,e),s=o.size;return o.set(e,t),this.size+=+(o.size!=s),this}},"../../../node_modules/lodash/_mapToArray.js":function(e){e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}},"../../../node_modules/lodash/_matchesStrictComparable.js":function(e){e.exports=function(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}},"../../../node_modules/lodash/_memoizeCapped.js":function(e,t,o){var r=o("../../../node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,function(e){return 500===o.size&&o.clear(),e}),o=t.cache;return t}},"../../../node_modules/lodash/_nativeCreate.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_getNative.js")(Object,"create")},"../../../node_modules/lodash/_nativeKeys.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_overArg.js")(Object.keys,Object)},"../../../node_modules/lodash/_nativeKeysIn.js":function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},"../../../node_modules/lodash/_nodeUtil.js":function(e,t,o){e=o.nmd(e);var r=o("../../../node_modules/lodash/_freeGlobal.js"),s=t&&!t.nodeType&&t,n=s&&e&&!e.nodeType&&e,i=n&&n.exports===s&&r.process,a=function(){try{var e=n&&n.require&&n.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},"../../../node_modules/lodash/_objectToString.js":function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},"../../../node_modules/lodash/_overArg.js":function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},"../../../node_modules/lodash/_overRest.js":function(e,t,o){var r=o("../../../node_modules/lodash/_apply.js"),s=Math.max;e.exports=function(e,t,o){return t=s(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=s(n.length-t,0),d=Array(a);++i<a;)d[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=o(d),r(e,this,l)}}},"../../../node_modules/lodash/_root.js":function(e,t,o){var r=o("../../../node_modules/lodash/_freeGlobal.js"),s="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||s||Function("return this")()},"../../../node_modules/lodash/_safeGet.js":function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},"../../../node_modules/lodash/_setCacheAdd.js":function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"../../../node_modules/lodash/_setCacheHas.js":function(e){e.exports=function(e){return this.__data__.has(e)}},"../../../node_modules/lodash/_setToArray.js":function(e){e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}},"../../../node_modules/lodash/_setToString.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseSetToString.js");e.exports=o("../../../node_modules/lodash/_shortOut.js")(r)},"../../../node_modules/lodash/_shortOut.js":function(e){var t=Date.now;e.exports=function(e){var o=0,r=0;return function(){var s=t(),n=16-(s-r);if(r=s,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},"../../../node_modules/lodash/_stackClear.js":function(e,t,o){var r=o("../../../node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new r,this.size=0}},"../../../node_modules/lodash/_stackDelete.js":function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},"../../../node_modules/lodash/_stackGet.js":function(e){e.exports=function(e){return this.__data__.get(e)}},"../../../node_modules/lodash/_stackHas.js":function(e){e.exports=function(e){return this.__data__.has(e)}},"../../../node_modules/lodash/_stackSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_ListCache.js"),s=o("../../../node_modules/lodash/_Map.js"),n=o("../../../node_modules/lodash/_MapCache.js");e.exports=function(e,t){var o=this.__data__;if(o instanceof r){var i=o.__data__;if(!s||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new n(i)}return o.set(e,t),this.size=o.size,this}},"../../../node_modules/lodash/_strictIndexOf.js":function(e){e.exports=function(e,t,o){for(var r=o-1,s=e.length;++r<s;)if(e[r]===t)return r;return -1}},"../../../node_modules/lodash/_stringSize.js":function(e,t,o){var r=o("../../../node_modules/lodash/_asciiSize.js"),s=o("../../../node_modules/lodash/_hasUnicode.js"),n=o("../../../node_modules/lodash/_unicodeSize.js");e.exports=function(e){return s(e)?n(e):r(e)}},"../../../node_modules/lodash/_stringToPath.js":function(e,t,o){var r=o("../../../node_modules/lodash/_memoizeCapped.js"),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g;e.exports=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,o,r,s){t.push(r?s.replace(n,"$1"):o||e)}),t})},"../../../node_modules/lodash/_toKey.js":function(e,t,o){var r=o("../../../node_modules/lodash/isSymbol.js"),s=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}},"../../../node_modules/lodash/_toSource.js":function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"../../../node_modules/lodash/_trimmedEndIndex.js":function(e){var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},"../../../node_modules/lodash/_unicodeSize.js":function(e){var t="\ud800-\udfff",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",s="[^"+t+"]",n="(?:\ud83c[\udde6-\uddff]){2}",i="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+o+"|"+r+")?",d="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[s,n,i].join("|")+")"+d+a+")*",u=RegExp(r+"(?="+r+")|"+("(?:"+[s+o+"?",o,n,i,"["+t+"]"].join("|"))+")"+(d+a+l),"g");e.exports=function(e){for(var t=u.lastIndex=0;u.test(e);)++t;return t}},"../../../node_modules/lodash/clone.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseClone.js");e.exports=function(e){return r(e,4)}},"../../../node_modules/lodash/cloneDeep.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseClone.js");e.exports=function(e){return r(e,5)}},"../../../node_modules/lodash/constant.js":function(e){e.exports=function(e){return function(){return e}}},"../../../node_modules/lodash/defaults.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseRest.js"),s=o("../../../node_modules/lodash/eq.js"),n=o("../../../node_modules/lodash/_isIterateeCall.js"),i=o("../../../node_modules/lodash/keysIn.js"),a=Object.prototype,d=a.hasOwnProperty;e.exports=r(function(e,t){e=Object(e);var o=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&n(t[0],t[1],l)&&(r=1);++o<r;)for(var u=t[o],h=i(u),c=-1,f=h.length;++c<f;){var g=h[c],m=e[g];(void 0===m||s(m,a[g])&&!d.call(e,g))&&(e[g]=u[g])}return e})},"../../../node_modules/lodash/each.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/forEach.js")},"../../../node_modules/lodash/eq.js":function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"../../../node_modules/lodash/filter.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayFilter.js"),s=o("../../../node_modules/lodash/_baseFilter.js"),n=o("../../../node_modules/lodash/_baseIteratee.js"),i=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t){return(i(e)?r:s)(e,n(t,3))}},"../../../node_modules/lodash/find.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_createFind.js")(o("../../../node_modules/lodash/findIndex.js"))},"../../../node_modules/lodash/findIndex.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFindIndex.js"),s=o("../../../node_modules/lodash/_baseIteratee.js"),n=o("../../../node_modules/lodash/toInteger.js"),i=Math.max;e.exports=function(e,t,o){var a=null==e?0:e.length;if(!a)return -1;var d=null==o?0:n(o);return d<0&&(d=i(a+d,0)),r(e,s(t,3),d)}},"../../../node_modules/lodash/flatten.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFlatten.js");e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},"../../../node_modules/lodash/forEach.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayEach.js"),s=o("../../../node_modules/lodash/_baseEach.js"),n=o("../../../node_modules/lodash/_castFunction.js"),i=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t){return(i(e)?r:s)(e,n(t))}},"../../../node_modules/lodash/forIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFor.js"),s=o("../../../node_modules/lodash/_castFunction.js"),n=o("../../../node_modules/lodash/keysIn.js");e.exports=function(e,t){return null==e?e:r(e,s(t),n)}},"../../../node_modules/lodash/get.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGet.js");e.exports=function(e,t,o){var s=null==e?void 0:r(e,t);return void 0===s?o:s}},"../../../node_modules/lodash/has.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseHas.js"),s=o("../../../node_modules/lodash/_hasPath.js");e.exports=function(e,t){return null!=e&&s(e,t,r)}},"../../../node_modules/lodash/hasIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseHasIn.js"),s=o("../../../node_modules/lodash/_hasPath.js");e.exports=function(e,t){return null!=e&&s(e,t,r)}},"../../../node_modules/lodash/identity.js":function(e){e.exports=function(e){return e}},"../../../node_modules/lodash/isArguments.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsArguments.js"),s=o("../../../node_modules/lodash/isObjectLike.js"),n=Object.prototype,i=n.hasOwnProperty,a=n.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return s(e)&&i.call(e,"callee")&&!a.call(e,"callee")}},"../../../node_modules/lodash/isArray.js":function(e){e.exports=Array.isArray},"../../../node_modules/lodash/isArrayLike.js":function(e,t,o){var r=o("../../../node_modules/lodash/isFunction.js"),s=o("../../../node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},"../../../node_modules/lodash/isArrayLikeObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/isArrayLike.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return s(e)&&r(e)}},"../../../node_modules/lodash/isBuffer.js":function(e,t,o){e=o.nmd(e);var r=o("../../../node_modules/lodash/_root.js"),s=o("../../../node_modules/lodash/stubFalse.js"),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n?r.Buffer:void 0,d=a?a.isBuffer:void 0;e.exports=d||s},"../../../node_modules/lodash/isEmpty.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseKeys.js"),s=o("../../../node_modules/lodash/_getTag.js"),n=o("../../../node_modules/lodash/isArguments.js"),i=o("../../../node_modules/lodash/isArray.js"),a=o("../../../node_modules/lodash/isArrayLike.js"),d=o("../../../node_modules/lodash/isBuffer.js"),l=o("../../../node_modules/lodash/_isPrototype.js"),u=o("../../../node_modules/lodash/isTypedArray.js"),h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||d(e)||u(e)||n(e)))return!e.length;var t=s(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var o in e)if(h.call(e,o))return!1;return!0}},"../../../node_modules/lodash/isFunction.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/isObject.js");e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"../../../node_modules/lodash/isLength.js":function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},"../../../node_modules/lodash/isMap.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsMap.js"),s=o("../../../node_modules/lodash/_baseUnary.js"),n=o("../../../node_modules/lodash/_nodeUtil.js"),i=n&&n.isMap;e.exports=i?s(i):r},"../../../node_modules/lodash/isObject.js":function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"../../../node_modules/lodash/isObjectLike.js":function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},"../../../node_modules/lodash/isPlainObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/_getPrototype.js"),n=o("../../../node_modules/lodash/isObjectLike.js"),i=Object.prototype,a=Function.prototype.toString,d=i.hasOwnProperty,l=a.call(Object);e.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var t=s(e);if(null===t)return!0;var o=d.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&a.call(o)==l}},"../../../node_modules/lodash/isSet.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsSet.js"),s=o("../../../node_modules/lodash/_baseUnary.js"),n=o("../../../node_modules/lodash/_nodeUtil.js"),i=n&&n.isSet;e.exports=i?s(i):r},"../../../node_modules/lodash/isString.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/isArray.js"),n=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return"string"==typeof e||!s(e)&&n(e)&&"[object String]"==r(e)}},"../../../node_modules/lodash/isSymbol.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseGetTag.js"),s=o("../../../node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==r(e)}},"../../../node_modules/lodash/isTypedArray.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseIsTypedArray.js"),s=o("../../../node_modules/lodash/_baseUnary.js"),n=o("../../../node_modules/lodash/_nodeUtil.js"),i=n&&n.isTypedArray;e.exports=i?s(i):r},"../../../node_modules/lodash/isUndefined.js":function(e){e.exports=function(e){return void 0===e}},"../../../node_modules/lodash/keys.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayLikeKeys.js"),s=o("../../../node_modules/lodash/_baseKeys.js"),n=o("../../../node_modules/lodash/isArrayLike.js");e.exports=function(e){return n(e)?r(e):s(e)}},"../../../node_modules/lodash/keysIn.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayLikeKeys.js"),s=o("../../../node_modules/lodash/_baseKeysIn.js"),n=o("../../../node_modules/lodash/isArrayLike.js");e.exports=function(e){return n(e)?r(e,!0):s(e)}},"../../../node_modules/lodash/last.js":function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"../../../node_modules/lodash/map.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayMap.js"),s=o("../../../node_modules/lodash/_baseIteratee.js"),n=o("../../../node_modules/lodash/_baseMap.js"),i=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t){return(i(e)?r:n)(e,s(t,3))}},"../../../node_modules/lodash/mapValues.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseAssignValue.js"),s=o("../../../node_modules/lodash/_baseForOwn.js"),n=o("../../../node_modules/lodash/_baseIteratee.js");e.exports=function(e,t){var o={};return t=n(t,3),s(e,function(e,s,n){r(o,s,t(e,s,n))}),o}},"../../../node_modules/lodash/max.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseExtremum.js"),s=o("../../../node_modules/lodash/_baseGt.js"),n=o("../../../node_modules/lodash/identity.js");e.exports=function(e){return e&&e.length?r(e,n,s):void 0}},"../../../node_modules/lodash/memoize.js":function(e,t,o){var r=o("../../../node_modules/lodash/_MapCache.js");function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var r=arguments,s=t?t.apply(this,r):r[0],n=o.cache;if(n.has(s))return n.get(s);var i=e.apply(this,r);return o.cache=n.set(s,i)||n,i};return o.cache=new(s.Cache||r),o}s.Cache=r,e.exports=s},"../../../node_modules/lodash/merge.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseMerge.js");e.exports=o("../../../node_modules/lodash/_createAssigner.js")(function(e,t,o){r(e,t,o)})},"../../../node_modules/lodash/min.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseExtremum.js"),s=o("../../../node_modules/lodash/_baseLt.js"),n=o("../../../node_modules/lodash/identity.js");e.exports=function(e){return e&&e.length?r(e,n,s):void 0}},"../../../node_modules/lodash/minBy.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseExtremum.js"),s=o("../../../node_modules/lodash/_baseIteratee.js"),n=o("../../../node_modules/lodash/_baseLt.js");e.exports=function(e,t){return e&&e.length?r(e,s(t,2),n):void 0}},"../../../node_modules/lodash/noop.js":function(e){e.exports=function(){}},"../../../node_modules/lodash/now.js":function(e,t,o){var r=o("../../../node_modules/lodash/_root.js");e.exports=function(){return r.Date.now()}},"../../../node_modules/lodash/pick.js":function(e,t,o){var r=o("../../../node_modules/lodash/_basePick.js");e.exports=o("../../../node_modules/lodash/_flatRest.js")(function(e,t){return null==e?{}:r(e,t)})},"../../../node_modules/lodash/property.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseProperty.js"),s=o("../../../node_modules/lodash/_basePropertyDeep.js"),n=o("../../../node_modules/lodash/_isKey.js"),i=o("../../../node_modules/lodash/_toKey.js");e.exports=function(e){return n(e)?r(i(e)):s(e)}},"../../../node_modules/lodash/range.js":function(e,t,o){e.exports=o("../../../node_modules/lodash/_createRange.js")()},"../../../node_modules/lodash/reduce.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayReduce.js"),s=o("../../../node_modules/lodash/_baseEach.js"),n=o("../../../node_modules/lodash/_baseIteratee.js"),i=o("../../../node_modules/lodash/_baseReduce.js"),a=o("../../../node_modules/lodash/isArray.js");e.exports=function(e,t,o){var d=a(e)?r:i,l=arguments.length<3;return d(e,n(t,4),o,l,s)}},"../../../node_modules/lodash/size.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseKeys.js"),s=o("../../../node_modules/lodash/_getTag.js"),n=o("../../../node_modules/lodash/isArrayLike.js"),i=o("../../../node_modules/lodash/isString.js"),a=o("../../../node_modules/lodash/_stringSize.js");e.exports=function(e){if(null==e)return 0;if(n(e))return i(e)?a(e):e.length;var t=s(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},"../../../node_modules/lodash/sortBy.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFlatten.js"),s=o("../../../node_modules/lodash/_baseOrderBy.js"),n=o("../../../node_modules/lodash/_baseRest.js"),i=o("../../../node_modules/lodash/_isIterateeCall.js");e.exports=n(function(e,t){if(null==e)return[];var o=t.length;return o>1&&i(e,t[0],t[1])?t=[]:o>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),s(e,r(t,1),[])})},"../../../node_modules/lodash/stubArray.js":function(e){e.exports=function(){return[]}},"../../../node_modules/lodash/stubFalse.js":function(e){e.exports=function(){return!1}},"../../../node_modules/lodash/toFinite.js":function(e,t,o){var r=o("../../../node_modules/lodash/toNumber.js"),s=1/0;e.exports=function(e){return e?(e=r(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},"../../../node_modules/lodash/toInteger.js":function(e,t,o){var r=o("../../../node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),o=t%1;return t==t?o?t-o:t:0}},"../../../node_modules/lodash/toNumber.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseTrim.js"),s=o("../../../node_modules/lodash/isObject.js"),n=o("../../../node_modules/lodash/isSymbol.js"),i=0/0,a=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return i;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var o=d.test(e);return o||l.test(e)?u(e.slice(2),o?2:8):a.test(e)?i:+e}},"../../../node_modules/lodash/toPlainObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/_copyObject.js"),s=o("../../../node_modules/lodash/keysIn.js");e.exports=function(e){return r(e,s(e))}},"../../../node_modules/lodash/toString.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"../../../node_modules/lodash/transform.js":function(e,t,o){var r=o("../../../node_modules/lodash/_arrayEach.js"),s=o("../../../node_modules/lodash/_baseCreate.js"),n=o("../../../node_modules/lodash/_baseForOwn.js"),i=o("../../../node_modules/lodash/_baseIteratee.js"),a=o("../../../node_modules/lodash/_getPrototype.js"),d=o("../../../node_modules/lodash/isArray.js"),l=o("../../../node_modules/lodash/isBuffer.js"),u=o("../../../node_modules/lodash/isFunction.js"),h=o("../../../node_modules/lodash/isObject.js"),c=o("../../../node_modules/lodash/isTypedArray.js");e.exports=function(e,t,o){var f=d(e),g=f||l(e)||c(e);if(t=i(t,4),null==o){var m=e&&e.constructor;o=g?f?new m:[]:h(e)&&u(m)?s(a(e)):{}}return(g?r:n)(e,function(e,r,s){return t(o,e,r,s)}),o}},"../../../node_modules/lodash/union.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseFlatten.js"),s=o("../../../node_modules/lodash/_baseRest.js"),n=o("../../../node_modules/lodash/_baseUniq.js"),i=o("../../../node_modules/lodash/isArrayLikeObject.js");e.exports=s(function(e){return n(r(e,1,i,!0))})},"../../../node_modules/lodash/uniqueId.js":function(e,t,o){var r=o("../../../node_modules/lodash/toString.js"),s=0;e.exports=function(e){var t=++s;return r(e)+t}},"../../../node_modules/lodash/values.js":function(e,t,o){var r=o("../../../node_modules/lodash/_baseValues.js"),s=o("../../../node_modules/lodash/keys.js");e.exports=function(e){return null==e?[]:r(e,s(e))}},"../../../node_modules/lodash/zipObject.js":function(e,t,o){var r=o("../../../node_modules/lodash/_assignValue.js"),s=o("../../../node_modules/lodash/_baseZipObject.js");e.exports=function(e,t){return s(e||[],t||[],r)}},"../../../node_modules/ml-array-rescale/lib-es6/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>s});var r=o("../../../node_modules/is-any-array/lib-esm/index.js");function s(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,r.isAnyArray)(e)){if(0===e.length)throw TypeError("input must not be empty")}else throw TypeError("input must be an array");if(void 0!==o.output){if(!(0,r.isAnyArray)(o.output))throw TypeError("output option must be an array if specified");t=o.output}else t=Array(e.length);var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.isAnyArray)(e))throw TypeError("input must be an array");if(0===e.length)throw TypeError("input must not be empty");var o=t.fromIndex,s=void 0===o?0:o,n=t.toIndex,i=void 0===n?e.length:n;if(s<0||s>=e.length||!Number.isInteger(s))throw Error("fromIndex must be a positive integer smaller than length");if(i<=s||i>e.length||!Number.isInteger(i))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=e[s],d=s+1;d<i;d++)e[d]<a&&(a=e[d]);return a}(e),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.isAnyArray)(e))throw TypeError("input must be an array");if(0===e.length)throw TypeError("input must not be empty");var o=t.fromIndex,s=void 0===o?0:o,n=t.toIndex,i=void 0===n?e.length:n;if(s<0||s>=e.length||!Number.isInteger(s))throw Error("fromIndex must be a positive integer smaller than length");if(i<=s||i>e.length||!Number.isInteger(i))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=e[s],d=s+1;d<i;d++)e[d]>a&&(a=e[d]);return a}(e);if(s===n)throw RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=o.min,a=void 0===i?o.autoMinMax?s:0:i,d=o.max,l=void 0===d?o.autoMinMax?n:1:d;if(a>=l)throw RangeError("min option must be smaller than max option");for(var u=(l-a)/(n-s),h=0;h<e.length;h++)t[h]=(e[h]-s)*u+a;return t}},"../../../node_modules/ml-matrix/matrix.js":function(e,t,o){"use strict";var r=o("../../../node_modules/is-any-array/lib-esm/index.js"),s=o("../../../node_modules/ml-array-rescale/lib-es6/index.js");let n=" ".repeat(2),i=" ".repeat(4);function a(e,t={}){let{maxRows:o=15,maxColumns:r=10,maxNumSize:s=8,padMinus:l="auto"}=t;return`${e.constructor.name} {
3
+ ${n}[
4
+ ${i}${function(e,t,o,r,s){let{rows:n,columns:a}=e,l=Math.min(n,t),u=Math.min(a,o),h=[];if("auto"===s){s=!1;t:for(let t=0;t<l;t++)for(let o=0;o<u;o++)if(0>e.get(t,o)){s=!0;break t}}for(let t=0;t<l;t++){let o=[];for(let n=0;n<u;n++){var c,f,g;o.push((c=e.get(t,n),f=r,g=s,(c>=0&&g?` ${d(c,f-1)}`:d(c,f)).padEnd(f)))}h.push(`${o.join(" ")}`)}return u!==a&&(h[h.length-1]+=` ... ${a-o} more columns`),l!==n&&h.push(`... ${n-t} more rows`),h.join(`
5
+ ${i}`)}(e,o,r,s,l)}
6
+ ${n}]
7
+ ${n}rows: ${e.rows}
8
+ ${n}columns: ${e.columns}
9
+ }`}function d(e,t){let o=e.toString();if(o.length<=t)return o;let r=e.toFixed(t);if(r.length>t&&(r=e.toFixed(Math.max(0,t-(r.length-t)))),r.length<=t&&!r.startsWith("0.000")&&!r.startsWith("-0.000"))return r;let s=e.toExponential(t);return s.length>t&&(s=e.toExponential(Math.max(0,t-(s.length-t)))),s.slice(0)}function l(e,t,o){let r=o?e.rows:e.rows-1;if(t<0||t>r)throw RangeError("Row index out of range")}function u(e,t,o){let r=o?e.columns:e.columns-1;if(t<0||t>r)throw RangeError("Column index out of range")}function h(e,t){if(t.to1DArray&&(t=t.to1DArray()),t.length!==e.columns)throw RangeError("vector size must be the same as the number of columns");return t}function c(e,t){if(t.to1DArray&&(t=t.to1DArray()),t.length!==e.rows)throw RangeError("vector size must be the same as the number of rows");return t}function f(e,t){if(!r.isAnyArray(t))throw TypeError("row indices must be an array");for(let o=0;o<t.length;o++)if(t[o]<0||t[o]>=e.rows)throw RangeError("row indices are out of range")}function g(e,t){if(!r.isAnyArray(t))throw TypeError("column indices must be an array");for(let o=0;o<t.length;o++)if(t[o]<0||t[o]>=e.columns)throw RangeError("column indices are out of range")}function m(e,t,o,r,s){if(5!=arguments.length)throw RangeError("expected 4 arguments");if(_("startRow",t),_("endRow",o),_("startColumn",r),_("endColumn",s),t>o||r>s||t<0||t>=e.rows||o<0||o>=e.rows||r<0||r>=e.columns||s<0||s>=e.columns)throw RangeError("Submatrix indices are out of range")}function p(e,t=0){let o=[];for(let r=0;r<e;r++)o.push(t);return o}function _(e,t){if("number"!=typeof t)throw TypeError(`${e} must be a number`)}function v(e){if(e.isEmpty())throw Error("Empty matrix has no elements to index")}class y{static from1DArray(e,t,o){if(e*t!==o.length)throw RangeError("data length does not match given dimensions");let r=new j(e,t);for(let s=0;s<e;s++)for(let e=0;e<t;e++)r.set(s,e,o[s*t+e]);return r}static rowVector(e){let t=new j(1,e.length);for(let o=0;o<e.length;o++)t.set(0,o,e[o]);return t}static columnVector(e){let t=new j(e.length,1);for(let o=0;o<e.length;o++)t.set(o,0,e[o]);return t}static zeros(e,t){return new j(e,t)}static ones(e,t){return new j(e,t).fill(1)}static rand(e,t,o={}){if("object"!=typeof o)throw TypeError("options must be an object");let{random:r=Math.random}=o,s=new j(e,t);for(let o=0;o<e;o++)for(let e=0;e<t;e++)s.set(o,e,r());return s}static randInt(e,t,o={}){if("object"!=typeof o)throw TypeError("options must be an object");let{min:r=0,max:s=1e3,random:n=Math.random}=o;if(!Number.isInteger(r))throw TypeError("min must be an integer");if(!Number.isInteger(s))throw TypeError("max must be an integer");if(r>=s)throw RangeError("min must be smaller than max");let i=s-r,a=new j(e,t);for(let o=0;o<e;o++)for(let e=0;e<t;e++){let t=r+Math.round(n()*i);a.set(o,e,t)}return a}static eye(e,t,o){void 0===t&&(t=e),void 0===o&&(o=1);let r=Math.min(e,t),s=this.zeros(e,t);for(let e=0;e<r;e++)s.set(e,e,o);return s}static diag(e,t,o){let r=e.length;void 0===t&&(t=r),void 0===o&&(o=t);let s=Math.min(r,t,o),n=this.zeros(t,o);for(let t=0;t<s;t++)n.set(t,t,e[t]);return n}static min(e,t){e=this.checkMatrix(e),t=this.checkMatrix(t);let o=e.rows,r=e.columns,s=new j(o,r);for(let n=0;n<o;n++)for(let o=0;o<r;o++)s.set(n,o,Math.min(e.get(n,o),t.get(n,o)));return s}static max(e,t){e=this.checkMatrix(e),t=this.checkMatrix(t);let o=e.rows,r=e.columns,s=new this(o,r);for(let n=0;n<o;n++)for(let o=0;o<r;o++)s.set(n,o,Math.max(e.get(n,o),t.get(n,o)));return s}static checkMatrix(e){return y.isMatrix(e)?e:new j(e)}static isMatrix(e){return null!=e&&"Matrix"===e.klass}get size(){return this.rows*this.columns}apply(e){if("function"!=typeof e)throw TypeError("callback must be a function");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)e.call(this,t,o);return this}to1DArray(){let e=[];for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)e.push(this.get(t,o));return e}to2DArray(){let e=[];for(let t=0;t<this.rows;t++){e.push([]);for(let o=0;o<this.columns;o++)e[t].push(this.get(t,o))}return e}toJSON(){return this.to2DArray()}isRowVector(){return 1===this.rows}isColumnVector(){return 1===this.columns}isVector(){return 1===this.rows||1===this.columns}isSquare(){return this.rows===this.columns}isEmpty(){return 0===this.rows||0===this.columns}isSymmetric(){if(this.isSquare()){for(let e=0;e<this.rows;e++)for(let t=0;t<=e;t++)if(this.get(e,t)!==this.get(t,e))return!1;return!0}return!1}isDistance(){if(!this.isSymmetric())return!1;for(let e=0;e<this.rows;e++)if(0!==this.get(e,e))return!1;return!0}isEchelonForm(){let e=0,t=0,o=-1,r=!0,s=!1;for(;e<this.rows&&r;){for(t=0,s=!1;t<this.columns&&!1===s;)0===this.get(e,t)?t++:1===this.get(e,t)&&t>o?(s=!0,o=t):(r=!1,s=!0);e++}return r}isReducedEchelonForm(){let e=0,t=0,o=-1,r=!0,s=!1;for(;e<this.rows&&r;){for(t=0,s=!1;t<this.columns&&!1===s;)0===this.get(e,t)?t++:1===this.get(e,t)&&t>o?(s=!0,o=t):(r=!1,s=!0);for(let o=t+1;o<this.rows;o++)0!==this.get(e,o)&&(r=!1);e++}return r}echelonForm(){let e=this.clone(),t=0,o=0;for(;t<e.rows&&o<e.columns;){let r=t;for(let s=t;s<e.rows;s++)e.get(s,o)>e.get(r,o)&&(r=s);if(0===e.get(r,o))o++;else{e.swapRows(t,r);let s=e.get(t,o);for(let r=o;r<e.columns;r++)e.set(t,r,e.get(t,r)/s);for(let r=t+1;r<e.rows;r++){let s=e.get(r,o)/e.get(t,o);e.set(r,o,0);for(let n=o+1;n<e.columns;n++)e.set(r,n,e.get(r,n)-e.get(t,n)*s)}t++,o++}}return e}reducedEchelonForm(){let e=this.echelonForm(),t=e.columns,o=e.rows,r=o-1;for(;r>=0;)if(0===e.maxRow(r))r--;else{let s=0,n=!1;for(;s<o&&!1===n;)1===e.get(r,s)?n=!0:s++;for(let o=0;o<r;o++){let n=e.get(o,s);for(let i=s;i<t;i++){let t=e.get(o,i)-n*e.get(r,i);e.set(o,i,t)}}r--}return e}set(){throw Error("set method is unimplemented")}get(){throw Error("get method is unimplemented")}repeat(e={}){if("object"!=typeof e)throw TypeError("options must be an object");let{rows:t=1,columns:o=1}=e;if(!Number.isInteger(t)||t<=0)throw TypeError("rows must be a positive integer");if(!Number.isInteger(o)||o<=0)throw TypeError("columns must be a positive integer");let r=new j(this.rows*t,this.columns*o);for(let e=0;e<t;e++)for(let t=0;t<o;t++)r.setSubMatrix(this,this.rows*e,this.columns*t);return r}fill(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,e);return this}neg(){return this.mulS(-1)}getRow(e){l(this,e);let t=[];for(let o=0;o<this.columns;o++)t.push(this.get(e,o));return t}getRowVector(e){return j.rowVector(this.getRow(e))}setRow(e,t){l(this,e),t=h(this,t);for(let o=0;o<this.columns;o++)this.set(e,o,t[o]);return this}swapRows(e,t){l(this,e),l(this,t);for(let o=0;o<this.columns;o++){let r=this.get(e,o);this.set(e,o,this.get(t,o)),this.set(t,o,r)}return this}getColumn(e){u(this,e);let t=[];for(let o=0;o<this.rows;o++)t.push(this.get(o,e));return t}getColumnVector(e){return j.columnVector(this.getColumn(e))}setColumn(e,t){u(this,e),t=c(this,t);for(let o=0;o<this.rows;o++)this.set(o,e,t[o]);return this}swapColumns(e,t){u(this,e),u(this,t);for(let o=0;o<this.rows;o++){let r=this.get(o,e);this.set(o,e,this.get(o,t)),this.set(o,t,r)}return this}addRowVector(e){e=h(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)+e[o]);return this}subRowVector(e){e=h(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)-e[o]);return this}mulRowVector(e){e=h(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)*e[o]);return this}divRowVector(e){e=h(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)/e[o]);return this}addColumnVector(e){e=c(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)+e[t]);return this}subColumnVector(e){e=c(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)-e[t]);return this}mulColumnVector(e){e=c(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)*e[t]);return this}divColumnVector(e){e=c(this,e);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)/e[t]);return this}mulRow(e,t){l(this,e);for(let o=0;o<this.columns;o++)this.set(e,o,this.get(e,o)*t);return this}mulColumn(e,t){u(this,e);for(let o=0;o<this.rows;o++)this.set(o,e,this.get(o,e)*t);return this}max(e){if(this.isEmpty())return NaN;switch(e){case"row":{let e=Array(this.rows).fill(Number.NEGATIVE_INFINITY);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)>e[t]&&(e[t]=this.get(t,o));return e}case"column":{let e=Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)>e[o]&&(e[o]=this.get(t,o));return e}case void 0:{let e=this.get(0,0);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)>e&&(e=this.get(t,o));return e}default:throw Error(`invalid option: ${e}`)}}maxIndex(){v(this);let e=this.get(0,0),t=[0,0];for(let o=0;o<this.rows;o++)for(let r=0;r<this.columns;r++)this.get(o,r)>e&&(e=this.get(o,r),t[0]=o,t[1]=r);return t}min(e){if(this.isEmpty())return NaN;switch(e){case"row":{let e=Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)<e[t]&&(e[t]=this.get(t,o));return e}case"column":{let e=Array(this.columns).fill(Number.POSITIVE_INFINITY);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)<e[o]&&(e[o]=this.get(t,o));return e}case void 0:{let e=this.get(0,0);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.get(t,o)<e&&(e=this.get(t,o));return e}default:throw Error(`invalid option: ${e}`)}}minIndex(){v(this);let e=this.get(0,0),t=[0,0];for(let o=0;o<this.rows;o++)for(let r=0;r<this.columns;r++)this.get(o,r)<e&&(e=this.get(o,r),t[0]=o,t[1]=r);return t}maxRow(e){if(l(this,e),this.isEmpty())return NaN;let t=this.get(e,0);for(let o=1;o<this.columns;o++)this.get(e,o)>t&&(t=this.get(e,o));return t}maxRowIndex(e){l(this,e),v(this);let t=this.get(e,0),o=[e,0];for(let r=1;r<this.columns;r++)this.get(e,r)>t&&(t=this.get(e,r),o[1]=r);return o}minRow(e){if(l(this,e),this.isEmpty())return NaN;let t=this.get(e,0);for(let o=1;o<this.columns;o++)this.get(e,o)<t&&(t=this.get(e,o));return t}minRowIndex(e){l(this,e),v(this);let t=this.get(e,0),o=[e,0];for(let r=1;r<this.columns;r++)this.get(e,r)<t&&(t=this.get(e,r),o[1]=r);return o}maxColumn(e){if(u(this,e),this.isEmpty())return NaN;let t=this.get(0,e);for(let o=1;o<this.rows;o++)this.get(o,e)>t&&(t=this.get(o,e));return t}maxColumnIndex(e){u(this,e),v(this);let t=this.get(0,e),o=[0,e];for(let r=1;r<this.rows;r++)this.get(r,e)>t&&(t=this.get(r,e),o[0]=r);return o}minColumn(e){if(u(this,e),this.isEmpty())return NaN;let t=this.get(0,e);for(let o=1;o<this.rows;o++)this.get(o,e)<t&&(t=this.get(o,e));return t}minColumnIndex(e){u(this,e),v(this);let t=this.get(0,e),o=[0,e];for(let r=1;r<this.rows;r++)this.get(r,e)<t&&(t=this.get(r,e),o[0]=r);return o}diag(){let e=Math.min(this.rows,this.columns),t=[];for(let o=0;o<e;o++)t.push(this.get(o,o));return t}norm(e="frobenius"){switch(e){case"max":return this.max();case"frobenius":return Math.sqrt(this.dot(this));default:throw RangeError(`unknown norm type: ${e}`)}}cumulativeSum(){let e=0;for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)e+=this.get(t,o),this.set(t,o,e);return this}dot(e){y.isMatrix(e)&&(e=e.to1DArray());let t=this.to1DArray();if(t.length!==e.length)throw RangeError("vectors do not have the same size");let o=0;for(let r=0;r<t.length;r++)o+=t[r]*e[r];return o}mmul(e){e=j.checkMatrix(e);let t=this.rows,o=this.columns,r=e.columns,s=new j(t,r),n=new Float64Array(o);for(let i=0;i<r;i++){for(let t=0;t<o;t++)n[t]=e.get(t,i);for(let e=0;e<t;e++){let t=0;for(let r=0;r<o;r++)t+=this.get(e,r)*n[r];s.set(e,i,t)}}return s}mpow(e){if(!this.isSquare())throw RangeError("Matrix must be square");if(!Number.isInteger(e)||e<0)throw RangeError("Exponent must be a non-negative integer");let t=j.eye(this.rows),o=this;for(let r=e;r>=1;r/=2)(1&r)!=0&&(t=t.mmul(o)),o=o.mmul(o);return t}strassen2x2(e){e=j.checkMatrix(e);let t=new j(2,2),o=this.get(0,0),r=e.get(0,0),s=this.get(0,1),n=e.get(0,1),i=this.get(1,0),a=e.get(1,0),d=this.get(1,1),l=e.get(1,1),u=(o+d)*(r+l),h=(i+d)*r,c=o*(n-l),f=d*(a-r),g=(o+s)*l;return t.set(0,0,u+f-g+(s-d)*(a+l)),t.set(0,1,c+g),t.set(1,0,h+f),t.set(1,1,u-h+c+(i-o)*(r+n)),t}strassen3x3(e){e=j.checkMatrix(e);let t=new j(3,3),o=this.get(0,0),r=this.get(0,1),s=this.get(0,2),n=this.get(1,0),i=this.get(1,1),a=this.get(1,2),d=this.get(2,0),l=this.get(2,1),u=this.get(2,2),h=e.get(0,0),c=e.get(0,1),f=e.get(0,2),g=e.get(1,0),m=e.get(1,1),p=e.get(1,2),_=e.get(2,0),v=e.get(2,1),y=e.get(2,2),b=(o+r+s-n-i-l-u)*m,x=(o-n)*(-c+m),w=i*(-h+c+g-m-p-_+y),E=(-o+n+i)*(h-c+m),M=(n+i)*(-h+c),N=o*h,k=(-o+d+l)*(h-f+p),A=(-o+d)*(f-p),S=(d+l)*(-h+f),O=(o+r+s-i-a-d-l)*p,z=l*(-h+f+g-m-p-_+v),I=(-s+l+u)*(m+_-v),R=(s-u)*(m-v),C=s*_,P=(l+u)*(-_+v),T=(-s+i+a)*(p+_-y),D=(s-a)*(p-y),Z=(i+a)*(-_+y),q=b+E+M+N+I+C+P,L=N+k+S+O+C+T+Z,F=x+w+E+N+C+T+D,V=N+k+A+z+I+R+C;return t.set(0,0,N+C+r*g),t.set(0,1,q),t.set(0,2,L),t.set(1,0,F),t.set(1,1,x+E+M+N+a*v),t.set(1,2,C+T+D+Z+n*f),t.set(2,0,V),t.set(2,1,I+R+C+P+d*c),t.set(2,2,N+k+A+S+u*y),t}mmulStrassen(e){e=j.checkMatrix(e);let t=this.clone(),o=t.rows,r=t.columns,s=e.rows,n=e.columns;function i(e,t,o){let r=e.rows,s=e.columns;if(r===t&&s===o)return e;{let r=y.zeros(t,o);return r.setSubMatrix(e,0,0)}}r!==s&&console.warn(`Multiplying ${o} x ${r} and ${s} x ${n} matrix: dimensions do not match.`);let a=Math.max(o,s),d=Math.max(r,n);return t=i(t,a,d),function e(t,o,r,s){if(r<=512||s<=512)return t.mmul(o);r%2==1&&s%2==1?(t=i(t,r+1,s+1),o=i(o,r+1,s+1)):r%2==1?(t=i(t,r+1,s),o=i(o,r+1,s)):s%2==1&&(t=i(t,r,s+1),o=i(o,r,s+1));let n=parseInt(t.rows/2,10),a=parseInt(t.columns/2,10),d=t.subMatrix(0,n-1,0,a-1),l=o.subMatrix(0,n-1,0,a-1),u=t.subMatrix(0,n-1,a,t.columns-1),h=o.subMatrix(0,n-1,a,o.columns-1),c=t.subMatrix(n,t.rows-1,0,a-1),f=o.subMatrix(n,o.rows-1,0,a-1),g=t.subMatrix(n,t.rows-1,a,t.columns-1),m=o.subMatrix(n,o.rows-1,a,o.columns-1),p=e(y.add(d,g),y.add(l,m),n,a),_=e(y.add(c,g),l,n,a),v=e(d,y.sub(h,m),n,a),b=e(g,y.sub(f,l),n,a),j=e(y.add(d,u),m,n,a),x=e(y.sub(c,d),y.add(l,h),n,a),w=e(y.sub(u,g),y.add(f,m),n,a),E=y.add(p,b);E.sub(j),E.add(w);let M=y.add(v,j),N=y.add(_,b),k=y.sub(p,_);k.add(v),k.add(x);let A=y.zeros(2*E.rows,2*E.columns);return(A=(A=(A=(A=A.setSubMatrix(E,0,0)).setSubMatrix(M,E.rows,0)).setSubMatrix(N,0,E.columns)).setSubMatrix(k,E.rows,E.columns)).subMatrix(0,r-1,0,s-1)}(t,e=i(e,a,d),a,d)}scaleRows(e={}){if("object"!=typeof e)throw TypeError("options must be an object");let{min:t=0,max:o=1}=e;if(!Number.isFinite(t))throw TypeError("min must be a number");if(!Number.isFinite(o))throw TypeError("max must be a number");if(t>=o)throw RangeError("min must be smaller than max");let r=new j(this.rows,this.columns);for(let e=0;e<this.rows;e++){let n=this.getRow(e);n.length>0&&s(n,{min:t,max:o,output:n}),r.setRow(e,n)}return r}scaleColumns(e={}){if("object"!=typeof e)throw TypeError("options must be an object");let{min:t=0,max:o=1}=e;if(!Number.isFinite(t))throw TypeError("min must be a number");if(!Number.isFinite(o))throw TypeError("max must be a number");if(t>=o)throw RangeError("min must be smaller than max");let r=new j(this.rows,this.columns);for(let e=0;e<this.columns;e++){let n=this.getColumn(e);n.length&&s(n,{min:t,max:o,output:n}),r.setColumn(e,n)}return r}flipRows(){let e=Math.ceil(this.columns/2);for(let t=0;t<this.rows;t++)for(let o=0;o<e;o++){let e=this.get(t,o),r=this.get(t,this.columns-1-o);this.set(t,o,r),this.set(t,this.columns-1-o,e)}return this}flipColumns(){let e=Math.ceil(this.rows/2);for(let t=0;t<this.columns;t++)for(let o=0;o<e;o++){let e=this.get(o,t),r=this.get(this.rows-1-o,t);this.set(o,t,r),this.set(this.rows-1-o,t,e)}return this}kroneckerProduct(e){e=j.checkMatrix(e);let t=this.rows,o=this.columns,r=e.rows,s=e.columns,n=new j(t*r,o*s);for(let i=0;i<t;i++)for(let t=0;t<o;t++)for(let o=0;o<r;o++)for(let a=0;a<s;a++)n.set(r*i+o,s*t+a,this.get(i,t)*e.get(o,a));return n}kroneckerSum(e){if(e=j.checkMatrix(e),!this.isSquare()||!e.isSquare())throw Error("Kronecker Sum needs two Square Matrices");let t=this.rows,o=e.rows,r=this.kroneckerProduct(j.eye(o,o)),s=j.eye(t,t).kroneckerProduct(e);return r.add(s)}transpose(){let e=new j(this.columns,this.rows);for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)e.set(o,t,this.get(t,o));return e}sortRows(e=b){for(let t=0;t<this.rows;t++)this.setRow(t,this.getRow(t).sort(e));return this}sortColumns(e=b){for(let t=0;t<this.columns;t++)this.setColumn(t,this.getColumn(t).sort(e));return this}subMatrix(e,t,o,r){m(this,e,t,o,r);let s=new j(t-e+1,r-o+1);for(let n=e;n<=t;n++)for(let t=o;t<=r;t++)s.set(n-e,t-o,this.get(n,t));return s}subMatrixRow(e,t,o){if(void 0===t&&(t=0),void 0===o&&(o=this.columns-1),t>o||t<0||t>=this.columns||o<0||o>=this.columns)throw RangeError("Argument out of range");let r=new j(e.length,o-t+1);for(let s=0;s<e.length;s++)for(let n=t;n<=o;n++){if(e[s]<0||e[s]>=this.rows)throw RangeError(`Row index out of range: ${e[s]}`);r.set(s,n-t,this.get(e[s],n))}return r}subMatrixColumn(e,t,o){if(void 0===t&&(t=0),void 0===o&&(o=this.rows-1),t>o||t<0||t>=this.rows||o<0||o>=this.rows)throw RangeError("Argument out of range");let r=new j(o-t+1,e.length);for(let s=0;s<e.length;s++)for(let n=t;n<=o;n++){if(e[s]<0||e[s]>=this.columns)throw RangeError(`Column index out of range: ${e[s]}`);r.set(n-t,s,this.get(n,e[s]))}return r}setSubMatrix(e,t,o){if((e=j.checkMatrix(e)).isEmpty())return this;let r=t+e.rows-1,s=o+e.columns-1;m(this,t,r,o,s);for(let r=0;r<e.rows;r++)for(let s=0;s<e.columns;s++)this.set(t+r,o+s,e.get(r,s));return this}selection(e,t){f(this,e),g(this,t);let o=new j(e.length,t.length);for(let r=0;r<e.length;r++){let s=e[r];for(let e=0;e<t.length;e++){let n=t[e];o.set(r,e,this.get(s,n))}}return o}trace(){let e=Math.min(this.rows,this.columns),t=0;for(let o=0;o<e;o++)t+=this.get(o,o);return t}clone(){return this.constructor.copy(this,new j(this.rows,this.columns))}static copy(e,t){for(let[o,r,s]of e.entries())t.set(o,r,s);return t}sum(e){switch(e){case"row":return function(e){let t=p(e.rows);for(let o=0;o<e.rows;++o)for(let r=0;r<e.columns;++r)t[o]+=e.get(o,r);return t}(this);case"column":return function(e){let t=p(e.columns);for(let o=0;o<e.rows;++o)for(let r=0;r<e.columns;++r)t[r]+=e.get(o,r);return t}(this);case void 0:return function(e){let t=0;for(let o=0;o<e.rows;o++)for(let r=0;r<e.columns;r++)t+=e.get(o,r);return t}(this);default:throw Error(`invalid option: ${e}`)}}product(e){switch(e){case"row":return function(e){let t=p(e.rows,1);for(let o=0;o<e.rows;++o)for(let r=0;r<e.columns;++r)t[o]*=e.get(o,r);return t}(this);case"column":return function(e){let t=p(e.columns,1);for(let o=0;o<e.rows;++o)for(let r=0;r<e.columns;++r)t[r]*=e.get(o,r);return t}(this);case void 0:return function(e){let t=1;for(let o=0;o<e.rows;o++)for(let r=0;r<e.columns;r++)t*=e.get(o,r);return t}(this);default:throw Error(`invalid option: ${e}`)}}mean(e){let t=this.sum(e);switch(e){case"row":for(let e=0;e<this.rows;e++)t[e]/=this.columns;return t;case"column":for(let e=0;e<this.columns;e++)t[e]/=this.rows;return t;case void 0:return t/this.size;default:throw Error(`invalid option: ${e}`)}}variance(e,t={}){if("object"==typeof e&&(t=e,e=void 0),"object"!=typeof t)throw TypeError("options must be an object");let{unbiased:o=!0,mean:s=this.mean(e)}=t;if("boolean"!=typeof o)throw TypeError("unbiased must be a boolean");switch(e){case"row":if(!r.isAnyArray(s))throw TypeError("mean must be an array");return function(e,t,o){let r=e.rows,s=e.columns,n=[];for(let i=0;i<r;i++){let r=0,a=0,d=0;for(let t=0;t<s;t++)r+=d=e.get(i,t)-o[i],a+=d*d;t?n.push((a-r*r/s)/(s-1)):n.push((a-r*r/s)/s)}return n}(this,o,s);case"column":if(!r.isAnyArray(s))throw TypeError("mean must be an array");return function(e,t,o){let r=e.rows,s=e.columns,n=[];for(let i=0;i<s;i++){let s=0,a=0,d=0;for(let t=0;t<r;t++)s+=d=e.get(t,i)-o[i],a+=d*d;t?n.push((a-s*s/r)/(r-1)):n.push((a-s*s/r)/r)}return n}(this,o,s);case void 0:if("number"!=typeof s)throw TypeError("mean must be a number");return function(e,t,o){let r=e.rows,s=e.columns,n=r*s,i=0,a=0,d=0;for(let t=0;t<r;t++)for(let r=0;r<s;r++)i+=d=e.get(t,r)-o,a+=d*d;return t?(a-i*i/n)/(n-1):(a-i*i/n)/n}(this,o,s);default:throw Error(`invalid option: ${e}`)}}standardDeviation(e,t){"object"==typeof e&&(t=e,e=void 0);let o=this.variance(e,t);if(void 0===e)return Math.sqrt(o);for(let e=0;e<o.length;e++)o[e]=Math.sqrt(o[e]);return o}center(e,t={}){if("object"==typeof e&&(t=e,e=void 0),"object"!=typeof t)throw TypeError("options must be an object");let{center:o=this.mean(e)}=t;switch(e){case"row":if(!r.isAnyArray(o))throw TypeError("center must be an array");for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)-o[e]);return this;case"column":if(!r.isAnyArray(o))throw TypeError("center must be an array");for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)-o[t]);return this;case void 0:if("number"!=typeof o)throw TypeError("center must be a number");for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)-o);return this;default:throw Error(`invalid option: ${e}`)}}scale(e,t={}){if("object"==typeof e&&(t=e,e=void 0),"object"!=typeof t)throw TypeError("options must be an object");let o=t.scale;switch(e){case"row":if(void 0===o)o=function(e){let t=[];for(let o=0;o<e.rows;o++){let r=0;for(let t=0;t<e.columns;t++)r+=e.get(o,t)**2/(e.columns-1);t.push(Math.sqrt(r))}return t}(this);else if(!r.isAnyArray(o))throw TypeError("scale must be an array");var s=o;for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)/s[e]);return this;case"column":if(void 0===o)o=function(e){let t=[];for(let o=0;o<e.columns;o++){let r=0;for(let t=0;t<e.rows;t++)r+=e.get(t,o)**2/(e.rows-1);t.push(Math.sqrt(r))}return t}(this);else if(!r.isAnyArray(o))throw TypeError("scale must be an array");var n=o;for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)/n[t]);return this;case void 0:if(void 0===o)o=function(e){let t=e.size-1,o=0;for(let r=0;r<e.columns;r++)for(let s=0;s<e.rows;s++)o+=e.get(s,r)**2/t;return Math.sqrt(o)}(this);else if("number"!=typeof o)throw TypeError("scale must be a number");var i=o;for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,this.get(e,t)/i);return this;default:throw Error(`invalid option: ${e}`)}}toString(e){return a(this,e)}[Symbol.iterator](){return this.entries()}*entries(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)yield[e,t,this.get(e,t)]}*values(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)yield this.get(e,t)}}function b(e,t){return e-t}y.prototype.klass="Matrix","undefined"!=typeof Symbol&&(y.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return a(this)}),y.random=y.rand,y.randomInt=y.randInt,y.diagonal=y.diag,y.prototype.diagonal=y.prototype.diag,y.identity=y.eye,y.prototype.negate=y.prototype.neg,y.prototype.tensorProduct=y.prototype.kroneckerProduct;class j extends y{data;#e(e,t){if(this.data=[],Number.isInteger(t)&&t>=0)for(let o=0;o<e;o++)this.data.push(new Float64Array(t));else throw TypeError("nColumns must be a positive integer");this.rows=e,this.columns=t}constructor(e,t){if(super(),j.isMatrix(e))this.#e(e.rows,e.columns),j.copy(e,this);else if(Number.isInteger(e)&&e>=0)this.#e(e,t);else if(r.isAnyArray(e)){let o=e;if("number"!=typeof(t=(e=o.length)?o[0].length:0))throw TypeError("Data must be a 2D array with at least one element");this.data=[];for(let r=0;r<e;r++){if(o[r].length!==t)throw RangeError("Inconsistent array dimensions");if(!o[r].every(e=>"number"==typeof e))throw TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(o[r]))}this.rows=e,this.columns=t}else throw TypeError("First argument must be a positive number or an array")}set(e,t,o){return this.data[e][t]=o,this}get(e,t){return this.data[e][t]}removeRow(e){return l(this,e),this.data.splice(e,1),this.rows-=1,this}addRow(e,t){return void 0===t&&(t=e,e=this.rows),l(this,e,!0),t=Float64Array.from(h(this,t)),this.data.splice(e,0,t),this.rows+=1,this}removeColumn(e){u(this,e);for(let t=0;t<this.rows;t++){let o=new Float64Array(this.columns-1);for(let r=0;r<e;r++)o[r]=this.data[t][r];for(let r=e+1;r<this.columns;r++)o[r-1]=this.data[t][r];this.data[t]=o}return this.columns-=1,this}addColumn(e,t){void 0===t&&(t=e,e=this.columns),u(this,e,!0),t=c(this,t);for(let o=0;o<this.rows;o++){let r=new Float64Array(this.columns+1),s=0;for(;s<e;s++)r[s]=this.data[o][s];for(r[s++]=t[o];s<this.columns+1;s++)r[s]=this.data[o][s-1];this.data[o]=r}return this.columns+=1,this}}y.prototype.add=function(e){return"number"==typeof e?this.addS(e):this.addM(e)},y.prototype.addS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)+e);return this},y.prototype.addM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)+e.get(t,o));return this},y.add=function(e,t){return new j(e).add(t)},y.prototype.sub=function(e){return"number"==typeof e?this.subS(e):this.subM(e)},y.prototype.subS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)-e);return this},y.prototype.subM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)-e.get(t,o));return this},y.sub=function(e,t){return new j(e).sub(t)},y.prototype.subtract=y.prototype.sub,y.prototype.subtractS=y.prototype.subS,y.prototype.subtractM=y.prototype.subM,y.subtract=y.sub,y.prototype.mul=function(e){return"number"==typeof e?this.mulS(e):this.mulM(e)},y.prototype.mulS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)*e);return this},y.prototype.mulM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)*e.get(t,o));return this},y.mul=function(e,t){return new j(e).mul(t)},y.prototype.multiply=y.prototype.mul,y.prototype.multiplyS=y.prototype.mulS,y.prototype.multiplyM=y.prototype.mulM,y.multiply=y.mul,y.prototype.div=function(e){return"number"==typeof e?this.divS(e):this.divM(e)},y.prototype.divS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)/e);return this},y.prototype.divM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)/e.get(t,o));return this},y.div=function(e,t){return new j(e).div(t)},y.prototype.divide=y.prototype.div,y.prototype.divideS=y.prototype.divS,y.prototype.divideM=y.prototype.divM,y.divide=y.div,y.prototype.mod=function(e){return"number"==typeof e?this.modS(e):this.modM(e)},y.prototype.modS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)%e);return this},y.prototype.modM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)%e.get(t,o));return this},y.mod=function(e,t){return new j(e).mod(t)},y.prototype.modulus=y.prototype.mod,y.prototype.modulusS=y.prototype.modS,y.prototype.modulusM=y.prototype.modM,y.modulus=y.mod,y.prototype.and=function(e){return"number"==typeof e?this.andS(e):this.andM(e)},y.prototype.andS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)&e);return this},y.prototype.andM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)&e.get(t,o));return this},y.and=function(e,t){return new j(e).and(t)},y.prototype.or=function(e){return"number"==typeof e?this.orS(e):this.orM(e)},y.prototype.orS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)|e);return this},y.prototype.orM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)|e.get(t,o));return this},y.or=function(e,t){return new j(e).or(t)},y.prototype.xor=function(e){return"number"==typeof e?this.xorS(e):this.xorM(e)},y.prototype.xorS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)^e);return this},y.prototype.xorM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)^e.get(t,o));return this},y.xor=function(e,t){return new j(e).xor(t)},y.prototype.leftShift=function(e){return"number"==typeof e?this.leftShiftS(e):this.leftShiftM(e)},y.prototype.leftShiftS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)<<e);return this},y.prototype.leftShiftM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)<<e.get(t,o));return this},y.leftShift=function(e,t){return new j(e).leftShift(t)},y.prototype.signPropagatingRightShift=function(e){return"number"==typeof e?this.signPropagatingRightShiftS(e):this.signPropagatingRightShiftM(e)},y.prototype.signPropagatingRightShiftS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)>>e);return this},y.prototype.signPropagatingRightShiftM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)>>e.get(t,o));return this},y.signPropagatingRightShift=function(e,t){return new j(e).signPropagatingRightShift(t)},y.prototype.rightShift=function(e){return"number"==typeof e?this.rightShiftS(e):this.rightShiftM(e)},y.prototype.rightShiftS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)>>>e);return this},y.prototype.rightShiftM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)>>>e.get(t,o));return this},y.rightShift=function(e,t){return new j(e).rightShift(t)},y.prototype.zeroFillRightShift=y.prototype.rightShift,y.prototype.zeroFillRightShiftS=y.prototype.rightShiftS,y.prototype.zeroFillRightShiftM=y.prototype.rightShiftM,y.zeroFillRightShift=y.rightShift,y.prototype.not=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,~this.get(e,t));return this},y.not=function(e){return new j(e).not()},y.prototype.abs=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.abs(this.get(e,t)));return this},y.abs=function(e){return new j(e).abs()},y.prototype.acos=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.acos(this.get(e,t)));return this},y.acos=function(e){return new j(e).acos()},y.prototype.acosh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.acosh(this.get(e,t)));return this},y.acosh=function(e){return new j(e).acosh()},y.prototype.asin=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.asin(this.get(e,t)));return this},y.asin=function(e){return new j(e).asin()},y.prototype.asinh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.asinh(this.get(e,t)));return this},y.asinh=function(e){return new j(e).asinh()},y.prototype.atan=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.atan(this.get(e,t)));return this},y.atan=function(e){return new j(e).atan()},y.prototype.atanh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.atanh(this.get(e,t)));return this},y.atanh=function(e){return new j(e).atanh()},y.prototype.cbrt=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.cbrt(this.get(e,t)));return this},y.cbrt=function(e){return new j(e).cbrt()},y.prototype.ceil=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.ceil(this.get(e,t)));return this},y.ceil=function(e){return new j(e).ceil()},y.prototype.clz32=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.clz32(this.get(e,t)));return this},y.clz32=function(e){return new j(e).clz32()},y.prototype.cos=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.cos(this.get(e,t)));return this},y.cos=function(e){return new j(e).cos()},y.prototype.cosh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.cosh(this.get(e,t)));return this},y.cosh=function(e){return new j(e).cosh()},y.prototype.exp=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.exp(this.get(e,t)));return this},y.exp=function(e){return new j(e).exp()},y.prototype.expm1=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.expm1(this.get(e,t)));return this},y.expm1=function(e){return new j(e).expm1()},y.prototype.floor=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.floor(this.get(e,t)));return this},y.floor=function(e){return new j(e).floor()},y.prototype.fround=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.fround(this.get(e,t)));return this},y.fround=function(e){return new j(e).fround()},y.prototype.log=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.log(this.get(e,t)));return this},y.log=function(e){return new j(e).log()},y.prototype.log1p=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.log1p(this.get(e,t)));return this},y.log1p=function(e){return new j(e).log1p()},y.prototype.log10=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.log10(this.get(e,t)));return this},y.log10=function(e){return new j(e).log10()},y.prototype.log2=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.log2(this.get(e,t)));return this},y.log2=function(e){return new j(e).log2()},y.prototype.round=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.round(this.get(e,t)));return this},y.round=function(e){return new j(e).round()},y.prototype.sign=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.sign(this.get(e,t)));return this},y.sign=function(e){return new j(e).sign()},y.prototype.sin=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.sin(this.get(e,t)));return this},y.sin=function(e){return new j(e).sin()},y.prototype.sinh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.sinh(this.get(e,t)));return this},y.sinh=function(e){return new j(e).sinh()},y.prototype.sqrt=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.sqrt(this.get(e,t)));return this},y.sqrt=function(e){return new j(e).sqrt()},y.prototype.tan=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.tan(this.get(e,t)));return this},y.tan=function(e){return new j(e).tan()},y.prototype.tanh=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.tanh(this.get(e,t)));return this},y.tanh=function(e){return new j(e).tanh()},y.prototype.trunc=function(){for(let e=0;e<this.rows;e++)for(let t=0;t<this.columns;t++)this.set(e,t,Math.trunc(this.get(e,t)));return this},y.trunc=function(e){return new j(e).trunc()},y.pow=function(e,t){return new j(e).pow(t)},y.prototype.pow=function(e){return"number"==typeof e?this.powS(e):this.powM(e)},y.prototype.powS=function(e){for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)**e);return this},y.prototype.powM=function(e){if(e=j.checkMatrix(e),this.rows!==e.rows||this.columns!==e.columns)throw RangeError("Matrices dimensions must be equal");for(let t=0;t<this.rows;t++)for(let o=0;o<this.columns;o++)this.set(t,o,this.get(t,o)**e.get(t,o));return this};class x extends y{#t;get size(){return this.#t.size}get rows(){return this.#t.rows}get columns(){return this.#t.columns}get diagonalSize(){return this.rows}static isSymmetricMatrix(e){return j.isMatrix(e)&&"SymmetricMatrix"===e.klassType}static zeros(e){return new this(e)}static ones(e){return new this(e).fill(1)}constructor(e){if(super(),j.isMatrix(e)){if(!e.isSymmetric())throw TypeError("not symmetric data");this.#t=j.copy(e,new j(e.rows,e.rows))}else if(Number.isInteger(e)&&e>=0)this.#t=new j(e,e);else if(this.#t=new j(e),!this.isSymmetric())throw TypeError("not symmetric data")}clone(){let e=new x(this.diagonalSize);for(let[t,o,r]of this.upperRightEntries())e.set(t,o,r);return e}toMatrix(){return new j(this)}get(e,t){return this.#t.get(e,t)}set(e,t,o){return this.#t.set(e,t,o),this.#t.set(t,e,o),this}removeCross(e){return this.#t.removeRow(e),this.#t.removeColumn(e),this}addCross(e,t){void 0===t&&(t=e,e=this.diagonalSize);let o=t.slice();return o.splice(e,1),this.#t.addRow(e,o),this.#t.addColumn(e,t),this}applyMask(e){if(e.length!==this.diagonalSize)throw RangeError("Mask size do not match with matrix size");let t=[];for(let[o,r]of e.entries())r||t.push(o);for(let e of(t.reverse(),t))this.removeCross(e);return this}toCompact(){let{diagonalSize:e}=this,t=Array(e*(e+1)/2);for(let o=0,r=0,s=0;s<t.length;s++)t[s]=this.get(r,o),++o>=e&&(o=++r);return t}static fromCompact(e){let t=e.length,o=(Math.sqrt(8*t+1)-1)/2;if(!Number.isInteger(o))throw TypeError(`This array is not a compact representation of a Symmetric Matrix, ${JSON.stringify(e)}`);let r=new x(o);for(let s=0,n=0,i=0;i<t;i++)r.set(s,n,e[i]),++s>=o&&(s=++n);return r}*upperRightEntries(){for(let e=0,t=0;e<this.diagonalSize;){let o=this.get(e,t);yield[e,t,o],++t>=this.diagonalSize&&(t=++e)}}*upperRightValues(){for(let e=0,t=0;e<this.diagonalSize;){let o=this.get(e,t);yield o,++t>=this.diagonalSize&&(t=++e)}}}x.prototype.klassType="SymmetricMatrix";class w extends x{static isDistanceMatrix(e){return x.isSymmetricMatrix(e)&&"DistanceMatrix"===e.klassSubType}constructor(e){if(super(e),!this.isDistance())throw TypeError("Provided arguments do no produce a distance matrix")}set(e,t,o){return e===t&&(o=0),super.set(e,t,o)}addCross(e,t){return void 0===t&&(t=e,e=this.diagonalSize),(t=t.slice())[e]=0,super.addCross(e,t)}toSymmetricMatrix(){return new x(this)}clone(){let e=new w(this.diagonalSize);for(let[t,o,r]of this.upperRightEntries())t!==o&&e.set(t,o,r);return e}toCompact(){let{diagonalSize:e}=this,t=Array((e-1)*e/2);for(let o=1,r=0,s=0;s<t.length;s++)t[s]=this.get(r,o),++o>=e&&(o=++r+1);return t}static fromCompact(e){let t=e.length;if(0===t)return new this(0);let o=(Math.sqrt(8*t+1)+1)/2;if(!Number.isInteger(o))throw TypeError(`This array is not a compact representation of a DistanceMatrix, ${JSON.stringify(e)}`);let r=new this(o);for(let s=1,n=0,i=0;i<t;i++)r.set(s,n,e[i]),++s>=o&&(s=++n+1);return r}}w.prototype.klassSubType="DistanceMatrix";class E extends y{constructor(e,t,o){super(),this.matrix=e,this.rows=t,this.columns=o}}class M extends E{constructor(e,t,o){f(e,t),g(e,o),super(e,t.length,o.length),this.rowIndices=t,this.columnIndices=o}set(e,t,o){return this.matrix.set(this.rowIndices[e],this.columnIndices[t],o),this}get(e,t){return this.matrix.get(this.rowIndices[e],this.columnIndices[t])}}class N extends y{constructor(e,t={}){let{rows:o=1}=t;if(e.length%o!=0)throw Error("the data length is not divisible by the number of rows");super(),this.rows=o,this.columns=e.length/o,this.data=e}set(e,t,o){let r=this._calculateIndex(e,t);return this.data[r]=o,this}get(e,t){let o=this._calculateIndex(e,t);return this.data[o]}_calculateIndex(e,t){return e*this.columns+t}}class k extends y{constructor(e){super(),this.data=e,this.rows=e.length,this.columns=e[0].length}set(e,t,o){return this.data[e][t]=o,this}get(e,t){return this.data[e][t]}}class A{constructor(e){let t,o,r,s,n,i,a,d,l,u=(e=k.checkMatrix(e)).clone(),h=u.rows,c=u.columns,f=new Float64Array(h),g=1;for(t=0;t<h;t++)f[t]=t;for(o=0,d=new Float64Array(h);o<c;o++){for(t=0;t<h;t++)d[t]=u.get(t,o);for(t=0;t<h;t++){for(r=0,l=Math.min(t,o),n=0;r<l;r++)n+=u.get(t,r)*d[r];d[t]-=n,u.set(t,o,d[t])}for(s=o,t=o+1;t<h;t++)Math.abs(d[t])>Math.abs(d[s])&&(s=t);if(s!==o){for(r=0;r<c;r++)i=u.get(s,r),u.set(s,r,u.get(o,r)),u.set(o,r,i);a=f[s],f[s]=f[o],f[o]=a,g=-g}if(o<h&&0!==u.get(o,o))for(t=o+1;t<h;t++)u.set(t,o,u.get(t,o)/u.get(o,o))}this.LU=u,this.pivotVector=f,this.pivotSign=g}isSingular(){let e=this.LU,t=e.columns;for(let o=0;o<t;o++)if(0===e.get(o,o))return!0;return!1}solve(e){let t,o,r;e=j.checkMatrix(e);let s=this.LU;if(s.rows!==e.rows)throw Error("Invalid matrix dimensions");if(this.isSingular())throw Error("LU matrix is singular");let n=e.columns,i=e.subMatrixRow(this.pivotVector,0,n-1),a=s.columns;for(r=0;r<a;r++)for(t=r+1;t<a;t++)for(o=0;o<n;o++)i.set(t,o,i.get(t,o)-i.get(r,o)*s.get(t,r));for(r=a-1;r>=0;r--){for(o=0;o<n;o++)i.set(r,o,i.get(r,o)/s.get(r,r));for(t=0;t<r;t++)for(o=0;o<n;o++)i.set(t,o,i.get(t,o)-i.get(r,o)*s.get(t,r))}return i}get determinant(){let e=this.LU;if(!e.isSquare())throw Error("Matrix must be square");let t=this.pivotSign,o=e.columns;for(let r=0;r<o;r++)t*=e.get(r,r);return t}get lowerTriangularMatrix(){let e=this.LU,t=e.rows,o=e.columns,r=new j(t,o);for(let s=0;s<t;s++)for(let t=0;t<o;t++)s>t?r.set(s,t,e.get(s,t)):s===t?r.set(s,t,1):r.set(s,t,0);return r}get upperTriangularMatrix(){let e=this.LU,t=e.rows,o=e.columns,r=new j(t,o);for(let s=0;s<t;s++)for(let t=0;t<o;t++)s<=t?r.set(s,t,e.get(s,t)):r.set(s,t,0);return r}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function S(e,t){let o=0;return Math.abs(e)>Math.abs(t)?(o=t/e,Math.abs(e)*Math.sqrt(1+o*o)):0!==t?(o=e/t,Math.abs(t)*Math.sqrt(1+o*o)):0}class O{constructor(e){let t,o,r,s,n=(e=k.checkMatrix(e)).clone(),i=e.rows,a=e.columns,d=new Float64Array(a);for(r=0;r<a;r++){let e=0;for(t=r;t<i;t++)e=S(e,n.get(t,r));if(0!==e){for(0>n.get(r,r)&&(e=-e),t=r;t<i;t++)n.set(t,r,n.get(t,r)/e);for(n.set(r,r,n.get(r,r)+1),o=r+1;o<a;o++){for(s=0,t=r;t<i;t++)s+=n.get(t,r)*n.get(t,o);for(s=-s/n.get(r,r),t=r;t<i;t++)n.set(t,o,n.get(t,o)+s*n.get(t,r))}}d[r]=-e}this.QR=n,this.Rdiag=d}solve(e){let t,o,r,s;e=j.checkMatrix(e);let n=this.QR,i=n.rows;if(e.rows!==i)throw Error("Matrix row dimensions must agree");if(!this.isFullRank())throw Error("Matrix is rank deficient");let a=e.columns,d=e.clone(),l=n.columns;for(r=0;r<l;r++)for(o=0;o<a;o++){for(s=0,t=r;t<i;t++)s+=n.get(t,r)*d.get(t,o);for(s=-s/n.get(r,r),t=r;t<i;t++)d.set(t,o,d.get(t,o)+s*n.get(t,r))}for(r=l-1;r>=0;r--){for(o=0;o<a;o++)d.set(r,o,d.get(r,o)/this.Rdiag[r]);for(t=0;t<r;t++)for(o=0;o<a;o++)d.set(t,o,d.get(t,o)-d.get(r,o)*n.get(t,r))}return d.subMatrix(0,l-1,0,a-1)}isFullRank(){let e=this.QR.columns;for(let t=0;t<e;t++)if(0===this.Rdiag[t])return!1;return!0}get upperTriangularMatrix(){let e,t,o=this.QR,r=o.columns,s=new j(r,r);for(e=0;e<r;e++)for(t=0;t<r;t++)e<t?s.set(e,t,o.get(e,t)):e===t?s.set(e,t,this.Rdiag[e]):s.set(e,t,0);return s}get orthogonalMatrix(){let e,t,o,r,s=this.QR,n=s.rows,i=s.columns,a=new j(n,i);for(o=i-1;o>=0;o--){for(e=0;e<n;e++)a.set(e,o,0);for(a.set(o,o,1),t=o;t<i;t++)if(0!==s.get(o,o)){for(r=0,e=o;e<n;e++)r+=s.get(e,o)*a.get(e,t);for(r=-r/s.get(o,o),e=o;e<n;e++)a.set(e,t,a.get(e,t)+r*s.get(e,o))}}return a}}class z{constructor(e,t={}){let o;if((e=k.checkMatrix(e)).isEmpty())throw Error("Matrix must be non-empty");let r=e.rows,s=e.columns,{computeLeftSingularVectors:n=!0,computeRightSingularVectors:i=!0,autoTranspose:a=!1}=t,d=!!n,l=!!i,u=!1;if(r<s)if(a){r=(o=e.transpose()).rows,s=o.columns,u=!0;let t=d;d=l,l=t}else o=e.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else o=e.clone();let h=Math.min(r,s),c=Math.min(r+1,s),f=new Float64Array(c),g=new j(r,h),m=new j(s,s),p=new Float64Array(s),_=new Float64Array(r),v=new Float64Array(c);for(let e=0;e<c;e++)v[e]=e;let y=Math.min(r-1,s),b=Math.max(0,Math.min(s-2,r)),x=Math.max(y,b);for(let e=0;e<x;e++){if(e<y){f[e]=0;for(let t=e;t<r;t++)f[e]=S(f[e],o.get(t,e));if(0!==f[e]){0>o.get(e,e)&&(f[e]=-f[e]);for(let t=e;t<r;t++)o.set(t,e,o.get(t,e)/f[e]);o.set(e,e,o.get(e,e)+1)}f[e]=-f[e]}for(let t=e+1;t<s;t++){if(e<y&&0!==f[e]){let s=0;for(let n=e;n<r;n++)s+=o.get(n,e)*o.get(n,t);s=-s/o.get(e,e);for(let n=e;n<r;n++)o.set(n,t,o.get(n,t)+s*o.get(n,e))}p[t]=o.get(e,t)}if(d&&e<y)for(let t=e;t<r;t++)g.set(t,e,o.get(t,e));if(e<b){p[e]=0;for(let t=e+1;t<s;t++)p[e]=S(p[e],p[t]);if(0!==p[e]){p[e+1]<0&&(p[e]=0-p[e]);for(let t=e+1;t<s;t++)p[t]/=p[e];p[e+1]+=1}if(p[e]=-p[e],e+1<r&&0!==p[e]){for(let t=e+1;t<r;t++)_[t]=0;for(let t=e+1;t<r;t++)for(let r=e+1;r<s;r++)_[t]+=p[r]*o.get(t,r);for(let t=e+1;t<s;t++){let s=-p[t]/p[e+1];for(let n=e+1;n<r;n++)o.set(n,t,o.get(n,t)+s*_[n])}}if(l)for(let t=e+1;t<s;t++)m.set(t,e,p[t])}}let w=Math.min(s,r+1);if(y<s&&(f[y]=o.get(y,y)),r<w&&(f[w-1]=0),b+1<w&&(p[b]=o.get(b,w-1)),p[w-1]=0,d){for(let e=y;e<h;e++){for(let t=0;t<r;t++)g.set(t,e,0);g.set(e,e,1)}for(let e=y-1;e>=0;e--)if(0!==f[e]){for(let t=e+1;t<h;t++){let o=0;for(let s=e;s<r;s++)o+=g.get(s,e)*g.get(s,t);o=-o/g.get(e,e);for(let s=e;s<r;s++)g.set(s,t,g.get(s,t)+o*g.get(s,e))}for(let t=e;t<r;t++)g.set(t,e,-g.get(t,e));g.set(e,e,1+g.get(e,e));for(let t=0;t<e-1;t++)g.set(t,e,0)}else{for(let t=0;t<r;t++)g.set(t,e,0);g.set(e,e,1)}}if(l)for(let e=s-1;e>=0;e--){if(e<b&&0!==p[e])for(let t=e+1;t<s;t++){let o=0;for(let r=e+1;r<s;r++)o+=m.get(r,e)*m.get(r,t);o=-o/m.get(e+1,e);for(let r=e+1;r<s;r++)m.set(r,t,m.get(r,t)+o*m.get(r,e))}for(let t=0;t<s;t++)m.set(t,e,0);m.set(e,e,1)}let E=w-1,M=Number.EPSILON;for(;w>0;){let e,t;for(e=w-2;e>=-1&&-1!==e;e--){let t=Number.MIN_VALUE+M*Math.abs(f[e]+Math.abs(f[e+1]));if(Math.abs(p[e])<=t||Number.isNaN(p[e])){p[e]=0;break}}if(e===w-2)t=4;else{let o;for(o=w-1;o>=e&&o!==e;o--){let t=(o!==w?Math.abs(p[o]):0)+(o!==e+1?Math.abs(p[o-1]):0);if(Math.abs(f[o])<=M*t){f[o]=0;break}}o===e?t=3:o===w-1?t=1:(t=2,e=o)}switch(e++,t){case 1:{let t=p[w-2];p[w-2]=0;for(let o=w-2;o>=e;o--){let r=S(f[o],t),n=f[o]/r,i=t/r;if(f[o]=r,o!==e&&(t=-i*p[o-1],p[o-1]=n*p[o-1]),l)for(let e=0;e<s;e++)r=n*m.get(e,o)+i*m.get(e,w-1),m.set(e,w-1,-i*m.get(e,o)+n*m.get(e,w-1)),m.set(e,o,r)}break}case 2:{let t=p[e-1];p[e-1]=0;for(let o=e;o<w;o++){let s=S(f[o],t),n=f[o]/s,i=t/s;if(f[o]=s,t=-i*p[o],p[o]=n*p[o],d)for(let t=0;t<r;t++)s=n*g.get(t,o)+i*g.get(t,e-1),g.set(t,e-1,-i*g.get(t,o)+n*g.get(t,e-1)),g.set(t,o,s)}break}case 3:{let t=Math.max(Math.abs(f[w-1]),Math.abs(f[w-2]),Math.abs(p[w-2]),Math.abs(f[e]),Math.abs(p[e])),o=f[w-1]/t,n=f[w-2]/t,i=p[w-2]/t,a=f[e]/t,u=p[e]/t,h=((n+o)*(n-o)+i*i)/2,c=o*i*(o*i),_=0;(0!==h||0!==c)&&(_=h<0?0-Math.sqrt(h*h+c):Math.sqrt(h*h+c),_=c/(h+_));let v=(a+o)*(a-o)+_,y=a*u;for(let t=e;t<w-1;t++){let o=S(v,y);0===o&&(o=Number.MIN_VALUE);let n=v/o,i=y/o;if(t!==e&&(p[t-1]=o),v=n*f[t]+i*p[t],p[t]=n*p[t]-i*f[t],y=i*f[t+1],f[t+1]=n*f[t+1],l)for(let e=0;e<s;e++)o=n*m.get(e,t)+i*m.get(e,t+1),m.set(e,t+1,-i*m.get(e,t)+n*m.get(e,t+1)),m.set(e,t,o);if(0===(o=S(v,y))&&(o=Number.MIN_VALUE),n=v/o,i=y/o,f[t]=o,v=n*p[t]+i*f[t+1],f[t+1]=-i*p[t]+n*f[t+1],y=i*p[t+1],p[t+1]=n*p[t+1],d&&t<r-1)for(let e=0;e<r;e++)o=n*g.get(e,t)+i*g.get(e,t+1),g.set(e,t+1,-i*g.get(e,t)+n*g.get(e,t+1)),g.set(e,t,o)}p[w-2]=v;break}case 4:if(f[e]<=0&&(f[e]=f[e]<0?-f[e]:0,l))for(let t=0;t<=E;t++)m.set(t,e,-m.get(t,e));for(;e<E&&!(f[e]>=f[e+1]);){let t=f[e];if(f[e]=f[e+1],f[e+1]=t,l&&e<s-1)for(let o=0;o<s;o++)t=m.get(o,e+1),m.set(o,e+1,m.get(o,e)),m.set(o,e,t);if(d&&e<r-1)for(let o=0;o<r;o++)t=g.get(o,e+1),g.set(o,e+1,g.get(o,e)),g.set(o,e,t);e++}w--}}if(u){let e=m;m=g,g=e}this.m=r,this.n=s,this.s=f,this.U=g,this.V=m}solve(e){let t=this.threshold,o=this.s.length,r=j.zeros(o,o);for(let e=0;e<o;e++)Math.abs(this.s[e])<=t?r.set(e,e,0):r.set(e,e,1/this.s[e]);let s=this.U,n=this.rightSingularVectors,i=n.mmul(r),a=n.rows,d=s.rows,l=j.zeros(a,d);for(let e=0;e<a;e++)for(let t=0;t<d;t++){let r=0;for(let n=0;n<o;n++)r+=i.get(e,n)*s.get(t,n);l.set(e,t,r)}return l.mmul(e)}solveForDiagonal(e){return this.solve(j.diag(e))}inverse(){let e=this.V,t=this.threshold,o=e.rows,r=e.columns,s=new j(o,this.s.length);for(let n=0;n<o;n++)for(let o=0;o<r;o++)Math.abs(this.s[o])>t&&s.set(n,o,e.get(n,o)/this.s[o]);let n=this.U,i=n.rows,a=n.columns,d=new j(o,i);for(let e=0;e<o;e++)for(let t=0;t<i;t++){let o=0;for(let r=0;r<a;r++)o+=s.get(e,r)*n.get(t,r);d.set(e,t,o)}return d}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let e=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,t=0,o=this.s;for(let r=0,s=o.length;r<s;r++)o[r]>e&&t++;return t}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return j.diag(this.s)}}function I(e,t,o=!1){return(e=k.checkMatrix(e),t=k.checkMatrix(t),o)?new z(e).solve(t):e.isSquare()?new A(e).solve(t):new O(e).solve(t)}class R{constructor(e,t={}){let o,r,{assumeSymmetric:s=!1}=t;if(!(e=k.checkMatrix(e)).isSquare())throw Error("Matrix is not a square matrix");if(e.isEmpty())throw Error("Matrix must be non-empty");let n=e.columns,i=new j(n,n),a=new Float64Array(n),d=new Float64Array(n),l=e,u=!1;if(s||e.isSymmetric()){for(o=0;o<n;o++)for(r=0;r<n;r++)i.set(o,r,l.get(o,r));(function(e,t,o,r){let s,n,i,a,d,l,u,h;for(d=0;d<e;d++)o[d]=r.get(e-1,d);for(a=e-1;a>0;a--){for(l=0,h=0,i=0;l<a;l++)h+=Math.abs(o[l]);if(0===h)for(d=0,t[a]=o[a-1];d<a;d++)o[d]=r.get(a-1,d),r.set(a,d,0),r.set(d,a,0);else{for(l=0;l<a;l++)o[l]/=h,i+=o[l]*o[l];for(s=o[a-1],n=Math.sqrt(i),s>0&&(n=-n),t[a]=h*n,i-=s*n,o[a-1]=s-n,d=0;d<a;d++)t[d]=0;for(d=0;d<a;d++){for(s=o[d],r.set(d,a,s),n=t[d]+r.get(d,d)*s,l=d+1;l<=a-1;l++)n+=r.get(l,d)*o[l],t[l]+=r.get(l,d)*s;t[d]=n}for(d=0,s=0;d<a;d++)t[d]/=i,s+=t[d]*o[d];for(d=0,u=s/(i+i);d<a;d++)t[d]-=u*o[d];for(d=0;d<a;d++){for(s=o[d],n=t[d],l=d;l<=a-1;l++)r.set(l,d,r.get(l,d)-(s*t[l]+n*o[l]));o[d]=r.get(a-1,d),r.set(a,d,0)}}o[a]=i}for(a=0;a<e-1;a++){if(r.set(e-1,a,r.get(a,a)),r.set(a,a,1),0!==(i=o[a+1])){for(l=0;l<=a;l++)o[l]=r.get(l,a+1)/i;for(d=0;d<=a;d++){for(l=0,n=0;l<=a;l++)n+=r.get(l,a+1)*r.get(l,d);for(l=0;l<=a;l++)r.set(l,d,r.get(l,d)-n*o[l])}}for(l=0;l<=a;l++)r.set(l,a+1,0)}for(d=0;d<e;d++)o[d]=r.get(e-1,d),r.set(e-1,d,0);r.set(e-1,e-1,1),t[0]=0})(n,d,a,i),function(e,t,o,r){let s,n,i,a,d,l,u,h,c,f,g,m,p,_,v,y;for(i=1;i<e;i++)t[i-1]=t[i];t[e-1]=0;let b=0,j=0,x=Number.EPSILON;for(l=0;l<e;l++){for(j=Math.max(j,Math.abs(o[l])+Math.abs(t[l])),u=l;u<e&&!(Math.abs(t[u])<=x*j);)u++;if(u>l)do{for(s=o[l],c=S(h=(o[l+1]-s)/(2*t[l]),1),h<0&&(c=-c),o[l]=t[l]/(h+c),o[l+1]=t[l]*(h+c),f=o[l+1],n=s-o[l],i=l+2;i<e;i++)o[i]-=n;for(b+=n,h=o[u],m=g=1,p=g,_=t[l+1],v=0,y=0,i=u-1;i>=l;i--)for(d=0,p=m,m=g,y=v,s=g*t[i],n=g*h,c=S(h,t[i]),t[i+1]=v*c,v=t[i]/c,h=(g=h/c)*o[i]-v*s,o[i+1]=n+v*(g*s+v*o[i]);d<e;d++)n=r.get(d,i+1),r.set(d,i+1,v*r.get(d,i)+g*n),r.set(d,i,g*r.get(d,i)-v*n);h=-v*y*p*_*t[l]/f,t[l]=v*h,o[l]=g*h}while(Math.abs(t[l])>x*j);o[l]=o[l]+b,t[l]=0}for(i=0;i<e-1;i++){for(d=i,h=o[i],a=i+1;a<e;a++)o[a]<h&&(d=a,h=o[a]);if(d!==i)for(a=0,o[d]=o[i],o[i]=h;a<e;a++)h=r.get(a,i),r.set(a,i,r.get(a,d)),r.set(a,d,h)}}(n,d,a,i)}else{let e=new j(n,n),t=new Float64Array(n);for(r=0;r<n;r++)for(o=0;o<n;o++)e.set(o,r,l.get(o,r));(function(e,t,o,r){let s,n,i,a,d,l,u,h=e-1;for(l=1;l<=h-1;l++){for(u=0,a=l;a<=h;a++)u+=Math.abs(t.get(a,l-1));if(0!==u){for(i=0,a=h;a>=l;a--)o[a]=t.get(a,l-1)/u,i+=o[a]*o[a];for(n=Math.sqrt(i),o[l]>0&&(n=-n),i-=o[l]*n,o[l]=o[l]-n,d=l;d<e;d++){for(s=0,a=h;a>=l;a--)s+=o[a]*t.get(a,d);for(s/=i,a=l;a<=h;a++)t.set(a,d,t.get(a,d)-s*o[a])}for(a=0;a<=h;a++){for(s=0,d=h;d>=l;d--)s+=o[d]*t.get(a,d);for(s/=i,d=l;d<=h;d++)t.set(a,d,t.get(a,d)-s*o[d])}o[l]=u*o[l],t.set(l,l-1,u*n)}}for(a=0;a<e;a++)for(d=0;d<e;d++)r.set(a,d,+(a===d));for(l=h-1;l>=1;l--)if(0!==t.get(l,l-1)){for(a=l+1;a<=h;a++)o[a]=t.get(a,l-1);for(d=l;d<=h;d++){for(n=0,a=l;a<=h;a++)n+=o[a]*r.get(a,d);for(n=n/o[l]/t.get(l,l-1),a=l;a<=h;a++)r.set(a,d,r.get(a,d)+n*o[a])}}})(n,e,t,i),function(e,t,o,r,s){let n,i,a,d,l,u,h,c,f,g,m,p,_,v,y,b=e-1,j=e-1,x=Number.EPSILON,w=0,E=0,M=0,N=0,k=0,A=0,S=0,O=0;for(n=0;n<e;n++)for((n<0||n>j)&&(o[n]=s.get(n,n),t[n]=0),i=Math.max(n-1,0);i<e;i++)E+=Math.abs(s.get(n,i));for(;b>=0;){for(d=b;d>0&&(0===(A=Math.abs(s.get(d-1,d-1))+Math.abs(s.get(d,d)))&&(A=E),!(Math.abs(s.get(d,d-1))<x*A));)d--;if(d===b)s.set(b,b,s.get(b,b)+w),o[b]=s.get(b,b),t[b]=0,b--,O=0;else if(d===b-1){if(h=s.get(b,b-1)*s.get(b-1,b),S=Math.sqrt(Math.abs(N=(M=(s.get(b-1,b-1)-s.get(b,b))/2)*M+h)),s.set(b,b,s.get(b,b)+w),s.set(b-1,b-1,s.get(b-1,b-1)+w),c=s.get(b,b),N>=0){for(S=M>=0?M+S:M-S,o[b-1]=c+S,o[b]=o[b-1],0!==S&&(o[b]=c-h/S),t[b-1]=0,t[b]=0,A=Math.abs(c=s.get(b,b-1))+Math.abs(S),k=Math.sqrt((M=c/A)*M+(N=S/A)*N),M/=k,N/=k,i=b-1;i<e;i++)S=s.get(b-1,i),s.set(b-1,i,N*S+M*s.get(b,i)),s.set(b,i,N*s.get(b,i)-M*S);for(n=0;n<=b;n++)S=s.get(n,b-1),s.set(n,b-1,N*S+M*s.get(n,b)),s.set(n,b,N*s.get(n,b)-M*S);for(n=0;n<=j;n++)S=r.get(n,b-1),r.set(n,b-1,N*S+M*r.get(n,b)),r.set(n,b,N*r.get(n,b)-M*S)}else o[b-1]=c+M,o[b]=c+M,t[b-1]=S,t[b]=-S;b-=2,O=0}else{if(c=s.get(b,b),f=0,h=0,d<b&&(f=s.get(b-1,b-1),h=s.get(b,b-1)*s.get(b-1,b)),10===O){for(w+=c,n=0;n<=b;n++)s.set(n,n,s.get(n,n)-c);c=f=.75*(A=Math.abs(s.get(b,b-1))+Math.abs(s.get(b-1,b-2))),h=-.4375*A*A}if(30===O&&(A=(A=(f-c)/2)*A+h)>0){for(A=Math.sqrt(A),f<c&&(A=-A),A=c-h/((f-c)/2+A),n=0;n<=b;n++)s.set(n,n,s.get(n,n)-A);w+=A,c=f=h=.964}for(O+=1,l=b-2;l>=d&&(M=((k=c-(S=s.get(l,l)))*(A=f-S)-h)/s.get(l+1,l)+s.get(l,l+1),A=Math.abs(M)+Math.abs(N=s.get(l+1,l+1)-S-k-A)+Math.abs(k=s.get(l+2,l+1)),M/=A,N/=A,k/=A,!(l===d||Math.abs(s.get(l,l-1))*(Math.abs(N)+Math.abs(k))<x*(Math.abs(M)*(Math.abs(s.get(l-1,l-1))+Math.abs(S)+Math.abs(s.get(l+1,l+1))))));)l--;for(n=l+2;n<=b;n++)s.set(n,n-2,0),n>l+2&&s.set(n,n-3,0);for(a=l;a<=b-1&&(v=a!==b-1,a!==l&&(M=s.get(a,a-1),0!==(c=Math.abs(M)+Math.abs(N=s.get(a+1,a-1))+Math.abs(k=v?s.get(a+2,a-1):0))&&(M/=c,N/=c,k/=c)),0!==c);a++)if(A=Math.sqrt(M*M+N*N+k*k),M<0&&(A=-A),0!==A){for(a!==l?s.set(a,a-1,-A*c):d!==l&&s.set(a,a-1,-s.get(a,a-1)),M+=A,c=M/A,f=N/A,S=k/A,N/=M,k/=M,i=a;i<e;i++)M=s.get(a,i)+N*s.get(a+1,i),v&&(M+=k*s.get(a+2,i),s.set(a+2,i,s.get(a+2,i)-M*S)),s.set(a,i,s.get(a,i)-M*c),s.set(a+1,i,s.get(a+1,i)-M*f);for(n=0;n<=Math.min(b,a+3);n++)M=c*s.get(n,a)+f*s.get(n,a+1),v&&(M+=S*s.get(n,a+2),s.set(n,a+2,s.get(n,a+2)-M*k)),s.set(n,a,s.get(n,a)-M),s.set(n,a+1,s.get(n,a+1)-M*N);for(n=0;n<=j;n++)M=c*r.get(n,a)+f*r.get(n,a+1),v&&(M+=S*r.get(n,a+2),r.set(n,a+2,r.get(n,a+2)-M*k)),r.set(n,a,r.get(n,a)-M),r.set(n,a+1,r.get(n,a+1)-M*N)}}}if(0!==E){for(b=e-1;b>=0;b--)if(M=o[b],0===(N=t[b]))for(d=b,s.set(b,b,1),n=b-1;n>=0;n--){for(h=s.get(n,n)-M,k=0,i=d;i<=b;i++)k+=s.get(n,i)*s.get(i,b);if(t[n]<0)S=h,A=k;else if(d=n,0===t[n]?s.set(n,b,0!==h?-k/h:-k/(x*E)):(c=s.get(n,n+1),f=s.get(n+1,n),u=(c*A-S*k)/(N=(o[n]-M)*(o[n]-M)+t[n]*t[n]),s.set(n,b,u),s.set(n+1,b,Math.abs(c)>Math.abs(S)?(-k-h*u)/c:(-A-f*u)/S)),x*(u=Math.abs(s.get(n,b)))*u>1)for(i=n;i<=b;i++)s.set(i,b,s.get(i,b)/u)}else if(N<0)for(d=b-1,Math.abs(s.get(b,b-1))>Math.abs(s.get(b-1,b))?(s.set(b-1,b-1,N/s.get(b,b-1)),s.set(b-1,b,-(s.get(b,b)-M)/s.get(b,b-1))):(y=C(0,-s.get(b-1,b),s.get(b-1,b-1)-M,N),s.set(b-1,b-1,y[0]),s.set(b-1,b,y[1])),s.set(b,b-1,0),s.set(b,b,1),n=b-2;n>=0;n--){for(g=0,m=0,i=d;i<=b;i++)g+=s.get(n,i)*s.get(i,b-1),m+=s.get(n,i)*s.get(i,b);if(h=s.get(n,n)-M,t[n]<0)S=h,k=g,A=m;else if(d=n,0===t[n]?(y=C(-g,-m,h,N),s.set(n,b-1,y[0]),s.set(n,b,y[1])):(c=s.get(n,n+1),f=s.get(n+1,n),p=(o[n]-M)*(o[n]-M)+t[n]*t[n]-N*N,_=(o[n]-M)*2*N,0===p&&0===_&&(p=x*E*(Math.abs(h)+Math.abs(N)+Math.abs(c)+Math.abs(f)+Math.abs(S))),y=C(c*k-S*g+N*m,c*A-S*m-N*g,p,_),s.set(n,b-1,y[0]),s.set(n,b,y[1]),Math.abs(c)>Math.abs(S)+Math.abs(N)?(s.set(n+1,b-1,(-g-h*s.get(n,b-1)+N*s.get(n,b))/c),s.set(n+1,b,(-m-h*s.get(n,b)-N*s.get(n,b-1))/c)):(y=C(-k-f*s.get(n,b-1),-A-f*s.get(n,b),S,N),s.set(n+1,b-1,y[0]),s.set(n+1,b,y[1]))),x*(u=Math.max(Math.abs(s.get(n,b-1)),Math.abs(s.get(n,b))))*u>1)for(i=n;i<=b;i++)s.set(i,b-1,s.get(i,b-1)/u),s.set(i,b,s.get(i,b)/u)}for(n=0;n<e;n++)if(n<0||n>j)for(i=n;i<e;i++)r.set(n,i,s.get(n,i));for(i=e-1;i>=0;i--)for(n=0;n<=j;n++){for(a=0,S=0;a<=Math.min(i,j);a++)S+=r.get(n,a)*s.get(a,i);r.set(n,i,S)}}}(n,d,a,i,e)}this.n=n,this.e=d,this.d=a,this.V=i}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let e,t,o=this.n,r=this.e,s=this.d,n=new j(o,o);for(e=0;e<o;e++){for(t=0;t<o;t++)n.set(e,t,0);n.set(e,e,s[e]),r[e]>0?n.set(e,e+1,r[e]):r[e]<0&&n.set(e,e-1,r[e])}return n}}function C(e,t,o,r){let s,n;return Math.abs(o)>Math.abs(r)?(s=r/o,n=o+s*r,[(e+s*t)/n,(t-s*e)/n]):(s=o/r,n=r+s*o,[(s*e+t)/n,(s*t-e)/n])}class P{constructor(e){let t,o,r;if(!(e=k.checkMatrix(e)).isSymmetric())throw Error("Matrix is not symmetric");let s=e,n=s.rows,i=new j(n,n),a=!0;for(o=0;o<n;o++){let e=0;for(r=0;r<o;r++){let n=0;for(t=0;t<r;t++)n+=i.get(r,t)*i.get(o,t);n=(s.get(o,r)-n)/i.get(r,r),i.set(o,r,n),e+=n*n}for(e=s.get(o,o)-e,a&&=e>0,i.set(o,o,Math.sqrt(Math.max(e,0))),r=o+1;r<n;r++)i.set(o,r,0)}this.L=i,this.positiveDefinite=a}isPositiveDefinite(){return this.positiveDefinite}solve(e){let t,o,r;e=k.checkMatrix(e);let s=this.L,n=s.rows;if(e.rows!==n)throw Error("Matrix dimensions do not match");if(!1===this.isPositiveDefinite())throw Error("Matrix is not positive definite");let i=e.columns,a=e.clone();for(r=0;r<n;r++)for(o=0;o<i;o++){for(t=0;t<r;t++)a.set(r,o,a.get(r,o)-a.get(t,o)*s.get(r,t));a.set(r,o,a.get(r,o)/s.get(r,r))}for(r=n-1;r>=0;r--)for(o=0;o<i;o++){for(t=r+1;t<n;t++)a.set(r,o,a.get(r,o)-a.get(t,o)*s.get(t,r));a.set(r,o,a.get(r,o)/s.get(r,r))}return a}get lowerTriangularMatrix(){return this.L}}class T{constructor(e,t={}){let o,s,n,i,a;e=k.checkMatrix(e);let{Y:d}=t,{scaleScores:l=!1,maxIterations:u=1e3,terminationCriteria:h=1e-10}=t;if(d){if((d=r.isAnyArray(d)&&"number"==typeof d[0]?j.columnVector(d):k.checkMatrix(d)).rows!==e.rows)throw Error("Y should have the same number of rows as X");o=d.getColumnVector(0)}else o=e.getColumnVector(0);let c=1;for(let t=0;t<u&&c>h;t++)i=(i=e.transpose().mmul(o).div(o.transpose().mmul(o).get(0,0))).div(i.norm()),s=e.mmul(i).div(i.transpose().mmul(i).get(0,0)),t>0&&(c=s.clone().sub(a).pow(2).sum()),a=s.clone(),d?(n=(n=d.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0))).div(n.norm()),o=d.mmul(n).div(n.transpose().mmul(n).get(0,0))):o=s;if(d){let t=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0));t=t.div(t.norm());let r=e.clone().sub(s.clone().mmul(t.transpose())),a=o.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),l=d.clone().sub(s.clone().mulS(a.get(0,0)).mmul(n.transpose()));this.t=s,this.p=t.transpose(),this.w=i.transpose(),this.q=n,this.u=o,this.s=s.transpose().mmul(s),this.xResidual=r,this.yResidual=l,this.betas=a}else this.w=i.transpose(),this.s=s.transpose().mmul(s).sqrt(),l?this.t=s.clone().div(this.s.get(0,0)):this.t=s,this.xResidual=e.sub(s.mmul(i.transpose()))}}t.AbstractMatrix=y,t.CHO=P,t.CholeskyDecomposition=P,t.DistanceMatrix=w,t.EVD=R,t.EigenvalueDecomposition=R,t.LU=A,t.LuDecomposition=A,t.Matrix=j,t.MatrixColumnSelectionView=class extends E{constructor(e,t){g(e,t),super(e,e.rows,t.length),this.columnIndices=t}set(e,t,o){return this.matrix.set(e,this.columnIndices[t],o),this}get(e,t){return this.matrix.get(e,this.columnIndices[t])}},t.MatrixColumnView=class extends E{constructor(e,t){u(e,t),super(e,e.rows,1),this.column=t}set(e,t,o){return this.matrix.set(e,this.column,o),this}get(e){return this.matrix.get(e,this.column)}},t.MatrixFlipColumnView=class extends E{constructor(e){super(e,e.rows,e.columns)}set(e,t,o){return this.matrix.set(e,this.columns-t-1,o),this}get(e,t){return this.matrix.get(e,this.columns-t-1)}},t.MatrixFlipRowView=class extends E{constructor(e){super(e,e.rows,e.columns)}set(e,t,o){return this.matrix.set(this.rows-e-1,t,o),this}get(e,t){return this.matrix.get(this.rows-e-1,t)}},t.MatrixRowSelectionView=class extends E{constructor(e,t){f(e,t),super(e,t.length,e.columns),this.rowIndices=t}set(e,t,o){return this.matrix.set(this.rowIndices[e],t,o),this}get(e,t){return this.matrix.get(this.rowIndices[e],t)}},t.MatrixRowView=class extends E{constructor(e,t){l(e,t),super(e,1,e.columns),this.row=t}set(e,t,o){return this.matrix.set(this.row,t,o),this}get(e,t){return this.matrix.get(this.row,t)}},t.MatrixSelectionView=M,t.MatrixSubView=class extends E{constructor(e,t,o,r,s){m(e,t,o,r,s),super(e,o-t+1,s-r+1),this.startRow=t,this.startColumn=r}set(e,t,o){return this.matrix.set(this.startRow+e,this.startColumn+t,o),this}get(e,t){return this.matrix.get(this.startRow+e,this.startColumn+t)}},t.MatrixTransposeView=class extends E{constructor(e){super(e,e.columns,e.rows)}set(e,t,o){return this.matrix.set(t,e,o),this}get(e,t){return this.matrix.get(t,e)}},t.NIPALS=T,t.Nipals=T,t.QR=O,t.QrDecomposition=O,t.SVD=z,t.SingularValueDecomposition=z,t.SymmetricMatrix=x,t.WrapperMatrix1D=N,t.WrapperMatrix2D=k,t.correlation=function(e,t=e,o={}){e=new j(e);let s=!1;if("object"!=typeof t||j.isMatrix(t)||r.isAnyArray(t)?t=new j(t):(o=t,t=e,s=!0),e.rows!==t.rows)throw TypeError("Both matrices must have the same number of rows");let{center:n=!0,scale:i=!0}=o;n&&(e.center("column"),s||t.center("column")),i&&(e.scale("column"),s||t.scale("column"));let a=e.standardDeviation("column",{unbiased:!0}),d=s?a:t.standardDeviation("column",{unbiased:!0}),l=e.transpose().mmul(t);for(let t=0;t<l.rows;t++)for(let o=0;o<l.columns;o++)l.set(t,o,l.get(t,o)*(1/(a[t]*d[o]))*(1/(e.rows-1)));return l},t.covariance=function(e,t=e,o={}){e=new j(e);let s=!1;if("object"!=typeof t||j.isMatrix(t)||r.isAnyArray(t)?t=new j(t):(o=t,t=e,s=!0),e.rows!==t.rows)throw TypeError("Both matrices must have the same number of rows");let{center:n=!0}=o;n&&(e=e.center("column"),s||(t=t.center("column")));let i=e.transpose().mmul(t);for(let t=0;t<i.rows;t++)for(let o=0;o<i.columns;o++)i.set(t,o,i.get(t,o)*(1/(e.rows-1)));return i},t.determinant=function e(t){if((t=j.checkMatrix(t)).isSquare()){let o,r,s;if(0===t.columns)return 1;if(2===t.columns)return o=t.get(0,0),r=t.get(0,1),s=t.get(1,0),o*t.get(1,1)-r*s;if(3!==t.columns)return new A(t).determinant;{let n,i,a;return n=new M(t,[1,2],[1,2]),i=new M(t,[1,2],[0,2]),a=new M(t,[1,2],[0,1]),o=t.get(0,0),r=t.get(0,1),s=t.get(0,2),o*e(n)-r*e(i)+s*e(a)}}throw Error("determinant can only be calculated for a square matrix")},t.inverse=function(e,t=!1){return(e=k.checkMatrix(e),t)?new z(e).inverse():I(e,j.eye(e.rows))},t.linearDependencies=function(e,t={}){let{thresholdValue:o=1e-9,thresholdError:r=1e-9}=t,s=(e=j.checkMatrix(e)).rows,n=new j(s,s);for(let t=0;t<s;t++){let i=j.columnVector(e.getRow(t)),a=e.subMatrixRow(function(e,t){let o=[];for(let r=0;r<e;r++)r!==t&&o.push(r);return o}(s,t)).transpose(),d=new z(a).solve(i),l=j.sub(i,a.mmul(d)).abs().max();n.setRow(t,function(e,t,o,r=1e-9,s=1e-9){if(e>s)return Array(t.rows+1).fill(0);{let e=t.addRow(o,[0]);for(let t=0;t<e.rows;t++)Math.abs(e.get(t,0))<r&&e.set(t,0,0);return e.to1DArray()}}(l,d,t,o,r))}return n},t.pseudoInverse=function(e,t=Number.EPSILON){if((e=j.checkMatrix(e)).isEmpty())return e.transpose();let o=new z(e,{autoTranspose:!0}),r=o.leftSingularVectors,s=o.rightSingularVectors,n=o.diagonal;for(let e=0;e<n.length;e++)Math.abs(n[e])>t?n[e]=1/n[e]:n[e]=0;return s.mmul(j.diag(n).mmul(r.transpose()))},t.solve=I,t.wrap=function(e,t){if(r.isAnyArray(e))if(e[0]&&r.isAnyArray(e[0]))return new k(e);else return new N(e,t);throw Error("the argument is not an array")}},"../../../node_modules/comlink/dist/esm/comlink.mjs":function(e,t,o){"use strict";o.d(t,{Jj:()=>u});let r=Symbol("Comlink.proxy"),s=Symbol("Comlink.endpoint"),n=Symbol("Comlink.releaseProxy"),i=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),d=e=>"object"==typeof e&&null!==e||"function"==typeof e,l=new Map([["proxy",{canHandle:e=>d(e)&&e[r],serialize(e){let{port1:t,port2:o}=new MessageChannel;return u(e,t),[o,[o]]},deserialize:e=>(e.start(),function(e,t){let o=new Map;return e.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let r=o.get(t.id);if(r)try{r(t)}finally{o.delete(t.id)}}),function e(t,o,r=[],i=function(){}){let a=!1,d=new Proxy(i,{get(s,i){if(c(a),i===n)return()=>{m&&m.unregister(d),f(t),o.clear(),a=!0};if("then"===i){if(0===r.length)return{then:()=>d};let e=b(t,o,{type:"GET",path:r.map(e=>e.toString())}).then(y);return e.then.bind(e)}return e(t,o,[...r,i])},set(e,s,n){c(a);let[i,d]=v(n);return b(t,o,{type:"SET",path:[...r,s].map(e=>e.toString()),value:i},d).then(y)},apply(n,i,d){c(a);let l=r[r.length-1];if(l===s)return b(t,o,{type:"ENDPOINT"}).then(y);if("bind"===l)return e(t,o,r.slice(0,-1));let[u,h]=p(d);return b(t,o,{type:"APPLY",path:r.map(e=>e.toString()),argumentList:u},h).then(y)},construct(e,s){c(a);let[n,i]=p(s);return b(t,o,{type:"CONSTRUCT",path:r.map(e=>e.toString()),argumentList:n},i).then(y)}}),l=(g.get(t)||0)+1;return g.set(t,l),m&&m.register(d,t,d),d}(e,o,[],void 0)}(e))}],["throw",{canHandle:e=>d(e)&&a in e,serialize({value:e}){let t;return[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]]},deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function u(e,t=globalThis,o=["*"]){t.addEventListener("message",function s(n){let d;if(!n||!n.data)return;if(!function(e,t){for(let o of e)if(t===o||"*"===o||o instanceof RegExp&&o.test(t))return!0;return!1}(o,n.origin))return void console.warn(`Invalid origin '${n.origin}' for comlink proxy`);let{id:l,type:c,path:f}=Object.assign({path:[]},n.data),g=(n.data.argumentList||[]).map(y);try{var m,p,b;let t=f.slice(0,-1).reduce((e,t)=>e[t],e),o=f.reduce((e,t)=>e[t],e);switch(c){case"GET":d=o;break;case"SET":t[f.slice(-1)[0]]=y(n.data.value),d=!0;break;case"APPLY":d=o.apply(t,g);break;case"CONSTRUCT":m=new o(...g),d=Object.assign(m,{[r]:!0});break;case"ENDPOINT":{let{port1:t,port2:o}=new MessageChannel;u(e,o),p=t,b=[t],_.set(p,b),d=p}break;case"RELEASE":d=void 0;break;default:return}}catch(e){d={value:e,[a]:0}}Promise.resolve(d).catch(e=>({value:e,[a]:0})).then(o=>{let[r,n]=v(o);t.postMessage(Object.assign(Object.assign({},r),{id:l}),n),"RELEASE"===c&&(t.removeEventListener("message",s),h(t),i in e&&"function"==typeof e[i]&&e[i]())}).catch(e=>{let[o,r]=v({value:TypeError("Unserializable return value"),[a]:0});t.postMessage(Object.assign(Object.assign({},o),{id:l}),r)})}),t.start&&t.start()}function h(e){"MessagePort"===e.constructor.name&&e.close()}function c(e){if(e)throw Error("Proxy has been released and is not useable")}function f(e){return b(e,new Map,{type:"RELEASE"}).then(()=>{h(e)})}let g=new WeakMap,m="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(g.get(e)||0)-1;g.set(e,t),0===t&&f(e)});function p(e){var t;let o=e.map(v);return[o.map(e=>e[0]),(t=o.map(e=>e[1]),Array.prototype.concat.apply([],t))]}let _=new WeakMap;function v(e){for(let[t,o]of l)if(o.canHandle(e)){let[r,s]=o.serialize(e);return[{type:"HANDLER",name:t,value:r},s]}return[{type:"RAW",value:e},_.get(e)||[]]}function y(e){switch(e.type){case"HANDLER":return l.get(e.name).deserialize(e.value);case"RAW":return e.value}}function b(e,t,o,r){return new Promise(s=>{let n=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(n,s),e.start&&e.start(),e.postMessage(Object.assign({id:n},o),r)})}},"../../../node_modules/d3-dispatch/src/dispatch.js":function(e,t,o){"use strict";o.d(t,{Z:()=>a});var r={value:()=>{}};function s(){for(var e,t=0,o=arguments.length,r={};t<o;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new n(r)}function n(e){this._=e}function i(e,t,o){for(var s=0,n=e.length;s<n;++s)if(e[s].name===t){e[s]=r,e=e.slice(0,s).concat(e.slice(s+1));break}return null!=o&&e.push({name:t,value:o}),e}n.prototype=s.prototype={constructor:n,on:function(e,t){var o,r=this._,s=(e+"").trim().split(/^|\s+/).map(function(e){var t="",o=e.indexOf(".");if(o>=0&&(t=e.slice(o+1),e=e.slice(0,o)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),n=-1,a=s.length;if(arguments.length<2){for(;++n<a;)if((o=(e=s[n]).type)&&(o=function(e,t){for(var o,r=0,s=e.length;r<s;++r)if((o=e[r]).name===t)return o.value}(r[o],e.name)))return o;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++n<a;)if(o=(e=s[n]).type)r[o]=i(r[o],e.name,t);else if(null==t)for(o in r)r[o]=i(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var o in t)e[o]=t[o].slice();return new n(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var o,r,s=Array(o),n=0;n<o;++n)s[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],n=0,o=r.length;n<o;++n)r[n].value.apply(t,s)},apply:function(e,t,o){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],s=0,n=r.length;s<n;++s)r[s].value.apply(t,o)}};let a=s},"../../../node_modules/d3-force/src/center.js":function(e,t,o){"use strict";function r(e,t){var o,r=1;function s(){var s,n,i=o.length,a=0,d=0;for(s=0;s<i;++s)a+=(n=o[s]).x,d+=n.y;for(a=(a/i-e)*r,d=(d/i-t)*r,s=0;s<i;++s)n=o[s],n.x-=a,n.y-=d}return null==e&&(e=0),null==t&&(t=0),s.initialize=function(e){o=e},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(e){return arguments.length?(t=+e,s):t},s.strength=function(e){return arguments.length?(r=+e,s):r},s}o.d(t,{Z:()=>r})},"../../../node_modules/d3-force/src/collide.js":function(e,t,o){"use strict";o.d(t,{Z:()=>d});var r=o("../../../node_modules/d3-quadtree/src/quadtree.js"),s=o("../../../node_modules/d3-force/src/constant.js"),n=o("../../../node_modules/d3-force/src/jiggle.js");function i(e){return e.x+e.vx}function a(e){return e.y+e.vy}function d(e){var t,o,d,l=1,u=1;function h(){for(var e,s,h,f,g,m,p,_=t.length,v=0;v<u;++v)for(e=0,s=(0,r.Z)(t,i,a).visitAfter(c);e<_;++e)p=(m=o[(h=t[e]).index])*m,f=h.x+h.vx,g=h.y+h.vy,s.visit(y);function y(e,t,o,r,s){var i=e.data,a=e.r,u=m+a;if(i){if(i.index>h.index){var c=f-i.x-i.vx,_=g-i.y-i.vy,v=c*c+_*_;v<u*u&&(0===c&&(v+=(c=(0,n.Z)(d))*c),0===_&&(v+=(_=(0,n.Z)(d))*_),v=(u-(v=Math.sqrt(v)))/v*l,h.vx+=(c*=v)*(u=(a*=a)/(p+a)),h.vy+=(_*=v)*u,i.vx-=c*(u=1-u),i.vy-=_*u)}return}return t>f+u||r<f-u||o>g+u||s<g-u}}function c(e){if(e.data)return e.r=o[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function f(){if(t){var r,s,n=t.length;for(r=0,o=Array(n);r<n;++r)o[(s=t[r]).index]=+e(s,r,t)}}return"function"!=typeof e&&(e=(0,s.Z)(null==e?1:+e)),h.initialize=function(e,o){t=e,d=o,f()},h.iterations=function(e){return arguments.length?(u=+e,h):u},h.strength=function(e){return arguments.length?(l=+e,h):l},h.radius=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.Z)(+t),f(),h):e},h}},"../../../node_modules/d3-force/src/constant.js":function(e,t,o){"use strict";function r(e){return function(){return e}}o.d(t,{Z:()=>r})},"../../../node_modules/d3-force/src/jiggle.js":function(e,t,o){"use strict";function r(e){return(e()-.5)*1e-6}o.d(t,{Z:()=>r})},"../../../node_modules/d3-force/src/lcg.js":function(e,t,o){"use strict";function r(){let e=1;return()=>(e=(1664525*e+0x3c6ef35f)%0x100000000)/0x100000000}o.d(t,{Z:()=>r})},"../../../node_modules/d3-force/src/link.js":function(e,t,o){"use strict";o.d(t,{Z:()=>a});var r=o("../../../node_modules/d3-force/src/constant.js"),s=o("../../../node_modules/d3-force/src/jiggle.js");function n(e){return e.index}function i(e,t){var o=e.get(t);if(!o)throw Error("node not found: "+t);return o}function a(e){var t,o,a,d,l,u,h=n,c=function(e){return 1/Math.min(d[e.source.index],d[e.target.index])},f=(0,r.Z)(30),g=1;function m(r){for(var n=0,i=e.length;n<g;++n)for(var a,d,h,c,f,m,p,_=0;_<i;++_)d=(a=e[_]).source,m=((m=Math.sqrt((c=(h=a.target).x+h.vx-d.x-d.vx||(0,s.Z)(u))*c+(f=h.y+h.vy-d.y-d.vy||(0,s.Z)(u))*f))-o[_])/m*r*t[_],c*=m,f*=m,h.vx-=c*(p=l[_]),h.vy-=f*p,d.vx+=c*(p=1-p),d.vy+=f*p}function p(){if(a){var r,s,n=a.length,u=e.length,c=new Map(a.map((e,t)=>[h(e,t,a),e]));for(r=0,d=Array(n);r<u;++r)(s=e[r]).index=r,"object"!=typeof s.source&&(s.source=i(c,s.source)),"object"!=typeof s.target&&(s.target=i(c,s.target)),d[s.source.index]=(d[s.source.index]||0)+1,d[s.target.index]=(d[s.target.index]||0)+1;for(r=0,l=Array(u);r<u;++r)s=e[r],l[r]=d[s.source.index]/(d[s.source.index]+d[s.target.index]);t=Array(u),_(),o=Array(u),v()}}function _(){if(a)for(var o=0,r=e.length;o<r;++o)t[o]=+c(e[o],o,e)}function v(){if(a)for(var t=0,r=e.length;t<r;++t)o[t]=+f(e[t],t,e)}return null==e&&(e=[]),m.initialize=function(e,t){a=e,u=t,p()},m.links=function(t){return arguments.length?(e=t,p(),m):e},m.id=function(e){return arguments.length?(h=e,m):h},m.iterations=function(e){return arguments.length?(g=+e,m):g},m.strength=function(e){return arguments.length?(c="function"==typeof e?e:(0,r.Z)(+e),_(),m):c},m.distance=function(e){return arguments.length?(f="function"==typeof e?e:(0,r.Z)(+e),v(),m):f},m}},"../../../node_modules/d3-force/src/manyBody.js":function(e,t,o){"use strict";o.d(t,{Z:()=>a});var r=o("../../../node_modules/d3-quadtree/src/quadtree.js"),s=o("../../../node_modules/d3-force/src/constant.js"),n=o("../../../node_modules/d3-force/src/jiggle.js"),i=o("../../../node_modules/d3-force/src/simulation.js");function a(){var e,t,o,a,d,l=(0,s.Z)(-30),u=1,h=1/0,c=.81;function f(o){var s,n=e.length,d=(0,r.Z)(e,i.x,i.y).visitAfter(m);for(a=o,s=0;s<n;++s)t=e[s],d.visit(p)}function g(){if(e){var t,o,r=e.length;for(t=0,d=Array(r);t<r;++t)d[(o=e[t]).index]=+l(o,t,e)}}function m(e){var t,o,r,s,n,i=0,a=0;if(e.length){for(r=s=n=0;n<4;++n)(t=e[n])&&(o=Math.abs(t.value))&&(i+=t.value,a+=o,r+=o*t.x,s+=o*t.y);e.x=r/a,e.y=s/a}else{(t=e).x=t.data.x,t.y=t.data.y;do i+=d[t.data.index];while(t=t.next)}e.value=i}function p(e,r,s,i){if(!e.value)return!0;var l=e.x-t.x,f=e.y-t.y,g=i-r,m=l*l+f*f;if(g*g/c<m)return m<h&&(0===l&&(m+=(l=(0,n.Z)(o))*l),0===f&&(m+=(f=(0,n.Z)(o))*f),m<u&&(m=Math.sqrt(u*m)),t.vx+=l*e.value*a/m,t.vy+=f*e.value*a/m),!0;if(!e.length&&!(m>=h)){(e.data!==t||e.next)&&(0===l&&(m+=(l=(0,n.Z)(o))*l),0===f&&(m+=(f=(0,n.Z)(o))*f),m<u&&(m=Math.sqrt(u*m)));do e.data!==t&&(g=d[e.data.index]*a/m,t.vx+=l*g,t.vy+=f*g);while(e=e.next)}}return f.initialize=function(t,r){e=t,o=r,g()},f.strength=function(e){return arguments.length?(l="function"==typeof e?e:(0,s.Z)(+e),g(),f):l},f.distanceMin=function(e){return arguments.length?(u=e*e,f):Math.sqrt(u)},f.distanceMax=function(e){return arguments.length?(h=e*e,f):Math.sqrt(h)},f.theta=function(e){return arguments.length?(c=e*e,f):Math.sqrt(c)},f}},"../../../node_modules/d3-force/src/radial.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-force/src/constant.js");function s(e,t,o){var s,n,i,a=(0,r.Z)(.1);function d(e){for(var r=0,a=s.length;r<a;++r){var d=s[r],l=d.x-t||1e-6,u=d.y-o||1e-6,h=Math.sqrt(l*l+u*u),c=(i[r]-h)*n[r]*e/h;d.vx+=l*c,d.vy+=u*c}}function l(){if(s){var t,o=s.length;for(t=0,n=Array(o),i=Array(o);t<o;++t)i[t]=+e(s[t],t,s),n[t]=isNaN(i[t])?0:+a(s[t],t,s)}}return"function"!=typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==o&&(o=0),d.initialize=function(e){s=e,l()},d.strength=function(e){return arguments.length?(a="function"==typeof e?e:(0,r.Z)(+e),l(),d):a},d.radius=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),l(),d):e},d.x=function(e){return arguments.length?(t=+e,d):t},d.y=function(e){return arguments.length?(o=+e,d):o},d}},"../../../node_modules/d3-force/src/simulation.js":function(e,t,o){"use strict";o.d(t,{Z:()=>l,x:()=>i,y:()=>a});var r=o("../../../node_modules/d3-dispatch/src/dispatch.js"),s=o("../../../node_modules/d3-timer/src/timer.js"),n=o("../../../node_modules/d3-force/src/lcg.js");function i(e){return e.x}function a(e){return e.y}var d=Math.PI*(3-Math.sqrt(5));function l(e){var t,o=1,i=.001,a=1-Math.pow(.001,1/300),l=0,u=.6,h=new Map,c=(0,s.HT)(m),f=(0,r.Z)("tick","end"),g=(0,n.Z)();function m(){p(),f.call("tick",t),o<i&&(c.stop(),f.call("end",t))}function p(r){var s,n,i=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(o+=(l-o)*a,h.forEach(function(e){e(o)}),s=0;s<i;++s)null==(n=e[s]).fx?n.x+=n.vx*=u:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=u:(n.y=n.fy,n.vy=0);return t}function _(){for(var t,o=0,r=e.length;o<r;++o){if((t=e[o]).index=o,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var s=10*Math.sqrt(.5+o),n=o*d;t.x=s*Math.cos(n),t.y=s*Math.sin(n)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function v(t){return t.initialize&&t.initialize(e,g),t}return null==e&&(e=[]),_(),t={tick:p,restart:function(){return c.restart(m),t},stop:function(){return c.stop(),t},nodes:function(o){return arguments.length?(e=o,_(),h.forEach(v),t):e},alpha:function(e){return arguments.length?(o=+e,t):o},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(a=+e,t):+a},alphaTarget:function(e){return arguments.length?(l=+e,t):l},velocityDecay:function(e){return arguments.length?(u=1-e,t):1-u},randomSource:function(e){return arguments.length?(g=e,h.forEach(v),t):g},force:function(e,o){return arguments.length>1?(null==o?h.delete(e):h.set(e,v(o)),t):h.get(e)},find:function(t,o,r){var s,n,i,a,d,l=0,u=e.length;for(null==r?r=1/0:r*=r,l=0;l<u;++l)(i=(s=t-(a=e[l]).x)*s+(n=o-a.y)*n)<r&&(d=a,r=i);return d},on:function(e,o){return arguments.length>1?(f.on(e,o),t):f.on(e)}}}},"../../../node_modules/d3-force/src/x.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-force/src/constant.js");function s(e){var t,o,s,n=(0,r.Z)(.1);function i(e){for(var r,n=0,i=t.length;n<i;++n)r=t[n],r.vx+=(s[n]-r.x)*o[n]*e}function a(){if(t){var r,i=t.length;for(r=0,o=Array(i),s=Array(i);r<i;++r)o[r]=isNaN(s[r]=+e(t[r],r,t))?0:+n(t[r],r,t)}}return"function"!=typeof e&&(e=(0,r.Z)(null==e?0:+e)),i.initialize=function(e){t=e,a()},i.strength=function(e){return arguments.length?(n="function"==typeof e?e:(0,r.Z)(+e),a(),i):n},i.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),a(),i):e},i}},"../../../node_modules/d3-force/src/y.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-force/src/constant.js");function s(e){var t,o,s,n=(0,r.Z)(.1);function i(e){for(var r,n=0,i=t.length;n<i;++n)r=t[n],r.vy+=(s[n]-r.y)*o[n]*e}function a(){if(t){var r,i=t.length;for(r=0,o=Array(i),s=Array(i);r<i;++r)o[r]=isNaN(s[r]=+e(t[r],r,t))?0:+n(t[r],r,t)}}return"function"!=typeof e&&(e=(0,r.Z)(null==e?0:+e)),i.initialize=function(e){t=e,a()},i.strength=function(e){return arguments.length?(n="function"==typeof e?e:(0,r.Z)(+e),a(),i):n},i.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),a(),i):e},i}},"../../../node_modules/d3-octree/src/add.js":function(e,t,o){"use strict";function r(e){let t=+this._x.call(null,e),o=+this._y.call(null,e),r=+this._z.call(null,e);return s(this.cover(t,o,r),t,o,r,e)}function s(e,t,o,r,s){if(isNaN(t)||isNaN(o)||isNaN(r))return e;var n,i,a,d,l,u,h,c,f,g,m,p,_=e._root,v={data:s},y=e._x0,b=e._y0,j=e._z0,x=e._x1,w=e._y1,E=e._z1;if(!_)return e._root=v,e;for(;_.length;)if((c=t>=(i=(y+x)/2))?y=i:x=i,(f=o>=(a=(b+w)/2))?b=a:w=a,(g=r>=(d=(j+E)/2))?j=d:E=d,n=_,!(_=_[m=g<<2|f<<1|c]))return n[m]=v,e;if(l=+e._x.call(null,_.data),u=+e._y.call(null,_.data),h=+e._z.call(null,_.data),t===l&&o===u&&r===h)return v.next=_,n?n[m]=v:e._root=v,e;do n=n?n[m]=Array(8):e._root=Array(8),(c=t>=(i=(y+x)/2))?y=i:x=i,(f=o>=(a=(b+w)/2))?b=a:w=a,(g=r>=(d=(j+E)/2))?j=d:E=d;while((m=g<<2|f<<1|c)==(p=(h>=d)<<2|(u>=a)<<1|l>=i));return n[p]=_,n[m]=v,e}function n(e){Array.isArray(e)||(e=Array.from(e));let t=e.length,o=new Float64Array(t),r=new Float64Array(t),n=new Float64Array(t),i=1/0,a=1/0,d=1/0,l=-1/0,u=-1/0,h=-1/0;for(let s=0,c,f,g,m;s<t;++s)!(isNaN(f=+this._x.call(null,c=e[s]))||isNaN(g=+this._y.call(null,c))||isNaN(m=+this._z.call(null,c)))&&(o[s]=f,r[s]=g,n[s]=m,f<i&&(i=f),f>l&&(l=f),g<a&&(a=g),g>u&&(u=g),m<d&&(d=m),m>h&&(h=m));if(i>l||a>u||d>h)return this;this.cover(i,a,d).cover(l,u,h);for(let i=0;i<t;++i)s(this,o[i],r[i],n[i],e[i]);return this}o.d(t,{H:()=>n,Z:()=>r})},"../../../node_modules/d3-octree/src/cover.js":function(e,t,o){"use strict";function r(e,t,o){if(isNaN(e*=1)||isNaN(t*=1)||isNaN(o*=1))return this;var r=this._x0,s=this._y0,n=this._z0,i=this._x1,a=this._y1,d=this._z1;if(isNaN(r))i=(r=Math.floor(e))+1,a=(s=Math.floor(t))+1,d=(n=Math.floor(o))+1;else{for(var l,u,h=i-r||1,c=this._root;r>e||e>=i||s>t||t>=a||n>o||o>=d;)switch(u=(o<n)<<2|(t<s)<<1|e<r,(l=Array(8))[u]=c,c=l,h*=2,u){case 0:i=r+h,a=s+h,d=n+h;break;case 1:r=i-h,a=s+h,d=n+h;break;case 2:i=r+h,s=a-h,d=n+h;break;case 3:r=i-h,s=a-h,d=n+h;break;case 4:i=r+h,a=s+h,n=d-h;break;case 5:r=i-h,a=s+h,n=d-h;break;case 6:i=r+h,s=a-h,n=d-h;break;case 7:r=i-h,s=a-h,n=d-h}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=s,this._z0=n,this._x1=i,this._y1=a,this._z1=d,this}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/data.js":function(e,t,o){"use strict";function r(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/extent.js":function(e,t,o){"use strict";function r(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/find.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-octree/src/octant.js");function s(e,t,o,s){var n,i,a,d,l,u,h,c,f,g=this._x0,m=this._y0,p=this._z0,_=this._x1,v=this._y1,y=this._z1,b=[],j=this._root;for(j&&b.push(new r.Z(j,g,m,p,_,v,y)),null==s?s=1/0:(g=e-s,m=t-s,p=o-s,_=e+s,v=t+s,y=o+s,s*=s);c=b.pop();)if((j=c.node)&&!((i=c.x0)>_)&&!((a=c.y0)>v)&&!((d=c.z0)>y)&&!((l=c.x1)<g)&&!((u=c.y1)<m)&&!((h=c.z1)<p))if(j.length){var x=(i+l)/2,w=(a+u)/2,E=(d+h)/2;b.push(new r.Z(j[7],x,w,E,l,u,h),new r.Z(j[6],i,w,E,x,u,h),new r.Z(j[5],x,a,E,l,w,h),new r.Z(j[4],i,a,E,x,w,h),new r.Z(j[3],x,w,d,l,u,E),new r.Z(j[2],i,w,d,x,u,E),new r.Z(j[1],x,a,d,l,w,E),new r.Z(j[0],i,a,d,x,w,E)),(f=(o>=E)<<2|(t>=w)<<1|e>=x)&&(c=b[b.length-1],b[b.length-1]=b[b.length-1-f],b[b.length-1-f]=c)}else{var M=e-this._x.call(null,j.data),N=t-this._y.call(null,j.data),k=o-this._z.call(null,j.data),A=M*M+N*N+k*k;if(A<s){var S=Math.sqrt(s=A);g=e-S,m=t-S,p=o-S,_=e+S,v=t+S,y=o+S,n=j.data}}return n}},"../../../node_modules/d3-octree/src/findAll.js":function(e,t,o){"use strict";o.d(t,{r:()=>s});let r=(e,t,o,r,s,n)=>Math.sqrt((e-r)**2+(t-s)**2+(o-n)**2);function s(e,t,o,s){let n=[],i=e-s,a=t-s,d=o-s,l=e+s,u=t+s,h=o+s;return this.visit((c,f,g,m,p,_,v)=>{if(!c.length)do{let i=c.data;r(e,t,o,this._x(i),this._y(i),this._z(i))<=s&&n.push(i)}while(c=c.next);return f>l||g>u||m>h||p<i||_<a||v<d}),n}},"../../../node_modules/d3-octree/src/octant.js":function(e,t,o){"use strict";function r(e,t,o,r,s,n,i){this.node=e,this.x0=t,this.y0=o,this.z0=r,this.x1=s,this.y1=n,this.z1=i}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/octree.js":function(e,t,o){"use strict";o.d(t,{Z:()=>_});var r=o("../../../node_modules/d3-octree/src/add.js"),s=o("../../../node_modules/d3-octree/src/cover.js"),n=o("../../../node_modules/d3-octree/src/data.js"),i=o("../../../node_modules/d3-octree/src/extent.js"),a=o("../../../node_modules/d3-octree/src/find.js"),d=o("../../../node_modules/d3-octree/src/findAll.js"),l=o("../../../node_modules/d3-octree/src/remove.js"),u=o("../../../node_modules/d3-octree/src/root.js"),h=o("../../../node_modules/d3-octree/src/size.js"),c=o("../../../node_modules/d3-octree/src/visit.js"),f=o("../../../node_modules/d3-octree/src/visitAfter.js"),g=o("../../../node_modules/d3-octree/src/x.js"),m=o("../../../node_modules/d3-octree/src/y.js"),p=o("../../../node_modules/d3-octree/src/z.js");function _(e,t,o,r){var s=new v(null==t?g.P:t,null==o?m.q:o,null==r?p.i:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?s:s.addAll(e)}function v(e,t,o,r,s,n,i,a,d){this._x=e,this._y=t,this._z=o,this._x0=r,this._y0=s,this._z0=n,this._x1=i,this._y1=a,this._z1=d,this._root=void 0}function y(e){for(var t={data:e.data},o=t;e=e.next;)o=o.next={data:e.data};return t}var b=_.prototype=v.prototype;b.copy=function(){var e,t,o=new v(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return o;if(!r.length)return o._root=y(r),o;for(e=[{source:r,target:o._root=Array(8)}];r=e.pop();)for(var s=0;s<8;++s)(t=r.source[s])&&(t.length?e.push({source:t,target:r.target[s]=Array(8)}):r.target[s]=y(t));return o},b.add=r.Z,b.addAll=r.H,b.cover=s.Z,b.data=n.Z,b.extent=i.Z,b.find=a.Z,b.findAllWithinRadius=d.r,b.remove=l.Z,b.removeAll=l.x,b.root=u.Z,b.size=h.Z,b.visit=c.Z,b.visitAfter=f.Z,b.x=g.Z,b.y=m.Z,b.z=p.Z},"../../../node_modules/d3-octree/src/remove.js":function(e,t,o){"use strict";function r(e){if(isNaN(n=+this._x.call(null,e))||isNaN(i=+this._y.call(null,e))||isNaN(a=+this._z.call(null,e)))return this;var t,o,r,s,n,i,a,d,l,u,h,c,f,g,m,p=this._root,_=this._x0,v=this._y0,y=this._z0,b=this._x1,j=this._y1,x=this._z1;if(!p)return this;if(p.length)for(;;){if((h=n>=(d=(_+b)/2))?_=d:b=d,(c=i>=(l=(v+j)/2))?v=l:j=l,(f=a>=(u=(y+x)/2))?y=u:x=u,t=p,!(p=p[g=f<<2|c<<1|h]))return this;if(!p.length)break;(t[g+1&7]||t[g+2&7]||t[g+3&7]||t[g+4&7]||t[g+5&7]||t[g+6&7]||t[g+7&7])&&(o=t,m=g)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return((s=p.next)&&delete p.next,r)?s?r.next=s:delete r.next:t?(s?t[g]=s:delete t[g],(p=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&p===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!p.length&&(o?o[m]=p:this._root=p)):this._root=s,this}function s(e){for(var t=0,o=e.length;t<o;++t)this.remove(e[t]);return this}o.d(t,{Z:()=>r,x:()=>s})},"../../../node_modules/d3-octree/src/root.js":function(e,t,o){"use strict";function r(){return this._root}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/size.js":function(e,t,o){"use strict";function r(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}o.d(t,{Z:()=>r})},"../../../node_modules/d3-octree/src/visit.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-octree/src/octant.js");function s(e){var t,o,s,n,i,a,d,l,u=[],h=this._root;for(h&&u.push(new r.Z(h,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=u.pop();)if(!e(h=t.node,s=t.x0,n=t.y0,i=t.z0,a=t.x1,d=t.y1,l=t.z1)&&h.length){var c=(s+a)/2,f=(n+d)/2,g=(i+l)/2;(o=h[7])&&u.push(new r.Z(o,c,f,g,a,d,l)),(o=h[6])&&u.push(new r.Z(o,s,f,g,c,d,l)),(o=h[5])&&u.push(new r.Z(o,c,n,g,a,f,l)),(o=h[4])&&u.push(new r.Z(o,s,n,g,c,f,l)),(o=h[3])&&u.push(new r.Z(o,c,f,i,a,d,g)),(o=h[2])&&u.push(new r.Z(o,s,f,i,c,d,g)),(o=h[1])&&u.push(new r.Z(o,c,n,i,a,f,g)),(o=h[0])&&u.push(new r.Z(o,s,n,i,c,f,g))}return this}},"../../../node_modules/d3-octree/src/visitAfter.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-octree/src/octant.js");function s(e){var t,o=[],s=[];for(this._root&&o.push(new r.Z(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=o.pop();){var n=t.node;if(n.length){var i,a=t.x0,d=t.y0,l=t.z0,u=t.x1,h=t.y1,c=t.z1,f=(a+u)/2,g=(d+h)/2,m=(l+c)/2;(i=n[0])&&o.push(new r.Z(i,a,d,l,f,g,m)),(i=n[1])&&o.push(new r.Z(i,f,d,l,u,g,m)),(i=n[2])&&o.push(new r.Z(i,a,g,l,f,h,m)),(i=n[3])&&o.push(new r.Z(i,f,g,l,u,h,m)),(i=n[4])&&o.push(new r.Z(i,a,d,m,f,g,c)),(i=n[5])&&o.push(new r.Z(i,f,d,m,u,g,c)),(i=n[6])&&o.push(new r.Z(i,a,g,m,f,h,c)),(i=n[7])&&o.push(new r.Z(i,f,g,m,u,h,c))}s.push(t)}for(;t=s.pop();)e(t.node,t.x0,t.y0,t.z0,t.x1,t.y1,t.z1);return this}},"../../../node_modules/d3-octree/src/x.js":function(e,t,o){"use strict";function r(e){return e[0]}function s(e){return arguments.length?(this._x=e,this):this._x}o.d(t,{P:()=>r,Z:()=>s})},"../../../node_modules/d3-octree/src/y.js":function(e,t,o){"use strict";function r(e){return e[1]}function s(e){return arguments.length?(this._y=e,this):this._y}o.d(t,{Z:()=>s,q:()=>r})},"../../../node_modules/d3-octree/src/z.js":function(e,t,o){"use strict";function r(e){return e[2]}function s(e){return arguments.length?(this._z=e,this):this._z}o.d(t,{Z:()=>s,i:()=>r})},"../../../node_modules/d3-quadtree/src/add.js":function(e,t,o){"use strict";function r(e){let t=+this._x.call(null,e),o=+this._y.call(null,e);return s(this.cover(t,o),t,o,e)}function s(e,t,o,r){if(isNaN(t)||isNaN(o))return e;var s,n,i,a,d,l,u,h,c,f=e._root,g={data:r},m=e._x0,p=e._y0,_=e._x1,v=e._y1;if(!f)return e._root=g,e;for(;f.length;)if((l=t>=(n=(m+_)/2))?m=n:_=n,(u=o>=(i=(p+v)/2))?p=i:v=i,s=f,!(f=f[h=u<<1|l]))return s[h]=g,e;if(a=+e._x.call(null,f.data),d=+e._y.call(null,f.data),t===a&&o===d)return g.next=f,s?s[h]=g:e._root=g,e;do s=s?s[h]=[,,,,]:e._root=[,,,,],(l=t>=(n=(m+_)/2))?m=n:_=n,(u=o>=(i=(p+v)/2))?p=i:v=i;while((h=u<<1|l)==(c=(d>=i)<<1|a>=n));return s[c]=f,s[h]=g,e}function n(e){var t,o,r,n,i=e.length,a=Array(i),d=Array(i),l=1/0,u=1/0,h=-1/0,c=-1/0;for(o=0;o<i;++o)!(isNaN(r=+this._x.call(null,t=e[o]))||isNaN(n=+this._y.call(null,t)))&&(a[o]=r,d[o]=n,r<l&&(l=r),r>h&&(h=r),n<u&&(u=n),n>c&&(c=n));if(l>h||u>c)return this;for(this.cover(l,u).cover(h,c),o=0;o<i;++o)s(this,a[o],d[o],e[o]);return this}o.d(t,{H:()=>n,Z:()=>r})},"../../../node_modules/d3-quadtree/src/cover.js":function(e,t,o){"use strict";function r(e,t){if(isNaN(e*=1)||isNaN(t*=1))return this;var o=this._x0,r=this._y0,s=this._x1,n=this._y1;if(isNaN(o))s=(o=Math.floor(e))+1,n=(r=Math.floor(t))+1;else{for(var i,a,d=s-o||1,l=this._root;o>e||e>=s||r>t||t>=n;)switch(a=(t<r)<<1|e<o,(i=[,,,,])[a]=l,l=i,d*=2,a){case 0:s=o+d,n=r+d;break;case 1:o=s-d,n=r+d;break;case 2:s=o+d,r=n-d;break;case 3:o=s-d,r=n-d}this._root&&this._root.length&&(this._root=l)}return this._x0=o,this._y0=r,this._x1=s,this._y1=n,this}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/data.js":function(e,t,o){"use strict";function r(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/extent.js":function(e,t,o){"use strict";function r(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/find.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-quadtree/src/quad.js");function s(e,t,o){var s,n,i,a,d,l,u,h=this._x0,c=this._y0,f=this._x1,g=this._y1,m=[],p=this._root;for(p&&m.push(new r.Z(p,h,c,f,g)),null==o?o=1/0:(h=e-o,c=t-o,f=e+o,g=t+o,o*=o);l=m.pop();)if((p=l.node)&&!((n=l.x0)>f)&&!((i=l.y0)>g)&&!((a=l.x1)<h)&&!((d=l.y1)<c))if(p.length){var _=(n+a)/2,v=(i+d)/2;m.push(new r.Z(p[3],_,v,a,d),new r.Z(p[2],n,v,_,d),new r.Z(p[1],_,i,a,v),new r.Z(p[0],n,i,_,v)),(u=(t>=v)<<1|e>=_)&&(l=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=l)}else{var y=e-this._x.call(null,p.data),b=t-this._y.call(null,p.data),j=y*y+b*b;if(j<o){var x=Math.sqrt(o=j);h=e-x,c=t-x,f=e+x,g=t+x,s=p.data}}return s}},"../../../node_modules/d3-quadtree/src/quad.js":function(e,t,o){"use strict";function r(e,t,o,r,s){this.node=e,this.x0=t,this.y0=o,this.x1=r,this.y1=s}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/quadtree.js":function(e,t,o){"use strict";o.d(t,{Z:()=>m});var r=o("../../../node_modules/d3-quadtree/src/add.js"),s=o("../../../node_modules/d3-quadtree/src/cover.js"),n=o("../../../node_modules/d3-quadtree/src/data.js"),i=o("../../../node_modules/d3-quadtree/src/extent.js"),a=o("../../../node_modules/d3-quadtree/src/find.js"),d=o("../../../node_modules/d3-quadtree/src/remove.js"),l=o("../../../node_modules/d3-quadtree/src/root.js"),u=o("../../../node_modules/d3-quadtree/src/size.js"),h=o("../../../node_modules/d3-quadtree/src/visit.js"),c=o("../../../node_modules/d3-quadtree/src/visitAfter.js"),f=o("../../../node_modules/d3-quadtree/src/x.js"),g=o("../../../node_modules/d3-quadtree/src/y.js");function m(e,t,o){var r=new p(null==t?f.P:t,null==o?g.q:o,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function p(e,t,o,r,s,n){this._x=e,this._y=t,this._x0=o,this._y0=r,this._x1=s,this._y1=n,this._root=void 0}function _(e){for(var t={data:e.data},o=t;e=e.next;)o=o.next={data:e.data};return t}var v=m.prototype=p.prototype;v.copy=function(){var e,t,o=new p(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return o;if(!r.length)return o._root=_(r),o;for(e=[{source:r,target:o._root=[,,,,]}];r=e.pop();)for(var s=0;s<4;++s)(t=r.source[s])&&(t.length?e.push({source:t,target:r.target[s]=[,,,,]}):r.target[s]=_(t));return o},v.add=r.Z,v.addAll=r.H,v.cover=s.Z,v.data=n.Z,v.extent=i.Z,v.find=a.Z,v.remove=d.Z,v.removeAll=d.x,v.root=l.Z,v.size=u.Z,v.visit=h.Z,v.visitAfter=c.Z,v.x=f.Z,v.y=g.Z},"../../../node_modules/d3-quadtree/src/remove.js":function(e,t,o){"use strict";function r(e){if(isNaN(n=+this._x.call(null,e))||isNaN(i=+this._y.call(null,e)))return this;var t,o,r,s,n,i,a,d,l,u,h,c,f=this._root,g=this._x0,m=this._y0,p=this._x1,_=this._y1;if(!f)return this;if(f.length)for(;;){if((l=n>=(a=(g+p)/2))?g=a:p=a,(u=i>=(d=(m+_)/2))?m=d:_=d,t=f,!(f=f[h=u<<1|l]))return this;if(!f.length)break;(t[h+1&3]||t[h+2&3]||t[h+3&3])&&(o=t,c=h)}for(;f.data!==e;)if(r=f,!(f=f.next))return this;return((s=f.next)&&delete f.next,r)?s?r.next=s:delete r.next:t?(s?t[h]=s:delete t[h],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(o?o[c]=f:this._root=f)):this._root=s,this}function s(e){for(var t=0,o=e.length;t<o;++t)this.remove(e[t]);return this}o.d(t,{Z:()=>r,x:()=>s})},"../../../node_modules/d3-quadtree/src/root.js":function(e,t,o){"use strict";function r(){return this._root}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/size.js":function(e,t,o){"use strict";function r(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}o.d(t,{Z:()=>r})},"../../../node_modules/d3-quadtree/src/visit.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-quadtree/src/quad.js");function s(e){var t,o,s,n,i,a,d=[],l=this._root;for(l&&d.push(new r.Z(l,this._x0,this._y0,this._x1,this._y1));t=d.pop();)if(!e(l=t.node,s=t.x0,n=t.y0,i=t.x1,a=t.y1)&&l.length){var u=(s+i)/2,h=(n+a)/2;(o=l[3])&&d.push(new r.Z(o,u,h,i,a)),(o=l[2])&&d.push(new r.Z(o,s,h,u,a)),(o=l[1])&&d.push(new r.Z(o,u,n,i,h)),(o=l[0])&&d.push(new r.Z(o,s,n,u,h))}return this}},"../../../node_modules/d3-quadtree/src/visitAfter.js":function(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/d3-quadtree/src/quad.js");function s(e){var t,o=[],s=[];for(this._root&&o.push(new r.Z(this._root,this._x0,this._y0,this._x1,this._y1));t=o.pop();){var n=t.node;if(n.length){var i,a=t.x0,d=t.y0,l=t.x1,u=t.y1,h=(a+l)/2,c=(d+u)/2;(i=n[0])&&o.push(new r.Z(i,a,d,h,c)),(i=n[1])&&o.push(new r.Z(i,h,d,l,c)),(i=n[2])&&o.push(new r.Z(i,a,c,h,u)),(i=n[3])&&o.push(new r.Z(i,h,c,l,u))}s.push(t)}for(;t=s.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this}},"../../../node_modules/d3-quadtree/src/x.js":function(e,t,o){"use strict";function r(e){return e[0]}function s(e){return arguments.length?(this._x=e,this):this._x}o.d(t,{P:()=>r,Z:()=>s})},"../../../node_modules/d3-quadtree/src/y.js":function(e,t,o){"use strict";function r(e){return e[1]}function s(e){return arguments.length?(this._y=e,this):this._y}o.d(t,{Z:()=>s,q:()=>r})},"../../../node_modules/d3-timer/src/timer.js":function(e,t,o){"use strict";o.d(t,{HT:()=>p});var r,s,n=0,i=0,a=0,d=0,l=0,u=0,h="object"==typeof performance&&performance.now?performance:Date,c="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function f(){return l||(c(g),l=h.now()+u)}function g(){l=0}function m(){this._call=this._time=this._next=null}function p(e,t,o){var r=new m;return r.restart(e,t,o),r}function _(){l=(d=h.now())+u,n=i=0;try{f(),++n;for(var e,t=r;t;)(e=l-t._time)>=0&&t._call.call(void 0,e),t=t._next;--n}finally{n=0,function(){for(var e,t,o=r,n=1/0;o;)o._call?(n>o._time&&(n=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:r=t);s=e,y(n)}(),l=0}}function v(){var e=h.now(),t=e-d;t>1e3&&(u-=t,d=e)}function y(e){!n&&(i&&(i=clearTimeout(i)),e-l>24?(e<1/0&&(i=setTimeout(_,e-h.now()-u)),a&&(a=clearInterval(a))):(a||(d=h.now(),a=setInterval(v,1e3)),n=1,c(_)))}m.prototype=p.prototype={constructor:m,restart:function(e,t,o){if("function"!=typeof e)throw TypeError("callback is not a function");o=(null==o?f():+o)+(null==t?0:+t),this._next||s===this||(s?s._next=this:r=this,s=this),this._call=e,this._time=o,y()},stop:function(){this._call&&(this._call=null,this._time=1/0,y())}}},"../../../node_modules/ml-matrix/matrix.mjs":function(e,t,o){"use strict";o.d(t,{Sc:()=>n,y3:()=>s});var r=o("../../../node_modules/ml-matrix/matrix.js");r.AbstractMatrix,r.CHO,r.CholeskyDecomposition,r.DistanceMatrix,r.EVD,r.EigenvalueDecomposition,r.LU,r.LuDecomposition;let s=r.Matrix;r.MatrixColumnSelectionView,r.MatrixColumnView,r.MatrixFlipColumnView,r.MatrixFlipRowView,r.MatrixRowSelectionView,r.MatrixRowView,r.MatrixSelectionView,r.MatrixSubView,r.MatrixTransposeView,r.NIPALS,r.Nipals,r.QR,r.QrDecomposition,r.SVD;let n=r.SingularValueDecomposition;r.SymmetricMatrix,r.WrapperMatrix1D,r.WrapperMatrix2D,r.correlation,r.covariance,r.Matrix,r.Matrix,r.determinant,r.inverse,r.linearDependencies,r.pseudoInverse,r.solve,r.wrap},"../../../node_modules/tslib/tslib.es6.mjs":function(e,t,o){"use strict";function r(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)0>t.indexOf(r[s])&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o}function s(e,t,o,r){return new(o||(o=Promise))(function(s,n){function i(e){try{d(r.next(e))}catch(e){n(e)}}function a(e){try{d(r.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?s(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(i,a)}d((r=r.apply(e,t||[])).next())})}o.d(t,{_T:()=>r,mG:()=>s})}},t={};function o(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={id:r,loaded:!1,exports:{}};return e[r](n,n.exports,o),n.loaded=!0,n.exports}return o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";let e;var t=o("../../../node_modules/tslib/tslib.es6.mjs"),r=o("../../../node_modules/@antv/graphlib/esm/graph.js"),s=o("../../../node_modules/comlink/dist/esm/comlink.mjs"),n=o("../../../node_modules/@antv/layout/lib/antv-dagre.js"),i=o("../../../node_modules/@antv/layout/lib/circular.js"),a=o("../../../node_modules/@antv/layout/lib/combo-combined.js"),d=o("../../../node_modules/@antv/layout/lib/concentric.js"),l=o("../../../node_modules/@antv/layout/lib/d3-force/index.js"),u=o("../../../node_modules/@antv/layout/lib/d3-force-3d/index.js"),h=o("../../../node_modules/@antv/layout/lib/dagre.js"),c=o("../../../node_modules/@antv/layout/lib/force/index.js"),f=o("../../../node_modules/@antv/layout/lib/force-atlas2/index.js"),g=o("../../../node_modules/@antv/layout/lib/fruchterman.js"),m=o("../../../node_modules/@antv/layout/lib/grid.js"),p=o("../../../node_modules/@antv/layout/lib/mds.js"),_=o("../../../node_modules/@antv/layout/lib/radial/index.js"),v=o("../../../node_modules/@antv/layout/lib/random.js");let y={circular:i.S,concentric:d.W,mds:p.A,random:v._,grid:m.M,radial:_.D,force:c.y,d3force:l.j,"d3-force-3d":u.g,fruchterman:g.O,forceAtlas2:f.E,dagre:h.V,antvDagre:n.b,comboCombined:a.u};var b=o("../../../node_modules/@antv/layout/lib/types.js");s.Jj({stopLayout(){(null==e?void 0:e.stop)&&e.stop()},calculateLayout(o,s){return(0,t.mG)(this,void 0,void 0,function*(){let{layout:{id:t,options:n,iterations:i},nodes:a,edges:d}=o,l=new r.k({nodes:a,edges:d}),u=y[t];if(u)e=new u(n);else throw Error(`Unknown layout id: ${t}`);let h=yield e.execute(l);return(0,b.h)(e)&&(e.stop(),h=e.tick(i)),[h,s]})}})})(),{}})());